]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
syntax-check: remove useless_braces_in_variable_derefs.
authorGary V. Vaughan <gary@gnu.org>
Sun, 16 Sep 2012 10:47:04 +0000 (17:47 +0700)
committerGary V. Vaughan <gary@gnu.org>
Sun, 16 Sep 2012 10:59:49 +0000 (17:59 +0700)
* build-aux/general.m4sh: Remove spurious braces around
${ZSH_VERSION} dereference.
* build-aux/ltmain.m4sh (func_mode_link): Likewise for ${wl}.

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

index d505ba5b188252a86a6e0f7dfee060fde6e334c5..82d932c63cd6fb2c01c17426100b594731a7bf0d 100644 (file)
@@ -78,7 +78,7 @@ basename='s|^.*/||'
 # We should try to minimise forks, especially on Windows where they are
 # unreasonably slow, so skip the feature probes when bash or zsh are
 # being used:
-if test set = "${BASH_VERSION+set}${ZSH_VERSION}"; then
+if test set = "${BASH_VERSION+set}$ZSH_VERSION"; then
     : ${lt_HAVE_ARITH_OP="yes"}
     : ${lt_HAVE_XSI_OPS="yes"}
     # The += operator was introduced in bash 3.1
index e26095f459c986b9d8e4af85a7778afae881ad8e..14f3c37ea627f4b9fec0c9f97979a94597061bb8 100644 (file)
@@ -6648,7 +6648,7 @@ func_mode_link ()
           # On Darwin other compilers
           case $CC in
               nagfor*)
-                  verstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
+                  verstring="$wl-compatibility_version $wl$minor_current $wl-current_version $wl$minor_current.$revision"
                   ;;
               *)
                   verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"