From: Bruno Haible Date: Fri, 24 Apr 2009 02:05:23 +0000 (+0000) Subject: Fix recognition of "nm" command. X-Git-Tag: v0.18~212 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d6690cc7b396ea5e9e9b4f50749d89ad5860d84c;p=thirdparty%2Fgettext.git Fix recognition of "nm" command. --- diff --git a/ChangeLog b/ChangeLog index 7fef78d67..2afae4551 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-04-23 Bruno Haible + + Fix recognition of "nm" command. + * m4/libtool.m4 (LT_PATH_NM): Try "nm" program also when compiling for + mingw in a cygwin environment. + 2009-04-23 Bruno Haible * m4/libtool.m4: Fix recognition of 'link' command. diff --git a/m4/libtool.m4 b/m4/libtool.m4 index 11f928298..559f1d9da 100644 --- a/m4/libtool.m4 +++ b/m4/libtool.m4 @@ -3176,7 +3176,10 @@ AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM, lt_cv_path_NM="$NM" else lt_nm_to_check="${ac_tool_prefix}nm" - if test -n "$ac_tool_prefix" && test "$build" = "$host"; then + if test -n "$ac_tool_prefix" \ + && { test "$build" = "$host" \ + || { test "$build_os" = cygwin && test "$host_os" = mingw32; }; \ + }; then lt_nm_to_check="$lt_nm_to_check nm" fi for lt_tmp_nm in $lt_nm_to_check; do