* Makefile.in (CC_FOR_BUILD): New variable.
authorIan Lance Taylor <ian@airs.com>
Sat, 14 Sep 1996 04:05:41 +0000 (04:05 +0000)
committerIan Lance Taylor <ian@airs.com>
Sat, 14 Sep 1996 04:05:41 +0000 (04:05 +0000)
(AR, AR_FLAGS, BISON, MAKEINFO): Remove duplicate variables.
(RANLIB, CC): Likewise.
(end): Use $(CC_FOR_BUILD), not $(CC).
* configure.in: Set CC_FOR_BUILD.
* configure: Rebuild.

sim/erc32/configure.in

index 2438a6c6066878cb42f591bf5a26a79bb1be8ded..33ad604648e43003e1c42490d39e6542c31cf34d 100644 (file)
@@ -16,4 +16,15 @@ AR=${AR-ar}
 AC_SUBST(AR)
 AC_PROG_RANLIB
 
+# Put a plausible default for CC_FOR_BUILD in Makefile.
+AC_C_CROSS
+if test -z "$CC_FOR_BUILD"; then
+  if test "x$cross_compiling" = "xno"; then
+    CC_FOR_BUILD='$(CC)'
+  else
+    CC_FOR_BUILD=gcc
+  fi
+fi
+AC_SUBST(CC_FOR_BUILD)
+
 AC_OUTPUT(Makefile)