Skip to content

Commit b2a0a4e

Browse files
committed
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
1 parent aa1bbed commit b2a0a4e

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/configure.in

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,17 @@ nextstep*) os=nextstep need_tas=no ;;
5858
exit;;
5959
esac
6060

61-
if test "X$elf" = "Xyes"
61+
# If this test fails then it is ELF for sure
62+
if echo __ELF__ | ${CC} -E - | grep -q __ELF__
6263
then
63-
ELF_SYS=true
64+
if test "X$elf" = "Xyes"
65+
then
66+
ELF_SYS=true
67+
else
68+
ELF_SYS=
69+
fi
6470
else
65-
ELF_SYS=
71+
ELF_SYS=true
6672
fi
6773

6874
if test "X$need_tas" = "Xyes"

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy