I didn't see any further discussion so here is, I hope, a clean fix to
authorBruce Momjian <bruce@momjian.us>
Sun, 1 Aug 1999 16:30:05 +0000 (16:30 +0000)
committerBruce Momjian <bruce@momjian.us>
Sun, 1 Aug 1999 16:30:05 +0000 (16:30 +0000)
configure.in to determine if a system is ELF or not.  Note that some
of the tests earlier may be redundant but I took the safest route.

D'Arcy J.M. Cain

src/configure.in

index 5fde7567f2a235de9cb93cbafd25bc63f696063c..8a22a2f90d2108b8d33a36c8ffcbbb8ee6bc81fa 100644 (file)
@@ -58,11 +58,17 @@ nextstep*) os=nextstep need_tas=no ;;
    exit;;
 esac
 
-if test "X$elf" = "Xyes"
+# If this test fails then it is ELF for sure
+if echo __ELF__ | ${CC} -E - | grep -q __ELF__
 then
-       ELF_SYS=true
+       if test "X$elf" = "Xyes"
+       then
+               ELF_SYS=true
+       else
+               ELF_SYS=
+       fi
 else
-       ELF_SYS=
+       ELF_SYS=true
 fi
 
 if test "X$need_tas" = "Xyes"