diff options
author | Gary V. Vaughan <gary@gnu.org> | 2012-10-02 19:28:54 +0700 |
---|---|---|
committer | Gary V. Vaughan <gary@gnu.org> | 2012-10-02 21:07:48 +0700 |
commit | 2e7ba6d709a77471f5929cd8d347a86cc1fedd2d (patch) | |
tree | d846caa109f6d3d8fa5ef713715959c87559506f | |
parent | 9053a05940aa5f697a86b423916365bd0c2cc523 (diff) | |
download | libtool-2e7ba6d709a77471f5929cd8d347a86cc1fedd2d.tar.gz |
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 <gary@gnu.org>
-rw-r--r-- | build-aux/ltmain.m4sh | 6 | ||||
-rw-r--r-- | m4/libtool.m4 | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/build-aux/ltmain.m4sh b/build-aux/ltmain.m4sh index 6ff35d1f..af26717f 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 4e406a2f..8f469409 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 |