From d6690cc7b396ea5e9e9b4f50749d89ad5860d84c Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Fri, 24 Apr 2009 02:05:23 +0000 Subject: Fix recognition of "nm" command. --- m4/libtool.m4 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'm4') diff --git a/m4/libtool.m4 b/m4/libtool.m4 index 11f9282..559f1d9 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 -- cgit v1.1