aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>1999-08-01 16:30:05 +0000
committerBruce Momjian <bruce@momjian.us>1999-08-01 16:30:05 +0000
commitb2a0a4e8f5dc9a5b60ae2fda4938f993bcfaf7f8 (patch)
treeb5026e573de7c5d115f6cf50e3f3863a76811b91
parentaa1bbed7da1c5cd2ca443b696adac965c7509ba5 (diff)
downloadpostgresql-b2a0a4e8f5dc9a5b60ae2fda4938f993bcfaf7f8.tar.gz
postgresql-b2a0a4e8f5dc9a5b60ae2fda4938f993bcfaf7f8.zip
I didn't see any further discussion so here is, I hope, a clean fix to
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
-rw-r--r--src/configure.in12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/configure.in b/src/configure.in
index 5fde7567f2a..8a22a2f90d2 100644
--- a/src/configure.in
+++ b/src/configure.in
@@ -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"