[gq-commit] gq ChangeLog,1.63,1.64 configure.in,1.60,1.61
Status: Beta
Brought to you by:
sur5r
From: <he...@us...> - 2006-04-05 00:02:23
|
Update of /cvsroot/gqclient/gq In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv768 Modified Files: ChangeLog configure.in Log Message: 2006-04-05 Sven Herzberg <he...@gn...> * configure.in, * src/Makefile.am: check whether the compiler understands additional warning flags, keep them in a separate variable to not disturb the configure process Index: ChangeLog =================================================================== RCS file: /cvsroot/gqclient/gq/ChangeLog,v retrieving revision 1.63 retrieving revision 1.64 diff -C2 -d -r1.63 -r1.64 *** ChangeLog 4 Apr 2006 23:58:54 -0000 1.63 --- ChangeLog 5 Apr 2006 00:02:17 -0000 1.64 *************** *** 1,4 **** --- 1,11 ---- 2006-04-05 Sven Herzberg <he...@gn...> + * configure.in, + * src/Makefile.am: check whether the compiler understands additional + warning flags, keep them in a separate variable to not disturb the + configure process + + 2006-04-05 Sven Herzberg <he...@gn...> + * autogen.sh: enable maintainer mode * configure.in: don't allow GLib 2.x and GTK+ 1.x Index: configure.in =================================================================== RCS file: /cvsroot/gqclient/gq/configure.in,v retrieving revision 1.60 retrieving revision 1.61 diff -C2 -d -r1.60 -r1.61 *** configure.in 4 Apr 2006 23:58:54 -0000 1.60 --- configure.in 5 Apr 2006 00:02:17 -0000 1.61 *************** *** 504,519 **** ) ! dnl Only use -Wall if we have gcc ! if test "x$GCC" = "xyes"; then ! for A in -Wall -W -Wno-unused -Wmissing-declarations -Wcast-align -Wpointer-arith -Wfloat-equal ! do ! # The following should work as well, but might (?) be less portable ! # if ! echo "$CFLAGS" | grep -q -w -- "$A" ; then if test -z "`echo "$CFLAGS" | grep -w -- "$A" 2> /dev/null`" ; then CFLAGS="$CFLAGS $A" fi ! done ! fi localedir="${datadir}/locale" --- 504,533 ---- ) ! dnl ------------------------ ! dnl | compiler warning flags |------------------------------------------------ ! dnl ------------------------ + # a backup of the working CFLAGS + SAVE_CFLAGS="$CFLAGS" + WARN_CFLAGS="" + for A in -Wall -W -Wno-unused -Wmissing-declarations -Wcast-align -Wpointer-arith -Wfloat-equal + do if test -z "`echo "$CFLAGS" | grep -w -- "$A" 2> /dev/null`" ; then CFLAGS="$CFLAGS $A" + has_option=no + AC_MSG_CHECKING([whether $CC understands $A]) + AC_TRY_COMPILE([],[],[ + has_option=yes + WARN_CFLAGS="$WARN_CFLAGS $A" + ],[]) + AC_MSG_RESULT($has_option) + + # restore the backup + CFLAGS="$SAVE_CFLAGS" fi ! done ! AC_SUBST(WARN_CFLAGS) ! ! dnl -------------------------------------------------------------------------- localedir="${datadir}/locale" |