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-2022 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 Bootstrap Authors
79 # <http://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 ## ------------------------------- ##
329 : ${CP="cp -f"}
331 : ${EGREP="$GREP -E"}
332 : ${FGREP="$GREP -F"}
333 : ${LN_S="ln -s"}
336 : ${MV="mv -f"}
337 : ${RM="rm -f"}
338 : ${SHELL="${CONFIG_SHELL-/bin/sh}"}
341 ## -------------------- ##
343 ## -------------------- ##
349 # metacharacters that are still active within double-quoted strings.
364 # Re-'\' parameter expansions in output of sed_double_quote_subst that
365 # were '\'-ed in input to the same. If an odd number of '\' preceded a
381 # ---------------------------
410 ## ----------------- ##
412 ## ----------------- ##
436 # debug_cmd='eval echo "${FUNCNAME[0]} $*" >&2' bash your-script-name
437 debug_cmd=${debug_cmd-":"}
444 # so that you can set exit_status to non-zero if you want to indicate
461 [\\/]*|[A-Za-z]:\\*) ;;
469 IFS=${PATH_SEPARATOR-:}
472 test -x "$progdir/$progname" && break
475 test -n "$progdir" || progdir=`pwd`
481 ## ----------------- ##
483 ## ----------------- ##
486 # below, and should be set appropriately depending on run-time para-
509 ## -------------------- ##
511 ## -------------------- ##
514 # particular resource (a file, or a non-empty configuration variable for
526 # -------------------
533 test -t 1 && {
537 test -n "${COLORTERM+set}" && : ${USE_ANSI_COLORS="1"}
547 test -n "`tput sgr0 2>/dev/null`" && {
549 test -n "`tput bold 2>/dev/null`" && tc_bold=`tput bold`
551 test -n "`tput smso 2>/dev/null`" && tc_standout=`tput smso`
552 test -n "`tput setaf 1 2>/dev/null`" && tc_red=`tput setaf 1`
553 test -n "`tput setaf 2 2>/dev/null`" && tc_green=`tput setaf 2`
554 test -n "`tput setaf 4 2>/dev/null`" && tc_blue=`tput setaf 4`
555 test -n "`tput setaf 5 2>/dev/null`" && tc_cyan=`tput setaf 5`
564 ## ----------------- ##
566 ## ----------------- ##
575 # ---------------------
596 test -z "$_G_HAVE_PLUSEQ_OP" \
621 # ----------------------------
644 # --------------------------
648 # func_append_uniq options " --another-option option-argument"
650 # will only append to $options if " --another-option option-argument "
667 # func_arith TERM...
668 # ------------------
670 test -z "$_G_HAVE_ARITH_OP" \
692 # ------------------
725 # -------------------------------------------
737 # --------------------------------------------------------
758 # ----------------
777 # --------------------
778 # Invoke $ECHO with all args, space-separated.
786 # ------------------------------
803 test -n "$_G_tc" && {
822 # -----------------
835 # -----------------------
847 # -----------------------------
858 # ---------------
861 test -z "$_G_HAVE_XSI_OPS" \
883 # func_mkdir_p DIRECTORY-PATH
884 # ---------------------------
885 # Make sure the entire path to DIRECTORY-PATH is available.
893 if test -n "$_G_directory_path" && test : != "$opt_dry_run"; then
895 # Protect directory names starting with '-'
897 -*) _G_directory_path=./$_G_directory_path ;;
901 while test ! -d "$_G_directory_path"; do
910 _G_directory_path=`$ECHO "$_G_directory_path" | $SED -e "$sed_dirname"`
925 test -d "$_G_directory_path" || \
932 # -------------------------
940 _G_template=${TMPDIR-/tmp}/${1-$progname}
943 # Return a directory name, but don't create it in dry-run mode
944 _G_tmpdir=$_G_template-$$
948 _G_tmpdir=`mktemp -d "$_G_template-XXXXXXXX" 2>/dev/null`
950 if test ! -d "$_G_tmpdir"; then
952 _G_tmpdir=$_G_template-${RANDOM-0}$$
960 # If we're not in dry-run mode, bomb out on failure
961 test -d "$_G_tmpdir" || \
970 # ------------------------
971 # Remove doubled-up and trailing slashes, "." path components,
1001 # we take advantage of case's first-match behaviour.
1024 -e "$_G_removedotparts" -e "$_G_collapseslashes" -e "$_G_finalslash"`
1029 if test -z "$func_normal_abspath_result"; then
1035 -e "$_G_pathcar"`
1037 -e "$_G_pathcdr"`
1054 # Restore leading double-slash if one was found on entry.
1060 # --------------------
1069 # fails when set -e is in force, so we need another command to
1076 # --------------------------------
1101 if test -z "$func_relative_path_result"; then
1109 if test -z "$func_relative_path_tlibdir"; then
1120 # Now calculate path; take care to avoid doubling-up slashes.
1124 if test -n "$func_stripname_result"; then
1129 if test -n "$func_relative_path_result"; then
1134 test -n "$func_relative_path_result" || func_relative_path_result=.
1141 # ----------------------------
1153 # one-time-loop (easy break)
1158 -e "$sed_double_quote_subst" -e "$sed_double_backslash"`
1208 # double-quote args containing shell metacharacters to delay
1221 # -----------------------
1224 if test xyes = `(x=; printf -v x %q yes; echo x"$x") 2>/dev/null`; then
1225 printf -v _GL_test_printf_tilde %q '~'
1229 printf -v func_quotefast_eval_result %q "$1"
1241 printf -v func_quotefast_eval_result %q "$1"
1256 # ------------------------
1261 # double-quoted (when needed), suitable for a subsequent eval
1267 # ----------------
1269 # - escape shell special characters
1271 # - the same as 'eval'; but do not quote variable references
1273 # - request aesthetic output, i.e. '"a b"' instead of 'a\ b'. This might
1277 # - produce also $func_quote_arg_unquoted_result which does not contain
1278 # wrapping double-quotes.
1283 # ------------+-----------------------+-------------------
1288 # z="${x-$y}" | "z=\"\${x-\$y}\"" | z=\"\${x-\$y}\"
1293 # --------------+---------------------+--------------------
1294 # z="${x-$y}" | "z=\"${x-$y}\"" | z=\"${x-$y}\"
1311 # Faster quote-for-eval for some shells.
1320 # ------------------------
1328 while test 0 -lt $#; do
1330 if test -n "$func_quote_result"; then
1341 # ---------------------------------
1363 .*) func_stripname_result=`$ECHO "$3" | $SED -e "s%^$1%%" -e "s%\\\\$2\$%%"`;;
1364 *) func_stripname_result=`$ECHO "$3" | $SED -e "s%^$1%%" -e "s%$2\$%%"`;;
1371 # -----------------------------
1380 _G_fail_exp=${2-':'}
1388 if test 0 -ne "$_G_status"; then
1396 # ------------------------------------
1405 _G_fail_exp=${2-':'}
1417 if test 0 -ne "$_G_status"; then
1425 # ----------
1428 # not in the set a-zA-Z0-9_ are replaced with '_'. Further,
1435 [0-9]* | *[!a-zA-Z0-9_]*)
1436 func_tr_sh_result=`$ECHO "$1" | $SED -e 's/^\([0-9]\)/_\1/' -e 's/[^a-zA-Z0-9_]/_/g'`
1446 # -------------------
1459 # -----------------------------
1472 # ----------------------------
1497 # -----------------------
1498 # 'sort -V' is not generally available.
1500 # in that it treats 1.5 < 1.5.0, and treats 1.4.4a < 1.4-p3a
1510 | 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
1514 # ---------------------
1528 # mode: shell-script
1529 # sh-indentation: 2
1530 # eval: (add-hook 'before-save-hook 'time-stamp)
1531 # time-stamp-pattern: "10/scriptversion=%:y-%02m-%02d.%02H; # UTC"
1532 # time-stamp-time-zone: "UTC"
1542 # Copyright (C) 2010-2019, 2021 Bootstrap Authors
1546 # <http://www.gnu.org/licenses/gpl-2.0.html>. You must apply one of
1552 # <https://github.com/gnulib-modules/bootstrap/issues>
1555 scriptversion=2019-02-19.15; # UTC
1558 ## ------ ##
1560 ## ------ ##
1570 # . relative/path/to/options-parser
1576 # In order for the '--version' option to work, you will need to have a
1580 # For '-h' and '--help' to work, you will also need a one line
1584 # The default options also support '--debug', which will turn on shell
1586 # use), and '--verbose' and the func_verbose function to allow your script
1588 # '--verbose'.
1595 ## -------------- ##
1597 ## -------------- ##
1603 # The usage line for option parsing errors and the start of '-h' and
1604 # '--help' output messages. You can embed shell variables for delayed
1606 # quote other shell meta-characters carefully to prevent them being
1610 # Short help message in response to '-h' and '--help'. Add to this or
1614 --debug enable verbose shell tracing
1615 -W, --warnings=CATEGORY
1617 -v, --verbose verbosely report processing
1618 --version print version information and exit
1619 -h, --help print short or long help message and exit
1622 # Additional text appended to 'usage_message' in response to '--help'.
1630 fatal_help="Try '\$progname --help' for more information."
1634 ## ------------------------- ##
1636 ## ------------------------- ##
1643 # -----------------------
1655 # ---------------------------------
1672 # ------------------------------------
1684 # ---------------------------------------------
1702 # ---------------------------------
1705 # than a whitespace-delimited list of legal shell function names, and
1706 # no effort is wasted trying to catch shell meta-characters or preserve
1731 ## --------------- ##
1733 ## --------------- ##
1755 # -s, --silent don'\''t print informational messages
1772 # while test $# -gt 0; do
1775 # --silent|-s) opt_silent=:
1778 # # Separate non-argument short options:
1779 # -s*) func_split_short_opt "$_G_opt"
1781 # "-$func_split_short_opt_arg" ${1+"$@"}
1806 # '--silent' and '--verbose' options are mutually exclusive."
1816 # ----------------------------
1828 # ---------------------
1851 # As we (func_options) are top-level options-parser function and
1861 # --------------------------
1882 # ---------------------------
1891 while test $# -gt 0; do
1900 # this if-branch). No need to quote it again.
1905 test $# -gt 0 || break
1908 # and thus we remove _G_opt from "$@" and need to re-quote.
1913 --debug|-x) debug_cmd='set -x'
1918 --no-warnings|--no-warning|--no-warn)
1919 set dummy --warnings none ${1+"$@"}
1923 --warnings|--warning|-W)
1952 --verbose|-v) opt_verbose=: ;;
1953 --version) func_version ;;
1954 -\?|-h) func_usage ;;
1955 --help) func_help ;;
1958 --*=*) func_split_equals "$_G_opt"
1965 -W*)
1972 # Separate non-argument short options:
1973 -\?*|-h*|-v*|-x*)
1976 "-$func_split_short_opt_arg" ${1+"$@"}
1980 --) _G_parse_options_requote=: ; break ;;
1981 -*) func_fatal_help "unrecognised option: '$_G_opt'" ;;
2002 # ------------------------------
2010 # Display all warnings if -W was not given.
2011 test -n "$opt_warning_types" || opt_warning_types=" $warning_categories"
2022 ## ----------------- ##
2024 ## ----------------- ##
2027 # hookable option parser framework in ascii-betical order.
2031 # ----------------------
2046 # ---------
2059 # ------------------------
2072 # ------------------------
2075 test -z "$_G_HAVE_XSI_OPS" \
2108 # -----------------------------
2127 func_split_short_opt_name=`expr "x$1" : 'x\(-.\)'`
2128 func_split_short_opt_arg=`expr "x$1" : 'x-.\(.*\)$'`
2134 # ----------
2141 $ECHO "Run '$progname --help |${PAGER-more}' for full usage"
2147 # ------------------
2155 $SED -n 's|^# ||
2167 # ------------
2183 $SED -n '
2203 s|\((C)\)[ 0-9,-]*[ ,-]\([1-9][0-9]* \)|\1 \2|
2213 # mode: shell-script
2214 # sh-indentation: 2
2215 # eval: (add-hook 'before-save-hook 'time-stamp)
2216 # time-stamp-pattern: "30/scriptversion=%:y-%02m-%02d.%02H; # UTC"
2217 # time-stamp-time-zone: "UTC"
2225 # ----------------
2245 # -------------------
2256 ## ---------------- ##
2258 ## ---------------- ##
2263 usage='$progpath [OPTION]... [MODE-ARG]...'
2265 # Short help message in response to '-h'.
2267 --config show all configuration variables
2268 --debug enable verbose shell tracing
2269 -n, --dry-run display commands without modifying any files
2270 --features display basic configuration information and exit
2271 --mode=MODE use operation mode MODE
2272 --no-warnings equivalent to '-Wnone'
2273 --preserve-dup-deps don't remove duplicate dependency libraries
2274 --quiet, --silent don't print informational messages
2275 --tag=TAG use configuration variables from tag TAG
2276 -v, --verbose print more informational messages than default
2277 --version print version information
2278 -W, --warnings=CATEGORY report the warnings falling in CATEGORY [all]
2279 -h, --help, --help-all print short, long, or detailed help message
2282 # Additional text appended to 'usage_message' in response to '--help'.
2300 MODE-ARGS vary depending on the MODE. When passed as first option,
2301 '--mode=MODE' may be abbreviated as 'MODE' or a unique abbreviation of that.
2302 Try '$progname --help --mode=MODE' for a more detailed description of MODE.
2307 host-triplet: $host
2313 automake: `($AUTOMAKE --version) 2>/dev/null |$SED 1q`
2314 autoconf: `($AUTOCONF --version) 2>/dev/null |$SED 1q`
2316 Report bugs to <bug-libtool@gnu.org>.
2323 # func_lo2o OBJECT-NAME
2324 # ---------------------
2325 # Transform OBJECT-NAME from a '.lo' suffix to the platform specific
2340 # func_xform LIBOBJ-OR-SOURCE
2341 # ---------------------------
2342 # Transform LIBOBJ-OR-SOURCE from a '.o' or '.c' (or otherwise)
2343 # suffix to a '.lo' libtool-object suffix.
2363 # -------------------------------
2375 # -----------
2387 … $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath"
2395 # -------------
2416 # -----------------------
2431 *[!-_A-Za-z0-9,/]*)
2446 # also don't use non-portable quotes within backquotes within
2448 extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"`
2459 # ------------------------
2466 if test -z "$macro_version"; then
2496 # -----------------------------
2516 # Shorthand for --mode=foo, only valid as the first argument
2519 shift; set dummy --mode clean ${1+"$@"}; shift
2522 shift; set dummy --mode compile ${1+"$@"}; shift
2525 shift; set dummy --mode execute ${1+"$@"}; shift
2528 shift; set dummy --mode finish ${1+"$@"}; shift
2531 shift; set dummy --mode install ${1+"$@"}; shift
2534 shift; set dummy --mode link ${1+"$@"}; shift
2537 shift; set dummy --mode uninstall ${1+"$@"}; shift
2554 # ---------------------------------
2564 while test $# -gt 0; do
2569 --dry-run|--dryrun|-n)
2573 --config) func_config ;;
2575 --dlopen|-dlopen)
2581 --preserve-dup-deps)
2584 --features) func_features ;;
2586 --finish) set dummy --mode finish ${1+"$@"}; shift ;;
2588 --help) opt_help=: ;;
2590 --help-all) opt_help=': help-all' ;;
2592 --mode) test $# = 0 && func_missing_arg $_G_opt && break
2607 --no-silent|--no-quiet)
2612 --no-warnings|--no-warning|--no-warn)
2617 --no-verbose)
2622 --silent|--quiet)
2628 --tag) test $# = 0 && func_missing_arg $_G_opt && break
2635 --verbose|-v) opt_quiet=false
2660 # ---------------------------------
2665 # save first non-option argument
2666 if test 0 -lt $#; then
2671 # preserve --debug
2672 test : = "$debug_cmd" || func_append preserve_args " --debug"
2697 # Only execute mode is allowed to have -dlopen flags.
2698 if test -n "$opt_dlopen" && test execute != "$opt_mode"; then
2699 func_error "unrecognized option '-dlopen'"
2704 # Change the help message to a mode-specific one.
2706 help="Try '$progname --help --mode=$opt_mode' for more information."
2716 # Process options as early as possible so that --help and --version
2723 ## ----------- ##
2725 ## ----------- ##
2735 # will be execed at the end. This prevents here-documents from being
2762 test -f "$1" &&
2763 $SED -e 4q "$1" 2>/dev/null | func_generated_by_libtool_p
2776 if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then
2784 exec 0<&5 5<&-
2795 test -f "$1" &&
2835 # Execute tilde-delimited COMMANDS.
2837 # FAIL_CMD may read-access the current command in variable CMD!
2847 func_show_eval "$cmd" "${2-:}"
2856 # FILE even if both FILE and FILE.exe exist: automatic-append-.exe
2903 # if one wasn't chosen via the "--tag" command line option.
2911 if test -n "$available_tags" && test -z "$tagname"; then
2929 …eval "`$SED -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/…
2932 # Double-quote args containing other shell metacharacters.
2950 # was found and let the user know that the "--tag" command
2952 if test -z "$tagname"; then
2954 func_fatal_error "specify a tag with '--tag'"
2985 # $write_libobj - a libtool object file
2994 # Name of the non-PIC object
3021 if test -n "$1"; then
3022 # Unfortunately, winepath does not exit with a non-zero error code, so we
3026 # zero AND non-empty stdout, which explains the odd construction:
3027 func_convert_core_file_wine_to_w32_tmp=`winepath -w "$1" 2>/dev/null`
3028 if test "$?" -eq 0 && test -n "$func_convert_core_file_wine_to_w32_tmp"; then
3030 $SED -e "$sed_naive_backslashify"`
3055 if test -n "$1"; then
3061 if test -n "$func_convert_core_file_wine_to_w32_result"; then
3062 if test -z "$func_convert_core_path_wine_to_w32_result"; then
3094 if test -n "$LT_CYGPATH" && test -f "$LT_CYGPATH"; then
3096 if test "$?" -ne 0; then
3102 func_error "LT_CYGPATH is empty or specifies non-existent file: '$LT_CYGPATH'"
3117 $SED -e 's/[ ]*$//' -e "$sed_naive_backslashify"`
3130 if test -z "$2" && test -n "$1"; then
3149 if test -z "$4" && test -n "$3"; then
3158 $SED -e "$lt_replace_pathsep_chars"`
3246 if test -n "$1"; then
3263 if test -n "$1"; then
3266 func_to_host_file_result=`cygpath -m "$1"`
3281 if test -n "$1"; then
3298 if test -n "$1"; then
3300 func_cygpath -u "$func_convert_core_msys_to_w32_result"
3317 if test -n "$1"; then
3320 func_cygpath -u "$func_convert_core_file_wine_to_w32_result"
3357 if test -z "$to_host_path_cmd"; then
3395 if test -n "$1"; then
3419 if test -n "$1"; then
3423 func_to_host_path_result=`cygpath -m -p "$func_to_host_path_tmp1"`
3440 if test -n "$1"; then
3462 if test -n "$1"; then
3467 func_cygpath -u -p "$func_convert_core_msys_to_w32_result"
3486 if test -n "$1"; then
3493 func_cygpath -u -p "$func_convert_core_path_wine_to_w32_result"
3510 func_dll_def_p_tmp=`$SED -n \
3511 -e 's/^[ ]*//' \
3512 -e '/^\(;.*\)*$/d' \
3513 -e 's/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p' \
3514 -e q \
3527 srcfile=$nonopt # always keep a non-empty value in "srcfile"
3551 # Accept any command-line options.
3553 -o)
3554 test -n "$libobj" && \
3555 func_fatal_error "you cannot specify '-o' more than once"
3560 -pie | -fpie | -fPIE)
3565 -shared | -static | -prefer-pic | -prefer-non-pic)
3570 -no-suppress)
3575 -Xcompiler)
3580 -Wc,*)
3581 func_stripname '-Wc,' '' "$arg"
3615 func_fatal_error "you must specify an argument for -Xcompile"
3618 func_fatal_error "you must specify a target with '-o'"
3622 test -z "$libobj" && {
3630 # If the user specifies -o file.o, it is replaced with file.lo
3652 -shared)
3659 -static)
3665 -prefer-pic)
3670 -prefer-non-pic)
3686 test -z "$base_compile" && \
3703 # non-PIC code in shared libraries is not supported
3708 # not support -o with -c
3726 if test -f "$lockfile"; then
3733 your compiler does not support '-c' and '-o' together. If you
3735 avoid parallel builds (make -j) in this platform, or get a better
3768 if test -z "$output_obj"; then
3770 func_append command " -o $lobj"
3774 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE'
3787 your compiler does not support '-c' and '-o' together. If you
3789 avoid parallel builds (make -j) in this platform, or get a better
3797 if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
3808 # Only build a position-dependent object if we build old libraries.
3817 func_append command " -o $obj"
3836 your compiler does not support '-c' and '-o' together. If you
3838 avoid parallel builds (make -j) in this platform, or get a better
3846 if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
3881 "Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
3886 (typically '/bin/rm'). RM-OPTIONS are options (such as '-f') to be passed
3895 "Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
3901 -o OUTPUT-FILE set the output file name to OUTPUT-FILE
3902 -no-suppress do not suppress compiler output for multiple passes
3903 -prefer-pic try to build PIC objects only
3904 -prefer-non-pic try to build non-PIC objects only
3905 -shared do not build a '.o' file suitable for static linking
3906 -static only build a '.o' file suitable for static linking
3907 -Wc,FLAG
3908 -Xcompiler FLAG pass FLAG directly to the compiler
3910 COMPILE-COMMAND is a command to be used in creating a 'standard' object file
3920 "Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]...
3926 -dlopen FILE add the directory containing FILE to the library path
3928 This mode sets the library path environment variable according to '-dlopen'
3940 "Usage: $progname [OPTION]... --mode=finish [LIBDIR]...
3947 the '--dry-run' option if you just want to see what would be executed."
3952 "Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND...
3956 INSTALL-COMMAND is the installation command. The first component should be
3959 The following components of INSTALL-COMMAND are treated specially:
3961 -inst-prefix-dir PREFIX-DIR Use PREFIX-DIR as a staging area for installation
3964 BSD-compatible install options are recognized)."
3969 "Usage: $progname [OPTION]... --mode=link LINK-COMMAND...
3974 LINK-COMMAND is a command using the C compiler that you would use to create
3977 The following components of LINK-COMMAND are treated specially:
3979 -all-static do not do any dynamic linking at all
3980 -avoid-version do not add a version suffix if possible
3981 -bindir BINDIR specify path to binaries directory (for systems where
3983 -dlopen FILE '-dlpreopen' FILE if it cannot be dlopened at runtime
3984 -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
3985 -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
3986 -export-symbols SYMFILE
3988 -export-symbols-regex REGEX
3990 -LLIBDIR search LIBDIR for required installed libraries
3991 -lNAME OUTPUT-FILE requires the installed library libNAME
3992 -module build a library that can dlopened
3993 -no-fast-install disable the fast-install mode
3994 -no-install link a not-installable executable
3995 -no-undefined declare that a library does not refer to external symbols
3996 -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
3997 -objectlist FILE use a list of object files found in FILE to specify objects
3998 -os2dllname NAME force a short DLL name on OS/2 (no effect on other OSes)
3999 -precious-files-regex REGEX
4001 -release RELEASE specify package release information
4002 -rpath LIBDIR the created library will eventually be installed in LIBDIR
4003 -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
4004 -shared only do dynamic linking of libtool libraries
4005 -shrext SUFFIX override the standard shared library file extension
4006 -static do not do any dynamic linking of uninstalled libtool libraries
4007 -static-libtool-libs
4009 -version-info CURRENT[:REVISION[:AGE]]
4011 -weak LIBNAME declare that the target provides the LIBNAME interface
4012 -Wc,FLAG
4013 -Xcompiler FLAG pass linker-specific FLAG directly to the compiler
4014 -Wa,FLAG
4015 -Xassembler FLAG pass linker-specific FLAG directly to the assembler
4016 -Wl,FLAG
4017 -Xlinker FLAG pass linker-specific FLAG directly to the linker
4018 -XCClinker FLAG pass link-specific FLAG to the compiler driver (CC)
4020 All other options (arguments beginning with '-') are ignored.
4026 If the OUTPUT-FILE ends in '.la', then a libtool library is created,
4027 only library objects ('.lo' files) may be specified, and '-rpath' is
4030 If OUTPUT-FILE ends in '.a' or '.lib', then a standard library is created
4033 If OUTPUT-FILE ends in '.lo' or '.$objext', then a reloadable object file
4039 "Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
4044 (typically '/bin/rm'). RM-OPTIONS are options (such as '-f') to be passed
4057 $ECHO "Try '$progname --help' for more information about other modes."
4060 # Now that we've collected a possible --mode arg, show help if necessary
4070 } | $SED -n '1p; 2,$s/^Usage:/ or: /p'
4086 s/^Usage:.*--mode=\([^ ]*\) .*/Description of \1 mode:/'
4099 test -z "$cmd" && \
4102 # Handle -dlopen flags immediately.
4104 test -f "$file" \
4123 if test -z "$dlname"; then
4125 test -n "$library_names" && \
4126 func_warning "'$file' was not linked with '-export-dynamic'"
4133 if test -f "$dir/$objdir/$dlname"; then
4136 if test ! -f "$dir/$dlname"; then
4149 func_warning "'-dlopen' is ignored for non-libtool libraries and objects"
4156 test -n "$absdir" && dir=$absdir
4159 if eval "test -z \"\$$shlibpath_var\""; then
4175 -* | *.la | *.lo ) ;;
4196 if test -n "$shlibpath_var"; then
4203 if test -n "$shlibpath_var"; then
4237 if test -d "$opt"; then
4240 elif test -f "$opt"; then
4252 if test -n "$libs"; then
4253 if test -n "$lt_sysroot"; then
4268 $SED -e "$sysroot_cmd s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \
4269 > $tmpdir/tmp-la
4270 mv -f $tmpdir/tmp-la $lib
4276 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
4278 if test -n "$finish_cmds"; then
4283 if test -n "$finish_eval"; then
4295 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
4296 echo "----------------------------------------------------------------------"
4304 echo "specify the full pathname of the library, or use the '-LLIBDIR'"
4306 if test -n "$shlibpath_var"; then
4307 echo " - add LIBDIR to the '$shlibpath_var' environment variable"
4310 if test -n "$runpath_var"; then
4311 echo " - add LIBDIR to the '$runpath_var' environment variable"
4314 if test -n "$hardcode_libdir_flag_spec"; then
4318 $ECHO " - use the '$flag' linker flag"
4320 if test -n "$admincmds"; then
4321 $ECHO " - have your system administrator run these commands:$admincmds"
4323 if test -f /etc/ld.so.conf; then
4324 echo " - have your system administrator add LIBDIR to '/etc/ld.so.conf'"
4330 solaris2.[6789]|solaris2.1[0-9])
4338 echo "----------------------------------------------------------------------"
4389 if test -n "$dest"; then
4396 -d) isdir=: ;;
4397 -f)
4402 -g | -m | -o)
4405 -s)
4406 stripme=" -s"
4409 -*)
4413 if test -n "$prev"; then
4414 if test X-m = "X$prev" && test -n "$install_override_mode"; then
4429 if test -n "$arg2"; then
4435 test -z "$install_prog" && \
4438 test -n "$prev" && \
4441 if test -n "$install_override_mode" && $no_mode; then
4444 func_append install_shared_prog " -m $func_quote_arg_result"
4448 if test -z "$files"; then
4449 if test -z "$dest"; then
4461 test -d "$dest" && isdir=:
4472 test "$#" -gt 1 && \
4476 [\\/]* | [A-Za-z]:[\\/]*) ;;
4536 if test -n "$relink_command"; then
4538 inst_prefix_dir=`$ECHO "$destdir" | $SED -e "s%$libdir\$%%"`
4545 # but it's something to keep an eye on.
4549 if test -n "$inst_prefix_dir"; then
4551 …relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_…
4563 if test -n "$1"; then
4568 test -n "$relink_command" && srcname=${realname}T
4590 if test -n "$tstripme" && test -n "$striplib"; then
4594 if test "$#" -gt 0; then
4596 # Try 'ln -sf' first, because the 'ln' binary might depend on
4597 # the symlink we replace! Solaris /bin/ln does not understand -f,
4598 # so we also need to try rm && ln -s.
4602 …&& func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $rea…
4611 # Install the pseudo-library for information purposes.
4618 test -n "$old_library" && func_append staticlibs " $dir/$old_library"
4625 if test -n "$destname"; then
4633 # Deduce the name of the destination old-style object file.
4649 test -n "$destfile" && \
4654 # Deduce the name of the old-style object file.
4664 if test -n "$destname"; then
4678 if test ! -f "$file"; then
4708 test -z "$generated_by_libtool_version" && \
4715 if test -f "$lib"; then
4719 if test -n "$libdir" && test ! -f "$libfile"; then
4729 if test no = "$fast_install" && test -n "$relink_command"; then
4779 $opt_dry_run || if test -n "$outputname"; then
4797 if test -n "$stripme" && test -n "$old_striplib"; then
4805 test -n "$future_libdirs" && \
4806 func_warning "remember to run '$progname --finish$future_libdirs'"
4808 if test -n "$current_libdirs"; then
4810 $opt_dry_run && current_libdirs=" -n$current_libdirs"
4811 exec_cmd='$SHELL "$progpath" $preserve_args --finish$current_libdirs'
4829 my_pic_p=${3-false}
4830 my_prefix=`$ECHO "$my_originator" | $SED 's%[^a-zA-Z0-9]%_%g'`
4833 if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then
4834 if test -n "$NM" && test -n "$global_symbol_pipe"; then
4841 if test -n "$my_dlsyms"; then
4854 /* $my_dlsyms - symbol resolution table for '$my_outputname' dlsym emulation. */
4862 #pragma GCC diagnostic ignored \"-Wstrict-prototypes\"
4868 relocations are performed -- see ld's documentation on pseudo-relocs. */
4895 if test -n "$exclude_expsyms"; then
4897 eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
4902 if test -n "$export_symbols_regex"; then
4904 eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
4910 if test -z "$export_symbols"; then
4914 … eval "$SED -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
4924 …eval "$SED -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_o…
4925 eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
4948 if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then
4951 if test -n "$dlprefile_dlname"; then
4955 # no lafile. user explicitly requested -dlpreopen <import library>.
4961 if test -n "$dlprefile_dlbasename"; then
4969 $SED -e '/I __imp/d' -e 's/I __nm_/D /;s/_nm__//' >> '$nlist'"
4991 test -f "$nlist" || : > "$nlist"
4993 if test -n "$exclude_expsyms"; then
4994 $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
4999 if $GREP -v "^: " < "$nlist" |
5000 if sort -k 3 </dev/null >/dev/null 2>&1; then
5001 sort -k 3
5008 $GREP -v "^: " < "$nlist" > "$nlist"S
5011 if test -f "$nlist"S; then
5018 if test -n "$global_symbol_to_import"; then
5033 if test -s "$nlist"I; then
5038 for (; symbol->name; ++symbol)
5040 …$SED 's/.*/ if (STREQ (symbol->name, \"&\")) symbol->address = (void *) \&&;/' < "$nlist"I >>…
5050 if test -s "$nlist"I; then
5082 *" -static "*) ;;
5086 # a FreeBSD bug that causes programs to crash when -lm is
5088 # pic_flag when linking with -static. The problem exists in
5090 *-*-freebsd2.*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
5091 pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;;
5092 *-*-hpux*)
5103 -pie | -fpie | -fPIE) ;;
5109 …func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable…
5118 if test -f "$output_objdir/$my_outputname.def"; then
5149 # ARG is a GNU/binutils-style import library. Returns
5156 …file_result" | eval "$global_symbol_pipe" | $EGREP ' (_head_[A-Za-z0-9_]+_[ad]l*|[A-Za-z0-9_]+_[ad…
5157 test -n "$func_cygming_gnu_implib_tmp"
5162 # ARG is an MS-style import library. Returns
5170 test -n "$func_cygming_ms_implib_tmp"
5185 win32_fileres=`file -L $1 2>/dev/null`
5192 if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
5193 … $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null; then
5206 win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" |
5207 $SED -n -e '
5239 # Platform-specific function to extract the
5250 sharedlib_from_linklib_result=`$DLLTOOL --identify-strict --identify "$1"`
5256 # platform-specific function to extract the name of the
5269 $OBJDUMP -s --section "$1" "$2" 2>/dev/null |
5278 /:[ ]*file format pe[i]\{,1\}-/d
5286 $SED -n '
5307 # 0x302f exports -- but will fail for DLLs whose name actually
5312 $SED -e '/^\./d;/^.\./d;q'
5316 # Platform-specific function to extract the
5321 # does not support the --identify-strict option.
5334 # ms-generated import library
5358 'stat=$?; rm -f "$lockfile"; exit $stat'
5360 $opt_dry_run || rm -f "$lockfile"
5362 if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
5385 [\\/]* | [A-Za-z]:[\\/]*) my_xabs=$my_xlib ;;
5396 my_xlib_u=lt$extracted_serial-$my_xlib ;;
5406 *-darwin*)
5416 …darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true`
5417 if test -n "$darwin_arches"; then
5418 darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'`
5422 func_mkdir_p "unfat-$$/$darwin_base_archive-$darwin_arch"
5423 …$LIPO -thin $darwin_arch -output "unfat-$$/$darwin_base_archive-$darwin_arch/$darwin_base_archive"…
5424 cd "unfat-$$/$darwin_base_archive-$darwin_arch"
5427 $RM "unfat-$$/$darwin_base_archive-$darwin_arch/$darwin_base_archive"
5430 …darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$sed_bas…
5434 darwin_files=`find unfat-$$ -name $darwin_file -print | sort | $NL2SP`
5435 $LIPO -create -output "$darwin_file" $darwin_files
5437 $RM -rf unfat-$$
5449 …my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | sort | $NL…
5468 # the $objdir directory. This is a cygwin/mingw-specific
5472 func_emit_wrapper_arg1=${1-no}
5477 # $output - temporary wrapper script for $objdir/$outputname
5487 # metacharacters that are still active within double-quoted strings.
5491 if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
5496 alias -g '\${1+\"\$@\"}'='\"\$@\"'
5499 case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
5504 # The HP-UX ksh and POSIX shell print the target directory to stdout
5537 # windows platforms, and (c) all begin with the string "--lt-"
5541 # There are only two supported options: --lt-debug and
5542 # --lt-dump-script. There is, deliberately, no --lt-help.
5554 --lt-debug) lt_option_debug=1 ;;
5555 --lt-dump-script)
5556 lt_dump_D=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%/[^/]*$%%'\`
5558 lt_dump_F=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%^.*/%%'\`
5562 --lt-*)
5563 \$ECHO \"Unrecognized --lt- option: '\$lt_opt'\" 1>&2
5570 if test -n \"\$lt_option_debug\"; then
5575 # Used when --lt-debug. Prints its arguments to stdout
5593 *-*-mingw | *-*-os2* | *-cegcc*)
5595 if test -n \"\$lt_option_debug\"; then
5605 if test -n \"\$lt_option_debug\"; then
5619 # Strips options in the --lt-* namespace from \$@ and
5624 *\\ --lt-*)
5628 --lt-*) ;;
5645 file=\`ls -ld \"\$file\" | $SED -n 's/.*-> //p'\`
5646 while test -n \"\$file\"; do
5652 [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
5658 file=\`ls -ld \"\$thisdir/\$file\" | $SED -n 's/.*-> //p'\`
5678 test -n \"\$absdir\" && thisdir=\"\$absdir\"
5683 program=lt-'$outputname'$exeext
5686 if test ! -f \"\$progdir/\$program\" ||
5687 { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | $SED 1q\`; \\
5690 file=\"\$\$-\$program\"
5692 if test ! -d \"\$progdir\"; then
5701 if test -n \"\$relink_command\"; then
5724 if test -f \"\$progdir/\$program\"; then"
5731 if test -n "$dllsearchpath"; then
5739 …if test yes = "$shlibpath_overrides_runpath" && test -n "$shlibpath_var" && test -n "$temp_rpath";…
5744 # Some systems cannot cope with colon-terminated $shlibpath_var
5777 /* $cwrappersource - temporary wrapper executable for $objdir/$outputname
5815 /* declarations of non-ANSI functions */
5913 const char *program_name = "libtool-wrapper"; /* in case xstrdup fails */
5945 …if test yes = "$shlibpath_overrides_runpath" && test -n "$shlibpath_var" && test -n "$temp_rpath";…
5956 if test -n "$dllsearchpath"; then
5971 const char * TARGET_PROGRAM_NAME = "lt-$outputname"; /* hopefully, no .exe */
5982 #define LTWRAPPER_OPTION_PREFIX "--lt-"
5985 static const char *dumpscript_opt = LTWRAPPER_OPTION_PREFIX "dump-script";
6035 have already dealt with, above (inluding dump-script), then
6039 need to make LTWRAPPER_OPTION_PREFIX a configure-time option
6040 or a configure.ac-settable value.
6053 /* The GNU banner must be the first non-error debug message */
6083 /* target_name transforms -- use actual target program name; might have lt- prefix */
6109 /* do NOT want the lt- prefix here, so use actual_cwrapper_name */
6112 /* DO want the lt- prefix here if it exists, so use target_name */
6166 if (rval == -1)
6320 p_len = (size_t) (q - p);
6391 p = tmp_pathspec + strlen (tmp_pathspec) - 1;
6393 p--;
6438 str += len - patlen;
6552 /* some systems can't cope with a ':'-terminated path #' */
6554 while ((len > 0) && IS_PATH_SEPARATOR (new_value[len-1]))
6556 new_value[--len] = '\0';
6594 - Space and tab are interpreted as delimiters. They are not treated as
6596 - Unescaped double quotes are removed from the input. Their only effect is
6599 - Backslashes not followed by double quotes are not special.
6600 - But 2*n+1 backslashes followed by a double quote become
6602 \" -> "
6603 \\\" -> \"
6604 \\\\\" -> \\"
6668 for (j = backslashes + 1; j > 0; j--)
6680 for (j = backslashes; j > 0; j--)
6704 $SED -n -e '
6725 case `eval $file_magic_cmd \"\$1\" 2>/dev/null | $SED -e 10q` in
6740 *" -compat=g "*|*\ -std=c++[0-9][0-9]\ *|*" -library=stdcxx4 "*|*" -library=stlport4 "*)
6755 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
6765 # -no-undefined on the libtool link line when we can be certain
6823 single_module=$wl-single_module
6826 # We need to know -static, to get the right output filenames.
6830 -shared)
6836 -all-static | -static | -static-libtool-libs)
6838 -all-static)
6839 if test yes = "$build_libtool_libs" && test -z "$link_static_flag"; then
6842 if test -n "$link_static_flag"; then
6847 -static)
6848 if test -z "$pic_flag" && test -n "$link_static_flag"; then
6853 -static-libtool-libs)
6854 if test -z "$pic_flag" && test -n "$link_static_flag"; then
6868 test -n "$old_archive_from_new_cmds" && build_old_libs=yes
6871 while test "$#" -gt 0; do
6879 if test -n "$prev"; then
6935 test -f "$arg" \
6947 *-*-darwin*)
6965 # '-mllvm $arg' options when doing the link step.
6970 if test -f "$arg"; then
6977 # A libtool-controlled object.
6987 if test -z "$pic_object" ||
6988 test -z "$non_pic_object" ||
7013 # CHECK ME: I think I busted this. -Ossama
7015 # Preload the old-style object.
7025 # Non-PIC object.
7030 # A standard non-PIC object
7032 if test -z "$pic_object" || test none = "$pic_object"; then
7042 # Only an error if not doing a dry-run.
7076 release=-$arg
7083 [\\/]* | [A-Za-z]:[\\/]*) ;;
7085 func_fatal_error "only absolute run-paths are allowed"
7113 func_append compiler_flags " -Xassembler $qarg"
7115 func_append compile_command " -Xassembler $qarg"
7116 func_append finalize_command " -Xassembler $qarg"
7148 fi # test -n "$prev"
7153 -all-static)
7154 if test -n "$link_static_flag"; then
7155 # See comment for -static flag below, for more details.
7162 -allow-undefined)
7164 func_fatal_error "'-allow-undefined' must not be used because it is the default"
7167 -avoid-version)
7172 -bindir)
7177 -dlopen)
7182 -dlpreopen)
7187 -export-dynamic)
7192 -export-symbols | -export-symbols-regex)
7193 if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
7194 func_fatal_error "more than one -exported-symbols argument is not allowed"
7196 if test X-export-symbols = "X$arg"; then
7204 -framework)
7209 -inst-prefix-dir)
7214 # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
7215 # so, if we see these flags be careful not to treat them like -L
7216 -L[A-Z][A-Z]*:*)
7218 no/*-*-irix* | /*-*-irix*)
7226 -L*)
7227 func_stripname "-L" '' "$arg"
7228 if test -z "$func_stripname_result"; then
7229 if test "$#" -gt 0; then
7230 func_fatal_error "require no space between '-L' and '$1'"
7232 func_fatal_error "need path for '-L' option"
7239 [\\/]* | [A-Za-z]:[\\/]*) ;;
7242 test -z "$absdir" && \
7248 *" -L$dir "* | *" $arg "*)
7254 [\\/]* | [A-Za-z]:[\\/]* | =*) func_append deplibs " $arg" ;;
7255 *) func_append deplibs " -L$dir" ;;
7261 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
7278 -l*)
7279 if test X-lc = "X$arg" || test X-lm = "X$arg"; then
7281 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*)
7285 *-*-os2*)
7287 test X-lc = "X$arg" && continue
7289 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig* | *-*-midnightbsd*)
7291 test X-lc = "X$arg" && continue
7293 *-*-rhapsody* | *-*-darwin1.[012])
7298 *-*-sco3.2v5* | *-*-sco5v6*)
7300 test X-lc = "X$arg" && continue
7302 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
7304 test X-lc = "X$arg" && continue
7307 elif test X-lc_r = "X$arg"; then
7309 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig* | *-*-midnightbsd*)
7310 # Do not include libc_r directly, use -pthread flag.
7319 -mllvm)
7324 -module)
7329 # Tru64 UNIX uses -model [arg] to determine the layout of C++
7331 # Darwin uses the -arch flag to determine output architecture.
7332 -model|-arch|-isysroot|--sysroot)
7340 -pthread)
7352 -mt|-mthreads|-kthread|-Kthread|-pthreads|--thread-safe \
7353 |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
7364 -multi_module)
7365 single_module=$wl-multi_module
7369 -no-fast-install)
7374 -no-install)
7376 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*)
7379 func_warning "'-no-install' is ignored for $host"
7380 func_warning "assuming '-no-fast-install' instead"
7388 -no-undefined)
7393 -objectlist)
7398 -os2dllname)
7403 -o) prev=output ;;
7405 -precious-files-regex)
7410 -release)
7415 -rpath)
7420 -R)
7425 -R*)
7426 func_stripname '-R' '' "$arg"
7430 [\\/]* | [A-Za-z]:[\\/]*) ;;
7436 func_fatal_error "only absolute run-paths are allowed"
7446 -shared)
7447 # The effects of -shared are defined in a previous loop.
7451 -shrext)
7456 -static | -static-libtool-libs)
7457 # The effects of -static are defined in a previous loop.
7458 # We used to do the same as -all-static on platforms that
7465 -thread-safe)
7470 -version-info)
7475 -version-number)
7481 -weak)
7486 -Wc,*)
7487 func_stripname '-Wc,' '' "$arg"
7502 -Wl,*)
7503 func_stripname '-Wl,' '' "$arg"
7519 -Xassembler)
7524 -Xcompiler)
7529 -Xlinker)
7534 -XCClinker)
7539 # -msg_* for osf cc
7540 -msg_*)
7546 # -64, -mips[0-9] enable 64-bit mode for the SGI compiler
7547 # -r[0-9][0-9]* specify processor for the SGI compiler
7548 # -xarch=*, -xtarget=* enable 64-bit mode for the Sun compiler
7549 # +DA*, +DD* enable 64-bit mode for the HP compiler
7550 # -q* compiler args for the IBM compiler
7551 # -m*, -t[45]*, -txscale* architecture-specific flags for GCC
7552 # -F/path path to uninstalled frameworks, gcc on darwin
7553 # -p, -pg, --coverage, -fprofile-* profiling flags for GCC
7554 # -fstack-protector* stack protector flags for GCC
7556 # -tp=* Portland pgcc target processor selection
7557 # --sysroot=* for sysroot support
7558 # -O*, -g*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
7559 # -specs=* GCC specs files
7560 # -stdlib=* select c++ std lib with clang
7561 # -fsanitize=* Clang/GCC memory and address sanitizer
7562 # -fuse-ld=* Linker select flags for GCC
7563 # -Wa,* Pass flags directly to the assembler
7564 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
7565 -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
7566 -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*| \
7567 -specs=*|-fsanitize=*|-fuse-ld=*|-Wa,*)
7576 -Z*)
7578 # OS/2 uses -Zxxx to specify OS/2-specific options
7583 -Zlinker | -Zstack)
7596 -* | +*)
7607 # A libtool-controlled object.
7617 if test -z "$pic_object" ||
7618 test -z "$non_pic_object" ||
7643 # CHECK ME: I think I busted this. -Ossama
7645 # Preload the old-style object.
7655 # Non-PIC object.
7660 # A standard non-PIC object
7662 if test -z "$pic_object" || test none = "$pic_object"; then
7672 # Only an error if not doing a dry-run.
7697 # A libtool-controlled library.
7701 # This library was specified with -dlopen.
7705 # The library was specified with -dlpreopen.
7724 if test -n "$arg"; then
7730 test -n "$prev" && \
7733 if test yes = "$export_dynamic" && test -n "$export_dynamic_flag_spec"; then
7745 if test -n "$shlibpath_var"; then
7779 # that are linked more than once (e.g. -la -lb -la)
7811 notinst_deplibs= # not-installed libtool libraries
7812 notinst_path= # paths that contain not-installed libtool libraries
7821 func_fatal_help "libraries can '-dlopen' only libtool libraries: $file"
7840 # so that -L comes before libs that need it for instance...
7866 # Ignore non-libtool-libs
7896 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
7897 |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
7912 -l*)
7914 func_warning "'-l' is ignored for archives/objects"
7917 func_stripname '-l' '' "$deplib"
7928 if test -f "$lib"; then
7982 ;; # -l
7998 -L*)
8004 func_stripname '-L' '' "$deplib"
8019 func_stripname '-L' '' "$deplib"
8024 func_warning "'-L' is ignored for archives/objects"
8028 ;; # -L
8029 -R*)
8031 func_stripname '-R' '' "$deplib"
8055 # but linking other static libraries is non-portable.
8124 $found || test -f "$lib" \
8151 # Convert "-framework foo" to "foo.ltframework"
8152 if test -n "$inherited_linker_flags"; then
8153 …tmp_inherited_linker_flags=`$ECHO "$inherited_linker_flags" | $SED 's/-framework \([^ $]*\)/\1.ltf…
8161 dependency_libs=`$ECHO " $dependency_libs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
8165 test -n "$dlopen" && func_append dlfiles " $dlopen"
8166 test -n "$dlpreopen" && func_append dlprefiles " $dlpreopen"
8172 if test -z "$libdir"; then
8173 if test -z "$old_library"; then
8198 if test -n "$old_library" &&
8207 if test -z "$linklib"; then
8211 # This library was specified with -dlopen.
8213 test -z "$libdir" \
8214 && func_fatal_error "cannot -dlopen a convenience library: '$lib'"
8215 if test -z "$dlname" ||
8232 [\\/]* | [A-Za-z]:[\\/]*) abs_ladir=$ladir ;;
8235 if test -z "$abs_ladir"; then
8247 if test ! -f "$lt_sysroot$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
8258 if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
8273 # This library was specified with -dlpreopen.
8275 if test -z "$libdir" && test prog = "$linkmode"; then
8276 func_fatal_error "only libraries may -dlpreopen a convenience library: '$lib'"
8279 # special handling for platforms with PE-DLLs.
8289 if test -n "$dlname"; then
8297 test -z "$libdir" && \
8304 if test -n "$old_library"; then
8308 test -z "$libdir" && \
8311 elif test -n "$dlname"; then
8320 if test -z "$libdir"; then
8339 if test no != "$link_all_deplibs" || test -z "$library_names" ||
8347 -L*) func_stripname '-L' '' "$deplib"
8371 if test -n "$library_names" &&
8374 test -z "$old_library"; }; then
8376 if test -n "$shlibpath_var" && test -z "$avoidtemprpath"; then
8385 # Skip directories that are in the system default run-time
8410 test -n "$library_names"; }; }; then
8421 if test -n "$library_names" &&
8422 { test no = "$use_static_libs" || test -z "$old_library"; }; then
8438 # Warn about portability, can't link against -module's on some
8447 if test -z "$dlopenmodule" && test yes = "$shouldnotlink" && test link = "$pass"; then
8459 # Skip directories that are in the system default run-time
8481 if test -n "$old_archive_from_expsyms_cmds"; then
8489 if test -n "$dlname"; then
8491 elif test -n "$soname_spec"; then
8495 func_arith $current - $age
8497 versuffix=-$major
8510 newlib=libimp-$func_stripname_result.a
8513 if test -f "$output_objdir/$soname-def"; then :
8520 if test -f "$output_objdir/$newlib"; then :; else
8527 fi # test -n "$old_archive_from_expsyms_cmds"
8539 *-*-sco3.2v5.0.[024]*) add_dir=-L$dir ;;
8540 *-*-sysv4*uw2*) add_dir=-L$dir ;;
8541 *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
8542 *-*-unixware7*) add_dir=-L$dir ;;
8543 *-*-darwin* )
8544 # if the lib is a (non-dlopened) module then we cannot
8546 if /usr/bin/file -L $add 2> /dev/null |
8550 if test -z "$old_library"; then
8557 elif test -n "$old_library"; then
8564 *-*-sunos*) add_shlibpath=$dir ;;
8566 add_dir=-L$dir
8567 add=-l$name
8570 add=-l$name
8580 add_dir=-L$absdir
8582 if test -n "$inst_prefix_dir"; then
8585 func_append add_dir " -L$inst_prefix_dir$libdir"
8589 add=-l$name
8592 add=-l$name
8604 if test -n "$add_shlibpath"; then
8611 test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
8612 test -n "$add" && compile_deplibs="$add $compile_deplibs"
8614 test -n "$add_dir" && deplibs="$add_dir $deplibs"
8615 test -n "$add" && deplibs="$add $deplibs"
8634 if test -f "$inst_prefix_dir$libdir/$linklib"; then
8640 add_dir=-L$libdir
8641 add=-l$name
8647 add=-l$name
8649 if test -n "$inst_prefix_dir" &&
8650 test -f "$inst_prefix_dir$libdir/$linklib"; then
8657 add_dir=-L$libdir
8659 if test -n "$inst_prefix_dir"; then
8662 func_append add_dir " -L$inst_prefix_dir$libdir"
8666 add=-l$name
8670 test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
8671 test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
8673 test -n "$add_dir" && deplibs="$add_dir $deplibs"
8674 test -n "$add" && deplibs="$add $deplibs"
8682 test -n "$old_library" && linklib=$old_library
8686 compile_deplibs="-l$name -L$dir $compile_deplibs"
8687 finalize_deplibs="-l$name -L$dir $finalize_deplibs"
8705 echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
8706 if test -z "$global_symbol_pipe"; then
8727 if test -n "$dependency_libs" &&
8731 # Extract -R from dependency_libs
8735 -R*) func_stripname '-R' '' "$libdir"
8755 -L*) func_stripname '-L' '' "$deplib"
8773 -L*) path=$deplib ;;
8781 [\\/]* | [A-Za-z]:[\\/]*) absdir=$dir ;;
8784 if test -z "$absdir"; then
8792 *-*-darwin*)
8794 eval deplibrary_names=`$SED -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
8795 if test -n "$deplibrary_names"; then
8799 if test -f "$absdir/$objdir/$depdepl"; then
8801 darwin_install_name=`$OTOOL -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
8802 if test -z "$darwin_install_name"; then
8803 … darwin_install_name=`$OTOOL64 -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
8805 func_append compiler_flags " $wl-dylib_file $wl$darwin_install_name:$depdepl"
8806 func_append linker_flags " -dylib_file $darwin_install_name:$depdepl"
8812 path=-L$absdir/$objdir
8816 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
8817 test -z "$libdir" && \
8822 path=-L$absdir
8839 …r_flags "`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
8879 -L*) new_libs="$deplib $new_libs" ;;
8880 -R*) ;;
8894 # using -Wl,-lname, so that libtool does not consider it
8911 -L*)
8928 case `$CC -V 2>&1 | $SED 5q` in
8933 func_append postdeps ' -library=Cstd -library=Crun'
8946 func_append postdeps ' -library=Cstd -library=Crun'
8963 if test -n "$i"; then
8978 if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then
8979 func_warning "'-dlopen' is ignored for archives"
8983 *\ -l* | *\ -L*)
8984 func_warning "'-l' and '-L' are ignored for archives" ;;
8987 test -n "$rpath" && \
8988 func_warning "'-rpath' is ignored for archives"
8990 test -n "$xrpath" && \
8991 func_warning "'-R' is ignored for archives"
8993 test -n "$vinfo" && \
8994 func_warning "'-version-info/-version-number' is ignored for archives"
8996 test -n "$release" && \
8997 func_warning "'-release' is ignored for archives"
8999 test -n "$export_symbols$export_symbols_regex" && \
9000 func_warning "'-export-symbols' is ignored for archives"
9034 if test -n "$objs"; then
9036 …func_fatal_error "cannot build libtool library '$output' from non-libtool objects on this host:$ob…
9039 $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
9046 || func_warning "'-dlopen self' is ignored for libtool libraries"
9050 test 1 -lt "$#" \
9051 && func_warning "ignoring multiple '-rpath's for a libtool library"
9056 if test -z "$rpath"; then
9067 test -n "$vinfo" && \
9068 func_warning "'-version-info/-version-number' is ignored for convenience libraries"
9070 test -n "$release" && \
9071 func_warning "'-release' is ignored for convenience libraries"
9080 test -n "$7" && \
9081 func_fatal_help "too many parameters to '-version-info'"
9093 # There are really only two kinds -- those that
9101 darwin|freebsd-elf|linux|midnightbsd-elf|osf|windows|none)
9107 freebsd-aout|qnx|sunos)
9130 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]) ;;
9138 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]) ;;
9146 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]) ;;
9153 if test "$age" -gt "$current"; then
9168 func_arith $current - $age
9174 …xlcverstring="$wl-compatibility_version $wl$minor_current $wl-current_version $wl$minor_current.$r…
9175 verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
9179 …verstring="$wl-compatibility_version $wl$minor_current $wl-current_version $wl$minor_current.$revi…
9182 … verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
9187 freebsd-aout)
9192 freebsd-elf | midnightbsd-elf)
9193 func_arith $current - $age
9200 func_arith $current - $age
9202 func_arith $current - $age + 1
9214 while test 0 -ne "$loop"; do
9215 func_arith $revision - $loop
9217 func_arith $loop - 1
9228 func_arith $current - $age
9234 func_arith $current - $age
9241 while test 0 -ne "$loop"; do
9242 func_arith $current - $loop
9244 func_arith $loop - 1
9269 # Use '-' rather than '.', since we only want one
9271 func_arith $current - $age
9273 versuffix=-$major
9282 if test -z "$vinfo" && test -n "$release"; then
9315 func_fatal_error "can't build $host shared library unless -no-undefined is specified"
9339 if test -n "$precious_files_regex"; then
9340 if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
9350 test -n "$removelist" && \
9365 # deplibs=`$ECHO "$deplibs " | $SED "s% -L$path % %g"`
9366 # dependency_libs=`$ECHO "$dependency_libs " | $SED "s% -L$path % %g"`
9369 if test -n "$xrpath"; then
9374 func_append temp_xrpath " -R$func_replace_sysroot_result"
9406 if test -n "$rpath"; then
9408 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*)
9411 *-*-rhapsody* | *-*-darwin1.[012])
9415 *-*-netbsd*)
9418 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-midnightbsd*)
9421 *-*-sco3.2v5* | *-*-sco5v6*)
9424 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
9430 func_append deplibs " -lc"
9443 # release should show up in the -l (ie -lgmp5) so we don't want to
9469 if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
9473 -l*)
9474 func_stripname -l '' "$i"
9484 if test -n "$i"; then
9489 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0; then
9513 -l*)
9514 func_stripname -l '' "$i"
9517 if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
9527 if test -n "$i"; then
9532 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0; then
9566 -l*)
9567 func_stripname -l '' "$a_deplib"
9577 if test -n "$a_deplib"; then
9579 if test -n "$file_magic_glob"; then
9580 libnameglob=`func_echo_all "$libname" | $SED -e $file_magic_glob`
9584 test yes = "$want_nocaseglob" && nocaseglob=`shopt -p nocaseglob`
9587 shopt -s nocaseglob
9588 potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
9591 potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
9595 if ls -lLd "$potent_lib" 2>/dev/null |
9596 $GREP " -> " >/dev/null; then
9605 while test -h "$potlib" 2>/dev/null; do
9606 potliblink=`ls -ld $potlib | $SED 's/.* -> //'`
9608 [\\/]* | [A-Za-z]:[\\/]*) potlib=$potliblink;;
9613 $SED -e 10q |
9622 if test -n "$a_deplib"; then
9630 if test -z "$potlib"; then
9639 # Add a -L argument.
9650 -l*)
9651 func_stripname -l '' "$a_deplib"
9661 if test -n "$a_deplib"; then
9664 potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
9666 potlib=$potent_lib # see symlink-check above in file_magic test
9676 if test -n "$a_deplib"; then
9684 if test -z "$potlib"; then
9693 # Add a -L argument.
9701 tmp_deplibs=`$ECHO " $deplibs" | $SED 's/ -lc$//; s/ -[LR][^ ]*//g'`
9712 echo "*** Warning: inter-library dependencies are not supported in this platform."
9714 echo "*** Warning: inter-library dependencies are not known to be supported."
9716 echo "*** All declared inter-library dependencies are being dropped."
9729 *-*-rhapsody* | *-*-darwin1.[012])
9731 newdeplibs=`$ECHO " $newdeplibs" | $SED 's/ -lc / System.ltframework /'`
9738 echo "*** Warning: libtool could not satisfy all declared inter-library"
9741 echo "*** application is linked with the -dlopen flag."
9742 if test -z "$global_symbol_pipe"; then
9757 echo "*** The inter-library dependencies that have been dropped here will be"
9759 echo "*** or is declared to -dlopen it."
9765 echo "*** it was explicitly requested with -no-undefined,"
9780 # Time to change all our "foo.ltframework" stuff back to "-framework foo"
9782 *-*-darwin*)
9783 newdeplibs=`$ECHO " $newdeplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
9784 …er_flags=`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
9785 deplibs=`$ECHO " $deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
9794 *" -L$path/$objdir "*) ;;
9797 *" -L$path/$objdir "*)
9798 func_append new_libs " -L$path/$objdir" ;;
9805 -L*)
9816 # All the library-specific variables (install_libdir is set above).
9835 if test -n "$hardcode_libdir_flag_spec"; then
9836 if test -n "$hardcode_libdir_separator"; then
9839 if test -z "$hardcode_libdirs"; then
9855 elif test -n "$runpath_var"; then
9863 if test -n "$hardcode_libdir_separator" &&
9864 test -n "$hardcode_libdirs"; then
9868 if test -n "$runpath_var" && test -n "$perm_rpath"; then
9876 test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
9881 if test -n "$shlibpath"; then
9893 if test -n "$soname_spec"; then
9898 if test -z "$dlname"; then
9910 test -z "$pic_flag" && libobjs=`$ECHO "$libobjs" | $SP2NL | $SED "$lo2o" | $NL2SP`
9914 if test -n "$export_symbols" && test -n "$include_expsyms"; then
9923 if test -n "$export_symbols" && test -z "$export_symbols_regex"; then
9941 if test -z "$export_symbols"; then
9942 if test yes = "$always_export_symbols" || test -n "$export_symbols_regex"; then
9964 && { test "$len" -lt "$max_cmd_len" \
9965 || test "$max_cmd_len" -le -1; }
9969 elif test -n "$nm_file_list_spec"; then
9998 if test -n "$export_symbols_regex" && test : != "$skipped_export"; then
9999 func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
10005 if test -n "$export_symbols" && test -n "$include_expsyms"; then
10007 test -n "$orig_export_symbols" && tmp_export_symbols=$orig_export_symbols
10011 if test : != "$skipped_export" && test -n "$orig_export_symbols"; then
10019 …$opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $outp…
10022 $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
10036 if test -n "$convenience"; then
10037 if test -n "$whole_archive_flag_spec" &&
10039 test -z "$libobjs"; then
10044 if test -n "$whole_archive_flag_spec"; then
10058 if test yes = "$thread_safe" && test -n "$thread_safe_flag_spec"; then
10069 if test yes = "$module" && test -n "$module_cmds"; then
10070 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
10078 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
10090 test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
10105 if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
10120 if test -n "$save_libobjs" && test : != "$skipped_export" && test yes = "$with_gnu_ld"; then
10133 elif test -n "$save_libobjs" && test : != "$skipped_export" && test -n "$file_list_spec"; then
10153 if test -n "$save_libobjs"; then
10155 output=$output_objdir/$output_la-$k.$objext
10167 if test -z "$objlist" ||
10168 test "$len" -lt "$max_cmd_len"; then
10173 if test 1 -eq "$k"; then
10183 last_robj=$output_objdir/$output_la-$k.$objext
10186 output=$output_objdir/$output_la-$k.$objext
10196 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
10199 if test -n "$last_robj"; then
10208 ${skipped_export-false} && {
10214 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
10216 if test -n "$last_robj"; then
10221 test -n "$save_libobjs" &&
10247 if test -n "$export_symbols_regex" && ${skipped_export-false}; then
10248 func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
10253 ${skipped_export-false} && {
10254 if test -n "$export_symbols" && test -n "$include_expsyms"; then
10256 test -n "$orig_export_symbols" && tmp_export_symbols=$orig_export_symbols
10260 if test -n "$orig_export_symbols"; then
10268 …$opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $outp…
10271 … $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
10279 if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
10287 if test yes = "$module" && test -n "$module_cmds"; then
10288 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
10294 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
10302 if test -n "$delfiles"; then
10308 if test -n "$dlprefiles"; then
10345 if test -n "$convenience"; then
10346 if test -z "$whole_archive_flag_spec"; then
10361 # If -module or -export-dynamic was specified, set the dlname.
10370 if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then
10371 func_warning "'-dlopen' is ignored for objects"
10375 *\ -l* | *\ -L*)
10376 func_warning "'-l' and '-L' are ignored for objects" ;;
10379 test -n "$rpath" && \
10380 func_warning "'-rpath' is ignored for objects"
10382 test -n "$xrpath" && \
10383 func_warning "'-R' is ignored for objects"
10385 test -n "$vinfo" && \
10386 func_warning "'-version-info' is ignored for objects"
10388 test -n "$release" && \
10389 func_warning "'-release' is ignored for objects"
10393 test -n "$objs$old_deplibs" && \
10394 func_fatal_error "cannot build library object '$output' from non-libtool objects"
10410 # single-version convenience libraries. Whenever we create
10411 # different ones for PIC/non-PIC, this we'll have to duplicate
10415 # if reload_cmds runs $LD directly, get rid of -Wl from
10421 if test -n "$convenience"; then
10422 if test -n "$whole_archive_flag_spec"; then
10424 test -n "$wl" || tmp_whole_archive_flags=`$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'`
10438 # Create the old-style object.
10445 if test -z "$libobj"; then
10446 if test -n "$gentop"; then
10454 if test -n "$gentop"; then
10465 if test -n "$pic_flag" || test default != "$pic_mode"; then
10472 if test -n "$gentop"; then
10484 test -n "$vinfo" && \
10485 func_warning "'-version-info' is ignored for programs"
10487 test -n "$release" && \
10488 func_warning "'-release' is ignored for programs"
10495 *-*-rhapsody* | *-*-darwin1.[012])
10497 compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's/ -lc / System.ltframework /'`
10498 finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's/ -lc / System.ltframework /'`
10503 *-*-darwin*)
10507 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
10509 func_append compile_command " $wl-bind_at_load"
10510 func_append finalize_command " $wl-bind_at_load"
10514 # Time to change all our "foo.ltframework" stuff back to "-framework foo"
10515 compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
10516 finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
10526 *" -L$path/$objdir "*) ;;
10529 *" -L$path/$objdir "*)
10530 func_append new_libs " -L$path/$objdir" ;;
10537 -L*)
10552 if test -n "$rpath$xrpath"; then
10555 # This is the magic to use -rpath.
10567 if test -n "$hardcode_libdir_flag_spec"; then
10568 if test -n "$hardcode_libdir_separator"; then
10569 if test -z "$hardcode_libdirs"; then
10585 elif test -n "$runpath_var"; then
10592 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
10593 testbindir=`$ECHO "$libdir" | $SED -e 's*/lib$*/bin*'`
10608 if test -n "$hardcode_libdir_separator" &&
10609 test -n "$hardcode_libdirs"; then
10618 if test -n "$hardcode_libdir_flag_spec"; then
10619 if test -n "$hardcode_libdir_separator"; then
10620 if test -z "$hardcode_libdirs"; then
10636 elif test -n "$runpath_var"; then
10644 if test -n "$hardcode_libdir_separator" &&
10645 test -n "$hardcode_libdirs"; then
10651 if test -n "$libobjs" && test yes = "$build_old_libs"; then
10660 if test -n "$prelink_cmds"; then
10688 if test -n "$postlink_cmds"; then
10690 …postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUT…
10695 if test -f "$output_objdir/${outputname}S.$objext"; then
10702 if test -n "$compile_shlibpath$finalize_shlibpath"; then
10705 if test -n "$finalize_shlibpath"; then
10711 if test -n "$runpath_var"; then
10712 if test -n "$perm_rpath"; then
10720 if test -n "$finalize_perm_rpath"; then
10740 if test -n "$postlink_cmds"; then
10742 …postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUT…
10776 $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname
10780 if test -n "$postlink_cmds"; then
10782 …stlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g…
10790 if test -n "$relink_command"; then
10793 if eval test -z \"\${$var+set}\"; then
10794 …relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relin…
10795 elif eval var_value=\$$var; test -z "$var_value"; then
10828 cwrappersource=$output_path/$objdir/lt-$output_name.c
10836 # because it contains $host paths and files. If cross-
10840 $LTCC $LTCFLAGS -o $cwrapper $cwrappersource
10851 $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result
10870 # See if we need to build an old-fashioned archive.
10886 $preload && test -f "$symfileobj" \
10892 if test -n "$addlibs"; then
10901 if test -n "$old_archive_from_new_cmds" && test yes = "$build_libtool_libs"; then
10906 if test -n "$dlprefiles"; then
10924 done | sort | sort -uc >/dev/null 2>&1); then
10944 newobj=lt$counter-$objbase
10949 *) if test ! -f "$gentop/$newobj"; then break; fi ;;
10965 if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
10967 elif test -n "$archiver_list_spec"; then
11001 if test "$len" -lt "$max_cmd_len"; then
11009 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
11017 if test -z "$oldobjs"; then
11027 test -n "$generated" && \
11039 if eval test -z \"\${$var+set}\"; then
11040 …relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relin…
11041 elif eval var_value=\$$var; test -z "$var_value"; then
11050 …relink_command="($func_quote_result; $SHELL \"$progpath\" $preserve_args --mode=relink $libtool_ar…
11061 if test -z "$install_libdir"; then
11073 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result`
11074 test -z "$libdir" && \
11078 -L*)
11079 func_stripname -L '' "$deplib"
11081 func_append newdependency_libs " -L$func_replace_sysroot_result"
11083 -R*)
11084 func_stripname -R '' "$deplib"
11086 func_append newdependency_libs " -R$func_replace_sysroot_result"
11099 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
11100 test -z "$libdir" && \
11112 # Only pass preopened files to the pseudo-archive (for
11118 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
11119 test -z "$libdir" && \
11130 [\\/]* | [A-Za-z]:[\\/]*) abs=$lib ;;
11139 [\\/]* | [A-Za-z]:[\\/]*) abs=$lib ;;
11149 # systems that can't hard-code library paths into their executables
11152 # libtool variables, so we have to hard-code the OSs to which it
11159 # If a -bindir argument was supplied, place the dll there.
11160 if test -n "$bindir"; then
11170 # $outputname - a libtool library file
11202 # Should we warn about portability when linking against -modules?
11211 if test no,yes = "$installed,$need_relink" && test -n "$relink_command"; then
11248 -f) func_append RM " $arg"; rmforce=: ;;
11249 -*) func_append RM " $arg" ;;
11254 test -z "$RM" && \
11279 # Don't error if the file doesn't exist and rm -f was used.
11280 if { test -L "$file"; } >/dev/null 2>&1 ||
11281 { test -h "$file"; } >/dev/null 2>&1 ||
11282 test -f "$file"; then
11284 elif test -d "$file"; then
11303 test -n "$old_library" && func_append rmfiles " $odir/$old_library"
11309 *) test -n "$dlname" && func_append rmfiles " $odir/$dlname" ;;
11311 test -n "$libdir" && func_append rmfiles " $odir/$name $odir/${name}i"
11314 if test -n "$library_names"; then
11319 if test -n "$old_library"; then
11337 if test -n "$pic_object" && test none != "$pic_object"; then
11341 # Add non-PIC object to the list of files to remove.
11342 if test -n "$non_pic_object" && test none != "$non_pic_object"; then
11377 if test yes = "$fast_install" && test -n "$relink_command"; then
11378 func_append rmfiles " $odir/lt-$name"
11381 func_append rmfiles " $odir/lt-$noexename.c"
11392 if test -d "$dir"; then
11404 test -z "$opt_mode" && {
11409 test -z "$exec_cmd" && \
11412 if test -n "$exec_cmd"; then
11427 # time on that platform, so we default to a shared-only configuration.
11428 # If a disable-shared tag is given, we'll fallback to a static-only
11429 # configuration. But we'll never go from static-only to shared-only.
11431 # ### BEGIN LIBTOOL TAG CONFIG: disable-shared
11434 # ### END LIBTOOL TAG CONFIG: disable-shared
11436 # ### BEGIN LIBTOOL TAG CONFIG: disable-static
11438 # ### END LIBTOOL TAG CONFIG: disable-static
11441 # mode:shell-script
11442 # sh-indentation:2