aboutsummaryrefslogtreecommitdiff
path: root/sim/lm32/configure
diff options
context:
space:
mode:
Diffstat (limited to 'sim/lm32/configure')
-rwxr-xr-xsim/lm32/configure19
1 files changed, 10 insertions, 9 deletions
diff --git a/sim/lm32/configure b/sim/lm32/configure
index 33a4430..27af268 100755
--- a/sim/lm32/configure
+++ b/sim/lm32/configure
@@ -687,6 +687,7 @@ PACKAGE
C_DIALECT
RANLIB
AR
+CFLAGS_FOR_BUILD
CC_FOR_BUILD
INSTALL_DATA
INSTALL_SCRIPT
@@ -6777,17 +6778,17 @@ $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
-# Put a plausible default for CC_FOR_BUILD in Makefile.
-if test -z "$CC_FOR_BUILD"; then
- if test "x$cross_compiling" = "xno"; then
- CC_FOR_BUILD='$(CC)'
- else
- CC_FOR_BUILD=gcc
- fi
+if test "x$cross_compiling" = "xno"; then
+ : "${CC_FOR_BUILD:=\$(CC)}"
+ : "${CFLAGS_FOR_BUILD:=\$(CFLAGS)}"
+else
+ : "${CC_FOR_BUILD:=gcc}"
+ : "${CFLAGS_FOR_BUILD:=-g -O}"
fi
+
if test -n "$ac_tool_prefix"; then
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
set dummy ${ac_tool_prefix}ar; ac_word=$2
@@ -11241,7 +11242,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 11244 "configure"
+#line 11245 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -11347,7 +11348,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 11350 "configure"
+#line 11351 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H