Signed-off-by: Mike Frysinger <[email protected]>
---
 Makefile.common |    2 +-
 configure.ac    |    7 +++++++
 2 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/Makefile.common b/Makefile.common
index 93f93b0..52b7862 100644
--- a/Makefile.common
+++ b/Makefile.common
@@ -1,4 +1,4 @@
 AM_CPPFLAGS = -I$(top_srcdir)/include
-AM_CFLAGS = -g3 -Wall -Werror
+AM_CFLAGS = -g3 -Wall
 
 LDADD = $(top_builddir)/lib/libcommon.la
diff --git a/configure.ac b/configure.ac
index 62bba8a..475e33e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -101,6 +101,13 @@ AC_CHECK_TYPE(struct sockaddr_ieee802154,
 AC_FUNC_FORK
 AC_CHECK_FUNCS([malloc realloc memset socket getopt_long select strdup strtol])
 
+# Handle this last so -Werror doesn't get in the way of compile tests
+AC_ARG_ENABLE(werror, [AC_HELP_STRING([--disable-werror],
+             [do not compile with -Werror])])
+if test "x$enable_werror" != "xno" ; then
+       CFLAGS="-Werror $CFLAGS"
+fi
+
 AC_CONFIG_FILES([
        Makefile
        lib/Makefile
-- 
1.6.5.3


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Linux-zigbee-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-zigbee-devel

Reply via email to