]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Update configure script.
authorMichael Sweet <michael.r.sweet@gmail.com>
Sun, 24 Sep 2017 15:51:48 +0000 (11:51 -0400)
committerMichael Sweet <michael.r.sweet@gmail.com>
Sun, 24 Sep 2017 15:51:48 +0000 (11:51 -0400)
configure

index 4b5ee41fe24d542469f3fe88d19c4d6e0db5d19a..8be4d9af5aab95ec1d2e469ddb051c0cb34b7ed1 100755 (executable)
--- 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"