X-Git-Url: https://git.tokkee.org/?p=sysdb.git;a=blobdiff_plain;f=configure.ac;h=420021f628ab81d61a4e898fe1acdc6c3d173f2a;hp=de18e156b7f891616c76d24661314cba8ac70e7f;hb=5e3ba235ca69e67baa9945a2c0be8a7270485656;hpb=919214f215964cb9087ce293171ab88c4715f634 diff --git a/configure.ac b/configure.ac index de18e15..420021f 100644 --- a/configure.ac +++ b/configure.ac @@ -79,6 +79,8 @@ test_cc_flags() { return $ret } +STRICT_CFLAGS="" + m4_divert_once([HELP_ENABLE], [ Build options:]) @@ -106,11 +108,11 @@ if test "x$enable_standards" = "xyes"; then dnl strict standards compliance a bit to work around this. AC_DEFINE([_BSD_SOURCE], 1, [Define to enable 4.3BSD support.]) - for flag in -std=c99 -pedantic; do + for flag in -std=c99; do AC_MSG_CHECKING([whether $CC accepts $flag]) if test_cc_flags $flag; then - CFLAGS="$CFLAGS $flag" + STRICT_CFLAGS="$STRICT_CFLAGS $flag" AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) @@ -135,7 +137,7 @@ if test "x$enable_hardening" = "xyes"; then AC_MSG_CHECKING([whether $CC accepts $flag]) if test_cc_flags $flag; then - CFLAGS="$CFLAGS $flag" + STRICT_CFLAGS="$STRICT_CFLAGS $flag" hardening=$(($hardening + 1)) AC_MSG_RESULT([yes]) else @@ -155,7 +157,6 @@ AC_ARG_ENABLE([strict-checks], [enable_strict_checks="$enableval"], [enable_strict_checks="yes"]) -STRICT_CFLAGS="" for flag in -Wall -Werror; do AC_MSG_CHECKING([whether $CC accepts $flag])