Lines Matching +full:echo +full:- +full:active +full:- +full:ms

2 ## DO NOT EDIT - This file generated from ./build-aux/ltmain.in
3 ## by inline-source v2019-02-19.15
6 # Provide generalized library-building support services.
9 # Copyright (C) 1996-2019, 2021-2024 Free Software Foundation, Inc.
38 ## ------ ##
40 ## ------ ##
42 # Run './libtool --help' for help with using this script from the
46 ## ------------------------------- ##
48 ## ------------------------------- ##
52 # with bootstrap, so set those here where they can still be over-
59 ## -------------------------- ##
61 ## -------------------------- ##
63 # Much of our low-level functionality needs to be sourced from external
67 scriptversion=2019-02-19.15; # UTC
75 # Copyright (C) 2004-2019, 2021, 2023-2024 Bootstrap Authors
79 # <https://www.gnu.org/licenses/gpl-2.0.html>. You must apply one of
85 # <https://github.com/gnulib-modules/bootstrap/issues>
88 ## ------ ##
90 ## ------ ##
95 # . `echo "$0" | ${SED-sed} 's|[^/]*$||'`/build-aux/funclib.sh
101 ## -------------------- ##
103 ## -------------------- ##
109 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
112 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
114 alias -g '${1+"$@"}'='"$@"'
117 case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac
149 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
150 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
157 # --------------
159 # In some shells, an 'unset VAR' statement leaves a non-zero return
162 # value) or when 'set -e' is active (causing even a spurious abort of
177 ## ------------------------- ##
179 ## ------------------------- ##
183 # ----------------------
187 test -f "$1" && test -x "$1"
192 # --------------------------------------------
193 # Search for either a program that responds to --version with output
205 _G_PATH=${3-"$PATH"}
209 _G_save_IFS=$IFS; IFS=${PATH_SEPARATOR-:}
212 test -z "$_G_dir" && _G_dir=.
217 case `"$_G_path_prog" --version 2>&1` in
228 test -z "$func_path_progs_result" && {
229 echo "no acceptable sed could be found in \$PATH" >&2
237 # to search for them ourselves - except when the results are already set
242 test -z "$SED" && {
247 echo "$_G_sed_script" 2>/dev/null | sed 99q >conftest.sed
261 echo '' >> conftest.nl
262 "$_G_path_prog" -f conftest.sed <conftest.nl >conftest.out 2>/dev/null || break
265 if test "$_G_count" -gt "$_G_path_prog_max"; then
271 test 10 -lt "$_G_count" && break
273 rm -f conftest.in conftest.tmp conftest.nl conftest.out
277 rm -f conftest.sed
284 test -z "$GREP" && {
297 echo 'GREP' >> conftest.nl
298 … "$_G_path_prog" -e 'GREP$' -e '-(cannot match)-' <conftest.nl >conftest.out 2>/dev/null || break
301 if test "$_G_count" -gt "$_G_path_prog_max"; then
307 test 10 -lt "$_G_count" && break
309 rm -f conftest.in conftest.tmp conftest.nl conftest.out
317 ## ------------------------------- ##
319 ## ------------------------------- ##
326 : ${CP="cp -f"}
327 : ${ECHO="printf %s\n"}
328 : ${EGREP="$GREP -E"}
329 : ${FGREP="$GREP -F"}
330 : ${LN_S="ln -s"}
333 : ${MV="mv -f"}
334 : ${RM="rm -f"}
335 : ${SHELL="${CONFIG_SHELL-/bin/sh}"}
338 ## -------------------- ##
340 ## -------------------- ##
346 # metacharacters that are still active within double-quoted strings.
361 # Re-'\' parameter expansions in output of sed_double_quote_subst that
362 # were '\'-ed in input to the same. If an odd number of '\' preceded a
378 # ---------------------------
407 ## ----------------- ##
409 ## ----------------- ##
433 # debug_cmd='eval echo "${FUNCNAME[0]} $*" >&2' bash your-script-name
434 debug_cmd=${debug_cmd-":"}
441 # so that you can set exit_status to non-zero if you want to indicate
454 progname=`$ECHO "$progpath" |$SED "$sed_basename"`
458 [\\/]*|[A-Za-z]:\\*) ;;
460 progdir=`$ECHO "$progpath" |$SED "$sed_dirname"`
466 IFS=${PATH_SEPARATOR-:}
469 test -x "$progdir/$progname" && break
472 test -n "$progdir" || progdir=`pwd`
478 ## ----------------- ##
480 ## ----------------- ##
483 # below, and should be set appropriately depending on run-time para-
506 ## -------------------- ##
508 ## -------------------- ##
511 # particular resource (a file, or a non-empty configuration variable for
523 # -------------------
530 test -t 1 && {
534 test -n "${COLORTERM+set}" && : ${USE_ANSI_COLORS="1"}
544 test -n "`tput sgr0 2>/dev/null`" && {
546 test -n "`tput bold 2>/dev/null`" && tc_bold=`tput bold`
548 test -n "`tput smso 2>/dev/null`" && tc_standout=`tput smso`
549 test -n "`tput setaf 1 2>/dev/null`" && tc_red=`tput setaf 1`
550 test -n "`tput setaf 2 2>/dev/null`" && tc_green=`tput setaf 2`
551 test -n "`tput setaf 4 2>/dev/null`" && tc_blue=`tput setaf 4`
552 test -n "`tput setaf 5 2>/dev/null`" && tc_cyan=`tput setaf 5`
561 ## ----------------- ##
563 ## ----------------- ##
572 # ---------------------
593 test -z "$_G_HAVE_PLUSEQ_OP" \
618 # ----------------------------
641 # --------------------------
645 # func_append_uniq options " --another-option option-argument"
647 # will only append to $options if " --another-option option-argument "
654 eval _G_current_value='`$ECHO $'$1'`'
665 # ------------------
667 test -z "$_G_HAVE_ARITH_OP" \
689 # ------------------
704 _b='func_basename_result=`$ECHO "$1" |$SED "$sed_basename"`'
705 _d='func_dirname_result=`$ECHO "$1" |$SED "$sed_dirname"`
722 # -------------------------------------------
734 # --------------------------------------------------------
755 # ----------------
756 # Echo program name prefixed message.
767 $ECHO "$progname: $_G_line"
774 # --------------------
775 # Invoke $ECHO with all args, space-separated.
778 $ECHO "$*"
783 # ------------------------------
784 # Echo program name, followed by INFIX on the first line, with any
800 test -n "$_G_tc" && {
801 _G_esc_tc=`$ECHO "$_G_tc" | $SED "$sed_make_literal_regex"`
802 _G_indent=`$ECHO "$_G_indent" | $SED "s|$_G_esc_tc||g"`
805 …_G_indent="$progname: "`echo "$_G_indent" | $SED 's|.| |g'`" " ## exclude from sc_prohibit_nested…
811 $ECHO "$_G_prefix$tc_bold$_G_line$tc_reset" >&2
819 # -----------------
820 # Echo program name prefixed message to standard error.
832 # -----------------------
833 # Echo program name prefixed message to standard error, and exit.
844 # -----------------------------
855 # ---------------
858 test -z "$_G_HAVE_XSI_OPS" \
875 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
880 # func_mkdir_p DIRECTORY-PATH
881 # ---------------------------
882 # Make sure the entire path to DIRECTORY-PATH is available.
890 if test -n "$_G_directory_path" && test : != "$opt_dry_run"; then
892 # Protect directory names starting with '-'
894 -*) _G_directory_path=./$_G_directory_path ;;
898 while test ! -d "$_G_directory_path"; do
907 _G_directory_path=`$ECHO "$_G_directory_path" | $SED -e "$sed_dirname"`
909 _G_dir_list=`$ECHO "$_G_dir_list" | $SED 's|:*$||'`
922 test -d "$_G_directory_path" || \
929 # -------------------------
937 _G_template=${TMPDIR-/tmp}/${1-$progname}
940 # Return a directory name, but don't create it in dry-run mode
941 _G_tmpdir=$_G_template-$$
945 _G_tmpdir=`mktemp -d "$_G_template-XXXXXXXX" 2>/dev/null`
947 if test ! -d "$_G_tmpdir"; then
949 _G_tmpdir=$_G_template-${RANDOM-0}$$
957 # If we're not in dry-run mode, bomb out on failure
958 test -d "$_G_tmpdir" || \
962 $ECHO "$_G_tmpdir"
967 # ------------------------
968 # Remove doubled-up and trailing slashes, "." path components,
998 # we take advantage of case's first-match behaviour.
1020 func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \
1021 -e "$_G_removedotparts" -e "$_G_collapseslashes" -e "$_G_finalslash"`
1026 if test -z "$func_normal_abspath_result"; then
1031 func_normal_abspath_tcomponent=`$ECHO "$func_normal_abspath_tpath" | $SED \
1032 -e "$_G_pathcar"`
1033 func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \
1034 -e "$_G_pathcdr"`
1051 # Restore leading double-slash if one was found on entry.
1057 # --------------------
1058 # Echo program name prefixed message only when not in quiet mode.
1066 # fails when set -e is in force, so we need another command to
1073 # --------------------------------
1098 if test -z "$func_relative_path_result"; then
1106 if test -z "$func_relative_path_tlibdir"; then
1117 # Now calculate path; take care to avoid doubling-up slashes.
1121 if test -n "$func_stripname_result"; then
1126 if test -n "$func_relative_path_result"; then
1131 test -n "$func_relative_path_result" || func_relative_path_result=.
1138 # ----------------------------
1150 # one-time-loop (easy break)
1154 func_quote_portable_result=`$ECHO "$2" | $SED \
1155 -e "$sed_double_quote_subst" -e "$sed_double_backslash"`
1166 func_quote_portable_result=`$ECHO "$func_quote_portable_result" \
1205 # double-quote args containing shell metacharacters to delay
1218 # -----------------------
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 '~'
1226 printf -v func_quotefast_eval_result %q "$1"
1238 printf -v func_quotefast_eval_result %q "$1"
1253 # ------------------------
1258 # double-quoted (when needed), suitable for a subsequent eval
1260 # has all characters that are still active within double
1264 # ----------------
1266 # - escape shell special characters
1268 # - the same as 'eval'; but do not quote variable references
1270 # - request aesthetic output, i.e. '"a b"' instead of 'a\ b'. This might
1271 # be used later in func_quote to get output like: 'echo "a b"' instead
1272 # of 'echo a\ b'. This is slower than default on some shells.
1274 # - produce also $func_quote_arg_unquoted_result which does not contain
1275 # wrapping double-quotes.
1280 # ------------+-----------------------+-------------------
1285 # z="${x-$y}" | "z=\"\${x-\$y}\"" | z=\"\${x-\$y}\"
1290 # --------------+---------------------+--------------------
1291 # z="${x-$y}" | "z=\"${x-$y}\"" | z=\"${x-$y}\"
1308 # Faster quote-for-eval for some shells.
1317 # ------------------------
1325 while test 0 -lt $#; do
1327 if test -n "$func_quote_result"; then
1338 # ---------------------------------
1360 .*) func_stripname_result=`$ECHO "$3" | $SED -e "s%^$1%%" -e "s%\\\\$2\$%%"`;;
1361 *) func_stripname_result=`$ECHO "$3" | $SED -e "s%^$1%%" -e "s%$2\$%%"`;;
1368 # -----------------------------
1377 _G_fail_exp=${2-':'}
1385 if test 0 -ne "$_G_status"; then
1393 # ------------------------------------
1402 _G_fail_exp=${2-':'}
1414 if test 0 -ne "$_G_status"; then
1422 # ----------
1425 # not in the set a-zA-Z0-9_ are replaced with '_'. Further,
1432 [0-9]* | *[!a-zA-Z0-9_]*)
1433 func_tr_sh_result=`$ECHO "$1" | $SED -e 's/^\([0-9]\)/_\1/' -e 's/[^a-zA-Z0-9_]/_/g'`
1443 # -------------------
1444 # Echo program name prefixed message in verbose mode only.
1456 # -----------------------------
1457 # Echo program name prefixed warning message to standard error.
1469 # ----------------------------
1470 # Echo program name prefixed warning message to standard error. Warning
1494 # -----------------------
1495 # 'sort -V' is not generally available.
1497 # in that it treats 1.5 < 1.5.0, and treats 1.4.4a < 1.4-p3a
1507 | sort -t. -k 1,1n -k 2,2n -k 3,3n -k 4,4n -k 5,5n -k 6,6n -k 7,7n -k 8,8n -k 9,9n
1511 # ---------------------
1525 # mode: shell-script
1526 # sh-indentation: 2
1527 # eval: (add-hook 'before-save-hook 'time-stamp)
1528 # time-stamp-pattern: "10/scriptversion=%:y-%02m-%02d.%02H; # UTC"
1529 # time-stamp-time-zone: "UTC"
1539 # Copyright (C) 2010-2019, 2021, 2023-2024 Bootstrap Authors
1543 # <https://www.gnu.org/licenses/gpl-2.0.html>. You must apply one of
1549 # <https://github.com/gnulib-modules/bootstrap/issues>
1552 scriptversion=2019-02-19.15; # UTC
1555 ## ------ ##
1557 ## ------ ##
1567 # . relative/path/to/options-parser
1573 # In order for the '--version' option to work, you will need to have a
1577 # For '-h' and '--help' to work, you will also need a one line
1581 # The default options also support '--debug', which will turn on shell
1583 # use), and '--verbose' and the func_verbose function to allow your script
1585 # '--verbose'.
1592 ## -------------- ##
1594 ## -------------- ##
1600 # The usage line for option parsing errors and the start of '-h' and
1601 # '--help' output messages. You can embed shell variables for delayed
1603 # quote other shell meta-characters carefully to prevent them being
1607 # Short help message in response to '-h' and '--help'. Add to this or
1611 --debug enable verbose shell tracing
1612 -W, --warnings=CATEGORY
1614 -v, --verbose verbosely report processing
1615 --version print version information and exit
1616 -h, --help print short or long help message and exit
1619 # Additional text appended to 'usage_message' in response to '--help'.
1627 fatal_help="Try '\$progname --help' for more information."
1631 ## ------------------------- ##
1633 ## ------------------------- ##
1640 # -----------------------
1652 # ---------------------------------
1669 # ------------------------------------
1676 eval ${1}_hooks='`$ECHO "\$'$1'_hooks" |$SED "s| '$2'||"`'
1681 # ---------------------------------------------
1699 # ---------------------------------
1702 # than a whitespace-delimited list of legal shell function names, and
1703 # no effort is wasted trying to catch shell meta-characters or preserve
1728 ## --------------- ##
1730 ## --------------- ##
1752 # -s, --silent don'\''t print informational messages
1769 # while test $# -gt 0; do
1772 # --silent|-s) opt_silent=:
1775 # # Separate non-argument short options:
1776 # -s*) func_split_short_opt "$_G_opt"
1778 # "-$func_split_short_opt_arg" ${1+"$@"}
1803 # '--silent' and '--verbose' options are mutually exclusive."
1813 # ----------------------------
1825 # ---------------------
1848 # As we (func_options) are top-level options-parser function and
1858 # --------------------------
1879 # ---------------------------
1888 while test $# -gt 0; do
1897 # this if-branch). No need to quote it again.
1902 test $# -gt 0 || break
1905 # and thus we remove _G_opt from "$@" and need to re-quote.
1910 --debug|-x) debug_cmd='set -x'
1915 --no-warnings|--no-warning|--no-warn)
1916 set dummy --warnings none ${1+"$@"}
1920 --warnings|--warning|-W)
1949 --verbose|-v) opt_verbose=: ;;
1950 --version) func_version ;;
1951 -\?|-h) func_usage ;;
1952 --help) func_help ;;
1955 --*=*) func_split_equals "$_G_opt"
1962 -W*)
1969 # Separate non-argument short options:
1970 -\?*|-h*|-v*|-x*)
1973 "-$func_split_short_opt_arg" ${1+"$@"}
1977 --) _G_parse_options_requote=: ; break ;;
1978 -*) func_fatal_help "unrecognised option: '$_G_opt'" ;;
1999 # ------------------------------
2007 # Display all warnings if -W was not given.
2008 test -n "$opt_warning_types" || opt_warning_types=" $warning_categories"
2019 ## ----------------- ##
2021 ## ----------------- ##
2024 # hookable option parser framework in ascii-betical order.
2028 # ----------------------
2029 # Echo program name prefixed message to standard error, followed by
2035 eval \$ECHO \""Usage: $usage"\"
2036 eval \$ECHO \""$fatal_help"\"
2043 # ---------
2044 # Echo long help message to standard output and exit.
2050 $ECHO "$long_help_message"
2056 # ------------------------
2057 # Echo program name prefixed message to standard error and set global
2069 # ------------------------
2072 test -z "$_G_HAVE_XSI_OPS" \
2105 # -----------------------------
2124 func_split_short_opt_name=`expr "x$1" : 'x\(-.\)'`
2125 func_split_short_opt_arg=`expr "x$1" : 'x-.\(.*\)$'`
2131 # ----------
2132 # Echo short help message to standard output and exit.
2138 $ECHO "Run '$progname --help |${PAGER-more}' for full usage"
2144 # ------------------
2145 # Echo short help message to standard output.
2150 eval \$ECHO \""Usage: $usage"\"
2151 echo
2152 $SED -n 's|^# ||
2158 echo
2159 eval \$ECHO \""$usage_message"\"
2164 # ------------
2165 # Echo version message to standard output and exit.
2180 $SED -n '
2200 s|\((C)\)[ 0-9,-]*[ ,-]\([1-9][0-9]* \)|\1 \2|
2210 # mode: shell-script
2211 # sh-indentation: 2
2212 # eval: (add-hook 'before-save-hook 'time-stamp)
2213 # time-stamp-pattern: "30/scriptversion=%:y-%02m-%02d.%02H; # UTC"
2214 # time-stamp-time-zone: "UTC"
2221 # ------------
2222 # Echo version message to standard output and exit.
2245 # ----------------
2258 $ECHO "$progname${opt_mode+: $opt_mode}: $_G_line"
2264 ## ---------------- ##
2266 ## ---------------- ##
2271 usage='$progpath [OPTION]... [MODE-ARG]...'
2273 # Short help message in response to '-h'.
2275 --config show all configuration variables
2276 --debug enable verbose shell tracing
2277 -n, --dry-run display commands without modifying any files
2278 --features display basic configuration information
2279 --finish use operation '--mode=finish'
2280 --mode=MODE use operation mode MODE
2281 --no-finish don't update shared library cache
2282 --no-quiet, --no-silent print default informational messages
2283 --no-warnings equivalent to '-Wnone'
2284 --preserve-dup-deps don't remove duplicate dependency libraries
2285 --quiet, --silent don't print informational messages
2286 --reorder-cache=DIRS reorder shared library cache for preferred DIRS
2287 --tag=TAG use configuration variables from tag TAG
2288 -v, --verbose print more informational messages than default
2289 --version print version information
2290 -W, --warnings=CATEGORY report the warnings falling in CATEGORY [all]
2291 -h, --help, --help-all print short, long, or detailed help message
2294 # Additional text appended to 'usage_message' in response to '--help'.
2300 $ECHO "$long_help_message
2312 MODE-ARGS vary depending on the MODE. When passed as first option,
2313 '--mode=MODE' may be abbreviated as 'MODE' or a unique abbreviation of that.
2314 Try '$progname --help --mode=MODE' for a more detailed description of MODE.
2319 host-triplet: $host
2325 automake: `($AUTOMAKE --version) 2>/dev/null |$SED 1q`
2326 autoconf: `($AUTOCONF --version) 2>/dev/null |$SED 1q`
2328 Report bugs to <bug-libtool@gnu.org>.
2335 # func_lo2o OBJECT-NAME
2336 # ---------------------
2337 # Transform OBJECT-NAME from a '.lo' suffix to the platform specific
2352 # func_xform LIBOBJ-OR-SOURCE
2353 # ---------------------------
2354 # Transform LIBOBJ-OR-SOURCE from a '.o' or '.c' (or otherwise)
2355 # suffix to a '.lo' libtool-object suffix.
2364 func_lo2o_result=`$ECHO "$1" | $SED "$lo2o"`
2369 func_xform_result=`$ECHO "$1" | $SED 's|\.[^.]*$|.lo|'`
2375 # -------------------------------
2376 # Echo program name prefixed message to standard error, followed by
2387 # -----------
2399 … $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath"
2407 # -------------
2411 echo "host: $host"
2413 echo "enable shared libraries"
2415 echo "disable shared libraries"
2418 echo "enable static libraries"
2420 echo "disable static libraries"
2428 # -----------------------
2443 *[!-_A-Za-z0-9,/]*)
2458 # also don't use non-portable quotes within backquotes within
2460 extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"`
2471 # ------------------------
2478 if test -z "$macro_version"; then
2508 # -----------------------------
2531 # Shorthand for --mode=foo, only valid as the first argument
2534 shift; set dummy --mode clean ${1+"$@"}; shift
2537 shift; set dummy --mode compile ${1+"$@"}; shift
2540 shift; set dummy --mode execute ${1+"$@"}; shift
2543 shift; set dummy --mode finish ${1+"$@"}; shift
2546 shift; set dummy --mode install ${1+"$@"}; shift
2549 shift; set dummy --mode link ${1+"$@"}; shift
2552 shift; set dummy --mode uninstall ${1+"$@"}; shift
2569 # ---------------------------------
2579 while test $# -gt 0; do
2584 --dry-run|--dryrun|-n)
2588 --config) func_config ;;
2590 --dlopen|-dlopen)
2596 --preserve-dup-deps)
2599 --features) func_features ;;
2601 --finish) set dummy --mode finish ${1+"$@"}; shift ;;
2603 --help) opt_help=: ;;
2605 --help-all) opt_help=': help-all' ;;
2607 --mode) test $# = 0 && func_missing_arg $_G_opt && break
2621 --no-finish)
2626 --no-silent|--no-quiet)
2631 --no-warnings|--no-warning|--no-warn)
2636 --no-verbose)
2641 --reorder-cache)
2644 if test -n "$shared_lib_dirs"; then
2659 --silent|--quiet)
2665 --tag) test $# = 0 && func_missing_arg $_G_opt && break
2672 --verbose|-v) opt_quiet=false
2696 # -------------------
2709 # ---------------------------------
2714 # save first non-option argument
2715 if test 0 -lt $#; then
2720 # preserve --debug
2721 test : = "$debug_cmd" || func_append preserve_args " --debug"
2739 # Only execute mode is allowed to have -dlopen flags.
2740 if test -n "$opt_dlopen" && test execute != "$opt_mode"; then
2741 func_error "unrecognized option '-dlopen'"
2742 $ECHO "$help" 1>&2
2746 # Change the help message to a mode-specific one.
2748 help="Try '$progname --help --mode=$opt_mode' for more information."
2758 # Process options as early as possible so that --help and --version
2765 ## ----------- ##
2767 ## ----------- ##
2777 # will be execed at the end. This prevents here-documents from being
2804 test -f "$1" &&
2805 $SED -e 4q "$1" 2>/dev/null | func_generated_by_libtool_p
2818 if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then
2826 exec 0<&5 5<&-
2837 test -f "$1" &&
2877 # Execute tilde-delimited COMMANDS.
2879 # FAIL_CMD may read-access the current command in variable CMD!
2889 func_show_eval "$cmd" "${2-:}"
2898 # FILE even if both FILE and FILE.exe exist: automatic-append-.exe
2945 # if one wasn't chosen via the "--tag" command line option.
2953 if test -n "$available_tags" && test -z "$tagname"; then
2971 …eval "`$SED -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/…
2974 # Double-quote args containing other shell metacharacters.
2992 # was found and let the user know that the "--tag" command
2994 if test -z "$tagname"; then
2996 func_fatal_error "specify a tag with '--tag'"
3027 # $write_libobj - a libtool object file
3036 # Name of the non-PIC object
3063 if test -n "$1"; then
3064 # Unfortunately, winepath does not exit with a non-zero error code, so we
3068 # zero AND non-empty stdout, which explains the odd construction:
3069 func_convert_core_file_wine_to_w32_tmp=`winepath -w "$1" 2>/dev/null`
3070 if test "$?" -eq 0 && test -n "$func_convert_core_file_wine_to_w32_tmp"; then
3071 func_convert_core_file_wine_to_w32_result=`$ECHO "$func_convert_core_file_wine_to_w32_tmp" |
3072 $SED -e "$sed_naive_backslashify"`
3098 if test -n "$1"; then
3104 if test -n "$func_convert_core_file_wine_to_w32_result"; then
3105 if test -z "$func_convert_core_path_wine_to_w32_result"; then
3137 if test -n "$LT_CYGPATH" && test -f "$LT_CYGPATH"; then
3139 if test "$?" -ne 0; then
3145 func_error "LT_CYGPATH is empty or specifies non-existent file: '$LT_CYGPATH'"
3159 func_convert_core_msys_to_w32_result=`( cmd //c echo "$1" ) 2>/dev/null |
3160 $SED -e 's/[ ]*$//' -e "$sed_naive_backslashify"`
3173 if test -z "$2" && test -n "$1"; then
3192 if test -z "$4" && test -n "$3"; then
3200 func_to_host_path_result=`echo "$3" |
3201 $SED -e "$lt_replace_pathsep_chars"`
3233 converted_path=`$ECHO "$1" | $SED "s#$2#$3#g"`
3298 if test -n "$1"; then
3315 if test -n "$1"; then
3318 func_to_host_file_result=`cygpath -m "$1"`
3333 if test -n "$1"; then
3350 if test -n "$1"; then
3352 func_cygpath -u "$func_convert_core_msys_to_w32_result"
3369 if test -n "$1"; then
3372 func_cygpath -u "$func_convert_core_file_wine_to_w32_result"
3409 if test -z "$to_host_path_cmd"; then
3447 if test -n "$1"; then
3471 if test -n "$1"; then
3475 func_to_host_path_result=`cygpath -m -p "$func_to_host_path_tmp1"`
3492 if test -n "$1"; then
3514 if test -n "$1"; then
3519 func_cygpath -u -p "$func_convert_core_msys_to_w32_result"
3538 if test -n "$1"; then
3545 func_cygpath -u -p "$func_convert_core_path_wine_to_w32_result"
3562 func_dll_def_p_tmp=`$SED -n \
3563 -e 's/^[ ]*//' \
3564 -e '/^\(;.*\)*$/d' \
3565 -e 's/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p' \
3566 -e q \
3584 …get_search_directories=`PATH="$PATH:/sbin" ldconfig -r | $GREP "search directories" | $SED "s#.*se…
3600 if test -d "$dir"; then
3601 if test -n "$preferred_search_directories"; then
3612 PATH="$PATH:/sbin" ldconfig -U $save_search_directories
3613 PATH="$PATH:/sbin" ldconfig -m $preferred_search_directories $save_search_directories
3614 …get_search_directories=`PATH="$PATH:/sbin" ldconfig -r | $GREP "search directories" | $SED "s#.*se…
3618 $ECHO "Original: $save_search_directories"
3619 $ECHO "Reordered: $reordered_search_directories"
3623 func_error "--reorder-cache is not supported for host_os=$host_os."
3638 srcfile=$nonopt # always keep a non-empty value in "srcfile"
3662 # Accept any command-line options.
3664 -o)
3665 test -n "$libobj" && \
3666 func_fatal_error "you cannot specify '-o' more than once"
3671 -pie | -fpie | -fPIE)
3676 -shared | -static | -prefer-pic | -prefer-non-pic)
3681 -no-suppress)
3686 -Xcompiler)
3691 -Wc,*)
3692 func_stripname '-Wc,' '' "$arg"
3726 func_fatal_error "you must specify an argument for -Xcompile"
3729 func_fatal_error "you must specify a target with '-o'"
3733 test -z "$libobj" && {
3741 # If the user specifies -o file.o, it is replaced with file.lo
3763 -shared)
3770 -static)
3776 -prefer-pic)
3781 -prefer-non-pic)
3790 && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \
3797 test -z "$base_compile" && \
3814 # non-PIC code in shared libraries is not supported
3819 # not support -o with -c
3821 output_obj=`$ECHO "$srcfile" | $SED 's%^.*/%%; s%\.[^.]*$%%'`.$objext
3837 if test -f "$lockfile"; then
3838 $ECHO "\
3844 your compiler does not support '-c' and '-o' together. If you
3846 avoid parallel builds (make -j) in this platform, or get a better
3853 $ECHO "$srcfile" > "$lockfile"
3879 if test -z "$output_obj"; then
3881 func_append command " -o $lobj"
3885 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE'
3889 $ECHO "\
3898 your compiler does not support '-c' and '-o' together. If you
3900 avoid parallel builds (make -j) in this platform, or get a better
3908 if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
3919 # Only build a position-dependent object if we build old libraries.
3928 func_append command " -o $obj"
3938 $ECHO "\
3947 your compiler does not support '-c' and '-o' together. If you
3949 avoid parallel builds (make -j) in this platform, or get a better
3957 if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
3991 $ECHO \
3992 "Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
3997 (typically '/bin/rm'). RM-OPTIONS are options (such as '-f') to be passed
4005 $ECHO \
4006 "Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
4012 -o OUTPUT-FILE set the output file name to OUTPUT-FILE
4013 -no-suppress do not suppress compiler output for multiple passes
4014 -prefer-pic try to build PIC objects only
4015 -prefer-non-pic try to build non-PIC objects only
4016 -shared do not build a '.o' file suitable for static linking
4017 -static only build a '.o' file suitable for static linking
4018 -Wc,FLAG
4019 -Xcompiler FLAG pass FLAG directly to the compiler
4021 COMPILE-COMMAND is a command to be used in creating a 'standard' object file
4030 $ECHO \
4031 "Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]...
4037 -dlopen FILE add the directory containing FILE to the library path
4039 This mode sets the library path environment variable according to '-dlopen'
4050 $ECHO \
4051 "Usage: $progname [OPTION]... --mode=finish [LIBDIR]...
4058 the '--dry-run' option if you just want to see what would be executed."
4062 $ECHO \
4063 "Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND...
4067 INSTALL-COMMAND is the installation command. The first component should be
4070 The following components of INSTALL-COMMAND are treated specially:
4072 -inst-prefix-dir PREFIX-DIR Use PREFIX-DIR as a staging area for installation
4075 BSD-compatible install options are recognized)."
4079 $ECHO \
4080 "Usage: $progname [OPTION]... --mode=link LINK-COMMAND...
4085 LINK-COMMAND is a command using the C compiler that you would use to create
4088 The following components of LINK-COMMAND are treated specially:
4090 -all-static do not do any dynamic linking at all
4091 -avoid-version do not add a version suffix if possible
4092 -bindir BINDIR specify path to binaries directory (for systems where
4094 -dlopen FILE '-dlpreopen' FILE if it cannot be dlopened at runtime
4095 -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
4096 -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
4097 -export-symbols SYMFILE
4099 -export-symbols-regex REGEX
4101 -LLIBDIR search LIBDIR for required installed libraries
4102 -lNAME OUTPUT-FILE requires the installed library libNAME
4103 -module build a library that can dlopened
4104 -no-fast-install disable the fast-install mode
4105 -no-install link a not-installable executable
4106 -no-undefined declare that a library does not refer to external symbols
4107 -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
4108 -objectlist FILE use a list of object files found in FILE to specify objects
4109 -os2dllname NAME force a short DLL name on OS/2 (no effect on other OSes)
4110 -precious-files-regex REGEX
4112 -release RELEASE specify package release information
4113 -rpath LIBDIR the created library will eventually be installed in LIBDIR
4114 -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
4115 -shared only do dynamic linking of libtool libraries
4116 -shrext SUFFIX override the standard shared library file extension
4117 -static do not do any dynamic linking of uninstalled libtool libraries
4118 -static-libtool-libs
4120 -version-info CURRENT[:REVISION[:AGE]]
4122 -weak LIBNAME declare that the target provides the LIBNAME interface
4123 -Wc,FLAG
4124 -Xcompiler FLAG pass linker-specific FLAG directly to the compiler
4125 -Wa,FLAG
4126 -Xassembler FLAG pass linker-specific FLAG directly to the assembler
4127 -Wl,FLAG
4128 -Xlinker FLAG pass linker-specific FLAG directly to the linker
4129 -XCClinker FLAG pass link-specific FLAG to the compiler driver (CC)
4131 All other options (arguments beginning with '-') are ignored.
4137 If the OUTPUT-FILE ends in '.la', then a libtool library is created,
4138 only library objects ('.lo' files) may be specified, and '-rpath' is
4141 If OUTPUT-FILE ends in '.a' or '.lib', then a standard library is created
4144 If OUTPUT-FILE ends in '.lo' or '.$objext', then a reloadable object file
4149 $ECHO \
4150 "Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
4155 (typically '/bin/rm'). RM-OPTIONS are options (such as '-f') to be passed
4167 echo
4168 $ECHO "Try '$progname --help' for more information about other modes."
4171 # Now that we've collected a possible --mode arg, show help if necessary
4181 } | $SED -n '1p; 2,$s/^Usage:/ or: /p'
4185 echo
4197 s/^Usage:.*--mode=\([^ ]*\) .*/Description of \1 mode:/'
4203 # If option '--reorder-cache', reorder the shared library cache and exit.
4216 test -z "$cmd" && \
4219 # Handle -dlopen flags immediately.
4221 test -f "$file" \
4240 if test -z "$dlname"; then
4242 test -n "$library_names" && \
4243 func_warning "'$file' was not linked with '-export-dynamic'"
4250 if test -f "$dir/$objdir/$dlname"; then
4253 if test ! -f "$dir/$dlname"; then
4266 func_warning "'-dlopen' is ignored for non-libtool libraries and objects"
4273 test -n "$absdir" && dir=$absdir
4276 if eval "test -z \"\$$shlibpath_var\""; then
4292 -* | *.la | *.lo ) ;;
4313 if test -n "$shlibpath_var"; then
4314 eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\""
4315 echo "export $shlibpath_var"
4317 $ECHO "$cmd$args"
4320 if test -n "$shlibpath_var"; then
4354 if test -d "$opt"; then
4357 elif test -f "$opt"; then
4369 if test -n "$libs"; then
4370 if test -n "$lt_sysroot"; then
4371 sysroot_regex=`$ECHO "$lt_sysroot" | $SED "$sed_make_literal_regex"`
4380 echo "removing references to $lt_sysroot and '=' prefixes from $lib"
4385 $SED -e "$sysroot_cmd s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \
4386 > $tmpdir/tmp-la
4387 mv -f $tmpdir/tmp-la $lib
4393 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs" && $opt_finishing; then
4395 if test -n "$finish_cmds"; then
4400 if test -n "$finish_eval"; then
4412 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
4413 echo "----------------------------------------------------------------------"
4414 echo "Libraries have been installed in:"
4416 $ECHO " $libdir"
4419 echo
4420 echo "NOTE: finish_cmds were not executed during testing, so you must"
4421 echo "manually run ldconfig to add a given test directory, LIBDIR, to"
4422 echo "the search path for generated executables."
4424 echo
4425 echo "If you ever happen to want to link against installed libraries"
4426 echo "in a given directory, LIBDIR, you must either use libtool, and"
4427 echo "specify the full pathname of the library, or use the '-LLIBDIR'"
4428 echo "flag during linking and do at least one of the following:"
4429 if test -n "$shlibpath_var"; then
4430 echo " - add LIBDIR to the '$shlibpath_var' environment variable"
4431 echo " during execution"
4433 if test -n "$runpath_var"; then
4434 echo " - add LIBDIR to the '$runpath_var' environment variable"
4435 echo " during linking"
4437 if test -n "$hardcode_libdir_flag_spec"; then
4441 $ECHO " - use the '$flag' linker flag"
4443 if test -n "$admincmds"; then
4444 $ECHO " - have your system administrator run these commands:$admincmds"
4446 if test -f /etc/ld.so.conf; then
4447 echo " - have your system administrator add LIBDIR to '/etc/ld.so.conf'"
4449 echo
4451 echo "See any operating system documentation about shared libraries for"
4453 solaris2.[6789]|solaris2.1[0-9])
4454 echo "more information, such as the ld(1), crle(1) and ld.so(8) manual"
4455 echo "pages."
4458 echo "more information, such as the ld(1) and ld.so(8) manual pages."
4461 echo "----------------------------------------------------------------------"
4512 if test -n "$dest"; then
4519 -d) isdir=: ;;
4520 -f)
4525 -g | -m | -o)
4528 -s)
4529 stripme=" -s"
4532 -*)
4536 if test -n "$prev"; then
4537 if test X-m = "X$prev" && test -n "$install_override_mode"; then
4552 if test -n "$arg2"; then
4558 test -z "$install_prog" && \
4561 test -n "$prev" && \
4564 if test -n "$install_override_mode" && $no_mode; then
4567 func_append install_shared_prog " -m $func_quote_arg_result"
4571 if test -z "$files"; then
4572 if test -z "$dest"; then
4584 test -d "$dest" && isdir=:
4595 test "$#" -gt 1 && \
4599 [\\/]* | [A-Za-z]:[\\/]*) ;;
4659 if test -n "$relink_command"; then
4668 inst_prefix_dir=`$ECHO "X$s_destdir" | $Xsed -e "s%$destlibdir\$%%"`
4679 if test -n "$inst_prefix_dir"; then
4681 …relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_…
4683 relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%%"`
4693 if test -n "$1"; then
4698 test -n "$relink_command" && srcname=${realname}T
4720 if test -n "$tstripme" && test -n "$striplib"; then
4724 if test "$#" -gt 0; then
4726 # Try 'ln -sf' first, because the 'ln' binary might depend on
4727 # the symlink we replace! Solaris /bin/ln does not understand -f,
4728 # so we also need to try rm && ln -s.
4732 …&& func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $rea…
4741 # Install the pseudo-library for information purposes.
4748 test -n "$old_library" && func_append staticlibs " $dir/$old_library"
4755 if test -n "$destname"; then
4763 # Deduce the name of the destination old-style object file.
4779 test -n "$destfile" && \
4784 # Deduce the name of the old-style object file.
4794 if test -n "$destname"; then
4808 if test ! -f "$file"; then
4838 test -z "$generated_by_libtool_version" && \
4845 if test -f "$lib"; then
4848 libfile=$libdir/`$ECHO "$lib" | $SED 's%^.*/%%g'`
4849 if test -n "$libdir" && test ! -f "$libfile"; then
4859 if test no = "$fast_install" && test -n "$relink_command"; then
4867 relink_command=`$ECHO "$relink_command" | $SED 's%@OUTPUT@%'"$outputname"'%g'`
4886 file=`$ECHO "$file$stripped_ext" | $SED "s%\([^/]*\)$%$objdir/\1%"`
4909 $opt_dry_run || if test -n "$outputname"; then
4927 if test -n "$stripme" && test -n "$old_striplib"; then
4935 test -n "$future_libdirs" && \
4936 func_warning "remember to run '$progname --finish$future_libdirs'"
4938 if test -n "$current_libdirs"; then
4940 $opt_dry_run && current_libdirs=" -n$current_libdirs"
4941 exec_cmd='$SHELL "$progpath" $preserve_args --finish$current_libdirs'
4959 my_pic_p=${3-false}
4960 my_prefix=`$ECHO "$my_originator" | $SED 's%[^a-zA-Z0-9]%_%g'`
4963 if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then
4964 if test -n "$NM" && test -n "$global_symbol_pipe"; then
4971 if test -n "$my_dlsyms"; then
4983 $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\
4984 /* $my_dlsyms - symbol resolution table for '$my_outputname' dlsym emulation. */
4992 #pragma GCC diagnostic ignored \"-Wstrict-prototypes\"
4998 relocations are performed -- see ld's documentation on pseudo-relocs. */
5015 $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist"
5018 progfiles=`$ECHO "$objs$old_deplibs" | $SP2NL | $SED "$lo2o" | $NL2SP`
5025 if test -n "$exclude_expsyms"; then
5027 eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
5032 if test -n "$export_symbols_regex"; then
5034 eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
5040 if test -z "$export_symbols"; then
5044 … eval "$SED -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
5047 eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
5054 …eval "$SED -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_o…
5055 eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
5059 eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
5078 if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then
5080 dlprefile_dlname=`source "$curr_lafile" && echo "$dlname"`
5081 if test -n "$dlprefile_dlname"; then
5085 # no lafile. user explicitly requested -dlpreopen <import library>.
5091 if test -n "$dlprefile_dlbasename"; then
5092 eval '$ECHO ": $dlprefile_dlbasename" >> "$nlist"'
5095 eval '$ECHO ": $name " >> "$nlist"'
5099 i[3456]86-*-mingw32*)
5101 $SED -e '/I __imp/d' -e 's/I __nm_/D /;s/_nm__//' >> '$nlist'"
5105 $SED -e '/I __imp/d' -e 's/I __nm_/D /;s/__nm_//' >> '$nlist'"
5111 eval '$ECHO ": $name " >> "$nlist"'
5119 eval '$ECHO ": $name " >> "$nlist"'
5129 test -f "$nlist" || : > "$nlist"
5131 if test -n "$exclude_expsyms"; then
5132 $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
5137 if $GREP -v "^: " < "$nlist" |
5138 if sort -k 3 </dev/null >/dev/null 2>&1; then
5139 sort -k 3
5146 $GREP -v "^: " < "$nlist" > "$nlist"S
5149 if test -f "$nlist"S; then
5152 echo '/* NONE */' >> "$output_objdir/$my_dlsyms"
5156 if test -n "$global_symbol_to_import"; then
5160 echo >> "$output_objdir/$my_dlsyms" "\
5171 if test -s "$nlist"I; then
5172 echo >> "$output_objdir/$my_dlsyms" "\
5176 for (; symbol->name; ++symbol)
5178 …$SED 's/.*/ if (STREQ (symbol->name, \"&\")) symbol->address = (void *) \&&;/' < "$nlist"I >>…
5179 echo >> "$output_objdir/$my_dlsyms" "\
5183 echo >> "$output_objdir/$my_dlsyms" "\
5188 if test -s "$nlist"I; then
5189 echo >> "$output_objdir/$my_dlsyms" "\
5201 echo >> "$output_objdir/$my_dlsyms" "\
5220 *" -static "*) ;;
5224 # a FreeBSD bug that causes programs to crash when -lm is
5226 # pic_flag when linking with -static. The problem exists in
5228 *-*-freebsd2.*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
5229 pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;;
5230 *-*-hpux*)
5241 -pie | -fpie | -fPIE) ;;
5247 …func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable…
5256 if test -f "$output_objdir/$my_outputname.def"; then
5257 …compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $s…
5258 …finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def …
5260 compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"`
5261 finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"`
5265 compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"`
5266 finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"`
5280 compile_command=`$ECHO "$compile_command" | $SED "s% @SYMFILE@%%"`
5281 finalize_command=`$ECHO "$finalize_command" | $SED "s% @SYMFILE@%%"`
5287 # ARG is a GNU/binutils-style import library. Returns
5294 …file_result" | eval "$global_symbol_pipe" | $EGREP ' (_head_[A-Za-z0-9_]+_[ad]l*|[A-Za-z0-9_]+_[ad…
5295 test -n "$func_cygming_gnu_implib_tmp"
5300 # ARG is an MS-style import library. Returns
5308 test -n "$func_cygming_ms_implib_tmp"
5323 win32_fileres=`file -L $1 2>/dev/null`
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/nu…
5333 "MS dumpbin")
5344 win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" |
5345 $SED -n -e '
5366 *MS\ Windows\ PE\ Intel*)
5372 $ECHO "$win32_libid_type"
5377 # Platform-specific function to extract the
5388 sharedlib_from_linklib_result=`$DLLTOOL --identify-strict --identify "$1"`
5394 # platform-specific function to extract the name of the
5406 match_literal=`$ECHO "$1" | $SED "$sed_make_literal_regex"`
5407 $OBJDUMP -s --section "$1" "$2" 2>/dev/null |
5416 /:[ ]*file format pe[i]\{,1\}-/d
5424 $SED -n '
5445 # 0x302f exports -- but will fail for DLLs whose name actually
5450 $SED -e '/^\./d;/^.\./d;q'
5454 # Platform-specific function to extract the
5459 # does not support the --identify-strict option.
5472 # ms-generated import library
5496 'stat=$?; rm -f "$lockfile"; exit $stat'
5498 $opt_dry_run || rm -f "$lockfile"
5500 if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
5523 [\\/]* | [A-Za-z]:[\\/]*) my_xabs=$my_xlib ;;
5534 my_xlib_u=lt$extracted_serial-$my_xlib ;;
5544 *-darwin*)
5554 …darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true`
5555 if test -n "$darwin_arches"; then
5556 darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'`
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"…
5562 cd "unfat-$$/$darwin_base_archive-$darwin_arch"
5565 $RM "unfat-$$/$darwin_base_archive-$darwin_arch/$darwin_base_archive"
5568 …darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$sed_bas…
5572 darwin_files=`find unfat-$$ -name $darwin_file -print | sort | $NL2SP`
5573 $LIPO -create -output "$darwin_file" $darwin_files
5575 $RM -rf unfat-$$
5587 …my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | sort | $NL…
5606 # the $objdir directory. This is a cygwin/mingw/windows-specific
5610 func_emit_wrapper_arg1=${1-no}
5612 $ECHO "\
5615 # $output - temporary wrapper script for $objdir/$outputname
5625 # metacharacters that are still active within double-quoted strings.
5629 if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
5634 alias -g '\${1+\"\$@\"}'='\"\$@\"'
5637 case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
5642 # The HP-UX ksh and POSIX shell print the target directory to stdout
5654 # When we are sourced in execute mode, \$file and \$ECHO are already set.
5658 func_quote_arg pretty "$ECHO"
5660 $ECHO "\
5669 ECHO=$qECHO
5675 # windows platforms, and (c) all begin with the string "--lt-"
5679 # There are only two supported options: --lt-debug and
5680 # --lt-dump-script. There is, deliberately, no --lt-help.
5692 --lt-debug) lt_option_debug=1 ;;
5693 --lt-dump-script)
5694 lt_dump_D=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%/[^/]*$%%'\`
5696 lt_dump_F=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%^.*/%%'\`
5700 --lt-*)
5701 \$ECHO \"Unrecognized --lt- option: '\$lt_opt'\" 1>&2
5708 if test -n \"\$lt_option_debug\"; then
5709 echo \"$outputname:$output:\$LINENO: libtool wrapper (GNU $PACKAGE) $VERSION\" 1>&2
5713 # Used when --lt-debug. Prints its arguments to stdout
5720 \$ECHO \"$outputname:$output:\$LINENO: newargv[\$lt_dump_args_N]: \$lt_arg\"
5731 *-*-mingw* | *-*-windows* | *-*-os2* | *-cegcc*)
5732 $ECHO "\
5733 if test -n \"\$lt_option_debug\"; then
5734 \$ECHO \"$outputname:$output:\$LINENO: newargv[0]: \$progdir\\\\\$program\" 1>&2
5742 $ECHO "\
5743 if test -n \"\$lt_option_debug\"; then
5744 \$ECHO \"$outputname:$output:\$LINENO: newargv[0]: \$progdir/\$program\" 1>&2
5751 $ECHO "\
5752 \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2
5757 # Strips options in the --lt-* namespace from \$@ and
5762 *\\ --lt-*)
5766 --lt-*) ;;
5779 thisdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*$%%'\`
5783 file=\`ls -ld \"\$file\" | $SED -n 's/.*-> //p'\`
5784 while test -n \"\$file\"; do
5785 destdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*\$%%'\`
5790 [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
5795 file=\`\$ECHO \"\$file\" | $SED 's%^.*/%%'\`
5796 file=\`ls -ld \"\$thisdir/\$file\" | $SED -n 's/.*-> //p'\`
5809 *[\\\\/]$objdir ) thisdir=\`\$ECHO \"\$thisdir\" | $SED 's%[\\\\/][^\\\\/]*$%%'\` ;;
5816 test -n \"\$absdir\" && thisdir=\"\$absdir\"
5820 $ECHO "\
5821 program=lt-'$outputname'$exeext
5824 if test ! -f \"\$progdir/\$program\" ||
5825 { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | $SED 1q\`; \\
5828 file=\"\$\$-\$program\"
5830 if test ! -d \"\$progdir\"; then
5836 $ECHO "\
5839 if test -n \"\$relink_command\"; then
5842 \$ECHO \"\$relink_command_output\" >&2
5854 $ECHO "\
5860 $ECHO "\
5862 if test -f \"\$progdir/\$program\"; then"
5869 if test -n "$dllsearchpath"; then
5870 $ECHO "\
5877 …if test yes = "$shlibpath_overrides_runpath" && test -n "$shlibpath_var" && test -n "$temp_rpath";…
5878 $ECHO "\
5882 # Some systems cannot cope with colon-terminated $shlibpath_var
5884 $shlibpath_var=\`\$ECHO \"\$$shlibpath_var\" | $SED 's/::*\$//'\`
5890 $ECHO "\
5897 \$ECHO \"\$0: error: '\$progdir/\$program' does not exist\" 1>&2
5898 \$ECHO \"This script is just a wrapper for \$program.\" 1>&2
5899 \$ECHO \"See the $PACKAGE documentation for more information.\" 1>&2
5915 /* $cwrappersource - temporary wrapper executable for $objdir/$outputname
5953 /* declarations of non-ANSI functions */
6051 const char *program_name = "libtool-wrapper"; /* in case xstrdup fails */
6083 …if test yes = "$shlibpath_overrides_runpath" && test -n "$shlibpath_var" && test -n "$temp_rpath";…
6094 if test -n "$dllsearchpath"; then
6109 const char * TARGET_PROGRAM_NAME = "lt-$outputname"; /* hopefully, no .exe */
6120 #define LTWRAPPER_OPTION_PREFIX "--lt-"
6123 static const char *dumpscript_opt = LTWRAPPER_OPTION_PREFIX "dump-script";
6156 echo " setmode(1,_O_BINARY);"
6173 have already dealt with, above (including dump-script), then
6177 need to make LTWRAPPER_OPTION_PREFIX a configure-time option
6178 or a configure.ac-settable value.
6191 /* The GNU banner must be the first non-error debug message */
6221 /* target_name transforms -- use actual target program name; might have lt- prefix */
6247 /* do NOT want the lt- prefix here, so use actual_cwrapper_name */
6250 /* DO want the lt- prefix here if it exists, so use target_name */
6304 if (rval == -1)
6458 p_len = (size_t) (q - p);
6529 p = tmp_pathspec + strlen (tmp_pathspec) - 1;
6531 p--;
6576 str += len - patlen;
6690 /* some systems can't cope with a ':'-terminated path #' */
6692 while ((len > 0) && IS_PATH_SEPARATOR (new_value[len-1]))
6694 new_value[--len] = '\0';
6732 - Space and tab are interpreted as delimiters. They are not treated as
6734 - Unescaped double quotes are removed from the input. Their only effect is
6737 - Backslashes not followed by double quotes are not special.
6738 - But 2*n+1 backslashes followed by a double quote become
6740 \" -> "
6741 \\\" -> \"
6742 \\\\\" -> \\"
6806 for (j = backslashes + 1; j > 0; j--)
6818 for (j = backslashes; j > 0; j--)
6842 $SED -n -e '
6863 case `eval $file_magic_cmd \"\$1\" 2>/dev/null | $SED -e 10q` in
6878 *" -compat=g "*|*\ -std=c++[0-9][0-9]\ *|*" -library=stdcxx4 "*|*" -library=stlport4 "*)
6893 *-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-os2* | *-cegcc*)
6903 # -no-undefined on the libtool link line when we can be certain
6964 single_module=$wl-single_module
6967 # We need to know -static, to get the right output filenames.
6971 -shared)
6977 -all-static | -static | -static-libtool-libs)
6979 -all-static)
6980 if test yes = "$build_libtool_libs" && test -z "$link_static_flag"; then
6983 if test -n "$link_static_flag"; then
6988 -static)
6989 if test -z "$pic_flag" && test -n "$link_static_flag"; then
6994 -static-libtool-libs)
6995 if test -z "$pic_flag" && test -n "$link_static_flag"; then
7009 test -n "$old_archive_from_new_cmds" && build_old_libs=yes
7012 while test "$#" -gt 0; do
7020 if test -n "$prev"; then
7076 test -f "$arg" \
7088 *-*-darwin*)
7106 # '-mllvm $arg' options when doing the link step.
7111 if test -f "$arg"; then
7118 # A libtool-controlled object.
7128 if test -z "$pic_object" ||
7129 test -z "$non_pic_object" ||
7154 # CHECK ME: I think I busted this. -Ossama
7156 # Preload the old-style object.
7166 # Non-PIC object.
7171 # A standard non-PIC object
7173 if test -z "$pic_object" || test none = "$pic_object"; then
7183 # Only an error if not doing a dry-run.
7217 release=-$arg
7224 [\\/]* | [A-Za-z]:[\\/]*) ;;
7226 func_fatal_error "argument to -rpath is not absolute: $arg"
7254 func_append compiler_flags " -Xassembler $qarg"
7256 func_append compile_command " -Xassembler $qarg"
7257 func_append finalize_command " -Xassembler $qarg"
7289 fi # test -n "$prev"
7294 -all-static)
7295 if test -n "$link_static_flag"; then
7296 # See comment for -static flag below, for more details.
7303 -allow-undefined)
7305 func_fatal_error "'-allow-undefined' must not be used because it is the default"
7308 -avoid-version)
7313 -bindir)
7318 -dlopen)
7323 -dlpreopen)
7328 -export-dynamic)
7333 -export-symbols | -export-symbols-regex)
7334 if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
7335 func_fatal_error "more than one -exported-symbols argument is not allowed"
7337 if test X-export-symbols = "X$arg"; then
7345 -framework)
7350 -inst-prefix-dir)
7355 # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
7356 # so, if we see these flags be careful not to treat them like -L
7357 -L[A-Z][A-Z]*:*)
7359 no/*-*-irix* | /*-*-irix*)
7367 -L*)
7368 func_stripname "-L" '' "$arg"
7369 if test -z "$func_stripname_result"; then
7370 if test "$#" -gt 0; then
7371 func_fatal_error "require no space between '-L' and '$1'"
7373 func_fatal_error "need path for '-L' option"
7380 [\\/]* | [A-Za-z]:[\\/]*) ;;
7383 test -z "$absdir" && \
7389 *" -L$dir "* | *" $arg "*)
7395 [\\/]* | [A-Za-z]:[\\/]* | =*) func_append deplibs " $arg" ;;
7396 *) func_append deplibs " -L$dir" ;;
7402 *-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-os2* | *-cegcc*)
7403 testbindir=`$ECHO "$dir" | $SED 's*/lib$*/bin*'`
7419 -l*)
7420 if test X-lc = "X$arg" || test X-lm = "X$arg"; then
7422 *-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*)
7426 *-*-os2*)
7428 test X-lc = "X$arg" && continue
7430 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-midnightbsd*)
7432 test X-lc = "X$arg" && continue
7434 *-*-rhapsody* | *-*-darwin1.[012])
7439 *-*-sco3.2v5* | *-*-sco5v6*)
7441 test X-lc = "X$arg" && continue
7443 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
7445 test X-lc = "X$arg" && continue
7448 elif test X-lc_r = "X$arg"; then
7450 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-midnightbsd*)
7451 # Do not include libc_r directly, use -pthread flag.
7460 -mllvm)
7465 -module)
7470 # Tru64 UNIX uses -model [arg] to determine the layout of C++
7472 # Darwin uses the -arch flag to determine output architecture.
7473 # -q <option> for IBM XL C/C++ compiler.
7474 -model|-arch|-isysroot|--sysroot|-q)
7482 -pthread)
7494 -mt|-mthreads|-kthread|-Kthread|-pthreads|--thread-safe \
7495 |-threads|-fopenmp|-fopenmp=*|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
7506 -multi_module)
7507 single_module=$wl-multi_module
7511 -no-fast-install)
7516 -no-install)
7518 *-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*)
7521 func_warning "'-no-install' is ignored for $host"
7522 func_warning "assuming '-no-fast-install' instead"
7530 -no-undefined)
7535 -objectlist)
7540 -os2dllname)
7545 -o) prev=output ;;
7547 -precious-files-regex)
7552 -release)
7557 -rpath)
7562 -R)
7567 -R*)
7568 func_stripname '-R' '' "$arg"
7572 [\\/]* | [A-Za-z]:[\\/]*) ;;
7578 func_fatal_error "argument ($arg) to '-R' is not an absolute path: $dir"
7588 -shared)
7589 # The effects of -shared are defined in a previous loop.
7593 -shrext)
7598 -static | -static-libtool-libs)
7599 # The effects of -static are defined in a previous loop.
7600 # We used to do the same as -all-static on platforms that
7607 -thread-safe)
7612 -version-info)
7617 -version-number)
7623 -weak)
7628 -Wc,*)
7629 func_stripname '-Wc,' '' "$arg"
7644 -Wl,*)
7645 func_stripname '-Wl,' '' "$arg"
7661 -Xassembler)
7666 -Xcompiler)
7671 -Xlinker)
7676 -XCClinker)
7681 # -msg_* for osf cc
7682 -msg_*)
7688 # -64, -mips[0-9] enable 64-bit mode for the SGI compiler
7689 # -r[0-9][0-9]* specify processor for the SGI compiler
7690 # -xarch=*, -xtarget=* enable 64-bit mode for the Sun compiler
7691 # +DA*, +DD* enable 64-bit mode for the HP compiler
7692 # -q* compiler args for the IBM compiler
7693 # -m*, -t[45]*, -txscale* architecture-specific flags for GCC
7694 # -F/path path to uninstalled frameworks, gcc on darwin
7695 # -p, -pg, --coverage, -fprofile-* profiling flags for GCC
7696 # -fstack-protector* stack protector flags for GCC
7698 # -tp=* Portland pgcc target processor selection
7699 # --sysroot=* for sysroot support
7700 # -O*, -g*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
7701 # -specs=* GCC specs files
7702 # -stdlib=* select c++ std lib with clang
7703 # -fdiagnostics-color* simply affects output
7704 # -frecord-gcc-switches used to verify flags were respected
7705 # -fsanitize=* Clang/GCC memory and address sanitizer
7706 # -fno-sanitize* Clang/GCC memory and address sanitizer
7707 # -shared-libsan Link with shared sanitizer runtimes (Clang)
7708 # -static-libsan Link with static sanitizer runtimes (Clang)
7709 # -no-canonical-prefixes Do not expand any symbolic links
7710 # -fuse-ld=* Linker select flags for GCC
7711 # -static-* direct GCC to link specific libraries statically
7712 # -fcilkplus Cilk Plus language extension features for C/C++
7713 # -rtlib=* select c runtime lib with clang
7714 # --unwindlib=* select unwinder library with clang
7715 # -f{file|debug|macro|profile}-prefix-map=* needed for lto linking
7716 # -Wa,* Pass flags directly to the assembler
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=*| \
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=*)
7734 -Z*)
7736 # OS/2 uses -Zxxx to specify OS/2-specific options
7741 -Zlinker | -Zstack)
7754 -* | +*)
7765 # A libtool-controlled object.
7775 if test -z "$pic_object" ||
7776 test -z "$non_pic_object" ||
7801 # CHECK ME: I think I busted this. -Ossama
7803 # Preload the old-style object.
7813 # Non-PIC object.
7818 # A standard non-PIC object
7820 if test -z "$pic_object" || test none = "$pic_object"; then
7830 # Only an error if not doing a dry-run.
7855 # A libtool-controlled library.
7859 # This library was specified with -dlopen.
7863 # The library was specified with -dlpreopen.
7882 if test -n "$arg"; then
7883 if test -n "$rpath_arg"; then
7888 -Wl,-rpath,*)
7890 -Wl,-rpath)
7900 test -n "$prev" && \
7903 if test yes = "$export_dynamic" && test -n "$export_dynamic_flag_spec"; then
7915 if test -n "$shlibpath_var"; then
7917 eval shlib_search_path=\`\$ECHO \"\$$shlibpath_var\" \| \$SED \'s/:/ /g\'\`
7949 # that are linked more than once (e.g. -la -lb -la)
7981 notinst_deplibs= # not-installed libtool libraries
7982 notinst_path= # paths that contain not-installed libtool libraries
7991 func_fatal_help "libraries can '-dlopen' only libtool libraries: $file"
8010 # so that -L comes before libs that need it for instance...
8036 # Ignore non-libtool-libs
8066 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
8067 |-threads|-fopenmp|-fopenmp=*|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
8082 -l*)
8084 func_warning "'-l' is ignored for archives/objects"
8087 func_stripname '-l' '' "$deplib"
8098 if test -f "$lib"; then
8152 ;; # -l
8168 -L*)
8174 func_stripname '-L' '' "$deplib"
8189 func_stripname '-L' '' "$deplib"
8194 func_warning "'-L' is ignored for archives/objects"
8198 ;; # -L
8199 -R*)
8201 func_stripname '-R' '' "$deplib"
8225 # but linking other static libraries is non-portable.
8234 if eval "\$ECHO \"$deplib\"" 2>/dev/null | $SED 10q \
8291 $found || test -f "$lib" \
8318 # Convert "-framework foo" to "foo.ltframework"
8319 if test -n "$inherited_linker_flags"; then
8320 …tmp_inherited_linker_flags=`$ECHO "$inherited_linker_flags" | $SED 's/-framework \([^ $]*\)/\1.ltf…
8328 dependency_libs=`$ECHO " $dependency_libs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
8332 test -n "$dlopen" && func_append dlfiles " $dlopen"
8333 test -n "$dlpreopen" && func_append dlprefiles " $dlpreopen"
8339 if test -z "$libdir"; then
8340 if test -z "$old_library"; then
8365 if test -n "$old_library" &&
8374 if test -z "$linklib"; then
8378 # This library was specified with -dlopen.
8380 test -z "$libdir" \
8381 && func_fatal_error "cannot -dlopen a convenience library: '$lib'"
8382 if test -z "$dlname" ||
8399 [\\/]* | [A-Za-z]:[\\/]*) abs_ladir=$ladir ;;
8402 if test -z "$abs_ladir"; then
8414 if test ! -f "$lt_sysroot$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
8425 if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
8440 # This library was specified with -dlpreopen.
8442 if test -z "$libdir" && test prog = "$linkmode"; then
8443 func_fatal_error "only libraries may -dlpreopen a convenience library: '$lib'"
8446 # special handling for platforms with PE-DLLs.
8456 if test -n "$dlname"; then
8464 test -z "$libdir" && \
8471 if test -n "$old_library"; then
8475 test -z "$libdir" && \
8478 elif test -n "$dlname"; then
8487 if test -z "$libdir"; then
8506 if test no != "$link_all_deplibs" || test -z "$library_names" ||
8514 -L*) func_stripname '-L' '' "$deplib"
8538 if test -n "$library_names" &&
8541 test -z "$old_library"; }; then
8543 if test -n "$shlibpath_var" && test -z "$avoidtemprpath"; then
8555 # Skip directories that are in the system default run-time
8583 test -n "$library_names"; }; }; then
8594 if test -n "$library_names" &&
8595 { test no = "$use_static_libs" || test -z "$old_library"; }; then
8611 # Warn about portability, can't link against -module's on some
8620 if test -z "$dlopenmodule" && test yes = "$shouldnotlink" && test link = "$pass"; then
8621 echo
8632 # Skip directories that are in the system default run-time
8657 if test -n "$old_archive_from_expsyms_cmds"; then
8663 libname=`eval "\\$ECHO \"$libname_spec\""`
8665 if test -n "$dlname"; then
8667 elif test -n "$soname_spec"; then
8671 func_arith $current - $age
8673 versuffix=-$major
8686 newlib=libimp-$func_stripname_result.a
8689 if test -f "$output_objdir/$soname-def"; then :
8696 if test -f "$output_objdir/$newlib"; then :; else
8703 fi # test -n "$old_archive_from_expsyms_cmds"
8715 *-*-sco3.2v5.0.[024]*) add_dir=-L$dir ;;
8716 *-*-sysv4*uw2*) add_dir=-L$dir ;;
8717 *-*-emscripten*) add_dir=-L$dir ;;
8718 *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
8719 *-*-unixware7*) add_dir=-L$dir ;;
8720 *-*-darwin* )
8721 # if the lib is a (non-dlopened) module then we cannot
8723 if /usr/bin/file -L $add 2> /dev/null |
8727 if test -z "$old_library"; then
8733 elif test -n "$old_library"; then
8740 *-*-sunos*) add_shlibpath=$dir ;;
8742 add_dir=-L$dir
8743 add=-l$name
8746 add=-l$name
8756 add_dir=-L$absdir
8758 if test -n "$inst_prefix_dir"; then
8761 func_append add_dir " -L$inst_prefix_dir$libdir"
8765 add=-l$name
8768 add=-l$name
8780 if test -n "$add_shlibpath"; then
8787 test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
8788 test -n "$add" && compile_deplibs="$add $compile_deplibs"
8790 test -n "$add_dir" && deplibs="$add_dir $deplibs"
8791 test -n "$add" && deplibs="$add $deplibs"
8812 add_dir=-L$lt_sysroot$libdir
8813 add=-l$name
8819 add=-l$name
8821 if test -n "$inst_prefix_dir" &&
8822 test -f "$inst_prefix_dir$libdir/$linklib"; then
8829 add_dir=-L$lt_sysroot$libdir
8831 if test -n "$inst_prefix_dir"; then
8834 func_append add_dir " -L$inst_prefix_dir$libdir"
8838 add=-l$name
8842 test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
8843 test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
8845 test -n "$add_dir" && deplibs="$add_dir $deplibs"
8846 test -n "$add" && deplibs="$add $deplibs"
8854 test -n "$old_library" && linklib=$old_library
8858 compile_deplibs="-l$name -L$dir $compile_deplibs"
8859 finalize_deplibs="-l$name -L$dir $finalize_deplibs"
8876 func_warning "is linked with the -dlopen flag to resolve symbols at runtime."
8877 if test -z "$global_symbol_pipe"; then
8897 if test -n "$dependency_libs" &&
8901 # Extract -R from dependency_libs
8905 -R*) func_stripname '-R' '' "$libdir"
8925 -L*) func_stripname '-L' '' "$deplib"
8943 -L*) path=$deplib ;;
8951 [\\/]* | [A-Za-z]:[\\/]*) absdir=$dir ;;
8954 if test -z "$absdir"; then
8962 *-*-darwin*)
8964 eval deplibrary_names=`$SED -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
8965 if test -n "$deplibrary_names"; then
8969 if test -f "$absdir/$objdir/$depdepl"; then
8971 darwin_install_name=`$OTOOL -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
8972 if test -z "$darwin_install_name"; then
8973 … darwin_install_name=`$OTOOL64 -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
8975 func_append compiler_flags " $wl-dylib_file $wl$darwin_install_name:$depdepl"
8976 func_append linker_flags " -dylib_file $darwin_install_name:$depdepl"
8982 path=-L$absdir/$objdir
8986 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
8987 test -z "$libdir" && \
8992 path=-L$absdir
9013 …compiler_flags="$compiler_flags "`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltfra…
9055 -L*) new_libs="$deplib $new_libs" ;;
9056 -R*) ;;
9070 # using -Wl,-lname, so that libtool does not consider it
9072 # reasons, then --preserve-dup-deps should be used.
9089 -L*)
9106 case `$CC -V 2>&1 | $SED 5q` in
9111 func_append postdeps ' -library=Cstd -library=Crun'
9124 func_append postdeps ' -library=Cstd -library=Crun'
9141 if test -n "$i"; then
9156 if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then
9157 func_warning "'-dlopen' is ignored for archives"
9161 *\ -l* | *\ -L*)
9162 func_warning "'-l' and '-L' are ignored for archives" ;;
9165 test -n "$rpath" && \
9166 func_warning "'-rpath' is ignored for archives"
9168 test -n "$xrpath" && \
9169 func_warning "'-R' is ignored for archives"
9171 test -n "$vinfo" && \
9172 func_warning "'-version-info/-version-number' is ignored for archives"
9174 test -n "$release" && \
9175 func_warning "'-release' is ignored for archives"
9177 test -n "$export_symbols$export_symbols_regex" && \
9178 func_warning "'-export-symbols' is ignored for archives"
9212 if test -n "$objs"; then
9214 …func_fatal_error "cannot build libtool library '$output' from non-libtool objects on this host:$ob…
9216 …func_warning "Linking the shared library $output against the non-libtool objects $objs is not port…
9222 || func_warning "'-dlopen self' is ignored for libtool libraries"
9226 test 1 -lt "$#" \
9227 && func_warning "ignoring multiple '-rpath's for a libtool library"
9232 if test -z "$rpath"; then
9243 test -n "$vinfo" && \
9244 func_warning "'-version-info/-version-number' is ignored for convenience libraries"
9246 test -n "$release" && \
9247 func_warning "'-release' is ignored for convenience libraries"
9256 test -n "$7" && \
9257 func_fatal_help "too many parameters to '-version-info'"
9269 # There are really only two kinds -- those that
9277 darwin|freebsd-elf|linux|midnightbsd-elf|osf|qnx|windows|none)
9283 freebsd-aout|sco|sunos)
9309 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
9317 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
9325 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
9332 if test "$age" -gt "$current"; then
9347 func_arith $current - $age
9353 …xlcverstring="$wl-compatibility_version $wl$minor_current $wl-current_version $wl$minor_current.$r…
9354 verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
9358 …verstring="$wl-compatibility_version $wl$minor_current $wl-current_version $wl$minor_current.$revi…
9361 … verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
9366 freebsd-aout)
9371 freebsd-elf | midnightbsd-elf)
9372 func_arith $current - $age
9379 func_arith $current - $age
9381 func_arith $current - $age + 1
9393 while test 0 -ne "$loop"; do
9394 func_arith $revision - $loop
9396 func_arith $loop - 1
9407 func_arith $current - $age
9413 func_arith $current - $age
9420 while test 0 -ne "$loop"; do
9421 func_arith $current - $loop
9423 func_arith $loop - 1
9433 func_arith $current - $age
9449 # Use '-' rather than '.', since we only want one
9451 func_arith $current - $age
9453 versuffix=-$major
9462 if test -z "$vinfo" && test -n "$release"; then
9495 func_fatal_error "can't build $host shared library unless -no-undefined is specified"
9513 tempremovelist=`$ECHO "$output_objdir/*"`
9519 if test -n "$precious_files_regex"; then
9520 if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
9530 test -n "$removelist" && \
9539 oldobjs="$objs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.$libext$/d; $lo2o" | $NL2SP`
9544 # lib_search_path=`$ECHO "$lib_search_path " | $SED "s% $path % %g"`
9545 # deplibs=`$ECHO "$deplibs " | $SED "s% -L$path % %g"`
9546 # dependency_libs=`$ECHO "$dependency_libs " | $SED "s% -L$path % %g"`
9549 if test -n "$xrpath"; then
9554 func_append temp_xrpath " -R$func_replace_sysroot_result"
9586 if test -n "$rpath"; then
9588 …*-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*)
9591 *-*-rhapsody* | *-*-darwin1.[012])
9595 *-*-netbsd*)
9598 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-midnightbsd*)
9601 *-*-sco3.2v5* | *-*-sco5v6*)
9604 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
9610 func_append deplibs " -lc"
9623 # release should show up in the -l (ie -lgmp5) so we don't want to
9644 -l*)
9645 func_stripname -l '' "$a_deplib"
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`
9662 test yes = "$want_nocaseglob" && nocaseglob=`shopt -p nocaseglob`
9665 shopt -s nocaseglob
9666 potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
9669 potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
9673 if ls -lLd "$potent_lib" 2>/dev/null |
9674 $GREP " -> " >/dev/null; then
9683 while test -h "$potlib" 2>/dev/null; do
9684 potliblink=`ls -ld $potlib | $SED 's/.* -> //'`
9686 [\\/]* | [A-Za-z]:[\\/]*) potlib=$potliblink;;
9687 *) potlib=`$ECHO "$potlib" | $SED 's|[^/]*$||'`"$potliblink";;
9691 $SED -e 10q |
9700 if test -n "$a_deplib"; then
9707 if test -z "$potlib"; then
9716 # Add a -L argument.
9727 -l*)
9728 func_stripname -l '' "$a_deplib"
9738 if test -n "$a_deplib"; then
9739 libname=`eval "\\$ECHO \"$libname_spec\""`
9741 potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
9743 potlib=$potent_lib # see symlink-check above in file_magic test
9744 if eval "\$ECHO \"$potent_lib\"" 2>/dev/null | $SED 10q | \
9753 if test -n "$a_deplib"; then
9760 if test -z "$potlib"; then
9769 # Add a -L argument.
9777 tmp_deplibs=`$ECHO " $deplibs" | $SED 's/ -lc$//; s/ -[LR][^ ]*//g'`
9781 tmp_deplibs=`$ECHO " $tmp_deplibs" | $SED "s|$i||"`
9786 echo
9788 func_warning "Inter-library dependencies are not supported in this platform."
9790 func_warning "Inter-library dependencies are not known to be supported."
9792 func_warning "All declared inter-library dependencies are being dropped."
9805 *-*-rhapsody* | *-*-darwin1.[012])
9807 newdeplibs=`$ECHO " $newdeplibs" | $SED 's/ -lc / System.ltframework /'`
9813 func_warning "libtool could not satisfy all declared inter-library"
9816 func_warning "application is linked with the -dlopen flag."
9817 if test -z "$global_symbol_pipe"; then
9831 echo "*** The inter-library dependencies that have been dropped here will be"
9832 echo "*** automatically added whenever a program is linked with this library"
9833 echo "*** or is declared to -dlopen it."
9836 echo
9837 echo "*** Since this library must not contain undefined symbols,"
9838 echo "*** because either the platform does not support them or"
9839 echo "*** it was explicitly requested with -no-undefined,"
9840 echo "*** libtool will only create a static version of it."
9854 # Time to change all our "foo.ltframework" stuff back to "-framework foo"
9856 *-*-darwin*)
9857 newdeplibs=`$ECHO " $newdeplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
9858 …new_inherited_linker_flags=`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework…
9859 deplibs=`$ECHO " $deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
9868 *" -L$path/$objdir "*) ;;
9871 *" -L$path/$objdir "*)
9872 func_append new_libs " -L$path/$objdir" ;;
9879 -L*)
9890 # All the library-specific variables (install_libdir is set above).
9909 if test -n "$hardcode_libdir_flag_spec"; then
9910 if test -n "$hardcode_libdir_separator"; then
9913 if test -z "$hardcode_libdirs"; then
9929 elif test -n "$runpath_var"; then
9937 if test -n "$hardcode_libdir_separator" &&
9938 test -n "$hardcode_libdirs"; then
9942 if test -n "$runpath_var" && test -n "$perm_rpath"; then
9950 test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
9955 if test -n "$shlibpath"; then
9967 if test -n "$soname_spec"; then
9972 if test -z "$dlname"; then
9984 test -z "$pic_flag" && libobjs=`$ECHO "$libobjs" | $SP2NL | $SED "$lo2o" | $NL2SP`
9988 if test -n "$export_symbols" && test -n "$include_expsyms"; then
9997 if test -n "$export_symbols" && test -z "$export_symbols_regex"; then
10015 if test -z "$export_symbols"; then
10016 if test yes = "$always_export_symbols" || test -n "$export_symbols_regex"; then
10038 && { test "$len" -lt "$max_cmd_len" \
10039 || test "$max_cmd_len" -le -1; }
10043 elif test -n "$nm_file_list_spec"; then
10055 $ECHO "$func_to_tool_file_result"
10072 if test -n "$export_symbols_regex" && test : != "$skipped_export"; then
10073 func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
10079 if test -n "$export_symbols" && test -n "$include_expsyms"; then
10081 test -n "$orig_export_symbols" && tmp_export_symbols=$orig_export_symbols
10082 $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"'
10085 if test : != "$skipped_export" && test -n "$orig_export_symbols"; then
10093 …$opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $outp…
10096 $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
10110 if test -n "$convenience"; then
10111 if test -n "$whole_archive_flag_spec" &&
10113 test -z "$libobjs"; then
10118 if test -n "$whole_archive_flag_spec"; then
10132 if test yes = "$thread_safe" && test -n "$thread_safe_flag_spec"; then
10143 if test yes = "$module" && test -n "$module_cmds"; then
10144 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
10152 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
10164 test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
10179 if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
10194 if test -n "$save_libobjs" && test : != "$skipped_export" && test -n "$file_list_spec"; then
10208 $ECHO "$func_to_tool_file_result" >> $output
10213 elif test -n "$save_libobjs" && test : != "$skipped_export" && test yes = "$with_gnu_ld"; then
10216 echo 'INPUT (' > $output
10220 $ECHO "$func_to_tool_file_result" >> $output
10222 echo ')' >> $output
10227 if test -n "$save_libobjs"; then
10229 output=$output_objdir/$output_la-$k.$objext
10241 if test -z "$objlist" ||
10242 test "$len" -lt "$max_cmd_len"; then
10247 if test 1 -eq "$k"; then
10257 last_robj=$output_objdir/$output_la-$k.$objext
10260 output=$output_objdir/$output_la-$k.$objext
10270 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
10273 if test -n "$last_robj"; then
10282 ${skipped_export-false} && {
10288 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
10290 if test -n "$last_robj"; then
10295 test -n "$save_libobjs" &&
10321 if test -n "$export_symbols_regex" && ${skipped_export-false}; then
10322 func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
10327 ${skipped_export-false} && {
10328 if test -n "$export_symbols" && test -n "$include_expsyms"; then
10330 test -n "$orig_export_symbols" && tmp_export_symbols=$orig_export_symbols
10331 $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"'
10334 if test -n "$orig_export_symbols"; then
10342 …$opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $outp…
10345 … $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
10353 if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
10361 if test yes = "$module" && test -n "$module_cmds"; then
10362 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
10368 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
10376 if test -n "$delfiles"; then
10382 if test -n "$dlprefiles"; then
10419 if test -n "$convenience"; then
10420 if test -z "$whole_archive_flag_spec"; then
10435 # If -module or -export-dynamic was specified, set the dlname.
10444 if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then
10445 func_warning "'-dlopen' is ignored for objects"
10449 *\ -l* | *\ -L*)
10450 func_warning "'-l' and '-L' are ignored for objects" ;;
10453 test -n "$rpath" && \
10454 func_warning "'-rpath' is ignored for objects"
10456 test -n "$xrpath" && \
10457 func_warning "'-R' is ignored for objects"
10459 test -n "$vinfo" && \
10460 func_warning "'-version-info' is ignored for objects"
10462 test -n "$release" && \
10463 func_warning "'-release' is ignored for objects"
10467 test -n "$objs$old_deplibs" && \
10468 func_fatal_error "cannot build library object '$output' from non-libtool objects"
10484 # single-version convenience libraries. Whenever we create
10485 # different ones for PIC/non-PIC, this we'll have to duplicate
10489 # if reload_cmds runs $LD directly, get rid of -Wl from
10495 if test -n "$convenience"; then
10496 if test -n "$whole_archive_flag_spec"; then
10498 test -n "$wl" || tmp_whole_archive_flags=`$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'`
10512 # Create the old-style object.
10513 …reload_objs=$objs$old_deplibs' '`$ECHO "$libobjs" | $SP2NL | $SED "/\.$libext$/d; /\.lib$/d; $lo2o…
10519 if test -z "$libobj"; then
10520 if test -n "$gentop"; then
10528 if test -n "$gentop"; then
10534 # $show "echo timestamp > $libobj"
10535 # $opt_dry_run || eval "echo timestamp > $libobj" || exit $?
10539 if test -n "$pic_flag" || test default != "$pic_mode"; then
10546 if test -n "$gentop"; then
10558 test -n "$vinfo" && \
10559 func_warning "'-version-info' is ignored for programs"
10561 test -n "$release" && \
10562 func_warning "'-release' is ignored for programs"
10569 *-*-rhapsody* | *-*-darwin1.[012])
10571 compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's/ -lc / System.ltframework /'`
10572 finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's/ -lc / System.ltframework /'`
10577 *-*-darwin*)
10581 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
10583 func_append compile_command " $wl-bind_at_load"
10584 func_append finalize_command " $wl-bind_at_load"
10588 # Time to change all our "foo.ltframework" stuff back to "-framework foo"
10589 compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
10590 finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
10600 *" -L$path/$objdir "*) ;;
10603 *" -L$path/$objdir "*)
10604 func_append new_libs " -L$path/$objdir" ;;
10611 -L*)
10626 if test -n "$rpath$xrpath"; then
10629 # This is the magic to use -rpath.
10641 if test -n "$hardcode_libdir_flag_spec"; then
10642 if test -n "$hardcode_libdir_separator"; then
10643 if test -z "$hardcode_libdirs"; then
10659 elif test -n "$runpath_var"; then
10666 *-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-os2* | *-cegcc*)
10667 testbindir=`$ECHO "$libdir" | $SED -e 's*/lib$*/bin*'`
10682 if test -n "$hardcode_libdir_separator" &&
10683 test -n "$hardcode_libdirs"; then
10692 if test -n "$hardcode_libdir_flag_spec"; then
10693 if test -n "$hardcode_libdir_separator"; then
10694 if test -z "$hardcode_libdirs"; then
10710 elif test -n "$runpath_var"; then
10718 if test -n "$hardcode_libdir_separator" &&
10719 test -n "$hardcode_libdirs"; then
10725 if test -n "$libobjs" && test yes = "$build_old_libs"; then
10727 compile_command=`$ECHO "$compile_command" | $SP2NL | $SED "$lo2o" | $NL2SP`
10728 finalize_command=`$ECHO "$finalize_command" | $SP2NL | $SED "$lo2o" | $NL2SP`
10734 if test -n "$prelink_cmds"; then
10755 compile_command=`$ECHO "$compile_command" | $SED 's%@OUTPUT@%'"$output"'%g'`
10762 if test -n "$postlink_cmds"; then
10764 …postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUT…
10769 if test -f "$output_objdir/${outputname}S.$objext"; then
10776 if test -n "$compile_shlibpath$finalize_shlibpath"; then
10779 if test -n "$finalize_shlibpath"; then
10785 if test -n "$runpath_var"; then
10786 if test -n "$perm_rpath"; then
10794 if test -n "$finalize_perm_rpath"; then
10808 link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output"'%g'`
10814 if test -n "$postlink_cmds"; then
10816 …postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUT…
10834 …relink_command=`$ECHO "$compile_var$compile_command$compile_rpath" | $SED 's%@OUTPUT@%\$progdir/\$…
10847 link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
10850 $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname
10854 if test -n "$postlink_cmds"; then
10856 …stlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g…
10864 if test -n "$relink_command"; then
10867 if eval test -z \"\${$var+set}\"; then
10868 …relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relin…
10869 elif eval var_value=\$$var; test -z "$var_value"; then
10902 cwrappersource=$output_path/$objdir/lt-$output_name.c
10910 # because it contains $host paths and files. If cross-
10914 $LTCC $LTCFLAGS -o $cwrapper $cwrappersource
10925 $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result
10944 # See if we need to build an old-fashioned archive.
10960 $preload && test -f "$symfileobj" \
10966 if test -n "$addlibs"; then
10975 if test -n "$old_archive_from_new_cmds" && test yes = "$build_libtool_libs"; then
10980 if test -n "$dlprefiles"; then
10997 $ECHO "$func_basename_result"
10998 done | sort | sort -uc >/dev/null 2>&1); then
11001 echo "copying selected object files to avoid basename conflicts..."
11018 newobj=lt$counter-$objbase
11023 *) if test ! -f "$gentop/$newobj"; then break; fi ;;
11039 if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
11041 elif test -n "$archiver_list_spec"; then
11046 $ECHO "$func_to_tool_file_result"
11075 if test "$len" -lt "$max_cmd_len"; then
11083 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
11091 if test -z "$oldobjs"; then
11101 test -n "$generated" && \
11113 if eval test -z \"\${$var+set}\"; then
11114 …relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relin…
11115 elif eval var_value=\$$var; test -z "$var_value"; then
11124 …relink_command="($func_quote_result; $SHELL \"$progpath\" $preserve_args --mode=relink $libtool_ar…
11135 if test -z "$install_libdir"; then
11147 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result`
11148 test -z "$libdir" && \
11152 -L*)
11153 func_stripname -L '' "$deplib"
11155 func_append newdependency_libs " -L$func_replace_sysroot_result"
11157 -R*)
11158 func_stripname -R '' "$deplib"
11160 func_append newdependency_libs " -R$func_replace_sysroot_result"
11173 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
11174 test -z "$libdir" && \
11186 # Only pass preopened files to the pseudo-archive (for
11192 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
11193 test -z "$libdir" && \
11204 [\\/]* | [A-Za-z]:[\\/]*) abs=$lib ;;
11213 [\\/]* | [A-Za-z]:[\\/]*) abs=$lib ;;
11223 # systems that can't hard-code library paths into their executables
11226 # libtool variables, so we have to hard-code the OSs to which it
11233 # If a -bindir argument was supplied, place the dll there.
11234 if test -n "$bindir"; then
11243 $ECHO > $output "\
11244 # $outputname - a libtool library file
11276 # Should we warn about portability when linking against -modules?
11286 $ECHO >> $output "\
11322 -f) func_append RM " $arg"; rmforce=: ;;
11323 -*) func_append RM " $arg" ;;
11328 test -z "$RM" && \
11353 # Don't error if the file doesn't exist and rm -f was used.
11354 if { test -L "$file"; } >/dev/null 2>&1 ||
11355 { test -h "$file"; } >/dev/null 2>&1 ||
11356 test -f "$file"; then
11358 elif test -d "$file"; then
11377 test -n "$old_library" && func_append rmfiles " $odir/$old_library"
11383 *) test -n "$dlname" && func_append rmfiles " $odir/$dlname" ;;
11385 test -n "$libdir" && func_append rmfiles " $odir/$name $odir/${name}i"
11388 if test -n "$library_names"; then
11393 if test -n "$old_library"; then
11411 if test -n "$pic_object" && test none != "$pic_object"; then
11415 # Add non-PIC object to the list of files to remove.
11416 if test -n "$non_pic_object" && test none != "$non_pic_object"; then
11451 if test yes = "$fast_install" && test -n "$relink_command"; then
11452 func_append rmfiles " $odir/lt-$name"
11455 func_append rmfiles " $odir/lt-$noexename.c"
11466 if test -d "$dir"; then
11478 test -z "$opt_mode" && {
11483 test -z "$exec_cmd" && \
11486 if test -n "$exec_cmd"; then
11501 # time on that platform, so we default to a shared-only configuration.
11502 # If a disable-shared tag is given, we'll fallback to a static-only
11503 # configuration. But we'll never go from static-only to shared-only.
11505 # ### BEGIN LIBTOOL TAG CONFIG: disable-shared
11508 # ### END LIBTOOL TAG CONFIG: disable-shared
11510 # ### BEGIN LIBTOOL TAG CONFIG: disable-static
11511 build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
11512 # ### END LIBTOOL TAG CONFIG: disable-static
11515 # mode:shell-script
11516 # sh-indentation:2