From 368ee8dbf9c4b087355b4953cd1b529a3af2306d Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Mon, 2 Nov 2009 23:48:10 -0800 Subject: [PATCH] Fix thinko; add support for x86-64 on MacOS. --- src/microcode/configure.ac | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/microcode/configure.ac b/src/microcode/configure.ac index b63c785b5..fb46aef7e 100644 --- a/src/microcode/configure.ac +++ b/src/microcode/configure.ac @@ -311,7 +311,7 @@ no|none) dnl bobcat vs mc68k or spectrum versus hppa. I don't know what the dnl state of Scheme on these architectures is, however, so at least dnl this will flag an error if you try to use them. - if test -f "cmpauxmd/${enable_native_code}.m4"; then + if ! test -f "cmpauxmd/${enable_native_code}.m4"; then AC_MSG_ERROR([unknown native-code type: ${enable_native_code}]) fi SCM_ARCH=${enable_native_code} @@ -378,11 +378,17 @@ darwin*) MACOSX_CFLAGS="${MACOSX_CFLAGS} -isysroot ${MACOSX_SYSROOT}" MACOSX_CFLAGS="${MACOSX_CFLAGS} -fconstant-cfstrings" AC_MSG_NOTICE([Compiling for MacOSX version ${MACOSX}]) - if test "${SCM_ARCH}" = i386; then + case ${SCM_ARCH} in + i386) MACOSX_CFLAGS="-arch i386 ${MACOSX_CFLAGS}" AS_FLAGS="-arch i386 ${AS_FLAGS}" SCHEME_LDFLAGS="${SCHEME_LDFLAGS} -Wl,-pagezero_size,04000000" - fi + ;; + x86-64) + MACOSX_CFLAGS="-arch x86_64 ${MACOSX_CFLAGS}" + AS_FLAGS="-arch x86_64 ${AS_FLAGS}" + ;; + esac CFLAGS="${CFLAGS} ${MACOSX_CFLAGS}" LDFLAGS="${LDFLAGS} ${MACOSX_CFLAGS} -Wl,-syslibroot,${MACOSX_SYSROOT}" LDFLAGS="${LDFLAGS} -framework CoreFoundation" -- 2.25.1