Lines Matching +full:eye +full:- +full:term

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" && {
237 # to search for them ourselves - except when the results are already set
242 test -z "$SED" && {
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" && {
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"}
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
458 [\\/]*|[A-Za-z]:\\*) ;;
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 "
664 # func_arith TERM...
665 # ------------------
667 test -z "$_G_HAVE_ARITH_OP" \
689 # ------------------
722 # -------------------------------------------
734 # --------------------------------------------------------
755 # ----------------
774 # --------------------
775 # Invoke $ECHO with all args, space-separated.
783 # ------------------------------
800 test -n "$_G_tc" && {
819 # -----------------
832 # -----------------------
844 # -----------------------------
855 # ---------------
858 test -z "$_G_HAVE_XSI_OPS" \
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"`
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" || \
967 # ------------------------
968 # Remove doubled-up and trailing slashes, "." path components,
998 # we take advantage of case's first-match behaviour.
1021 -e "$_G_removedotparts" -e "$_G_collapseslashes" -e "$_G_finalslash"`
1026 if test -z "$func_normal_abspath_result"; then
1032 -e "$_G_pathcar"`
1034 -e "$_G_pathcdr"`
1051 # Restore leading double-slash if one was found on entry.
1057 # --------------------
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)
1155 -e "$sed_double_quote_subst" -e "$sed_double_backslash"`
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
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
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 # -------------------
1456 # -----------------------------
1469 # ----------------------------
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 # ------------------------------------
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 # ----------------------
2043 # ---------
2056 # ------------------------
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 # ----------
2138 $ECHO "Run '$progname --help |${PAGER-more}' for full usage"
2144 # ------------------
2152 $SED -n 's|^# ||
2164 # ------------
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 # ------------
2245 # ----------------
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'.
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.
2375 # -------------------------------
2387 # -----------
2399 … $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath"
2407 # -------------
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"
2746 # Only execute mode is allowed to have -dlopen flags.
2747 if test -n "$opt_dlopen" && test execute != "$opt_mode"; then
2748 func_error "unrecognized option '-dlopen'"
2753 # Change the help message to a mode-specific one.
2755 help="Try '$progname --help --mode=$opt_mode' for more information."
2765 # Process options as early as possible so that --help and --version
2772 ## ----------- ##
2774 ## ----------- ##
2784 # will be execed at the end. This prevents here-documents from being
2811 test -f "$1" &&
2812 $SED -e 4q "$1" 2>/dev/null | func_generated_by_libtool_p
2825 if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then
2833 exec 0<&5 5<&-
2844 test -f "$1" &&
2884 # Execute tilde-delimited COMMANDS.
2886 # FAIL_CMD may read-access the current command in variable CMD!
2896 func_show_eval "$cmd" "${2-:}"
2905 # FILE even if both FILE and FILE.exe exist: automatic-append-.exe
2952 # if one wasn't chosen via the "--tag" command line option.
2960 if test -n "$available_tags" && test -z "$tagname"; then
2978 …eval "`$SED -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/…
2981 # Double-quote args containing other shell metacharacters.
2999 # was found and let the user know that the "--tag" command
3001 if test -z "$tagname"; then
3003 func_fatal_error "specify a tag with '--tag'"
3034 # $write_libobj - a libtool object file
3043 # Name of the non-PIC object
3070 if test -n "$1"; then
3071 # Unfortunately, winepath does not exit with a non-zero error code, so we
3075 # zero AND non-empty stdout, which explains the odd construction:
3076 func_convert_core_file_wine_to_w32_tmp=`winepath -w "$1" 2>/dev/null`
3077 if test "$?" -eq 0 && test -n "$func_convert_core_file_wine_to_w32_tmp"; then
3079 $SED -e "$sed_naive_backslashify"`
3105 if test -n "$1"; then
3111 if test -n "$func_convert_core_file_wine_to_w32_result"; then
3112 if test -z "$func_convert_core_path_wine_to_w32_result"; then
3144 if test -n "$LT_CYGPATH" && test -f "$LT_CYGPATH"; then
3146 if test "$?" -ne 0; then
3152 func_error "LT_CYGPATH is empty or specifies non-existent file: '$LT_CYGPATH'"
3167 $SED -e 's/[ ]*$//' -e "$sed_naive_backslashify"`
3180 if test -z "$2" && test -n "$1"; then
3199 if test -z "$4" && test -n "$3"; then
3208 $SED -e "$lt_replace_pathsep_chars"`
3305 if test -n "$1"; then
3322 if test -n "$1"; then
3325 func_to_host_file_result=`cygpath -m "$1"`
3340 if test -n "$1"; then
3357 if test -n "$1"; then
3359 func_cygpath -u "$func_convert_core_msys_to_w32_result"
3376 if test -n "$1"; then
3379 func_cygpath -u "$func_convert_core_file_wine_to_w32_result"
3416 if test -z "$to_host_path_cmd"; then
3454 if test -n "$1"; then
3478 if test -n "$1"; then
3482 func_to_host_path_result=`cygpath -m -p "$func_to_host_path_tmp1"`
3499 if test -n "$1"; then
3521 if test -n "$1"; then
3526 func_cygpath -u -p "$func_convert_core_msys_to_w32_result"
3545 if test -n "$1"; then
3552 func_cygpath -u -p "$func_convert_core_path_wine_to_w32_result"
3569 func_dll_def_p_tmp=`$SED -n \
3570 -e 's/^[ ]*//' \
3571 -e '/^\(;.*\)*$/d' \
3572 -e 's/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p' \
3573 -e q \
3591 …get_search_directories=`PATH="$PATH:/sbin" ldconfig -r | $GREP "search directories" | $SED "s#.*se…
3607 if test -d "$dir"; then
3608 if test -n "$preferred_search_directories"; then
3619 PATH="$PATH:/sbin" ldconfig -U $save_search_directories
3620 PATH="$PATH:/sbin" ldconfig -m $preferred_search_directories $save_search_directories
3621 …get_search_directories=`PATH="$PATH:/sbin" ldconfig -r | $GREP "search directories" | $SED "s#.*se…
3630 func_error "--reorder-cache is not supported for host_os=$host_os."
3645 srcfile=$nonopt # always keep a non-empty value in "srcfile"
3669 # Accept any command-line options.
3671 -o)
3672 test -n "$libobj" && \
3673 func_fatal_error "you cannot specify '-o' more than once"
3678 -pie | -fpie | -fPIE)
3683 -shared | -static | -prefer-pic | -prefer-non-pic)
3688 -no-suppress)
3693 -Xcompiler)
3698 -Wc,*)
3699 func_stripname '-Wc,' '' "$arg"
3733 func_fatal_error "you must specify an argument for -Xcompile"
3736 func_fatal_error "you must specify a target with '-o'"
3740 test -z "$libobj" && {
3748 # If the user specifies -o file.o, it is replaced with file.lo
3770 -shared)
3777 -static)
3783 -prefer-pic)
3788 -prefer-non-pic)
3804 test -z "$base_compile" && \
3821 # non-PIC code in shared libraries is not supported
3826 # not support -o with -c
3844 if test -f "$lockfile"; then
3851 your compiler does not support '-c' and '-o' together. If you
3853 avoid parallel builds (make -j) in this platform, or get a better
3886 if test -z "$output_obj"; then
3888 func_append command " -o $lobj"
3892 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE'
3905 your compiler does not support '-c' and '-o' together. If you
3907 avoid parallel builds (make -j) in this platform, or get a better
3915 if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
3926 # Only build a position-dependent object if we build old libraries.
3935 func_append command " -o $obj"
3954 your compiler does not support '-c' and '-o' together. If you
3956 avoid parallel builds (make -j) in this platform, or get a better
3964 if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
3999 "Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
4004 (typically '/bin/rm'). RM-OPTIONS are options (such as '-f') to be passed
4013 "Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
4019 -o OUTPUT-FILE set the output file name to OUTPUT-FILE
4020 -no-suppress do not suppress compiler output for multiple passes
4021 -prefer-pic try to build PIC objects only
4022 -prefer-non-pic try to build non-PIC objects only
4023 -shared do not build a '.o' file suitable for static linking
4024 -static only build a '.o' file suitable for static linking
4025 -Wc,FLAG
4026 -Xcompiler FLAG pass FLAG directly to the compiler
4028 COMPILE-COMMAND is a command to be used in creating a 'standard' object file
4038 "Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]...
4044 -dlopen FILE add the directory containing FILE to the library path
4046 This mode sets the library path environment variable according to '-dlopen'
4058 "Usage: $progname [OPTION]... --mode=finish [LIBDIR]...
4065 the '--dry-run' option if you just want to see what would be executed."
4070 "Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND...
4074 INSTALL-COMMAND is the installation command. The first component should be
4077 The following components of INSTALL-COMMAND are treated specially:
4079 -inst-prefix-dir PREFIX-DIR Use PREFIX-DIR as a staging area for installation
4082 BSD-compatible install options are recognized)."
4087 "Usage: $progname [OPTION]... --mode=link LINK-COMMAND...
4092 LINK-COMMAND is a command using the C compiler that you would use to create
4095 The following components of LINK-COMMAND are treated specially:
4097 -all-static do not do any dynamic linking at all
4098 -avoid-version do not add a version suffix if possible
4099 -bindir BINDIR specify path to binaries directory (for systems where
4101 -dlopen FILE '-dlpreopen' FILE if it cannot be dlopened at runtime
4102 -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
4103 -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
4104 -export-symbols SYMFILE
4106 -export-symbols-regex REGEX
4108 -LLIBDIR search LIBDIR for required installed libraries
4109 -lNAME OUTPUT-FILE requires the installed library libNAME
4110 -module build a library that can dlopened
4111 -no-fast-install disable the fast-install mode
4112 -no-install link a not-installable executable
4113 -no-undefined declare that a library does not refer to external symbols
4114 -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
4115 -objectlist FILE use a list of object files found in FILE to specify objects
4116 -os2dllname NAME force a short DLL name on OS/2 (no effect on other OSes)
4117 -precious-files-regex REGEX
4119 -release RELEASE specify package release information
4120 -rpath LIBDIR the created library will eventually be installed in LIBDIR
4121 -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
4122 -shared only do dynamic linking of libtool libraries
4123 -shrext SUFFIX override the standard shared library file extension
4124 -static do not do any dynamic linking of uninstalled libtool libraries
4125 -static-libtool-libs
4127 -version-info CURRENT[:REVISION[:AGE]]
4129 -weak LIBNAME declare that the target provides the LIBNAME interface
4130 -Wc,FLAG
4131 -Xcompiler FLAG pass linker-specific FLAG directly to the compiler
4132 -Wa,FLAG
4133 -Xassembler FLAG pass linker-specific FLAG directly to the assembler
4134 -Wl,FLAG
4135 -Xlinker FLAG pass linker-specific FLAG directly to the linker
4136 -XCClinker FLAG pass link-specific FLAG to the compiler driver (CC)
4138 All other options (arguments beginning with '-') are ignored.
4144 If the OUTPUT-FILE ends in '.la', then a libtool library is created,
4145 only library objects ('.lo' files) may be specified, and '-rpath' is
4148 If OUTPUT-FILE ends in '.a' or '.lib', then a standard library is created
4151 If OUTPUT-FILE ends in '.lo' or '.$objext', then a reloadable object file
4157 "Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
4162 (typically '/bin/rm'). RM-OPTIONS are options (such as '-f') to be passed
4175 $ECHO "Try '$progname --help' for more information about other modes."
4178 # Now that we've collected a possible --mode arg, show help if necessary
4188 } | $SED -n '1p; 2,$s/^Usage:/ or: /p'
4204 s/^Usage:.*--mode=\([^ ]*\) .*/Description of \1 mode:/'
4210 # If option '--reorder-cache', reorder the shared library cache and exit.
4223 test -z "$cmd" && \
4226 # Handle -dlopen flags immediately.
4228 test -f "$file" \
4247 if test -z "$dlname"; then
4249 test -n "$library_names" && \
4250 func_warning "'$file' was not linked with '-export-dynamic'"
4257 if test -f "$dir/$objdir/$dlname"; then
4260 if test ! -f "$dir/$dlname"; then
4273 func_warning "'-dlopen' is ignored for non-libtool libraries and objects"
4280 test -n "$absdir" && dir=$absdir
4283 if eval "test -z \"\$$shlibpath_var\""; then
4299 -* | *.la | *.lo ) ;;
4320 if test -n "$shlibpath_var"; then
4327 if test -n "$shlibpath_var"; then
4361 if test -d "$opt"; then
4364 elif test -f "$opt"; then
4376 if test -n "$libs"; then
4377 if test -n "$lt_sysroot"; then
4392 $SED -e "$sysroot_cmd s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \
4393 > $tmpdir/tmp-la
4394 mv -f $tmpdir/tmp-la $lib
4400 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs" && $opt_finishing; then
4402 if test -n "$finish_cmds"; then
4407 if test -n "$finish_eval"; then
4419 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
4420 echo "----------------------------------------------------------------------"
4434 echo "specify the full pathname of the library, or use the '-LLIBDIR'"
4436 if test -n "$shlibpath_var"; then
4437 echo " - add LIBDIR to the '$shlibpath_var' environment variable"
4440 if test -n "$runpath_var"; then
4441 echo " - add LIBDIR to the '$runpath_var' environment variable"
4444 if test -n "$hardcode_libdir_flag_spec"; then
4448 $ECHO " - use the '$flag' linker flag"
4450 if test -n "$admincmds"; then
4451 $ECHO " - have your system administrator run these commands:$admincmds"
4453 if test -f /etc/ld.so.conf; then
4454 echo " - have your system administrator add LIBDIR to '/etc/ld.so.conf'"
4460 solaris2.[6789]|solaris2.1[0-9])
4468 echo "----------------------------------------------------------------------"
4519 if test -n "$dest"; then
4526 -d) isdir=: ;;
4527 -f)
4532 -g | -m | -o)
4535 -s)
4536 stripme=" -s"
4539 -*)
4543 if test -n "$prev"; then
4544 if test X-m = "X$prev" && test -n "$install_override_mode"; then
4559 if test -n "$arg2"; then
4565 test -z "$install_prog" && \
4568 test -n "$prev" && \
4571 if test -n "$install_override_mode" && $no_mode; then
4574 func_append install_shared_prog " -m $func_quote_arg_result"
4578 if test -z "$files"; then
4579 if test -z "$dest"; then
4591 test -d "$dest" && isdir=:
4602 test "$#" -gt 1 && \
4606 [\\/]* | [A-Za-z]:[\\/]*) ;;
4666 if test -n "$relink_command"; then
4675 inst_prefix_dir=`$ECHO "X$s_destdir" | $Xsed -e "s%$destlibdir\$%%"`
4682 # but it's something to keep an eye on.
4686 if test -n "$inst_prefix_dir"; then
4688 …relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_…
4700 if test -n "$1"; then
4705 test -n "$relink_command" && srcname=${realname}T
4727 if test -n "$tstripme" && test -n "$striplib"; then
4731 if test "$#" -gt 0; then
4733 # Try 'ln -sf' first, because the 'ln' binary might depend on
4734 # the symlink we replace! Solaris /bin/ln does not understand -f,
4735 # so we also need to try rm && ln -s.
4739 …&& func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $rea…
4748 # Install the pseudo-library for information purposes.
4755 test -n "$old_library" && func_append staticlibs " $dir/$old_library"
4762 if test -n "$destname"; then
4770 # Deduce the name of the destination old-style object file.
4786 test -n "$destfile" && \
4791 # Deduce the name of the old-style object file.
4801 if test -n "$destname"; then
4815 if test ! -f "$file"; then
4845 test -z "$generated_by_libtool_version" && \
4852 if test -f "$lib"; then
4856 if test -n "$libdir" && test ! -f "$libfile"; then
4866 if test no = "$fast_install" && test -n "$relink_command"; then
4916 $opt_dry_run || if test -n "$outputname"; then
4934 if test -n "$stripme" && test -n "$old_striplib"; then
4942 test -n "$future_libdirs" && \
4943 func_warning "remember to run '$progname --finish$future_libdirs'"
4945 if test -n "$current_libdirs"; then
4947 $opt_dry_run && current_libdirs=" -n$current_libdirs"
4948 exec_cmd='$SHELL "$progpath" $preserve_args --finish$current_libdirs'
4966 my_pic_p=${3-false}
4967 my_prefix=`$ECHO "$my_originator" | $SED 's%[^a-zA-Z0-9]%_%g'`
4970 if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then
4971 if test -n "$NM" && test -n "$global_symbol_pipe"; then
4978 if test -n "$my_dlsyms"; then
4991 /* $my_dlsyms - symbol resolution table for '$my_outputname' dlsym emulation. */
4999 #pragma GCC diagnostic ignored \"-Wstrict-prototypes\"
5005 relocations are performed -- see ld's documentation on pseudo-relocs. */
5032 if test -n "$exclude_expsyms"; then
5034 eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
5039 if test -n "$export_symbols_regex"; then
5041 eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
5047 if test -z "$export_symbols"; then
5051 … eval "$SED -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
5061 …eval "$SED -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_o…
5062 eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
5085 if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then
5088 if test -n "$dlprefile_dlname"; then
5092 # no lafile. user explicitly requested -dlpreopen <import library>.
5098 if test -n "$dlprefile_dlbasename"; then
5106 i[3456]86-*-mingw32*)
5108 $SED -e '/I __imp/d' -e 's/I __nm_/D /;s/_nm__//' >> '$nlist'"
5112 $SED -e '/I __imp/d' -e 's/I __nm_/D /;s/__nm_//' >> '$nlist'"
5136 test -f "$nlist" || : > "$nlist"
5138 if test -n "$exclude_expsyms"; then
5139 $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
5144 if $GREP -v "^: " < "$nlist" |
5145 if sort -k 3 </dev/null >/dev/null 2>&1; then
5146 sort -k 3
5153 $GREP -v "^: " < "$nlist" > "$nlist"S
5156 if test -f "$nlist"S; then
5163 if test -n "$global_symbol_to_import"; then
5178 if test -s "$nlist"I; then
5183 for (; symbol->name; ++symbol)
5185 …$SED 's/.*/ if (STREQ (symbol->name, \"&\")) symbol->address = (void *) \&&;/' < "$nlist"I >>…
5195 if test -s "$nlist"I; then
5227 *" -static "*) ;;
5231 # a FreeBSD bug that causes programs to crash when -lm is
5233 # pic_flag when linking with -static. The problem exists in
5235 *-*-freebsd2.*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
5236 pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;;
5237 *-*-hpux*)
5248 -pie | -fpie | -fPIE) ;;
5254 …func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable…
5263 if test -f "$output_objdir/$my_outputname.def"; then
5294 # ARG is a GNU/binutils-style import library. Returns
5301 …file_result" | eval "$global_symbol_pipe" | $EGREP ' (_head_[A-Za-z0-9_]+_[ad]l*|[A-Za-z0-9_]+_[ad…
5302 test -n "$func_cygming_gnu_implib_tmp"
5307 # ARG is an MS-style import library. Returns
5315 test -n "$func_cygming_ms_implib_tmp"
5330 win32_fileres=`file -L $1 2>/dev/null`
5337 if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
5338 …$EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)' >/dev/nu…
5351 win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" |
5352 $SED -n -e '
5384 # Platform-specific function to extract the
5395 sharedlib_from_linklib_result=`$DLLTOOL --identify-strict --identify "$1"`
5401 # platform-specific function to extract the name of the
5414 $OBJDUMP -s --section "$1" "$2" 2>/dev/null |
5423 /:[ ]*file format pe[i]\{,1\}-/d
5431 $SED -n '
5452 # 0x302f exports -- but will fail for DLLs whose name actually
5457 $SED -e '/^\./d;/^.\./d;q'
5461 # Platform-specific function to extract the
5466 # does not support the --identify-strict option.
5479 # ms-generated import library
5503 'stat=$?; rm -f "$lockfile"; exit $stat'
5505 $opt_dry_run || rm -f "$lockfile"
5507 if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
5530 [\\/]* | [A-Za-z]:[\\/]*) my_xabs=$my_xlib ;;
5541 my_xlib_u=lt$extracted_serial-$my_xlib ;;
5551 *-darwin*)
5561 …darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true`
5562 if test -n "$darwin_arches"; then
5563 darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'`
5567 func_mkdir_p "unfat-$$/$darwin_base_archive-$darwin_arch"
5568 …$LIPO -thin $darwin_arch -output "unfat-$$/$darwin_base_archive-$darwin_arch/$darwin_base_archive"…
5569 cd "unfat-$$/$darwin_base_archive-$darwin_arch"
5572 $RM "unfat-$$/$darwin_base_archive-$darwin_arch/$darwin_base_archive"
5575 …darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$sed_bas…
5579 darwin_files=`find unfat-$$ -name $darwin_file -print | sort | $NL2SP`
5580 $LIPO -create -output "$darwin_file" $darwin_files
5582 $RM -rf unfat-$$
5594 …my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | sort | $NL…
5613 # the $objdir directory. This is a cygwin/mingw/windows-specific
5617 func_emit_wrapper_arg1=${1-no}
5622 # $output - temporary wrapper script for $objdir/$outputname
5632 # metacharacters that are still active within double-quoted strings.
5636 if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
5641 alias -g '\${1+\"\$@\"}'='\"\$@\"'
5644 case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
5649 # The HP-UX ksh and POSIX shell print the target directory to stdout
5682 # windows platforms, and (c) all begin with the string "--lt-"
5686 # There are only two supported options: --lt-debug and
5687 # --lt-dump-script. There is, deliberately, no --lt-help.
5699 --lt-debug) lt_option_debug=1 ;;
5700 --lt-dump-script)
5701 lt_dump_D=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%/[^/]*$%%'\`
5703 lt_dump_F=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%^.*/%%'\`
5707 --lt-*)
5708 \$ECHO \"Unrecognized --lt- option: '\$lt_opt'\" 1>&2
5715 if test -n \"\$lt_option_debug\"; then
5720 # Used when --lt-debug. Prints its arguments to stdout
5738 *-*-mingw* | *-*-windows* | *-*-os2* | *-cegcc*)
5740 if test -n \"\$lt_option_debug\"; then
5750 if test -n \"\$lt_option_debug\"; then
5764 # Strips options in the --lt-* namespace from \$@ and
5769 *\\ --lt-*)
5773 --lt-*) ;;
5790 file=\`ls -ld \"\$file\" | $SED -n 's/.*-> //p'\`
5791 while test -n \"\$file\"; do
5797 [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
5803 file=\`ls -ld \"\$thisdir/\$file\" | $SED -n 's/.*-> //p'\`
5823 test -n \"\$absdir\" && thisdir=\"\$absdir\"
5828 program=lt-'$outputname'$exeext
5831 if test ! -f \"\$progdir/\$program\" ||
5832 { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | $SED 1q\`; \\
5835 file=\"\$\$-\$program\"
5837 if test ! -d \"\$progdir\"; then
5846 if test -n \"\$relink_command\"; then
5869 if test -f \"\$progdir/\$program\"; then"
5876 if test -n "$dllsearchpath"; then
5884 …if test yes = "$shlibpath_overrides_runpath" && test -n "$shlibpath_var" && test -n "$temp_rpath";…
5889 # Some systems cannot cope with colon-terminated $shlibpath_var
5922 /* $cwrappersource - temporary wrapper executable for $objdir/$outputname
5960 /* declarations of non-ANSI functions */
6058 const char *program_name = "libtool-wrapper"; /* in case xstrdup fails */
6090 …if test yes = "$shlibpath_overrides_runpath" && test -n "$shlibpath_var" && test -n "$temp_rpath";…
6101 if test -n "$dllsearchpath"; then
6116 const char * TARGET_PROGRAM_NAME = "lt-$outputname"; /* hopefully, no .exe */
6127 #define LTWRAPPER_OPTION_PREFIX "--lt-"
6130 static const char *dumpscript_opt = LTWRAPPER_OPTION_PREFIX "dump-script";
6180 have already dealt with, above (including dump-script), then
6184 need to make LTWRAPPER_OPTION_PREFIX a configure-time option
6185 or a configure.ac-settable value.
6198 /* The GNU banner must be the first non-error debug message */
6228 /* target_name transforms -- use actual target program name; might have lt- prefix */
6254 /* do NOT want the lt- prefix here, so use actual_cwrapper_name */
6257 /* DO want the lt- prefix here if it exists, so use target_name */
6311 if (rval == -1)
6465 p_len = (size_t) (q - p);
6536 p = tmp_pathspec + strlen (tmp_pathspec) - 1;
6538 p--;
6583 str += len - patlen;
6697 /* some systems can't cope with a ':'-terminated path #' */
6699 while ((len > 0) && IS_PATH_SEPARATOR (new_value[len-1]))
6701 new_value[--len] = '\0';
6739 - Space and tab are interpreted as delimiters. They are not treated as
6741 - Unescaped double quotes are removed from the input. Their only effect is
6744 - Backslashes not followed by double quotes are not special.
6745 - But 2*n+1 backslashes followed by a double quote become
6747 \" -> "
6748 \\\" -> \"
6749 \\\\\" -> \\"
6813 for (j = backslashes + 1; j > 0; j--)
6825 for (j = backslashes; j > 0; j--)
6849 $SED -n -e '
6870 case `eval $file_magic_cmd \"\$1\" 2>/dev/null | $SED -e 10q` in
6885 *" -compat=g "*|*\ -std=c++[0-9][0-9]\ *|*" -library=stdcxx4 "*|*" -library=stlport4 "*)
6900 *-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-os2* | *-cegcc*)
6910 # -no-undefined on the libtool link line when we can be certain
6971 single_module=$wl-single_module
6974 # We need to know -static, to get the right output filenames.
6978 -shared)
6984 -all-static | -static | -static-libtool-libs)
6986 -all-static)
6987 if test yes = "$build_libtool_libs" && test -z "$link_static_flag"; then
6990 if test -n "$link_static_flag"; then
6995 -static)
6996 if test -z "$pic_flag" && test -n "$link_static_flag"; then
7001 -static-libtool-libs)
7002 if test -z "$pic_flag" && test -n "$link_static_flag"; then
7016 test -n "$old_archive_from_new_cmds" && build_old_libs=yes
7019 while test "$#" -gt 0; do
7027 if test -n "$prev"; then
7083 test -f "$arg" \
7095 *-*-darwin*)
7113 # '-mllvm $arg' options when doing the link step.
7118 if test -f "$arg"; then
7125 # A libtool-controlled object.
7135 if test -z "$pic_object" ||
7136 test -z "$non_pic_object" ||
7161 # CHECK ME: I think I busted this. -Ossama
7163 # Preload the old-style object.
7173 # Non-PIC object.
7178 # A standard non-PIC object
7180 if test -z "$pic_object" || test none = "$pic_object"; then
7190 # Only an error if not doing a dry-run.
7224 release=-$arg
7231 [\\/]* | [A-Za-z]:[\\/]*) ;;
7233 func_fatal_error "argument to -rpath is not absolute: $arg"
7261 func_append compiler_flags " -Xassembler $qarg"
7263 func_append compile_command " -Xassembler $qarg"
7264 func_append finalize_command " -Xassembler $qarg"
7296 fi # test -n "$prev"
7301 -all-static)
7302 if test -n "$link_static_flag"; then
7303 # See comment for -static flag below, for more details.
7310 -allow-undefined)
7312 func_fatal_error "'-allow-undefined' must not be used because it is the default"
7315 -avoid-version)
7320 -bindir)
7325 -dlopen)
7330 -dlpreopen)
7335 -export-dynamic)
7340 -export-symbols | -export-symbols-regex)
7341 if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
7342 func_fatal_error "more than one -exported-symbols argument is not allowed"
7344 if test X-export-symbols = "X$arg"; then
7352 -framework)
7357 -inst-prefix-dir)
7362 # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
7363 # so, if we see these flags be careful not to treat them like -L
7364 -L[A-Z][A-Z]*:*)
7366 no/*-*-irix* | /*-*-irix*)
7374 -L*)
7375 func_stripname "-L" '' "$arg"
7376 if test -z "$func_stripname_result"; then
7377 if test "$#" -gt 0; then
7378 func_fatal_error "require no space between '-L' and '$1'"
7380 func_fatal_error "need path for '-L' option"
7387 [\\/]* | [A-Za-z]:[\\/]*) ;;
7390 test -z "$absdir" && \
7396 *" -L$dir "* | *" $arg "*)
7402 [\\/]* | [A-Za-z]:[\\/]* | =*) func_append deplibs " $arg" ;;
7403 *) func_append deplibs " -L$dir" ;;
7409 *-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-os2* | *-cegcc*)
7426 -l*)
7427 if test X-lc = "X$arg" || test X-lm = "X$arg"; then
7429 *-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*)
7433 *-*-os2*)
7435 test X-lc = "X$arg" && continue
7437 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-midnightbsd*)
7439 test X-lc = "X$arg" && continue
7441 *-*-rhapsody* | *-*-darwin1.[012])
7446 *-*-sco3.2v5* | *-*-sco5v6*)
7448 test X-lc = "X$arg" && continue
7450 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
7452 test X-lc = "X$arg" && continue
7455 elif test X-lc_r = "X$arg"; then
7457 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-midnightbsd*)
7458 # Do not include libc_r directly, use -pthread flag.
7467 -mllvm)
7472 -module)
7477 # Tru64 UNIX uses -model [arg] to determine the layout of C++
7479 # Darwin uses the -arch flag to determine output architecture.
7480 # -q <option> for IBM XL C/C++ compiler.
7481 -model|-arch|-isysroot|--sysroot|-q)
7489 -pthread)
7501 -mt|-mthreads|-kthread|-Kthread|-pthreads|--thread-safe \
7502 |-threads|-fopenmp|-fopenmp=*|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
7513 -multi_module)
7514 single_module=$wl-multi_module
7518 -no-fast-install)
7523 -no-install)
7525 *-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*)
7528 func_warning "'-no-install' is ignored for $host"
7529 func_warning "assuming '-no-fast-install' instead"
7537 -no-undefined)
7542 -objectlist)
7547 -os2dllname)
7552 -o) prev=output ;;
7554 -precious-files-regex)
7559 -release)
7564 -rpath)
7569 -R)
7574 -R*)
7575 func_stripname '-R' '' "$arg"
7579 [\\/]* | [A-Za-z]:[\\/]*) ;;
7585 func_fatal_error "argument ($arg) to '-R' is not an absolute path: $dir"
7595 -shared)
7596 # The effects of -shared are defined in a previous loop.
7600 -shrext)
7605 -static | -static-libtool-libs)
7606 # The effects of -static are defined in a previous loop.
7607 # We used to do the same as -all-static on platforms that
7614 -thread-safe)
7619 -version-info)
7624 -version-number)
7630 -weak)
7635 -Wc,*)
7636 func_stripname '-Wc,' '' "$arg"
7651 -Wl,*)
7652 func_stripname '-Wl,' '' "$arg"
7668 -Xassembler)
7673 -Xcompiler)
7678 -Xlinker)
7683 -XCClinker)
7688 # -msg_* for osf cc
7689 -msg_*)
7695 # -64, -mips[0-9] enable 64-bit mode for the SGI compiler
7696 # -r[0-9][0-9]* specify processor for the SGI compiler
7697 # -xarch=*, -xtarget=* enable 64-bit mode for the Sun compiler
7698 # +DA*, +DD* enable 64-bit mode for the HP compiler
7699 # -q* compiler args for the IBM compiler
7700 # -m*, -t[45]*, -txscale* architecture-specific flags for GCC
7701 # -F/path path to uninstalled frameworks, gcc on darwin
7702 # -p, -pg, --coverage, -fprofile-* profiling flags for GCC
7703 # -fstack-protector* stack protector flags for GCC
7705 # -tp=* Portland pgcc target processor selection
7706 # --sysroot=* for sysroot support
7707 # -O*, -g*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
7708 # -specs=* GCC specs files
7709 # -stdlib=* select c++ std lib with clang
7710 # -fdiagnostics-color* simply affects output
7711 # -frecord-gcc-switches used to verify flags were respected
7712 # -fsanitize=* Clang/GCC memory and address sanitizer
7713 # -fno-sanitize* Clang/GCC memory and address sanitizer
7714 # -shared-libsan Link with shared sanitizer runtimes (Clang)
7715 # -static-libsan Link with static sanitizer runtimes (Clang)
7716 # -no-canonical-prefixes Do not expand any symbolic links
7717 # -fuse-ld=* Linker select flags for GCC
7718 # -static-* direct GCC to link specific libraries statically
7719 # -fcilkplus Cilk Plus language extension features for C/C++
7720 # -rtlib=* select c runtime lib with clang
7721 # --unwindlib=* select unwinder library with clang
7722 # -f{file|debug|macro|profile}-prefix-map=* needed for lto linking
7723 # -Wa,* Pass flags directly to the assembler
7724 # -Werror, -Werror=* Report (specified) warnings as errors
7725 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
7726 -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
7727 -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-no-canonical-prefixes| \
7728 -stdlib=*|-rtlib=*|--unwindlib=*| \
7729 -specs=*|-fsanitize=*|-fno-sanitize*|-shared-libsan|-static-libsan| \
7730 -ffile-prefix-map=*|-fdebug-prefix-map=*|-fmacro-prefix-map=*|-fprofile-prefix-map=*| \
7731 -fdiagnostics-color*|-frecord-gcc-switches| \
7732 -fuse-ld=*|-static-*|-fcilkplus|-Wa,*|-Werror|-Werror=*)
7741 -Z*)
7743 # OS/2 uses -Zxxx to specify OS/2-specific options
7748 -Zlinker | -Zstack)
7761 -* | +*)
7772 # A libtool-controlled object.
7782 if test -z "$pic_object" ||
7783 test -z "$non_pic_object" ||
7808 # CHECK ME: I think I busted this. -Ossama
7810 # Preload the old-style object.
7820 # Non-PIC object.
7825 # A standard non-PIC object
7827 if test -z "$pic_object" || test none = "$pic_object"; then
7837 # Only an error if not doing a dry-run.
7862 # A libtool-controlled library.
7866 # This library was specified with -dlopen.
7870 # The library was specified with -dlpreopen.
7889 if test -n "$arg"; then
7890 if test -n "$rpath_arg"; then
7895 -Wl,-rpath,*)
7897 -Wl,-rpath)
7907 test -n "$prev" && \
7910 if test yes = "$export_dynamic" && test -n "$export_dynamic_flag_spec"; then
7922 if test -n "$shlibpath_var"; then
7956 # that are linked more than once (e.g. -la -lb -la)
7988 notinst_deplibs= # not-installed libtool libraries
7989 notinst_path= # paths that contain not-installed libtool libraries
7998 func_fatal_help "libraries can '-dlopen' only libtool libraries: $file"
8017 # so that -L comes before libs that need it for instance...
8043 # Ignore non-libtool-libs
8073 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
8074 |-threads|-fopenmp|-fopenmp=*|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
8089 -l*)
8091 func_warning "'-l' is ignored for archives/objects"
8094 func_stripname '-l' '' "$deplib"
8105 if test -f "$lib"; then
8159 ;; # -l
8175 -L*)
8181 func_stripname '-L' '' "$deplib"
8196 func_stripname '-L' '' "$deplib"
8201 func_warning "'-L' is ignored for archives/objects"
8205 ;; # -L
8206 -R*)
8208 func_stripname '-R' '' "$deplib"
8232 # but linking other static libraries is non-portable.
8298 $found || test -f "$lib" \
8325 # Convert "-framework foo" to "foo.ltframework"
8326 if test -n "$inherited_linker_flags"; then
8327 …tmp_inherited_linker_flags=`$ECHO "$inherited_linker_flags" | $SED 's/-framework \([^ $]*\)/\1.ltf…
8335 dependency_libs=`$ECHO " $dependency_libs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
8339 test -n "$dlopen" && func_append dlfiles " $dlopen"
8340 test -n "$dlpreopen" && func_append dlprefiles " $dlpreopen"
8346 if test -z "$libdir"; then
8347 if test -z "$old_library"; then
8372 if test -n "$old_library" &&
8381 if test -z "$linklib"; then
8385 # This library was specified with -dlopen.
8387 test -z "$libdir" \
8388 && func_fatal_error "cannot -dlopen a convenience library: '$lib'"
8389 if test -z "$dlname" ||
8406 [\\/]* | [A-Za-z]:[\\/]*) abs_ladir=$ladir ;;
8409 if test -z "$abs_ladir"; then
8421 if test ! -f "$lt_sysroot$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
8432 if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
8447 # This library was specified with -dlpreopen.
8449 if test -z "$libdir" && test prog = "$linkmode"; then
8450 func_fatal_error "only libraries may -dlpreopen a convenience library: '$lib'"
8453 # special handling for platforms with PE-DLLs.
8463 if test -n "$dlname"; then
8471 test -z "$libdir" && \
8478 if test -n "$old_library"; then
8482 test -z "$libdir" && \
8485 elif test -n "$dlname"; then
8494 if test -z "$libdir"; then
8513 if test no != "$link_all_deplibs" || test -z "$library_names" ||
8521 -L*) func_stripname '-L' '' "$deplib"
8545 if test -n "$library_names" &&
8548 test -z "$old_library"; }; then
8550 if test -n "$shlibpath_var" && test -z "$avoidtemprpath"; then
8562 # Skip directories that are in the system default run-time
8590 test -n "$library_names"; }; }; then
8601 if test -n "$library_names" &&
8602 { test no = "$use_static_libs" || test -z "$old_library"; }; then
8618 # Warn about portability, can't link against -module's on some
8627 if test -z "$dlopenmodule" && test yes = "$shouldnotlink" && test link = "$pass"; then
8639 # Skip directories that are in the system default run-time
8664 if test -n "$old_archive_from_expsyms_cmds"; then
8672 if test -n "$dlname"; then
8674 elif test -n "$soname_spec"; then
8678 func_arith $current - $age
8680 versuffix=-$major
8693 newlib=libimp-$func_stripname_result.a
8696 if test -f "$output_objdir/$soname-def"; then :
8703 if test -f "$output_objdir/$newlib"; then :; else
8710 fi # test -n "$old_archive_from_expsyms_cmds"
8722 *-*-sco3.2v5.0.[024]*) add_dir=-L$dir ;;
8723 *-*-sysv4*uw2*) add_dir=-L$dir ;;
8724 *-*-emscripten*) add_dir=-L$dir ;;
8725 *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
8726 *-*-unixware7*) add_dir=-L$dir ;;
8727 *-*-darwin* )
8728 # if the lib is a (non-dlopened) module then we cannot
8730 if /usr/bin/file -L $add 2> /dev/null |
8734 if test -z "$old_library"; then
8740 elif test -n "$old_library"; then
8747 *-*-sunos*) add_shlibpath=$dir ;;
8749 add_dir=-L$dir
8750 add=-l$name
8753 add=-l$name
8763 add_dir=-L$absdir
8765 if test -n "$inst_prefix_dir"; then
8768 func_append add_dir " -L$inst_prefix_dir$libdir"
8772 add=-l$name
8775 add=-l$name
8787 if test -n "$add_shlibpath"; then
8794 test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
8795 test -n "$add" && compile_deplibs="$add $compile_deplibs"
8797 test -n "$add_dir" && deplibs="$add_dir $deplibs"
8798 test -n "$add" && deplibs="$add $deplibs"
8819 add_dir=-L$lt_sysroot$libdir
8820 add=-l$name
8826 add=-l$name
8828 if test -n "$inst_prefix_dir" &&
8829 test -f "$inst_prefix_dir$libdir/$linklib"; then
8836 add_dir=-L$lt_sysroot$libdir
8838 if test -n "$inst_prefix_dir"; then
8841 func_append add_dir " -L$inst_prefix_dir$libdir"
8845 add=-l$name
8849 test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
8850 test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
8852 test -n "$add_dir" && deplibs="$add_dir $deplibs"
8853 test -n "$add" && deplibs="$add $deplibs"
8861 test -n "$old_library" && linklib=$old_library
8865 compile_deplibs="-l$name -L$dir $compile_deplibs"
8866 finalize_deplibs="-l$name -L$dir $finalize_deplibs"
8883 func_warning "is linked with the -dlopen flag to resolve symbols at runtime."
8884 if test -z "$global_symbol_pipe"; then
8904 if test -n "$dependency_libs" &&
8908 # Extract -R from dependency_libs
8912 -R*) func_stripname '-R' '' "$libdir"
8932 -L*) func_stripname '-L' '' "$deplib"
8950 -L*) path=$deplib ;;
8958 [\\/]* | [A-Za-z]:[\\/]*) absdir=$dir ;;
8961 if test -z "$absdir"; then
8969 *-*-darwin*)
8971 eval deplibrary_names=`$SED -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
8972 if test -n "$deplibrary_names"; then
8976 if test -f "$absdir/$objdir/$depdepl"; then
8978 darwin_install_name=`$OTOOL -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
8979 if test -z "$darwin_install_name"; then
8980 … darwin_install_name=`$OTOOL64 -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
8982 func_append compiler_flags " $wl-dylib_file $wl$darwin_install_name:$depdepl"
8983 func_append linker_flags " -dylib_file $darwin_install_name:$depdepl"
8989 path=-L$absdir/$objdir
8993 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
8994 test -z "$libdir" && \
8999 path=-L$absdir
9020 …r_flags "`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
9062 -L*) new_libs="$deplib $new_libs" ;;
9063 -R*) ;;
9077 # using -Wl,-lname, so that libtool does not consider it
9079 # reasons, then --preserve-dup-deps should be used.
9096 -L*)
9113 case `$CC -V 2>&1 | $SED 5q` in
9118 func_append postdeps ' -library=Cstd -library=Crun'
9131 func_append postdeps ' -library=Cstd -library=Crun'
9148 if test -n "$i"; then
9163 if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then
9164 func_warning "'-dlopen' is ignored for archives"
9168 *\ -l* | *\ -L*)
9169 func_warning "'-l' and '-L' are ignored for archives" ;;
9172 test -n "$rpath" && \
9173 func_warning "'-rpath' is ignored for archives"
9175 test -n "$xrpath" && \
9176 func_warning "'-R' is ignored for archives"
9178 test -n "$vinfo" && \
9179 func_warning "'-version-info/-version-number' is ignored for archives"
9181 test -n "$release" && \
9182 func_warning "'-release' is ignored for archives"
9184 test -n "$export_symbols$export_symbols_regex" && \
9185 func_warning "'-export-symbols' is ignored for archives"
9219 if test -n "$objs"; then
9221 …func_fatal_error "cannot build libtool library '$output' from non-libtool objects on this host:$ob…
9223 …func_warning "Linking the shared library $output against the non-libtool objects $objs is not port…
9229 || func_warning "'-dlopen self' is ignored for libtool libraries"
9233 test 1 -lt "$#" \
9234 && func_warning "ignoring multiple '-rpath's for a libtool library"
9239 if test -z "$rpath"; then
9250 test -n "$vinfo" && \
9251 func_warning "'-version-info/-version-number' is ignored for convenience libraries"
9253 test -n "$release" && \
9254 func_warning "'-release' is ignored for convenience libraries"
9263 test -n "$7" && \
9264 func_fatal_help "too many parameters to '-version-info'"
9276 # There are really only two kinds -- those that
9284 darwin|freebsd-elf|linux|midnightbsd-elf|osf|qnx|windows|none)
9290 freebsd-aout|sco|sunos)
9316 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]) ;;
9324 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 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]) ;;
9339 if test "$age" -gt "$current"; then
9354 func_arith $current - $age
9360 …xlcverstring="$wl-compatibility_version $wl$minor_current $wl-current_version $wl$minor_current.$r…
9361 verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
9365 …verstring="$wl-compatibility_version $wl$minor_current $wl-current_version $wl$minor_current.$revi…
9368 … verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
9373 freebsd-aout)
9378 freebsd-elf | midnightbsd-elf)
9379 func_arith $current - $age
9386 func_arith $current - $age
9388 func_arith $current - $age + 1
9400 while test 0 -ne "$loop"; do
9401 func_arith $revision - $loop
9403 func_arith $loop - 1
9414 func_arith $current - $age
9420 func_arith $current - $age
9427 while test 0 -ne "$loop"; do
9428 func_arith $current - $loop
9430 func_arith $loop - 1
9440 func_arith $current - $age
9456 # Use '-' rather than '.', since we only want one
9458 func_arith $current - $age
9460 versuffix=-$major
9469 if test -z "$vinfo" && test -n "$release"; then
9502 func_fatal_error "can't build $host shared library unless -no-undefined is specified"
9526 if test -n "$precious_files_regex"; then
9527 if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
9537 test -n "$removelist" && \
9552 # deplibs=`$ECHO "$deplibs " | $SED "s% -L$path % %g"`
9553 # dependency_libs=`$ECHO "$dependency_libs " | $SED "s% -L$path % %g"`
9556 if test -n "$xrpath"; then
9561 func_append temp_xrpath " -R$func_replace_sysroot_result"
9593 if test -n "$rpath"; then
9595 …*-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*)
9598 *-*-rhapsody* | *-*-darwin1.[012])
9602 *-*-netbsd*)
9605 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-midnightbsd*)
9608 *-*-sco3.2v5* | *-*-sco5v6*)
9611 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
9617 func_append deplibs " -lc"
9630 # release should show up in the -l (ie -lgmp5) so we don't want to
9651 -l*)
9652 func_stripname -l '' "$a_deplib"
9662 if test -n "$a_deplib"; then
9664 if test -n "$file_magic_glob"; then
9665 libnameglob=`func_echo_all "$libname" | $SED -e $file_magic_glob`
9669 test yes = "$want_nocaseglob" && nocaseglob=`shopt -p nocaseglob`
9672 shopt -s nocaseglob
9673 potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
9676 potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
9680 if ls -lLd "$potent_lib" 2>/dev/null |
9681 $GREP " -> " >/dev/null; then
9690 while test -h "$potlib" 2>/dev/null; do
9691 potliblink=`ls -ld $potlib | $SED 's/.* -> //'`
9693 [\\/]* | [A-Za-z]:[\\/]*) potlib=$potliblink;;
9698 $SED -e 10q |
9707 if test -n "$a_deplib"; then
9714 if test -z "$potlib"; then
9723 # Add a -L argument.
9734 -l*)
9735 func_stripname -l '' "$a_deplib"
9745 if test -n "$a_deplib"; then
9748 potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
9750 potlib=$potent_lib # see symlink-check above in file_magic test
9760 if test -n "$a_deplib"; then
9767 if test -z "$potlib"; then
9776 # Add a -L argument.
9784 tmp_deplibs=`$ECHO " $deplibs" | $SED 's/ -lc$//; s/ -[LR][^ ]*//g'`
9795 func_warning "Inter-library dependencies are not supported in this platform."
9797 func_warning "Inter-library dependencies are not known to be supported."
9799 func_warning "All declared inter-library dependencies are being dropped."
9812 *-*-rhapsody* | *-*-darwin1.[012])
9814 newdeplibs=`$ECHO " $newdeplibs" | $SED 's/ -lc / System.ltframework /'`
9820 func_warning "libtool could not satisfy all declared inter-library"
9823 func_warning "application is linked with the -dlopen flag."
9824 if test -z "$global_symbol_pipe"; then
9838 echo "*** The inter-library dependencies that have been dropped here will be"
9840 echo "*** or is declared to -dlopen it."
9846 echo "*** it was explicitly requested with -no-undefined,"
9861 # Time to change all our "foo.ltframework" stuff back to "-framework foo"
9863 *-*-darwin*)
9864 newdeplibs=`$ECHO " $newdeplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
9865 …er_flags=`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
9866 deplibs=`$ECHO " $deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
9875 *" -L$path/$objdir "*) ;;
9878 *" -L$path/$objdir "*)
9879 func_append new_libs " -L$path/$objdir" ;;
9886 -L*)
9897 # All the library-specific variables (install_libdir is set above).
9916 if test -n "$hardcode_libdir_flag_spec"; then
9917 if test -n "$hardcode_libdir_separator"; then
9920 if test -z "$hardcode_libdirs"; then
9936 elif test -n "$runpath_var"; then
9944 if test -n "$hardcode_libdir_separator" &&
9945 test -n "$hardcode_libdirs"; then
9949 if test -n "$runpath_var" && test -n "$perm_rpath"; then
9957 test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
9962 if test -n "$shlibpath"; then
9974 if test -n "$soname_spec"; then
9979 if test -z "$dlname"; then
9991 test -z "$pic_flag" && libobjs=`$ECHO "$libobjs" | $SP2NL | $SED "$lo2o" | $NL2SP`
9995 if test -n "$export_symbols" && test -n "$include_expsyms"; then
10004 if test -n "$export_symbols" && test -z "$export_symbols_regex"; then
10022 if test -z "$export_symbols"; then
10023 if test yes = "$always_export_symbols" || test -n "$export_symbols_regex"; then
10045 && { test "$len" -lt "$max_cmd_len" \
10046 || test "$max_cmd_len" -le -1; }
10050 elif test -n "$nm_file_list_spec"; then
10079 if test -n "$export_symbols_regex" && test : != "$skipped_export"; then
10080 func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
10086 if test -n "$export_symbols" && test -n "$include_expsyms"; then
10088 test -n "$orig_export_symbols" && tmp_export_symbols=$orig_export_symbols
10092 if test : != "$skipped_export" && test -n "$orig_export_symbols"; then
10100 …$opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $outp…
10103 $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
10117 if test -n "$convenience"; then
10118 if test -n "$whole_archive_flag_spec" &&
10120 test -z "$libobjs"; then
10125 if test -n "$whole_archive_flag_spec"; then
10139 if test yes = "$thread_safe" && test -n "$thread_safe_flag_spec"; then
10150 if test yes = "$module" && test -n "$module_cmds"; then
10151 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
10159 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
10171 test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
10186 if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
10201 if test -n "$save_libobjs" && test : != "$skipped_export" && test -n "$file_list_spec"; then
10220 elif test -n "$save_libobjs" && test : != "$skipped_export" && test yes = "$with_gnu_ld"; then
10234 if test -n "$save_libobjs"; then
10236 output=$output_objdir/$output_la-$k.$objext
10248 if test -z "$objlist" ||
10249 test "$len" -lt "$max_cmd_len"; then
10254 if test 1 -eq "$k"; then
10264 last_robj=$output_objdir/$output_la-$k.$objext
10267 output=$output_objdir/$output_la-$k.$objext
10277 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
10280 if test -n "$last_robj"; then
10289 ${skipped_export-false} && {
10295 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
10297 if test -n "$last_robj"; then
10302 test -n "$save_libobjs" &&
10328 if test -n "$export_symbols_regex" && ${skipped_export-false}; then
10329 func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
10334 ${skipped_export-false} && {
10335 if test -n "$export_symbols" && test -n "$include_expsyms"; then
10337 test -n "$orig_export_symbols" && tmp_export_symbols=$orig_export_symbols
10341 if test -n "$orig_export_symbols"; then
10349 …$opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $outp…
10352 … $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
10360 if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
10368 if test yes = "$module" && test -n "$module_cmds"; then
10369 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
10375 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
10383 if test -n "$delfiles"; then
10389 if test -n "$dlprefiles"; then
10426 if test -n "$convenience"; then
10427 if test -z "$whole_archive_flag_spec"; then
10442 # If -module or -export-dynamic was specified, set the dlname.
10451 if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then
10452 func_warning "'-dlopen' is ignored for objects"
10456 *\ -l* | *\ -L*)
10457 func_warning "'-l' and '-L' are ignored for objects" ;;
10460 test -n "$rpath" && \
10461 func_warning "'-rpath' is ignored for objects"
10463 test -n "$xrpath" && \
10464 func_warning "'-R' is ignored for objects"
10466 test -n "$vinfo" && \
10467 func_warning "'-version-info' is ignored for objects"
10469 test -n "$release" && \
10470 func_warning "'-release' is ignored for objects"
10474 test -n "$objs$old_deplibs" && \
10475 func_fatal_error "cannot build library object '$output' from non-libtool objects"
10491 # single-version convenience libraries. Whenever we create
10492 # different ones for PIC/non-PIC, this we'll have to duplicate
10496 # if reload_cmds runs $LD directly, get rid of -Wl from
10502 if test -n "$convenience"; then
10503 if test -n "$whole_archive_flag_spec"; then
10505 test -n "$wl" || tmp_whole_archive_flags=`$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'`
10519 # Create the old-style object.
10526 if test -z "$libobj"; then
10527 if test -n "$gentop"; then
10535 if test -n "$gentop"; then
10546 if test -n "$pic_flag" || test default != "$pic_mode"; then
10553 if test -n "$gentop"; then
10565 test -n "$vinfo" && \
10566 func_warning "'-version-info' is ignored for programs"
10568 test -n "$release" && \
10569 func_warning "'-release' is ignored for programs"
10576 *-*-rhapsody* | *-*-darwin1.[012])
10578 compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's/ -lc / System.ltframework /'`
10579 finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's/ -lc / System.ltframework /'`
10584 *-*-darwin*)
10588 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
10590 func_append compile_command " $wl-bind_at_load"
10591 func_append finalize_command " $wl-bind_at_load"
10595 # Time to change all our "foo.ltframework" stuff back to "-framework foo"
10596 compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
10597 finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
10607 *" -L$path/$objdir "*) ;;
10610 *" -L$path/$objdir "*)
10611 func_append new_libs " -L$path/$objdir" ;;
10618 -L*)
10633 if test -n "$rpath$xrpath"; then
10636 # This is the magic to use -rpath.
10648 if test -n "$hardcode_libdir_flag_spec"; then
10649 if test -n "$hardcode_libdir_separator"; then
10650 if test -z "$hardcode_libdirs"; then
10666 elif test -n "$runpath_var"; then
10673 *-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-os2* | *-cegcc*)
10674 testbindir=`$ECHO "$libdir" | $SED -e 's*/lib$*/bin*'`
10689 if test -n "$hardcode_libdir_separator" &&
10690 test -n "$hardcode_libdirs"; then
10699 if test -n "$hardcode_libdir_flag_spec"; then
10700 if test -n "$hardcode_libdir_separator"; then
10701 if test -z "$hardcode_libdirs"; then
10717 elif test -n "$runpath_var"; then
10725 if test -n "$hardcode_libdir_separator" &&
10726 test -n "$hardcode_libdirs"; then
10732 if test -n "$libobjs" && test yes = "$build_old_libs"; then
10741 if test -n "$prelink_cmds"; then
10769 if test -n "$postlink_cmds"; then
10771 …postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUT…
10776 if test -f "$output_objdir/${outputname}S.$objext"; then
10783 if test -n "$compile_shlibpath$finalize_shlibpath"; then
10786 if test -n "$finalize_shlibpath"; then
10792 if test -n "$runpath_var"; then
10793 if test -n "$perm_rpath"; then
10801 if test -n "$finalize_perm_rpath"; then
10821 if test -n "$postlink_cmds"; then
10823 …postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUT…
10857 $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname
10861 if test -n "$postlink_cmds"; then
10863 …stlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g…
10871 if test -n "$relink_command"; then
10874 if eval test -z \"\${$var+set}\"; then
10875 …relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relin…
10876 elif eval var_value=\$$var; test -z "$var_value"; then
10909 cwrappersource=$output_path/$objdir/lt-$output_name.c
10917 # because it contains $host paths and files. If cross-
10921 $LTCC $LTCFLAGS -o $cwrapper $cwrappersource
10932 $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result
10951 # See if we need to build an old-fashioned archive.
10967 $preload && test -f "$symfileobj" \
10973 if test -n "$addlibs"; then
10982 if test -n "$old_archive_from_new_cmds" && test yes = "$build_libtool_libs"; then
10987 if test -n "$dlprefiles"; then
11005 done | sort | sort -uc >/dev/null 2>&1); then
11025 newobj=lt$counter-$objbase
11030 *) if test ! -f "$gentop/$newobj"; then break; fi ;;
11046 if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
11048 elif test -n "$archiver_list_spec"; then
11082 if test "$len" -lt "$max_cmd_len"; then
11090 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
11098 if test -z "$oldobjs"; then
11108 test -n "$generated" && \
11120 if eval test -z \"\${$var+set}\"; then
11121 …relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relin…
11122 elif eval var_value=\$$var; test -z "$var_value"; then
11131 …relink_command="($func_quote_result; $SHELL \"$progpath\" $preserve_args --mode=relink $libtool_ar…
11142 if test -z "$install_libdir"; then
11154 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result`
11155 test -z "$libdir" && \
11159 -L*)
11160 func_stripname -L '' "$deplib"
11162 func_append newdependency_libs " -L$func_replace_sysroot_result"
11164 -R*)
11165 func_stripname -R '' "$deplib"
11167 func_append newdependency_libs " -R$func_replace_sysroot_result"
11180 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
11181 test -z "$libdir" && \
11193 # Only pass preopened files to the pseudo-archive (for
11199 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
11200 test -z "$libdir" && \
11211 [\\/]* | [A-Za-z]:[\\/]*) abs=$lib ;;
11220 [\\/]* | [A-Za-z]:[\\/]*) abs=$lib ;;
11230 # systems that can't hard-code library paths into their executables
11233 # libtool variables, so we have to hard-code the OSs to which it
11240 # If a -bindir argument was supplied, place the dll there.
11241 if test -n "$bindir"; then
11251 # $outputname - a libtool library file
11283 # Should we warn about portability when linking against -modules?
11329 -f) func_append RM " $arg"; rmforce=: ;;
11330 -*) func_append RM " $arg" ;;
11335 test -z "$RM" && \
11360 # Don't error if the file doesn't exist and rm -f was used.
11361 if { test -L "$file"; } >/dev/null 2>&1 ||
11362 { test -h "$file"; } >/dev/null 2>&1 ||
11363 test -f "$file"; then
11365 elif test -d "$file"; then
11384 test -n "$old_library" && func_append rmfiles " $odir/$old_library"
11390 *) test -n "$dlname" && func_append rmfiles " $odir/$dlname" ;;
11392 test -n "$libdir" && func_append rmfiles " $odir/$name $odir/${name}i"
11395 if test -n "$library_names"; then
11400 if test -n "$old_library"; then
11418 if test -n "$pic_object" && test none != "$pic_object"; then
11422 # Add non-PIC object to the list of files to remove.
11423 if test -n "$non_pic_object" && test none != "$non_pic_object"; then
11458 if test yes = "$fast_install" && test -n "$relink_command"; then
11459 func_append rmfiles " $odir/lt-$name"
11462 func_append rmfiles " $odir/lt-$noexename.c"
11473 if test -d "$dir"; then
11485 test -z "$opt_mode" && {
11490 test -z "$exec_cmd" && \
11493 if test -n "$exec_cmd"; then
11508 # time on that platform, so we default to a shared-only configuration.
11509 # If a disable-shared tag is given, we'll fallback to a static-only
11510 # configuration. But we'll never go from static-only to shared-only.
11512 # ### BEGIN LIBTOOL TAG CONFIG: disable-shared
11515 # ### END LIBTOOL TAG CONFIG: disable-shared
11517 # ### BEGIN LIBTOOL TAG CONFIG: disable-static
11519 # ### END LIBTOOL TAG CONFIG: disable-static
11522 # mode:shell-script
11523 # sh-indentation:2