comparison configure.in @ 106158:734dbd0c890e

Use -Wdeclaration-after-statement if available.
author Dan Nicolaescu <dann@ics.uci.edu>
date Fri, 20 Nov 2009 06:05:10 +0000
parents cd4cbab8bb21
children b5eb529d2739
comparison
equal deleted inserted replaced
106157:42f3f64ab6e5 106158:734dbd0c890e
755 AC_MSG_RESULT($has_option) 755 AC_MSG_RESULT($has_option)
756 CFLAGS="$SAVE_CFLAGS" 756 CFLAGS="$SAVE_CFLAGS"
757 unset has_option 757 unset has_option
758 unset SAVE_CFLAGS 758 unset SAVE_CFLAGS
759 759
760 ### Use -Wdeclaration-after-statement if the compiler supports it
761 AC_MSG_CHECKING([whether gcc understands -Wdeclaration-after-statement])
762 SAVE_CFLAGS="$CFLAGS"
763 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
764 AC_TRY_COMPILE([], [], has_option=yes, has_option=no,)
765 if test $has_option = yes; then
766 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
767 fi
768 AC_MSG_RESULT($has_option)
769 CFLAGS="$SAVE_CFLAGS"
770 unset has_option
771 unset SAVE_CFLAGS
772
760 #### Some other nice autoconf tests. 773 #### Some other nice autoconf tests.
761 774
762 dnl checks for programs 775 dnl checks for programs
763 AC_PROG_LN_S 776 AC_PROG_LN_S
764 AC_PROG_CPP 777 AC_PROG_CPP