]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libtool.m4: Sync methods used to detect GNU ld.
authorAlbert Chin-A-Young <china@thewrittenword.com>
Mon, 30 Dec 2002 16:30:22 +0000 (16:30 +0000)
committerRobert Boehne <rboehne@gnu.org>
Mon, 30 Dec 2002 16:30:22 +0000 (16:30 +0000)
ChangeLog
libtool.m4

index 02b268df8bbcb61c2201ceeee021045ab0aa8143..e2ef704192255d959ca1953b03a17407f14ae766 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2002-12-30  Albert Chin-A-Young <china@thewrittenword.com>
+
+       * libtool.m4: Sync methods used to detect GNU ld.
+
 2002-12-20  Robert Boehne  <rboehne@gnu.org>
 
        * libtool.m4 (AC_LIBTOOL_COMPILER_OPTION,
index 5e0249b09692c9676b02e888f04b9f18664e4996..b7bd409d3bcce6603863b67bf4f9728006fffda5 100644 (file)
@@ -1933,11 +1933,14 @@ AC_DEFUN([AC_PROG_LD_GNU],
 [AC_REQUIRE([AC_PROG_EGREP])dnl
 AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_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|with BFD)' 1>&5; then
+case `"$LD" -v 2>&1 </dev/null` in
+*GNU* | *'with BFD'*)
   lt_cv_prog_gnu_ld=yes
-else
+  ;;
+*)
   lt_cv_prog_gnu_ld=no
-fi])
+  ;;
+esac])
 with_gnu_ld=$lt_cv_prog_gnu_ld
 ])# AC_PROG_LD_GNU