]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* ltmain.in: Some versions of expr respond with "0" if a
authorPaul Berrevoets <paul@swi.com>
Mon, 20 Nov 2000 22:03:43 +0000 (22:03 +0000)
committerGary V. Vaughan <gary@gnu.org>
Mon, 20 Nov 2000 22:03:43 +0000 (22:03 +0000)
regexp fails to match.

ChangeLog
doc/PLATFORMS
ltmain.in

index 88dfed7ebec78f97fdd618026c1fb6271f045489..8d538171ec4edd8658f9b4cf4fdf7569e13efc45 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,9 @@
-2000-11-19  Paul Berrevoets  <paul@swi.com>       
+2000-11-20  Paul Berrevoets  <paul@swi.com>
+
+       * ltmain.in: Some versions of expr respond with "0" if a
+       regexp fails to match.
+
+2000-11-19  Paul Berrevoets  <paul@swi.com>
        
        * libtool.m4 (_LT_AC_LTCONFIG_HACK): Quote the $ in $#, $2 and
        $3 in variable 'archive_expsym_cmds' for cygwin.
index e4c81aad6c57b74e26da6cd30d8801eeb375aa12..df23e92140b3b3a2f5fd8ec0234e8a7aea659717 100644 (file)
@@ -13,7 +13,7 @@ alpha*-unknown-linux-gnu        gcc      1.3b     ok
 hppa2.0w-hp-hpux11.00           cc       1.2f     ok
 hppa2.0-hp-hpux10.20            cc       1.3.2    ok
 hppa1.1-hp-hpux10.20            gcc      1.2f     ok
-hppa1.1-hp-hpux10.20            cc       1.2f     ok
+hppa1.1-hp-hpux10.20            cc       1.3c     ok (1.821)
 hppa1.1-hp-hpux10.10            gcc      1.2f     ok
 hppa1.1-hp-hpux10.10            cc       1.2f     ok
 hppa1.1-hp-hpux9.07             gcc      1.2f     ok
index f73f5cd2f53cd621d537193bfe2857496aa3bb1b..147e39cdac99872cd19eaef83cf7a8cd36db015a 100644 (file)
--- a/ltmain.in
+++ b/ltmain.in
@@ -2443,7 +2443,7 @@ EOF
            for i in $deplibs; do
              name="`expr $i : '-l\(.*\)'`"
              # If $name is empty we are operating on a -L argument.
-             if test "$name" != "" ; then
+             if test "$name" != "" -a "$name" != "0"; then
                libname=`eval \\$echo \"$libname_spec\"`
                deplib_matches=`eval \\$echo \"$library_names_spec\"`
                set dummy $deplib_matches
@@ -2468,7 +2468,7 @@ EOF
            for i in $deplibs; do
              name="`expr $i : '-l\(.*\)'`"
             # If $name is empty we are operating on a -L argument.
-             if test "$name" != "" ; then
+             if test "$name" != "" -a "$name" != "0"; then
                $rm conftest
                $CC -o conftest conftest.c $i
                # Did it work?
@@ -2508,7 +2508,7 @@ EOF
          for a_deplib in $deplibs; do
            name="`expr $a_deplib : '-l\(.*\)'`"
            # If $name is empty we are operating on a -L argument.
-           if test "$name" != "" ; then
+           if test "$name" != "" -a "$name" != "0"; then
              libname=`eval \\$echo \"$libname_spec\"`
              for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
                    potential_libs=`ls $i/$libname[.-]* 2>/dev/null`