diff --git a/src/configure.in b/src/configure.in index db9c0129485d3dd034807c29bec20a99699e13a1..becbf17267d6ed8a97c07f51af95b7c2843d89b0 100644 --- a/src/configure.in +++ b/src/configure.in @@ -1,4 +1,4 @@ -AC_REVISION("$Id: configure.in,v 1.291 1999/05/28 19:49:26 grubba Exp $") +AC_REVISION("$Id: configure.in,v 1.292 1999/05/29 14:44:36 grubba Exp $") AC_INIT(interpret.c) AC_CONFIG_HEADER(machine.h) @@ -187,6 +187,26 @@ export REALCC SMARTLINK AC_AIX AC_MINIX +############################################################################# + +# Some sanity checks. + +if test "$GCC" = "yes" -a "`uname -sp`" = "SunOS sparc"; then + # Solaris/sparc: + # Check that gnu ld isn't used. + # It's usually hidden in $prefix/sparc-sun-solaris2.?/bin/. + gcc_ld_path="`$CC -v 2>&1 | sed -e '1,1s/[^\/]*\(\/.*\/\)[^\/]*$/\1/p;d' | sed -e '/lib\/gcc-lib\//s/lib\/gcc-lib\///;s/\/[0-9]*\.[0-9]*\.[0-9]*\/$/\/bin/'`" + if test "x$gcc_ld_path" = "x"; then :; else + if "$gcc_ld_path/ld" -v 2>&1 | grep -i GNU >/dev/null; then + AC_MSG_WARN([GNU ld found on Solaris sparc system ($gcc_ld_path/ld).]) + AC_MSG_WARN([This may cause the dynamic module support to fail.]) + else :; fi + fi + unset gcc_ld_path +else :; fi + +############################################################################# + # We need some special hacks when running slowaris AC_PATH_PROG(uname_prog,uname,no) AC_MSG_CHECKING(operating system)