From d7ffc57442e111f3bf4236fb03896c21cb1022a4 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Tue, 2 Nov 2010 17:06:37 +0000 Subject: Fix compiler warnings. --- configure.in | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'configure.in') diff --git a/configure.in b/configure.in index c5de976..9fb4744 100644 --- a/configure.in +++ b/configure.in @@ -43,6 +43,7 @@ AM_CONFIG_HEADER([config.h]) # Checks for programs. AC_PROG_CC +AM_PROG_CC_C_O AC_PROG_INSTALL AC_PROG_LN_S AC_PROG_MAKE_SET @@ -185,6 +186,21 @@ else enable_debug="no" fi +# -------------------------------------------------------------------- +# Strict Mode + +# Strict mode +AC_ARG_ENABLE(strict, + AC_HELP_STRING([--enable-strict], + [Compile with all warnings strictly enabled])) + +if test "$enable_strict" = "yes"; then + CFLAGS="$CFLAGS -Wall -Werror" + echo "enabling strict compile mode" +else + enable_strict="no" +fi + # -------------------------------------------------------------------- # Have to resolve this for the path below @@ -204,4 +220,5 @@ echo " True transparent proxy: $enable_tproxy --enable-tproxy Capabalities: $enable_capabilities --enable-capabilities, libcap2 Debug Mode: $enable_debug --enable-debug +Strict Mode: $enable_strict --enable-strict " -- cgit v1.2.3