]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
From Sedi Master Albert Chin <china@thewrittenword.com>:
authorGary V. Vaughan <gary@gnu.org>
Sat, 4 Aug 2001 19:57:09 +0000 (19:57 +0000)
committerGary V. Vaughan <gary@gnu.org>
Sat, 4 Aug 2001 19:57:09 +0000 (19:57 +0000)
* libtool.m4 (_LT_AC_SYS_LIBPATH_AIX): Replace the awk invocation
with an equivalent bit of sed wizardry.

ChangeLog
libtool.m4

index b57d40cf3bf37c4be35bf59c09be018603042bb4..9af72cfec9d81ad9f2e7e5edb919fd1c1c7c9836 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2001-08-04  Gary V. Vaughan  <gary@gnu.org>
 
+       From Sedi Master Albert Chin <china@thewrittenword.com>:
+       * libtool.m4 (_LT_AC_SYS_LIBPATH_AIX): Replace the awk invocation
+       with an equivalent bit of sed wizardry.
+
        From Edouard G. Parmelan <egp@free.fr>
        * libtool.m4 [darwin, openbsd]: Fix quoting problems with
        unquoted [] expressions.
index aee5c79a965da6a531f4cdbe76f8e5bad8e9969a..e315656533c68767cdb720a63a02daf20a57a78f 100644 (file)
@@ -231,9 +231,9 @@ compiler="[$]2"
 # to the aix ld manual.
 AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
 [AC_LINK_IFELSE(AC_LANG_PROGRAM,[
-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($[2] ~ /^\//) print $[2] }'`
+aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null |  sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^[0-9][0-9]*[ ][ ]*\(.*\)$/\1/; p; }; }'`
 # Check for a 64-bit object if we didn't find anything.
-if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($[2] ~ /^\//) print $[2] }'`; fi],[])
+if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null |  sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^[0-9][0-9]*[ ][ ]*\(.*\)$/\1/; p; }; }'`; fi],[])
 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 ])# _LT_AC_SYS_LIBPATH_AIX