From: Taylor R Campbell Date: Sun, 6 Oct 2013 18:14:53 +0000 (+0000) Subject: Use a compile-test, not a run-test, for __ELF__. X-Git-Tag: release-9.2.0~98 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=76c5a5ab00e1898e72ea6a73394978e0e4a6ba66;p=mit-scheme.git Use a compile-test, not a run-test, for __ELF__. --- diff --git a/src/microcode/achost.ac b/src/microcode/achost.ac index 35408bb38..547766d29 100644 --- a/src/microcode/achost.ac +++ b/src/microcode/achost.ac @@ -215,16 +215,12 @@ if test "${DO_GCC_TESTS}" = yes; then MODULE_CFLAGS="${MODULE_CFLAGS} -fPIC" MODULE_LDFLAGS="${MODULE_LDFLAGS} -shared -fPIC" AC_MSG_CHECKING([for ELF binaries]) - AC_RUN_IFELSE( - [AC_LANG_PROGRAM( - [[]], - [[ - #ifdef __ELF__ - return 0; - #endif - return 1; - ]] - )], + AC_EGREP_CPP([yes], + [ + #ifdef __ELF__ + yes + #endif + ], [ AC_MSG_RESULT([yes]) M4_FLAGS="${M4_FLAGS} -P SUPPRESS_LEADING_UNDERSCORE,1"