Use a compile-test, not a run-test, for __ELF__.
authorTaylor R Campbell <campbell@mumble.net>
Sun, 6 Oct 2013 18:14:53 +0000 (18:14 +0000)
committerTaylor R Campbell <campbell@mumble.net>
Sun, 6 Oct 2013 18:14:53 +0000 (18:14 +0000)
src/microcode/achost.ac

index 35408bb38e0de697ace04ae6a7d29df2196a81cb..547766d291e8d0077c6d575f0a08a5340ecc530f 100644 (file)
@@ -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"