summaryrefslogtreecommitdiffstats
path: root/libgfortran/aclocal.m4
diff options
context:
space:
mode:
authorburnus <burnus@138bc75d-0d04-0410-961f-82ee72b054a4>2011-11-09 17:17:57 +0000
committerburnus <burnus@138bc75d-0d04-0410-961f-82ee72b054a4>2011-11-09 17:17:57 +0000
commit7eda0fb788effb42e109ffa89f2bfe7dff227cf4 (patch)
tree70456a49b9cecf45c2ccc1e666bdf289143a9bcb /libgfortran/aclocal.m4
parent091f282f014a2a7257da29bbde75686cf99420e4 (diff)
downloadppe42-gcc-7eda0fb788effb42e109ffa89f2bfe7dff227cf4.tar.gz
ppe42-gcc-7eda0fb788effb42e109ffa89f2bfe7dff227cf4.zip
2011-11-09 Tobias Burnus <burnus@net-b.de>
* configure.ac: Make more cross-compile friendly. * Makefile.in: Regenerate. * aclocal.m4: Regenerate. * config.h.in: Regenerate. * configure: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@181212 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgfortran/aclocal.m4')
-rw-r--r--libgfortran/aclocal.m435
1 files changed, 35 insertions, 0 deletions
diff --git a/libgfortran/aclocal.m4 b/libgfortran/aclocal.m4
index ebf36069e9a..8673daa1a9d 100644
--- a/libgfortran/aclocal.m4
+++ b/libgfortran/aclocal.m4
@@ -658,6 +658,41 @@ AC_MSG_RESULT([$_am_result])
rm -f confinc confmf
])
+# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008
+# Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# serial 6
+
+# AM_PROG_CC_C_O
+# --------------
+# Like AC_PROG_CC_C_O, but changed for automake.
+AC_DEFUN([AM_PROG_CC_C_O],
+[AC_REQUIRE([AC_PROG_CC_C_O])dnl
+AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
+AC_REQUIRE_AUX_FILE([compile])dnl
+# FIXME: we rely on the cache variable name because
+# there is no other way.
+set dummy $CC
+am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
+eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
+if test "$am_t" != yes; then
+ # Losing compiler, so override with the script.
+ # FIXME: It is wrong to rewrite CC.
+ # But if we don't then we get into trouble of one sort or another.
+ # A longer-term fix would be to have automake use am__CC in this case,
+ # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
+ CC="$am_aux_dir/compile $CC"
+fi
+dnl Make sure AC_PROG_CC is never called again, or it will override our
+dnl setting of CC.
+m4_define([AC_PROG_CC],
+ [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
+])
+
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
OpenPOWER on IntegriCloud