diff options
author | Mikael Djurfeldt <djurfeldt@nada.kth.se> | 1997-08-25 20:05:30 +0000 |
---|---|---|
committer | Mikael Djurfeldt <djurfeldt@nada.kth.se> | 1997-08-25 20:05:30 +0000 |
commit | 02fbff5e8d78c0815dc4d1e278671529382565d6 (patch) | |
tree | d9b8949d8622a392ff21311ba423692c12d213e4 /aclocal.m4 | |
parent | b0a0bd4533ee933192d4edb20c2ce34ccfce7277 (diff) | |
download | guile-02fbff5e8d78c0815dc4d1e278671529382565d6.tar.gz |
Regenerated.
Diffstat (limited to 'aclocal.m4')
-rw-r--r-- | aclocal.m4 | 50 |
1 files changed, 34 insertions, 16 deletions
diff --git a/aclocal.m4 b/aclocal.m4 index 728ce13e9..110c93999 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -242,12 +242,13 @@ done<<>>dnl>>) changequote([,]))]) -# serial 7 AM_PROG_LIBTOOL +# serial 9 AM_PROG_LIBTOOL AC_DEFUN(AM_PROG_LIBTOOL, [AC_REQUIRE([AC_CANONICAL_HOST]) AC_REQUIRE([AC_PROG_CC]) AC_REQUIRE([AC_PROG_RANLIB]) -AC_REQUIRE([AM_PATH_PROG_LD]) +AC_REQUIRE([AM_PROG_LD]) +AC_REQUIRE([AC_PROG_LN_S]) # Always use our own libtool. LIBTOOL='$(top_builddir)/libtool' @@ -268,6 +269,7 @@ libtool_static=) libtool_flags="$libtool_shared$libtool_static" test "$silent" = yes && libtool_flags="$libtool_flags --silent" test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc" +test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" # Some flags need to be propagated to the compiler or linker for good # libtool support. @@ -287,17 +289,24 @@ test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc" esac] # Actually configure libtool. ac_aux_dir is where install-sh is found. -CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" LD="$LD" RANLIB="$RANLIB" \ +CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ +LD="$LD" RANLIB="$RANLIB" LN_S="$LN_S" \ ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \ $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \ || AC_MSG_ERROR([libtool configure failed]) ]) -# AM_PATH_PROG_LD - find out which linker is being used by the C compiler -AC_DEFUN(AM_PATH_PROG_LD, -[AC_REQUIRE([AC_PROG_CC]) -AC_MSG_CHECKING([for ld used by the C compiler ($CC $CFLAGS $LDFLAGS)]) -AC_CACHE_VAL(am_cv_path_LD, +# AM_PROG_LD - find the path to the GNU or non-GNU linker +AC_DEFUN(AM_PROG_LD, +[AC_ARG_WITH(gnu-ld, +[ --with-gnu-ld assume the C compiler uses GNU ld [default=no]], +test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no) +if test "$with_gnu_ld" = yes; then + AC_MSG_CHECKING([for GNU ld]) +else + AC_MSG_CHECKING([for non-GNU ld]) +fi +AC_CACHE_VAL(ac_cv_path_LD, [case "$LD" in /*) ac_cv_path_LD="$LD" # Let the user override the test with a path. @@ -307,23 +316,21 @@ AC_CACHE_VAL(am_cv_path_LD, for ac_dir in $PATH; do test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/ld"; then + ac_cv_path_LD="$ac_dir/ld" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some GNU ld's only accept -v. - if "$ac_dir/ld" -v 2>&1 < /dev/null | egrep '(GNU ld|with BFD)' > /dev/null; then - # If it was GNU ld, only accept it if we're using GCC. - am_cv_path_LD="$ac_dir/ld" - test "$ac_cv_prog_gcc" = yes && break + # Break only if it was the GNU/non-GNU ld that we prefer. + if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU ld|with BFD)' > /dev/null; then + test "$with_gnu_ld" = yes && break else - # If it was not GNU ld, and we are not using GCC, then accept it. - am_cv_path_LD="$ac_dir/ld" - break + test "$with_gnu_ld" != yes && break fi fi done IFS="$ac_save_ifs" ;; esac]) -LD="$am_cv_path_LD" +LD="$ac_cv_path_LD" if test -n "$LD"; then AC_MSG_RESULT($LD) else @@ -331,6 +338,17 @@ else fi test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) AC_SUBST(LD) +AM_PROG_LD_GNU +]) + +AC_DEFUN(AM_PROG_LD_GNU, +[AC_CACHE_CHECK([whether we are using GNU ld], ac_cv_prog_gnu_ld, +[# I'd rather use --version here, but apparently some GNU ld's only accept -v. +if $LD -v 2>&1 </dev/null | egrep '(GNU ld|with BFD)' > /dev/null; then + ac_cv_prog_gnu_ld=yes +else + ac_cv_prog_gnu_ld=no +fi]) ]) dnl |