libtool-2.5.4-9.fc44

List of Findings

Error: SHELLCHECK_WARNING (CWE-563): [#def1]
/usr/bin/libtool:44:1: warning[SC2034]: AS appears unused. Verify use (or export if used externally).
#   42|   
#   43|   # Assembler program.
#   44|-> AS="as"
#   45|   
#   46|   # DLL creation program.

Error: SHELLCHECK_WARNING (CWE-563): [#def2]
/usr/bin/libtool:65:1: warning[SC2034]: shared_archive_member_spec appears unused. Verify use (or export if used externally).
#   63|   
#   64|   # Shared archive member basename,for filename based shared library versioning on AIX.
#   65|-> shared_archive_member_spec=
#   66|   
#   67|   # Shell to use when invoking shell scripts.

Error: SHELLCHECK_WARNING (CWE-563): [#def3]
/usr/bin/libtool:82:1: warning[SC2034]: build_alias appears unused. Verify use (or export if used externally).
#   80|   
#   81|   # The build system.
#   82|-> build_alias=x86_64-redhat-linux
#   83|   build=x86_64-redhat-linux-gnu
#   84|   build_os=linux-gnu

Error: SHELLCHECK_WARNING (CWE-563): [#def4]
/usr/bin/libtool:84:1: warning[SC2034]: build_os appears unused. Verify use (or export if used externally).
#   82|   build_alias=x86_64-redhat-linux
#   83|   build=x86_64-redhat-linux-gnu
#   84|-> build_os=linux-gnu
#   85|   
#   86|   # A sed program that does not truncate output.

Error: SHELLCHECK_WARNING (CWE-456): [#def5]
/usr/bin/libtool:117:1: warning[SC2209]: Use var=$(command) to assign output (or quote to assign string).
#  115|   
#  116|   # whether the shell understands "unset".
#  117|-> lt_unset=unset
#  118|   
#  119|   # turn spaces into newlines.

Error: SHELLCHECK_WARNING (CWE-563): [#def6]
/usr/bin/libtool:132:1: warning[SC2034]: FILECMD appears unused. Verify use (or export if used externally).
#  130|   
#  131|   # A file(cmd) program that detects file types.
#  132|-> FILECMD="file"
#  133|   
#  134|   # Method to check whether dependent libraries are shared objects.

Error: SHELLCHECK_WARNING (CWE-563): [#def7]
/usr/bin/libtool:156:1: warning[SC2034]: AR_FLAGS appears unused. Verify use (or export if used externally).
#  154|   
#  155|   # Flags to create an archive.
#  156|-> AR_FLAGS=${ARFLAGS-"$lt_ar_flags"}
#  157|   
#  158|   # How to feed a file listing to the archiver.

Error: SHELLCHECK_WARNING (CWE-563): [#def8]
/usr/bin/libtool:209:1: warning[SC2034]: MAGIC_CMD appears unused. Verify use (or export if used externally).
#  207|   
#  208|   # Used to examine libraries when file_magic_cmd begins with "file".
#  209|-> MAGIC_CMD=file
#  210|   
#  211|   # Must we lock files when doing compilation?

Error: SHELLCHECK_WARNING (CWE-456): [#def9]
/usr/bin/libtool:209:1: warning[SC2209]: Use var=$(command) to assign output (or quote to assign string).
#  207|   
#  208|   # Used to examine libraries when file_magic_cmd begins with "file".
#  209|-> MAGIC_CMD=file
#  210|   
#  211|   # Must we lock files when doing compilation?

Error: SHELLCHECK_WARNING (CWE-563): [#def10]
/usr/bin/libtool:215:1: warning[SC2034]: MANIFEST_TOOL appears unused. Verify use (or export if used externally).
#  213|   
#  214|   # Manifest tool.
#  215|-> MANIFEST_TOOL=":"
#  216|   
#  217|   # Tool to manipulate archived DWARF debug symbol files on Mac OS X.

Error: SHELLCHECK_WARNING (CWE-563): [#def11]
/usr/bin/libtool:218:1: warning[SC2034]: DSYMUTIL appears unused. Verify use (or export if used externally).
#  216|   
#  217|   # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
#  218|-> DSYMUTIL=""
#  219|   
#  220|   # Tool to change global to local symbols on Mac OS X.

Error: SHELLCHECK_WARNING (CWE-563): [#def12]
/usr/bin/libtool:221:1: warning[SC2034]: NMEDIT appears unused. Verify use (or export if used externally).
#  219|   
#  220|   # Tool to change global to local symbols on Mac OS X.
#  221|-> NMEDIT=""
#  222|   
#  223|   # Tool to manipulate fat objects and archives on Mac OS X.

Error: SHELLCHECK_WARNING (CWE-563): [#def13]
/usr/bin/libtool:299:1: warning[SC2034]: configure_time_lt_sys_library_path appears unused. Verify use (or export if used externally).
#  297|   
#  298|   # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
#  299|-> configure_time_lt_sys_library_path="/usr/lib64:"
#  300|   
#  301|   # Whether dlopen is supported.

Error: SHELLCHECK_WARNING (CWE-156): [#def14]
/usr/bin/libtool:488:19: warning[SC2046]: Quote this to prevent word splitting.
#  486|           ;;
#  487|       *:)
#  488|->         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
#  489|           ;;
#  490|       x:*)

Error: SHELLCHECK_WARNING (CWE-156): [#def15]
/usr/bin/libtool:491:24: warning[SC2046]: Quote this to prevent word splitting.
#  489|           ;;
#  490|       x:*)
#  491|->         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
#  492|           ;;
#  493|       *::*)

Error: SHELLCHECK_WARNING (CWE-156): [#def16]
/usr/bin/libtool:494:25: warning[SC2046]: Quote this to prevent word splitting.
#  492|           ;;
#  493|       *::*)
#  494|->         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
#  495|           eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
#  496|           ;;

Error: SHELLCHECK_WARNING (CWE-156): [#def17]
/usr/bin/libtool:495:19: warning[SC2046]: Quote this to prevent word splitting.
#  493|       *::*)
#  494|           eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
#  495|->         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
#  496|           ;;
#  497|       *)

Error: SHELLCHECK_WARNING (CWE-156): [#def18]
/usr/bin/libtool:498:19: warning[SC2046]: Quote this to prevent word splitting.
#  496|           ;;
#  497|       *)
#  498|->         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
#  499|           ;;
#  500|       esac

Error: SHELLCHECK_WARNING (CWE-563): [#def19]
/usr/bin/libtool:631:3: warning[SC2034]: NULLCMD appears unused. Verify use (or export if used externally).
#  629|   if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
#  630|     emulate sh
#  631|->   NULLCMD=:
#  632|     # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
#  633|     # is contrary to our usage.  Disable this feature.

Error: SHELLCHECK_WARNING (CWE-398): [#def20]
/usr/bin/libtool:634:12: error[SC2142]: Aliases can't use positional parameters. Use a function.
#  632|     # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
#  633|     # is contrary to our usage.  Disable this feature.
#  634|->   alias -g '${1+"$@"}'='"$@"'
#  635|     setopt NO_GLOB_SUBST
#  636|   else

Error: SHELLCHECK_WARNING: [#def21]
/usr/bin/libtool:637:50: warning[SC3040]: In POSIX sh, set option posix is undefined.
#  635|     setopt NO_GLOB_SUBST
#  636|   else
#  637|->   case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac
#  638|   fi
#  639|   

Error: SHELLCHECK_WARNING (CWE-563): [#def22]
/usr/bin/libtool:670:24: warning[SC2034]: FPATH appears unused. Verify use (or export if used externally).
#  668|     PATH_SEPARATOR=:
#  669|     (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
#  670|->     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
#  671|         PATH_SEPARATOR=';'
#  672|     }

Error: SHELLCHECK_WARNING: [#def23]
/usr/bin/libtool:905:7: warning[SC2141]: This IFS value contains a literal backslash. For tabs/linefeeds/escapes, use $'..', literal, or printf.
#  903|   {
#  904|     _G_save_IFS=$IFS
#  905|->   IFS='\'
#  906|     _G_check_ifs_backshlash='a\\b'
#  907|     for _G_i in $_G_check_ifs_backshlash

Error: SHELLCHECK_WARNING (CWE-563): [#def24]
/usr/bin/libtool:947:1: warning[SC2034]: EXIT_SKIP appears unused. Verify use (or export if used externally).
#  945|   EXIT_FAILURE=1
#  946|   EXIT_MISMATCH=63  # $? = 63 is used to indicate version mismatch to missing.
#  947|-> EXIT_SKIP=77	  # $? = 77 is used to indicate a skipped test to automake.
#  948|   
#  949|   # Allow overriding, eg assuming that you follow the convention of

Error: SHELLCHECK_WARNING (CWE-457): [#def25]
/usr/bin/libtool:1177:19: warning[SC2154]: _G_current_value is referenced but not assigned.
# 1175|       _G_delim=`expr "$2" : '\(.\)'`
# 1176|   
# 1177|->     case $_G_delim$_G_current_value$_G_delim in
# 1178|         *"$2$_G_delim"*) ;;
# 1179|         *) func_append "$@" ;;

Error: SHELLCHECK_WARNING: [#def26]
/usr/bin/libtool:1469:32: warning[SC3028]: In POSIX sh, RANDOM is undefined.
# 1467|         if test ! -d "$_G_tmpdir"; then
# 1468|           # Failing that, at least try and use $RANDOM to avoid a race
# 1469|->         _G_tmpdir=$_G_template-${RANDOM-0}$$
# 1470|   
# 1471|           func_mktempdir_umask=`umask`

Error: SHELLCHECK_WARNING (CWE-457): [#def27]
/usr/bin/libtool:1563:38: warning[SC2154]: func_dirname_result is referenced but not assigned.
# 1561|             # Parent dir; strip last assembled component from result.
# 1562|             func_dirname "$func_normal_abspath_result"
# 1563|->           func_normal_abspath_result=$func_dirname_result
# 1564|             ;;
# 1565|           *)

Error: SHELLCHECK_WARNING (CWE-691): [#def28]
/usr/bin/libtool:1609:9: warning[SC2254]: Quote expansions in case patterns to match literally rather than as a glob.
# 1607|         # check if we have found a prefix of bindir
# 1608|         case $func_relative_path_tbindir in
# 1609|->         $func_relative_path_tlibdir)
# 1610|             # found an exact match
# 1611|             func_relative_path_tcancelled=

Error: SHELLCHECK_WARNING (CWE-456): [#def29]
/usr/bin/libtool:1696:17: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
# 1694|             do
# 1695|               # STATE($1) PREV($2) SEPARATOR($3)
# 1696|->             set start "" ""
# 1697|               func_quote_portable_result=dummy"$_G_char$func_quote_portable_result$_G_char"dummy
# 1698|               IFS=$_G_char

Error: SHELLCHECK_WARNING (CWE-456): [#def30]
/usr/bin/libtool:1704:21: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
# 1702|                 quote)
# 1703|                   func_append func_quote_portable_result "$3$2"
# 1704|->                 set quote "$_G_part" "\\$_G_char"
# 1705|                   ;;
# 1706|                 start)

Error: SHELLCHECK_WARNING (CWE-456): [#def31]
/usr/bin/libtool:1707:21: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
# 1705|                   ;;
# 1706|                 start)
# 1707|->                 set first "" ""
# 1708|                   func_quote_portable_result=
# 1709|                   ;;

Error: SHELLCHECK_WARNING (CWE-456): [#def32]
/usr/bin/libtool:1711:21: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
# 1709|                   ;;
# 1710|                 first)
# 1711|->                 set quote "$_G_part" ""
# 1712|                   ;;
# 1713|                 esac

Error: SHELLCHECK_WARNING (CWE-156): [#def33]
/usr/bin/libtool:1741:16: warning[SC2046]: Quote this to prevent word splitting.
# 1739|   # Quote one ARG (internal).  This is equivalent to 'func_quote_arg eval ARG',
# 1740|   # but optimized for speed.  Result is stored in $func_quotefast_eval.
# 1741|-> if test xyes = `(x=; printf -v x %q yes; echo x"$x") 2>/dev/null`; then
# 1742|     printf -v _GL_test_printf_tilde %q '~'
# 1743|     if test '\~' = "$_GL_test_printf_tilde"; then

Error: SHELLCHECK_WARNING: [#def34]
/usr/bin/libtool:1741:29: warning[SC3045]: In POSIX sh, printf -v is undefined.
# 1739|   # Quote one ARG (internal).  This is equivalent to 'func_quote_arg eval ARG',
# 1740|   # but optimized for speed.  Result is stored in $func_quotefast_eval.
# 1741|-> if test xyes = `(x=; printf -v x %q yes; echo x"$x") 2>/dev/null`; then
# 1742|     printf -v _GL_test_printf_tilde %q '~'
# 1743|     if test '\~' = "$_GL_test_printf_tilde"; then

Error: SHELLCHECK_WARNING: [#def35]
/usr/bin/libtool:1742:10: warning[SC3045]: In POSIX sh, printf -v is undefined.
# 1740|   # but optimized for speed.  Result is stored in $func_quotefast_eval.
# 1741|   if test xyes = `(x=; printf -v x %q yes; echo x"$x") 2>/dev/null`; then
# 1742|->   printf -v _GL_test_printf_tilde %q '~'
# 1743|     if test '\~' = "$_GL_test_printf_tilde"; then
# 1744|       func_quotefast_eval ()

Error: SHELLCHECK_WARNING: [#def36]
/usr/bin/libtool:1746:14: warning[SC3045]: In POSIX sh, printf -v is undefined.
# 1744|       func_quotefast_eval ()
# 1745|       {
# 1746|->       printf -v func_quotefast_eval_result %q "$1"
# 1747|       }
# 1748|     else

Error: SHELLCHECK_WARNING: [#def37]
/usr/bin/libtool:1758:18: warning[SC3045]: In POSIX sh, printf -v is undefined.
# 1756|             ;;
# 1757|           *)
# 1758|->           printf -v func_quotefast_eval_result %q "$1"
# 1759|             ;;
# 1760|         esac

Error: SHELLCHECK_WARNING (CWE-156): [#def38]
/usr/bin/libtool:2040:19: warning[SC2046]: Quote this to prevent word splitting.
# 2038|       $debug_cmd
# 2039|   
# 2040|->     test "x$1" = x`func_sort_ver "$1" "$2" | $SED 1q`
# 2041|   }
# 2042|   

Error: SHELLCHECK_WARNING (CWE-457): [#def39]
/usr/bin/libtool:2179:12: warning[SC2154]: hookable_fns is referenced but not assigned.
# 2177|       $debug_cmd
# 2178|   
# 2179|->     case " $hookable_fns " in
# 2180|         *" $1 "*) ;;
# 2181|         *) func_fatal_error "'$1' does not accept hook functions." ;;

Error: SHELLCHECK_WARNING (CWE-457): [#def40]
/usr/bin/libtool:2236:20: warning[SC2154]: _G_hook_fns is referenced but not assigned.
# 2234|       eval _G_hook_fns=\$$1_hooks; shift
# 2235|   
# 2236|->     for _G_hook in $_G_hook_fns; do
# 2237|         func_unset "${_G_hook}_result"
# 2238|         eval $_G_hook '${1+"$@"}'

Error: SHELLCHECK_WARNING (CWE-457): [#def41]
/usr/bin/libtool:2241:25: warning[SC2154]: func_run_hooks_result is referenced but not assigned.
# 2239|         func_propagate_result $_G_hook func_run_hooks
# 2240|         if $func_propagate_result_result; then
# 2241|->         eval set dummy "$func_run_hooks_result"; shift
# 2242|         fi
# 2243|       done

Error: SHELLCHECK_WARNING (CWE-456): [#def42]
/usr/bin/libtool:2436:27: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
# 2434|   
# 2435|           --no-warnings|--no-warning|--no-warn)
# 2436|->                       set dummy --warnings none ${1+"$@"}
# 2437|                         shift
# 2438|   		      ;;

Error: SHELLCHECK_WARNING (CWE-456): [#def43]
/usr/bin/libtool:2476:20: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
# 2474|   	# Separate optargs to long options (plugins may need this):
# 2475|   	--*=*)        func_split_equals "$_G_opt"
# 2476|-> 	              set dummy "$func_split_equals_lhs" \
# 2477|                             "$func_split_equals_rhs" ${1+"$@"}
# 2478|                         shift

Error: SHELLCHECK_WARNING (CWE-456): [#def44]
/usr/bin/libtool:2484:27: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
# 2482|           -W*)
# 2483|                         func_split_short_opt "$_G_opt"
# 2484|->                       set dummy "$func_split_short_opt_name" \
# 2485|                             "$func_split_short_opt_arg" ${1+"$@"}
# 2486|                         shift

Error: SHELLCHECK_WARNING (CWE-456): [#def45]
/usr/bin/libtool:2492:27: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
# 2490|           -\?*|-h*|-v*|-x*)
# 2491|                         func_split_short_opt "$_G_opt"
# 2492|->                       set dummy "$func_split_short_opt_name" \
# 2493|                             "-$func_split_short_opt_arg" ${1+"$@"}
# 2494|                         shift

Error: SHELLCHECK_WARNING (CWE-456): [#def46]
/usr/bin/libtool:2499:27: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
# 2497|           --)           _G_parse_options_requote=: ; break ;;
# 2498|           -*)           func_fatal_help "unrecognised option: '$_G_opt'" ;;
# 2499|->         *)            set dummy "$_G_opt" ${1+"$@"}; shift
# 2500|                         _G_match_parse_options=false
# 2501|                         break

Error: SHELLCHECK_WARNING (CWE-456): [#def47]
/usr/bin/libtool:2584:5: warning[SC2209]: Use var=$(command) to assign output (or quote to assign string).
# 2582|   
# 2583|       func_error "Missing argument for '$1'."
# 2584|->     exit_cmd=exit
# 2585|   }
# 2586|   

Error: SHELLCHECK_WARNING (CWE-563): [#def48]
/usr/bin/libtool:2861:1: warning[SC2034]: o2lo appears unused. Verify use (or export if used externally).
# 2859|   
# 2860|   lo2o=s/\\.lo\$/.$objext/
# 2861|-> o2lo=s/\\.$objext\$/.lo/
# 2862|   
# 2863|   if test yes = "$_G_HAVE_XSI_OPS"; then

Error: SHELLCHECK_WARNING (CWE-457): [#def49]
/usr/bin/libtool:3032:5: warning[SC2154]: debug_mode is referenced but not assigned.
# 3030|   libtool_options_prep ()
# 3031|   {
# 3032|->     $debug_mode
# 3033|   
# 3034|       # Option defaults:

Error: SHELLCHECK_WARNING (CWE-563): [#def50]
/usr/bin/libtool:3035:5: warning[SC2034]: opt_config appears unused. Verify use (or export if used externally).
# 3033|   
# 3034|       # Option defaults:
# 3035|->     opt_config=false
# 3036|       opt_dlopen=
# 3037|       opt_dry_run=false

Error: SHELLCHECK_WARNING (CWE-456): [#def51]
/usr/bin/libtool:3054:18: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
# 3052|       case $1 in
# 3053|       clean|clea|cle|cl)
# 3054|->       shift; set dummy --mode clean ${1+"$@"}; shift
# 3055|         ;;
# 3056|       compile|compil|compi|comp|com|co|c)

Error: SHELLCHECK_WARNING (CWE-456): [#def52]
/usr/bin/libtool:3057:18: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
# 3055|         ;;
# 3056|       compile|compil|compi|comp|com|co|c)
# 3057|->       shift; set dummy --mode compile ${1+"$@"}; shift
# 3058|         ;;
# 3059|       execute|execut|execu|exec|exe|ex|e)

Error: SHELLCHECK_WARNING (CWE-456): [#def53]
/usr/bin/libtool:3060:18: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
# 3058|         ;;
# 3059|       execute|execut|execu|exec|exe|ex|e)
# 3060|->       shift; set dummy --mode execute ${1+"$@"}; shift
# 3061|         ;;
# 3062|       finish|finis|fini|fin|fi|f)

Error: SHELLCHECK_WARNING (CWE-456): [#def54]
/usr/bin/libtool:3063:18: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
# 3061|         ;;
# 3062|       finish|finis|fini|fin|fi|f)
# 3063|->       shift; set dummy --mode finish ${1+"$@"}; shift
# 3064|         ;;
# 3065|       install|instal|insta|inst|ins|in|i)

Error: SHELLCHECK_WARNING (CWE-456): [#def55]
/usr/bin/libtool:3066:18: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
# 3064|         ;;
# 3065|       install|instal|insta|inst|ins|in|i)
# 3066|->       shift; set dummy --mode install ${1+"$@"}; shift
# 3067|         ;;
# 3068|       link|lin|li|l)

Error: SHELLCHECK_WARNING (CWE-456): [#def56]
/usr/bin/libtool:3069:18: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
# 3067|         ;;
# 3068|       link|lin|li|l)
# 3069|->       shift; set dummy --mode link ${1+"$@"}; shift
# 3070|         ;;
# 3071|       uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)

Error: SHELLCHECK_WARNING (CWE-456): [#def57]
/usr/bin/libtool:3072:18: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
# 3070|         ;;
# 3071|       uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
# 3072|->       shift; set dummy --mode uninstall ${1+"$@"}; shift
# 3073|         ;;
# 3074|       *)

Error: SHELLCHECK_WARNING (CWE-563): [#def58]
/usr/bin/libtool:3082:7: warning[SC2034]: libtool_options_prep_result appears unused. Verify use (or export if used externally).
# 3080|         # Pass back the list of options.
# 3081|         func_quote eval ${1+"$@"}
# 3082|->       libtool_options_prep_result=$func_quote_result
# 3083|       fi
# 3084|   }

Error: SHELLCHECK_WARNING (CWE-456): [#def59]
/usr/bin/libtool:3121:29: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
# 3119|           --features)     func_features ;;
# 3120|   
# 3121|->         --finish)       set dummy --mode finish ${1+"$@"}; shift ;;
# 3122|   
# 3123|           --help)         opt_help=: ;;

Error: SHELLCHECK_WARNING (CWE-456): [#def60]
/usr/bin/libtool:3135:30: warning[SC2209]: Use var=$(command) to assign output (or quote to assign string).
# 3133|                             # Catch anything else as an error
# 3134|                             *) func_error "invalid argument '$1' for $_G_opt"
# 3135|->                              exit_cmd=exit
# 3136|                                ;;
# 3137|                           esac

Error: SHELLCHECK_WARNING (CWE-456): [#def61]
/usr/bin/libtool:3172:32: warning[SC2209]: Use var=$(command) to assign output (or quote to assign string).
# 3170|                               *) func_error "invalid argument '$1' for $_G_opt"
# 3171|                                  func_error "absolute paths are required for $_G_opt"
# 3172|->                                exit_cmd=exit
# 3173|                                  ;;
# 3174|                             esac

Error: SHELLCHECK_WARNING (CWE-563): [#def62]
/usr/bin/libtool:3186:25: warning[SC2034]: opt_tag appears unused. Verify use (or export if used externally).
# 3184|   
# 3185|           --tag)          test $# = 0 && func_missing_arg $_G_opt && break
# 3186|->                         opt_tag=$1
# 3187|                           func_append preserve_args " $_G_opt $1"
# 3188|                           func_enable_tag "$1"

Error: SHELLCHECK_WARNING (CWE-456): [#def63]
/usr/bin/libtool:3198:29: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
# 3196|   
# 3197|           # An option not handled by this hook function:
# 3198|->         *)              set dummy "$_G_opt" ${1+"$@"} ; shift
# 3199|                           _G_match_lt_parse_options=false
# 3200|                           break

Error: SHELLCHECK_WARNING (CWE-563): [#def64]
/usr/bin/libtool:3209:7: warning[SC2034]: libtool_parse_options_result appears unused. Verify use (or export if used externally).
# 3207|         # save modified positional parameters for caller
# 3208|         func_quote eval ${1+"$@"}
# 3209|->       libtool_parse_options_result=$func_quote_result
# 3210|       fi
# 3211|   }

Error: SHELLCHECK_WARNING (CWE-563): [#def65]
/usr/bin/libtool:3273:5: warning[SC2034]: libtool_validate_options_result appears unused. Verify use (or export if used externally).
# 3271|       # Pass back the unparsed argument list
# 3272|       func_quote eval ${1+"$@"}
# 3273|->     libtool_validate_options_result=$func_quote_result
# 3274|   }
# 3275|   func_add_hook func_validate_options libtool_validate_options

Error: SHELLCHECK_WARNING (CWE-563): [#def66]
/usr/bin/libtool:3339:2: warning[SC2034]: lalib_p_l appears unused. Verify use (or export if used externally).
# 3337|       lalib_p=no
# 3338|       if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then
# 3339|-> 	for lalib_p_l in 1 2 3 4
# 3340|   	do
# 3341|   	    read lalib_p_line

Error: SHELLCHECK_WARNING (CWE-457): [#def67]
/usr/bin/libtool:3382:31: warning[SC2154]: func_basename_result is referenced but not assigned.
# 3380|   {
# 3381|       func_dirname_and_basename "$1" "" "."
# 3382|->     func_stripname '' '.exe' "$func_basename_result"
# 3383|       func_ltwrapper_scriptname_result=$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper
# 3384|   }

Error: SHELLCHECK_WARNING (CWE-691): [#def68]
/usr/bin/libtool:3738:3: warning[SC2254]: Quote expansions in case patterns to match literally rather than as a glob.
# 3736|   
# 3737|     case $4 in
# 3738|->   $1 ) func_to_host_path_result=$3$func_to_host_path_result
# 3739|       ;;
# 3740|     esac

Error: SHELLCHECK_WARNING (CWE-691): [#def69]
/usr/bin/libtool:3742:3: warning[SC2254]: Quote expansions in case patterns to match literally rather than as a glob.
# 3740|     esac
# 3741|     case $4 in
# 3742|->   $2 ) func_append func_to_host_path_result "$3"
# 3743|       ;;
# 3744|     esac

Error: SHELLCHECK_WARNING (CWE-1095): [#def70]
/usr/bin/libtool:4166:5: warning[SC2167]: This parent loop has its index variable overridden.
# 4164|       pie_flag=
# 4165|   
# 4166|->     for arg
# 4167|       do
# 4168|         case $arg_mode in

Error: SHELLCHECK_WARNING (CWE-1095): [#def71]
/usr/bin/libtool:4216:4: warning[SC2165]: This nested loop overrides the index variable of its parent.
# 4214|   	  lastarg=
# 4215|   	  save_ifs=$IFS; IFS=,
# 4216|-> 	  for arg in $args; do
# 4217|   	    IFS=$save_ifs
# 4218|   	    func_append_quoted lastarg "$arg"

Error: SHELLCHECK_WARNING (CWE-563): [#def72]
/usr/bin/libtool:4388:7: warning[SC2034]: fbsd_hideous_sh_bug appears unused. Verify use (or export if used externally).
# 4386|       if test yes = "$build_libtool_libs"; then
# 4387|         # Without this assignment, base_compile gets emptied.
# 4388|->       fbsd_hideous_sh_bug=$base_compile
# 4389|   
# 4390|         if test no != "$pic_mode"; then

Error: SHELLCHECK_WARNING (CWE-563): [#def73]
/usr/bin/libtool:4805:5: warning[SC2034]: libtool_execute_magic appears unused. Verify use (or export if used externally).
# 4803|       # This variable tells wrapper scripts just to set shlibpath_var
# 4804|       # rather than running their programs.
# 4805|->     libtool_execute_magic=$magic
# 4806|   
# 4807|       # Check if any of the arguments is a wrapper script.

Error: SHELLCHECK_WARNING (CWE-457): [#def74]
/usr/bin/libtool:4818:18: warning[SC2154]: program is referenced but not assigned (did you mean 'PROGRAM'?).
# 4816|   	  func_source "$file"
# 4817|   	  # Transform arg to wrapped name.
# 4818|-> 	  file=$progdir/$program
# 4819|   	elif func_ltwrapper_executable_p "$file"; then
# 4820|   	  func_ltwrapper_scriptname "$file"

Error: SHELLCHECK_WARNING (CWE-563): [#def75]
/usr/bin/libtool:5023:5: warning[SC2034]: opts appears unused. Verify use (or export if used externally).
# 5021|       dest=
# 5022|       files=
# 5023|->     opts=
# 5024|       prev=
# 5025|       install_type=

Error: SHELLCHECK_WARNING (CWE-563): [#def76]
/usr/bin/libtool:5025:5: warning[SC2034]: install_type appears unused. Verify use (or export if used externally).
# 5023|       opts=
# 5024|       prev=
# 5025|->     install_type=
# 5026|       isdir=false
# 5027|       stripme=

Error: SHELLCHECK_WARNING (CWE-456): [#def77]
/usr/bin/libtool:5114:11: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
# 5112|   
# 5113|         # Not a directory, so check to see that there is only one file specified.
# 5114|->       set dummy $files; shift
# 5115|         test "$#" -gt 1 && \
# 5116|   	func_fatal_help "'$dest' is not a directory"

Error: SHELLCHECK_WARNING (CWE-456): [#def78]
/usr/bin/libtool:5212:6: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
# 5210|   
# 5211|   	# See the names of the shared library.
# 5212|-> 	set dummy $library_names; shift
# 5213|   	if test -n "$1"; then
# 5214|   	  realname=$1

Error: SHELLCHECK_WARNING (CWE-563): [#def79]
/usr/bin/libtool:5290:4: warning[SC2034]: staticdest appears unused. Verify use (or export if used externally).
# 5288|   	  ;;
# 5289|   	*.$objext)
# 5290|-> 	  staticdest=$destfile
# 5291|   	  destfile=
# 5292|   	  ;;

Error: SHELLCHECK_WARNING (CWE-563): [#def80]
/usr/bin/libtool:5306:4: warning[SC2034]: staticobj appears unused. Verify use (or export if used externally).
# 5304|   	  # Deduce the name of the old-style object file.
# 5305|   	  func_lo2o "$file"
# 5306|-> 	  staticobj=$func_lo2o_result
# 5307|   	  func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?'
# 5308|   	fi

Error: SHELLCHECK_WARNING (CWE-457): [#def81]
/usr/bin/libtool:5358:13: warning[SC2154]: generated_by_libtool_version is referenced but not assigned.
# 5356|   
# 5357|   	  # Check the variables that should have been set.
# 5358|-> 	  test -z "$generated_by_libtool_version" && \
# 5359|   	    func_fatal_error "invalid libtool wrapper script '$wrapper'"
# 5360|   

Error: SHELLCHECK_WARNING (CWE-457): [#def82]
/usr/bin/libtool:5598:22: warning[SC2154]: curr_lafile is referenced but not assigned.
# 5596|   	        eval "curr_lafile=\$libfile_$func_tr_sh_result"
# 5597|   	        dlprefile_dlbasename=
# 5598|-> 	        if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then
# 5599|   	          # Use subshell, to avoid clobbering current variable values
# 5600|   	          dlprefile_dlname=`source "$curr_lafile" && echo "$dlname"`

Error: SHELLCHECK_WARNING: [#def83]
/usr/bin/libtool:5600:30: warning[SC3046]: In POSIX sh, 'source' in place of '.' is undefined.
# 5598|   	        if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then
# 5599|   	          # Use subshell, to avoid clobbering current variable values
# 5600|-> 	          dlprefile_dlname=`source "$curr_lafile" && echo "$dlname"`
# 5601|   	          if test -n "$dlprefile_dlname"; then
# 5602|   	            func_basename "$dlprefile_dlname"

Error: SHELLCHECK_WARNING (CWE-563): [#def84]
/usr/bin/libtool:5753:19: warning[SC2034]: pic_flag_for_symtable appears unused. Verify use (or export if used externally).
# 5751|   	    pic_flag_for_symtable=" $pic_flag"  ;;
# 5752|   	  *)
# 5753|-> 	    $my_pic_p && pic_flag_for_symtable=" $pic_flag"
# 5754|   	    ;;
# 5755|   	  esac

Error: SHELLCHECK_WARNING (CWE-563): [#def85]
/usr/bin/libtool:5758:2: warning[SC2034]: symtab_cflags appears unused. Verify use (or export if used externally).
# 5756|   	  ;;
# 5757|   	esac
# 5758|-> 	symtab_cflags=
# 5759|   	for arg in $LTCFLAGS; do
# 5760|   	  case $arg in

Error: SHELLCHECK_WARNING (CWE-252): [#def86]
/usr/bin/libtool:6082:8: warning[SC2164]: Use 'cd ... || exit' or 'cd ... || return' in case cd fails.
# 6080|   	      func_mkdir_p "unfat-$$/$darwin_base_archive-$darwin_arch"
# 6081|   	      $LIPO -thin $darwin_arch -output "unfat-$$/$darwin_base_archive-$darwin_arch/$darwin_base_archive" "$darwin_archive"
# 6082|-> 	      cd "unfat-$$/$darwin_base_archive-$darwin_arch"
# 6083|   	      func_extract_an_archive "`pwd`" "$darwin_base_archive"
# 6084|   	      cd "$darwin_curdir"

Error: SHELLCHECK_WARNING (CWE-252): [#def87]
/usr/bin/libtool:6084:8: warning[SC2164]: Use 'cd ... || exit' or 'cd ... || return' in case cd fails.
# 6082|   	      cd "unfat-$$/$darwin_base_archive-$darwin_arch"
# 6083|   	      func_extract_an_archive "`pwd`" "$darwin_base_archive"
# 6084|-> 	      cd "$darwin_curdir"
# 6085|   	      $RM "unfat-$$/$darwin_base_archive-$darwin_arch/$darwin_base_archive"
# 6086|   	    done # $darwin_arches

Error: SHELLCHECK_WARNING (CWE-252): [#def88]
/usr/bin/libtool:6096:6: warning[SC2164]: Use 'cd ... || exit' or 'cd ... || return' in case cd fails.
# 6094|   	    done # $darwin_filelist
# 6095|   	    $RM -rf unfat-$$
# 6096|-> 	    cd "$darwin_orig_dir"
# 6097|   	  else
# 6098|   	    cd $darwin_orig_dir

Error: SHELLCHECK_WARNING (CWE-252): [#def89]
/usr/bin/libtool:6098:6: warning[SC2164]: Use 'cd ... || exit' or 'cd ... || return' in case cd fails.
# 6096|   	    cd "$darwin_orig_dir"
# 6097|   	  else
# 6098|-> 	    cd $darwin_orig_dir
# 6099|   	    func_extract_an_archive "$my_xdir" "$my_xabs"
# 6100|   	  fi # $darwin_arches

Error: SHELLCHECK_WARNING (CWE-149): [#def90]
/usr/bin/libtool:6195:57: warning[SC2140]: Word is of the form "A"B"C" (B indicated). Did you mean "ABC" or "A\"B\"C"?
# 6193|   # the libtool wrapper, (b) are identical between the wrapper
# 6194|   # /script/ and the wrapper /executable/ that is used only on
# 6195|-> # windows platforms, and (c) all begin with the string "--lt-"
# 6196|   # (application programs are unlikely to have options that match
# 6197|   # this pattern).

Error: SHELLCHECK_WARNING (CWE-88): [#def91]
/usr/bin/libtool:6203:35: error[SC2068]: Double quote array expansions to avoid re-splitting elements.
# 6201|   #
# 6202|   # The first argument to this parsing function should be the
# 6203|-> # script's $0 value, followed by "$@".
# 6204|   lt_option_debug=
# 6205|   func_parse_lt_options ()

Error: SHELLCHECK_WARNING (CWE-138): [#def92]
/usr/bin/libtool:6203:35: error[SC2145]: Argument mixes string and array. Use * or separate argument.
# 6201|   #
# 6202|   # The first argument to this parsing function should be the
# 6203|-> # script's $0 value, followed by "$@".
# 6204|   lt_option_debug=
# 6205|   func_parse_lt_options ()

Error: SHELLCHECK_WARNING (CWE-149): [#def93]
/usr/bin/libtool:6203:35: warning[SC2027]: The surrounding quotes actually unquote this. Remove or escape them.
# 6201|   #
# 6202|   # The first argument to this parsing function should be the
# 6203|-> # script's $0 value, followed by "$@".
# 6204|   lt_option_debug=
# 6205|   func_parse_lt_options ()

Error: SHELLCHECK_WARNING (CWE-569): [#def94]
/usr/bin/libtool:7432:18: warning[SC2124]: Assigning an array to a string! Assign as array, or use * instead of @ to concatenate.
# 7430|       esac
# 7431|       libtool_args=$nonopt
# 7432|->     base_compile="$nonopt $@"
# 7433|       compile_command=$nonopt
# 7434|       finalize_command=$nonopt

Error: SHELLCHECK_WARNING (CWE-563): [#def95]
/usr/bin/libtool:7446:5: warning[SC2034]: linker_flags appears unused. Verify use (or export if used externally).
# 7444|       old_deplibs=
# 7445|       compiler_flags=
# 7446|->     linker_flags=
# 7447|       dllsearchpath=
# 7448|       lib_search_path=`pwd`

Error: SHELLCHECK_WARNING (CWE-563): [#def96]
/usr/bin/libtool:7462:5: warning[SC2034]: ltlibs appears unused. Verify use (or export if used externally).
# 7460|       generated=
# 7461|       libobjs=
# 7462|->     ltlibs=
# 7463|       module=no
# 7464|       no_install=no

Error: SHELLCHECK_WARNING (CWE-563): [#def97]
/usr/bin/libtool:7633:6: warning[SC2034]: moreargs appears unused. Verify use (or export if used externally).
# 7631|   	  if test -f "$arg"; then
# 7632|   	    save_arg=$arg
# 7633|-> 	    moreargs=
# 7634|   	    for fil in `cat "$save_arg"`
# 7635|   	    do

Error: SHELLCHECK_WARNING (CWE-563): [#def98]
/usr/bin/libtool:7727:4: warning[SC2034]: os2dllname appears unused. Verify use (or export if used externally).
# 7725|   	  ;;
# 7726|   	os2dllname)
# 7727|-> 	  os2dllname=$arg
# 7728|   	  prev=
# 7729|   	  continue

Error: SHELLCHECK_WARNING (CWE-563): [#def99]
/usr/bin/libtool:8027:2: warning[SC2034]: single_module appears unused. Verify use (or export if used externally).
# 8025|   
# 8026|         -multi_module)
# 8027|-> 	single_module=$wl-multi_module
# 8028|   	continue
# 8029|   	;;

Error: SHELLCHECK_WARNING (CWE-569): [#def100]
/usr/bin/libtool:8239:43: warning[SC2221]: This pattern always overrides a later one on line 8243.
# 8237|         # -Werror, -Werror=*   Report (specified) warnings as errors
# 8238|         -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
# 8239|->       -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
# 8240|         -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-no-canonical-prefixes| \
# 8241|         -stdlib=*|-rtlib=*|--unwindlib=*| \

Error: SHELLCHECK_WARNING (CWE-569): [#def101]
/usr/bin/libtool:8243:69: warning[SC2222]: This pattern never matches because of a previous pattern on line 8239.
# 8241|         -stdlib=*|-rtlib=*|--unwindlib=*| \
# 8242|         -specs=*|-fsanitize=*|-fno-sanitize*|-shared-libsan|-static-libsan| \
# 8243|->       -ffile-prefix-map=*|-fdebug-prefix-map=*|-fmacro-prefix-map=*|-fprofile-prefix-map=*| \
# 8244|         -fdiagnostics-color*|-frecord-gcc-switches| \
# 8245|         -fuse-ld=*|-static-*|-fcilkplus|-Wa,*|-Werror|-Werror=*)

Error: SHELLCHECK_WARNING (CWE-563): [#def102]
/usr/bin/libtool:8450:5: warning[SC2034]: tool_output_objdir appears unused. Verify use (or export if used externally).
# 8448|       output_objdir=$func_dirname_result$objdir
# 8449|       func_to_tool_file "$output_objdir/"
# 8450|->     tool_output_objdir=$func_to_tool_file_result
# 8451|       # Create the object directory.
# 8452|       func_mkdir_p "$output_objdir"

Error: SHELLCHECK_WARNING (CWE-1095): [#def103]
/usr/bin/libtool:8582:7: warning[SC2167]: This parent loop has its index variable overridden.
# 8580|         fi
# 8581|   
# 8582|->       for deplib in $libs; do
# 8583|   	lib=
# 8584|   	found=false

Error: SHELLCHECK_WARNING (CWE-457): [#def104]
/usr/bin/libtool:8610:81: warning[SC2154]: sys_lib_search_path is referenced but not assigned.
# 8608|   	  name=$func_stripname_result
# 8609|   	  if test lib = "$linkmode"; then
# 8610|-> 	    searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
# 8611|   	  else
# 8612|   	    searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path"

Error: SHELLCHECK_WARNING (CWE-457): [#def105]
/usr/bin/libtool:8615:28: warning[SC2154]: std_shrext is referenced but not assigned.
# 8613|   	  fi
# 8614|   	  for searchdir in $searchdirs; do
# 8615|-> 	    for search_ext in .la $std_shrext .so .a; do
# 8616|   	      # Search the libtool library
# 8617|   	      lib=$searchdir/lib$name$search_ext

Error: SHELLCHECK_WARNING (CWE-457): [#def106]
/usr/bin/libtool:8746:13: warning[SC2154]: dlpreconveniencelibs is referenced but not assigned.
# 8744|   	    # Linking convenience modules into shared libraries is allowed,
# 8745|   	    # but linking other static libraries is non-portable.
# 8746|-> 	    case " $dlpreconveniencelibs " in
# 8747|   	    *" $deplib "*) ;;
# 8748|   	    *)

Error: SHELLCHECK_WARNING (CWE-456): [#def107]
/usr/bin/libtool:8752:9: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
# 8750|   	      case $deplibs_check_method in
# 8751|   		match_pattern*)
# 8752|-> 		  set dummy $deplibs_check_method; shift
# 8753|   		  match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
# 8754|   		  if eval "\$ECHO \"$deplib\"" 2>/dev/null | $SED 10q \

Error: SHELLCHECK_WARNING (CWE-1095): [#def108]
/usr/bin/libtool:8870:4: warning[SC2165]: This nested loop overrides the index variable of its parent.
# 8868|   	  fi
# 8869|   	  tmp_libs=
# 8870|-> 	  for deplib in $dependency_libs; do
# 8871|   	    deplibs="$deplib $deplibs"
# 8872|   	    if $opt_preserve_dup_deps; then

Error: SHELLCHECK_WARNING (CWE-1095): [#def109]
/usr/bin/libtool:9032:4: warning[SC2165]: This nested loop overrides the index variable of its parent.
# 9030|   
# 9031|   	  tmp_libs=
# 9032|-> 	  for deplib in $dependency_libs; do
# 9033|   	    case $deplib in
# 9034|   	    -L*) func_stripname '-L' '' "$deplib"

Error: SHELLCHECK_WARNING (CWE-457): [#def110]
/usr/bin/libtool:9077:13: warning[SC2154]: sys_lib_dlsearch_path is referenced but not assigned.
# 9075|   	    # Skip directories that are in the system default run-time
# 9076|   	    # search path.
# 9077|-> 	    case " $sys_lib_dlsearch_path " in
# 9078|   	    *" $absdir "*) ;;
# 9079|   	    *)

Error: SHELLCHECK_WARNING (CWE-456): [#def111]
/usr/bin/libtool:9179:10: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
# 9177|   	  if test -n "$old_archive_from_expsyms_cmds"; then
# 9178|   	    # figure out the soname
# 9179|-> 	    set dummy $library_names
# 9180|   	    shift
# 9181|   	    realname=$1

Error: SHELLCHECK_WARNING (CWE-1095): [#def112]
/usr/bin/libtool:9442:4: warning[SC2165]: This nested loop overrides the index variable of its parent.
# 9440|   	  # ... and its dependency_libs
# 9441|   	  tmp_libs=
# 9442|-> 	  for deplib in $dependency_libs; do
# 9443|   	    newdependency_libs="$deplib $newdependency_libs"
# 9444|   	    case $deplib in

Error: SHELLCHECK_WARNING (CWE-1095): [#def113]
/usr/bin/libtool:9460:6: warning[SC2165]: This nested loop overrides the index variable of its parent.
# 9458|   	  if test no != "$link_all_deplibs"; then
# 9459|   	    # Add the search paths of all dependency libraries
# 9460|-> 	    for deplib in $dependency_libs; do
# 9461|   	      path=
# 9462|   	      case $deplib in

Error: SHELLCHECK_WARNING (CWE-156): [#def114]
/usr/bin/libtool:9484:27: warning[SC2046]: Quote this to prevent word splitting.
# 9482|   		*-*-darwin*)
# 9483|   		  depdepl=
# 9484|-> 		  eval deplibrary_names=`$SED -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
# 9485|   		  if test -n "$deplibrary_names"; then
# 9486|   		    for tmp in $deplibrary_names; do

Error: SHELLCHECK_WARNING (CWE-457): [#def115]
/usr/bin/libtool:9485:17: warning[SC2154]: deplibrary_names is referenced but not assigned.
# 9483|   		  depdepl=
# 9484|   		  eval deplibrary_names=`$SED -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
# 9485|-> 		  if test -n "$deplibrary_names"; then
# 9486|   		    for tmp in $deplibrary_names; do
# 9487|   		      depdepl=$tmp

Error: SHELLCHECK_WARNING (CWE-156): [#def116]
/usr/bin/libtool:9506:17: warning[SC2046]: Quote this to prevent word splitting.
# 9504|   		esac
# 9505|   		else
# 9506|-> 		  eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
# 9507|   		  test -z "$libdir" && \
# 9508|   		    func_fatal_error "'$deplib' is not a valid libtool archive"

Error: SHELLCHECK_WARNING (CWE-456): [#def117]
/usr/bin/libtool:9744:11: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
# 9742|   	|| func_warning "'-dlopen self' is ignored for libtool libraries"
# 9743|   
# 9744|->       set dummy $rpath
# 9745|         shift
# 9746|         test 1 -lt "$#" \

Error: SHELLCHECK_WARNING (CWE-456): [#def118]
/usr/bin/libtool:9772:6: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
# 9770|   	# Parse the version information argument.
# 9771|   	save_ifs=$IFS; IFS=:
# 9772|-> 	set dummy $vinfo 0 0 0
# 9773|   	shift
# 9774|   	IFS=$save_ifs

Error: SHELLCHECK_WARNING (CWE-457): [#def119]
/usr/bin/libtool:9816:32: warning[SC2154]: modename is referenced but not assigned.
# 9814|   	    ;;
# 9815|   	  *)
# 9816|-> 	    func_fatal_configuration "$modename: unknown library version type '$version_type'"
# 9817|   	    ;;
# 9818|   	  esac

Error: SHELLCHECK_WARNING (CWE-563): [#def120]
/usr/bin/libtool:9873:4: warning[SC2034]: xlcverstring appears unused. Verify use (or export if used externally).
# 9871|   	  func_arith $current + 1
# 9872|   	  minor_current=$func_arith_result
# 9873|-> 	  xlcverstring="$wl-compatibility_version $wl$minor_current $wl-current_version $wl$minor_current.$revision"
# 9874|   	  verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
# 9875|             # On Darwin other compilers

Error: SHELLCHECK_WARNING (CWE-691): [#def121]
/usr/bin/libtool:10038:6: warning[SC2254]: Quote expansions in case patterns to match literally rather than as a glob.
#10036|   	    *.$objext | *.gcno)
#10037|   	       ;;
#10038|-> 	    $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/$libname$release.*)
#10039|   	       if test -n "$precious_files_regex"; then
#10040|   		 if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1

Error: SHELLCHECK_WARNING (CWE-456): [#def122]
/usr/bin/libtool:10160:8: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
#10158|   	  ;;
#10159|   	file_magic*)
#10160|-> 	  set dummy $deplibs_check_method; shift
#10161|   	  file_magic_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
#10162|   	  for a_deplib in $deplibs; do

Error: SHELLCHECK_WARNING: [#def123]
/usr/bin/libtool:10182:48: warning[SC3044]: In POSIX sh, 'shopt' is undefined.
#10180|   		  libnameglob=$libname
#10181|   		fi
#10182|-> 		test yes = "$want_nocaseglob" && nocaseglob=`shopt -p nocaseglob`
#10183|   		for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
#10184|   		  if test yes = "$want_nocaseglob"; then

Error: SHELLCHECK_WARNING: [#def124]
/usr/bin/libtool:10185:7: warning[SC3044]: In POSIX sh, 'shopt' is undefined.
#10183|   		for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
#10184|   		  if test yes = "$want_nocaseglob"; then
#10185|-> 		    shopt -s nocaseglob
#10186|   		    potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
#10187|   		    $nocaseglob

Error: SHELLCHECK_WARNING (CWE-398): [#def125]
/usr/bin/libtool:10186:29: error[SC1087]: Use braces when expanding arrays, e.g. ${array[idx]} (or ${var}[.. to quiet).
#10184|   		  if test yes = "$want_nocaseglob"; then
#10185|   		    shopt -s nocaseglob
#10186|-> 		    potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
#10187|   		    $nocaseglob
#10188|   		  else

Error: SHELLCHECK_WARNING (CWE-398): [#def126]
/usr/bin/libtool:10189:29: error[SC1087]: Use braces when expanding arrays, e.g. ${array[idx]} (or ${var}[.. to quiet).
#10187|   		    $nocaseglob
#10188|   		  else
#10189|-> 		    potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
#10190|   		  fi
#10191|   		  for potent_lib in $potential_libs; do

Error: SHELLCHECK_WARNING (CWE-456): [#def127]
/usr/bin/libtool:10243:8: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
#10241|   	  ;;
#10242|   	match_pattern*)
#10243|-> 	  set dummy $deplibs_check_method; shift
#10244|   	  match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
#10245|   	  for a_deplib in $deplibs; do

Error: SHELLCHECK_WARNING (CWE-398): [#def128]
/usr/bin/libtool:10261:27: error[SC1087]: Use braces when expanding arrays, e.g. ${array[idx]} (or ${var}[.. to quiet).
#10259|   		libname=`eval "\\$ECHO \"$libname_spec\""`
#10260|   		for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
#10261|-> 		  potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
#10262|   		  for potent_lib in $potential_libs; do
#10263|   		    potlib=$potent_lib # see symlink-check above in file_magic test

Error: SHELLCHECK_WARNING (CWE-456): [#def129]
/usr/bin/libtool:10482:6: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
#10480|   	eval shared_ext=\"$shrext_cmds\"
#10481|   	eval library_names=\"$library_names_spec\"
#10482|-> 	set dummy $library_names
#10483|   	shift
#10484|   	realname=$1

Error: SHELLCHECK_WARNING (CWE-457): [#def130]
/usr/bin/libtool:10652:43: warning[SC2154]: thread_safe_flag_spec is referenced but not assigned.
#10650|   	fi
#10651|   
#10652|-> 	if test yes = "$thread_safe" && test -n "$thread_safe_flag_spec"; then
#10653|   	  eval flag=\"$thread_safe_flag_spec\"
#10654|   	  func_append linker_flags " $flag"

Error: SHELLCHECK_WARNING (CWE-456): [#def131]
/usr/bin/libtool:10718:10: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
#10716|   	    func_verbose "creating linker input file list: $output"
#10717|   	    : > $output
#10718|-> 	    set x $save_libobjs
#10719|   	    shift
#10720|   	    firstobj=

Error: SHELLCHECK_WARNING (CWE-563): [#def132]
/usr/bin/libtool:10850:42: warning[SC2034]: tmp_export_symbols appears unused. Verify use (or export if used externally).
#10848|   	    if test -n "$export_symbols" && test -n "$include_expsyms"; then
#10849|   	      tmp_export_symbols=$export_symbols
#10850|-> 	      test -n "$orig_export_symbols" && tmp_export_symbols=$orig_export_symbols
#10851|   	      $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"'
#10852|   	    fi

Error: SHELLCHECK_WARNING (CWE-457): [#def133]
/usr/bin/libtool:11231:10: warning[SC2154]: finalize_perm_rpath is referenced but not assigned.
#11229|   	  fi
#11230|   	elif test -n "$runpath_var"; then
#11231|-> 	  case "$finalize_perm_rpath " in
#11232|   	  *" $libdir "*) ;;
#11233|   	  *) func_append finalize_perm_rpath " $libdir" ;;

Error: SHELLCHECK_WARNING (CWE-569): [#def134]
/usr/bin/libtool:11387:24: warning[SC1083]: This { is literal. Check expression (missing ;/\n?) or quote it.
#11385|   	# Preserve any variables that may affect compiler behavior
#11386|   	for var in $variables_saved_for_relink; do
#11387|-> 	  if eval test -z \"\${$var+set}\"; then
#11388|   	    relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
#11389|   	  elif eval var_value=\$$var; test -z "$var_value"; then

Error: SHELLCHECK_WARNING (CWE-569): [#def135]
/usr/bin/libtool:11387:33: warning[SC1083]: This } is literal. Check expression (missing ;/\n?) or quote it.
#11385|   	# Preserve any variables that may affect compiler behavior
#11386|   	for var in $variables_saved_for_relink; do
#11387|-> 	  if eval test -z \"\${$var+set}\"; then
#11388|   	    relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
#11389|   	  elif eval var_value=\$$var; test -z "$var_value"; then

Error: SHELLCHECK_WARNING (CWE-457): [#def136]
/usr/bin/libtool:11389:41: warning[SC2154]: var_value is referenced but not assigned.
#11387|   	  if eval test -z \"\${$var+set}\"; then
#11388|   	    relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
#11389|-> 	  elif eval var_value=\$$var; test -z "$var_value"; then
#11390|   	    relink_command="$var=; export $var; $relink_command"
#11391|   	  else

Error: SHELLCHECK_WARNING (CWE-569): [#def137]
/usr/bin/libtool:11425:12: warning[SC2064]: Use single quotes, otherwise this expands now rather than when signalled.
#11423|   	    cwrapper=$output_path/$output_name.exe
#11424|   	    $RM $cwrappersource $cwrapper
#11425|-> 	    trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
#11426|   
#11427|   	    func_emit_cwrapperexe_src > $cwrappersource

Error: SHELLCHECK_WARNING (CWE-569): [#def138]
/usr/bin/libtool:11425:16: warning[SC2064]: Use single quotes, otherwise this expands now rather than when signalled.
#11423|   	    cwrapper=$output_path/$output_name.exe
#11424|   	    $RM $cwrappersource $cwrapper
#11425|-> 	    trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
#11426|   
#11427|   	    func_emit_cwrapperexe_src > $cwrappersource

Error: SHELLCHECK_WARNING (CWE-569): [#def139]
/usr/bin/libtool:11425:32: warning[SC2064]: Use single quotes, otherwise this expands now rather than when signalled.
#11423|   	    cwrapper=$output_path/$output_name.exe
#11424|   	    $RM $cwrappersource $cwrapper
#11425|-> 	    trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
#11426|   
#11427|   	    func_emit_cwrapperexe_src > $cwrappersource

Error: SHELLCHECK_WARNING (CWE-569): [#def140]
/usr/bin/libtool:11425:48: warning[SC2064]: Use single quotes, otherwise this expands now rather than when signalled.
#11423|   	    cwrapper=$output_path/$output_name.exe
#11424|   	    $RM $cwrappersource $cwrapper
#11425|-> 	    trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
#11426|   
#11427|   	    func_emit_cwrapperexe_src > $cwrappersource

Error: SHELLCHECK_WARNING (CWE-569): [#def141]
/usr/bin/libtool:11441:12: warning[SC2064]: Use single quotes, otherwise this expands now rather than when signalled.
#11439|   	    func_ltwrapper_scriptname $cwrapper
#11440|   	    $RM $func_ltwrapper_scriptname_result
#11441|-> 	    trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15
#11442|   	    $opt_dry_run || {
#11443|   	      # note: this script will not be executed, so do not chmod.

Error: SHELLCHECK_WARNING (CWE-569): [#def142]
/usr/bin/libtool:11441:16: warning[SC2064]: Use single quotes, otherwise this expands now rather than when signalled.
#11439|   	    func_ltwrapper_scriptname $cwrapper
#11440|   	    $RM $func_ltwrapper_scriptname_result
#11441|-> 	    trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15
#11442|   	    $opt_dry_run || {
#11443|   	      # note: this script will not be executed, so do not chmod.

Error: SHELLCHECK_WARNING (CWE-569): [#def143]
/usr/bin/libtool:11441:56: warning[SC2064]: Use single quotes, otherwise this expands now rather than when signalled.
#11439|   	    func_ltwrapper_scriptname $cwrapper
#11440|   	    $RM $func_ltwrapper_scriptname_result
#11441|-> 	    trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15
#11442|   	    $opt_dry_run || {
#11443|   	      # note: this script will not be executed, so do not chmod.

Error: SHELLCHECK_WARNING (CWE-569): [#def144]
/usr/bin/libtool:11453:12: warning[SC2064]: Use single quotes, otherwise this expands now rather than when signalled.
#11451|   	  * )
#11452|   	    $RM $output
#11453|-> 	    trap "$RM $output; exit $EXIT_FAILURE" 1 2 15
#11454|   
#11455|   	    func_emit_wrapper no > $output

Error: SHELLCHECK_WARNING (CWE-569): [#def145]
/usr/bin/libtool:11453:16: warning[SC2064]: Use single quotes, otherwise this expands now rather than when signalled.
#11451|   	  * )
#11452|   	    $RM $output
#11453|-> 	    trap "$RM $output; exit $EXIT_FAILURE" 1 2 15
#11454|   
#11455|   	    func_emit_wrapper no > $output

Error: SHELLCHECK_WARNING (CWE-569): [#def146]
/usr/bin/libtool:11453:30: warning[SC2064]: Use single quotes, otherwise this expands now rather than when signalled.
#11451|   	  * )
#11452|   	    $RM $output
#11453|-> 	    trap "$RM $output; exit $EXIT_FAILURE" 1 2 15
#11454|   
#11455|   	    func_emit_wrapper no > $output

Error: SHELLCHECK_WARNING: [#def147]
/usr/bin/libtool:11533:6: warning[SC2195]: This pattern will never match the case statement's word. Double check them.
#11531|   	    objbase=$func_basename_result
#11532|   	    case " $oldobjs " in
#11533|-> 	    " ") oldobjs=$obj ;;
#11534|   	    *[\ /]"$objbase "*)
#11535|   	      while :; do

Error: SHELLCHECK_WARNING (CWE-569): [#def148]
/usr/bin/libtool:11633:22: warning[SC1083]: This { is literal. Check expression (missing ;/\n?) or quote it.
#11631|         # Preserve any variables that may affect compiler behavior
#11632|         for var in $variables_saved_for_relink; do
#11633|-> 	if eval test -z \"\${$var+set}\"; then
#11634|   	  relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
#11635|   	elif eval var_value=\$$var; test -z "$var_value"; then

Error: SHELLCHECK_WARNING (CWE-569): [#def149]
/usr/bin/libtool:11633:31: warning[SC1083]: This } is literal. Check expression (missing ;/\n?) or quote it.
#11631|         # Preserve any variables that may affect compiler behavior
#11632|         for var in $variables_saved_for_relink; do
#11633|-> 	if eval test -z \"\${$var+set}\"; then
#11634|   	  relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
#11635|   	elif eval var_value=\$$var; test -z "$var_value"; then

Error: SHELLCHECK_WARNING (CWE-156): [#def150]
/usr/bin/libtool:11667:15: warning[SC2046]: Quote this to prevent word splitting.
#11665|   		name=$func_basename_result
#11666|   		func_resolve_sysroot "$deplib"
#11667|-> 		eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result`
#11668|   		test -z "$libdir" && \
#11669|   		  func_fatal_error "'$deplib' is not a valid libtool archive"

Error: SHELLCHECK_WARNING (CWE-156): [#def151]
/usr/bin/libtool:11693:15: warning[SC2046]: Quote this to prevent word splitting.
#11691|   	        func_basename "$lib"
#11692|   		name=$func_basename_result
#11693|-> 		eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
#11694|   		test -z "$libdir" && \
#11695|   		  func_fatal_error "'$lib' is not a valid libtool archive"

Error: SHELLCHECK_WARNING (CWE-156): [#def152]
/usr/bin/libtool:11712:15: warning[SC2046]: Quote this to prevent word splitting.
#11710|   		func_basename "$lib"
#11711|   		name=$func_basename_result
#11712|-> 		eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
#11713|   		test -z "$libdir" && \
#11714|   		  func_fatal_error "'$lib' is not a valid libtool archive"

Error: SHELLCHECK_WARNING (CWE-563): [#def153]
/usr/bin/libtool:11837:5: warning[SC2034]: libtool_install_magic appears unused. Verify use (or export if used externally).
#11835|       # This variable tells wrapper scripts just to set variables rather
#11836|       # than running their programs.
#11837|->     libtool_install_magic=$magic
#11838|   
#11839|       for arg

Error: SHELLCHECK_WARNING (CWE-563): [#def154]
/usr/bin/libtool:12796:1: warning[SC2034]: reload_flag appears unused. Verify use (or export if used externally).
#12794|   
#12795|   # How to create reloadable object files.
#12796|-> reload_flag=""
#12797|   reload_cmds=""
#12798|   

Error: SHELLCHECK_WARNING (CWE-563): [#def155]
/usr/bin/libtool:12809:1: warning[SC2034]: no_builtin_flag appears unused. Verify use (or export if used externally).
#12807|   
#12808|   # Compiler flag to turn off builtin functions.
#12809|-> no_builtin_flag=""
#12810|   
#12811|   # Additional compiler flags for building library objects.

Error: SHELLCHECK_WARNING (CWE-563): [#def156]
/usr/bin/libtool:12894:1: warning[SC2034]: inherit_rpath appears unused. Verify use (or export if used externally).
#12892|   # Set to yes if linker adds runtime paths of dependent libraries
#12893|   # to runtime path list.
#12894|-> inherit_rpath=
#12895|   
#12896|   # Whether libtool must link a program against all its dependency libraries.

Error: SHELLCHECK_WARNING (CWE-563): [#def157]
/usr/bin/libtool:12928:1: warning[SC2034]: predep_objects appears unused. Verify use (or export if used externally).
#12926|   # Dependencies to place before and after the objects being linked to
#12927|   # create a shared library.
#12928|-> predep_objects=""
#12929|   postdep_objects=""
#12930|   predeps=""

Error: SHELLCHECK_WARNING (CWE-563): [#def158]
/usr/bin/libtool:12929:1: warning[SC2034]: postdep_objects appears unused. Verify use (or export if used externally).
#12927|   # create a shared library.
#12928|   predep_objects=""
#12929|-> postdep_objects=""
#12930|   predeps=""
#12931|   postdeps=""

Error: SHELLCHECK_WARNING (CWE-563): [#def159]
/usr/bin/libtoolize:106:3: warning[SC2034]: NULLCMD appears unused. Verify use (or export if used externally).
#  104|   if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
#  105|     emulate sh
#  106|->   NULLCMD=:
#  107|     # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
#  108|     # is contrary to our usage.  Disable this feature.

Error: SHELLCHECK_WARNING (CWE-398): [#def160]
/usr/bin/libtoolize:109:12: error[SC2142]: Aliases can't use positional parameters. Use a function.
#  107|     # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
#  108|     # is contrary to our usage.  Disable this feature.
#  109|->   alias -g '${1+"$@"}'='"$@"'
#  110|     setopt NO_GLOB_SUBST
#  111|   else

Error: SHELLCHECK_WARNING: [#def161]
/usr/bin/libtoolize:112:50: warning[SC3040]: In POSIX sh, set option posix is undefined.
#  110|     setopt NO_GLOB_SUBST
#  111|   else
#  112|->   case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac
#  113|   fi
#  114|   

Error: SHELLCHECK_WARNING (CWE-563): [#def162]
/usr/bin/libtoolize:145:24: warning[SC2034]: FPATH appears unused. Verify use (or export if used externally).
#  143|     PATH_SEPARATOR=:
#  144|     (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
#  145|->     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
#  146|         PATH_SEPARATOR=';'
#  147|     }

Error: SHELLCHECK_WARNING (CWE-563): [#def163]
/usr/bin/libtoolize:354:1: warning[SC2034]: sed_naive_backslashify appears unused. Verify use (or export if used externally).
#  352|   # that contains forward slashes, into one that contains
#  353|   # (escaped) backslashes.  A very naive implementation.
#  354|-> sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
#  355|   
#  356|   # Re-'\' parameter expansions in output of sed_double_quote_subst that

Error: SHELLCHECK_WARNING: [#def164]
/usr/bin/libtoolize:380:7: warning[SC2141]: This IFS value contains a literal backslash. For tabs/linefeeds/escapes, use $'..', literal, or printf.
#  378|   {
#  379|     _G_save_IFS=$IFS
#  380|->   IFS='\'
#  381|     _G_check_ifs_backshlash='a\\b'
#  382|     for _G_i in $_G_check_ifs_backshlash

Error: SHELLCHECK_WARNING (CWE-563): [#def165]
/usr/bin/libtoolize:421:1: warning[SC2034]: EXIT_MISMATCH appears unused. Verify use (or export if used externally).
#  419|   EXIT_SUCCESS=0
#  420|   EXIT_FAILURE=1
#  421|-> EXIT_MISMATCH=63  # $? = 63 is used to indicate version mismatch to missing.
#  422|   EXIT_SKIP=77	  # $? = 77 is used to indicate a skipped test to automake.
#  423|   

Error: SHELLCHECK_WARNING (CWE-563): [#def166]
/usr/bin/libtoolize:422:1: warning[SC2034]: EXIT_SKIP appears unused. Verify use (or export if used externally).
#  420|   EXIT_FAILURE=1
#  421|   EXIT_MISMATCH=63  # $? = 63 is used to indicate version mismatch to missing.
#  422|-> EXIT_SKIP=77	  # $? = 77 is used to indicate a skipped test to automake.
#  423|   
#  424|   # Allow overriding, eg assuming that you follow the convention of

Error: SHELLCHECK_WARNING (CWE-457): [#def167]
/usr/bin/libtoolize:652:19: warning[SC2154]: _G_current_value is referenced but not assigned.
#  650|       _G_delim=`expr "$2" : '\(.\)'`
#  651|   
#  652|->     case $_G_delim$_G_current_value$_G_delim in
#  653|         *"$2$_G_delim"*) ;;
#  654|         *) func_append "$@" ;;

Error: SHELLCHECK_WARNING (CWE-563): [#def168]
/usr/bin/libtoolize:678:5: warning[SC2034]: func_arith_result appears unused. Verify use (or export if used externally).
#  676|       $debug_cmd
#  677|   
#  678|->     func_arith_result=`expr "$@"`
#  679|     }
#  680|   fi

Error: SHELLCHECK_WARNING (CWE-563): [#def169]
/usr/bin/libtoolize:870:5: warning[SC2034]: func_len_result appears unused. Verify use (or export if used externally).
#  868|       $debug_cmd
#  869|   
#  870|->     func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
#  871|     }
#  872|   fi

Error: SHELLCHECK_WARNING (CWE-457): [#def170]
/usr/bin/libtoolize:870:59: warning[SC2154]: max_cmd_len is referenced but not assigned.
#  868|       $debug_cmd
#  869|   
#  870|->     func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
#  871|     }
#  872|   fi

Error: SHELLCHECK_WARNING: [#def171]
/usr/bin/libtoolize:944:32: warning[SC3028]: In POSIX sh, RANDOM is undefined.
#  942|         if test ! -d "$_G_tmpdir"; then
#  943|           # Failing that, at least try and use $RANDOM to avoid a race
#  944|->         _G_tmpdir=$_G_template-${RANDOM-0}$$
#  945|   
#  946|           func_mktempdir_umask=`umask`

Error: SHELLCHECK_WARNING (CWE-457): [#def172]
/usr/bin/libtoolize:1038:38: warning[SC2154]: func_dirname_result is referenced but not assigned.
# 1036|             # Parent dir; strip last assembled component from result.
# 1037|             func_dirname "$func_normal_abspath_result"
# 1038|->           func_normal_abspath_result=$func_dirname_result
# 1039|             ;;
# 1040|           *)

Error: SHELLCHECK_WARNING (CWE-691): [#def173]
/usr/bin/libtoolize:1084:9: warning[SC2254]: Quote expansions in case patterns to match literally rather than as a glob.
# 1082|         # check if we have found a prefix of bindir
# 1083|         case $func_relative_path_tbindir in
# 1084|->         $func_relative_path_tlibdir)
# 1085|             # found an exact match
# 1086|             func_relative_path_tcancelled=

Error: SHELLCHECK_WARNING (CWE-456): [#def174]
/usr/bin/libtoolize:1171:17: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
# 1169|             do
# 1170|               # STATE($1) PREV($2) SEPARATOR($3)
# 1171|->             set start "" ""
# 1172|               func_quote_portable_result=dummy"$_G_char$func_quote_portable_result$_G_char"dummy
# 1173|               IFS=$_G_char

Error: SHELLCHECK_WARNING (CWE-456): [#def175]
/usr/bin/libtoolize:1179:21: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
# 1177|                 quote)
# 1178|                   func_append func_quote_portable_result "$3$2"
# 1179|->                 set quote "$_G_part" "\\$_G_char"
# 1180|                   ;;
# 1181|                 start)

Error: SHELLCHECK_WARNING (CWE-456): [#def176]
/usr/bin/libtoolize:1182:21: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
# 1180|                   ;;
# 1181|                 start)
# 1182|->                 set first "" ""
# 1183|                   func_quote_portable_result=
# 1184|                   ;;

Error: SHELLCHECK_WARNING (CWE-456): [#def177]
/usr/bin/libtoolize:1186:21: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
# 1184|                   ;;
# 1185|                 first)
# 1186|->                 set quote "$_G_part" ""
# 1187|                   ;;
# 1188|                 esac

Error: SHELLCHECK_WARNING (CWE-156): [#def178]
/usr/bin/libtoolize:1216:16: warning[SC2046]: Quote this to prevent word splitting.
# 1214|   # Quote one ARG (internal).  This is equivalent to 'func_quote_arg eval ARG',
# 1215|   # but optimized for speed.  Result is stored in $func_quotefast_eval.
# 1216|-> if test xyes = `(x=; printf -v x %q yes; echo x"$x") 2>/dev/null`; then
# 1217|     printf -v _GL_test_printf_tilde %q '~'
# 1218|     if test '\~' = "$_GL_test_printf_tilde"; then

Error: SHELLCHECK_WARNING: [#def179]
/usr/bin/libtoolize:1216:29: warning[SC3045]: In POSIX sh, printf -v is undefined.
# 1214|   # Quote one ARG (internal).  This is equivalent to 'func_quote_arg eval ARG',
# 1215|   # but optimized for speed.  Result is stored in $func_quotefast_eval.
# 1216|-> if test xyes = `(x=; printf -v x %q yes; echo x"$x") 2>/dev/null`; then
# 1217|     printf -v _GL_test_printf_tilde %q '~'
# 1218|     if test '\~' = "$_GL_test_printf_tilde"; then

Error: SHELLCHECK_WARNING: [#def180]
/usr/bin/libtoolize:1217:10: warning[SC3045]: In POSIX sh, printf -v is undefined.
# 1215|   # but optimized for speed.  Result is stored in $func_quotefast_eval.
# 1216|   if test xyes = `(x=; printf -v x %q yes; echo x"$x") 2>/dev/null`; then
# 1217|->   printf -v _GL_test_printf_tilde %q '~'
# 1218|     if test '\~' = "$_GL_test_printf_tilde"; then
# 1219|       func_quotefast_eval ()

Error: SHELLCHECK_WARNING: [#def181]
/usr/bin/libtoolize:1221:14: warning[SC3045]: In POSIX sh, printf -v is undefined.
# 1219|       func_quotefast_eval ()
# 1220|       {
# 1221|->       printf -v func_quotefast_eval_result %q "$1"
# 1222|       }
# 1223|     else

Error: SHELLCHECK_WARNING: [#def182]
/usr/bin/libtoolize:1233:18: warning[SC3045]: In POSIX sh, printf -v is undefined.
# 1231|             ;;
# 1232|           *)
# 1233|->           printf -v func_quotefast_eval_result %q "$1"
# 1234|             ;;
# 1235|         esac

Error: SHELLCHECK_WARNING (CWE-563): [#def183]
/usr/bin/libtoolize:1300:9: warning[SC2034]: func_quote_arg_unquoted_result appears unused. Verify use (or export if used externally).
# 1298|           func_quote_portable $_G_quote_expand "$2"
# 1299|           func_quote_arg_result=$func_quote_portable_result
# 1300|->         func_quote_arg_unquoted_result=$func_quote_portable_unquoted_result
# 1301|           ;;
# 1302|         *)

Error: SHELLCHECK_WARNING (CWE-563): [#def184]
/usr/bin/libtoolize:1431:7: warning[SC2034]: func_tr_sh_result appears unused. Verify use (or export if used externally).
# 1429|         ;;
# 1430|       * )
# 1431|->       func_tr_sh_result=$1
# 1432|         ;;
# 1433|       esac

Error: SHELLCHECK_WARNING (CWE-156): [#def185]
/usr/bin/libtoolize:1515:19: warning[SC2046]: Quote this to prevent word splitting.
# 1513|       $debug_cmd
# 1514|   
# 1515|->     test "x$1" = x`func_sort_ver "$1" "$2" | $SED 1q`
# 1516|   }
# 1517|   

Error: SHELLCHECK_WARNING (CWE-457): [#def186]
/usr/bin/libtoolize:1654:12: warning[SC2154]: hookable_fns is referenced but not assigned.
# 1652|       $debug_cmd
# 1653|   
# 1654|->     case " $hookable_fns " in
# 1655|         *" $1 "*) ;;
# 1656|         *) func_fatal_error "'$1' does not accept hook functions." ;;

Error: SHELLCHECK_WARNING (CWE-457): [#def187]
/usr/bin/libtoolize:1711:20: warning[SC2154]: _G_hook_fns is referenced but not assigned.
# 1709|       eval _G_hook_fns=\$$1_hooks; shift
# 1710|   
# 1711|->     for _G_hook in $_G_hook_fns; do
# 1712|         func_unset "${_G_hook}_result"
# 1713|         eval $_G_hook '${1+"$@"}'

Error: SHELLCHECK_WARNING (CWE-457): [#def188]
/usr/bin/libtoolize:1716:25: warning[SC2154]: func_run_hooks_result is referenced but not assigned.
# 1714|         func_propagate_result $_G_hook func_run_hooks
# 1715|         if $func_propagate_result_result; then
# 1716|->         eval set dummy "$func_run_hooks_result"; shift
# 1717|         fi
# 1718|       done

Error: SHELLCHECK_WARNING (CWE-456): [#def189]
/usr/bin/libtoolize:1911:27: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
# 1909|   
# 1910|           --no-warnings|--no-warning|--no-warn)
# 1911|->                       set dummy --warnings none ${1+"$@"}
# 1912|                         shift
# 1913|   		      ;;

Error: SHELLCHECK_WARNING (CWE-456): [#def190]
/usr/bin/libtoolize:1951:20: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
# 1949|   	# Separate optargs to long options (plugins may need this):
# 1950|   	--*=*)        func_split_equals "$_G_opt"
# 1951|-> 	              set dummy "$func_split_equals_lhs" \
# 1952|                             "$func_split_equals_rhs" ${1+"$@"}
# 1953|                         shift

Error: SHELLCHECK_WARNING (CWE-456): [#def191]
/usr/bin/libtoolize:1959:27: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
# 1957|           -W*)
# 1958|                         func_split_short_opt "$_G_opt"
# 1959|->                       set dummy "$func_split_short_opt_name" \
# 1960|                             "$func_split_short_opt_arg" ${1+"$@"}
# 1961|                         shift

Error: SHELLCHECK_WARNING (CWE-456): [#def192]
/usr/bin/libtoolize:1967:27: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
# 1965|           -\?*|-h*|-v*|-x*)
# 1966|                         func_split_short_opt "$_G_opt"
# 1967|->                       set dummy "$func_split_short_opt_name" \
# 1968|                             "-$func_split_short_opt_arg" ${1+"$@"}
# 1969|                         shift

Error: SHELLCHECK_WARNING (CWE-456): [#def193]
/usr/bin/libtoolize:1974:27: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
# 1972|           --)           _G_parse_options_requote=: ; break ;;
# 1973|           -*)           func_fatal_help "unrecognised option: '$_G_opt'" ;;
# 1974|->         *)            set dummy "$_G_opt" ${1+"$@"}; shift
# 1975|                         _G_match_parse_options=false
# 1976|                         break

Error: SHELLCHECK_WARNING (CWE-456): [#def194]
/usr/bin/libtoolize:2059:5: warning[SC2209]: Use var=$(command) to assign output (or quote to assign string).
# 2057|   
# 2058|       func_error "Missing argument for '$1'."
# 2059|->     exit_cmd=exit
# 2060|   }
# 2061|   

Error: SHELLCHECK_WARNING (CWE-156): [#def195]
/usr/bin/libtoolize:2232:26: warning[SC2046]: Quote this to prevent word splitting.
# 2230|   
# 2231|   # Make sure we've evaluated scripts we depend on.
# 2232|-> test -z "$progpath" && . `echo "$0" |${SED-sed} 's|[^/]*$||'`/funclib.sh
# 2233|   test extract-trace = "$progname" && . `echo "$0" |${SED-sed} 's|[^/]*$||'`/options-parser
# 2234|   

Error: SHELLCHECK_WARNING (CWE-156): [#def196]
/usr/bin/libtoolize:2233:39: warning[SC2046]: Quote this to prevent word splitting.
# 2231|   # Make sure we've evaluated scripts we depend on.
# 2232|   test -z "$progpath" && . `echo "$0" |${SED-sed} 's|[^/]*$||'`/funclib.sh
# 2233|-> test extract-trace = "$progname" && . `echo "$0" |${SED-sed} 's|[^/]*$||'`/options-parser
# 2234|   
# 2235|   # Set a version string.

Error: SHELLCHECK_WARNING (CWE-569): [#def197]
/usr/bin/libtoolize:2365:24: warning[SC2124]: Assigning an array to a string! Assign as array, or use * instead of @ to concatenate.
# 2363|       _G_find_tool_envvar=$1
# 2364|       shift
# 2365|->     _G_find_tool_names=$@
# 2366|       eval "_G_find_tool_res=\$$_G_find_tool_envvar"
# 2367|       if test -n "$_G_find_tool_res"; then

Error: SHELLCHECK_WARNING (CWE-457): [#def198]
/usr/bin/libtoolize:2368:36: warning[SC2154]: find_tool_envvar is referenced but not assigned.
# 2366|       eval "_G_find_tool_res=\$$_G_find_tool_envvar"
# 2367|       if test -n "$_G_find_tool_res"; then
# 2368|->       _G_find_tool_error_prefix="\$$find_tool_envvar: "
# 2369|       else
# 2370|         _G_find_tool_res=

Error: SHELLCHECK_WARNING (CWE-456): [#def199]
/usr/bin/libtoolize:2513:11: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
# 2511|       _G_macros="$1"; shift
# 2512|       test $# -gt 0 || {
# 2513|->       set dummy $configure_ac
# 2514|         shift
# 2515|       }

Error: SHELLCHECK_WARNING (CWE-569): [#def200]
/usr/bin/libtoolize:2518:5: warning[SC2188]: This redirection doesn't have a command. Move to its command (or use 'true' as no-op).
# 2516|   
# 2517|       # Generate an error if the first file is missing
# 2518|->     <"$1"
# 2519|   
# 2520|       # Sadly, we can't use 'autom4te' tracing to extract macro arguments,

Error: SHELLCHECK_WARNING (CWE-457): [#def201]
/usr/bin/libtoolize:2796:5: warning[SC2154]: debug_mode is referenced but not assigned.
# 2794|   libtoolize_environment_options ()
# 2795|   {
# 2796|->     $debug_mode
# 2797|   
# 2798|       my_sed_env_opt='1s/^\([^,:; ]*\).*$/\1/;q'

Error: SHELLCHECK_WARNING (CWE-563): [#def202]
/usr/bin/libtoolize:2820:5: warning[SC2034]: libtoolize_environment_options_result appears unused. Verify use (or export if used externally).
# 2818|         func_quote eval ${1+"$@"}
# 2819|       fi
# 2820|->     libtoolize_environment_options_result=$func_quote_result
# 2821|   }
# 2822|   func_add_hook func_options_prep libtoolize_environment_options

Error: SHELLCHECK_WARNING (CWE-456): [#def203]
/usr/bin/libtoolize:2902:8: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
# 2900|           -c*|-f*|-i*|-n*|-q*)
# 2901|   			func_split_short_opt "$_G_opt"
# 2902|-> 			set dummy "$func_split_short_opt_name" \
# 2903|   			    "-$func_split_short_opt_arg" ${1+"$@"}
# 2904|   			shift

Error: SHELLCHECK_WARNING (CWE-456): [#def204]
/usr/bin/libtoolize:2908:17: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
# 2906|   
# 2907|   	# An option not handled by this hook function:
# 2908|->         *)		set dummy "$_G_opt" ${1+"$@"}; shift; break ;;
# 2909|         esac
# 2910|       done

Error: SHELLCHECK_WARNING (CWE-563): [#def205]
/usr/bin/libtoolize:2914:5: warning[SC2034]: libtoolize_parse_options_result appears unused. Verify use (or export if used externally).
# 2912|       # save modified positional parameters for caller
# 2913|       func_quote eval ${1+"$@"}
# 2914|->     libtoolize_parse_options_result=$func_quote_result
# 2915|   }
# 2916|   func_add_hook func_parse_options libtoolize_parse_options

Error: SHELLCHECK_WARNING (CWE-563): [#def206]
/usr/bin/libtoolize:2948:5: warning[SC2034]: libtoolize_validate_options_result appears unused. Verify use (or export if used externally).
# 2946|       # Pass back the empty argument list
# 2947|       func_quote eval ${1+"$@"}
# 2948|->     libtoolize_validate_options_result=$func_quote_result
# 2949|   }
# 2950|   func_add_hook func_validate_options libtoolize_validate_options

Error: SHELLCHECK_WARNING (CWE-457): [#def207]
/usr/bin/libtoolize:2970:19: warning[SC2154]: my_msg is referenced but not assigned.
# 2968|         eval my_msg=\$$1
# 2969|   
# 2970|->       if test -n "$my_msg"; then
# 2971|           func_notquiet "$my_msg"
# 2972|           eval $1=

Error: SHELLCHECK_WARNING (CWE-563): [#def208]
/usr/bin/libtoolize:3099:5: warning[SC2034]: my_include_regex appears unused. Verify use (or export if used externally).
# 3097|       my_searchfile=$1
# 3098|   
# 3099|->     my_include_regex=
# 3100|       my_sed_include='
# 3101|           /^m4_include(\[.*\])$/ {

Error: SHELLCHECK_WARNING (CWE-457): [#def209]
/usr/bin/libtoolize:3140:17: warning[SC2154]: func_basename_result is referenced but not assigned.
# 3138|       my_serial=
# 3139|       func_dirname_and_basename "$my_filename"
# 3140|->     my_filebase=$func_basename_result
# 3141|       for my_file in `func_included_files "$my_filename"`; do
# 3142|         if test -z "$my_macro_regex" ||

Error: SHELLCHECK_WARNING (CWE-156): [#def210]
/usr/bin/libtoolize:3178:21: warning[SC2046]: Quote this to prevent word splitting.
# 3176|       func_serial_max_result=
# 3177|   
# 3178|->     test "X$1$2" = X`$ECHO "$1$2" | $SED "$my_sed_digits"` || {
# 3179|         func_error "serial numbers '$1' or '$2' contain non-digit chars"
# 3180|         return

Error: SHELLCHECK_WARNING (CWE-149): [#def211]
/usr/bin/libtoolize:3347:19: warning[SC2027]: The surrounding quotes actually unquote this. Remove or escape them.
# 3345|       # updated 'aclocal.m4'.
# 3346|       my_included_files=`func_included_files aclocal.m4`
# 3347|->     case `echo " "$my_included_files" "` in
# 3348|   
# 3349|         # Skip included files:

Error: SHELLCHECK_WARNING (CWE-156): [#def212]
/usr/bin/libtoolize:3359:32: warning[SC2046]: Quote this to prevent word splitting.
# 3357|           if test -f aclocal.m4 && test '' != "$my_src_serial"; then
# 3358|             func_serial_max \
# 3359|->               "$my_src_serial" `func_serial aclocal.m4 "$my_macro_regex"`
# 3360|             if test "X$my_src_serial" = "X$func_serial_max_result"; then
# 3361|   	      func_notquiet_hdr "$my_msg_var" \

Error: SHELLCHECK_WARNING (CWE-457): [#def213]
/usr/bin/libtoolize:3495:5: warning[SC2154]: require_am_macro_dir is referenced but not assigned (did you mean 'require_ac_macro_dir'?).
# 3493|   
# 3494|       $require_ac_macro_dir
# 3495|->     $require_am_macro_dir
# 3496|       $require_ltdl_mode
# 3497|       $require_macro_dir

Error: SHELLCHECK_WARNING (CWE-457): [#def214]
/usr/bin/libtoolize:3499:40: warning[SC2154]: am_macro_dir is referenced but not assigned (did you mean 'ac_macro_dir'?).
# 3497|       $require_macro_dir
# 3498|   
# 3499|->     $opt_ltdl || test -n "$ac_macro_dir$am_macro_dir" || return
# 3500|   
# 3501|       # Remove any lingering files that my have been installed by some

Error: SHELLCHECK_WARNING (CWE-563): [#def215]
/usr/bin/libtoolize:3512:7: warning[SC2034]: my_pkgmacro_header appears unused. Verify use (or export if used externally).
# 3510|         my_pkgmacro_header="putting macros in AC_CONFIG_MACRO_DIRS, '$ac_macro_dir'."
# 3511|       else
# 3512|->       my_pkgmacro_header="putting macros in '$macro_dir'."
# 3513|       fi
# 3514|   

Error: SHELLCHECK_WARNING (CWE-563): [#def216]
/usr/bin/libtoolize:3573:7: warning[SC2034]: pkgltdl_header appears unused. Verify use (or export if used externally).
# 3571|         pkgltdl_header="putting libltdl files in LT_CONFIG_LTDL_DIR, '$ac_ltdl_dir'."
# 3572|       else
# 3573|->       pkgltdl_header="putting libltdl files in '$ltdl_dir'."
# 3574|       fi
# 3575|   

Error: SHELLCHECK_WARNING (CWE-457): [#def217]
/usr/bin/libtoolize:3601:33: warning[SC2154]: filter_aclocal_m4 is referenced but not assigned.
# 3599|               ( opt_copy=:
# 3600|                 func_copy "$file" "$pkgltdldir" "$ltdl_dir" \
# 3601|->                 pkgltdl_header "$filter_aclocal_m4"
# 3602|               )
# 3603|             }

Error: SHELLCHECK_WARNING (CWE-457): [#def218]
/usr/bin/libtoolize:3627:33: warning[SC2154]: filter_configure_ac is referenced but not assigned.
# 3625|               ( opt_copy=:
# 3626|                 func_copy "$file" "$pkgltdldir" "$ltdl_dir" \
# 3627|->                 pkgltdl_header "$filter_configure_ac"
# 3628|               )
# 3629|             }

Error: SHELLCHECK_WARNING (CWE-563): [#def219]
/usr/bin/libtoolize:3678:7: warning[SC2034]: pkgaux_header appears unused. Verify use (or export if used externally).
# 3676|         pkgaux_header="putting auxiliary files in AC_CONFIG_AUX_DIR, '$ac_aux_dir'."
# 3677|       else
# 3678|->       pkgaux_header="putting auxiliary files in '$aux_dir'."
# 3679|       fi
# 3680|   

Error: SHELLCHECK_WARNING (CWE-563): [#def220]
/usr/bin/libtoolize:3706:5: warning[SC2034]: pkgaux_hdr appears unused. Verify use (or export if used externally).
# 3704|       # need another copy of ltmain.sh if the parent didn't declare an
# 3705|       # AC_CONFIG_AUX_DIR.
# 3706|->     pkgaux_hdr="putting another copy of auxiliary files in '.'"
# 3707|       test -f "$configure_ac" \
# 3708|         && test -z "$ac_aux_dir" \

Error: SHELLCHECK_WARNING (CWE-457): [#def221]
/usr/bin/libtoolize:4287:9: warning[SC2154]: require_ltdl_am_macro_dir is referenced but not assigned.
# 4285|         subproject)
# 4286|           # Adjust default relative macro_dir paths.
# 4287|->         $require_ltdl_am_macro_dir
# 4288|   
# 4289|           func_make_relative_ltdl_filter "$ltdl_am_macro_dir" "$macro_dir" '-I '

Error: SHELLCHECK_WARNING (CWE-457): [#def222]
/usr/bin/libtoolize:4289:41: warning[SC2154]: ltdl_am_macro_dir is referenced but not assigned.
# 4287|           $require_ltdl_am_macro_dir
# 4288|   
# 4289|->         func_make_relative_ltdl_filter "$ltdl_am_macro_dir" "$macro_dir" '-I '
# 4290|           test -z "$func_make_relative_ltdl_filter_result" || {
# 4291|             func_append filter_Makefile_am "

Error: SHELLCHECK_WARNING (CWE-456): [#def223]
/usr/bin/libtoolize:4490:29: warning[SC2209]: Use var=$(command) to assign output (or quote to assign string).
# 4488|   
# 4489|       # Use ./m4 as the last resort.
# 4490|->     test -z "$macro_dir" && macro_dir=m4
# 4491|   
# 4492|       # Diagnose conflicts.

Error: SHELLCHECK_WARNING (CWE-563): [#def224]
/usr/bin/libtoolize:4572:3: warning[SC2034]: prefix appears unused. Verify use (or export if used externally).
# 4570|   
# 4571|     # Locations for important files:
# 4572|->   prefix="/usr"
# 4573|     datadir="/usr/share"
# 4574|     pkgauxdir="/usr/share/libtool/build-aux"

Error: SHELLCHECK_WARNING (CWE-563): [#def225]
/usr/bin/libtoolize:4573:3: warning[SC2034]: datadir appears unused. Verify use (or export if used externally).
# 4571|     # Locations for important files:
# 4572|     prefix="/usr"
# 4573|->   datadir="/usr/share"
# 4574|     pkgauxdir="/usr/share/libtool/build-aux"
# 4575|     pkgltdldir="/usr/share/libtool"

Error: SHELLCHECK_WARNING (CWE-457): [#def226]
/usr/bin/libtoolize:4579:15: warning[SC2154]: _lt_pkgdatadir is referenced but not assigned.
# 4577|   
# 4578|     # Allow the user to override the master libtoolize repository:
# 4579|->   if test -n "$_lt_pkgdatadir"; then
# 4580|       pkgauxdir=$_lt_pkgdatadir/build-aux
# 4581|       pkgltdldir=$_lt_pkgdatadir/libltdl

Error: SHELLCHECK_WARNING (CWE-563): [#def227]
/usr/bin/libtoolize:4588:3: warning[SC2034]: extract_trace appears unused. Verify use (or export if used externally).
# 4586|     func_nonemptydir_p aclocaldir
# 4587|   
# 4588|->   extract_trace=$pkgauxdir/extract-trace
# 4589|   
# 4590|     # :::BE CAREFUL HERE:::

Error: SHELLCHECK_WARNING (CWE-456): [#def228]
/usr/share/libtool/build-aux/compile:148:12: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
#  146|   	    *.o | *.lo | *.[oO][bB][jJ])
#  147|   	      func_file_conv "$2"
#  148|-> 	      set x "$@" -Fo"$file"
#  149|   	      shift
#  150|   	      ;;

Error: SHELLCHECK_WARNING (CWE-456): [#def229]
/usr/share/libtool/build-aux/compile:153:12: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
#  151|   	    *)
#  152|   	      func_file_conv "$2"
#  153|-> 	      set x "$@" -Fe"$file"
#  154|   	      shift
#  155|   	      ;;

Error: SHELLCHECK_WARNING (CWE-456): [#def230]
/usr/share/libtool/build-aux/compile:161:8: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
#  159|   	  eat=1
#  160|   	  func_file_conv "$2" mingw
#  161|-> 	  set x "$@" -I"$file"
#  162|   	  shift
#  163|   	  ;;

Error: SHELLCHECK_WARNING (CWE-456): [#def231]
/usr/share/libtool/build-aux/compile:166:8: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
#  164|   	-I*)
#  165|   	  func_file_conv "${1#-I}" mingw
#  166|-> 	  set x "$@" -I"$file"
#  167|   	  shift
#  168|   	  ;;

Error: SHELLCHECK_WARNING (CWE-456): [#def232]
/usr/share/libtool/build-aux/compile:172:8: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
#  170|   	  eat=1
#  171|   	  func_cl_dashl "$2"
#  172|-> 	  set x "$@" "$lib"
#  173|   	  shift
#  174|   	  ;;

Error: SHELLCHECK_WARNING (CWE-456): [#def233]
/usr/share/libtool/build-aux/compile:177:8: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
#  175|   	-l*)
#  176|   	  func_cl_dashl "${1#-l}"
#  177|-> 	  set x "$@" "$lib"
#  178|   	  shift
#  179|   	  ;;

Error: SHELLCHECK_WARNING (CWE-456): [#def234]
/usr/share/libtool/build-aux/compile:204:8: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
#  202|   	  ;;
#  203|   	-*)
#  204|-> 	  set x "$@" "$1"
#  205|   	  shift
#  206|   	  ;;

Error: SHELLCHECK_WARNING (CWE-456): [#def235]
/usr/share/libtool/build-aux/compile:209:8: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
#  207|   	*.cc | *.CC | *.cxx | *.CXX | *.[cC]++)
#  208|   	  func_file_conv "$1"
#  209|-> 	  set x "$@" -Tp"$file"
#  210|   	  shift
#  211|   	  ;;

Error: SHELLCHECK_WARNING (CWE-456): [#def236]
/usr/share/libtool/build-aux/compile:214:8: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
#  212|   	*.c | *.cpp | *.CPP | *.lib | *.LIB | *.Lib | *.OBJ | *.obj | *.[oO])
#  213|   	  func_file_conv "$1" mingw
#  214|-> 	  set x "$@" "$file"
#  215|   	  shift
#  216|   	  ;;

Error: SHELLCHECK_WARNING (CWE-456): [#def237]
/usr/share/libtool/build-aux/compile:218:8: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
#  216|   	  ;;
#  217|   	*)
#  218|-> 	  set x "$@" "$1"
#  219|   	  shift
#  220|   	  ;;

Error: SHELLCHECK_WARNING: [#def238]
/usr/share/libtool/build-aux/compile:258:10: warning[SC2320]: This $? refers to echo/printf, not a previous command. Assign to variable to avoid it being overwritten.
#  256|     -v | --v*)
#  257|       echo "compile (GNU Automake) $scriptversion"
#  258|->     exit $?
#  259|       ;;
#  260|     cl | *[/\\]cl | cl.exe | *[/\\]cl.exe | \

Error: SHELLCHECK_WARNING (CWE-456): [#def239]
/usr/share/libtool/build-aux/compile:285:10: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
#  283|   	    ;;
#  284|   	  *)
#  285|-> 	    set x "$@" -o "$2"
#  286|   	    shift
#  287|   	    ;;

Error: SHELLCHECK_WARNING (CWE-456): [#def240]
/usr/share/libtool/build-aux/compile:292:6: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
#  290|         *.c)
#  291|   	cfile=$1
#  292|-> 	set x "$@" "$1"
#  293|   	shift
#  294|   	;;

Error: SHELLCHECK_WARNING (CWE-456): [#def241]
/usr/share/libtool/build-aux/compile:296:6: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
#  294|   	;;
#  295|         *)
#  296|-> 	set x "$@" "$1"
#  297|   	shift
#  298|   	;;

Error: SHELLCHECK_WARNING (CWE-569): [#def242]
/usr/share/libtool/build-aux/compile:328:14: warning[SC2064]: Use single quotes, otherwise this expands now rather than when signalled.
#  326|   done
#  327|   # FIXME: race condition here if user kills between mkdir and trap.
#  328|-> trap "rmdir '$lockdir'; exit 1" 1 2 15
#  329|   
#  330|   # Run the compile.

Error: SHELLCHECK_WARNING: [#def243]
/usr/share/libtool/build-aux/depcomp:57:10: warning[SC2320]: This $? refers to echo/printf, not a previous command. Assign to variable to avoid it being overwritten.
#   55|     -v | --v*)
#   56|       echo "depcomp (GNU Automake) $scriptversion"
#   57|->     exit $?
#   58|       ;;
#   59|   esac

Error: SHELLCHECK_WARNING (CWE-457): [#def244]
/usr/share/libtool/build-aux/depcomp:100:33: warning[SC2154]: object is referenced but not assigned.
#   98|       #   dependency.h:
#   99|       # which is needed to avoid the deleted-header problem.
#  100|->     { sed -e "s,^.*\.[$lower]*:,$object:," < "$tmpdepfile"
#  101|         sed -e "s,^.*\.[$lower]*:[$tab ]*,," -e 's,$,:,' < "$tmpdepfile"
#  102|       } > "$depfile"

Error: SHELLCHECK_WARNING (CWE-457): [#def245]
/usr/share/libtool/build-aux/depcomp:120:35: warning[SC2154]: source is referenced but not assigned.
#  118|   alpha=${upper}${lower}
#  119|   
#  120|-> if test -z "$depmode" || test -z "$source" || test -z "$object"; then
#  121|     echo "depcomp: Variables source, object and depmode must be set" 1>&2
#  122|     exit 1

Error: SHELLCHECK_WARNING (CWE-480): [#def246]
/usr/share/libtool/build-aux/depcomp:133:9: warning[SC1007]: Remove space after = if trying to assign a value (for empty string, use var='' ... ).
#  131|   
#  132|   # Avoid interference from the environment.
#  133|-> gccflag= dashmflag=
#  134|   
#  135|   # Some modes work just like other modes, but use different flags.  We

Error: SHELLCHECK_WARNING (CWE-456): [#def247]
/usr/share/libtool/build-aux/depcomp:186:13: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
#  184|     do
#  185|       case $arg in
#  186|->     -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;;
#  187|       *)  set fnord "$@" "$arg" ;;
#  188|       esac

Error: SHELLCHECK_WARNING (CWE-456): [#def248]
/usr/share/libtool/build-aux/depcomp:187:13: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
#  185|       case $arg in
#  186|       -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;;
#  187|->     *)  set fnord "$@" "$arg" ;;
#  188|       esac
#  189|       shift # fnord

Error: SHELLCHECK_WARNING (CWE-457): [#def249]
/usr/share/libtool/build-aux/depcomp:256:12: warning[SC2154]: libtool is referenced but not assigned.
#  254|   
#  255|   sgi)
#  256|->   if test "$libtool" = yes; then
#  257|       "$@" "-Wp,-MDupdate,$tmpdepfile"
#  258|     else

Error: SHELLCHECK_WARNING (CWE-569): [#def250]
/usr/share/libtool/build-aux/depcomp:387:11: warning[SC2064]: Use single quotes, otherwise this expands now rather than when signalled.
#  385|     lockdir=$base.d-lock
#  386|     trap "
#  387|->     echo '$0: caught signal, cleaning up...' >&2
#  388|       rmdir '$lockdir'
#  389|       exit 1

Error: SHELLCHECK_WARNING (CWE-569): [#def251]
/usr/share/libtool/build-aux/depcomp:388:12: warning[SC2064]: Use single quotes, otherwise this expands now rather than when signalled.
#  386|     trap "
#  387|       echo '$0: caught signal, cleaning up...' >&2
#  388|->     rmdir '$lockdir'
#  389|       exit 1
#  390|     " 1 2 13 15

Error: SHELLCHECK_WARNING (CWE-398): [#def252]
/usr/share/libtool/build-aux/depcomp:390:9: warning[SC2172]: Trapping signals by number is not well defined. Prefer signal names.
#  388|       rmdir '$lockdir'
#  389|       exit 1
#  390|->   " 1 2 13 15
#  391|     numtries=100
#  392|     i=$numtries

Error: SHELLCHECK_WARNING (CWE-691): [#def253]
/usr/share/libtool/build-aux/depcomp:592:5: warning[SC2254]: Quote expansions in case patterns to match literally rather than as a glob.
#  590|         shift
#  591|         ;;
#  592|->     $object)
#  593|         shift
#  594|         ;;

Error: SHELLCHECK_WARNING (CWE-456): [#def254]
/usr/share/libtool/build-aux/depcomp:596:11: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
#  594|         ;;
#  595|       *)
#  596|->       set fnord "$@" "$arg"
#  597|         shift # fnord
#  598|         shift # $arg

Error: SHELLCHECK_WARNING (CWE-456): [#def255]
/usr/share/libtool/build-aux/depcomp:650:11: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
#  648|       case "$arg" in
#  649|       -D*|-I*)
#  650|->       set fnord "$@" "$arg"; shift ;;
#  651|       # Strip any option that makedepend may not understand.  Remove
#  652|       # the object too, otherwise makedepend will parse it as a source file.

Error: SHELLCHECK_WARNING (CWE-691): [#def256]
/usr/share/libtool/build-aux/depcomp:655:8: warning[SC2254]: Quote expansions in case patterns to match literally rather than as a glob.
#  653|       -arch)
#  654|         eat=yes ;;
#  655|->     -*|$object)
#  656|         ;;
#  657|       *)

Error: SHELLCHECK_WARNING (CWE-456): [#def257]
/usr/share/libtool/build-aux/depcomp:658:11: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
#  656|         ;;
#  657|       *)
#  658|->       set fnord "$@" "$arg"; shift ;;
#  659|       esac
#  660|     done

Error: SHELLCHECK_WARNING (CWE-691): [#def258]
/usr/share/libtool/build-aux/depcomp:698:5: warning[SC2254]: Quote expansions in case patterns to match literally rather than as a glob.
#  696|         shift
#  697|         ;;
#  698|->     $object)
#  699|         shift
#  700|         ;;

Error: SHELLCHECK_WARNING (CWE-456): [#def259]
/usr/share/libtool/build-aux/depcomp:702:11: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
#  700|         ;;
#  701|       *)
#  702|->       set fnord "$@" "$arg"
#  703|         shift # fnord
#  704|         shift # $arg

Error: SHELLCHECK_WARNING (CWE-691): [#def260]
/usr/share/libtool/build-aux/depcomp:740:5: warning[SC2254]: Quote expansions in case patterns to match literally rather than as a glob.
#  738|         shift
#  739|         ;;
#  740|->     $object)
#  741|         shift
#  742|         ;;

Error: SHELLCHECK_WARNING (CWE-456): [#def261]
/usr/share/libtool/build-aux/depcomp:744:13: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
#  742|         ;;
#  743|       "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
#  744|->         set fnord "$@"
#  745|           shift
#  746|           shift

Error: SHELLCHECK_WARNING (CWE-456): [#def262]
/usr/share/libtool/build-aux/depcomp:749:13: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
#  747|           ;;
#  748|       *)
#  749|->         set fnord "$@" "$arg"
#  750|           shift
#  751|           shift

Error: SHELLCHECK_WARNING: [#def263]
/usr/share/libtool/build-aux/install-sh:142:33: warning[SC2320]: This $? refers to echo/printf, not a previous command. Assign to variable to avoid it being overwritten.
#  140|           shift;;
#  141|   
#  142|->     --help) echo "$usage"; exit $?;;
#  143|   
#  144|       -m) mode=$2

Error: SHELLCHECK_WARNING: [#def264]
/usr/share/libtool/build-aux/install-sh:173:62: warning[SC2320]: This $? refers to echo/printf, not a previous command. Assign to variable to avoid it being overwritten.
#  171|       -T) is_target_a_directory=never;;
#  172|   
#  173|->     --version) echo "$0 (GNU Automake) $scriptversion"; exit $?;;
#  174|   
#  175|       --) shift

Error: SHELLCHECK_WARNING (CWE-456): [#def265]
/usr/share/libtool/build-aux/install-sh:204:11: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
#  202|       if test -n "$dst_arg"; then
#  203|         # $@ is not empty: it contains at least $arg.
#  204|->       set fnord "$@" "$dst_arg"
#  205|         shift # fnord
#  206|       fi

Error: SHELLCHECK_WARNING (CWE-569): [#def266]
/usr/share/libtool/build-aux/install-sh:237:18: warning[SC2064]: Use single quotes, otherwise this expands now rather than when signalled.
#  235|   if test -z "$dir_arg"; then
#  236|     do_exit='(exit $ret); exit $ret'
#  237|->   trap "ret=129; $do_exit" 1
#  238|     trap "ret=130; $do_exit" 2
#  239|     trap "ret=141; $do_exit" 13

Error: SHELLCHECK_WARNING (CWE-569): [#def267]
/usr/share/libtool/build-aux/install-sh:238:18: warning[SC2064]: Use single quotes, otherwise this expands now rather than when signalled.
#  236|     do_exit='(exit $ret); exit $ret'
#  237|     trap "ret=129; $do_exit" 1
#  238|->   trap "ret=130; $do_exit" 2
#  239|     trap "ret=141; $do_exit" 13
#  240|     trap "ret=143; $do_exit" 15

Error: SHELLCHECK_WARNING (CWE-569): [#def268]
/usr/share/libtool/build-aux/install-sh:239:18: warning[SC2064]: Use single quotes, otherwise this expands now rather than when signalled.
#  237|     trap "ret=129; $do_exit" 1
#  238|     trap "ret=130; $do_exit" 2
#  239|->   trap "ret=141; $do_exit" 13
#  240|     trap "ret=143; $do_exit" 15
#  241|   

Error: SHELLCHECK_WARNING (CWE-398): [#def269]
/usr/share/libtool/build-aux/install-sh:239:28: warning[SC2172]: Trapping signals by number is not well defined. Prefer signal names.
#  237|     trap "ret=129; $do_exit" 1
#  238|     trap "ret=130; $do_exit" 2
#  239|->   trap "ret=141; $do_exit" 13
#  240|     trap "ret=143; $do_exit" 15
#  241|   

Error: SHELLCHECK_WARNING (CWE-569): [#def270]
/usr/share/libtool/build-aux/install-sh:240:18: warning[SC2064]: Use single quotes, otherwise this expands now rather than when signalled.
#  238|     trap "ret=130; $do_exit" 2
#  239|     trap "ret=141; $do_exit" 13
#  240|->   trap "ret=143; $do_exit" 15
#  241|   
#  242|     # Set umask so as not to create temps with too-generous modes.

Error: SHELLCHECK_WARNING: [#def271]
/usr/share/libtool/build-aux/install-sh:339:27: warning[SC3028]: In POSIX sh, RANDOM is undefined.
#  337|   	# The $RANDOM variable is not portable (e.g., dash).  Use it
#  338|   	# here however when possible just to lower collision chance.
#  339|-> 	tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
#  340|   
#  341|   	trap '

Error: SHELLCHECK_WARNING (CWE-457): [#def272]
/usr/share/libtool/build-aux/install-sh:341:7: warning[SC2154]: ret is referenced but not assigned.
#  339|   	tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
#  340|   
#  341|-> 	trap '
#  342|   	  ret=$?
#  343|   	  rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" 2>/dev/null

Error: SHELLCHECK_WARNING (CWE-456): [#def273]
/usr/share/libtool/build-aux/install-sh:403:11: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
#  401|         IFS=/
#  402|         set -f
#  403|->       set fnord $dstdir
#  404|         shift
#  405|         set +f

Error: SHELLCHECK_WARNING (CWE-456): [#def274]
/usr/share/libtool/build-aux/install-sh:488:12: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
#  486|          new=`LC_ALL=C ls -dlL "$dsttmp"  2>/dev/null` &&
#  487|          set -f &&
#  488|->        set X $old && old=:$2:$4:$5:$6 &&
#  489|          set X $new && new=:$2:$4:$5:$6 &&
#  490|          set +f &&

Error: SHELLCHECK_WARNING (CWE-456): [#def275]
/usr/share/libtool/build-aux/install-sh:489:12: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
#  487|          set -f &&
#  488|          set X $old && old=:$2:$4:$5:$6 &&
#  489|->        set X $new && new=:$2:$4:$5:$6 &&
#  490|          set +f &&
#  491|          test "$old" = "$new" &&

Error: SHELLCHECK_WARNING (CWE-563): [#def276]
/usr/share/libtool/build-aux/ltmain.sh:111:3: warning[SC2034]: NULLCMD appears unused. Verify use (or export if used externally).
#  109|   if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
#  110|     emulate sh
#  111|->   NULLCMD=:
#  112|     # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
#  113|     # is contrary to our usage.  Disable this feature.

Error: SHELLCHECK_WARNING (CWE-398): [#def277]
/usr/share/libtool/build-aux/ltmain.sh:114:12: error[SC2142]: Aliases can't use positional parameters. Use a function.
#  112|     # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
#  113|     # is contrary to our usage.  Disable this feature.
#  114|->   alias -g '${1+"$@"}'='"$@"'
#  115|     setopt NO_GLOB_SUBST
#  116|   else

Error: SHELLCHECK_WARNING: [#def278]
/usr/share/libtool/build-aux/ltmain.sh:117:50: warning[SC3040]: In POSIX sh, set option posix is undefined.
#  115|     setopt NO_GLOB_SUBST
#  116|   else
#  117|->   case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac
#  118|   fi
#  119|   

Error: SHELLCHECK_WARNING (CWE-563): [#def279]
/usr/share/libtool/build-aux/ltmain.sh:150:24: warning[SC2034]: FPATH appears unused. Verify use (or export if used externally).
#  148|     PATH_SEPARATOR=:
#  149|     (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
#  150|->     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
#  151|         PATH_SEPARATOR=';'
#  152|     }

Error: SHELLCHECK_WARNING: [#def280]
/usr/share/libtool/build-aux/ltmain.sh:385:7: warning[SC2141]: This IFS value contains a literal backslash. For tabs/linefeeds/escapes, use $'..', literal, or printf.
#  383|   {
#  384|     _G_save_IFS=$IFS
#  385|->   IFS='\'
#  386|     _G_check_ifs_backshlash='a\\b'
#  387|     for _G_i in $_G_check_ifs_backshlash

Error: SHELLCHECK_WARNING (CWE-563): [#def281]
/usr/share/libtool/build-aux/ltmain.sh:427:1: warning[SC2034]: EXIT_SKIP appears unused. Verify use (or export if used externally).
#  425|   EXIT_FAILURE=1
#  426|   EXIT_MISMATCH=63  # $? = 63 is used to indicate version mismatch to missing.
#  427|-> EXIT_SKIP=77	  # $? = 77 is used to indicate a skipped test to automake.
#  428|   
#  429|   # Allow overriding, eg assuming that you follow the convention of

Error: SHELLCHECK_WARNING (CWE-457): [#def282]
/usr/share/libtool/build-aux/ltmain.sh:657:19: warning[SC2154]: _G_current_value is referenced but not assigned.
#  655|       _G_delim=`expr "$2" : '\(.\)'`
#  656|   
#  657|->     case $_G_delim$_G_current_value$_G_delim in
#  658|         *"$2$_G_delim"*) ;;
#  659|         *) func_append "$@" ;;

Error: SHELLCHECK_WARNING (CWE-457): [#def283]
/usr/share/libtool/build-aux/ltmain.sh:875:59: warning[SC2154]: max_cmd_len is referenced but not assigned.
#  873|       $debug_cmd
#  874|   
#  875|->     func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
#  876|     }
#  877|   fi

Error: SHELLCHECK_WARNING: [#def284]
/usr/share/libtool/build-aux/ltmain.sh:949:32: warning[SC3028]: In POSIX sh, RANDOM is undefined.
#  947|         if test ! -d "$_G_tmpdir"; then
#  948|           # Failing that, at least try and use $RANDOM to avoid a race
#  949|->         _G_tmpdir=$_G_template-${RANDOM-0}$$
#  950|   
#  951|           func_mktempdir_umask=`umask`

Error: SHELLCHECK_WARNING (CWE-457): [#def285]
/usr/share/libtool/build-aux/ltmain.sh:1043:38: warning[SC2154]: func_dirname_result is referenced but not assigned.
# 1041|             # Parent dir; strip last assembled component from result.
# 1042|             func_dirname "$func_normal_abspath_result"
# 1043|->           func_normal_abspath_result=$func_dirname_result
# 1044|             ;;
# 1045|           *)

Error: SHELLCHECK_WARNING (CWE-691): [#def286]
/usr/share/libtool/build-aux/ltmain.sh:1089:9: warning[SC2254]: Quote expansions in case patterns to match literally rather than as a glob.
# 1087|         # check if we have found a prefix of bindir
# 1088|         case $func_relative_path_tbindir in
# 1089|->         $func_relative_path_tlibdir)
# 1090|             # found an exact match
# 1091|             func_relative_path_tcancelled=

Error: SHELLCHECK_WARNING (CWE-456): [#def287]
/usr/share/libtool/build-aux/ltmain.sh:1176:17: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
# 1174|             do
# 1175|               # STATE($1) PREV($2) SEPARATOR($3)
# 1176|->             set start "" ""
# 1177|               func_quote_portable_result=dummy"$_G_char$func_quote_portable_result$_G_char"dummy
# 1178|               IFS=$_G_char

Error: SHELLCHECK_WARNING (CWE-456): [#def288]
/usr/share/libtool/build-aux/ltmain.sh:1184:21: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
# 1182|                 quote)
# 1183|                   func_append func_quote_portable_result "$3$2"
# 1184|->                 set quote "$_G_part" "\\$_G_char"
# 1185|                   ;;
# 1186|                 start)

Error: SHELLCHECK_WARNING (CWE-456): [#def289]
/usr/share/libtool/build-aux/ltmain.sh:1187:21: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
# 1185|                   ;;
# 1186|                 start)
# 1187|->                 set first "" ""
# 1188|                   func_quote_portable_result=
# 1189|                   ;;

Error: SHELLCHECK_WARNING (CWE-456): [#def290]
/usr/share/libtool/build-aux/ltmain.sh:1191:21: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
# 1189|                   ;;
# 1190|                 first)
# 1191|->                 set quote "$_G_part" ""
# 1192|                   ;;
# 1193|                 esac

Error: SHELLCHECK_WARNING (CWE-156): [#def291]
/usr/share/libtool/build-aux/ltmain.sh:1221:16: warning[SC2046]: Quote this to prevent word splitting.
# 1219|   # Quote one ARG (internal).  This is equivalent to 'func_quote_arg eval ARG',
# 1220|   # but optimized for speed.  Result is stored in $func_quotefast_eval.
# 1221|-> if test xyes = `(x=; printf -v x %q yes; echo x"$x") 2>/dev/null`; then
# 1222|     printf -v _GL_test_printf_tilde %q '~'
# 1223|     if test '\~' = "$_GL_test_printf_tilde"; then

Error: SHELLCHECK_WARNING: [#def292]
/usr/share/libtool/build-aux/ltmain.sh:1221:29: warning[SC3045]: In POSIX sh, printf -v is undefined.
# 1219|   # Quote one ARG (internal).  This is equivalent to 'func_quote_arg eval ARG',
# 1220|   # but optimized for speed.  Result is stored in $func_quotefast_eval.
# 1221|-> if test xyes = `(x=; printf -v x %q yes; echo x"$x") 2>/dev/null`; then
# 1222|     printf -v _GL_test_printf_tilde %q '~'
# 1223|     if test '\~' = "$_GL_test_printf_tilde"; then

Error: SHELLCHECK_WARNING: [#def293]
/usr/share/libtool/build-aux/ltmain.sh:1222:10: warning[SC3045]: In POSIX sh, printf -v is undefined.
# 1220|   # but optimized for speed.  Result is stored in $func_quotefast_eval.
# 1221|   if test xyes = `(x=; printf -v x %q yes; echo x"$x") 2>/dev/null`; then
# 1222|->   printf -v _GL_test_printf_tilde %q '~'
# 1223|     if test '\~' = "$_GL_test_printf_tilde"; then
# 1224|       func_quotefast_eval ()

Error: SHELLCHECK_WARNING: [#def294]
/usr/share/libtool/build-aux/ltmain.sh:1226:14: warning[SC3045]: In POSIX sh, printf -v is undefined.
# 1224|       func_quotefast_eval ()
# 1225|       {
# 1226|->       printf -v func_quotefast_eval_result %q "$1"
# 1227|       }
# 1228|     else

Error: SHELLCHECK_WARNING: [#def295]
/usr/share/libtool/build-aux/ltmain.sh:1238:18: warning[SC3045]: In POSIX sh, printf -v is undefined.
# 1236|             ;;
# 1237|           *)
# 1238|->           printf -v func_quotefast_eval_result %q "$1"
# 1239|             ;;
# 1240|         esac

Error: SHELLCHECK_WARNING (CWE-156): [#def296]
/usr/share/libtool/build-aux/ltmain.sh:1520:19: warning[SC2046]: Quote this to prevent word splitting.
# 1518|       $debug_cmd
# 1519|   
# 1520|->     test "x$1" = x`func_sort_ver "$1" "$2" | $SED 1q`
# 1521|   }
# 1522|   

Error: SHELLCHECK_WARNING (CWE-457): [#def297]
/usr/share/libtool/build-aux/ltmain.sh:1659:12: warning[SC2154]: hookable_fns is referenced but not assigned.
# 1657|       $debug_cmd
# 1658|   
# 1659|->     case " $hookable_fns " in
# 1660|         *" $1 "*) ;;
# 1661|         *) func_fatal_error "'$1' does not accept hook functions." ;;

Error: SHELLCHECK_WARNING (CWE-457): [#def298]
/usr/share/libtool/build-aux/ltmain.sh:1716:20: warning[SC2154]: _G_hook_fns is referenced but not assigned.
# 1714|       eval _G_hook_fns=\$$1_hooks; shift
# 1715|   
# 1716|->     for _G_hook in $_G_hook_fns; do
# 1717|         func_unset "${_G_hook}_result"
# 1718|         eval $_G_hook '${1+"$@"}'

Error: SHELLCHECK_WARNING (CWE-457): [#def299]
/usr/share/libtool/build-aux/ltmain.sh:1721:25: warning[SC2154]: func_run_hooks_result is referenced but not assigned.
# 1719|         func_propagate_result $_G_hook func_run_hooks
# 1720|         if $func_propagate_result_result; then
# 1721|->         eval set dummy "$func_run_hooks_result"; shift
# 1722|         fi
# 1723|       done

Error: SHELLCHECK_WARNING (CWE-456): [#def300]
/usr/share/libtool/build-aux/ltmain.sh:1916:27: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
# 1914|   
# 1915|           --no-warnings|--no-warning|--no-warn)
# 1916|->                       set dummy --warnings none ${1+"$@"}
# 1917|                         shift
# 1918|   		      ;;

Error: SHELLCHECK_WARNING (CWE-456): [#def301]
/usr/share/libtool/build-aux/ltmain.sh:1956:20: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
# 1954|   	# Separate optargs to long options (plugins may need this):
# 1955|   	--*=*)        func_split_equals "$_G_opt"
# 1956|-> 	              set dummy "$func_split_equals_lhs" \
# 1957|                             "$func_split_equals_rhs" ${1+"$@"}
# 1958|                         shift

Error: SHELLCHECK_WARNING (CWE-456): [#def302]
/usr/share/libtool/build-aux/ltmain.sh:1964:27: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
# 1962|           -W*)
# 1963|                         func_split_short_opt "$_G_opt"
# 1964|->                       set dummy "$func_split_short_opt_name" \
# 1965|                             "$func_split_short_opt_arg" ${1+"$@"}
# 1966|                         shift

Error: SHELLCHECK_WARNING (CWE-456): [#def303]
/usr/share/libtool/build-aux/ltmain.sh:1972:27: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
# 1970|           -\?*|-h*|-v*|-x*)
# 1971|                         func_split_short_opt "$_G_opt"
# 1972|->                       set dummy "$func_split_short_opt_name" \
# 1973|                             "-$func_split_short_opt_arg" ${1+"$@"}
# 1974|                         shift

Error: SHELLCHECK_WARNING (CWE-456): [#def304]
/usr/share/libtool/build-aux/ltmain.sh:1979:27: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
# 1977|           --)           _G_parse_options_requote=: ; break ;;
# 1978|           -*)           func_fatal_help "unrecognised option: '$_G_opt'" ;;
# 1979|->         *)            set dummy "$_G_opt" ${1+"$@"}; shift
# 1980|                         _G_match_parse_options=false
# 1981|                         break

Error: SHELLCHECK_WARNING (CWE-456): [#def305]
/usr/share/libtool/build-aux/ltmain.sh:2064:5: warning[SC2209]: Use var=$(command) to assign output (or quote to assign string).
# 2062|   
# 2063|       func_error "Missing argument for '$1'."
# 2064|->     exit_cmd=exit
# 2065|   }
# 2066|   

Error: SHELLCHECK_WARNING (CWE-457): [#def306]
/usr/share/libtool/build-aux/ltmain.sh:2319:24: warning[SC2154]: host is referenced but not assigned.
# 2317|   include the following information:
# 2318|   
# 2319|->        host-triplet:   $host
# 2320|          shell:          $SHELL
# 2321|          compiler:       $LTCC

Error: SHELLCHECK_WARNING (CWE-457): [#def307]
/usr/share/libtool/build-aux/ltmain.sh:2323:34: warning[SC2154]: with_gnu_ld is referenced but not assigned.
# 2321|          compiler:       $LTCC
# 2322|          compiler flags: $LTCFLAGS
# 2323|->        linker:         $LD (gnu? $with_gnu_ld)
# 2324|          version:        $progname $scriptversion
# 2325|          automake:       `($AUTOMAKE --version) 2>/dev/null |$SED 1q`

Error: SHELLCHECK_WARNING (CWE-457): [#def308]
/usr/share/libtool/build-aux/ltmain.sh:2340:17: warning[SC2154]: objext is referenced but not assigned.
# 2338|   # object suffix.
# 2339|   
# 2340|-> lo2o=s/\\.lo\$/.$objext/
# 2341|   o2lo=s/\\.$objext\$/.lo/
# 2342|   

Error: SHELLCHECK_WARNING (CWE-563): [#def309]
/usr/share/libtool/build-aux/ltmain.sh:2341:1: warning[SC2034]: o2lo appears unused. Verify use (or export if used externally).
# 2339|   
# 2340|   lo2o=s/\\.lo\$/.$objext/
# 2341|-> o2lo=s/\\.$objext\$/.lo/
# 2342|   
# 2343|   if test yes = "$_G_HAVE_XSI_OPS"; then

Error: SHELLCHECK_WARNING (CWE-457): [#def310]
/usr/share/libtool/build-aux/ltmain.sh:2476:37: warning[SC2154]: macro_revision is referenced but not assigned.
# 2474|   func_check_version_match ()
# 2475|   {
# 2476|->     if test "$package_revision" != "$macro_revision"; then
# 2477|         if test "$VERSION" != "$macro_version"; then
# 2478|           if test -z "$macro_version"; then

Error: SHELLCHECK_WARNING (CWE-457): [#def311]
/usr/share/libtool/build-aux/ltmain.sh:2477:30: warning[SC2154]: macro_version is referenced but not assigned.
# 2475|   {
# 2476|       if test "$package_revision" != "$macro_revision"; then
# 2477|->       if test "$VERSION" != "$macro_version"; then
# 2478|           if test -z "$macro_version"; then
# 2479|             cat >&2 <<_LT_EOF

Error: SHELLCHECK_WARNING (CWE-457): [#def312]
/usr/share/libtool/build-aux/ltmain.sh:2512:5: warning[SC2154]: debug_mode is referenced but not assigned.
# 2510|   libtool_options_prep ()
# 2511|   {
# 2512|->     $debug_mode
# 2513|   
# 2514|       # Option defaults:

Error: SHELLCHECK_WARNING (CWE-563): [#def313]
/usr/share/libtool/build-aux/ltmain.sh:2515:5: warning[SC2034]: opt_config appears unused. Verify use (or export if used externally).
# 2513|   
# 2514|       # Option defaults:
# 2515|->     opt_config=false
# 2516|       opt_dlopen=
# 2517|       opt_dry_run=false

Error: SHELLCHECK_WARNING (CWE-456): [#def314]
/usr/share/libtool/build-aux/ltmain.sh:2534:18: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
# 2532|       case $1 in
# 2533|       clean|clea|cle|cl)
# 2534|->       shift; set dummy --mode clean ${1+"$@"}; shift
# 2535|         ;;
# 2536|       compile|compil|compi|comp|com|co|c)

Error: SHELLCHECK_WARNING (CWE-456): [#def315]
/usr/share/libtool/build-aux/ltmain.sh:2537:18: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
# 2535|         ;;
# 2536|       compile|compil|compi|comp|com|co|c)
# 2537|->       shift; set dummy --mode compile ${1+"$@"}; shift
# 2538|         ;;
# 2539|       execute|execut|execu|exec|exe|ex|e)

Error: SHELLCHECK_WARNING (CWE-456): [#def316]
/usr/share/libtool/build-aux/ltmain.sh:2540:18: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
# 2538|         ;;
# 2539|       execute|execut|execu|exec|exe|ex|e)
# 2540|->       shift; set dummy --mode execute ${1+"$@"}; shift
# 2541|         ;;
# 2542|       finish|finis|fini|fin|fi|f)

Error: SHELLCHECK_WARNING (CWE-456): [#def317]
/usr/share/libtool/build-aux/ltmain.sh:2543:18: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
# 2541|         ;;
# 2542|       finish|finis|fini|fin|fi|f)
# 2543|->       shift; set dummy --mode finish ${1+"$@"}; shift
# 2544|         ;;
# 2545|       install|instal|insta|inst|ins|in|i)

Error: SHELLCHECK_WARNING (CWE-456): [#def318]
/usr/share/libtool/build-aux/ltmain.sh:2546:18: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
# 2544|         ;;
# 2545|       install|instal|insta|inst|ins|in|i)
# 2546|->       shift; set dummy --mode install ${1+"$@"}; shift
# 2547|         ;;
# 2548|       link|lin|li|l)

Error: SHELLCHECK_WARNING (CWE-456): [#def319]
/usr/share/libtool/build-aux/ltmain.sh:2549:18: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
# 2547|         ;;
# 2548|       link|lin|li|l)
# 2549|->       shift; set dummy --mode link ${1+"$@"}; shift
# 2550|         ;;
# 2551|       uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)

Error: SHELLCHECK_WARNING (CWE-456): [#def320]
/usr/share/libtool/build-aux/ltmain.sh:2552:18: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
# 2550|         ;;
# 2551|       uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
# 2552|->       shift; set dummy --mode uninstall ${1+"$@"}; shift
# 2553|         ;;
# 2554|       *)

Error: SHELLCHECK_WARNING (CWE-563): [#def321]
/usr/share/libtool/build-aux/ltmain.sh:2562:7: warning[SC2034]: libtool_options_prep_result appears unused. Verify use (or export if used externally).
# 2560|         # Pass back the list of options.
# 2561|         func_quote eval ${1+"$@"}
# 2562|->       libtool_options_prep_result=$func_quote_result
# 2563|       fi
# 2564|   }

Error: SHELLCHECK_WARNING (CWE-456): [#def322]
/usr/share/libtool/build-aux/ltmain.sh:2601:29: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
# 2599|           --features)     func_features ;;
# 2600|   
# 2601|->         --finish)       set dummy --mode finish ${1+"$@"}; shift ;;
# 2602|   
# 2603|           --help)         opt_help=: ;;

Error: SHELLCHECK_WARNING (CWE-456): [#def323]
/usr/share/libtool/build-aux/ltmain.sh:2615:30: warning[SC2209]: Use var=$(command) to assign output (or quote to assign string).
# 2613|                             # Catch anything else as an error
# 2614|                             *) func_error "invalid argument '$1' for $_G_opt"
# 2615|->                              exit_cmd=exit
# 2616|                                ;;
# 2617|                           esac

Error: SHELLCHECK_WARNING (CWE-456): [#def324]
/usr/share/libtool/build-aux/ltmain.sh:2652:32: warning[SC2209]: Use var=$(command) to assign output (or quote to assign string).
# 2650|                               *) func_error "invalid argument '$1' for $_G_opt"
# 2651|                                  func_error "absolute paths are required for $_G_opt"
# 2652|->                                exit_cmd=exit
# 2653|                                  ;;
# 2654|                             esac

Error: SHELLCHECK_WARNING (CWE-563): [#def325]
/usr/share/libtool/build-aux/ltmain.sh:2666:25: warning[SC2034]: opt_tag appears unused. Verify use (or export if used externally).
# 2664|   
# 2665|           --tag)          test $# = 0 && func_missing_arg $_G_opt && break
# 2666|->                         opt_tag=$1
# 2667|                           func_append preserve_args " $_G_opt $1"
# 2668|                           func_enable_tag "$1"

Error: SHELLCHECK_WARNING (CWE-456): [#def326]
/usr/share/libtool/build-aux/ltmain.sh:2678:29: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
# 2676|   
# 2677|           # An option not handled by this hook function:
# 2678|->         *)              set dummy "$_G_opt" ${1+"$@"} ; shift
# 2679|                           _G_match_lt_parse_options=false
# 2680|                           break

Error: SHELLCHECK_WARNING (CWE-563): [#def327]
/usr/share/libtool/build-aux/ltmain.sh:2689:7: warning[SC2034]: libtool_parse_options_result appears unused. Verify use (or export if used externally).
# 2687|         # save modified positional parameters for caller
# 2688|         func_quote eval ${1+"$@"}
# 2689|->       libtool_parse_options_result=$func_quote_result
# 2690|       fi
# 2691|   }

Error: SHELLCHECK_WARNING (CWE-563): [#def328]
/usr/share/libtool/build-aux/ltmain.sh:2753:5: warning[SC2034]: libtool_validate_options_result appears unused. Verify use (or export if used externally).
# 2751|       # Pass back the unparsed argument list
# 2752|       func_quote eval ${1+"$@"}
# 2753|->     libtool_validate_options_result=$func_quote_result
# 2754|   }
# 2755|   func_add_hook func_validate_options libtool_validate_options

Error: SHELLCHECK_WARNING (CWE-563): [#def329]
/usr/share/libtool/build-aux/ltmain.sh:2819:2: warning[SC2034]: lalib_p_l appears unused. Verify use (or export if used externally).
# 2817|       lalib_p=no
# 2818|       if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then
# 2819|-> 	for lalib_p_l in 1 2 3 4
# 2820|   	do
# 2821|   	    read lalib_p_line

Error: SHELLCHECK_WARNING (CWE-457): [#def330]
/usr/share/libtool/build-aux/ltmain.sh:2838:7: warning[SC2154]: lt_truncate_bin is referenced but not assigned.
# 2836|   {
# 2837|       test -f "$1" &&
# 2838|->       $lt_truncate_bin < "$1" 2>/dev/null | func_generated_by_libtool_p
# 2839|   }
# 2840|   

Error: SHELLCHECK_WARNING (CWE-457): [#def331]
/usr/share/libtool/build-aux/ltmain.sh:2862:31: warning[SC2154]: func_basename_result is referenced but not assigned.
# 2860|   {
# 2861|       func_dirname_and_basename "$1" "" "."
# 2862|->     func_stripname '' '.exe' "$func_basename_result"
# 2863|       func_ltwrapper_scriptname_result=$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper
# 2864|   }

Error: SHELLCHECK_WARNING (CWE-457): [#def332]
/usr/share/libtool/build-aux/ltmain.sh:2863:59: warning[SC2154]: objdir is referenced but not assigned.
# 2861|       func_dirname_and_basename "$1" "" "."
# 2862|       func_stripname '' '.exe' "$func_basename_result"
# 2863|->     func_ltwrapper_scriptname_result=$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper
# 2864|   }
# 2865|   

Error: SHELLCHECK_WARNING (CWE-457): [#def333]
/usr/share/libtool/build-aux/ltmain.sh:2921:33: warning[SC2154]: lt_sysroot is referenced but not assigned.
# 2919|     =*)
# 2920|       func_stripname '=' '' "$func_resolve_sysroot_result"
# 2921|->     func_resolve_sysroot_result=$lt_sysroot$func_stripname_result
# 2922|       ;;
# 2923|     esac

Error: SHELLCHECK_WARNING (CWE-457): [#def334]
/usr/share/libtool/build-aux/ltmain.sh:2953:17: warning[SC2154]: available_tags is referenced but not assigned.
# 2951|       $debug_cmd
# 2952|   
# 2953|->     if test -n "$available_tags" && test -z "$tagname"; then
# 2954|         CC_quoted=
# 2955|         for arg in $CC; do

Error: SHELLCHECK_WARNING (CWE-691): [#def335]
/usr/share/libtool/build-aux/ltmain.sh:3218:3: warning[SC2254]: Quote expansions in case patterns to match literally rather than as a glob.
# 3216|   
# 3217|     case $4 in
# 3218|->   $1 ) func_to_host_path_result=$3$func_to_host_path_result
# 3219|       ;;
# 3220|     esac

Error: SHELLCHECK_WARNING (CWE-691): [#def336]
/usr/share/libtool/build-aux/ltmain.sh:3222:3: warning[SC2254]: Quote expansions in case patterns to match literally rather than as a glob.
# 3220|     esac
# 3221|     case $4 in
# 3222|->   $2 ) func_append func_to_host_path_result "$3"
# 3223|       ;;
# 3224|     esac

Error: SHELLCHECK_WARNING (CWE-457): [#def337]
/usr/share/libtool/build-aux/ltmain.sh:3254:3: warning[SC2154]: to_host_file_cmd is referenced but not assigned.
# 3252|     $debug_cmd
# 3253|   
# 3254|->   $to_host_file_cmd "$1"
# 3255|   }
# 3256|   # end func_to_host_file

Error: SHELLCHECK_WARNING (CWE-457): [#def338]
/usr/share/libtool/build-aux/ltmain.sh:3268:8: warning[SC2154]: to_tool_file_cmd is referenced but not assigned.
# 3266|   
# 3267|     case ,$2, in
# 3268|->     *,"$to_tool_file_cmd",*)
# 3269|         func_to_tool_file_result=$1
# 3270|         ;;

Error: SHELLCHECK_WARNING (CWE-457): [#def339]
/usr/share/libtool/build-aux/ltmain.sh:3582:7: warning[SC2154]: host_os is referenced but not assigned.
# 3580|   	$debug_cmd
# 3581|   
# 3582|-> 	case $host_os in
# 3583|   	  openbsd*)
# 3584|   	    get_search_directories=`PATH="$PATH:/sbin" ldconfig -r | $GREP "search directories" | $SED "s#.*search directories:\ ##g"`

Error: SHELLCHECK_WARNING (CWE-1095): [#def340]
/usr/share/libtool/build-aux/ltmain.sh:3646:5: warning[SC2167]: This parent loop has its index variable overridden.
# 3644|       pie_flag=
# 3645|   
# 3646|->     for arg
# 3647|       do
# 3648|         case $arg_mode in

Error: SHELLCHECK_WARNING (CWE-1095): [#def341]
/usr/share/libtool/build-aux/ltmain.sh:3696:4: warning[SC2165]: This nested loop overrides the index variable of its parent.
# 3694|   	  lastarg=
# 3695|   	  save_ifs=$IFS; IFS=,
# 3696|-> 	  for arg in $args; do
# 3697|   	    IFS=$save_ifs
# 3698|   	    func_append_quoted lastarg "$arg"

Error: SHELLCHECK_WARNING (CWE-457): [#def342]
/usr/share/libtool/build-aux/ltmain.sh:3813:51: warning[SC2154]: deplibs_check_method is referenced but not assigned.
# 3811|         ;;
# 3812|       esac
# 3813|->     if test no = "$pic_mode" && test pass_all != "$deplibs_check_method"; then
# 3814|         # non-PIC code in shared libraries is not supported
# 3815|         pic_mode=default

Error: SHELLCHECK_WARNING (CWE-457): [#def343]
/usr/share/libtool/build-aux/ltmain.sh:3820:19: warning[SC2154]: compiler_c_o is referenced but not assigned.
# 3818|       # Calculate the filename of the output object if compiler does
# 3819|       # not support -o with -c
# 3820|->     if test no = "$compiler_c_o"; then
# 3821|         output_obj=`$ECHO "$srcfile" | $SED 's%^.*/%%; s%\.[^.]*$%%'`.$objext
# 3822|         lockfile=$output_obj.lock

Error: SHELLCHECK_WARNING (CWE-563): [#def344]
/usr/share/libtool/build-aux/ltmain.sh:3868:7: warning[SC2034]: fbsd_hideous_sh_bug appears unused. Verify use (or export if used externally).
# 3866|       if test yes = "$build_libtool_libs"; then
# 3867|         # Without this assignment, base_compile gets emptied.
# 3868|->       fbsd_hideous_sh_bug=$base_compile
# 3869|   
# 3870|         if test no != "$pic_mode"; then

Error: SHELLCHECK_WARNING (CWE-457): [#def345]
/usr/share/libtool/build-aux/ltmain.sh:3871:35: warning[SC2154]: pic_flag is referenced but not assigned (did you mean 'pie_flag'?).
# 3869|   
# 3870|         if test no != "$pic_mode"; then
# 3871|-> 	command="$base_compile $qsrcfile $pic_flag"
# 3872|         else
# 3873|   	# Don't build PIC code

Error: SHELLCHECK_WARNING (CWE-457): [#def346]
/usr/share/libtool/build-aux/ltmain.sh:4276:28: warning[SC2154]: shlibpath_var is referenced but not assigned.
# 4274|   
# 4275|         # Now add the directory to shlibpath_var.
# 4276|->       if eval "test -z \"\$$shlibpath_var\""; then
# 4277|   	eval "$shlibpath_var=\"\$dir\""
# 4278|         else

Error: SHELLCHECK_WARNING (CWE-563): [#def347]
/usr/share/libtool/build-aux/ltmain.sh:4285:5: warning[SC2034]: libtool_execute_magic appears unused. Verify use (or export if used externally).
# 4283|       # This variable tells wrapper scripts just to set shlibpath_var
# 4284|       # rather than running their programs.
# 4285|->     libtool_execute_magic=$magic
# 4286|   
# 4287|       # Check if any of the arguments is a wrapper script.

Error: SHELLCHECK_WARNING (CWE-457): [#def348]
/usr/share/libtool/build-aux/ltmain.sh:4298:18: warning[SC2154]: program is referenced but not assigned (did you mean 'PROGRAM'?).
# 4296|   	  func_source "$file"
# 4297|   	  # Transform arg to wrapped name.
# 4298|-> 	  file=$progdir/$program
# 4299|   	elif func_ltwrapper_executable_p "$file"; then
# 4300|   	  func_ltwrapper_scriptname "$file"

Error: SHELLCHECK_WARNING (CWE-457): [#def349]
/usr/share/libtool/build-aux/ltmain.sh:4331:3: warning[SC2154]: lt_unset is referenced but not assigned.
# 4329|                   $lt_var=\$save_$lt_var; export $lt_var
# 4330|   	      else
# 4331|-> 		$lt_unset $lt_var
# 4332|   	      fi"
# 4333|         done

Error: SHELLCHECK_WARNING (CWE-457): [#def350]
/usr/share/libtool/build-aux/ltmain.sh:4393:17: warning[SC2154]: finish_cmds is referenced but not assigned.
# 4391|       fi
# 4392|   
# 4393|->     if test -n "$finish_cmds$finish_eval" && test -n "$libdirs" && $opt_finishing; then
# 4394|         for libdir in $libdirs; do
# 4395|   	if test -n "$finish_cmds"; then

Error: SHELLCHECK_WARNING (CWE-457): [#def351]
/usr/share/libtool/build-aux/ltmain.sh:4393:29: warning[SC2154]: finish_eval is referenced but not assigned.
# 4391|       fi
# 4392|   
# 4393|->     if test -n "$finish_cmds$finish_eval" && test -n "$libdirs" && $opt_finishing; then
# 4394|         for libdir in $libdirs; do
# 4395|   	if test -n "$finish_cmds"; then

Error: SHELLCHECK_WARNING (CWE-457): [#def352]
/usr/share/libtool/build-aux/ltmain.sh:4433:19: warning[SC2154]: runpath_var is referenced but not assigned.
# 4431|   	echo "     during execution"
# 4432|         fi
# 4433|->       if test -n "$runpath_var"; then
# 4434|   	echo "   - add LIBDIR to the '$runpath_var' environment variable"
# 4435|   	echo "     during linking"

Error: SHELLCHECK_WARNING (CWE-457): [#def353]
/usr/share/libtool/build-aux/ltmain.sh:4437:19: warning[SC2154]: hardcode_libdir_flag_spec is referenced but not assigned.
# 4435|   	echo "     during linking"
# 4436|         fi
# 4437|->       if test -n "$hardcode_libdir_flag_spec"; then
# 4438|   	libdir=LIBDIR
# 4439|   	eval flag=\"$hardcode_libdir_flag_spec\"

Error: SHELLCHECK_WARNING (CWE-563): [#def354]
/usr/share/libtool/build-aux/ltmain.sh:4503:5: warning[SC2034]: opts appears unused. Verify use (or export if used externally).
# 4501|       dest=
# 4502|       files=
# 4503|->     opts=
# 4504|       prev=
# 4505|       install_type=

Error: SHELLCHECK_WARNING (CWE-563): [#def355]
/usr/share/libtool/build-aux/ltmain.sh:4505:5: warning[SC2034]: install_type appears unused. Verify use (or export if used externally).
# 4503|       opts=
# 4504|       prev=
# 4505|->     install_type=
# 4506|       isdir=false
# 4507|       stripme=

Error: SHELLCHECK_WARNING (CWE-457): [#def356]
/usr/share/libtool/build-aux/ltmain.sh:4537:39: warning[SC2154]: install_override_mode is referenced but not assigned.
# 4535|   	# If the previous option needed an argument, then skip it.
# 4536|   	if test -n "$prev"; then
# 4537|-> 	  if test X-m = "X$prev" && test -n "$install_override_mode"; then
# 4538|   	    arg2=$install_override_mode
# 4539|   	    no_mode=false

Error: SHELLCHECK_WARNING (CWE-456): [#def357]
/usr/share/libtool/build-aux/ltmain.sh:4594:11: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
# 4592|   
# 4593|         # Not a directory, so check to see that there is only one file specified.
# 4594|->       set dummy $files; shift
# 4595|         test "$#" -gt 1 && \
# 4596|   	func_fatal_help "'$dest' is not a directory"

Error: SHELLCHECK_WARNING (CWE-457): [#def358]
/usr/share/libtool/build-aux/ltmain.sh:4623:9: warning[SC2154]: libext is referenced but not assigned.
# 4621|         # Do each installation.
# 4622|         case $file in
# 4623|->       *.$libext)
# 4624|   	# Do the static libraries later.
# 4625|   	func_append staticlibs " $file"

Error: SHELLCHECK_WARNING (CWE-457): [#def359]
/usr/share/libtool/build-aux/ltmain.sh:4668:43: warning[SC2154]: Xsed is referenced but not assigned.
# 4666|   
# 4667|   	  # Determine the prefix the user has applied to our future dir.
# 4668|-> 	  inst_prefix_dir=`$ECHO "X$s_destdir" | $Xsed -e "s%$destlibdir\$%%"`
# 4669|   
# 4670|   	  # Don't allow the user to place us outside of our expected

Error: SHELLCHECK_WARNING (CWE-456): [#def360]
/usr/share/libtool/build-aux/ltmain.sh:4692:6: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
# 4690|   
# 4691|   	# See the names of the shared library.
# 4692|-> 	set dummy $library_names; shift
# 4693|   	if test -n "$1"; then
# 4694|   	  realname=$1

Error: SHELLCHECK_WARNING (CWE-457): [#def361]
/usr/share/libtool/build-aux/ltmain.sh:4720:39: warning[SC2154]: striplib is referenced but not assigned.
# 4718|   	    ;;
# 4719|   	  esac
# 4720|-> 	  if test -n "$tstripme" && test -n "$striplib"; then
# 4721|   	    func_show_eval "$striplib $destdir/$realname" 'exit $?'
# 4722|   	  fi

Error: SHELLCHECK_WARNING (CWE-457): [#def362]
/usr/share/libtool/build-aux/ltmain.sh:4738:23: warning[SC2154]: postinstall_cmds is referenced but not assigned.
# 4736|   	  # Do each command in the postinstall commands.
# 4737|   	  lib=$destdir/$realname
# 4738|-> 	  func_execute_cmds "$postinstall_cmds" 'exit $?'
# 4739|   	fi
# 4740|   

Error: SHELLCHECK_WARNING (CWE-563): [#def363]
/usr/share/libtool/build-aux/ltmain.sh:4770:4: warning[SC2034]: staticdest appears unused. Verify use (or export if used externally).
# 4768|   	  ;;
# 4769|   	*.$objext)
# 4770|-> 	  staticdest=$destfile
# 4771|   	  destfile=
# 4772|   	  ;;

Error: SHELLCHECK_WARNING (CWE-563): [#def364]
/usr/share/libtool/build-aux/ltmain.sh:4786:4: warning[SC2034]: staticobj appears unused. Verify use (or export if used externally).
# 4784|   	  # Deduce the name of the old-style object file.
# 4785|   	  func_lo2o "$file"
# 4786|-> 	  staticobj=$func_lo2o_result
# 4787|   	  func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?'
# 4788|   	fi

Error: SHELLCHECK_WARNING (CWE-457): [#def365]
/usr/share/libtool/build-aux/ltmain.sh:4838:13: warning[SC2154]: generated_by_libtool_version is referenced but not assigned.
# 4836|   
# 4837|   	  # Check the variables that should have been set.
# 4838|-> 	  test -z "$generated_by_libtool_version" && \
# 4839|   	    func_fatal_error "invalid libtool wrapper script '$wrapper'"
# 4840|   

Error: SHELLCHECK_WARNING (CWE-457): [#def366]
/usr/share/libtool/build-aux/ltmain.sh:4927:41: warning[SC2154]: old_striplib is referenced but not assigned.
# 4925|         func_show_eval "$install_prog \$file \$oldlib" 'exit $?'
# 4926|   
# 4927|->       if test -n "$stripme" && test -n "$old_striplib"; then
# 4928|   	func_show_eval "$old_striplib $tool_oldlib" 'exit $?'
# 4929|         fi

Error: SHELLCHECK_WARNING (CWE-457): [#def367]
/usr/share/libtool/build-aux/ltmain.sh:4932:26: warning[SC2154]: old_postinstall_cmds is referenced but not assigned.
# 4930|   
# 4931|         # Do each command in the postinstall commands.
# 4932|->       func_execute_cmds "$old_postinstall_cmds" 'exit $?'
# 4933|       done
# 4934|   

Error: SHELLCHECK_WARNING (CWE-457): [#def368]
/usr/share/libtool/build-aux/ltmain.sh:4964:36: warning[SC2154]: global_symbol_pipe is referenced but not assigned.
# 4962|   
# 4963|       if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then
# 4964|->       if test -n "$NM" && test -n "$global_symbol_pipe"; then
# 4965|   	my_dlsyms=${my_outputname}S.c
# 4966|         else

Error: SHELLCHECK_WARNING (CWE-457): [#def369]
/usr/share/libtool/build-aux/ltmain.sh:5025:16: warning[SC2154]: exclude_expsyms is referenced but not assigned.
# 5023|   	  done
# 5024|   
# 5025|-> 	  if test -n "$exclude_expsyms"; then
# 5026|   	    $opt_dry_run || {
# 5027|   	      eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'

Error: SHELLCHECK_WARNING (CWE-457): [#def370]
/usr/share/libtool/build-aux/ltmain.sh:5078:22: warning[SC2154]: curr_lafile is referenced but not assigned.
# 5076|   	        eval "curr_lafile=\$libfile_$func_tr_sh_result"
# 5077|   	        dlprefile_dlbasename=
# 5078|-> 	        if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then
# 5079|   	          # Use subshell, to avoid clobbering current variable values
# 5080|   	          dlprefile_dlname=`source "$curr_lafile" && echo "$dlname"`

Error: SHELLCHECK_WARNING: [#def371]
/usr/share/libtool/build-aux/ltmain.sh:5080:30: warning[SC3046]: In POSIX sh, 'source' in place of '.' is undefined.
# 5078|   	        if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then
# 5079|   	          # Use subshell, to avoid clobbering current variable values
# 5080|-> 	          dlprefile_dlname=`source "$curr_lafile" && echo "$dlname"`
# 5081|   	          if test -n "$dlprefile_dlname"; then
# 5082|   	            func_basename "$dlprefile_dlname"

Error: SHELLCHECK_WARNING (CWE-457): [#def372]
/usr/share/libtool/build-aux/ltmain.sh:5086:14: warning[SC2154]: sharedlib_from_linklib_cmd is referenced but not assigned.
# 5084|   	          else
# 5085|   	            # no lafile. user explicitly requested -dlpreopen <import library>.
# 5086|-> 	            $sharedlib_from_linklib_cmd "$dlprefile"
# 5087|   	            dlprefile_dlbasename=$sharedlib_from_linklib_result
# 5088|   	          fi

Error: SHELLCHECK_WARNING (CWE-457): [#def373]
/usr/share/libtool/build-aux/ltmain.sh:5150:12: warning[SC2154]: global_symbol_to_cdecl is referenced but not assigned.
# 5148|   
# 5149|   	  if test -f "$nlist"S; then
# 5150|-> 	    eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"'
# 5151|   	  else
# 5152|   	    echo '/* NONE */' >> "$output_objdir/$my_dlsyms"

Error: SHELLCHECK_WARNING (CWE-457): [#def374]
/usr/share/libtool/build-aux/ltmain.sh:5156:16: warning[SC2154]: global_symbol_to_import is referenced but not assigned.
# 5154|   
# 5155|   	  func_show_eval '$RM "${nlist}I"'
# 5156|-> 	  if test -n "$global_symbol_to_import"; then
# 5157|   	    eval "$global_symbol_to_import"' < "$nlist"S > "$nlist"I'
# 5158|   	  fi

Error: SHELLCHECK_WARNING (CWE-457): [#def375]
/usr/share/libtool/build-aux/ltmain.sh:5193:9: warning[SC2154]: need_lib_prefix is referenced but not assigned.
# 5191|   	  fi
# 5192|   
# 5193|-> 	  case $need_lib_prefix in
# 5194|   	  no)
# 5195|   	    eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms"

Error: SHELLCHECK_WARNING (CWE-457): [#def376]
/usr/share/libtool/build-aux/ltmain.sh:5195:12: warning[SC2154]: global_symbol_to_c_name_address is referenced but not assigned.
# 5193|   	  case $need_lib_prefix in
# 5194|   	  no)
# 5195|-> 	    eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms"
# 5196|   	    ;;
# 5197|   	  *)

Error: SHELLCHECK_WARNING (CWE-457): [#def377]
/usr/share/libtool/build-aux/ltmain.sh:5198:12: warning[SC2154]: global_symbol_to_c_name_address_lib_prefix is referenced but not assigned.
# 5196|   	    ;;
# 5197|   	  *)
# 5198|-> 	    eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms"
# 5199|   	    ;;
# 5200|   	  esac

Error: SHELLCHECK_WARNING (CWE-563): [#def378]
/usr/share/libtool/build-aux/ltmain.sh:5233:19: warning[SC2034]: pic_flag_for_symtable appears unused. Verify use (or export if used externally).
# 5231|   	    pic_flag_for_symtable=" $pic_flag"  ;;
# 5232|   	  *)
# 5233|-> 	    $my_pic_p && pic_flag_for_symtable=" $pic_flag"
# 5234|   	    ;;
# 5235|   	  esac

Error: SHELLCHECK_WARNING (CWE-563): [#def379]
/usr/share/libtool/build-aux/ltmain.sh:5238:2: warning[SC2034]: symtab_cflags appears unused. Verify use (or export if used externally).
# 5236|   	  ;;
# 5237|   	esac
# 5238|-> 	symtab_cflags=
# 5239|   	for arg in $LTCFLAGS; do
# 5240|   	  case $arg in

Error: SHELLCHECK_WARNING (CWE-457): [#def380]
/usr/share/libtool/build-aux/ltmain.sh:5332:12: warning[SC2154]: nm_interface is referenced but not assigned.
# 5330|       if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
# 5331|          $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)' >/dev/null; then
# 5332|->       case $nm_interface in
# 5333|         "MS dumpbin")
# 5334|   	if func_cygming_ms_implib_p "$1" ||

Error: SHELLCHECK_WARNING (CWE-457): [#def381]
/usr/share/libtool/build-aux/ltmain.sh:5488:20: warning[SC2154]: lock_old_archive_extraction is referenced but not assigned.
# 5486|       f_ex_an_ar_dir=$1; shift
# 5487|       f_ex_an_ar_oldlib=$1
# 5488|->     if test yes = "$lock_old_archive_extraction"; then
# 5489|         lockfile=$f_ex_an_ar_oldlib.lock
# 5490|         until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do

Error: SHELLCHECK_WARNING (CWE-252): [#def382]
/usr/share/libtool/build-aux/ltmain.sh:5562:8: warning[SC2164]: Use 'cd ... || exit' or 'cd ... || return' in case cd fails.
# 5560|   	      func_mkdir_p "unfat-$$/$darwin_base_archive-$darwin_arch"
# 5561|   	      $LIPO -thin $darwin_arch -output "unfat-$$/$darwin_base_archive-$darwin_arch/$darwin_base_archive" "$darwin_archive"
# 5562|-> 	      cd "unfat-$$/$darwin_base_archive-$darwin_arch"
# 5563|   	      func_extract_an_archive "`pwd`" "$darwin_base_archive"
# 5564|   	      cd "$darwin_curdir"

Error: SHELLCHECK_WARNING (CWE-252): [#def383]
/usr/share/libtool/build-aux/ltmain.sh:5564:8: warning[SC2164]: Use 'cd ... || exit' or 'cd ... || return' in case cd fails.
# 5562|   	      cd "unfat-$$/$darwin_base_archive-$darwin_arch"
# 5563|   	      func_extract_an_archive "`pwd`" "$darwin_base_archive"
# 5564|-> 	      cd "$darwin_curdir"
# 5565|   	      $RM "unfat-$$/$darwin_base_archive-$darwin_arch/$darwin_base_archive"
# 5566|   	    done # $darwin_arches

Error: SHELLCHECK_WARNING (CWE-252): [#def384]
/usr/share/libtool/build-aux/ltmain.sh:5576:6: warning[SC2164]: Use 'cd ... || exit' or 'cd ... || return' in case cd fails.
# 5574|   	    done # $darwin_filelist
# 5575|   	    $RM -rf unfat-$$
# 5576|-> 	    cd "$darwin_orig_dir"
# 5577|   	  else
# 5578|   	    cd $darwin_orig_dir

Error: SHELLCHECK_WARNING (CWE-252): [#def385]
/usr/share/libtool/build-aux/ltmain.sh:5578:6: warning[SC2164]: Use 'cd ... || exit' or 'cd ... || return' in case cd fails.
# 5576|   	    cd "$darwin_orig_dir"
# 5577|   	  else
# 5578|-> 	    cd $darwin_orig_dir
# 5579|   	    func_extract_an_archive "$my_xdir" "$my_xabs"
# 5580|   	  fi # $darwin_arches

Error: SHELLCHECK_WARNING (CWE-149): [#def386]
/usr/share/libtool/build-aux/ltmain.sh:5675:57: warning[SC2140]: Word is of the form "A"B"C" (B indicated). Did you mean "ABC" or "A\"B\"C"?
# 5673|   # the libtool wrapper, (b) are identical between the wrapper
# 5674|   # /script/ and the wrapper /executable/ that is used only on
# 5675|-> # windows platforms, and (c) all begin with the string "--lt-"
# 5676|   # (application programs are unlikely to have options that match
# 5677|   # this pattern).

Error: SHELLCHECK_WARNING (CWE-88): [#def387]
/usr/share/libtool/build-aux/ltmain.sh:5683:35: error[SC2068]: Double quote array expansions to avoid re-splitting elements.
# 5681|   #
# 5682|   # The first argument to this parsing function should be the
# 5683|-> # script's $0 value, followed by "$@".
# 5684|   lt_option_debug=
# 5685|   func_parse_lt_options ()

Error: SHELLCHECK_WARNING (CWE-138): [#def388]
/usr/share/libtool/build-aux/ltmain.sh:5683:35: error[SC2145]: Argument mixes string and array. Use * or separate argument.
# 5681|   #
# 5682|   # The first argument to this parsing function should be the
# 5683|-> # script's $0 value, followed by "$@".
# 5684|   lt_option_debug=
# 5685|   func_parse_lt_options ()

Error: SHELLCHECK_WARNING (CWE-149): [#def389]
/usr/share/libtool/build-aux/ltmain.sh:5683:35: warning[SC2027]: The surrounding quotes actually unquote this. Remove or escape them.
# 5681|   #
# 5682|   # The first argument to this parsing function should be the
# 5683|-> # script's $0 value, followed by "$@".
# 5684|   lt_option_debug=
# 5685|   func_parse_lt_options ()

Error: SHELLCHECK_WARNING (CWE-457): [#def390]
/usr/share/libtool/build-aux/ltmain.sh:5877:17: warning[SC2154]: shlibpath_overrides_runpath is referenced but not assigned.
# 5875|   
# 5876|   	# Export our shlibpath_var if we have one.
# 5877|-> 	if test yes = "$shlibpath_overrides_runpath" && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
# 5878|   	  $ECHO "\
# 5879|       # Add our own library path to $shlibpath_var

Error: SHELLCHECK_WARNING (CWE-457): [#def391]
/usr/share/libtool/build-aux/ltmain.sh:6863:16: warning[SC2154]: file_magic_cmd is referenced but not assigned.
# 6861|       $debug_cmd
# 6862|   
# 6863|->     case `eval $file_magic_cmd \"\$1\" 2>/dev/null | $SED -e 10q` in
# 6864|       *import*) : ;;
# 6865|       *) false ;;

Error: SHELLCHECK_WARNING (CWE-569): [#def392]
/usr/share/libtool/build-aux/ltmain.sh:6912:18: warning[SC2124]: Assigning an array to a string! Assign as array, or use * instead of @ to concatenate.
# 6910|       esac
# 6911|       libtool_args=$nonopt
# 6912|->     base_compile="$nonopt $@"
# 6913|       compile_command=$nonopt
# 6914|       finalize_command=$nonopt

Error: SHELLCHECK_WARNING (CWE-563): [#def393]
/usr/share/libtool/build-aux/ltmain.sh:6926:5: warning[SC2034]: linker_flags appears unused. Verify use (or export if used externally).
# 6924|       old_deplibs=
# 6925|       compiler_flags=
# 6926|->     linker_flags=
# 6927|       dllsearchpath=
# 6928|       lib_search_path=`pwd`

Error: SHELLCHECK_WARNING (CWE-563): [#def394]
/usr/share/libtool/build-aux/ltmain.sh:6942:5: warning[SC2034]: ltlibs appears unused. Verify use (or export if used externally).
# 6940|       generated=
# 6941|       libobjs=
# 6942|->     ltlibs=
# 6943|       module=no
# 6944|       no_install=no

Error: SHELLCHECK_WARNING (CWE-457): [#def395]
/usr/share/libtool/build-aux/ltmain.sh:6980:52: warning[SC2154]: link_static_flag is referenced but not assigned.
# 6978|   	case $arg in
# 6979|   	-all-static)
# 6980|-> 	  if test yes = "$build_libtool_libs" && test -z "$link_static_flag"; then
# 6981|   	    func_warning "complete static linking is impossible in this configuration"
# 6982|   	  fi

Error: SHELLCHECK_WARNING (CWE-457): [#def396]
/usr/share/libtool/build-aux/ltmain.sh:6984:18: warning[SC2154]: dlopen_self_static is referenced but not assigned.
# 6982|   	  fi
# 6983|   	  if test -n "$link_static_flag"; then
# 6984|-> 	    dlopen_self=$dlopen_self_static
# 6985|   	  fi
# 6986|   	  prefer_static_libs=yes

Error: SHELLCHECK_WARNING (CWE-457): [#def397]
/usr/share/libtool/build-aux/ltmain.sh:7009:14: warning[SC2154]: old_archive_from_new_cmds is referenced but not assigned.
# 7007|   
# 7008|       # See if our shared archives depend on static archives.
# 7009|->     test -n "$old_archive_from_new_cmds" && build_old_libs=yes
# 7010|   
# 7011|       # Go through the arguments, transforming them on the way.

Error: SHELLCHECK_WARNING (CWE-563): [#def398]
/usr/share/libtool/build-aux/ltmain.sh:7113:6: warning[SC2034]: moreargs appears unused. Verify use (or export if used externally).
# 7111|   	  if test -f "$arg"; then
# 7112|   	    save_arg=$arg
# 7113|-> 	    moreargs=
# 7114|   	    for fil in `cat "$save_arg"`
# 7115|   	    do

Error: SHELLCHECK_WARNING (CWE-457): [#def399]
/usr/share/libtool/build-aux/ltmain.sh:7144:58: warning[SC2154]: dlopen_support is referenced but not assigned.
# 7142|   
# 7143|   		  if test dlfiles = "$prev"; then
# 7144|-> 		    if test yes = "$build_libtool_libs" && test yes = "$dlopen_support"; then
# 7145|   		      func_append dlfiles " $pic_object"
# 7146|   		      prev=

Error: SHELLCHECK_WARNING (CWE-563): [#def400]
/usr/share/libtool/build-aux/ltmain.sh:7207:4: warning[SC2034]: os2dllname appears unused. Verify use (or export if used externally).
# 7205|   	  ;;
# 7206|   	os2dllname)
# 7207|-> 	  os2dllname=$arg
# 7208|   	  prev=
# 7209|   	  continue

Error: SHELLCHECK_WARNING (CWE-457): [#def401]
/usr/share/libtool/build-aux/ltmain.sh:7358:7: warning[SC2154]: with_gcc is referenced but not assigned.
# 7356|         # so, if we see these flags be careful not to treat them like -L
# 7357|         -L[A-Z][A-Z]*:*)
# 7358|-> 	case $with_gcc/$host in
# 7359|   	no/*-*-irix* | /*-*-irix*)
# 7360|   	  func_append compile_command " $arg"

Error: SHELLCHECK_WARNING (CWE-563): [#def402]
/usr/share/libtool/build-aux/ltmain.sh:7507:2: warning[SC2034]: single_module appears unused. Verify use (or export if used externally).
# 7505|   
# 7506|         -multi_module)
# 7507|-> 	single_module=$wl-multi_module
# 7508|   	continue
# 7509|   	;;

Error: SHELLCHECK_WARNING (CWE-569): [#def403]
/usr/share/libtool/build-aux/ltmain.sh:7719:43: warning[SC2221]: This pattern always overrides a later one on line 7723.
# 7717|         # -Werror, -Werror=*   Report (specified) warnings as errors
# 7718|         -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
# 7719|->       -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
# 7720|         -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-no-canonical-prefixes| \
# 7721|         -stdlib=*|-rtlib=*|--unwindlib=*| \

Error: SHELLCHECK_WARNING (CWE-569): [#def404]
/usr/share/libtool/build-aux/ltmain.sh:7723:69: warning[SC2222]: This pattern never matches because of a previous pattern on line 7719.
# 7721|         -stdlib=*|-rtlib=*|--unwindlib=*| \
# 7722|         -specs=*|-fsanitize=*|-fno-sanitize*|-shared-libsan|-static-libsan| \
# 7723|->       -ffile-prefix-map=*|-fdebug-prefix-map=*|-fmacro-prefix-map=*|-fprofile-prefix-map=*| \
# 7724|         -fdiagnostics-color*|-frecord-gcc-switches| \
# 7725|         -fuse-ld=*|-static-*|-fcilkplus|-Wa,*|-Werror|-Werror=*)

Error: SHELLCHECK_WARNING (CWE-457): [#def405]
/usr/share/libtool/build-aux/ltmain.sh:7903:49: warning[SC2154]: export_dynamic_flag_spec is referenced but not assigned.
# 7901|         func_fatal_help "the '$prevarg' option requires an argument"
# 7902|   
# 7903|->     if test yes = "$export_dynamic" && test -n "$export_dynamic_flag_spec"; then
# 7904|         eval arg=\"$export_dynamic_flag_spec\"
# 7905|         func_append compile_command " $arg"

Error: SHELLCHECK_WARNING (CWE-457): [#def406]
/usr/share/libtool/build-aux/ltmain.sh:7921:32: warning[SC2154]: sys_lib_search_path_spec is referenced but not assigned.
# 7919|         shlib_search_path=
# 7920|       fi
# 7921|->     eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
# 7922|       eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
# 7923|   

Error: SHELLCHECK_WARNING (CWE-457): [#def407]
/usr/share/libtool/build-aux/ltmain.sh:7922:34: warning[SC2154]: sys_lib_dlsearch_path_spec is referenced but not assigned.
# 7920|       fi
# 7921|       eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
# 7922|->     eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
# 7923|   
# 7924|       # Definition is injected by LT_CONFIG during libtool generation.

Error: SHELLCHECK_WARNING (CWE-563): [#def408]
/usr/share/libtool/build-aux/ltmain.sh:7930:5: warning[SC2034]: tool_output_objdir appears unused. Verify use (or export if used externally).
# 7928|       output_objdir=$func_dirname_result$objdir
# 7929|       func_to_tool_file "$output_objdir/"
# 7930|->     tool_output_objdir=$func_to_tool_file_result
# 7931|       # Create the object directory.
# 7932|       func_mkdir_p "$output_objdir"

Error: SHELLCHECK_WARNING (CWE-457): [#def409]
/usr/share/libtool/build-aux/ltmain.sh:7960:13: warning[SC2154]: predeps is referenced but not assigned.
# 7958|   
# 7959|       if test lib = "$linkmode"; then
# 7960|->       libs="$predeps $libs $compiler_lib_search_path $postdeps"
# 7961|   
# 7962|         # Compute libraries that are listed more than once in $predeps

Error: SHELLCHECK_WARNING (CWE-457): [#def410]
/usr/share/libtool/build-aux/ltmain.sh:7960:28: warning[SC2154]: compiler_lib_search_path is referenced but not assigned.
# 7958|   
# 7959|       if test lib = "$linkmode"; then
# 7960|->       libs="$predeps $libs $compiler_lib_search_path $postdeps"
# 7961|   
# 7962|         # Compute libraries that are listed more than once in $predeps

Error: SHELLCHECK_WARNING (CWE-457): [#def411]
/usr/share/libtool/build-aux/ltmain.sh:7960:54: warning[SC2154]: postdeps is referenced but not assigned.
# 7958|   
# 7959|       if test lib = "$linkmode"; then
# 7960|->       libs="$predeps $libs $compiler_lib_search_path $postdeps"
# 7961|   
# 7962|         # Compute libraries that are listed more than once in $predeps

Error: SHELLCHECK_WARNING (CWE-1095): [#def412]
/usr/share/libtool/build-aux/ltmain.sh:8062:7: warning[SC2167]: This parent loop has its index variable overridden.
# 8060|         fi
# 8061|   
# 8062|->       for deplib in $libs; do
# 8063|   	lib=
# 8064|   	found=false

Error: SHELLCHECK_WARNING (CWE-457): [#def413]
/usr/share/libtool/build-aux/ltmain.sh:8090:55: warning[SC2154]: compiler_lib_search_dirs is referenced but not assigned.
# 8088|   	  name=$func_stripname_result
# 8089|   	  if test lib = "$linkmode"; then
# 8090|-> 	    searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
# 8091|   	  else
# 8092|   	    searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path"

Error: SHELLCHECK_WARNING (CWE-457): [#def414]
/usr/share/libtool/build-aux/ltmain.sh:8090:81: warning[SC2154]: sys_lib_search_path is referenced but not assigned.
# 8088|   	  name=$func_stripname_result
# 8089|   	  if test lib = "$linkmode"; then
# 8090|-> 	    searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
# 8091|   	  else
# 8092|   	    searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path"

Error: SHELLCHECK_WARNING (CWE-457): [#def415]
/usr/share/libtool/build-aux/ltmain.sh:8095:28: warning[SC2154]: std_shrext is referenced but not assigned.
# 8093|   	  fi
# 8094|   	  for searchdir in $searchdirs; do
# 8095|-> 	    for search_ext in .la $std_shrext .so .a; do
# 8096|   	      # Search the libtool library
# 8097|   	      lib=$searchdir/lib$name$search_ext

Error: SHELLCHECK_WARNING (CWE-457): [#def416]
/usr/share/libtool/build-aux/ltmain.sh:8112:21: warning[SC2154]: allow_libtool_libs_with_static_runtimes is referenced but not assigned.
# 8110|   	    # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
# 8111|   	    # We need to do some special things here, and not later.
# 8112|-> 	    if test yes = "$allow_libtool_libs_with_static_runtimes"; then
# 8113|   	      case " $predeps $postdeps " in
# 8114|   	      *" $deplib "*)

Error: SHELLCHECK_WARNING (CWE-457): [#def417]
/usr/share/libtool/build-aux/ltmain.sh:8226:13: warning[SC2154]: dlpreconveniencelibs is referenced but not assigned.
# 8224|   	    # Linking convenience modules into shared libraries is allowed,
# 8225|   	    # but linking other static libraries is non-portable.
# 8226|-> 	    case " $dlpreconveniencelibs " in
# 8227|   	    *" $deplib "*) ;;
# 8228|   	    *)

Error: SHELLCHECK_WARNING (CWE-456): [#def418]
/usr/share/libtool/build-aux/ltmain.sh:8232:9: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
# 8230|   	      case $deplibs_check_method in
# 8231|   		match_pattern*)
# 8232|-> 		  set dummy $deplibs_check_method; shift
# 8233|   		  match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
# 8234|   		  if eval "\$ECHO \"$deplib\"" 2>/dev/null | $SED 10q \

Error: SHELLCHECK_WARNING (CWE-1095): [#def419]
/usr/share/libtool/build-aux/ltmain.sh:8350:4: warning[SC2165]: This nested loop overrides the index variable of its parent.
# 8348|   	  fi
# 8349|   	  tmp_libs=
# 8350|-> 	  for deplib in $dependency_libs; do
# 8351|   	    deplibs="$deplib $deplibs"
# 8352|   	    if $opt_preserve_dup_deps; then

Error: SHELLCHECK_WARNING (CWE-457): [#def420]
/usr/share/libtool/build-aux/ltmain.sh:8423:16: warning[SC2154]: hardcode_automatic is referenced but not assigned.
# 8421|   	    absdir=$lt_sysroot$libdir
# 8422|   	  fi
# 8423|-> 	  test yes = "$hardcode_automatic" && avoidtemprpath=yes
# 8424|   	else
# 8425|   	  if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then

Error: SHELLCHECK_WARNING (CWE-457): [#def421]
/usr/share/libtool/build-aux/ltmain.sh:8506:19: warning[SC2154]: link_all_deplibs is referenced but not assigned (did you mean 'linkalldeplibs'?).
# 8504|   
# 8505|   	  linkalldeplibs=false
# 8506|-> 	  if test no != "$link_all_deplibs" || test -z "$library_names" ||
# 8507|   	     test no = "$build_libtool_libs"; then
# 8508|   	    linkalldeplibs=:

Error: SHELLCHECK_WARNING (CWE-1095): [#def422]
/usr/share/libtool/build-aux/ltmain.sh:8512:4: warning[SC2165]: This nested loop overrides the index variable of its parent.
# 8510|   
# 8511|   	  tmp_libs=
# 8512|-> 	  for deplib in $dependency_libs; do
# 8513|   	    case $deplib in
# 8514|   	    -L*) func_stripname '-L' '' "$deplib"

Error: SHELLCHECK_WARNING (CWE-457): [#def423]
/usr/share/libtool/build-aux/ltmain.sh:8557:13: warning[SC2154]: sys_lib_dlsearch_path is referenced but not assigned.
# 8555|   	    # Skip directories that are in the system default run-time
# 8556|   	    # search path.
# 8557|-> 	    case " $sys_lib_dlsearch_path " in
# 8558|   	    *" $absdir "*) ;;
# 8559|   	    *)

Error: SHELLCHECK_WARNING (CWE-457): [#def424]
/usr/share/libtool/build-aux/ltmain.sh:8630:19: warning[SC2154]: hardcode_into_libs is referenced but not assigned.
# 8628|   	  fi
# 8629|   	  if test lib = "$linkmode" &&
# 8630|-> 	     test yes = "$hardcode_into_libs"; then
# 8631|   	    # Hardcode the library path.
# 8632|   	    # Skip directories that are in the system default run-time

Error: SHELLCHECK_WARNING (CWE-457): [#def425]
/usr/share/libtool/build-aux/ltmain.sh:8657:16: warning[SC2154]: old_archive_from_expsyms_cmds is referenced but not assigned.
# 8655|   	  fi
# 8656|   
# 8657|-> 	  if test -n "$old_archive_from_expsyms_cmds"; then
# 8658|   	    # figure out the soname
# 8659|   	    set dummy $library_names

Error: SHELLCHECK_WARNING (CWE-456): [#def426]
/usr/share/libtool/build-aux/ltmain.sh:8659:10: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
# 8657|   	  if test -n "$old_archive_from_expsyms_cmds"; then
# 8658|   	    # figure out the soname
# 8659|-> 	    set dummy $library_names
# 8660|   	    shift
# 8661|   	    realname=$1

Error: SHELLCHECK_WARNING (CWE-457): [#def427]
/usr/share/libtool/build-aux/ltmain.sh:8663:30: warning[SC2154]: libname_spec is referenced but not assigned.
# 8661|   	    realname=$1
# 8662|   	    shift
# 8663|-> 	    libname=`eval "\\$ECHO \"$libname_spec\""`
# 8664|   	    # use dlname if we got it. it's perfectly good, no?
# 8665|   	    if test -n "$dlname"; then

Error: SHELLCHECK_WARNING (CWE-457): [#def428]
/usr/share/libtool/build-aux/ltmain.sh:8667:20: warning[SC2154]: soname_spec is referenced but not assigned.
# 8665|   	    if test -n "$dlname"; then
# 8666|   	      soname=$dlname
# 8667|-> 	    elif test -n "$soname_spec"; then
# 8668|   	      # bleh windows
# 8669|   	      case $host_os in

Error: SHELLCHECK_WARNING (CWE-457): [#def429]
/usr/share/libtool/build-aux/ltmain.sh:8692:27: warning[SC2154]: extract_expsyms_cmds is referenced but not assigned.
# 8690|   	    else
# 8691|   	      func_verbose "extracting exported symbol list from '$soname'"
# 8692|-> 	      func_execute_cmds "$extract_expsyms_cmds" 'exit $?'
# 8693|   	    fi
# 8694|   

Error: SHELLCHECK_WARNING (CWE-457): [#def430]
/usr/share/libtool/build-aux/ltmain.sh:8710:11: warning[SC2154]: hardcode_action is referenced but not assigned.
# 8708|   	    add=
# 8709|   	    lib_linked=yes
# 8710|-> 	    case $hardcode_action in
# 8711|   	    immediate | unsupported)
# 8712|   	      if test no = "$hardcode_direct"; then

Error: SHELLCHECK_WARNING (CWE-457): [#def431]
/usr/share/libtool/build-aux/ltmain.sh:8712:22: warning[SC2154]: hardcode_direct is referenced but not assigned.
# 8710|   	    case $hardcode_action in
# 8711|   	    immediate | unsupported)
# 8712|-> 	      if test no = "$hardcode_direct"; then
# 8713|   		add=$dir/$linklib
# 8714|   		case $host in

Error: SHELLCHECK_WARNING (CWE-457): [#def432]
/usr/share/libtool/build-aux/ltmain.sh:8738:24: warning[SC2154]: hardcode_minus_L is referenced but not assigned.
# 8736|   		    fi
# 8737|   		esac
# 8738|-> 	      elif test no = "$hardcode_minus_L"; then
# 8739|   		case $host in
# 8740|   		*-*-sunos*) add_shlibpath=$dir ;;

Error: SHELLCHECK_WARNING (CWE-457): [#def433]
/usr/share/libtool/build-aux/ltmain.sh:8744:24: warning[SC2154]: hardcode_shlibpath_var is referenced but not assigned.
# 8742|   		add_dir=-L$dir
# 8743|   		add=-l$name
# 8744|-> 	      elif test no = "$hardcode_shlibpath_var"; then
# 8745|   		add_shlibpath=$dir
# 8746|   		add=-l$name

Error: SHELLCHECK_WARNING (CWE-457): [#def434]
/usr/share/libtool/build-aux/ltmain.sh:8753:22: warning[SC2154]: hardcode_direct_absolute is referenced but not assigned.
# 8751|   	    relink)
# 8752|   	      if test yes = "$hardcode_direct" &&
# 8753|-> 	         test no = "$hardcode_direct_absolute"; then
# 8754|   		add=$dir/$linklib
# 8755|   	      elif test yes = "$hardcode_minus_L"; then

Error: SHELLCHECK_WARNING (CWE-1095): [#def435]
/usr/share/libtool/build-aux/ltmain.sh:8922:4: warning[SC2165]: This nested loop overrides the index variable of its parent.
# 8920|   	  # ... and its dependency_libs
# 8921|   	  tmp_libs=
# 8922|-> 	  for deplib in $dependency_libs; do
# 8923|   	    newdependency_libs="$deplib $newdependency_libs"
# 8924|   	    case $deplib in

Error: SHELLCHECK_WARNING (CWE-1095): [#def436]
/usr/share/libtool/build-aux/ltmain.sh:8940:6: warning[SC2165]: This nested loop overrides the index variable of its parent.
# 8938|   	  if test no != "$link_all_deplibs"; then
# 8939|   	    # Add the search paths of all dependency libraries
# 8940|-> 	    for deplib in $dependency_libs; do
# 8941|   	      path=
# 8942|   	      case $deplib in

Error: SHELLCHECK_WARNING (CWE-156): [#def437]
/usr/share/libtool/build-aux/ltmain.sh:8964:27: warning[SC2046]: Quote this to prevent word splitting.
# 8962|   		*-*-darwin*)
# 8963|   		  depdepl=
# 8964|-> 		  eval deplibrary_names=`$SED -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
# 8965|   		  if test -n "$deplibrary_names"; then
# 8966|   		    for tmp in $deplibrary_names; do

Error: SHELLCHECK_WARNING (CWE-457): [#def438]
/usr/share/libtool/build-aux/ltmain.sh:8965:17: warning[SC2154]: deplibrary_names is referenced but not assigned.
# 8963|   		  depdepl=
# 8964|   		  eval deplibrary_names=`$SED -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
# 8965|-> 		  if test -n "$deplibrary_names"; then
# 8966|   		    for tmp in $deplibrary_names; do
# 8967|   		      depdepl=$tmp

Error: SHELLCHECK_WARNING (CWE-156): [#def439]
/usr/share/libtool/build-aux/ltmain.sh:8986:17: warning[SC2046]: Quote this to prevent word splitting.
# 8984|   		esac
# 8985|   		else
# 8986|-> 		  eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
# 8987|   		  test -z "$libdir" && \
# 8988|   		    func_fatal_error "'$deplib' is not a valid libtool archive"

Error: SHELLCHECK_WARNING (CWE-457): [#def440]
/usr/share/libtool/build-aux/ltmain.sh:9119:16: warning[SC2154]: func_cc_basename_result is referenced but not assigned.
# 9117|           solaris*)
# 9118|             func_cc_basename "$CC"
# 9119|->           case $func_cc_basename_result in
# 9120|             CC* | sunCC*)
# 9121|               func_suncc_cstd_abi

Error: SHELLCHECK_WARNING (CWE-456): [#def441]
/usr/share/libtool/build-aux/ltmain.sh:9224:11: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
# 9222|   	|| func_warning "'-dlopen self' is ignored for libtool libraries"
# 9223|   
# 9224|->       set dummy $rpath
# 9225|         shift
# 9226|         test 1 -lt "$#" \

Error: SHELLCHECK_WARNING (CWE-456): [#def442]
/usr/share/libtool/build-aux/ltmain.sh:9252:6: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
# 9250|   	# Parse the version information argument.
# 9251|   	save_ifs=$IFS; IFS=:
# 9252|-> 	set dummy $vinfo 0 0 0
# 9253|   	shift
# 9254|   	IFS=$save_ifs

Error: SHELLCHECK_WARNING (CWE-457): [#def443]
/usr/share/libtool/build-aux/ltmain.sh:9275:9: warning[SC2154]: version_type is referenced but not assigned.
# 9273|   	  # that has an extra 1 added just for fun
# 9274|   	  #
# 9275|-> 	  case $version_type in
# 9276|   	  # correct linux to gnu/linux during the next big refactor
# 9277|   	  darwin|freebsd-elf|linux|midnightbsd-elf|osf|qnx|windows|none)

Error: SHELLCHECK_WARNING (CWE-457): [#def444]
/usr/share/libtool/build-aux/ltmain.sh:9296:32: warning[SC2154]: modename is referenced but not assigned.
# 9294|   	    ;;
# 9295|   	  *)
# 9296|-> 	    func_fatal_configuration "$modename: unknown library version type '$version_type'"
# 9297|   	    ;;
# 9298|   	  esac

Error: SHELLCHECK_WARNING (CWE-563): [#def445]
/usr/share/libtool/build-aux/ltmain.sh:9353:4: warning[SC2034]: xlcverstring appears unused. Verify use (or export if used externally).
# 9351|   	  func_arith $current + 1
# 9352|   	  minor_current=$func_arith_result
# 9353|-> 	  xlcverstring="$wl-compatibility_version $wl$minor_current $wl-current_version $wl$minor_current.$revision"
# 9354|   	  verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
# 9355|             # On Darwin other compilers

Error: SHELLCHECK_WARNING (CWE-457): [#def446]
/usr/share/libtool/build-aux/ltmain.sh:9474:18: warning[SC2154]: need_version is referenced but not assigned.
# 9472|   	    ;;
# 9473|   	  esac
# 9474|-> 	  if test no = "$need_version"; then
# 9475|   	    versuffix=
# 9476|   	  else

Error: SHELLCHECK_WARNING (CWE-457): [#def447]
/usr/share/libtool/build-aux/ltmain.sh:9500:25: warning[SC2154]: no_undefined_flag is referenced but not assigned.
# 9498|   	else
# 9499|   	  # Don't allow undefined symbols.
# 9500|-> 	  allow_undefined_flag=$no_undefined_flag
# 9501|   	fi
# 9502|   

Error: SHELLCHECK_WARNING (CWE-691): [#def448]
/usr/share/libtool/build-aux/ltmain.sh:9518:6: warning[SC2254]: Quote expansions in case patterns to match literally rather than as a glob.
# 9516|   	    *.$objext | *.gcno)
# 9517|   	       ;;
# 9518|-> 	    $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/$libname$release.*)
# 9519|   	       if test -n "$precious_files_regex"; then
# 9520|   		 if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1

Error: SHELLCHECK_WARNING (CWE-457): [#def449]
/usr/share/libtool/build-aux/ltmain.sh:9609:21: warning[SC2154]: build_libtool_need_lc is referenced but not assigned.
# 9607|   	  *)
# 9608|   	    # Add libc to deplibs on all other systems if necessary.
# 9609|-> 	    if test yes = "$build_libtool_need_lc"; then
# 9610|   	      func_append deplibs " -lc"
# 9611|   	    fi

Error: SHELLCHECK_WARNING (CWE-456): [#def450]
/usr/share/libtool/build-aux/ltmain.sh:9640:8: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
# 9638|   	  ;;
# 9639|   	file_magic*)
# 9640|-> 	  set dummy $deplibs_check_method; shift
# 9641|   	  file_magic_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
# 9642|   	  for a_deplib in $deplibs; do

Error: SHELLCHECK_WARNING (CWE-457): [#def451]
/usr/share/libtool/build-aux/ltmain.sh:9657:15: warning[SC2154]: file_magic_glob is referenced but not assigned.
# 9655|   	      if test -n "$a_deplib"; then
# 9656|   		libname=`eval "\\$ECHO \"$libname_spec\""`
# 9657|-> 		if test -n "$file_magic_glob"; then
# 9658|   		  libnameglob=`func_echo_all "$libname" | $SED -e $file_magic_glob`
# 9659|   		else

Error: SHELLCHECK_WARNING (CWE-457): [#def452]
/usr/share/libtool/build-aux/ltmain.sh:9662:15: warning[SC2154]: want_nocaseglob is referenced but not assigned.
# 9660|   		  libnameglob=$libname
# 9661|   		fi
# 9662|-> 		test yes = "$want_nocaseglob" && nocaseglob=`shopt -p nocaseglob`
# 9663|   		for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
# 9664|   		  if test yes = "$want_nocaseglob"; then

Error: SHELLCHECK_WARNING: [#def453]
/usr/share/libtool/build-aux/ltmain.sh:9662:48: warning[SC3044]: In POSIX sh, 'shopt' is undefined.
# 9660|   		  libnameglob=$libname
# 9661|   		fi
# 9662|-> 		test yes = "$want_nocaseglob" && nocaseglob=`shopt -p nocaseglob`
# 9663|   		for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
# 9664|   		  if test yes = "$want_nocaseglob"; then

Error: SHELLCHECK_WARNING: [#def454]
/usr/share/libtool/build-aux/ltmain.sh:9665:7: warning[SC3044]: In POSIX sh, 'shopt' is undefined.
# 9663|   		for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
# 9664|   		  if test yes = "$want_nocaseglob"; then
# 9665|-> 		    shopt -s nocaseglob
# 9666|   		    potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
# 9667|   		    $nocaseglob

Error: SHELLCHECK_WARNING (CWE-398): [#def455]
/usr/share/libtool/build-aux/ltmain.sh:9666:29: error[SC1087]: Use braces when expanding arrays, e.g. ${array[idx]} (or ${var}[.. to quiet).
# 9664|   		  if test yes = "$want_nocaseglob"; then
# 9665|   		    shopt -s nocaseglob
# 9666|-> 		    potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
# 9667|   		    $nocaseglob
# 9668|   		  else

Error: SHELLCHECK_WARNING (CWE-398): [#def456]
/usr/share/libtool/build-aux/ltmain.sh:9669:29: error[SC1087]: Use braces when expanding arrays, e.g. ${array[idx]} (or ${var}[.. to quiet).
# 9667|   		    $nocaseglob
# 9668|   		  else
# 9669|-> 		    potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
# 9670|   		  fi
# 9671|   		  for potent_lib in $potential_libs; do

Error: SHELLCHECK_WARNING (CWE-456): [#def457]
/usr/share/libtool/build-aux/ltmain.sh:9723:8: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
# 9721|   	  ;;
# 9722|   	match_pattern*)
# 9723|-> 	  set dummy $deplibs_check_method; shift
# 9724|   	  match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
# 9725|   	  for a_deplib in $deplibs; do

Error: SHELLCHECK_WARNING (CWE-398): [#def458]
/usr/share/libtool/build-aux/ltmain.sh:9741:27: error[SC1087]: Use braces when expanding arrays, e.g. ${array[idx]} (or ${var}[.. to quiet).
# 9739|   		libname=`eval "\\$ECHO \"$libname_spec\""`
# 9740|   		for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
# 9741|-> 		  potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
# 9742|   		  for potent_lib in $potential_libs; do
# 9743|   		    potlib=$potent_lib # see symlink-check above in file_magic test

Error: SHELLCHECK_WARNING (CWE-457): [#def459]
/usr/share/libtool/build-aux/ltmain.sh:9899:7: warning[SC2154]: archive_cmds is referenced but not assigned.
# 9897|   	# Remove $wl instances when linking with ld.
# 9898|   	# FIXME: should test the right _cmds variable.
# 9899|-> 	case $archive_cmds in
# 9900|   	  *\$LD\ *) wl= ;;
# 9901|           esac

Error: SHELLCHECK_WARNING (CWE-457): [#def460]
/usr/share/libtool/build-aux/ltmain.sh:9910:20: warning[SC2154]: hardcode_libdir_separator is referenced but not assigned.
# 9908|   	  for libdir in $rpath; do
# 9909|   	    if test -n "$hardcode_libdir_flag_spec"; then
# 9910|-> 	      if test -n "$hardcode_libdir_separator"; then
# 9911|   		func_replace_sysroot "$libdir"
# 9912|   		libdir=$func_replace_sysroot_result

Error: SHELLCHECK_WARNING (CWE-457): [#def461]
/usr/share/libtool/build-aux/ltmain.sh:9961:23: warning[SC2154]: library_names_spec is referenced but not assigned.
# 9959|   	# Get the real and link names of the library.
# 9960|   	eval shared_ext=\"$shrext_cmds\"
# 9961|-> 	eval library_names=\"$library_names_spec\"
# 9962|   	set dummy $library_names
# 9963|   	shift

Error: SHELLCHECK_WARNING (CWE-456): [#def462]
/usr/share/libtool/build-aux/ltmain.sh:9962:6: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
# 9960|   	eval shared_ext=\"$shrext_cmds\"
# 9961|   	eval library_names=\"$library_names_spec\"
# 9962|-> 	set dummy $library_names
# 9963|   	shift
# 9964|   	realname=$1

Error: SHELLCHECK_WARNING (CWE-457): [#def463]
/usr/share/libtool/build-aux/ltmain.sh:9988:43: warning[SC2154]: include_expsyms is referenced but not assigned.
# 9986|   
# 9987|   	delfiles=
# 9988|-> 	if test -n "$export_symbols" && test -n "$include_expsyms"; then
# 9989|   	  $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp"
# 9990|   	  export_symbols=$output_objdir/$libname.uexp

Error: SHELLCHECK_WARNING (CWE-457): [#def464]
/usr/share/libtool/build-aux/ltmain.sh:10020:11: warning[SC2154]: export_symbols_cmds is referenced but not assigned.
#10018|   	    export_symbols=$output_objdir/$libname.exp
#10019|   	    $opt_dry_run || $RM $export_symbols
#10020|-> 	    cmds=$export_symbols_cmds
#10021|   	    save_ifs=$IFS; IFS='~'
#10022|   	    for cmd1 in $cmds; do

Error: SHELLCHECK_WARNING (CWE-457): [#def465]
/usr/share/libtool/build-aux/ltmain.sh:10026:13: warning[SC2154]: nm_file_list_spec is referenced but not assigned.
#10024|   	      # Take the normal branch if the nm_file_list_spec branch
#10025|   	      # doesn't work or if tool conversion is not needed.
#10026|-> 	      case $nm_file_list_spec~$to_tool_file_cmd in
#10027|   		*~func_convert_file_noop | *~func_convert_file_msys_to_w32 | ~*)
#10028|   		  try_normal_branch=yes

Error: SHELLCHECK_WARNING (CWE-457): [#def466]
/usr/share/libtool/build-aux/ltmain.sh:10112:18: warning[SC2154]: compiler_needs_object is referenced but not assigned.
#10110|   	if test -n "$convenience"; then
#10111|   	  if test -n "$whole_archive_flag_spec" &&
#10112|-> 	    test yes = "$compiler_needs_object" &&
#10113|   	    test -z "$libobjs"; then
#10114|   	    # extract the archives, so we have objects to list.

Error: SHELLCHECK_WARNING (CWE-457): [#def467]
/usr/share/libtool/build-aux/ltmain.sh:10132:43: warning[SC2154]: thread_safe_flag_spec is referenced but not assigned.
#10130|   	fi
#10131|   
#10132|-> 	if test yes = "$thread_safe" && test -n "$thread_safe_flag_spec"; then
#10133|   	  eval flag=\"$thread_safe_flag_spec\"
#10134|   	  func_append linker_flags " $flag"

Error: SHELLCHECK_WARNING (CWE-457): [#def468]
/usr/share/libtool/build-aux/ltmain.sh:10143:38: warning[SC2154]: module_cmds is referenced but not assigned.
#10141|   
#10142|   	# Do each of the archive commands.
#10143|-> 	if test yes = "$module" && test -n "$module_cmds"; then
#10144|   	  if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
#10145|   	    eval test_cmds=\"$module_expsym_cmds\"

Error: SHELLCHECK_WARNING (CWE-457): [#def469]
/usr/share/libtool/build-aux/ltmain.sh:10144:45: warning[SC2154]: module_expsym_cmds is referenced but not assigned.
#10142|   	# Do each of the archive commands.
#10143|   	if test yes = "$module" && test -n "$module_cmds"; then
#10144|-> 	  if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
#10145|   	    eval test_cmds=\"$module_expsym_cmds\"
#10146|   	    cmds=$module_expsym_cmds

Error: SHELLCHECK_WARNING (CWE-457): [#def470]
/usr/share/libtool/build-aux/ltmain.sh:10152:45: warning[SC2154]: archive_expsym_cmds is referenced but not assigned.
#10150|   	  fi
#10151|   	else
#10152|-> 	  if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
#10153|   	    eval test_cmds=\"$archive_expsym_cmds\"
#10154|   	    cmds=$archive_expsym_cmds

Error: SHELLCHECK_WARNING (CWE-457): [#def471]
/usr/share/libtool/build-aux/ltmain.sh:10194:74: warning[SC2154]: file_list_spec is referenced but not assigned.
#10192|   	  k=1
#10193|   
#10194|-> 	  if test -n "$save_libobjs" && test : != "$skipped_export" && test -n "$file_list_spec"; then
#10195|   	    output=$output_objdir/$output_la.lnk
#10196|   	    func_verbose "creating linker input file list: $output"

Error: SHELLCHECK_WARNING (CWE-456): [#def472]
/usr/share/libtool/build-aux/ltmain.sh:10198:10: warning[SC2121]: To assign a variable, use just 'var=value', no 'set ..'.
#10196|   	    func_verbose "creating linker input file list: $output"
#10197|   	    : > $output
#10198|-> 	    set x $save_libobjs
#10199|   	    shift
#10200|   	    firstobj=

Error: SHELLCHECK_WARNING (CWE-457): [#def473]
/usr/share/libtool/build-aux/ltmain.sh:10230:25: warning[SC2154]: reload_cmds is referenced but not assigned.
#10228|   	      func_verbose "creating reloadable object files..."
#10229|   	      output=$output_objdir/$output_la-$k.$objext
#10230|-> 	      eval test_cmds=\"$reload_cmds\"
#10231|   	      func_len " $test_cmds"
#10232|   	      len0=$func_len_result

Error: SHELLCHECK_WARNING (CWE-563): [#def474]
/usr/share/libtool/build-aux/ltmain.sh:10330:42: warning[SC2034]: tmp_export_symbols appears unused. Verify use (or export if used externally).
#10328|   	    if test -n "$export_symbols" && test -n "$include_expsyms"; then
#10329|   	      tmp_export_symbols=$export_symbols
#10330|-> 	      test -n "$orig_export_symbols" && tmp_export_symbols=$orig_export_symbols
#10331|   	      $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"'
#10332|   	    fi

Error: SHELLCHECK_WARNING (CWE-457): [#def475]
/usr/share/libtool/build-aux/ltmain.sh:10711:10: warning[SC2154]: finalize_perm_rpath is referenced but not assigned.
#10709|   	  fi
#10710|   	elif test -n "$runpath_var"; then
#10711|-> 	  case "$finalize_perm_rpath " in
#10712|   	  *" $libdir "*) ;;
#10713|   	  *) func_append finalize_perm_rpath " $libdir" ;;

Error: SHELLCHECK_WARNING (CWE-457): [#def476]
/usr/share/libtool/build-aux/ltmain.sh:10734:19: warning[SC2154]: prelink_cmds is referenced but not assigned.
#10732|   
#10733|         # template prelinking step
#10734|->       if test -n "$prelink_cmds"; then
#10735|   	func_execute_cmds "$prelink_cmds" 'exit $?'
#10736|         fi

Error: SHELLCHECK_WARNING (CWE-457): [#def477]
/usr/share/libtool/build-aux/ltmain.sh:10866:13: warning[SC2154]: variables_saved_for_relink is referenced but not assigned.
#10864|         if test -n "$relink_command"; then
#10865|   	# Preserve any variables that may affect compiler behavior
#10866|-> 	for var in $variables_saved_for_relink; do
#10867|   	  if eval test -z \"\${$var+set}\"; then
#10868|   	    relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"

Error: SHELLCHECK_WARNING (CWE-569): [#def478]
/usr/share/libtool/build-aux/ltmain.sh:10867:24: warning[SC1083]: This { is literal. Check expression (missing ;/\n?) or quote it.
#10865|   	# Preserve any variables that may affect compiler behavior
#10866|   	for var in $variables_saved_for_relink; do
#10867|-> 	  if eval test -z \"\${$var+set}\"; then
#10868|   	    relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
#10869|   	  elif eval var_value=\$$var; test -z "$var_value"; then

Error: SHELLCHECK_WARNING (CWE-569): [#def479]
/usr/share/libtool/build-aux/ltmain.sh:10867:33: warning[SC1083]: This } is literal. Check expression (missing ;/\n?) or quote it.
#10865|   	# Preserve any variables that may affect compiler behavior
#10866|   	for var in $variables_saved_for_relink; do
#10867|-> 	  if eval test -z \"\${$var+set}\"; then
#10868|   	    relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
#10869|   	  elif eval var_value=\$$var; test -z "$var_value"; then

Error: SHELLCHECK_WARNING (CWE-457): [#def480]
/usr/share/libtool/build-aux/ltmain.sh:10869:41: warning[SC2154]: var_value is referenced but not assigned.
#10867|   	  if eval test -z \"\${$var+set}\"; then
#10868|   	    relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
#10869|-> 	  elif eval var_value=\$$var; test -z "$var_value"; then
#10870|   	    relink_command="$var=; export $var; $relink_command"
#10871|   	  else

Error: SHELLCHECK_WARNING (CWE-569): [#def481]
/usr/share/libtool/build-aux/ltmain.sh:10905:12: warning[SC2064]: Use single quotes, otherwise this expands now rather than when signalled.
#10903|   	    cwrapper=$output_path/$output_name.exe
#10904|   	    $RM $cwrappersource $cwrapper
#10905|-> 	    trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
#10906|   
#10907|   	    func_emit_cwrapperexe_src > $cwrappersource

Error: SHELLCHECK_WARNING (CWE-569): [#def482]
/usr/share/libtool/build-aux/ltmain.sh:10905:16: warning[SC2064]: Use single quotes, otherwise this expands now rather than when signalled.
#10903|   	    cwrapper=$output_path/$output_name.exe
#10904|   	    $RM $cwrappersource $cwrapper
#10905|-> 	    trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
#10906|   
#10907|   	    func_emit_cwrapperexe_src > $cwrappersource

Error: SHELLCHECK_WARNING (CWE-569): [#def483]
/usr/share/libtool/build-aux/ltmain.sh:10905:32: warning[SC2064]: Use single quotes, otherwise this expands now rather than when signalled.
#10903|   	    cwrapper=$output_path/$output_name.exe
#10904|   	    $RM $cwrappersource $cwrapper
#10905|-> 	    trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
#10906|   
#10907|   	    func_emit_cwrapperexe_src > $cwrappersource

Error: SHELLCHECK_WARNING (CWE-569): [#def484]
/usr/share/libtool/build-aux/ltmain.sh:10905:48: warning[SC2064]: Use single quotes, otherwise this expands now rather than when signalled.
#10903|   	    cwrapper=$output_path/$output_name.exe
#10904|   	    $RM $cwrappersource $cwrapper
#10905|-> 	    trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
#10906|   
#10907|   	    func_emit_cwrapperexe_src > $cwrappersource

Error: SHELLCHECK_WARNING (CWE-569): [#def485]
/usr/share/libtool/build-aux/ltmain.sh:10921:12: warning[SC2064]: Use single quotes, otherwise this expands now rather than when signalled.
#10919|   	    func_ltwrapper_scriptname $cwrapper
#10920|   	    $RM $func_ltwrapper_scriptname_result
#10921|-> 	    trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15
#10922|   	    $opt_dry_run || {
#10923|   	      # note: this script will not be executed, so do not chmod.

Error: SHELLCHECK_WARNING (CWE-569): [#def486]
/usr/share/libtool/build-aux/ltmain.sh:10921:16: warning[SC2064]: Use single quotes, otherwise this expands now rather than when signalled.
#10919|   	    func_ltwrapper_scriptname $cwrapper
#10920|   	    $RM $func_ltwrapper_scriptname_result
#10921|-> 	    trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15
#10922|   	    $opt_dry_run || {
#10923|   	      # note: this script will not be executed, so do not chmod.

Error: SHELLCHECK_WARNING (CWE-569): [#def487]
/usr/share/libtool/build-aux/ltmain.sh:10921:56: warning[SC2064]: Use single quotes, otherwise this expands now rather than when signalled.
#10919|   	    func_ltwrapper_scriptname $cwrapper
#10920|   	    $RM $func_ltwrapper_scriptname_result
#10921|-> 	    trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15
#10922|   	    $opt_dry_run || {
#10923|   	      # note: this script will not be executed, so do not chmod.

Error: SHELLCHECK_WARNING (CWE-457): [#def488]
/usr/share/libtool/build-aux/ltmain.sh:10924:18: warning[SC2154]: build is referenced but not assigned.
#10922|   	    $opt_dry_run || {
#10923|   	      # note: this script will not be executed, so do not chmod.
#10924|-> 	      if test "x$build" = "x$host"; then
#10925|   		$cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result
#10926|   	      else

Error: SHELLCHECK_WARNING (CWE-569): [#def489]
/usr/share/libtool/build-aux/ltmain.sh:10933:12: warning[SC2064]: Use single quotes, otherwise this expands now rather than when signalled.
#10931|   	  * )
#10932|   	    $RM $output
#10933|-> 	    trap "$RM $output; exit $EXIT_FAILURE" 1 2 15
#10934|   
#10935|   	    func_emit_wrapper no > $output

Error: SHELLCHECK_WARNING (CWE-569): [#def490]
/usr/share/libtool/build-aux/ltmain.sh:10933:16: warning[SC2064]: Use single quotes, otherwise this expands now rather than when signalled.
#10931|   	  * )
#10932|   	    $RM $output
#10933|-> 	    trap "$RM $output; exit $EXIT_FAILURE" 1 2 15
#10934|   
#10935|   	    func_emit_wrapper no > $output

Error: SHELLCHECK_WARNING (CWE-569): [#def491]
/usr/share/libtool/build-aux/ltmain.sh:10933:30: warning[SC2064]: Use single quotes, otherwise this expands now rather than when signalled.
#10931|   	  * )
#10932|   	    $RM $output
#10933|-> 	    trap "$RM $output; exit $EXIT_FAILURE" 1 2 15
#10934|   
#10935|   	    func_emit_wrapper no > $output

Error: SHELLCHECK_WARNING: [#def492]
/usr/share/libtool/build-aux/ltmain.sh:11013:6: warning[SC2195]: This pattern will never match the case statement's word. Double check them.
#11011|   	    objbase=$func_basename_result
#11012|   	    case " $oldobjs " in
#11013|-> 	    " ") oldobjs=$obj ;;
#11014|   	    *[\ /]"$objbase "*)
#11015|   	      while :; do

Error: SHELLCHECK_WARNING (CWE-457): [#def493]
/usr/share/libtool/build-aux/ltmain.sh:11035:14: warning[SC2154]: old_archive_cmds is referenced but not assigned.
#11033|   	func_to_tool_file "$oldlib" func_convert_file_msys_to_w32
#11034|   	tool_oldlib=$func_to_tool_file_result
#11035|-> 	eval cmds=\"$old_archive_cmds\"
#11036|   
#11037|   	func_len " $cmds"

Error: SHELLCHECK_WARNING (CWE-457): [#def494]
/usr/share/libtool/build-aux/ltmain.sh:11041:16: warning[SC2154]: archiver_list_spec is referenced but not assigned.
#11039|   	if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
#11040|   	  cmds=$old_archive_cmds
#11041|-> 	elif test -n "$archiver_list_spec"; then
#11042|   	  func_verbose "using command file archive linking..."
#11043|   	  for obj in $oldobjs

Error: SHELLCHECK_WARNING (CWE-569): [#def495]
/usr/share/libtool/build-aux/ltmain.sh:11113:22: warning[SC1083]: This { is literal. Check expression (missing ;/\n?) or quote it.
#11111|         # Preserve any variables that may affect compiler behavior
#11112|         for var in $variables_saved_for_relink; do
#11113|-> 	if eval test -z \"\${$var+set}\"; then
#11114|   	  relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
#11115|   	elif eval var_value=\$$var; test -z "$var_value"; then

Error: SHELLCHECK_WARNING (CWE-569): [#def496]
/usr/share/libtool/build-aux/ltmain.sh:11113:31: warning[SC1083]: This } is literal. Check expression (missing ;/\n?) or quote it.
#11111|         # Preserve any variables that may affect compiler behavior
#11112|         for var in $variables_saved_for_relink; do
#11113|-> 	if eval test -z \"\${$var+set}\"; then
#11114|   	  relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
#11115|   	elif eval var_value=\$$var; test -z "$var_value"; then

Error: SHELLCHECK_WARNING (CWE-156): [#def497]
/usr/share/libtool/build-aux/ltmain.sh:11147:15: warning[SC2046]: Quote this to prevent word splitting.
#11145|   		name=$func_basename_result
#11146|   		func_resolve_sysroot "$deplib"
#11147|-> 		eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result`
#11148|   		test -z "$libdir" && \
#11149|   		  func_fatal_error "'$deplib' is not a valid libtool archive"

Error: SHELLCHECK_WARNING (CWE-156): [#def498]
/usr/share/libtool/build-aux/ltmain.sh:11173:15: warning[SC2046]: Quote this to prevent word splitting.
#11171|   	        func_basename "$lib"
#11172|   		name=$func_basename_result
#11173|-> 		eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
#11174|   		test -z "$libdir" && \
#11175|   		  func_fatal_error "'$lib' is not a valid libtool archive"

Error: SHELLCHECK_WARNING (CWE-156): [#def499]
/usr/share/libtool/build-aux/ltmain.sh:11192:15: warning[SC2046]: Quote this to prevent word splitting.
#11190|   		func_basename "$lib"
#11191|   		name=$func_basename_result
#11192|-> 		eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
#11193|   		test -z "$libdir" && \
#11194|   		  func_fatal_error "'$lib' is not a valid libtool archive"

Error: SHELLCHECK_WARNING (CWE-563): [#def500]
/usr/share/libtool/build-aux/ltmain.sh:11317:5: warning[SC2034]: libtool_install_magic appears unused. Verify use (or export if used externally).
#11315|       # This variable tells wrapper scripts just to set variables rather
#11316|       # than running their programs.
#11317|->     libtool_install_magic=$magic
#11318|   
#11319|       for arg

Error: SHELLCHECK_WARNING (CWE-457): [#def501]
/usr/share/libtool/build-aux/ltmain.sh:11390:27: warning[SC2154]: postuninstall_cmds is referenced but not assigned.
#11388|   	    if test -n "$library_names"; then
#11389|   	      # Do each command in the postuninstall commands.
#11390|-> 	      func_execute_cmds "$postuninstall_cmds" '$rmforce || exit_status=1'
#11391|   	    fi
#11392|   

Error: SHELLCHECK_WARNING (CWE-457): [#def502]
/usr/share/libtool/build-aux/ltmain.sh:11395:27: warning[SC2154]: old_postuninstall_cmds is referenced but not assigned.
#11393|   	    if test -n "$old_library"; then
#11394|   	      # Do each command in the old_postuninstall commands.
#11395|-> 	      func_execute_cmds "$old_postuninstall_cmds" '$rmforce || exit_status=1'
#11396|   	    fi
#11397|   	    # FIXME: should reinstall the best remaining shared library.

Error: SHELLCHECK_WARNING: [#def503]
/usr/share/libtool/build-aux/missing:68:10: warning[SC2320]: This $? refers to echo/printf, not a previous command. Assign to variable to avoid it being overwritten.
#   66|   GNU Automake home page: <https://www.gnu.org/software/automake/>.
#   67|   General help using GNU software: <https://www.gnu.org/gethelp/>."
#   68|->     exit $?
#   69|       ;;
#   70|   

Error: SHELLCHECK_WARNING: [#def504]
/usr/share/libtool/build-aux/missing:73:10: warning[SC2320]: This $? refers to echo/printf, not a previous command. Assign to variable to avoid it being overwritten.
#   71|     -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
#   72|       echo "missing (GNU Automake) $scriptversion"
#   73|->     exit $?
#   74|       ;;
#   75|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def505]
libtool-2.5.4/libltdl/ltdl.c:714:9: warning[-Wanalyzer-null-argument]: use of NULL 'filename' where non-null expected
libtool-2.5.4/libltdl/ltdl.c:1900:1: enter_function: entry to 'lt_dlforeachfile'
libtool-2.5.4/libltdl/ltdl.c:1907:6: branch_true: following 'true' branch (when 'search_path' is non-NULL)...
libtool-2.5.4/libltdl/ltdl.c:1911:17: branch_true: ...to here
libtool-2.5.4/libltdl/ltdl.c:1911:17: call_function: calling 'foreach_dirinpath' from 'lt_dlforeachfile'
#  712|   
#  713|   	assert (filenamesize > lendir);
#  714|-> 	strcpy (filename, dir_name);
#  715|   
#  716|   	if (base_name && *base_name)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def506]
libtool-2.5.4/libltdl/ltdl.c:1015:13: warning[-Wanalyzer-file-leak]: leak of FILE 'file'
libtool-2.5.4/libltdl/ltdl.c:1645:1: enter_function: entry to 'lt_dlopenadvise'
libtool-2.5.4/libltdl/ltdl.c:1667:11: call_function: calling 'try_dlopen' from 'lt_dlopenadvise'
# 1013|     if (len > 3 && str[0] == '\'')
# 1014|       {
# 1015|->       tmp = MALLOC (char, end - str);
# 1016|         if (!tmp)
# 1017|   	return 1;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def507]
libtool-2.5.4/libltdl/ltdl.c:1015:13: warning[-Wanalyzer-malloc-leak]: leak of 'file'
libtool-2.5.4/libltdl/ltdl.c:1645:1: enter_function: entry to 'lt_dlopenadvise'
libtool-2.5.4/libltdl/ltdl.c:1667:11: call_function: calling 'try_dlopen' from 'lt_dlopenadvise'
# 1013|     if (len > 3 && str[0] == '\'')
# 1014|       {
# 1015|->       tmp = MALLOC (char, end - str);
# 1016|         if (!tmp)
# 1017|   	return 1;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def508]
libtool-2.5.4/libltdl/ltdl.c:1038:24: warning[-Wanalyzer-file-leak]: leak of FILE 'file'
libtool-2.5.4/libltdl/ltdl.c:1645:1: enter_function: entry to 'lt_dlopenadvise'
libtool-2.5.4/libltdl/ltdl.c:1667:11: call_function: calling 'try_dlopen' from 'lt_dlopenadvise'
# 1036|     int		errors = 0;
# 1037|     size_t	line_len = LT_FILENAME_MAX;
# 1038|->   char *	line = MALLOC (char, line_len);
# 1039|   
# 1040|     if (!line)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def509]
libtool-2.5.4/libltdl/ltdl.c:1038:24: warning[-Wanalyzer-malloc-leak]: leak of 'file'
libtool-2.5.4/libltdl/ltdl.c:1645:1: enter_function: entry to 'lt_dlopenadvise'
libtool-2.5.4/libltdl/ltdl.c:1667:11: call_function: calling 'try_dlopen' from 'lt_dlopenadvise'
# 1036|     int		errors = 0;
# 1037|     size_t	line_len = LT_FILENAME_MAX;
# 1038|->   char *	line = MALLOC (char, line_len);
# 1039|   
# 1040|     if (!line)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def510]
libtool-2.5.4/libltdl/ltdl.c:1042:7: warning[-Wanalyzer-file-leak]: leak of FILE 'file'
libtool-2.5.4/libltdl/ltdl.c:1645:1: enter_function: entry to 'lt_dlopenadvise'
libtool-2.5.4/libltdl/ltdl.c:1667:11: call_function: calling 'try_dlopen' from 'lt_dlopenadvise'
# 1040|     if (!line)
# 1041|       {
# 1042|->       LT__SETERROR (FILE_NOT_FOUND);
# 1043|         return 1;
# 1044|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def511]
libtool-2.5.4/libltdl/ltdl.c:1042:7: warning[-Wanalyzer-malloc-leak]: leak of 'file'
libtool-2.5.4/libltdl/ltdl.c:1645:1: enter_function: entry to 'lt_dlopenadvise'
libtool-2.5.4/libltdl/ltdl.c:1667:11: call_function: calling 'try_dlopen' from 'lt_dlopenadvise'
# 1040|     if (!line)
# 1041|       {
# 1042|->       LT__SETERROR (FILE_NOT_FOUND);
# 1043|         return 1;
# 1044|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def512]
libtool-2.5.4/libltdl/ltdl.c:1846:20: warning[-Wanalyzer-malloc-leak]: leak of 'opendir(dirnam)'
libtool-2.5.4/libltdl/ltdl.c:1836:3: branch_true: following 'true' branch...
libtool-2.5.4/libltdl/ltdl.c:1837:3: branch_true: following 'true' branch (when 'pargz' is non-NULL)...
libtool-2.5.4/libltdl/ltdl.c:1838:3: branch_true: ...to here
libtool-2.5.4/libltdl/ltdl.c:1838:3: branch_true: following 'true' branch (when 'pargz_len' is non-NULL)...
libtool-2.5.4/libltdl/ltdl.c:1839:3: branch_true: ...to here
libtool-2.5.4/libltdl/ltdl.c:1839:3: branch_true: following 'true' branch...
libtool-2.5.4/libltdl/ltdl.c:1841:10: branch_true: ...to here
libtool-2.5.4/libltdl/ltdl.c:1841:10: acquire_memory: allocated here
libtool-2.5.4/libltdl/ltdl.c:1842:6: branch_true: following 'true' branch...
libtool-2.5.4/libltdl/ltdl.c:1842:6: branch_true: ...to here
libtool-2.5.4/libltdl/ltdl.c:1846:20: throw: if 'readdir' throws an exception...
libtool-2.5.4/libltdl/ltdl.c:1846:20: danger: 'opendir(dirnam)' leaks here; was allocated at [(9)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/8)
# 1844|         struct dirent *dp	= 0;
# 1845|   
# 1846|->       while ((dp = readdir (dirp)))
# 1847|   	if (dp->d_name[0] != '.')
# 1848|   	  if (lt_argz_insertdir (pargz, pargz_len, dirnam, dp))

Scan Properties

analyzer-version-clippy1.92.0
analyzer-version-cppcheck2.19.1
analyzer-version-gcc16.0.0
analyzer-version-gcc-analyzer16.0.0
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-61.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namelibtool-2.5.4-9.fc44
store-results-to/tmp/tmpjzn97ekm/libtool-2.5.4-9.fc44.tar.xz
time-created2026-01-08 19:13:27
time-finished2026-01-08 19:15:25
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpjzn97ekm/libtool-2.5.4-9.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpjzn97ekm/libtool-2.5.4-9.fc44.src.rpm'
tool-versioncsmock-3.8.3.20251215.161544.g62de9a5-1.el9