Pass IS_NATIVE_RELEASE to microcode during configuration.
authorChris Hanson <org/chris-hanson/cph>
Tue, 20 Nov 2018 03:57:38 +0000 (19:57 -0800)
committerChris Hanson <org/chris-hanson/cph>
Tue, 20 Nov 2018 03:57:38 +0000 (19:57 -0800)
src/configure.ac
src/microcode/configure.ac

index 9f336caf8bc883e80aa8fa5d3ee1668f8dbde6da..7c51a1fbc1dcde0e03f236a3db363adac944b57b 100644 (file)
@@ -389,6 +389,7 @@ etc/create-makefiles.sh "${MIT_SCHEME_EXE}" "${mit_scheme_compiler_target}" \
 compiler/configure "${mit_scheme_compiler_target}" || exit $?
 
 # configure scripts for subdirs care about these
+export IS_NATIVE_RELEASE
 export MIT_SCHEME_EXE
 export MIT_SCHEME_LIBDIR
 export MIT_SCHEME_INCLUDEDIR
index 337c9ea963bf53d48cd7fcaa2c0bddf2d7853296..3b957511f7aede8ba2f213537288b333627cd70a 100644 (file)
@@ -128,7 +128,11 @@ AC_ARG_ENABLE([debugging],
 AC_ARG_ENABLE([native-code],
     AS_HELP_STRING([--enable-native-code],
        [Support native compiled code if available [[yes]]]))
-: ${enable_native_code='yes'}
+if test x"${IS_NATIVE_RELEASE}" != x; then
+    : ${enable_native_code=${IS_NATIVE_RELEASE}}
+else
+    : ${enable_native_code=yes}
+fi
 
 AC_ARG_WITH([compiler-target],
     AS_HELP_STRING([--with-compiler-target],