From: Tom Kacvinsky Date: Sat, 2 Sep 2000 22:50:48 +0000 (+0000) Subject: * libtool.m4: Ignore Tru64's nm's complaint. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e8c0bbfe623bd72e2a2ad321f304df10e8fde0d7;p=thirdparty%2Flibtool.git * libtool.m4: Ignore Tru64's nm's complaint. * ltconfig.in: Likewise. --- diff --git a/ChangeLog b/ChangeLog index 051cc1225..00d9768f2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2000-09-02 Tom Kacvinsky , Tim Mooney + + * libtool.m4: Ignore Tru64's nm's complaint. + * ltconfig.in: Likewise. + 2000-09-02 Pavel Roskin * ltconfig.in: only load $cache_file if it's a regular file diff --git a/libtool.m4 b/libtool.m4 index 6788fe845..ca6cc98c2 100644 --- a/libtool.m4 +++ b/libtool.m4 @@ -329,7 +329,8 @@ else # Check to see if the nm accepts a BSD-compat flag. # Adding the `sed 1q' prevents false positives on HP-UX, which says: # nm: unknown option "B" ignored - if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then + # Tru64's nm complains that /dev/null is an invalid object file + if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null||Invalid file or object type)' >/dev/null; then ac_cv_path_NM="$tmp_nm -B" break elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then diff --git a/ltconfig.in b/ltconfig.in index 3bdc93007..b08999448 100755 --- a/ltconfig.in +++ b/ltconfig.in @@ -1572,7 +1572,8 @@ if test -z "$NM"; then # Check to see if the nm accepts a BSD-compat flag. # Adding the `sed 1q' prevents false positives on HP-UX, which says: # nm: unknown option "B" ignored - if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then + # Tru64's nm complains that /dev/null is an invalid object file + if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then NM="$ac_dir/nm -B" break elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then