]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
libtool: save an if statement, with a compound statement.
authorGary V. Vaughan <gary@gnu.org>
Tue, 2 Oct 2012 12:25:17 +0000 (19:25 +0700)
committerGary V. Vaughan <gary@gnu.org>
Tue, 2 Oct 2012 14:07:44 +0000 (21:07 +0700)
* build-aux/ltmain.m4sh (func_mode_link): Simplify.

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

index 2a4823c8e834a7d69160fe91698afb3a5aef75f8..6ff35d1ff0ad58366935320c5d66aecd98e42d10 100644 (file)
@@ -5717,9 +5717,8 @@ func_mode_link ()
 
        # This library was specified with -dlopen.
        if test dlopen = "$pass"; then
-         if test -z "$libdir"; then
-           func_fatal_error "cannot -dlopen a convenience library: \`$lib'"
-         fi
+         test -z "$libdir" \
+           && func_fatal_error "cannot -dlopen a convenience library: \`$lib'"
          if test -z "$dlname" ||
             test yes != "$dlopen_support" ||
             test no = "$build_libtool_libs"