Updated for the new BSD ELF, not just for Linux anymore
This commit is contained in:
parent
7e1ad158c7
commit
f0e9ece68e
17
configure.in
17
configure.in
|
@ -166,17 +166,17 @@ AC_DEFUN(SCSH_GMTOFF,[
|
|||
])
|
||||
|
||||
dnl -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
|
||||
AC_DEFUN(SCSH_LINUX_ELF, [
|
||||
AC_MSG_CHECKING(for Linux using ELF)
|
||||
AC_CACHE_VAL(scsh_cv_linux_elf,[
|
||||
AC_DEFUN(SCSH_ELF, [
|
||||
AC_MSG_CHECKING(for ELF)
|
||||
AC_CACHE_VAL(scsh_cv_elf,[
|
||||
touch conftest.c
|
||||
if ${CC} -v -o a.out conftest.c 2>&1 | grep -q __ELF__ ; then
|
||||
scsh_cv_linux_elf=yes
|
||||
scsh_cv_elf=yes
|
||||
else
|
||||
scsh_cv_linux_elf=no
|
||||
scsh_cv_elf=no
|
||||
fi])
|
||||
AC_MSG_RESULT($scsh_cv_linux_elf)
|
||||
if test $scsh_cv_linux_elf = yes; then
|
||||
AC_MSG_RESULT($scsh_cv_elf)
|
||||
if test $scsh_cv_elf = yes; then
|
||||
LDFLAGS=-rdynamic
|
||||
fi
|
||||
rm -f conftest.c a.out
|
||||
|
@ -286,12 +286,13 @@ case "$host" in
|
|||
dir=linux
|
||||
# gross, but needed for some older a.out systems for 0.4.x
|
||||
LIBS=-lc
|
||||
SCSH_LINUX_ELF
|
||||
SCSH_ELF
|
||||
;;
|
||||
|
||||
## NetBSD and FreeBSD ( and maybe 386BSD also)
|
||||
*-*-*bsd* )
|
||||
dir=bsd
|
||||
SCSH_ELF
|
||||
;;
|
||||
|
||||
## NeXT
|
||||
|
|
Loading…
Reference in New Issue