From: Ian Lance Taylor Date: Sat, 14 Sep 1996 04:05:41 +0000 (+0000) Subject: * Makefile.in (CC_FOR_BUILD): New variable. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ad0d14e7a21a002e88d23c7b7aa417ad27fe534e;p=binutils-gdb.git * Makefile.in (CC_FOR_BUILD): New variable. (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. --- diff --git a/sim/erc32/configure.in b/sim/erc32/configure.in index 2438a6c6066..33ad604648e 100644 --- a/sim/erc32/configure.in +++ b/sim/erc32/configure.in @@ -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)