Branch: Tag:

1999-05-29

1999-05-29 15:20:51 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Fixed some bugs in the GNU ld detection.

Rev: src/configure.in:1.293

1: - AC_REVISION("$Id: configure.in,v 1.292 1999/05/29 14:44:36 grubba Exp $") + AC_REVISION("$Id: configure.in,v 1.293 1999/05/29 15:20:51 grubba Exp $")   AC_INIT(interpret.c)   AC_CONFIG_HEADER(machine.h)   
189:      #############################################################################    - # 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)
267:      #############################################################################    + # Some sanity checks.    -  + if test "$GCC" = "yes" -a "$pike_cv_sys_os" = "Solaris" -a "`uname -p`" = "sparc"; then +  # Solaris/sparc: +  # Check that gnu ld isn't used. +  # It's usually hidden in $prefix/sparc-sun-solaris2.?/bin/. +  # NOTE: M4 uses [] as quotes. +  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 +  + ############################################################################# +  +  +    AC_ARG_WITH(dynamic_modules, [ --without-dynamic-modules link modules statically],[],[with_dynamic_modules=yes])   AC_ARG_WITH(static_linking, [ --with-static-linking link statically, if possible],[with_static_linking=yes],[])   AC_ARG_WITH(include-path,[ --with-include-path A list of paths to search for include files.])