This way we auto-detect a cross-assembler more easily with, e.g.,
--build=aarch64--netbsd.
SAVED_LDFLAGS=${LDFLAGS}
dnl Checks for programs.
+AC_CHECK_TOOL(AS, as)
AC_PROG_CC
AC_PROG_CC_STDC
if test "x${ac_cv_prog_cc_c99}" != xno; then
MIT_SCHEME_NATIVE_CODE([${enable_native_code}],[${host_cpu}])
MIT_SCHEME_COMPILER_TARGET([${with_compiler_target}])
+case $mit_scheme_native_code in
+c|svm1-be|svm1-le);;
+*)
+ if test "x${AS}" = x; then
+ AC_MSG_ERROR([Unable to find assembler for native code interface])
+ fi
+ ;;
+esac
+
AUXDIR_NAME=mit-scheme-${mit_scheme_native_code}
EXE_NAME=mit-scheme-${mit_scheme_native_code}
HOST_CC = @HOST_CC@
CCLD = @CCLD@
M4 = $(srcdir)/makegen/m4.sh @M4@
-AS = as
+AS = @AS@
TAR = tar
GZIP_ENV = --best