summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorrwild <rwild@138bc75d-0d04-0410-961f-82ee72b054a4>2009-08-19 22:19:37 +0000
committerrwild <rwild@138bc75d-0d04-0410-961f-82ee72b054a4>2009-08-19 22:19:37 +0000
commitcd2f377379015425539a6c10a7c5b2c043035439 (patch)
tree3c87f798687a766a129c5e463c41722890b39c89 /config
parent1a48098b822d2eada9d586be83c667c62a9cca54 (diff)
downloadppe42-gcc-cd2f377379015425539a6c10a7c5b2c043035439.tar.gz
ppe42-gcc-cd2f377379015425539a6c10a7c5b2c043035439.zip
Disable option checking in the toplevel, avoid 2.64 fopen glitch.
/: * configure.ac: Call AC_DISABLE_OPTION_CHECKING. (baseargs): Add --disable-option-checking. * configure: Regenerate. config/: * override.m4 (AC_DISABLE_OPTION_CHECKING): Define to be empty if not defined, to avoid error with 2.59. (_AC_LANG_IO_PROGRAM): When the Autoconf version is exactly 2.64, avoid per-language instances to drop fopen from test program. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@150945 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'config')
-rw-r--r--config/ChangeLog8
-rw-r--r--config/override.m413
2 files changed, 21 insertions, 0 deletions
diff --git a/config/ChangeLog b/config/ChangeLog
index c9a51dc988c..7a2a7b642e1 100644
--- a/config/ChangeLog
+++ b/config/ChangeLog
@@ -1,3 +1,11 @@
+2009-08-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ * override.m4 (AC_DISABLE_OPTION_CHECKING): Define to be
+ empty if not defined, to avoid error with 2.59.
+ (_AC_LANG_IO_PROGRAM): When the Autoconf version is exactly
+ 2.64, avoid per-language instances to drop fopen from test
+ program.
+
2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Do not expand
diff --git a/config/override.m4 b/config/override.m4
index bf112db99a8..a10146ff75a 100644
--- a/config/override.m4
+++ b/config/override.m4
@@ -58,6 +58,19 @@ m4_define([AC_INIT], m4_defn([AC_INIT])[
_GCC_AUTOCONF_VERSION_CHECK
])
+
+dnl Turn AC_DISABLE_OPTION_CHECKING into a no-op if not defined.
+m4_ifndef([AC_DISABLE_OPTION_CHECKING],
+ [m4_define([AC_DISABLE_OPTION_CHECKING])])
+
+
+dnl Fix 2.64 cross compile detection for AVR and RTEMS
+dnl by not trying to compile fopen.
+m4_if(m4_defn([m4_PACKAGE_VERSION]), [2.64],
+ [m4_foreach([_GCC_LANG], [C, C++, Fortran, Fortran 77],
+ [m4_define([_AC_LANG_IO_PROGRAM(]_GCC_LANG[)], m4_defn([AC_LANG_PROGRAM(]_GCC_LANG[)]))])])
+
+
m4_version_prereq([2.60],, [
dnl We use $ac_pwd in some of the overrides below; ensure its definition
m4_divert_push([PARSE_ARGS])dnl
OpenPOWER on IntegriCloud