]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* acx.m4 (AC_PROG_CPP_WERROR): New.
authorDaniel Jacobowitz <drow@mvista.com>
Thu, 25 Sep 2003 14:27:52 +0000 (14:27 +0000)
committerDaniel Jacobowitz <drow@gcc.gnu.org>
Thu, 25 Sep 2003 14:27:52 +0000 (14:27 +0000)
From-SVN: r71776

config/ChangeLog
config/acx.m4

index 7a7605bc46760723b4425a7c9f33a3aab16729ea..2ea4e15744b894ab583f34082ce934e8ff988b7b 100644 (file)
@@ -1,3 +1,7 @@
+2003-09-24  Daniel Jacobowitz  <drow@mvista.com>
+
+       * acx.m4 (AC_PROG_CPP_WERROR): New.
+
 2003-07-07  Zack Weinberg  <zack@codesourcery.com>
 
        * gettext.m4: Delete all former contents.
index ea5cb07dcabbbdeccc10f9c12ad872352d19dd01..96b7c8a5caddbfc04f67e0024bdce9af2065a0b8 100644 (file)
@@ -140,3 +140,18 @@ else
   $1="$ac_cv_prog_$1"
 fi
 ]) []dnl # NCN_STRICT_CHECK_TARGET_TOOL
+
+###
+# AC_PROG_CPP_WERROR
+# Used for autoconf 2.5x to force AC_PREPROC_IFELSE to reject code which
+# triggers warnings from the preprocessor.  Will be in autoconf 2.58.
+# For now, using this also overrides header checks to use only the
+# preprocessor (matches 2.13 behavior; matching 2.58's behavior is a
+# bit harder from here).
+# Eventually autoconf will default to checking headers with the compiler
+# instead, and we'll have to do this differently.
+
+AC_DEFUN([AC_PROG_CPP_WERROR],
+[AC_REQUIRE([AC_PROG_CPP])dnl
+m4_define([AC_CHECK_HEADER],m4_defn([_AC_CHECK_HEADER_OLD]))
+ac_c_preproc_warn_flag=yes])# AC_PROG_CPP_WERROR