]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* ltmain.in (link mode) < test_compile >: Fix a couple of instances
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sun, 5 Feb 2006 10:25:50 +0000 (10:25 +0000)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sun, 5 Feb 2006 10:25:50 +0000 (10:25 +0000)
where `test .. -ne ..' would possibly compare non-numbers.  Clean up a
bit.

ChangeLog
ltmain.in

index 9ecbc3d8b001f0d4cd4896bfc7bea0ea758f0d52..c3fc52b80ff60ec99cafa953e6ee2440821c6f8d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2006-02-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       * ltmain.in (link mode) < test_compile >: Fix a couple of instances
+       where `test .. -ne ..' would possibly compare non-numbers.  Clean up a
+       bit.
+
 2006-02-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
        * libtool.m4 [ solaris ] (AC_LIBTOOL_LANG_CXX_CONFIG)
index d9503d194252383ee879546e88f59ed9e9ba5dbb..37398b54ea300527a4462b30a35abc6686f00b9f 100644 (file)
--- a/ltmain.in
+++ b/ltmain.in
@@ -3524,13 +3524,12 @@ EOF
          int main() { return 0; }
 EOF
          $rm conftest
-         $LTCC $LTCFLAGS -o conftest conftest.c $deplibs
-         if test "$?" -eq 0 ; then
+         if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
            ldd_output=`ldd conftest`
            for i in $deplibs; do
              name=`expr $i : '-l\(.*\)'`
              # If $name is empty we are operating on a -L argument.
-              if test "$name" != "" && test "$name" -ne "0"; then
+              if test "$name" != "" && test "$name" != "0"; then
                if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
                  case " $predeps $postdeps " in
                  *" $i "*)
@@ -3569,9 +3568,7 @@ EOF
              # If $name is empty we are operating on a -L argument.
               if test "$name" != "" && test "$name" != "0"; then
                $rm conftest
-               $LTCC $LTCFLAGS -o conftest conftest.c $i
-               # Did it work?
-               if test "$?" -eq 0 ; then
+               if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
                  ldd_output=`ldd conftest`
                  if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
                    case " $predeps $postdeps " in
@@ -3603,7 +3600,7 @@ EOF
                  droppeddeps=yes
                  $echo
                  $echo "*** Warning!  Library $i is needed by this library but I was not able to"
-                 $echo "***  make it link in!  You will probably need to install it or some"
+                 $echo "*** make it link in!  You will probably need to install it or some"
                  $echo "*** library that it depends on before this library will be fully"
                  $echo "*** functional.  Installing it before continuing would be even better."
                fi