From 7ce429c52729130b360206c61396ffe2f5467134 Mon Sep 17 00:00:00 2001 From: "Gary V. Vaughan" Date: Tue, 2 Oct 2012 18:08:29 +0700 Subject: [PATCH] libtool: use false or : for $finalize, and simplify * build-aux/ltmain.m4sh (func_mode_install): Save a string comparison by setting $finalize to false or : and using it directly as the first argument to if. Signed-off-by: Gary V. Vaughan --- build-aux/ltmain.m4sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build-aux/ltmain.m4sh b/build-aux/ltmain.m4sh index 22bb232bc..9771fcf0b 100644 --- a/build-aux/ltmain.m4sh +++ b/build-aux/ltmain.m4sh @@ -2348,7 +2348,7 @@ func_mode_install () test -z "$generated_by_libtool_version" && \ func_fatal_error "invalid libtool wrapper script \`$wrapper'" - finalize=yes + finalize=: for lib in $notinst_deplibs; do # Check to see that each library is installed. libdir= @@ -2358,7 +2358,7 @@ func_mode_install () libfile=$libdir/`$ECHO "$lib" | $SED 's%^.*/%%g'` if test -n "$libdir" && test ! -f "$libfile"; then func_warning "\`$lib' has not been installed in \`$libdir'" - finalize=no + finalize=false fi done @@ -2368,7 +2368,7 @@ func_mode_install () outputname= if test no = "$fast_install" && test -n "$relink_command"; then $opt_dry_run || { - if test yes = "$finalize"; then + if $finalize; then tmpdir=`func_mktempdir` func_basename "$file$stripped_ext" file=$func_basename_result -- 2.47.2