[xiph-commits] r3173 - liboggz/trunk

conrad at svn.annodex.net conrad at svn.annodex.net
Mon Jul 30 01:11:12 PDT 2007


Author: conrad
Date: 2007-07-30 01:11:12 -0700 (Mon, 30 Jul 2007)
New Revision: 3173

Modified:
   liboggz/trunk/configure.ac
Log:
add option "./configure --enable-gcc-werror" to add gcc option -Werror to
CFLAGS in all Makefiles. Patch from Erik de Castro Lopo.


Modified: liboggz/trunk/configure.ac
===================================================================
--- liboggz/trunk/configure.ac	2007-07-30 06:26:04 UTC (rev 3172)
+++ liboggz/trunk/configure.ac	2007-07-30 08:11:12 UTC (rev 3173)
@@ -289,13 +289,29 @@
 
 # Checks for typedefs, structures, and compiler characteristics.
 
-dnl Use -Wall if we have gcc.
+dnl Add some useful warnings if we have gcc.
 dnl changequote(,)dnl
 if test "x$ac_cv_prog_gcc" = xyes ; then
   CFLAGS="$CFLAGS -Wall -g -std=gnu99 -Wdeclaration-after-statement"
 fi
 dnl changequote([,])dnl
 
+dnl
+dnl  Configuration option to add -Werror to all Makefiles
+dnl
+
+AC_ARG_ENABLE(gcc-werror,
+     AC_HELP_STRING([--enable-gcc-werror], [enable -Werror in all Makefiles]),
+     [ ac_enable_gcc_werror=yes ], [ ac_enable_gcc_werror=no] )
+
+if test "x${ac_enable_gcc_werror}" = xyes ; then
+  CFLAGS="-Werror $CFLAGS"
+fi
+
+dnl
+dnl Shared library symbol versioning and hiding
+dnl
+
 case "$target_os" in
   linux* | solaris*)
     SHLIB_VERSION_ARG="-Wl,--version-script=Version_script"



More information about the commits mailing list