aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sim/common/acinclude.m4')
-rw-r--r--sim/common/acinclude.m410
1 files changed, 6 insertions, 4 deletions
diff --git a/sim/common/acinclude.m4 b/sim/common/acinclude.m4
index 5ebf584ce4c..abc15a93ac0 100644
--- a/sim/common/acinclude.m4
+++ b/sim/common/acinclude.m4
@@ -41,10 +41,12 @@ AC_ARG_PROGRAM
AC_PROG_INSTALL
# Put a plausible default for CC_FOR_BUILD in Makefile.
-if test "x$cross_compiling" = "xno"; then
- CC_FOR_BUILD='$(CC)'
-else
- CC_FOR_BUILD=gcc
+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)