Re: Problem with LT_PATH_NM
Peter Rosin <peda <at> lysator.liu.se>
2009-01-14 21:43:06 GMT
Den 2009-01-14 22:38 skrev Peter Rosin:
> Here's a patch that makes the configure check a bit more picky
"/&#%/#, wrong version of the patch.
Here's what I intended.
Cheers, and sorry for spamming,
Peter
diff --git a/libltdl/m4/libtool.m4 b/libltdl/m4/libtool.m4
index b7b566d..4968bf8 100644
--- a/libltdl/m4/libtool.m4
+++ b/libltdl/m4/libtool.m4
<at> <at> -3156,7 +3156,19 <at> <at> 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=:
(Continue reading)