]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
libtool: simplify an if statement
authorGary V. Vaughan <gary@gnu.org>
Tue, 2 Oct 2012 12:28:54 +0000 (19:28 +0700)
committerGary V. Vaughan <gary@gnu.org>
Tue, 2 Oct 2012 14:07:48 +0000 (21:07 +0700)
* build-aux/ltmain.m4sh (func_mode_link): Reverse the branch
order for an if statement for readability.
* m4/libtool.m4: Likewise.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
build-aux/ltmain.m4sh
m4/libtool.m4

index 6ff35d1ff0ad58366935320c5d66aecd98e42d10..af26717f94c5290975c15d34bcba698c0facb69a 100644 (file)
@@ -6362,10 +6362,10 @@ func_mode_link ()
          newlib_search_path=
        }
 
-       if test prog,link != "$linkmode,$pass"; then
-         vars=deplibs
-       else
+       if test prog,link = "$linkmode,$pass"; then
          vars="compile_deplibs finalize_deplibs"
+       else
+         vars=deplibs
        fi
        for var in $vars dependency_libs; do
          # Add libraries to $var in reverse order
index 4e406a2fc1d708047f1228afc07f1adf1aa73c98..8f4694097a6ce9483ad74abc060a5054ecad09df 100644 (file)
@@ -1902,10 +1902,10 @@ else
     ;;
   esac
 
-  if test no != "$lt_cv_dlopen"; then
-    enable_dlopen=yes
-  else
+  if test no = "$lt_cv_dlopen"; then
     enable_dlopen=no
+  else
+    enable_dlopen=yes
   fi
 
   case $lt_cv_dlopen in