gegl r3005 - trunk



Author: martinn
Date: Tue Mar 31 20:19:04 2009
New Revision: 3005
URL: http://svn.gnome.org/viewvc/gegl?rev=3005&view=rev

Log:
don't try to pass gcc flags to vendor compilers

Patch from Gary V. Vaughan. Some vendor compilers warn about unknown
flags but otherwise compile (noisily, with a warning for every unknown
flag on every compilation unit).

Since we know these are gcc flags, only see whether they work when we're
compiling with gcc.

Modified:
   trunk/ChangeLog
   trunk/configure.ac

Modified: trunk/configure.ac
==============================================================================
--- trunk/configure.ac	(original)
+++ trunk/configure.ac	Tue Mar 31 20:19:04 2009
@@ -187,7 +187,6 @@
   *[\ \	]-Wall[\ \	]*) ;;
   *) CFLAGS="$CFLAGS -Wall" ;;
   esac
-fi
 changequote([,])dnl
 
 GEGL_DETECT_CFLAGS(extra_warnings, '-Wdeclaration-after-statement')
@@ -208,6 +207,7 @@
 GEGL_DETECT_CFLAGS(extra_warnings, '-Wold-style-definition')
 CFLAGS="$CFLAGS $extra_warnings"
 
+fi
 
 dnl disable docs generation.
 AC_ARG_ENABLE([docs],



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]