diff options
author | Bruno Haible <bruno@clisp.org> | 2009-04-24 02:04:36 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2009-06-23 12:16:04 +0200 |
commit | a08f4deafe217d457e35c394545b1e1aa27c02ba (patch) | |
tree | 42c9140fc9a52029f4e5cbb07841ddfa4d3f2b93 /m4 | |
parent | ecae217af9f395f2166e2b5540aa9a86c481592c (diff) | |
download | external_gettext-a08f4deafe217d457e35c394545b1e1aa27c02ba.zip external_gettext-a08f4deafe217d457e35c394545b1e1aa27c02ba.tar.gz external_gettext-a08f4deafe217d457e35c394545b1e1aa27c02ba.tar.bz2 |
Fix recognition of 'link' command.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/libtool.m4 | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/m4/libtool.m4 b/m4/libtool.m4 index 6f12a74..11f9282 100644 --- a/m4/libtool.m4 +++ b/m4/libtool.m4 @@ -1,7 +1,7 @@ # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, -# 2006, 2007, 2008 Free Software Foundation, Inc. +# 2006, 2007, 2008, 2009 Free Software Foundation, Inc. # Written by Gordon Matzigkeit, 1996 # # This file is free software; the Free Software Foundation gives @@ -3218,7 +3218,19 @@ if test "$lt_cv_path_NM" != "no"; then NM="$lt_cv_path_NM" else # Didn't find any BSD compatible name lister, look for dumpbin. - AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :) + if test -n "$DUMPBIN"; then : + # Let the user override the test. + else + AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :) + case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in + *COFF*) + DUMPBIN="$DUMPBIN -symbols" + ;; + *) + DUMPBIN=: + ;; + esac + fi AC_SUBST([DUMPBIN]) if test "$DUMPBIN" != ":"; then NM="$DUMPBIN" |