summaryrefslogtreecommitdiff
path: root/boehm-gc/aclocal.m4
diff options
context:
space:
mode:
authorNathanael Nerode <neroden@gcc.gnu.org>2004-02-25 21:26:22 +0000
committerNathanael Nerode <neroden@gcc.gnu.org>2004-02-25 21:26:22 +0000
commite22db4bfd8620301d525905dd3d914621005d0a5 (patch)
treec638aa5001d7670bd06b90f9268b6990f8ee3e80 /boehm-gc/aclocal.m4
parented80fa2e5a475e7070e8d4cb186687a08abe6e3a (diff)
downloadgcc-e22db4bfd8620301d525905dd3d914621005d0a5.tar.gz
acinclude.m4: De-precious CC and CXX so that the right flags are passed down to multilibs.
* acinclude.m4: De-precious CC and CXX so that the right flags are passed down to multilibs. * aclocal.m4: Regenerate. * configure: Regenerate. From-SVN: r78456
Diffstat (limited to 'boehm-gc/aclocal.m4')
-rw-r--r--boehm-gc/aclocal.m410
1 files changed, 10 insertions, 0 deletions
diff --git a/boehm-gc/aclocal.m4 b/boehm-gc/aclocal.m4
index ce701ab862f..8c5eed0386f 100644
--- a/boehm-gc/aclocal.m4
+++ b/boehm-gc/aclocal.m4
@@ -32,8 +32,18 @@ AM_INIT_AUTOMAKE(gc, 6.1a1, no-define)
sinclude(../config/no-executables.m4)
GCC_NO_EXECUTABLES
+# Yak. We must force CC and CXX to /not/ be precious variables; otherwise
+# the wrong, non-multilib-adjusted value will be used in multilibs.
+# As a side effect, we have to subst CFLAGS and CXXFLAGS ourselves.
+
+m4_rename([_AC_ARG_VAR_PRECIOUS],[real_PRECIOUS])
+m4_define([_AC_ARG_VAR_PRECIOUS],[])
AC_PROG_CC
AC_PROG_CXX
+m4_rename([real_PRECIOUS],[_AC_ARG_VAR_PRECIOUS])
+
+AC_SUBST(CFLAGS)
+AC_SUBST(CXXFLAGS)
AC_CHECK_TOOL(AS, as)
AC_CHECK_TOOL(AR, ar)