Some tweaks while debugging a problem.
authorChris Hanson <org/chris-hanson/cph>
Sun, 9 Jun 2013 07:24:05 +0000 (00:24 -0700)
committerChris Hanson <org/chris-hanson/cph>
Sun, 9 Jun 2013 07:24:05 +0000 (00:24 -0700)
src/configure.ac

index cf275a08ff791106b8990ba373f66ffe1bd8a717..ec0b174250cd025bda56894bd71c16f01f0c87e5 100644 (file)
@@ -64,11 +64,6 @@ else
 fi
 DEFAULT_TARGET=${with_default_target}
 
-AC_ARG_WITH([default-target],
-    AS_HELP_STRING([--with-default-target],
-       [Set the default make target [[all]]]))
-DEFAULT_TARGET=${with_default_target=all}
-
 AC_CANONICAL_HOST
 
 MIT_SCHEME_NATIVE_CODE([${enable_native_code}],[${host_cpu}])
@@ -99,8 +94,9 @@ AUXDIR='$(libdir)'/${AUXDIR_NAME}
 #   src/configure.ac
 #   src/etc/make-native.sh
 
+native_exe=mit-scheme-${mit_scheme_native_code}
 if test x"${enable_host_scheme_test}" = xno; then
-    : ${MIT_SCHEME_EXE:=mit-scheme-${mit_scheme_native_code}}
+    : ${MIT_SCHEME_EXE=${native_exe}}
 else
     AC_MSG_CHECKING([for an existing MIT/GNU Scheme installation])
     # Kinda hairy logic to detect this: (1) Use MIT_SCHEME_EXE, and
@@ -112,8 +108,7 @@ else
     # the right thing?)
     found_p=no
     env_p=no
-    native_exe="mit-scheme-${mit_scheme_native_code}"
-    if test x"${MIT_SCHEME_EXE:+set}" = xset; then
+    if test x"${MIT_SCHEME_EXE}" != x; then
        env_p=yes
        if "${MIT_SCHEME_EXE}" --batch-mode --eval '(%exit)' >/dev/null 2>&1;
        then
@@ -127,7 +122,7 @@ else
        found_p=yes
     fi
     if test x"${found_p}" = xyes; then
-       AC_MSG_RESULT([yes])
+       AC_MSG_RESULT([yes, using ${MIT_SCHEME_EXE}])
     else
        message=
        if test x"${env_p}" = xyes; then
@@ -137,7 +132,7 @@ else
        else
            message="the following programs do not run it:
 
-   mit-scheme-${mit_scheme_native_code}
+   ${native_exe}
    mit-scheme"
        fi
        AC_MSG_ERROR([