From 772f47e595b2ba111fdadcf4edb5b176c409bd46 Mon Sep 17 00:00:00 2001 From: bdc Date: Sat, 4 Nov 1995 04:28:27 +0000 Subject: [PATCH] *** empty log message *** --- configure.in | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/configure.in b/configure.in index e6eac82..74b1a15 100644 --- a/configure.in +++ b/configure.in @@ -166,6 +166,24 @@ AC_DEFUN(SCSH_LINUX_ELF, [ rm -f conftest.c a.out ]) +dnl -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- +AC_DEFUN(SCSH_LINUX_STATIC_DEBUG, [ + case "$host" in + *-*-linux* ) + AC_MSG_CHECKING(for broken Linux that needs -static with -g) + AC_CACHE_VAL(scsh_cv_linux_static_debug,[ + AC_TRY_LINK([], + [], + $scsh_cv_linux_static_debug = no, + $scsh_cv_linux_static_debug = yes)]) + AC_MSG_RESULT($scsh_cv_linux_static_debug) + if test $scsh_cv_linux_static_debug = yes; then + LDFLAGS="-static ${LDFLAGS}" + fi + ;; + esac +]) + dnl -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- AC_DEFUN(SCSH_CONST_SYS_ERRLIST,[ AC_MSG_CHECKING(for const sys_errlist) @@ -188,6 +206,7 @@ AC_CONFIG_HEADER(sysdep.h) AC_CANONICAL_HOST AC_PROG_CC +SCSH_LINUX_STATIC_DEBUG AC_PROG_INSTALL AC_PROG_RANLIB AC_ISC_POSIX @@ -253,7 +272,7 @@ case "$host" in SCSH_LINUX_ELF ;; - ## NetBSD (maybe FreeBSD and 386BSD also) + ## NetBSD and FreeBSD( and maybe 386BSD also) *-*-*bsd* ) dir=bsd ;;