[xiph-commits] r3438 - in libannodex/trunk: . src/examples src/importers src/libannodex src/tests src/tools

johnf at svn.annodex.net johnf at svn.annodex.net
Sat Feb 9 15:06:24 PST 2008


Author: johnf
Date: 2008-02-09 15:06:23 -0800 (Sat, 09 Feb 2008)
New Revision: 3438

Modified:
   libannodex/trunk/configure.ac
   libannodex/trunk/src/examples/Makefile.am
   libannodex/trunk/src/importers/Makefile.am
   libannodex/trunk/src/libannodex/Makefile.am
   libannodex/trunk/src/tests/Makefile.am
   libannodex/trunk/src/tools/Makefile.am
Log:
Add configure support for -Werror

Modified: libannodex/trunk/configure.ac
===================================================================
--- libannodex/trunk/configure.ac	2008-02-09 13:24:21 UTC (rev 3437)
+++ libannodex/trunk/configure.ac	2008-02-09 23:06:23 UTC (rev 3438)
@@ -9,22 +9,6 @@
 AM_INIT_AUTOMAKE(libannodex, 0.7.4)
 AM_CONFIG_HEADER(config.h)
 
-#------------------------------------------------------------------------------------
-# Rules for library version information:
-#
-#  1. Start with version information of `0:0:0' for each libtool library.
-#  2. Update the version information only immediately before a public release of
-#     your software. More frequent updates are unnecessary, and only guarantee
-#     that the current interface number gets larger faster.
-#  3. If the library source code has changed at all since the last update, then
-#     increment revision (`c:r:a' becomes `c:r+1:a').
-#  4. If any interfaces have been added, removed, or changed since the last update,
-#     increment current, and set revision to 0.
-#  5. If any interfaces have been added since the last public release, then increment
-#     age.
-#  6. If any interfaces have been removed since the last public release, then set age
-#     to 0.
-
 SHARED_VERSION_INFO="5:0:0"
 SHLIB_VERSION_ARG=""
 
@@ -148,7 +132,31 @@
 ])
 fi
 
+# Checks for header files.
 
+# Checks for typedefs, structures, and compiler characteristics.
+
+dnl Add some useful warnings if we have gcc.
+dnl changequote(,)dnl
+if test "x$ac_cv_prog_gcc" = xyes ; then
+  CFLAGS="$CFLAGS -Wall -Wextra -g -std=gnu99 -Wdeclaration-after-statement -Wno-unused"
+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 Check for types
 
 AC_MSG_CHECKING(for int64_t)

Modified: libannodex/trunk/src/examples/Makefile.am
===================================================================
--- libannodex/trunk/src/examples/Makefile.am	2008-02-09 13:24:21 UTC (rev 3437)
+++ libannodex/trunk/src/examples/Makefile.am	2008-02-09 23:06:23 UTC (rev 3438)
@@ -1,7 +1,5 @@
 ## Process this file with automake to produce Makefile.in
 
-AM_CFLAGS = -Wall -pedantic -g
-
 INCLUDES = -I$(top_srcdir)/include
 
 ANNODEXDIR = ../libannodex

Modified: libannodex/trunk/src/importers/Makefile.am
===================================================================
--- libannodex/trunk/src/importers/Makefile.am	2008-02-09 13:24:21 UTC (rev 3437)
+++ libannodex/trunk/src/importers/Makefile.am	2008-02-09 23:06:23 UTC (rev 3438)
@@ -1,7 +1,5 @@
 ## Process this file with automake to produce Makefile.in
 
-AM_CFLAGS = -Wall -pedantic
-
 INCLUDES = -I$(top_srcdir)/include $(OGGZ_CFLAGS)
 
 # don't use IMPORTERS_DIR from configure.ac; since that's decided at

Modified: libannodex/trunk/src/libannodex/Makefile.am
===================================================================
--- libannodex/trunk/src/libannodex/Makefile.am	2008-02-09 13:24:21 UTC (rev 3437)
+++ libannodex/trunk/src/libannodex/Makefile.am	2008-02-09 23:06:23 UTC (rev 3438)
@@ -1,7 +1,5 @@
 ## Process this file with automake to produce Makefile.in
 
-AM_CFLAGS = -Wall -pedantic
-
 if ANX_CONFIG_READ
 anx_read_sources = xtag.c xtag.h
 endif

Modified: libannodex/trunk/src/tests/Makefile.am
===================================================================
--- libannodex/trunk/src/tests/Makefile.am	2008-02-09 13:24:21 UTC (rev 3437)
+++ libannodex/trunk/src/tests/Makefile.am	2008-02-09 23:06:23 UTC (rev 3438)
@@ -1,7 +1,5 @@
 ## Process this file with automake to produce Makefile.in
 
-AM_CFLAGS = -Wall -pedantic
-
 INCLUDES = -I$(top_srcdir)/include
 
 ANNODEXDIR = ../libannodex

Modified: libannodex/trunk/src/tools/Makefile.am
===================================================================
--- libannodex/trunk/src/tools/Makefile.am	2008-02-09 13:24:21 UTC (rev 3437)
+++ libannodex/trunk/src/tools/Makefile.am	2008-02-09 23:06:23 UTC (rev 3438)
@@ -1,7 +1,5 @@
 ## Process this file with automake to produce Makefile.in
 
-AM_CFLAGS = -Wall -pedantic -g
-
 INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/src/libannodex 
 
 ANNODEXDIR = ../libannodex



More information about the commits mailing list