From: Michael Sweet Date: Sun, 24 Sep 2017 15:51:48 +0000 (-0400) Subject: Update configure script. X-Git-Tag: v2.2.5~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f0f4e0366cc896c83f63990b39397927d63131d2;p=thirdparty%2Fcups.git Update configure script. --- diff --git a/configure b/configure index 4b5ee41fe2..8be4d9af5a 100755 --- a/configure +++ b/configure @@ -7069,6 +7069,32 @@ fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext CFLAGS="$OLDCFLAGS" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wno-format-truncation" >&5 +$as_echo_n "checking whether compiler supports -Wno-format-truncation... " >&6; } + OLDCFLAGS="$CFLAGS" + CFLAGS="$CFLAGS -Werror -Wno-format-truncation" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + OPTIM="$OPTIM -Wno-format-truncation" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS="$OLDCFLAGS" + # Additional warning options for development testing... if test -d .svn; then OPTIM="-Werror $OPTIM"