From 76c5a5ab00e1898e72ea6a73394978e0e4a6ba66 Mon Sep 17 00:00:00 2001 From: Taylor R Campbell Date: Sun, 6 Oct 2013 18:14:53 +0000 Subject: [PATCH] Use a compile-test, not a run-test, for __ELF__. --- src/microcode/achost.ac | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) 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" -- 2.25.1