Lines Matching +full:libltdl +full:- +full:dev
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.
34 VERSION="2.4.7 Debian-2.4.7-4"
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
166 { eval $1=; (eval unset $1) >/dev/null 2>&1 && eval unset $1 || : ; }
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" && {
247 echo "$_G_sed_script" 2>/dev/null | sed 99q >conftest.sed
262 "$_G_path_prog" -f conftest.sed <conftest.nl >conftest.out 2>/dev/null || break
263 diff conftest.out conftest.nl >/dev/null 2>&1 || 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
299 diff conftest.out conftest.nl >/dev/null 2>&1 || 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='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" \
594 && (eval 'x=a; x+=" b"; test "a b" = "$x"') 2>/dev/null \
618 # ----------------------------
641 # --------------------------
645 # func_append_uniq options " --another-option option-argument"
647 # will only append to $options if " --another-option option-argument "
665 # ------------------
667 test -z "$_G_HAVE_ARITH_OP" \
668 && (eval 'test 2 = $(( 1 + 1 ))') 2>/dev/null \
689 # ------------------
722 # -------------------------------------------
734 # --------------------------------------------------------
755 # ----------------
774 # --------------------
775 # Invoke $ECHO with all args, space-separated.
783 # ------------------------------
800 test -n "$_G_tc" && {
819 # -----------------
832 # -----------------------
844 # -----------------------------
850 $GREP "$1" "$2" >/dev/null 2>&1
855 # ---------------
858 test -z "$_G_HAVE_XSI_OPS" \
860 test 5aa/bb/cc = "${#x}${x%%/*}${x%/*}${x#*/}${x##*/}"') 2>/dev/null \
875 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
880 # func_mkdir_p DIRECTORY-PATH
881 # ---------------------------
882 # Make sure the entire path to DIRECTORY-PATH is available.
890 if test -n "$_G_directory_path" && test : != "$opt_dry_run"; then
892 # Protect directory names starting with '-'
894 -*) _G_directory_path=./$_G_directory_path ;;
898 while test ! -d "$_G_directory_path"; do
907 _G_directory_path=`$ECHO "$_G_directory_path" | $SED -e "$sed_dirname"`
917 $MKDIR "$_G_dir" 2>/dev/null || :
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 Bootstrap Authors
1543 # <http://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
1730 ## --------------- ##
1732 ## --------------- ##
1754 # -s, --silent don'\''t print informational messages
1771 # while test $# -gt 0; do
1774 # --silent|-s) opt_silent=:
1777 # # Separate non-argument short options:
1778 # -s*) func_split_short_opt "$_G_opt"
1780 # "-$func_split_short_opt_arg" ${1+"$@"}
1805 # '--silent' and '--verbose' options are mutually exclusive."
1815 # ----------------------------
1827 # ---------------------
1850 # As we (func_options) are top-level options-parser function and
1860 # --------------------------
1881 # ---------------------------
1890 while test $# -gt 0; do
1899 # this if-branch). No need to quote it again.
1904 test $# -gt 0 || break
1907 # and thus we remove _G_opt from "$@" and need to re-quote.
1912 --debug|-x) debug_cmd='set -x'
1917 --no-warnings|--no-warning|--no-warn)
1918 set dummy --warnings none ${1+"$@"}
1922 --warnings|--warning|-W)
1951 --verbose|-v) opt_verbose=: ;;
1952 --version) func_version ;;
1953 -\?|-h) func_usage ;;
1954 --help) func_help ;;
1957 --*=*) func_split_equals "$_G_opt"
1964 -W*)
1971 # Separate non-argument short options:
1972 -\?*|-h*|-v*|-x*)
1975 "-$func_split_short_opt_arg" ${1+"$@"}
1979 --) _G_parse_options_requote=: ; break ;;
1980 -*) func_fatal_help "unrecognised option: '$_G_opt'" ;;
2001 # ------------------------------
2009 # Display all warnings if -W was not given.
2010 test -n "$opt_warning_types" || opt_warning_types=" $warning_categories"
2021 ## ----------------- ##
2023 ## ----------------- ##
2026 # hookable option parser framework in ascii-betical order.
2030 # ----------------------
2045 # ---------
2058 # ------------------------
2071 # ------------------------
2074 test -z "$_G_HAVE_XSI_OPS" \
2076 test 5aa/bb/cc = "${#x}${x%%/*}${x%/*}${x#*/}${x##*/}"') 2>/dev/null \
2107 # -----------------------------
2126 func_split_short_opt_name=`expr "x$1" : 'x\(-.\)'`
2127 func_split_short_opt_arg=`expr "x$1" : 'x-.\(.*\)$'`
2133 # ----------
2140 $ECHO "Run '$progname --help |${PAGER-more}' for full usage"
2146 # ------------------
2154 $SED -n 's|^# ||
2166 # ------------
2182 $SED -n '
2202 s|\((C)\)[ 0-9,-]*[ ,-]\([1-9][0-9]* \)|\1 \2|
2212 # mode: shell-script
2213 # sh-indentation: 2
2214 # eval: (add-hook 'before-save-hook 'time-stamp)
2215 # time-stamp-pattern: "30/scriptversion=%:y-%02m-%02d.%02H; # UTC"
2216 # time-stamp-time-zone: "UTC"
2224 # ----------------
2244 # -------------------
2255 ## ---------------- ##
2257 ## ---------------- ##
2262 usage='$progpath [OPTION]... [MODE-ARG]...'
2264 # Short help message in response to '-h'.
2266 --config show all configuration variables
2267 --debug enable verbose shell tracing
2268 -n, --dry-run display commands without modifying any files
2269 --features display basic configuration information and exit
2270 --mode=MODE use operation mode MODE
2271 --no-warnings equivalent to '-Wnone'
2272 --preserve-dup-deps don't remove duplicate dependency libraries
2273 --quiet, --silent don't print informational messages
2274 --tag=TAG use configuration variables from tag TAG
2275 -v, --verbose print more informational messages than default
2276 --version print version information
2277 -W, --warnings=CATEGORY report the warnings falling in CATEGORY [all]
2278 -h, --help, --help-all print short, long, or detailed help message
2281 # Additional text appended to 'usage_message' in response to '--help'.
2299 MODE-ARGS vary depending on the MODE. When passed as first option,
2300 '--mode=MODE' may be abbreviated as 'MODE' or a unique abbreviation of that.
2301 Try '$progname --help --mode=MODE' for a more detailed description of MODE.
2306 host-triplet: $host
2311 version: $progname $scriptversion Debian-2.4.7-4
2312 automake: `($AUTOMAKE --version) 2>/dev/null |$SED 1q`
2313 autoconf: `($AUTOCONF --version) 2>/dev/null |$SED 1q`
2315 Report bugs to <bug-libtool@gnu.org>.
2322 # func_lo2o OBJECT-NAME
2323 # ---------------------
2324 # Transform OBJECT-NAME from a '.lo' suffix to the platform specific
2339 # func_xform LIBOBJ-OR-SOURCE
2340 # ---------------------------
2341 # Transform LIBOBJ-OR-SOURCE from a '.o' or '.c' (or otherwise)
2342 # suffix to a '.lo' libtool-object suffix.
2362 # -------------------------------
2374 # -----------
2386 … $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath"
2394 # -------------
2415 # -----------------------
2430 *[!-_A-Za-z0-9,/]*)
2440 if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then
2445 # also don't use non-portable quotes within backquotes within
2447 extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"`
2458 # ------------------------
2465 if test -z "$macro_version"; then
2495 # -----------------------------
2517 # Shorthand for --mode=foo, only valid as the first argument
2520 shift; set dummy --mode clean ${1+"$@"}; shift
2523 shift; set dummy --mode compile ${1+"$@"}; shift
2526 shift; set dummy --mode execute ${1+"$@"}; shift
2529 shift; set dummy --mode finish ${1+"$@"}; shift
2532 shift; set dummy --mode install ${1+"$@"}; shift
2535 shift; set dummy --mode link ${1+"$@"}; shift
2538 shift; set dummy --mode uninstall ${1+"$@"}; shift
2555 # ---------------------------------
2565 while test $# -gt 0; do
2570 --dry-run|--dryrun|-n)
2574 --config) func_config ;;
2576 --dlopen|-dlopen)
2582 --preserve-dup-deps)
2585 --features) func_features ;;
2587 --finish) set dummy --mode finish ${1+"$@"}; shift ;;
2589 --help) opt_help=: ;;
2591 --help-all) opt_help=': help-all' ;;
2593 --mode) test $# = 0 && func_missing_arg $_G_opt && break
2608 --no-silent|--no-quiet)
2613 --no-warnings|--no-warning|--no-warn)
2618 --no-verbose)
2623 --silent|--quiet)
2629 --tag) test $# = 0 && func_missing_arg $_G_opt && break
2636 --verbose|-v) opt_quiet=false
2661 # ---------------------------------
2666 # save first non-option argument
2667 if test 0 -lt $#; then
2672 # preserve --debug
2673 test : = "$debug_cmd" || func_append preserve_args " --debug"
2698 # Only execute mode is allowed to have -dlopen flags.
2699 if test -n "$opt_dlopen" && test execute != "$opt_mode"; then
2700 func_error "unrecognized option '-dlopen'"
2705 # Change the help message to a mode-specific one.
2707 help="Try '$progname --help --mode=$opt_mode' for more information."
2717 # Process options as early as possible so that --help and --version
2724 ## ----------- ##
2726 ## ----------- ##
2736 # will be execed at the end. This prevents here-documents from being
2754 $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1
2763 test -f "$1" &&
2764 $SED -e 4q "$1" 2>/dev/null | func_generated_by_libtool_p
2777 if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then
2785 exec 0<&5 5<&-
2796 test -f "$1" &&
2797 $lt_truncate_bin < "$1" 2>/dev/null | func_generated_by_libtool_p
2811 $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1
2836 # Execute tilde-delimited COMMANDS.
2838 # FAIL_CMD may read-access the current command in variable CMD!
2848 func_show_eval "$cmd" "${2-:}"
2857 # FILE even if both FILE and FILE.exe exist: automatic-append-.exe
2904 # if one wasn't chosen via the "--tag" command line option.
2912 if test -n "$available_tags" && test -z "$tagname"; then
2928 if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
2930 …eval "`$SED -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/…
2933 # Double-quote args containing other shell metacharacters.
2951 # was found and let the user know that the "--tag" command
2953 if test -z "$tagname"; then
2955 func_fatal_error "specify a tag with '--tag'"
2986 # $write_libobj - a libtool object file
2995 # Name of the non-PIC object
3022 if test -n "$1"; then
3023 # Unfortunately, winepath does not exit with a non-zero error code, so we
3027 # zero AND non-empty stdout, which explains the odd construction:
3028 func_convert_core_file_wine_to_w32_tmp=`winepath -w "$1" 2>/dev/null`
3029 if test "$?" -eq 0 && test -n "$func_convert_core_file_wine_to_w32_tmp"; then
3031 $SED -e "$sed_naive_backslashify"`
3056 if test -n "$1"; then
3062 if test -n "$func_convert_core_file_wine_to_w32_result"; then
3063 if test -z "$func_convert_core_path_wine_to_w32_result"; then
3095 if test -n "$LT_CYGPATH" && test -f "$LT_CYGPATH"; then
3096 func_cygpath_result=`$LT_CYGPATH "$@" 2>/dev/null`
3097 if test "$?" -ne 0; then
3103 func_error "LT_CYGPATH is empty or specifies non-existent file: '$LT_CYGPATH'"
3117 func_convert_core_msys_to_w32_result=`( cmd //c echo "$1" ) 2>/dev/null |
3118 $SED -e 's/[ ]*$//' -e "$sed_naive_backslashify"`
3131 if test -z "$2" && test -n "$1"; then
3150 if test -z "$4" && test -n "$3"; then
3159 $SED -e "$lt_replace_pathsep_chars"`
3247 if test -n "$1"; then
3264 if test -n "$1"; then
3267 func_to_host_file_result=`cygpath -m "$1"`
3282 if test -n "$1"; then
3299 if test -n "$1"; then
3301 func_cygpath -u "$func_convert_core_msys_to_w32_result"
3318 if test -n "$1"; then
3321 func_cygpath -u "$func_convert_core_file_wine_to_w32_result"
3358 if test -z "$to_host_path_cmd"; then
3396 if test -n "$1"; then
3420 if test -n "$1"; then
3424 func_to_host_path_result=`cygpath -m -p "$func_to_host_path_tmp1"`
3441 if test -n "$1"; then
3463 if test -n "$1"; then
3468 func_cygpath -u -p "$func_convert_core_msys_to_w32_result"
3487 if test -n "$1"; then
3494 func_cygpath -u -p "$func_convert_core_path_wine_to_w32_result"
3511 func_dll_def_p_tmp=`$SED -n \
3512 -e 's/^[ ]*//' \
3513 -e '/^\(;.*\)*$/d' \
3514 -e 's/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p' \
3515 -e q \
3528 srcfile=$nonopt # always keep a non-empty value in "srcfile"
3552 # Accept any command-line options.
3554 -o)
3555 test -n "$libobj" && \
3556 func_fatal_error "you cannot specify '-o' more than once"
3561 -pie | -fpie | -fPIE)
3566 -shared | -static | -prefer-pic | -prefer-non-pic)
3571 -no-suppress)
3576 -Xcompiler)
3581 -Wc,*)
3582 func_stripname '-Wc,' '' "$arg"
3616 func_fatal_error "you must specify an argument for -Xcompile"
3619 func_fatal_error "you must specify a target with '-o'"
3623 test -z "$libobj" && {
3631 # If the user specifies -o file.o, it is replaced with file.lo
3653 -shared)
3660 -static)
3666 -prefer-pic)
3671 -prefer-non-pic)
3687 test -z "$base_compile" && \
3704 # non-PIC code in shared libraries is not supported
3709 # not support -o with -c
3722 until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
3727 if test -f "$lockfile"; then
3730 `cat $lockfile 2>/dev/null`
3734 your compiler does not support '-c' and '-o' together. If you
3736 avoid parallel builds (make -j) in this platform, or get a better
3769 if test -z "$output_obj"; then
3771 func_append command " -o $lobj"
3775 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE'
3778 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
3781 `cat $lockfile 2>/dev/null`
3788 your compiler does not support '-c' and '-o' together. If you
3790 avoid parallel builds (make -j) in this platform, or get a better
3798 if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
3805 suppress_output=' >/dev/null 2>&1'
3809 # Only build a position-dependent object if we build old libraries.
3818 func_append command " -o $obj"
3827 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
3830 `cat $lockfile 2>/dev/null`
3837 your compiler does not support '-c' and '-o' together. If you
3839 avoid parallel builds (make -j) in this platform, or get a better
3847 if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
3882 "Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
3887 (typically '/bin/rm'). RM-OPTIONS are options (such as '-f') to be passed
3896 "Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
3902 -o OUTPUT-FILE set the output file name to OUTPUT-FILE
3903 -no-suppress do not suppress compiler output for multiple passes
3904 -prefer-pic try to build PIC objects only
3905 -prefer-non-pic try to build non-PIC objects only
3906 -shared do not build a '.o' file suitable for static linking
3907 -static only build a '.o' file suitable for static linking
3908 -Wc,FLAG
3909 -Xcompiler FLAG pass FLAG directly to the compiler
3911 COMPILE-COMMAND is a command to be used in creating a 'standard' object file
3921 "Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]...
3927 -dlopen FILE add the directory containing FILE to the library path
3929 This mode sets the library path environment variable according to '-dlopen'
3941 "Usage: $progname [OPTION]... --mode=finish [LIBDIR]...
3948 the '--dry-run' option if you just want to see what would be executed."
3953 "Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND...
3957 INSTALL-COMMAND is the installation command. The first component should be
3960 The following components of INSTALL-COMMAND are treated specially:
3962 -inst-prefix-dir PREFIX-DIR Use PREFIX-DIR as a staging area for installation
3965 BSD-compatible install options are recognized)."
3970 "Usage: $progname [OPTION]... --mode=link LINK-COMMAND...
3975 LINK-COMMAND is a command using the C compiler that you would use to create
3978 The following components of LINK-COMMAND are treated specially:
3980 -all-static do not do any dynamic linking at all
3981 -avoid-version do not add a version suffix if possible
3982 -bindir BINDIR specify path to binaries directory (for systems where
3984 -dlopen FILE '-dlpreopen' FILE if it cannot be dlopened at runtime
3985 -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
3986 -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
3987 -export-symbols SYMFILE
3989 -export-symbols-regex REGEX
3991 -LLIBDIR search LIBDIR for required installed libraries
3992 -lNAME OUTPUT-FILE requires the installed library libNAME
3993 -module build a library that can dlopened
3994 -no-fast-install disable the fast-install mode
3995 -no-install link a not-installable executable
3996 -no-undefined declare that a library does not refer to external symbols
3997 -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
3998 -objectlist FILE use a list of object files found in FILE to specify objects
3999 -os2dllname NAME force a short DLL name on OS/2 (no effect on other OSes)
4000 -precious-files-regex REGEX
4002 -release RELEASE specify package release information
4003 -rpath LIBDIR the created library will eventually be installed in LIBDIR
4004 -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
4005 -shared only do dynamic linking of libtool libraries
4006 -shrext SUFFIX override the standard shared library file extension
4007 -static do not do any dynamic linking of uninstalled libtool libraries
4008 -static-libtool-libs
4010 -version-info CURRENT[:REVISION[:AGE]]
4012 -weak LIBNAME declare that the target provides the LIBNAME interface
4013 -Wc,FLAG
4014 -Xcompiler FLAG pass linker-specific FLAG directly to the compiler
4015 -Wa,FLAG
4016 -Xassembler FLAG pass linker-specific FLAG directly to the assembler
4017 -Wl,FLAG
4018 -Xlinker FLAG pass linker-specific FLAG directly to the linker
4019 -XCClinker FLAG pass link-specific FLAG to the compiler driver (CC)
4021 All other options (arguments beginning with '-') are ignored.
4027 If the OUTPUT-FILE ends in '.la', then a libtool library is created,
4028 only library objects ('.lo' files) may be specified, and '-rpath' is
4031 If OUTPUT-FILE ends in '.a' or '.lib', then a standard library is created
4034 If OUTPUT-FILE ends in '.lo' or '.$objext', then a reloadable object file
4040 "Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
4045 (typically '/bin/rm'). RM-OPTIONS are options (such as '-f') to be passed
4058 $ECHO "Try '$progname --help' for more information about other modes."
4061 # Now that we've collected a possible --mode arg, show help if necessary
4071 } | $SED -n '1p; 2,$s/^Usage:/ or: /p'
4087 s/^Usage:.*--mode=\([^ ]*\) .*/Description of \1 mode:/'
4100 test -z "$cmd" && \
4103 # Handle -dlopen flags immediately.
4105 test -f "$file" \
4124 if test -z "$dlname"; then
4126 test -n "$library_names" && \
4127 func_warning "'$file' was not linked with '-export-dynamic'"
4134 if test -f "$dir/$objdir/$dlname"; then
4137 if test ! -f "$dir/$dlname"; then
4150 func_warning "'-dlopen' is ignored for non-libtool libraries and objects"
4157 test -n "$absdir" && dir=$absdir
4160 if eval "test -z \"\$$shlibpath_var\""; then
4176 -* | *.la | *.lo ) ;;
4197 if test -n "$shlibpath_var"; then
4204 if test -n "$shlibpath_var"; then
4238 if test -d "$opt"; then
4241 elif test -f "$opt"; then
4253 if test -n "$libs"; then
4254 if test -n "$lt_sysroot"; then
4269 $SED -e "$sysroot_cmd s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \
4270 > $tmpdir/tmp-la
4271 mv -f $tmpdir/tmp-la $lib
4277 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
4279 if test -n "$finish_cmds"; then
4284 if test -n "$finish_eval"; then
4296 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
4297 echo "----------------------------------------------------------------------"
4305 echo "specify the full pathname of the library, or use the '-LLIBDIR'"
4307 if test -n "$shlibpath_var"; then
4308 echo " - add LIBDIR to the '$shlibpath_var' environment variable"
4311 if test -n "$runpath_var"; then
4312 echo " - add LIBDIR to the '$runpath_var' environment variable"
4315 if test -n "$hardcode_libdir_flag_spec"; then
4319 $ECHO " - use the '$flag' linker flag"
4321 if test -n "$admincmds"; then
4322 $ECHO " - have your system administrator run these commands:$admincmds"
4324 if test -f /etc/ld.so.conf; then
4325 echo " - have your system administrator add LIBDIR to '/etc/ld.so.conf'"
4331 solaris2.[6789]|solaris2.1[0-9])
4339 echo "----------------------------------------------------------------------"
4390 if test -n "$dest"; then
4397 -d) isdir=: ;;
4398 -f)
4403 -g | -m | -o)
4406 -s)
4407 stripme=" -s"
4410 -*)
4414 if test -n "$prev"; then
4415 if test X-m = "X$prev" && test -n "$install_override_mode"; then
4430 if test -n "$arg2"; then
4436 test -z "$install_prog" && \
4439 test -n "$prev" && \
4442 if test -n "$install_override_mode" && $no_mode; then
4445 func_append install_shared_prog " -m $func_quote_arg_result"
4449 if test -z "$files"; then
4450 if test -z "$dest"; then
4462 test -d "$dest" && isdir=:
4473 test "$#" -gt 1 && \
4477 [\\/]* | [A-Za-z]:[\\/]*) ;;
4537 if test -n "$relink_command"; then
4539 inst_prefix_dir=`$ECHO "$destdir" | $SED -e "s%$libdir\$%%"`
4550 if test -n "$inst_prefix_dir"; then
4552 …relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_…
4564 if test -n "$1"; then
4569 test -n "$relink_command" && srcname=${realname}T
4591 if test -n "$tstripme" && test -n "$striplib"; then
4595 if test "$#" -gt 0; then
4597 # Try 'ln -sf' first, because the 'ln' binary might depend on
4598 # the symlink we replace! Solaris /bin/ln does not understand -f,
4599 # so we also need to try rm && ln -s.
4603 …&& func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $rea…
4612 # Install the pseudo-library for information purposes.
4619 test -n "$old_library" && func_append staticlibs " $dir/$old_library"
4626 if test -n "$destname"; then
4634 # Deduce the name of the destination old-style object file.
4650 test -n "$destfile" && \
4655 # Deduce the name of the old-style object file.
4665 if test -n "$destname"; then
4679 if test ! -f "$file"; then
4709 test -z "$generated_by_libtool_version" && \
4716 if test -f "$lib"; then
4720 if test -n "$libdir" && test ! -f "$libfile"; then
4730 if test no = "$fast_install" && test -n "$relink_command"; then
4780 $opt_dry_run || if test -n "$outputname"; then
4798 if test -n "$stripme" && test -n "$old_striplib"; then
4806 test -n "$future_libdirs" && \
4807 func_warning "remember to run '$progname --finish$future_libdirs'"
4809 if test -n "$current_libdirs"; then
4811 $opt_dry_run && current_libdirs=" -n$current_libdirs"
4812 exec_cmd='$SHELL "$progpath" $preserve_args --finish$current_libdirs'
4830 my_pic_p=${3-false}
4831 my_prefix=`$ECHO "$my_originator" | $SED 's%[^a-zA-Z0-9]%_%g'`
4834 if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then
4835 if test -n "$NM" && test -n "$global_symbol_pipe"; then
4842 if test -n "$my_dlsyms"; then
4855 /* $my_dlsyms - symbol resolution table for '$my_outputname' dlsym emulation. */
4863 #pragma GCC diagnostic ignored \"-Wstrict-prototypes\"
4869 relocations are performed -- see ld's documentation on pseudo-relocs. */
4896 if test -n "$exclude_expsyms"; then
4898 eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
4903 if test -n "$export_symbols_regex"; then
4905 eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
4911 if test -z "$export_symbols"; then
4915 … eval "$SED -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
4925 …eval "$SED -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_o…
4926 eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
4949 if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then
4952 if test -n "$dlprefile_dlname"; then
4956 # no lafile. user explicitly requested -dlpreopen <import library>.
4962 if test -n "$dlprefile_dlbasename"; then
4969 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe |
4970 $SED -e '/I __imp/d' -e 's/I __nm_/D /;s/_nm__//' >> '$nlist'"
4976 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'"
4984 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'"
4992 test -f "$nlist" || : > "$nlist"
4994 if test -n "$exclude_expsyms"; then
4995 $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
5000 if $GREP -v "^: " < "$nlist" |
5001 if sort -k 3 </dev/null >/dev/null 2>&1; then
5002 sort -k 3
5009 $GREP -v "^: " < "$nlist" > "$nlist"S
5012 if test -f "$nlist"S; then
5019 if test -n "$global_symbol_to_import"; then
5034 if test -s "$nlist"I; then
5039 for (; symbol->name; ++symbol)
5041 …$SED 's/.*/ if (STREQ (symbol->name, \"&\")) symbol->address = (void *) \&&;/' < "$nlist"I >>…
5051 if test -s "$nlist"I; then
5083 *" -static "*) ;;
5087 # a FreeBSD bug that causes programs to crash when -lm is
5089 # pic_flag when linking with -static. The problem exists in
5091 *-*-freebsd2.*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
5092 pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;;
5093 *-*-hpux*)
5104 -pie | -fpie | -fPIE) ;;
5110 …func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable…
5119 if test -f "$output_objdir/$my_outputname.def"; then
5150 # ARG is a GNU/binutils-style import library. Returns
5157 …file_result" | eval "$global_symbol_pipe" | $EGREP ' (_head_[A-Za-z0-9_]+_[ad]l*|[A-Za-z0-9_]+_[ad…
5158 test -n "$func_cygming_gnu_implib_tmp"
5163 # ARG is an MS-style import library. Returns
5171 test -n "$func_cygming_ms_implib_tmp"
5186 win32_fileres=`file -L $1 2>/dev/null`
5193 if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
5194 … $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null; then
5207 win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" |
5208 $SED -n -e '
5240 # Platform-specific function to extract the
5251 sharedlib_from_linklib_result=`$DLLTOOL --identify-strict --identify "$1"`
5257 # platform-specific function to extract the name of the
5270 $OBJDUMP -s --section "$1" "$2" 2>/dev/null |
5279 /:[ ]*file format pe[i]\{,1\}-/d
5287 $SED -n '
5308 # 0x302f exports -- but will fail for DLLs whose name actually
5313 $SED -e '/^\./d;/^.\./d;q'
5317 # Platform-specific function to extract the
5322 # does not support the --identify-strict option.
5335 # ms-generated import library
5353 until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
5359 'stat=$?; rm -f "$lockfile"; exit $stat'
5361 $opt_dry_run || rm -f "$lockfile"
5363 if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
5386 [\\/]* | [A-Za-z]:[\\/]*) my_xabs=$my_xlib ;;
5397 my_xlib_u=lt$extracted_serial-$my_xlib ;;
5407 *-darwin*)
5417 …darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true`
5418 if test -n "$darwin_arches"; then
5419 darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'`
5423 func_mkdir_p "unfat-$$/$darwin_base_archive-$darwin_arch"
5424 …$LIPO -thin $darwin_arch -output "unfat-$$/$darwin_base_archive-$darwin_arch/$darwin_base_archive"…
5425 cd "unfat-$$/$darwin_base_archive-$darwin_arch"
5428 $RM "unfat-$$/$darwin_base_archive-$darwin_arch/$darwin_base_archive"
5431 …darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$sed_bas…
5435 darwin_files=`find unfat-$$ -name $darwin_file -print | sort | $NL2SP`
5436 $LIPO -create -output "$darwin_file" $darwin_files
5438 $RM -rf unfat-$$
5450 …my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | sort | $NL…
5469 # the $objdir directory. This is a cygwin/mingw-specific
5473 func_emit_wrapper_arg1=${1-no}
5478 # $output - temporary wrapper script for $objdir/$outputname
5488 # metacharacters that are still active within double-quoted strings.
5492 if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
5497 alias -g '\${1+\"\$@\"}'='\"\$@\"'
5500 case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
5505 # The HP-UX ksh and POSIX shell print the target directory to stdout
5507 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5538 # windows platforms, and (c) all begin with the string "--lt-"
5542 # There are only two supported options: --lt-debug and
5543 # --lt-dump-script. There is, deliberately, no --lt-help.
5555 --lt-debug) lt_option_debug=1 ;;
5556 --lt-dump-script)
5557 lt_dump_D=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%/[^/]*$%%'\`
5559 lt_dump_F=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%^.*/%%'\`
5563 --lt-*)
5564 \$ECHO \"Unrecognized --lt- option: '\$lt_opt'\" 1>&2
5571 if test -n \"\$lt_option_debug\"; then
5576 # Used when --lt-debug. Prints its arguments to stdout
5594 *-*-mingw | *-*-os2* | *-cegcc*)
5596 if test -n \"\$lt_option_debug\"; then
5606 if test -n \"\$lt_option_debug\"; then
5620 # Strips options in the --lt-* namespace from \$@ and
5625 *\\ --lt-*)
5629 --lt-*) ;;
5646 file=\`ls -ld \"\$file\" | $SED -n 's/.*-> //p'\`
5647 while test -n \"\$file\"; do
5653 [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
5659 file=\`ls -ld \"\$thisdir/\$file\" | $SED -n 's/.*-> //p'\`
5679 test -n \"\$absdir\" && thisdir=\"\$absdir\"
5684 program=lt-'$outputname'$exeext
5687 if test ! -f \"\$progdir/\$program\" ||
5688 { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | $SED 1q\`; \\
5691 file=\"\$\$-\$program\"
5693 if test ! -d \"\$progdir\"; then
5702 if test -n \"\$relink_command\"; then
5711 $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
5725 if test -f \"\$progdir/\$program\"; then"
5732 if test -n "$dllsearchpath"; then
5740 …if test yes = "$shlibpath_overrides_runpath" && test -n "$shlibpath_var" && test -n "$temp_rpath";…
5745 # Some systems cannot cope with colon-terminated $shlibpath_var
5778 /* $cwrappersource - temporary wrapper executable for $objdir/$outputname
5816 /* declarations of non-ANSI functions */
5914 const char *program_name = "libtool-wrapper"; /* in case xstrdup fails */
5946 …if test yes = "$shlibpath_overrides_runpath" && test -n "$shlibpath_var" && test -n "$temp_rpath";…
5957 if test -n "$dllsearchpath"; then
5972 const char * TARGET_PROGRAM_NAME = "lt-$outputname"; /* hopefully, no .exe */
5983 #define LTWRAPPER_OPTION_PREFIX "--lt-"
5986 static const char *dumpscript_opt = LTWRAPPER_OPTION_PREFIX "dump-script";
6036 have already dealt with, above (inluding dump-script), then
6040 need to make LTWRAPPER_OPTION_PREFIX a configure-time option
6041 or a configure.ac-settable value.
6054 /* The GNU banner must be the first non-error debug message */
6084 /* target_name transforms -- use actual target program name; might have lt- prefix */
6110 /* do NOT want the lt- prefix here, so use actual_cwrapper_name */
6113 /* DO want the lt- prefix here if it exists, so use target_name */
6167 if (rval == -1)
6321 p_len = (size_t) (q - p);
6392 p = tmp_pathspec + strlen (tmp_pathspec) - 1;
6394 p--;
6439 str += len - patlen;
6553 /* some systems can't cope with a ':'-terminated path #' */
6555 while ((len > 0) && IS_PATH_SEPARATOR (new_value[len-1]))
6557 new_value[--len] = '\0';
6595 - Space and tab are interpreted as delimiters. They are not treated as
6597 - Unescaped double quotes are removed from the input. Their only effect is
6600 - Backslashes not followed by double quotes are not special.
6601 - But 2*n+1 backslashes followed by a double quote become
6603 \" -> "
6604 \\\" -> \"
6605 \\\\\" -> \\"
6669 for (j = backslashes + 1; j > 0; j--)
6681 for (j = backslashes; j > 0; j--)
6705 $SED -n -e '
6726 case `eval $file_magic_cmd \"\$1\" 2>/dev/null | $SED -e 10q` in
6741 *" -compat=g "*|*\ -std=c++[0-9][0-9]\ *|*" -library=stdcxx4 "*|*" -library=stlport4 "*)
6756 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
6766 # -no-undefined on the libtool link line when we can be certain
6824 single_module=$wl-single_module
6827 # We need to know -static, to get the right output filenames.
6831 -shared)
6837 -all-static | -static | -static-libtool-libs)
6839 -all-static)
6840 if test yes = "$build_libtool_libs" && test -z "$link_static_flag"; then
6843 if test -n "$link_static_flag"; then
6848 -static)
6849 if test -z "$pic_flag" && test -n "$link_static_flag"; then
6854 -static-libtool-libs)
6855 if test -z "$pic_flag" && test -n "$link_static_flag"; then
6869 test -n "$old_archive_from_new_cmds" && build_old_libs=yes
6872 while test "$#" -gt 0; do
6880 if test -n "$prev"; then
6936 test -f "$arg" \
6948 *-*-darwin*)
6966 # '-mllvm $arg' options when doing the link step.
6971 if test -f "$arg"; then
6978 # A libtool-controlled object.
6988 if test -z "$pic_object" ||
6989 test -z "$non_pic_object" ||
7014 # CHECK ME: I think I busted this. -Ossama
7016 # Preload the old-style object.
7026 # Non-PIC object.
7031 # A standard non-PIC object
7033 if test -z "$pic_object" || test none = "$pic_object"; then
7043 # Only an error if not doing a dry-run.
7077 release=-$arg
7084 [\\/]* | [A-Za-z]:[\\/]*) ;;
7086 func_fatal_error "only absolute run-paths are allowed"
7114 func_append compiler_flags " -Xassembler $qarg"
7116 func_append compile_command " -Xassembler $qarg"
7117 func_append finalize_command " -Xassembler $qarg"
7149 fi # test -n "$prev"
7154 -all-static)
7155 if test -n "$link_static_flag"; then
7156 # See comment for -static flag below, for more details.
7163 -allow-undefined)
7165 func_fatal_error "'-allow-undefined' must not be used because it is the default"
7168 -avoid-version)
7173 -bindir)
7178 -dlopen)
7183 -dlpreopen)
7188 -export-dynamic)
7193 -export-symbols | -export-symbols-regex)
7194 if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
7195 func_fatal_error "more than one -exported-symbols argument is not allowed"
7197 if test X-export-symbols = "X$arg"; then
7205 -framework)
7210 -inst-prefix-dir)
7215 # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
7216 # so, if we see these flags be careful not to treat them like -L
7217 -L[A-Z][A-Z]*:*)
7219 no/*-*-irix* | /*-*-irix*)
7227 -L*)
7228 func_stripname "-L" '' "$arg"
7229 if test -z "$func_stripname_result"; then
7230 if test "$#" -gt 0; then
7231 func_fatal_error "require no space between '-L' and '$1'"
7233 func_fatal_error "need path for '-L' option"
7240 [\\/]* | [A-Za-z]:[\\/]*) ;;
7243 test -z "$absdir" && \
7249 *" -L$dir "* | *" $arg "*)
7255 [\\/]* | [A-Za-z]:[\\/]* | =*) func_append deplibs " $arg" ;;
7256 *) func_append deplibs " -L$dir" ;;
7262 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
7279 -l*)
7280 if test X-lc = "X$arg" || test X-lm = "X$arg"; then
7282 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*)
7286 *-*-os2*)
7288 test X-lc = "X$arg" && continue
7290 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig* | *-*-midnightbsd*)
7292 test X-lc = "X$arg" && continue
7294 *-*-rhapsody* | *-*-darwin1.[012])
7299 *-*-sco3.2v5* | *-*-sco5v6*)
7301 test X-lc = "X$arg" && continue
7303 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
7305 test X-lc = "X$arg" && continue
7308 elif test X-lc_r = "X$arg"; then
7310 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig* | *-*-midnightbsd*)
7311 # Do not include libc_r directly, use -pthread flag.
7320 -mllvm)
7325 -module)
7330 # Tru64 UNIX uses -model [arg] to determine the layout of C++
7332 # Darwin uses the -arch flag to determine output architecture.
7333 -model|-arch|-isysroot|--sysroot)
7341 -pthread)
7353 -mt|-mthreads|-kthread|-Kthread|-pthreads|--thread-safe \
7354 |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
7365 -multi_module)
7366 single_module=$wl-multi_module
7370 -no-fast-install)
7375 -no-install)
7377 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*)
7380 func_warning "'-no-install' is ignored for $host"
7381 func_warning "assuming '-no-fast-install' instead"
7389 -no-undefined)
7394 -objectlist)
7399 -os2dllname)
7404 -o) prev=output ;;
7406 -precious-files-regex)
7411 -release)
7416 -rpath)
7421 -R)
7426 -R*)
7427 func_stripname '-R' '' "$arg"
7431 [\\/]* | [A-Za-z]:[\\/]*) ;;
7437 func_fatal_error "only absolute run-paths are allowed"
7447 -shared)
7448 # The effects of -shared are defined in a previous loop.
7452 -shrext)
7457 -static | -static-libtool-libs)
7458 # The effects of -static are defined in a previous loop.
7459 # We used to do the same as -all-static on platforms that
7466 -thread-safe)
7471 -version-info)
7476 -version-number)
7482 -weak)
7487 -Wc,*)
7488 func_stripname '-Wc,' '' "$arg"
7503 -Wl,*)
7504 func_stripname '-Wl,' '' "$arg"
7520 -Xassembler)
7525 -Xcompiler)
7530 -Xlinker)
7535 -XCClinker)
7540 # -msg_* for osf cc
7541 -msg_*)
7547 # -64, -mips[0-9] enable 64-bit mode for the SGI compiler
7548 # -r[0-9][0-9]* specify processor for the SGI compiler
7549 # -xarch=*, -xtarget=* enable 64-bit mode for the Sun compiler
7550 # +DA*, +DD* enable 64-bit mode for the HP compiler
7551 # -q* compiler args for the IBM compiler
7552 # -m*, -t[45]*, -txscale* architecture-specific flags for GCC
7553 # -F/path path to uninstalled frameworks, gcc on darwin
7554 # -p, -pg, --coverage, -fprofile-* profiling flags for GCC
7555 # -fstack-protector* stack protector flags for GCC
7557 # -tp=* Portland pgcc target processor selection
7558 # --sysroot=* for sysroot support
7559 # -O*, -g*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
7560 # -specs=* GCC specs files
7561 # -stdlib=* select c++ std lib with clang
7562 # -fsanitize=* Clang/GCC memory and address sanitizer
7563 # -fuse-ld=* Linker select flags for GCC
7564 # -static-* direct GCC to link specific libraries statically
7565 # -fcilkplus Cilk Plus language extension features for C/C++
7566 # -Wa,* Pass flags directly to the assembler
7567 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
7568 -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
7569 -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*| \
7570 -specs=*|-fsanitize=*|-fuse-ld=*|-static-*|-fcilkplus|-Wa,*)
7579 -Z*)
7581 # OS/2 uses -Zxxx to specify OS/2-specific options
7586 -Zlinker | -Zstack)
7599 -* | +*)
7610 # A libtool-controlled object.
7620 if test -z "$pic_object" ||
7621 test -z "$non_pic_object" ||
7646 # CHECK ME: I think I busted this. -Ossama
7648 # Preload the old-style object.
7658 # Non-PIC object.
7663 # A standard non-PIC object
7665 if test -z "$pic_object" || test none = "$pic_object"; then
7675 # Only an error if not doing a dry-run.
7700 # A libtool-controlled library.
7704 # This library was specified with -dlopen.
7708 # The library was specified with -dlpreopen.
7727 if test -n "$arg"; then
7733 test -n "$prev" && \
7736 if test yes = "$export_dynamic" && test -n "$export_dynamic_flag_spec"; then
7748 if test -n "$shlibpath_var"; then
7782 # that are linked more than once (e.g. -la -lb -la)
7814 notinst_deplibs= # not-installed libtool libraries
7815 notinst_path= # paths that contain not-installed libtool libraries
7824 func_fatal_help "libraries can '-dlopen' only libtool libraries: $file"
7843 # so that -L comes before libs that need it for instance...
7872 # Ignore non-libtool-libs
7902 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
7903 |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
7918 -l*)
7920 func_warning "'-l' is ignored for archives/objects"
7923 func_stripname '-l' '' "$deplib"
7934 if test -f "$lib"; then
7988 ;; # -l
8004 -L*)
8010 func_stripname '-L' '' "$deplib"
8025 func_stripname '-L' '' "$deplib"
8030 func_warning "'-L' is ignored for archives/objects"
8034 ;; # -L
8035 -R*)
8037 func_stripname '-R' '' "$deplib"
8061 # but linking other static libraries is non-portable.
8070 if eval "\$ECHO \"$deplib\"" 2>/dev/null | $SED 10q \
8071 | $EGREP "$match_pattern_regex" > /dev/null; then
8130 $found || test -f "$lib" \
8157 # Convert "-framework foo" to "foo.ltframework"
8158 if test -n "$inherited_linker_flags"; then
8159 …tmp_inherited_linker_flags=`$ECHO "$inherited_linker_flags" | $SED 's/-framework \([^ $]*\)/\1.ltf…
8167 dependency_libs=`$ECHO " $dependency_libs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
8171 test -n "$dlopen" && func_append dlfiles " $dlopen"
8172 test -n "$dlpreopen" && func_append dlprefiles " $dlpreopen"
8178 if test -z "$libdir"; then
8179 if test -z "$old_library"; then
8204 if test -n "$old_library" &&
8213 if test -z "$linklib"; then
8217 # This library was specified with -dlopen.
8219 test -z "$libdir" \
8220 && func_fatal_error "cannot -dlopen a convenience library: '$lib'"
8221 if test -z "$dlname" ||
8227 # dependent libraries so libltdl's deplib preloader doesn't
8238 [\\/]* | [A-Za-z]:[\\/]*) abs_ladir=$ladir ;;
8241 if test -z "$abs_ladir"; then
8253 if test ! -f "$lt_sysroot$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
8264 if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
8279 # This library was specified with -dlpreopen.
8281 if test -z "$libdir" && test prog = "$linkmode"; then
8282 func_fatal_error "only libraries may -dlpreopen a convenience library: '$lib'"
8285 # special handling for platforms with PE-DLLs.
8295 if test -n "$dlname"; then
8303 test -z "$libdir" && \
8310 if test -n "$old_library"; then
8314 test -z "$libdir" && \
8317 elif test -n "$dlname"; then
8326 if test -z "$libdir"; then
8345 if test no != "$link_all_deplibs" || test -z "$library_names" ||
8353 -L*) func_stripname '-L' '' "$deplib"
8377 if test -n "$library_names" &&
8380 test -z "$old_library"; }; then
8382 if test -n "$shlibpath_var" && test -z "$avoidtemprpath"; then
8391 # Skip directories that are in the system default run-time
8416 test -n "$library_names"; }; }; then
8427 if test -n "$library_names" &&
8428 { test no = "$use_static_libs" || test -z "$old_library"; }; then
8444 # Warn about portability, can't link against -module's on some
8453 if test -z "$dlopenmodule" && test yes = "$shouldnotlink" && test link = "$pass"; then
8465 # Skip directories that are in the system default run-time
8487 if test -n "$old_archive_from_expsyms_cmds"; then
8495 if test -n "$dlname"; then
8497 elif test -n "$soname_spec"; then
8501 func_arith $current - $age
8503 versuffix=-$major
8516 newlib=libimp-$func_stripname_result.a
8519 if test -f "$output_objdir/$soname-def"; then :
8526 if test -f "$output_objdir/$newlib"; then :; else
8533 fi # test -n "$old_archive_from_expsyms_cmds"
8545 *-*-sco3.2v5.0.[024]*) add_dir=-L$dir ;;
8546 *-*-sysv4*uw2*) add_dir=-L$dir ;;
8547 *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
8548 *-*-unixware7*) add_dir=-L$dir ;;
8549 *-*-darwin* )
8550 # if the lib is a (non-dlopened) module then we cannot
8552 if /usr/bin/file -L $add 2> /dev/null |
8553 $GREP ": [^:]* bundle" >/dev/null; then
8556 if test -z "$old_library"; then
8563 elif test -n "$old_library"; then
8570 *-*-sunos*) add_shlibpath=$dir ;;
8572 add_dir=-L$dir
8573 add=-l$name
8576 add=-l$name
8586 add_dir=-L$absdir
8588 if test -n "$inst_prefix_dir"; then
8591 func_append add_dir " -L$inst_prefix_dir$libdir"
8595 add=-l$name
8598 add=-l$name
8610 if test -n "$add_shlibpath"; then
8617 test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
8618 test -n "$add" && compile_deplibs="$add $compile_deplibs"
8620 test -n "$add_dir" && deplibs="$add_dir $deplibs"
8621 test -n "$add" && deplibs="$add $deplibs"
8642 add_dir=-L$libdir
8643 add=-l$name
8649 add=-l$name
8651 if test -n "$inst_prefix_dir" &&
8652 test -f "$inst_prefix_dir$libdir/$linklib"; then
8659 add_dir=-L$libdir
8661 if test -n "$inst_prefix_dir"; then
8664 func_append add_dir " -L$inst_prefix_dir$libdir"
8668 add=-l$name
8672 test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
8673 test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
8675 test -n "$add_dir" && deplibs="$add_dir $deplibs"
8676 test -n "$add" && deplibs="$add $deplibs"
8684 test -n "$old_library" && linklib=$old_library
8688 compile_deplibs="-l$name -L$dir $compile_deplibs"
8689 finalize_deplibs="-l$name -L$dir $finalize_deplibs"
8707 echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
8708 if test -z "$global_symbol_pipe"; then
8729 if test -n "$dependency_libs" &&
8733 # Extract -R from dependency_libs
8737 -R*) func_stripname '-R' '' "$libdir"
8757 -L*) func_stripname '-L' '' "$deplib"
8775 -L*) path=$deplib ;;
8783 [\\/]* | [A-Za-z]:[\\/]*) absdir=$dir ;;
8786 if test -z "$absdir"; then
8792 if $GREP "^installed=no" $deplib > /dev/null; then
8794 *-*-darwin*)
8796 eval deplibrary_names=`$SED -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
8797 if test -n "$deplibrary_names"; then
8801 if test -f "$absdir/$objdir/$depdepl"; then
8803 darwin_install_name=`$OTOOL -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
8804 if test -z "$darwin_install_name"; then
8805 … darwin_install_name=`$OTOOL64 -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
8807 func_append compiler_flags " $wl-dylib_file $wl$darwin_install_name:$depdepl"
8808 func_append linker_flags " -dylib_file $darwin_install_name:$depdepl"
8814 path=-L$absdir/$objdir
8818 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
8819 test -z "$libdir" && \
8824 path=-L$absdir
8841 …r_flags "`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
8881 -L*) new_libs="$deplib $new_libs" ;;
8882 -R*) ;;
8896 # using -Wl,-lname, so that libtool does not consider it
8913 -L*)
8930 case `$CC -V 2>&1 | $SED 5q` in
8935 func_append postdeps ' -library=Cstd -library=Crun'
8948 func_append postdeps ' -library=Cstd -library=Crun'
8965 if test -n "$i"; then
8980 if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then
8981 func_warning "'-dlopen' is ignored for archives"
8985 *\ -l* | *\ -L*)
8986 func_warning "'-l' and '-L' are ignored for archives" ;;
8989 test -n "$rpath" && \
8990 func_warning "'-rpath' is ignored for archives"
8992 test -n "$xrpath" && \
8993 func_warning "'-R' is ignored for archives"
8995 test -n "$vinfo" && \
8996 func_warning "'-version-info/-version-number' is ignored for archives"
8998 test -n "$release" && \
8999 func_warning "'-release' is ignored for archives"
9001 test -n "$export_symbols$export_symbols_regex" && \
9002 func_warning "'-export-symbols' is ignored for archives"
9036 if test -n "$objs"; then
9038 …func_fatal_error "cannot build libtool library '$output' from non-libtool objects on this host:$ob…
9041 $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
9048 || func_warning "'-dlopen self' is ignored for libtool libraries"
9052 test 1 -lt "$#" \
9053 && func_warning "ignoring multiple '-rpath's for a libtool library"
9058 if test -z "$rpath"; then
9069 test -n "$vinfo" && \
9070 func_warning "'-version-info/-version-number' is ignored for convenience libraries"
9072 test -n "$release" && \
9073 func_warning "'-release' is ignored for convenience libraries"
9082 test -n "$7" && \
9083 func_fatal_help "too many parameters to '-version-info'"
9095 # There are really only two kinds -- those that
9103 darwin|freebsd-elf|linux|midnightbsd-elf|osf|windows|none)
9109 freebsd-aout|qnx|sunos)
9135 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]) ;;
9143 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]) ;;
9151 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]) ;;
9158 if test "$age" -gt "$current"; then
9173 func_arith $current - $age
9179 …xlcverstring="$wl-compatibility_version $wl$minor_current $wl-current_version $wl$minor_current.$r…
9180 verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
9184 …verstring="$wl-compatibility_version $wl$minor_current $wl-current_version $wl$minor_current.$revi…
9187 … verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
9192 freebsd-aout)
9197 freebsd-elf | midnightbsd-elf)
9198 func_arith $current - $age
9205 func_arith $current - $age
9207 func_arith $current - $age + 1
9219 while test 0 -ne "$loop"; do
9220 func_arith $revision - $loop
9222 func_arith $loop - 1
9233 func_arith $current - $age
9239 func_arith $current - $age
9246 while test 0 -ne "$loop"; do
9247 func_arith $current - $loop
9249 func_arith $loop - 1
9274 # Use '-' rather than '.', since we only want one
9276 func_arith $current - $age
9278 versuffix=-$major
9287 if test -z "$vinfo" && test -n "$release"; then
9320 func_fatal_error "can't build $host shared library unless -no-undefined is specified"
9344 if test -n "$precious_files_regex"; then
9345 if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
9355 test -n "$removelist" && \
9370 # deplibs=`$ECHO "$deplibs " | $SED "s% -L$path % %g"`
9371 # dependency_libs=`$ECHO "$dependency_libs " | $SED "s% -L$path % %g"`
9374 if test -n "$xrpath"; then
9379 func_append temp_xrpath " -R$func_replace_sysroot_result"
9411 if test -n "$rpath"; then
9413 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*)
9416 *-*-rhapsody* | *-*-darwin1.[012])
9420 *-*-netbsd*)
9423 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-midnightbsd*)
9426 *-*-sco3.2v5* | *-*-sco5v6*)
9429 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
9435 func_append deplibs " -lc"
9448 # release should show up in the -l (ie -lgmp5) so we don't want to
9474 if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
9478 -l*)
9479 func_stripname -l '' "$i"
9489 if test -n "$i"; then
9494 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0; then
9518 -l*)
9519 func_stripname -l '' "$i"
9522 if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
9532 if test -n "$i"; then
9537 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0; then
9571 -l*)
9572 func_stripname -l '' "$a_deplib"
9582 if test -n "$a_deplib"; then
9584 if test -n "$file_magic_glob"; then
9585 libnameglob=`func_echo_all "$libname" | $SED -e $file_magic_glob`
9589 test yes = "$want_nocaseglob" && nocaseglob=`shopt -p nocaseglob`
9592 shopt -s nocaseglob
9593 potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
9596 potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
9600 if ls -lLd "$potent_lib" 2>/dev/null |
9601 $GREP " -> " >/dev/null; then
9610 while test -h "$potlib" 2>/dev/null; do
9611 potliblink=`ls -ld $potlib | $SED 's/.* -> //'`
9613 [\\/]* | [A-Za-z]:[\\/]*) potlib=$potliblink;;
9617 if eval $file_magic_cmd \"\$potlib\" 2>/dev/null |
9618 $SED -e 10q |
9619 $EGREP "$file_magic_regex" > /dev/null; then
9627 if test -n "$a_deplib"; then
9635 if test -z "$potlib"; then
9644 # Add a -L argument.
9655 -l*)
9656 func_stripname -l '' "$a_deplib"
9666 if test -n "$a_deplib"; then
9669 potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
9671 potlib=$potent_lib # see symlink-check above in file_magic test
9672 if eval "\$ECHO \"$potent_lib\"" 2>/dev/null | $SED 10q | \
9673 $EGREP "$match_pattern_regex" > /dev/null; then
9681 if test -n "$a_deplib"; then
9689 if test -z "$potlib"; then
9698 # Add a -L argument.
9706 tmp_deplibs=`$ECHO " $deplibs" | $SED 's/ -lc$//; s/ -[LR][^ ]*//g'`
9717 echo "*** Warning: inter-library dependencies are not supported in this platform."
9719 echo "*** Warning: inter-library dependencies are not known to be supported."
9721 echo "*** All declared inter-library dependencies are being dropped."
9734 *-*-rhapsody* | *-*-darwin1.[012])
9736 newdeplibs=`$ECHO " $newdeplibs" | $SED 's/ -lc / System.ltframework /'`
9743 echo "*** Warning: libtool could not satisfy all declared inter-library"
9746 echo "*** application is linked with the -dlopen flag."
9747 if test -z "$global_symbol_pipe"; then
9762 echo "*** The inter-library dependencies that have been dropped here will be"
9764 echo "*** or is declared to -dlopen it."
9770 echo "*** it was explicitly requested with -no-undefined,"
9785 # Time to change all our "foo.ltframework" stuff back to "-framework foo"
9787 *-*-darwin*)
9788 newdeplibs=`$ECHO " $newdeplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
9789 …er_flags=`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
9790 deplibs=`$ECHO " $deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
9799 *" -L$path/$objdir "*) ;;
9802 *" -L$path/$objdir "*)
9803 func_append new_libs " -L$path/$objdir" ;;
9810 -L*)
9821 # All the library-specific variables (install_libdir is set above).
9840 if test -n "$hardcode_libdir_flag_spec"; then
9841 if test -n "$hardcode_libdir_separator"; then
9844 if test -z "$hardcode_libdirs"; then
9860 elif test -n "$runpath_var"; then
9868 if test -n "$hardcode_libdir_separator" &&
9869 test -n "$hardcode_libdirs"; then
9873 if test -n "$runpath_var" && test -n "$perm_rpath"; then
9881 test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
9886 if test -n "$shlibpath"; then
9898 if test -n "$soname_spec"; then
9903 if test -z "$dlname"; then
9915 test -z "$pic_flag" && libobjs=`$ECHO "$libobjs" | $SP2NL | $SED "$lo2o" | $NL2SP`
9919 if test -n "$export_symbols" && test -n "$include_expsyms"; then
9928 if test -n "$export_symbols" && test -z "$export_symbols_regex"; then
9946 if test -z "$export_symbols"; then
9947 if test yes = "$always_export_symbols" || test -n "$export_symbols_regex"; then
9969 && { test "$len" -lt "$max_cmd_len" \
9970 || test "$max_cmd_len" -le -1; }
9974 elif test -n "$nm_file_list_spec"; then
10003 if test -n "$export_symbols_regex" && test : != "$skipped_export"; then
10004 func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
10010 if test -n "$export_symbols" && test -n "$include_expsyms"; then
10012 test -n "$orig_export_symbols" && tmp_export_symbols=$orig_export_symbols
10016 if test : != "$skipped_export" && test -n "$orig_export_symbols"; then
10024 …$opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $outp…
10027 $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
10041 if test -n "$convenience"; then
10042 if test -n "$whole_archive_flag_spec" &&
10044 test -z "$libobjs"; then
10049 if test -n "$whole_archive_flag_spec"; then
10063 if test yes = "$thread_safe" && test -n "$thread_safe_flag_spec"; then
10074 if test yes = "$module" && test -n "$module_cmds"; then
10075 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
10083 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
10095 test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
10110 if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
10125 if test -n "$save_libobjs" && test : != "$skipped_export" && test yes = "$with_gnu_ld"; then
10138 elif test -n "$save_libobjs" && test : != "$skipped_export" && test -n "$file_list_spec"; then
10158 if test -n "$save_libobjs"; then
10160 output=$output_objdir/$output_la-$k.$objext
10172 if test -z "$objlist" ||
10173 test "$len" -lt "$max_cmd_len"; then
10178 if test 1 -eq "$k"; then
10188 last_robj=$output_objdir/$output_la-$k.$objext
10191 output=$output_objdir/$output_la-$k.$objext
10201 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
10204 if test -n "$last_robj"; then
10213 ${skipped_export-false} && {
10219 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
10221 if test -n "$last_robj"; then
10226 test -n "$save_libobjs" &&
10252 if test -n "$export_symbols_regex" && ${skipped_export-false}; then
10253 func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
10258 ${skipped_export-false} && {
10259 if test -n "$export_symbols" && test -n "$include_expsyms"; then
10261 test -n "$orig_export_symbols" && tmp_export_symbols=$orig_export_symbols
10265 if test -n "$orig_export_symbols"; then
10273 …$opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $outp…
10276 … $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
10284 if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
10292 if test yes = "$module" && test -n "$module_cmds"; then
10293 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
10299 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
10307 if test -n "$delfiles"; then
10313 if test -n "$dlprefiles"; then
10350 if test -n "$convenience"; then
10351 if test -z "$whole_archive_flag_spec"; then
10366 # If -module or -export-dynamic was specified, set the dlname.
10375 if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then
10376 func_warning "'-dlopen' is ignored for objects"
10380 *\ -l* | *\ -L*)
10381 func_warning "'-l' and '-L' are ignored for objects" ;;
10384 test -n "$rpath" && \
10385 func_warning "'-rpath' is ignored for objects"
10387 test -n "$xrpath" && \
10388 func_warning "'-R' is ignored for objects"
10390 test -n "$vinfo" && \
10391 func_warning "'-version-info' is ignored for objects"
10393 test -n "$release" && \
10394 func_warning "'-release' is ignored for objects"
10398 test -n "$objs$old_deplibs" && \
10399 func_fatal_error "cannot build library object '$output' from non-libtool objects"
10415 # single-version convenience libraries. Whenever we create
10416 # different ones for PIC/non-PIC, this we'll have to duplicate
10420 # if reload_cmds runs $LD directly, get rid of -Wl from
10426 if test -n "$convenience"; then
10427 if test -n "$whole_archive_flag_spec"; then
10429 test -n "$wl" || tmp_whole_archive_flags=`$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'`
10443 # Create the old-style object.
10450 if test -z "$libobj"; then
10451 if test -n "$gentop"; then
10459 if test -n "$gentop"; then
10470 if test -n "$pic_flag" || test default != "$pic_mode"; then
10477 if test -n "$gentop"; then
10489 test -n "$vinfo" && \
10490 func_warning "'-version-info' is ignored for programs"
10492 test -n "$release" && \
10493 func_warning "'-release' is ignored for programs"
10500 *-*-rhapsody* | *-*-darwin1.[012])
10502 compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's/ -lc / System.ltframework /'`
10503 finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's/ -lc / System.ltframework /'`
10508 *-*-darwin*)
10512 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
10514 func_append compile_command " $wl-bind_at_load"
10515 func_append finalize_command " $wl-bind_at_load"
10519 # Time to change all our "foo.ltframework" stuff back to "-framework foo"
10520 compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
10521 finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
10531 *" -L$path/$objdir "*) ;;
10534 *" -L$path/$objdir "*)
10535 func_append new_libs " -L$path/$objdir" ;;
10542 -L*)
10557 if test -n "$rpath$xrpath"; then
10560 # This is the magic to use -rpath.
10572 if test -n "$hardcode_libdir_flag_spec"; then
10573 if test -n "$hardcode_libdir_separator"; then
10574 if test -z "$hardcode_libdirs"; then
10590 elif test -n "$runpath_var"; then
10597 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
10598 testbindir=`$ECHO "$libdir" | $SED -e 's*/lib$*/bin*'`
10613 if test -n "$hardcode_libdir_separator" &&
10614 test -n "$hardcode_libdirs"; then
10623 if test -n "$hardcode_libdir_flag_spec"; then
10624 if test -n "$hardcode_libdir_separator"; then
10625 if test -z "$hardcode_libdirs"; then
10641 elif test -n "$runpath_var"; then
10649 if test -n "$hardcode_libdir_separator" &&
10650 test -n "$hardcode_libdirs"; then
10656 if test -n "$libobjs" && test yes = "$build_old_libs"; then
10665 if test -n "$prelink_cmds"; then
10693 if test -n "$postlink_cmds"; then
10695 …postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUT…
10700 if test -f "$output_objdir/${outputname}S.$objext"; then
10707 if test -n "$compile_shlibpath$finalize_shlibpath"; then
10710 if test -n "$finalize_shlibpath"; then
10716 if test -n "$runpath_var"; then
10717 if test -n "$perm_rpath"; then
10725 if test -n "$finalize_perm_rpath"; then
10745 if test -n "$postlink_cmds"; then
10747 …postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUT…
10781 $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname
10785 if test -n "$postlink_cmds"; then
10787 …stlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g…
10795 if test -n "$relink_command"; then
10798 if eval test -z \"\${$var+set}\"; then
10799 …relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relin…
10800 elif eval var_value=\$$var; test -z "$var_value"; then
10833 cwrappersource=$output_path/$objdir/lt-$output_name.c
10841 # because it contains $host paths and files. If cross-
10845 $LTCC $LTCFLAGS -o $cwrapper $cwrappersource
10856 $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result
10875 # See if we need to build an old-fashioned archive.
10891 $preload && test -f "$symfileobj" \
10897 if test -n "$addlibs"; then
10906 if test -n "$old_archive_from_new_cmds" && test yes = "$build_libtool_libs"; then
10911 if test -n "$dlprefiles"; then
10929 done | sort | sort -uc >/dev/null 2>&1); then
10949 newobj=lt$counter-$objbase
10954 *) if test ! -f "$gentop/$newobj"; then break; fi ;;
10970 if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
10972 elif test -n "$archiver_list_spec"; then
11006 if test "$len" -lt "$max_cmd_len"; then
11014 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
11022 if test -z "$oldobjs"; then
11032 test -n "$generated" && \
11044 if eval test -z \"\${$var+set}\"; then
11045 …relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relin…
11046 elif eval var_value=\$$var; test -z "$var_value"; then
11055 …relink_command="($func_quote_result; $SHELL \"$progpath\" $preserve_args --mode=relink $libtool_ar…
11066 if test -z "$install_libdir"; then
11078 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result`
11079 test -z "$libdir" && \
11083 -L*)
11084 func_stripname -L '' "$deplib"
11086 func_append newdependency_libs " -L$func_replace_sysroot_result"
11088 -R*)
11089 func_stripname -R '' "$deplib"
11091 func_append newdependency_libs " -R$func_replace_sysroot_result"
11104 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
11105 test -z "$libdir" && \
11117 # Only pass preopened files to the pseudo-archive (for
11123 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
11124 test -z "$libdir" && \
11135 [\\/]* | [A-Za-z]:[\\/]*) abs=$lib ;;
11144 [\\/]* | [A-Za-z]:[\\/]*) abs=$lib ;;
11154 # systems that can't hard-code library paths into their executables
11157 # libtool variables, so we have to hard-code the OSs to which it
11164 # If a -bindir argument was supplied, place the dll there.
11165 if test -n "$bindir"; then
11175 # $outputname - a libtool library file
11207 # Should we warn about portability when linking against -modules?
11253 -f) func_append RM " $arg"; rmforce=: ;;
11254 -*) func_append RM " $arg" ;;
11259 test -z "$RM" && \
11284 # Don't error if the file doesn't exist and rm -f was used.
11285 if { test -L "$file"; } >/dev/null 2>&1 ||
11286 { test -h "$file"; } >/dev/null 2>&1 ||
11287 test -f "$file"; then
11289 elif test -d "$file"; then
11308 test -n "$old_library" && func_append rmfiles " $odir/$old_library"
11314 *) test -n "$dlname" && func_append rmfiles " $odir/$dlname" ;;
11316 test -n "$libdir" && func_append rmfiles " $odir/$name $odir/${name}i"
11319 if test -n "$library_names"; then
11324 if test -n "$old_library"; then
11342 if test -n "$pic_object" && test none != "$pic_object"; then
11346 # Add non-PIC object to the list of files to remove.
11347 if test -n "$non_pic_object" && test none != "$non_pic_object"; then
11382 if test yes = "$fast_install" && test -n "$relink_command"; then
11383 func_append rmfiles " $odir/lt-$name"
11386 func_append rmfiles " $odir/lt-$noexename.c"
11397 if test -d "$dir"; then
11398 func_show_eval "rmdir $dir >/dev/null 2>&1"
11409 test -z "$opt_mode" && {
11414 test -z "$exec_cmd" && \
11417 if test -n "$exec_cmd"; then
11432 # time on that platform, so we default to a shared-only configuration.
11433 # If a disable-shared tag is given, we'll fallback to a static-only
11434 # configuration. But we'll never go from static-only to shared-only.
11436 # ### BEGIN LIBTOOL TAG CONFIG: disable-shared
11439 # ### END LIBTOOL TAG CONFIG: disable-shared
11441 # ### BEGIN LIBTOOL TAG CONFIG: disable-static
11443 # ### END LIBTOOL TAG CONFIG: disable-static
11446 # mode:shell-script
11447 # sh-indentation:2