From 9053a05940aa5f697a86b423916365bd0c2cc523 Mon Sep 17 00:00:00 2001 From: "Gary V. Vaughan" Date: Tue, 2 Oct 2012 19:25:17 +0700 Subject: [PATCH] libtool: save an if statement, with a compound statement. * build-aux/ltmain.m4sh (func_mode_link): Simplify. Signed-off-by: Gary V. Vaughan --- build-aux/ltmain.m4sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/build-aux/ltmain.m4sh b/build-aux/ltmain.m4sh index 2a4823c8e..6ff35d1ff 100644 --- a/build-aux/ltmain.m4sh +++ b/build-aux/ltmain.m4sh @@ -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" -- 2.47.2