From: Gary V. Vaughan Date: Tue, 2 Oct 2012 12:28:54 +0000 (+0700) Subject: libtool: simplify an if statement X-Git-Tag: v2.4.2.418~168^2~4 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=2e7ba6d709a77471f5929cd8d347a86cc1fedd2d;p=thirdparty%2Flibtool.git libtool: simplify an if statement * 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 --- diff --git a/build-aux/ltmain.m4sh b/build-aux/ltmain.m4sh index 6ff35d1ff..af26717f9 100644 --- a/build-aux/ltmain.m4sh +++ b/build-aux/ltmain.m4sh @@ -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 diff --git a/m4/libtool.m4 b/m4/libtool.m4 index 4e406a2fc..8f4694097 100644 --- a/m4/libtool.m4 +++ b/m4/libtool.m4 @@ -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