From: Wouter Wijngaards Date: Fri, 27 Jun 2008 07:23:31 +0000 (+0000) Subject: Compiles more cleanly on systems that do not have -g or -O2 flags. X-Git-Tag: release-1.4.0~109 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=416ba3eace31ef728f91b4d8811f00a8799d9a89;p=thirdparty%2Fldns.git Compiles more cleanly on systems that do not have -g or -O2 flags. --- diff --git a/configure.ac b/configure.ac index 524bdf4f..3cb20e7e 100644 --- a/configure.ac +++ b/configure.ac @@ -11,6 +11,7 @@ PACKAGE_VERSION="$PACKAGE_VERSION" OURCPPFLAGS='' CPPFLAGS=${CPPFLAGS:-${OURCPPFLAGS}} +CFLAGS= AC_AIX # Checks for programs. @@ -104,6 +105,8 @@ fi # Checks for typedefs, structures, and compiler characteristics. AC_C_CONST AC_LANG_C +CHECK_COMPILER_FLAG(g, [CFLAGS="$CFLAGS -g"]) +CHECK_COMPILER_FLAG(O2, [CFLAGS="$CFLAGS -O2"]) CHECK_COMPILER_FLAG(Wall, [CFLAGS="$CFLAGS -Wall"]) CHECK_COMPILER_FLAG(W, [CFLAGS="$CFLAGS -W"]) CHECK_COMPILER_FLAG(Wwrite-strings, [CFLAGS="$CFLAGS -Wwrite-strings"])