Lines Matching +full:mingw +full:- +full:no +full:- +full:asm +full:- +full:explicit
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.
10 # This is free software; see the source for copying conditions. There is NO
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
72 # This is free software. There is NO warranty; not even for
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" && {
229 echo "no acceptable sed could be found in \$PATH" >&2
237 # to search for them ourselves - except when the results are already set
242 test -z "$SED" && {
262 "$_G_path_prog" -f conftest.sed <conftest.nl >conftest.out 2>/dev/null || break
265 if test "$_G_count" -gt "$_G_path_prog_max"; then
271 test 10 -lt "$_G_count" && break
273 rm -f conftest.in conftest.tmp conftest.nl conftest.out
277 rm -f conftest.sed
284 test -z "$GREP" && {
298 … "$_G_path_prog" -e 'GREP$' -e '-(cannot match)-' <conftest.nl >conftest.out 2>/dev/null || break
301 if test "$_G_count" -gt "$_G_path_prog_max"; then
307 test 10 -lt "$_G_count" && break
309 rm -f conftest.in conftest.tmp conftest.nl conftest.out
317 ## ------------------------------- ##
319 ## ------------------------------- ##
326 : ${CP="cp -f"}
328 : ${EGREP="$GREP -E"}
329 : ${FGREP="$GREP -F"}
330 : ${LN_S="ln -s"}
333 : ${MV="mv -f"}
334 : ${RM="rm -f"}
335 : ${SHELL="${CONFIG_SHELL-/bin/sh}"}
338 ## -------------------- ##
340 ## -------------------- ##
346 # metacharacters that are still active within double-quoted strings.
361 # Re-'\' parameter expansions in output of sed_double_quote_subst that
362 # were '\'-ed in input to the same. If an odd number of '\' preceded a
378 # ---------------------------
407 ## ----------------- ##
409 ## ----------------- ##
415 # else. There's no portable way to scope variables in Bourne shell
433 # debug_cmd='eval echo "${FUNCNAME[0]} $*" >&2' bash your-script-name
434 debug_cmd=${debug_cmd-":"}
441 # so that you can set exit_status to non-zero if you want to indicate
458 [\\/]*|[A-Za-z]:\\*) ;;
466 IFS=${PATH_SEPARATOR-:}
469 test -x "$progdir/$progname" && break
472 test -n "$progdir" || progdir=`pwd`
478 ## ----------------- ##
480 ## ----------------- ##
483 # below, and should be set appropriately depending on run-time para-
506 ## -------------------- ##
508 ## -------------------- ##
511 # particular resource (a file, or a non-empty configuration variable for
523 # -------------------
530 test -t 1 && {
534 test -n "${COLORTERM+set}" && : ${USE_ANSI_COLORS="1"}
544 test -n "`tput sgr0 2>/dev/null`" && {
546 test -n "`tput bold 2>/dev/null`" && tc_bold=`tput bold`
548 test -n "`tput smso 2>/dev/null`" && tc_standout=`tput smso`
549 test -n "`tput setaf 1 2>/dev/null`" && tc_red=`tput setaf 1`
550 test -n "`tput setaf 2 2>/dev/null`" && tc_green=`tput setaf 2`
551 test -n "`tput setaf 4 2>/dev/null`" && tc_blue=`tput setaf 4`
552 test -n "`tput setaf 5 2>/dev/null`" && tc_cyan=`tput setaf 5`
561 ## ----------------- ##
563 ## ----------------- ##
572 # ---------------------
593 test -z "$_G_HAVE_PLUSEQ_OP" \
618 # ----------------------------
641 # --------------------------
645 # func_append_uniq options " --another-option option-argument"
647 # will only append to $options if " --another-option option-argument "
665 # ------------------
667 test -z "$_G_HAVE_ARITH_OP" \
689 # ------------------
722 # -------------------------------------------
734 # --------------------------------------------------------
755 # ----------------
774 # --------------------
775 # Invoke $ECHO with all args, space-separated.
783 # ------------------------------
800 test -n "$_G_tc" && {
819 # -----------------
832 # -----------------------
844 # -----------------------------
855 # ---------------
858 test -z "$_G_HAVE_XSI_OPS" \
880 # func_mkdir_p DIRECTORY-PATH
881 # ---------------------------
882 # Make sure the entire path to DIRECTORY-PATH is available.
890 if test -n "$_G_directory_path" && test : != "$opt_dry_run"; then
892 # Protect directory names starting with '-'
894 -*) _G_directory_path=./$_G_directory_path ;;
898 while test ! -d "$_G_directory_path"; do
903 # If the last portion added has no slash in it, the list is done
907 _G_directory_path=`$ECHO "$_G_directory_path" | $SED -e "$sed_dirname"`
922 test -d "$_G_directory_path" || \
929 # -------------------------
937 _G_template=${TMPDIR-/tmp}/${1-$progname}
940 # Return a directory name, but don't create it in dry-run mode
941 _G_tmpdir=$_G_template-$$
945 _G_tmpdir=`mktemp -d "$_G_template-XXXXXXXX" 2>/dev/null`
947 if test ! -d "$_G_tmpdir"; then
949 _G_tmpdir=$_G_template-${RANDOM-0}$$
957 # If we're not in dry-run mode, bomb out on failure
958 test -d "$_G_tmpdir" || \
967 # ------------------------
968 # Remove doubled-up and trailing slashes, "." path components,
998 # we take advantage of case's first-match behaviour.
1021 -e "$_G_removedotparts" -e "$_G_collapseslashes" -e "$_G_finalslash"`
1026 if test -z "$func_normal_abspath_result"; then
1032 -e "$_G_pathcar"`
1034 -e "$_G_pathcdr"`
1051 # Restore leading double-slash if one was found on entry.
1057 # --------------------
1066 # fails when set -e is in force, so we need another command to
1073 # --------------------------------
1098 if test -z "$func_relative_path_result"; then
1106 if test -z "$func_relative_path_tlibdir"; then
1117 # Now calculate path; take care to avoid doubling-up slashes.
1121 if test -n "$func_stripname_result"; then
1126 if test -n "$func_relative_path_result"; then
1131 test -n "$func_relative_path_result" || func_relative_path_result=.
1138 # ----------------------------
1150 # one-time-loop (easy break)
1155 -e "$sed_double_quote_subst" -e "$sed_double_backslash"`
1205 # double-quote args containing shell metacharacters to delay
1218 # -----------------------
1221 if test xyes = `(x=; printf -v x %q yes; echo x"$x") 2>/dev/null`; then
1222 printf -v _GL_test_printf_tilde %q '~'
1226 printf -v func_quotefast_eval_result %q "$1"
1238 printf -v func_quotefast_eval_result %q "$1"
1253 # ------------------------
1258 # double-quoted (when needed), suitable for a subsequent eval
1264 # ----------------
1266 # - escape shell special characters
1268 # - the same as 'eval'; but do not quote variable references
1270 # - request aesthetic output, i.e. '"a b"' instead of 'a\ b'. This might
1274 # - produce also $func_quote_arg_unquoted_result which does not contain
1275 # wrapping double-quotes.
1280 # ------------+-----------------------+-------------------
1285 # z="${x-$y}" | "z=\"\${x-\$y}\"" | z=\"\${x-\$y}\"
1290 # --------------+---------------------+--------------------
1291 # z="${x-$y}" | "z=\"${x-$y}\"" | z=\"${x-$y}\"
1308 # Faster quote-for-eval for some shells.
1317 # ------------------------
1325 while test 0 -lt $#; do
1327 if test -n "$func_quote_result"; then
1338 # ---------------------------------
1360 .*) func_stripname_result=`$ECHO "$3" | $SED -e "s%^$1%%" -e "s%\\\\$2\$%%"`;;
1361 *) func_stripname_result=`$ECHO "$3" | $SED -e "s%^$1%%" -e "s%$2\$%%"`;;
1368 # -----------------------------
1377 _G_fail_exp=${2-':'}
1385 if test 0 -ne "$_G_status"; then
1393 # ------------------------------------
1402 _G_fail_exp=${2-':'}
1414 if test 0 -ne "$_G_status"; then
1422 # ----------
1425 # not in the set a-zA-Z0-9_ are replaced with '_'. Further,
1432 [0-9]* | *[!a-zA-Z0-9_]*)
1433 func_tr_sh_result=`$ECHO "$1" | $SED -e 's/^\([0-9]\)/_\1/' -e 's/[^a-zA-Z0-9_]/_/g'`
1443 # -------------------
1456 # -----------------------------
1469 # ----------------------------
1494 # -----------------------
1495 # 'sort -V' is not generally available.
1497 # in that it treats 1.5 < 1.5.0, and treats 1.4.4a < 1.4-p3a
1507 | sort -t. -k 1,1n -k 2,2n -k 3,3n -k 4,4n -k 5,5n -k 6,6n -k 7,7n -k 8,8n -k 9,9n
1511 # ---------------------
1525 # mode: shell-script
1526 # sh-indentation: 2
1527 # eval: (add-hook 'before-save-hook 'time-stamp)
1528 # time-stamp-pattern: "10/scriptversion=%:y-%02m-%02d.%02H; # UTC"
1529 # time-stamp-time-zone: "UTC"
1536 # This is free software. There is NO warranty; not even for
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
1728 ## --------------- ##
1730 ## --------------- ##
1752 # -s, --silent don'\''t print informational messages
1754 # # No change in '$@' (ignored completely by this hook). Leave
1769 # while test $# -gt 0; do
1772 # --silent|-s) opt_silent=:
1775 # # Separate non-argument short options:
1776 # -s*) func_split_short_opt "$_G_opt"
1778 # "-$func_split_short_opt_arg" ${1+"$@"}
1803 # '--silent' and '--verbose' options are mutually exclusive."
1813 # ----------------------------
1825 # ---------------------
1848 # As we (func_options) are top-level options-parser function and
1858 # --------------------------
1879 # ---------------------------
1888 while test $# -gt 0; do
1897 # this if-branch). No need to quote it again.
1902 test $# -gt 0 || break
1905 # and thus we remove _G_opt from "$@" and need to re-quote.
1910 --debug|-x) debug_cmd='set -x'
1915 --no-warnings|--no-warning|--no-warn)
1916 set dummy --warnings none ${1+"$@"}
1920 --warnings|--warning|-W)
1949 --verbose|-v) opt_verbose=: ;;
1950 --version) func_version ;;
1951 -\?|-h) func_usage ;;
1952 --help) func_help ;;
1955 --*=*) func_split_equals "$_G_opt"
1962 -W*)
1969 # Separate non-argument short options:
1970 -\?*|-h*|-v*|-x*)
1973 "-$func_split_short_opt_arg" ${1+"$@"}
1977 --) _G_parse_options_requote=: ; break ;;
1978 -*) func_fatal_help "unrecognised option: '$_G_opt'" ;;
1999 # ------------------------------
2007 # Display all warnings if -W was not given.
2008 test -n "$opt_warning_types" || opt_warning_types=" $warning_categories"
2019 ## ----------------- ##
2021 ## ----------------- ##
2024 # hookable option parser framework in ascii-betical order.
2028 # ----------------------
2043 # ---------
2056 # ------------------------
2069 # ------------------------
2072 test -z "$_G_HAVE_XSI_OPS" \
2105 # -----------------------------
2124 func_split_short_opt_name=`expr "x$1" : 'x\(-.\)'`
2125 func_split_short_opt_arg=`expr "x$1" : 'x-.\(.*\)$'`
2131 # ----------
2138 $ECHO "Run '$progname --help |${PAGER-more}' for full usage"
2144 # ------------------
2152 $SED -n 's|^# ||
2164 # ------------
2180 $SED -n '
2200 s|\((C)\)[ 0-9,-]*[ ,-]\([1-9][0-9]* \)|\1 \2|
2210 # mode: shell-script
2211 # sh-indentation: 2
2212 # eval: (add-hook 'before-save-hook 'time-stamp)
2213 # time-stamp-pattern: "30/scriptversion=%:y-%02m-%02d.%02H; # UTC"
2214 # time-stamp-time-zone: "UTC"
2222 # ----------------
2242 # -------------------
2253 ## ---------------- ##
2255 ## ---------------- ##
2260 usage='$progpath [OPTION]... [MODE-ARG]...'
2262 # Short help message in response to '-h'.
2264 --config show all configuration variables
2265 --debug enable verbose shell tracing
2266 -n, --dry-run display commands without modifying any files
2267 --features display basic configuration information and exit
2268 --mode=MODE use operation mode MODE
2269 --no-warnings equivalent to '-Wnone'
2270 --preserve-dup-deps don't remove duplicate dependency libraries
2271 --quiet, --silent don't print informational messages
2272 --tag=TAG use configuration variables from tag TAG
2273 -v, --verbose print more informational messages than default
2274 --version print version information
2275 -W, --warnings=CATEGORY report the warnings falling in CATEGORY [all]
2276 -h, --help, --help-all print short, long, or detailed help message
2279 # Additional text appended to 'usage_message' in response to '--help'.
2297 MODE-ARGS vary depending on the MODE. When passed as first option,
2298 '--mode=MODE' may be abbreviated as 'MODE' or a unique abbreviation of that.
2299 Try '$progname --help --mode=MODE' for a more detailed description of MODE.
2304 host-triplet: $host
2310 automake: `($AUTOMAKE --version) 2>/dev/null |$SED 1q`
2311 autoconf: `($AUTOCONF --version) 2>/dev/null |$SED 1q`
2313 Report bugs to <bug-libtool@gnu.org>.
2320 # func_lo2o OBJECT-NAME
2321 # ---------------------
2322 # Transform OBJECT-NAME from a '.lo' suffix to the platform specific
2337 # func_xform LIBOBJ-OR-SOURCE
2338 # ---------------------------
2339 # Transform LIBOBJ-OR-SOURCE from a '.o' or '.c' (or otherwise)
2340 # suffix to a '.lo' libtool-object suffix.
2360 # -------------------------------
2372 # -----------
2384 … $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath"
2392 # -------------
2413 # -----------------------
2428 *[!-_A-Za-z0-9,/]*)
2443 # also don't use non-portable quotes within backquotes within
2445 extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"`
2456 # ------------------------
2463 if test -z "$macro_version"; then
2493 # -----------------------------
2513 # Shorthand for --mode=foo, only valid as the first argument
2516 shift; set dummy --mode clean ${1+"$@"}; shift
2519 shift; set dummy --mode compile ${1+"$@"}; shift
2522 shift; set dummy --mode execute ${1+"$@"}; shift
2525 shift; set dummy --mode finish ${1+"$@"}; shift
2528 shift; set dummy --mode install ${1+"$@"}; shift
2531 shift; set dummy --mode link ${1+"$@"}; shift
2534 shift; set dummy --mode uninstall ${1+"$@"}; shift
2551 # ---------------------------------
2561 while test $# -gt 0; do
2566 --dry-run|--dryrun|-n)
2570 --config) func_config ;;
2572 --dlopen|-dlopen)
2578 --preserve-dup-deps)
2581 --features) func_features ;;
2583 --finish) set dummy --mode finish ${1+"$@"}; shift ;;
2585 --help) opt_help=: ;;
2587 --help-all) opt_help=': help-all' ;;
2589 --mode) test $# = 0 && func_missing_arg $_G_opt && break
2604 --no-silent|--no-quiet)
2609 --no-warnings|--no-warning|--no-warn)
2614 --no-verbose)
2619 --silent|--quiet)
2625 --tag) test $# = 0 && func_missing_arg $_G_opt && break
2632 --verbose|-v) opt_quiet=false
2657 # ---------------------------------
2662 # save first non-option argument
2663 if test 0 -lt $#; then
2668 # preserve --debug
2669 test : = "$debug_cmd" || func_append preserve_args " --debug"
2687 # Only execute mode is allowed to have -dlopen flags.
2688 if test -n "$opt_dlopen" && test execute != "$opt_mode"; then
2689 func_error "unrecognized option '-dlopen'"
2694 # Change the help message to a mode-specific one.
2696 help="Try '$progname --help --mode=$opt_mode' for more information."
2706 # Process options as early as possible so that --help and --version
2713 ## ----------- ##
2715 ## ----------- ##
2725 # will be execed at the end. This prevents here-documents from being
2730 # A function that is used when there is no print builtin or printf.
2752 test -f "$1" &&
2753 $SED -e 4q "$1" 2>/dev/null | func_generated_by_libtool_p
2765 lalib_p=no
2766 if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then
2774 exec 0<&5 5<&-
2785 test -f "$1" &&
2825 # Execute tilde-delimited COMMANDS.
2827 # FAIL_CMD may read-access the current command in variable CMD!
2837 func_show_eval "$cmd" "${2-:}"
2845 # Note that it is not necessary on cygwin/mingw to append a dot to
2846 # FILE even if both FILE and FILE.exe exist: automatic-append-.exe
2885 # Including no sysroot.
2893 # if one wasn't chosen via the "--tag" command line option.
2901 if test -n "$available_tags" && test -z "$tagname"; then
2919 …eval "`$SED -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/…
2922 # Double-quote args containing other shell metacharacters.
2939 # If $tagname still isn't set, then no tagged configuration
2940 # was found and let the user know that the "--tag" command
2942 if test -z "$tagname"; then
2944 func_fatal_error "specify a tag with '--tag'"
2975 # $write_libobj - a libtool object file
2984 # Name of the non-PIC object
2999 # and $host is mingw, cygwin, or some other w32 environment. Relies on a
3011 if test -n "$1"; then
3012 # Unfortunately, winepath does not exit with a non-zero error code, so we
3016 # zero AND non-empty stdout, which explains the odd construction:
3017 func_convert_core_file_wine_to_w32_tmp=`winepath -w "$1" 2>/dev/null`
3018 if test "$?" -eq 0 && test -n "$func_convert_core_file_wine_to_w32_tmp"; then
3020 $SED -e "$sed_naive_backslashify"`
3031 # $host is mingw, cygwin, or some other w32 environment. Relies on a correctly
3033 # $PATH. Assumes ARG has no leading or trailing path separator characters.
3037 # Unconvertible file (directory) names in ARG are skipped; if no directory names
3045 if test -n "$1"; then
3051 if test -n "$func_convert_core_file_wine_to_w32_result"; then
3052 if test -z "$func_convert_core_path_wine_to_w32_result"; then
3084 if test -n "$LT_CYGPATH" && test -f "$LT_CYGPATH"; then
3086 if test "$?" -ne 0; then
3092 func_error "LT_CYGPATH is empty or specifies non-existent file: '$LT_CYGPATH'"
3107 $SED -e 's/[ ]*$//' -e "$sed_naive_backslashify"`
3120 if test -z "$2" && test -n "$1"; then
3139 if test -z "$4" && test -n "$3"; then
3148 $SED -e "$lt_replace_pathsep_chars"`
3200 # in (the comma separated) LAZY, no conversion takes place.
3228 # Convert file name ARG from (mingw) MSYS to (mingw) w32 format; automatic
3236 if test -n "$1"; then
3253 if test -n "$1"; then
3254 # because $build is cygwin, we call "the" cygpath in $PATH; no need to use
3256 func_to_host_file_result=`cygpath -m "$1"`
3271 if test -n "$1"; then
3288 if test -n "$1"; then
3290 func_cygpath -u "$func_convert_core_msys_to_w32_result"
3307 if test -n "$1"; then
3310 func_cygpath -u "$func_convert_core_file_wine_to_w32_result"
3347 if test -z "$to_host_path_cmd"; then
3377 # Convert path ARG from (mingw) MSYS to (mingw) w32 format; automatic
3385 if test -n "$1"; then
3409 if test -n "$1"; then
3413 func_to_host_path_result=`cygpath -m -p "$func_to_host_path_tmp1"`
3430 if test -n "$1"; then
3452 if test -n "$1"; then
3457 func_cygpath -u -p "$func_convert_core_msys_to_w32_result"
3476 if test -n "$1"; then
3483 func_cygpath -u -p "$func_convert_core_path_wine_to_w32_result"
3500 func_dll_def_p_tmp=`$SED -n \
3501 -e 's/^[ ]*//' \
3502 -e '/^\(;.*\)*$/d' \
3503 -e 's/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p' \
3504 -e q \
3517 srcfile=$nonopt # always keep a non-empty value in "srcfile"
3541 # Accept any command-line options.
3543 -o)
3544 test -n "$libobj" && \
3545 func_fatal_error "you cannot specify '-o' more than once"
3550 -pie | -fpie | -fPIE)
3555 -shared | -static | -prefer-pic | -prefer-non-pic)
3560 -no-suppress)
3561 suppress_opt=no
3565 -Xcompiler)
3570 -Wc,*)
3571 func_stripname '-Wc,' '' "$arg"
3605 func_fatal_error "you must specify an argument for -Xcompile"
3608 func_fatal_error "you must specify a target with '-o'"
3612 test -z "$libobj" && {
3620 # If the user specifies -o file.o, it is replaced with file.lo
3623 *.ada | *.adb | *.ads | *.asm | \
3642 -shared)
3645 build_old_libs=no
3649 -static)
3650 build_libtool_libs=no
3655 -prefer-pic)
3660 -prefer-non-pic)
3661 pic_mode=no
3676 test -z "$base_compile" && \
3686 # On Cygwin there's no "real" PIC flag so we must build both object types
3688 cygwin* | mingw* | pw32* | os2* | cegcc*)
3692 if test no = "$pic_mode" && test pass_all != "$deplibs_check_method"; then
3693 # non-PIC code in shared libraries is not supported
3698 # not support -o with -c
3699 if test no = "$compiler_c_o"; then
3704 need_locks=no
3716 if test -f "$lockfile"; then
3723 your compiler does not support '-c' and '-o' together. If you
3725 avoid parallel builds (make -j) in this platform, or get a better
3749 if test no != "$pic_mode"; then
3758 if test -z "$output_obj"; then
3760 func_append command " -o $lobj"
3764 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE'
3777 your compiler does not support '-c' and '-o' together. If you
3779 avoid parallel builds (make -j) in this platform, or get a better
3787 if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
3798 # Only build a position-dependent object if we build old libraries.
3807 func_append command " -o $obj"
3826 your compiler does not support '-c' and '-o' together. If you
3828 avoid parallel builds (make -j) in this platform, or get a better
3836 if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
3846 if test no != "$need_locks"; then
3871 "Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
3876 (typically '/bin/rm'). RM-OPTIONS are options (such as '-f') to be passed
3885 "Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
3891 -o OUTPUT-FILE set the output file name to OUTPUT-FILE
3892 -no-suppress do not suppress compiler output for multiple passes
3893 -prefer-pic try to build PIC objects only
3894 -prefer-non-pic try to build non-PIC objects only
3895 -shared do not build a '.o' file suitable for static linking
3896 -static only build a '.o' file suitable for static linking
3897 -Wc,FLAG
3898 -Xcompiler FLAG pass FLAG directly to the compiler
3900 COMPILE-COMMAND is a command to be used in creating a 'standard' object file
3910 "Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]...
3916 -dlopen FILE add the directory containing FILE to the library path
3918 This mode sets the library path environment variable according to '-dlopen'
3930 "Usage: $progname [OPTION]... --mode=finish [LIBDIR]...
3937 the '--dry-run' option if you just want to see what would be executed."
3942 "Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND...
3946 INSTALL-COMMAND is the installation command. The first component should be
3949 The following components of INSTALL-COMMAND are treated specially:
3951 -inst-prefix-dir PREFIX-DIR Use PREFIX-DIR as a staging area for installation
3954 BSD-compatible install options are recognized)."
3959 "Usage: $progname [OPTION]... --mode=link LINK-COMMAND...
3964 LINK-COMMAND is a command using the C compiler that you would use to create
3967 The following components of LINK-COMMAND are treated specially:
3969 -all-static do not do any dynamic linking at all
3970 -avoid-version do not add a version suffix if possible
3971 -bindir BINDIR specify path to binaries directory (for systems where
3973 -dlopen FILE '-dlpreopen' FILE if it cannot be dlopened at runtime
3974 -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
3975 -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
3976 -export-symbols SYMFILE
3978 -export-symbols-regex REGEX
3980 -LLIBDIR search LIBDIR for required installed libraries
3981 -lNAME OUTPUT-FILE requires the installed library libNAME
3982 -module build a library that can dlopened
3983 -no-fast-install disable the fast-install mode
3984 -no-install link a not-installable executable
3985 -no-undefined declare that a library does not refer to external symbols
3986 -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
3987 -objectlist FILE use a list of object files found in FILE to specify objects
3988 -os2dllname NAME force a short DLL name on OS/2 (no effect on other OSes)
3989 -precious-files-regex REGEX
3991 -release RELEASE specify package release information
3992 -rpath LIBDIR the created library will eventually be installed in LIBDIR
3993 -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
3994 -shared only do dynamic linking of libtool libraries
3995 -shrext SUFFIX override the standard shared library file extension
3996 -static do not do any dynamic linking of uninstalled libtool libraries
3997 -static-libtool-libs
3999 -version-info CURRENT[:REVISION[:AGE]]
4001 -weak LIBNAME declare that the target provides the LIBNAME interface
4002 -Wc,FLAG
4003 -Xcompiler FLAG pass linker-specific FLAG directly to the compiler
4004 -Wa,FLAG
4005 -Xassembler FLAG pass linker-specific FLAG directly to the assembler
4006 -Wl,FLAG
4007 -Xlinker FLAG pass linker-specific FLAG directly to the linker
4008 -XCClinker FLAG pass link-specific FLAG to the compiler driver (CC)
4010 All other options (arguments beginning with '-') are ignored.
4016 If the OUTPUT-FILE ends in '.la', then a libtool library is created,
4017 only library objects ('.lo' files) may be specified, and '-rpath' is
4020 If OUTPUT-FILE ends in '.a' or '.lib', then a standard library is created
4023 If OUTPUT-FILE ends in '.lo' or '.$objext', then a reloadable object file
4029 "Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
4034 (typically '/bin/rm'). RM-OPTIONS are options (such as '-f') to be passed
4047 $ECHO "Try '$progname --help' for more information about other modes."
4050 # Now that we've collected a possible --mode arg, show help if necessary
4060 } | $SED -n '1p; 2,$s/^Usage:/ or: /p'
4076 s/^Usage:.*--mode=\([^ ]*\) .*/Description of \1 mode:/'
4089 test -z "$cmd" && \
4092 # Handle -dlopen flags immediately.
4094 test -f "$file" \
4113 if test -z "$dlname"; then
4115 test -n "$library_names" && \
4116 func_warning "'$file' was not linked with '-export-dynamic'"
4123 if test -f "$dir/$objdir/$dlname"; then
4126 if test ! -f "$dir/$dlname"; then
4139 func_warning "'-dlopen' is ignored for non-libtool libraries and objects"
4146 test -n "$absdir" && dir=$absdir
4149 if eval "test -z \"\$$shlibpath_var\""; then
4165 -* | *.la | *.lo ) ;;
4186 if test -n "$shlibpath_var"; then
4193 if test -n "$shlibpath_var"; then
4227 if test -d "$opt"; then
4230 elif test -f "$opt"; then
4242 if test -n "$libs"; then
4243 if test -n "$lt_sysroot"; then
4258 $SED -e "$sysroot_cmd s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \
4259 > $tmpdir/tmp-la
4260 mv -f $tmpdir/tmp-la $lib
4266 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
4268 if test -n "$finish_cmds"; then
4273 if test -n "$finish_eval"; then
4285 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
4286 echo "----------------------------------------------------------------------"
4294 echo "specify the full pathname of the library, or use the '-LLIBDIR'"
4296 if test -n "$shlibpath_var"; then
4297 echo " - add LIBDIR to the '$shlibpath_var' environment variable"
4300 if test -n "$runpath_var"; then
4301 echo " - add LIBDIR to the '$runpath_var' environment variable"
4304 if test -n "$hardcode_libdir_flag_spec"; then
4308 $ECHO " - use the '$flag' linker flag"
4310 if test -n "$admincmds"; then
4311 $ECHO " - have your system administrator run these commands:$admincmds"
4313 if test -f /etc/ld.so.conf; then
4314 echo " - have your system administrator add LIBDIR to '/etc/ld.so.conf'"
4320 solaris2.[6789]|solaris2.1[0-9])
4328 echo "----------------------------------------------------------------------"
4379 if test -n "$dest"; then
4386 -d) isdir=: ;;
4387 -f)
4392 -g | -m | -o)
4395 -s)
4396 stripme=" -s"
4399 -*)
4403 if test -n "$prev"; then
4404 if test X-m = "X$prev" && test -n "$install_override_mode"; then
4419 if test -n "$arg2"; then
4425 test -z "$install_prog" && \
4428 test -n "$prev" && \
4431 if test -n "$install_override_mode" && $no_mode; then
4434 func_append install_shared_prog " -m $func_quote_arg_result"
4438 if test -z "$files"; then
4439 if test -z "$dest"; then
4440 func_fatal_help "no file or destination specified"
4451 test -d "$dest" && isdir=:
4462 test "$#" -gt 1 && \
4466 [\\/]* | [A-Za-z]:[\\/]*) ;;
4526 if test -n "$relink_command"; then
4528 inst_prefix_dir=`$ECHO "$destdir" | $SED -e "s%$libdir\$%%"`
4539 if test -n "$inst_prefix_dir"; then
4541 …relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_…
4553 if test -n "$1"; then
4558 test -n "$relink_command" && srcname=${realname}T
4565 cygwin* | mingw* | pw32* | cegcc*)
4580 if test -n "$tstripme" && test -n "$striplib"; then
4584 if test "$#" -gt 0; then
4586 # Try 'ln -sf' first, because the 'ln' binary might depend on
4587 # the symlink we replace! Solaris /bin/ln does not understand -f,
4588 # so we also need to try rm && ln -s.
4592 …&& func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $rea…
4601 # Install the pseudo-library for information purposes.
4608 test -n "$old_library" && func_append staticlibs " $dir/$old_library"
4615 if test -n "$destname"; then
4623 # Deduce the name of the destination old-style object file.
4639 test -n "$destfile" && \
4644 # Deduce the name of the old-style object file.
4654 if test -n "$destname"; then
4668 if test ! -f "$file"; then
4678 *cygwin* | *mingw*)
4698 test -z "$generated_by_libtool_version" && \
4705 if test -f "$lib"; then
4709 if test -n "$libdir" && test ! -f "$libfile"; then
4719 if test no = "$fast_install" && test -n "$relink_command"; then
4769 $opt_dry_run || if test -n "$outputname"; then
4787 if test -n "$stripme" && test -n "$old_striplib"; then
4795 test -n "$future_libdirs" && \
4796 func_warning "remember to run '$progname --finish$future_libdirs'"
4798 if test -n "$current_libdirs"; then
4800 $opt_dry_run && current_libdirs=" -n$current_libdirs"
4801 exec_cmd='$SHELL "$progpath" $preserve_args --finish$current_libdirs'
4819 my_pic_p=${3-false}
4820 my_prefix=`$ECHO "$my_originator" | $SED 's%[^a-zA-Z0-9]%_%g'`
4823 if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then
4824 if test -n "$NM" && test -n "$global_symbol_pipe"; then
4831 if test -n "$my_dlsyms"; then
4844 /* $my_dlsyms - symbol resolution table for '$my_outputname' dlsym emulation. */
4852 #pragma GCC diagnostic ignored \"-Wstrict-prototypes\"
4858 relocations are performed -- see ld's documentation on pseudo-relocs. */
4885 if test -n "$exclude_expsyms"; then
4887 eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
4892 if test -n "$export_symbols_regex"; then
4894 eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
4900 if test -z "$export_symbols"; then
4904 … eval "$SED -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
4906 *cygwin* | *mingw* | *cegcc* )
4914 …eval "$SED -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_o…
4915 eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
4918 *cygwin* | *mingw* | *cegcc* )
4932 *cygwin* | *mingw* | *cegcc* )
4938 if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then
4941 if test -n "$dlprefile_dlname"; then
4945 # no lafile. user explicitly requested -dlpreopen <import library>.
4951 if test -n "$dlprefile_dlbasename"; then
4959 $SED -e '/I __imp/d' -e 's/I __nm_/D /;s/_nm__//' >> '$nlist'"
4981 test -f "$nlist" || : > "$nlist"
4983 if test -n "$exclude_expsyms"; then
4984 $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
4989 if $GREP -v "^: " < "$nlist" |
4990 if sort -k 3 </dev/null >/dev/null 2>&1; then
4991 sort -k 3
4998 $GREP -v "^: " < "$nlist" > "$nlist"S
5001 if test -f "$nlist"S; then
5008 if test -n "$global_symbol_to_import"; then
5023 if test -s "$nlist"I; then
5028 for (; symbol->name; ++symbol)
5030 …$SED 's/.*/ if (STREQ (symbol->name, \"&\")) symbol->address = (void *) \&&;/' < "$nlist"I >>…
5040 if test -s "$nlist"I; then
5046 no)
5072 *" -static "*) ;;
5076 # a FreeBSD bug that causes programs to crash when -lm is
5078 # pic_flag when linking with -static. The problem exists in
5080 *-*-freebsd2.*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
5081 pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;;
5082 *-*-hpux*)
5093 -pie | -fpie | -fPIE) ;;
5099 …func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable…
5107 *cygwin* | *mingw* | *cegcc* )
5108 if test -f "$output_objdir/$my_outputname.def"; then
5139 # ARG is a GNU/binutils-style import library. Returns
5146 …file_result" | eval "$global_symbol_pipe" | $EGREP ' (_head_[A-Za-z0-9_]+_[ad]l*|[A-Za-z0-9_]+_[ad…
5147 test -n "$func_cygming_gnu_implib_tmp"
5152 # ARG is an MS-style import library. Returns
5160 test -n "$func_cygming_ms_implib_tmp"
5175 win32_fileres=`file -L $1 2>/dev/null`
5182 if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
5183 … $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null; then
5196 win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" |
5197 $SED -n -e '
5229 # Platform-specific function to extract the
5240 sharedlib_from_linklib_result=`$DLLTOOL --identify-strict --identify "$1"`
5246 # platform-specific function to extract the name of the
5259 $OBJDUMP -s --section "$1" "$2" 2>/dev/null |
5268 /:[ ]*file format pe[i]\{,1\}-/d
5276 $SED -n '
5297 # 0x302f exports -- but will fail for DLLs whose name actually
5302 $SED -e '/^\./d;/^.\./d;q'
5306 # Platform-specific function to extract the
5311 # does not support the --identify-strict option.
5324 # ms-generated import library
5348 'stat=$?; rm -f "$lockfile"; exit $stat'
5350 $opt_dry_run || rm -f "$lockfile"
5352 if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
5375 [\\/]* | [A-Za-z]:[\\/]*) my_xabs=$my_xlib ;;
5386 my_xlib_u=lt$extracted_serial-$my_xlib ;;
5396 *-darwin*)
5406 …darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true`
5407 if test -n "$darwin_arches"; then
5408 darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'`
5412 func_mkdir_p "unfat-$$/$darwin_base_archive-$darwin_arch"
5413 …$LIPO -thin $darwin_arch -output "unfat-$$/$darwin_base_archive-$darwin_arch/$darwin_base_archive"…
5414 cd "unfat-$$/$darwin_base_archive-$darwin_arch"
5417 $RM "unfat-$$/$darwin_base_archive-$darwin_arch/$darwin_base_archive"
5420 …darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$sed_bas…
5424 darwin_files=`find unfat-$$ -name $darwin_file -print | sort | $NL2SP`
5425 $LIPO -create -output "$darwin_file" $darwin_files
5427 $RM -rf unfat-$$
5439 …my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | sort | $NL…
5446 # func_emit_wrapper [arg=no]
5450 # incorporate the script contents within a cygwin/mingw
5458 # the $objdir directory. This is a cygwin/mingw-specific
5462 func_emit_wrapper_arg1=${1-no}
5467 # $output - temporary wrapper script for $objdir/$outputname
5477 # metacharacters that are still active within double-quoted strings.
5481 if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
5486 alias -g '\${1+\"\$@\"}'='\"\$@\"'
5489 case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
5494 # The HP-UX ksh and POSIX shell print the target directory to stdout
5514 # A function that is used when there is no print builtin or printf.
5527 # windows platforms, and (c) all begin with the string "--lt-"
5531 # There are only two supported options: --lt-debug and
5532 # --lt-dump-script. There is, deliberately, no --lt-help.
5544 --lt-debug) lt_option_debug=1 ;;
5545 --lt-dump-script)
5546 lt_dump_D=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%/[^/]*$%%'\`
5548 lt_dump_F=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%^.*/%%'\`
5552 --lt-*)
5553 \$ECHO \"Unrecognized --lt- option: '\$lt_opt'\" 1>&2
5560 if test -n \"\$lt_option_debug\"; then
5565 # Used when --lt-debug. Prints its arguments to stdout
5583 *-*-mingw | *-*-os2* | *-cegcc*)
5585 if test -n \"\$lt_option_debug\"; then
5595 if test -n \"\$lt_option_debug\"; then
5609 # Strips options in the --lt-* namespace from \$@ and
5614 *\\ --lt-*)
5618 --lt-*) ;;
5635 file=\`ls -ld \"\$file\" | $SED -n 's/.*-> //p'\`
5636 while test -n \"\$file\"; do
5642 [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
5648 file=\`ls -ld \"\$thisdir/\$file\" | $SED -n 's/.*-> //p'\`
5651 # Usually 'no', except on cygwin/mingw when embedded into
5668 test -n \"\$absdir\" && thisdir=\"\$absdir\"
5673 program=lt-'$outputname'$exeext
5676 if test ! -f \"\$progdir/\$program\" ||
5677 { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | $SED 1q\`; \\
5680 file=\"\$\$-\$program\"
5682 if test ! -d \"\$progdir\"; then
5691 if test -n \"\$relink_command\"; then
5714 if test -f \"\$progdir/\$program\"; then"
5721 if test -n "$dllsearchpath"; then
5729 …if test yes = "$shlibpath_overrides_runpath" && test -n "$shlibpath_var" && test -n "$temp_rpath";…
5734 # Some systems cannot cope with colon-terminated $shlibpath_var
5767 /* $cwrappersource - temporary wrapper executable for $objdir/$outputname
5805 /* declarations of non-ANSI functions */
5903 const char *program_name = "libtool-wrapper"; /* in case xstrdup fails */
5935 …if test yes = "$shlibpath_overrides_runpath" && test -n "$shlibpath_var" && test -n "$temp_rpath";…
5946 if test -n "$dllsearchpath"; then
5961 const char * TARGET_PROGRAM_NAME = "lt-$outputname"; /* hopefully, no .exe */
5965 const char * TARGET_PROGRAM_NAME = "$outputname"; /* hopefully, no .exe */
5972 #define LTWRAPPER_OPTION_PREFIX "--lt-"
5975 static const char *dumpscript_opt = LTWRAPPER_OPTION_PREFIX "dump-script";
6006 *mingw* | *cygwin* )
6025 have already dealt with, above (inluding dump-script), then
6029 need to make LTWRAPPER_OPTION_PREFIX a configure-time option
6030 or a configure.ac-settable value.
6043 /* The GNU banner must be the first non-error debug message */
6073 /* target_name transforms -- use actual target program name; might have lt- prefix */
6099 /* do NOT want the lt- prefix here, so use actual_cwrapper_name */
6102 /* DO want the lt- prefix here if it exists, so use target_name */
6109 mingw*)
6151 mingw*)
6153 /* execv doesn't actually work on mingw as expected on unix */
6156 if (rval == -1)
6299 /* no slashes; search PATH */
6310 p_len = (size_t) (q - p);
6381 p = tmp_pathspec + strlen (tmp_pathspec) - 1;
6383 p--;
6386 /* no more DIR_SEPARATORS left */
6428 str += len - patlen;
6542 /* some systems can't cope with a ':'-terminated path #' */
6544 while ((len > 0) && IS_PATH_SEPARATOR (new_value[len-1]))
6546 new_value[--len] = '\0';
6570 mingw*)
6584 - Space and tab are interpreted as delimiters. They are not treated as
6586 - Unescaped double quotes are removed from the input. Their only effect is
6589 - Backslashes not followed by double quotes are not special.
6590 - But 2*n+1 backslashes followed by a double quote become
6592 \" -> "
6593 \\\" -> \"
6594 \\\\\" -> \\"
6658 for (j = backslashes + 1; j > 0; j--)
6670 for (j = backslashes; j > 0; j--)
6694 $SED -n -e '
6715 case `eval $file_magic_cmd \"\$1\" 2>/dev/null | $SED -e 10q` in
6730 *" -compat=g "*|*\ -std=c++[0-9][0-9]\ *|*" -library=stdcxx4 "*|*" -library=stlport4 "*)
6731 suncc_use_cstd_abi=no
6745 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
6750 # allow_undefined=no
6755 # -no-undefined on the libtool link line when we can be certain
6783 avoid_version=no
6787 dlself=no
6788 export_dynamic=no
6794 module=no
6795 no_install=no
6800 prefer_static_libs=no
6809 thread_safe=no
6811 vinfo_number=no
6813 single_module=$wl-single_module
6816 # We need to know -static, to get the right output filenames.
6820 -shared)
6823 build_old_libs=no
6826 -all-static | -static | -static-libtool-libs)
6828 -all-static)
6829 if test yes = "$build_libtool_libs" && test -z "$link_static_flag"; then
6832 if test -n "$link_static_flag"; then
6837 -static)
6838 if test -z "$pic_flag" && test -n "$link_static_flag"; then
6843 -static-libtool-libs)
6844 if test -z "$pic_flag" && test -n "$link_static_flag"; then
6850 build_libtool_libs=no
6858 test -n "$old_archive_from_new_cmds" && build_old_libs=yes
6861 while test "$#" -gt 0; do
6869 if test -n "$prev"; then
6893 if test no = "$dlself"; then
6925 test -f "$arg" \
6937 *-*-darwin*)
6955 # '-mllvm $arg' options when doing the link step.
6960 if test -f "$arg"; then
6967 # A libtool-controlled object.
6977 if test -z "$pic_object" ||
6978 test -z "$non_pic_object" ||
7003 # CHECK ME: I think I busted this. -Ossama
7005 # Preload the old-style object.
7015 # Non-PIC object.
7020 # A standard non-PIC object
7022 if test -z "$pic_object" || test none = "$pic_object"; then
7032 # Only an error if not doing a dry-run.
7066 release=-$arg
7073 [\\/]* | [A-Za-z]:[\\/]*) ;;
7075 func_fatal_error "only absolute run-paths are allowed"
7103 func_append compiler_flags " -Xassembler $qarg"
7105 func_append compile_command " -Xassembler $qarg"
7106 func_append finalize_command " -Xassembler $qarg"
7138 fi # test -n "$prev"
7143 -all-static)
7144 if test -n "$link_static_flag"; then
7145 # See comment for -static flag below, for more details.
7152 -allow-undefined)
7154 func_fatal_error "'-allow-undefined' must not be used because it is the default"
7157 -avoid-version)
7162 -bindir)
7167 -dlopen)
7172 -dlpreopen)
7177 -export-dynamic)
7182 -export-symbols | -export-symbols-regex)
7183 if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
7184 func_fatal_error "more than one -exported-symbols argument is not allowed"
7186 if test X-export-symbols = "X$arg"; then
7194 -framework)
7199 -inst-prefix-dir)
7204 # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
7205 # so, if we see these flags be careful not to treat them like -L
7206 -L[A-Z][A-Z]*:*)
7208 no/*-*-irix* | /*-*-irix*)
7216 -L*)
7217 func_stripname "-L" '' "$arg"
7218 if test -z "$func_stripname_result"; then
7219 if test "$#" -gt 0; then
7220 func_fatal_error "require no space between '-L' and '$1'"
7222 func_fatal_error "need path for '-L' option"
7229 [\\/]* | [A-Za-z]:[\\/]*) ;;
7232 test -z "$absdir" && \
7238 *" -L$dir "* | *" $arg "*)
7244 [\\/]* | [A-Za-z]:[\\/]* | =*) func_append deplibs " $arg" ;;
7245 *) func_append deplibs " -L$dir" ;;
7251 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
7268 -l*)
7269 if test X-lc = "X$arg" || test X-lm = "X$arg"; then
7271 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*)
7275 *-*-os2*)
7277 test X-lc = "X$arg" && continue
7279 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig* | *-*-midnightbsd*)
7281 test X-lc = "X$arg" && continue
7283 *-*-rhapsody* | *-*-darwin1.[012])
7288 *-*-sco3.2v5* | *-*-sco5v6*)
7290 test X-lc = "X$arg" && continue
7292 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
7294 test X-lc = "X$arg" && continue
7297 elif test X-lc_r = "X$arg"; then
7299 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig* | *-*-midnightbsd*)
7300 # Do not include libc_r directly, use -pthread flag.
7309 -mllvm)
7314 -module)
7319 # Tru64 UNIX uses -model [arg] to determine the layout of C++
7321 # Darwin uses the -arch flag to determine output architecture.
7322 -model|-arch|-isysroot|--sysroot)
7330 -pthread)
7342 -mt|-mthreads|-kthread|-Kthread|-pthreads|--thread-safe \
7343 |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
7354 -multi_module)
7355 single_module=$wl-multi_module
7359 -no-fast-install)
7360 fast_install=no
7364 -no-install)
7366 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*)
7369 func_warning "'-no-install' is ignored for $host"
7370 func_warning "assuming '-no-fast-install' instead"
7371 fast_install=no
7378 -no-undefined)
7379 allow_undefined=no
7383 -objectlist)
7388 -os2dllname)
7393 -o) prev=output ;;
7395 -precious-files-regex)
7400 -release)
7405 -rpath)
7410 -R)
7415 -R*)
7416 func_stripname '-R' '' "$arg"
7420 [\\/]* | [A-Za-z]:[\\/]*) ;;
7426 func_fatal_error "only absolute run-paths are allowed"
7436 -shared)
7437 # The effects of -shared are defined in a previous loop.
7441 -shrext)
7446 -static | -static-libtool-libs)
7447 # The effects of -static are defined in a previous loop.
7448 # We used to do the same as -all-static on platforms that
7455 -thread-safe)
7460 -version-info)
7465 -version-number)
7471 -weak)
7476 -Wc,*)
7477 func_stripname '-Wc,' '' "$arg"
7492 -Wl,*)
7493 func_stripname '-Wl,' '' "$arg"
7509 -Xassembler)
7514 -Xcompiler)
7519 -Xlinker)
7524 -XCClinker)
7529 # -msg_* for osf cc
7530 -msg_*)
7536 # -64, -mips[0-9] enable 64-bit mode for the SGI compiler
7537 # -r[0-9][0-9]* specify processor for the SGI compiler
7538 # -xarch=*, -xtarget=* enable 64-bit mode for the Sun compiler
7539 # +DA*, +DD* enable 64-bit mode for the HP compiler
7540 # -q* compiler args for the IBM compiler
7541 # -m*, -t[45]*, -txscale* architecture-specific flags for GCC
7542 # -F/path path to uninstalled frameworks, gcc on darwin
7543 # -p, -pg, --coverage, -fprofile-* profiling flags for GCC
7544 # -fstack-protector* stack protector flags for GCC
7546 # -tp=* Portland pgcc target processor selection
7547 # --sysroot=* for sysroot support
7548 # -O*, -g*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
7549 # -specs=* GCC specs files
7550 # -stdlib=* select c++ std lib with clang
7551 # -fsanitize=* Clang/GCC memory and address sanitizer
7552 # -fuse-ld=* Linker select flags for GCC
7553 # -Wa,* Pass flags directly to the assembler
7554 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
7555 -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
7556 -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*| \
7557 -specs=*|-fsanitize=*|-fuse-ld=*|-Wa,*)
7566 -Z*)
7568 # OS/2 uses -Zxxx to specify OS/2-specific options
7573 -Zlinker | -Zstack)
7586 -* | +*)
7597 # A libtool-controlled object.
7607 if test -z "$pic_object" ||
7608 test -z "$non_pic_object" ||
7633 # CHECK ME: I think I busted this. -Ossama
7635 # Preload the old-style object.
7645 # Non-PIC object.
7650 # A standard non-PIC object
7652 if test -z "$pic_object" || test none = "$pic_object"; then
7662 # Only an error if not doing a dry-run.
7687 # A libtool-controlled library.
7691 # This library was specified with -dlopen.
7695 # The library was specified with -dlpreopen.
7714 if test -n "$arg"; then
7720 test -n "$prev" && \
7723 if test yes = "$export_dynamic" && test -n "$export_dynamic_flag_spec"; then
7735 if test -n "$shlibpath_var"; then
7769 # that are linked more than once (e.g. -la -lb -la)
7800 need_relink=no # whether we're linking any uninstalled libtool libraries
7801 notinst_deplibs= # not-installed libtool libraries
7802 notinst_path= # paths that contain not-installed libtool libraries
7811 func_fatal_help "libraries can '-dlopen' only libtool libraries: $file"
7830 # so that -L comes before libs that need it for instance...
7856 # Ignore non-libtool-libs
7886 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
7887 |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
7902 -l*)
7904 func_warning "'-l' is ignored for archives/objects"
7907 func_stripname '-l' '' "$deplib"
7918 if test -f "$lib"; then
7972 ;; # -l
7988 -L*)
7994 func_stripname '-L' '' "$deplib"
8009 func_stripname '-L' '' "$deplib"
8014 func_warning "'-L' is ignored for archives/objects"
8018 ;; # -L
8019 -R*)
8021 func_stripname '-R' '' "$deplib"
8045 # but linking other static libraries is non-portable.
8096 …if test dlpreopen = "$pass" || test yes != "$dlopen_support" || test no = "$build_libtool_libs"; t…
8097 # If there is no dlopen support or we're linking statically,
8114 $found || test -f "$lib" \
8134 shouldnotlink=no
8141 # Convert "-framework foo" to "foo.ltframework"
8142 if test -n "$inherited_linker_flags"; then
8143 …tmp_inherited_linker_flags=`$ECHO "$inherited_linker_flags" | $SED 's/-framework \([^ $]*\)/\1.ltf…
8151 dependency_libs=`$ECHO " $dependency_libs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
8155 test -n "$dlopen" && func_append dlfiles " $dlopen"
8156 test -n "$dlpreopen" && func_append dlprefiles " $dlpreopen"
8162 if test -z "$libdir"; then
8163 if test -z "$old_library"; then
8188 if test -n "$old_library" &&
8190 test built,no = "$prefer_static_libs,$installed"; }; then
8197 if test -z "$linklib"; then
8201 # This library was specified with -dlopen.
8203 test -z "$libdir" \
8204 && func_fatal_error "cannot -dlopen a convenience library: '$lib'"
8205 if test -z "$dlname" ||
8207 test no = "$build_libtool_libs"
8209 # If there is no dlname, no dlopen support or we're linking
8222 [\\/]* | [A-Za-z]:[\\/]*) abs_ladir=$ladir ;;
8225 if test -z "$abs_ladir"; then
8237 if test ! -f "$lt_sysroot$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
8248 if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
8263 # This library was specified with -dlpreopen.
8265 if test -z "$libdir" && test prog = "$linkmode"; then
8266 func_fatal_error "only libraries may -dlpreopen a convenience library: '$lib'"
8269 # special handling for platforms with PE-DLLs.
8270 *cygwin* | *mingw* | *cegcc* )
8279 if test -n "$dlname"; then
8287 test -z "$libdir" && \
8292 # Prefer using a static library (so that no silly _DYNAMIC symbols
8294 if test -n "$old_library"; then
8298 test -z "$libdir" && \
8301 elif test -n "$dlname"; then
8310 if test -z "$libdir"; then
8329 if test no != "$link_all_deplibs" || test -z "$library_names" ||
8330 test no = "$build_libtool_libs"; then
8337 -L*) func_stripname '-L' '' "$deplib"
8361 if test -n "$library_names" &&
8362 { { test no = "$prefer_static_libs" ||
8364 test -z "$old_library"; }; then
8366 if test -n "$shlibpath_var" && test -z "$avoidtemprpath"; then
8375 # Skip directories that are in the system default run-time
8400 test -n "$library_names"; }; }; then
8406 link_static=no # Whether the deplib will be linked statically
8409 use_static_libs=no
8411 if test -n "$library_names" &&
8412 { test no = "$use_static_libs" || test -z "$old_library"; }; then
8414 *cygwin* | *mingw* | *cegcc* | *os2*)
8415 # No point in relinking DLLs because paths are not encoded
8417 need_relink=no
8420 if test no = "$installed"; then
8428 # Warn about portability, can't link against -module's on some
8437 if test -z "$dlopenmodule" && test yes = "$shouldnotlink" && test link = "$pass"; then
8449 # Skip directories that are in the system default run-time
8471 if test -n "$old_archive_from_expsyms_cmds"; then
8478 # use dlname if we got it. it's perfectly good, no?
8479 if test -n "$dlname"; then
8481 elif test -n "$soname_spec"; then
8484 *cygwin* | mingw* | *cegcc* | *os2*)
8485 func_arith $current - $age
8487 versuffix=-$major
8500 newlib=libimp-$func_stripname_result.a
8502 # If the library has no export list, then create one now
8503 if test -f "$output_objdir/$soname-def"; then :
8510 if test -f "$output_objdir/$newlib"; then :; else
8517 fi # test -n "$old_archive_from_expsyms_cmds"
8526 if test no = "$hardcode_direct"; then
8529 *-*-sco3.2v5.0.[024]*) add_dir=-L$dir ;;
8530 *-*-sysv4*uw2*) add_dir=-L$dir ;;
8531 *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
8532 *-*-unixware7*) add_dir=-L$dir ;;
8533 *-*-darwin* )
8534 # if the lib is a (non-dlopened) module then we cannot
8536 if /usr/bin/file -L $add 2> /dev/null |
8540 if test -z "$old_library"; then
8547 elif test -n "$old_library"; then
8552 elif test no = "$hardcode_minus_L"; then
8554 *-*-sunos*) add_shlibpath=$dir ;;
8556 add_dir=-L$dir
8557 add=-l$name
8558 elif test no = "$hardcode_shlibpath_var"; then
8560 add=-l$name
8562 lib_linked=no
8567 test no = "$hardcode_direct_absolute"; then
8570 add_dir=-L$absdir
8572 if test -n "$inst_prefix_dir"; then
8575 func_append add_dir " -L$inst_prefix_dir$libdir"
8579 add=-l$name
8582 add=-l$name
8584 lib_linked=no
8587 *) lib_linked=no ;;
8594 if test -n "$add_shlibpath"; then
8601 test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
8602 test -n "$add" && compile_deplibs="$add $compile_deplibs"
8604 test -n "$add_dir" && deplibs="$add_dir $deplibs"
8605 test -n "$add" && deplibs="$add $deplibs"
8623 test no = "$hardcode_direct_absolute"; then
8626 add_dir=-L$libdir
8627 add=-l$name
8633 add=-l$name
8635 if test -n "$inst_prefix_dir" &&
8636 test -f "$inst_prefix_dir$libdir/$linklib"; then
8643 add_dir=-L$libdir
8645 if test -n "$inst_prefix_dir"; then
8648 func_append add_dir " -L$inst_prefix_dir$libdir"
8652 add=-l$name
8656 test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
8657 test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
8659 test -n "$add_dir" && deplibs="$add_dir $deplibs"
8660 test -n "$add" && deplibs="$add $deplibs"
8668 test -n "$old_library" && linklib=$old_library
8672 compile_deplibs="-l$name -L$dir $compile_deplibs"
8673 finalize_deplibs="-l$name -L$dir $finalize_deplibs"
8691 echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
8692 if test -z "$global_symbol_pipe"; then
8699 if test no = "$build_old_libs"; then
8703 build_libtool_libs=no
8713 if test -n "$dependency_libs" &&
8717 # Extract -R from dependency_libs
8721 -R*) func_stripname '-R' '' "$libdir"
8735 test no = "$link_static" && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
8741 -L*) func_stripname '-L' '' "$deplib"
8754 if test no != "$link_all_deplibs"; then
8759 -L*) path=$deplib ;;
8767 [\\/]* | [A-Za-z]:[\\/]*) absdir=$dir ;;
8770 if test -z "$absdir"; then
8776 if $GREP "^installed=no" $deplib > /dev/null; then
8778 *-*-darwin*)
8780 eval deplibrary_names=`$SED -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
8781 if test -n "$deplibrary_names"; then
8785 if test -f "$absdir/$objdir/$depdepl"; then
8787 darwin_install_name=`$OTOOL -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
8788 if test -z "$darwin_install_name"; then
8789 … darwin_install_name=`$OTOOL64 -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
8791 func_append compiler_flags " $wl-dylib_file $wl$darwin_install_name:$depdepl"
8792 func_append linker_flags " -dylib_file $darwin_install_name:$depdepl"
8798 path=-L$absdir/$objdir
8802 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
8803 test -z "$libdir" && \
8808 path=-L$absdir
8817 fi # link_all_deplibs != no
8825 …r_flags "`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
8865 -L*) new_libs="$deplib $new_libs" ;;
8866 -R*) ;;
8869 # than once as an explicit dependence of a library, or
8880 # using -Wl,-lname, so that libtool does not consider it
8897 -L*)
8914 case `$CC -V 2>&1 | $SED 5q` in
8918 if test no != "$suncc_use_cstd_abi"; then
8919 func_append postdeps ' -library=Cstd -library=Crun'
8931 if test no != "$suncc_use_cstd_abi"; then
8932 func_append postdeps ' -library=Cstd -library=Crun'
8949 if test -n "$i"; then
8964 if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then
8965 func_warning "'-dlopen' is ignored for archives"
8969 *\ -l* | *\ -L*)
8970 func_warning "'-l' and '-L' are ignored for archives" ;;
8973 test -n "$rpath" && \
8974 func_warning "'-rpath' is ignored for archives"
8976 test -n "$xrpath" && \
8977 func_warning "'-R' is ignored for archives"
8979 test -n "$vinfo" && \
8980 func_warning "'-version-info/-version-number' is ignored for archives"
8982 test -n "$release" && \
8983 func_warning "'-release' is ignored for archives"
8985 test -n "$export_symbols$export_symbols_regex" && \
8986 func_warning "'-export-symbols' is ignored for archives"
8989 build_libtool_libs=no
9004 test no = "$module" \
9007 if test no != "$need_lib_prefix"; then
9020 if test -n "$objs"; then
9022 …func_fatal_error "cannot build libtool library '$output' from non-libtool objects on this host:$ob…
9025 $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
9031 test no = "$dlself" \
9032 || func_warning "'-dlopen self' is ignored for libtool libraries"
9036 test 1 -lt "$#" \
9037 && func_warning "ignoring multiple '-rpath's for a libtool library"
9042 if test -z "$rpath"; then
9053 test -n "$vinfo" && \
9054 func_warning "'-version-info/-version-number' is ignored for convenience libraries"
9056 test -n "$release" && \
9057 func_warning "'-release' is ignored for convenience libraries"
9066 test -n "$7" && \
9067 func_fatal_help "too many parameters to '-version-info'"
9079 # There are really only two kinds -- those that
9087 darwin|freebsd-elf|linux|midnightbsd-elf|osf|windows|none)
9093 freebsd-aout|qnx|sunos)
9103 lt_irix_increment=no
9107 no)
9116 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]) ;;
9124 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]) ;;
9132 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]) ;;
9139 if test "$age" -gt "$current"; then
9154 func_arith $current - $age
9160 …xlcverstring="$wl-compatibility_version $wl$minor_current $wl-current_version $wl$minor_current.$r…
9161 verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
9165 …verstring="$wl-compatibility_version $wl$minor_current $wl-current_version $wl$minor_current.$revi…
9168 … verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
9173 freebsd-aout)
9178 freebsd-elf | midnightbsd-elf)
9179 func_arith $current - $age
9185 if test no = "$lt_irix_increment"; then
9186 func_arith $current - $age
9188 func_arith $current - $age + 1
9200 while test 0 -ne "$loop"; do
9201 func_arith $revision - $loop
9203 func_arith $loop - 1
9214 func_arith $current - $age
9220 func_arith $current - $age
9227 while test 0 -ne "$loop"; do
9228 func_arith $current - $loop
9230 func_arith $loop - 1
9255 # Use '-' rather than '.', since we only want one
9257 func_arith $current - $age
9259 versuffix=-$major
9268 if test -z "$vinfo" && test -n "$release"; then
9280 if test no = "$need_version"; then
9288 if test yes,no = "$avoid_version,$need_version"; then
9299 build_libtool_libs=no
9301 func_fatal_error "can't build $host shared library unless -no-undefined is specified"
9325 if test -n "$precious_files_regex"; then
9326 if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
9336 test -n "$removelist" && \
9351 # deplibs=`$ECHO "$deplibs " | $SED "s% -L$path % %g"`
9352 # dependency_libs=`$ECHO "$dependency_libs " | $SED "s% -L$path % %g"`
9355 if test -n "$xrpath"; then
9360 func_append temp_xrpath " -R$func_replace_sysroot_result"
9392 if test -n "$rpath"; then
9394 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*)
9397 *-*-rhapsody* | *-*-darwin1.[012])
9401 *-*-netbsd*)
9404 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-midnightbsd*)
9407 *-*-sco3.2v5* | *-*-sco5v6*)
9410 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
9416 func_append deplibs " -lc"
9429 # release should show up in the -l (ie -lgmp5) so we don't want to
9435 droppeddeps=no
9455 if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
9459 -l*)
9460 func_stripname -l '' "$i"
9470 if test -n "$i"; then
9475 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0; then
9499 -l*)
9500 func_stripname -l '' "$i"
9503 if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
9513 if test -n "$i"; then
9518 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0; then
9552 -l*)
9553 func_stripname -l '' "$a_deplib"
9563 if test -n "$a_deplib"; then
9565 if test -n "$file_magic_glob"; then
9566 libnameglob=`func_echo_all "$libname" | $SED -e $file_magic_glob`
9570 test yes = "$want_nocaseglob" && nocaseglob=`shopt -p nocaseglob`
9573 shopt -s nocaseglob
9574 potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
9577 potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
9581 if ls -lLd "$potent_lib" 2>/dev/null |
9582 $GREP " -> " >/dev/null; then
9591 while test -h "$potlib" 2>/dev/null; do
9592 potliblink=`ls -ld $potlib | $SED 's/.* -> //'`
9594 [\\/]* | [A-Za-z]:[\\/]*) potlib=$potliblink;;
9599 $SED -e 10q |
9608 if test -n "$a_deplib"; then
9616 if test -z "$potlib"; then
9617 $ECHO "*** with $libname but no candidates were found. (...for file magic test)"
9625 # Add a -L argument.
9636 -l*)
9637 func_stripname -l '' "$a_deplib"
9647 if test -n "$a_deplib"; then
9650 potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
9652 potlib=$potent_lib # see symlink-check above in file_magic test
9662 if test -n "$a_deplib"; then
9670 if test -z "$potlib"; then
9671 $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)"
9679 # Add a -L argument.
9687 tmp_deplibs=`$ECHO " $deplibs" | $SED 's/ -lc$//; s/ -[LR][^ ]*//g'`
9698 echo "*** Warning: inter-library dependencies are not supported in this platform."
9700 echo "*** Warning: inter-library dependencies are not known to be supported."
9702 echo "*** All declared inter-library dependencies are being dropped."
9715 *-*-rhapsody* | *-*-darwin1.[012])
9717 newdeplibs=`$ECHO " $newdeplibs" | $SED 's/ -lc / System.ltframework /'`
9724 echo "*** Warning: libtool could not satisfy all declared inter-library"
9727 echo "*** application is linked with the -dlopen flag."
9728 if test -z "$global_symbol_pipe"; then
9735 if test no = "$build_old_libs"; then
9740 build_libtool_libs=no
9743 echo "*** The inter-library dependencies that have been dropped here will be"
9745 echo "*** or is declared to -dlopen it."
9747 if test no = "$allow_undefined"; then
9751 echo "*** it was explicitly requested with -no-undefined,"
9753 if test no = "$build_old_libs"; then
9758 build_libtool_libs=no
9766 # Time to change all our "foo.ltframework" stuff back to "-framework foo"
9768 *-*-darwin*)
9769 newdeplibs=`$ECHO " $newdeplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
9770 …er_flags=`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
9771 deplibs=`$ECHO " $deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
9780 *" -L$path/$objdir "*) ;;
9783 *" -L$path/$objdir "*)
9784 func_append new_libs " -L$path/$objdir" ;;
9791 -L*)
9802 # All the library-specific variables (install_libdir is set above).
9821 if test -n "$hardcode_libdir_flag_spec"; then
9822 if test -n "$hardcode_libdir_separator"; then
9825 if test -z "$hardcode_libdirs"; then
9841 elif test -n "$runpath_var"; then
9849 if test -n "$hardcode_libdir_separator" &&
9850 test -n "$hardcode_libdirs"; then
9854 if test -n "$runpath_var" && test -n "$perm_rpath"; then
9862 test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
9867 if test -n "$shlibpath"; then
9879 if test -n "$soname_spec"; then
9884 if test -z "$dlname"; then
9896 test -z "$pic_flag" && libobjs=`$ECHO "$libobjs" | $SP2NL | $SED "$lo2o" | $NL2SP`
9900 if test -n "$export_symbols" && test -n "$include_expsyms"; then
9908 cygwin* | mingw* | cegcc*)
9909 if test -n "$export_symbols" && test -z "$export_symbols_regex"; then
9927 if test -z "$export_symbols"; then
9928 if test yes = "$always_export_symbols" || test -n "$export_symbols_regex"; then
9946 try_normal_branch=no
9950 && { test "$len" -lt "$max_cmd_len" \
9951 || test "$max_cmd_len" -le -1; }
9955 elif test -n "$nm_file_list_spec"; then
9984 if test -n "$export_symbols_regex" && test : != "$skipped_export"; then
9985 func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
9991 if test -n "$export_symbols" && test -n "$include_expsyms"; then
9993 test -n "$orig_export_symbols" && tmp_export_symbols=$orig_export_symbols
9997 if test : != "$skipped_export" && test -n "$orig_export_symbols"; then
10005 …$opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $outp…
10008 $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
10022 if test -n "$convenience"; then
10023 if test -n "$whole_archive_flag_spec" &&
10025 test -z "$libobjs"; then
10030 if test -n "$whole_archive_flag_spec"; then
10044 if test yes = "$thread_safe" && test -n "$thread_safe_flag_spec"; then
10055 if test yes = "$module" && test -n "$module_cmds"; then
10056 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
10064 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
10076 test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
10091 if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
10106 if test -n "$save_libobjs" && test : != "$skipped_export" && test yes = "$with_gnu_ld"; then
10119 elif test -n "$save_libobjs" && test : != "$skipped_export" && test -n "$file_list_spec"; then
10139 if test -n "$save_libobjs"; then
10141 output=$output_objdir/$output_la-$k.$objext
10153 if test -z "$objlist" ||
10154 test "$len" -lt "$max_cmd_len"; then
10159 if test 1 -eq "$k"; then
10169 last_robj=$output_objdir/$output_la-$k.$objext
10172 output=$output_objdir/$output_la-$k.$objext
10182 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
10185 if test -n "$last_robj"; then
10194 ${skipped_export-false} && {
10200 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
10202 if test -n "$last_robj"; then
10207 test -n "$save_libobjs" &&
10233 if test -n "$export_symbols_regex" && ${skipped_export-false}; then
10234 func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
10239 ${skipped_export-false} && {
10240 if test -n "$export_symbols" && test -n "$include_expsyms"; then
10242 test -n "$orig_export_symbols" && tmp_export_symbols=$orig_export_symbols
10246 if test -n "$orig_export_symbols"; then
10254 …$opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $outp…
10257 … $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
10265 if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
10273 if test yes = "$module" && test -n "$module_cmds"; then
10274 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
10280 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
10288 if test -n "$delfiles"; then
10294 if test -n "$dlprefiles"; then
10331 if test -n "$convenience"; then
10332 if test -z "$whole_archive_flag_spec"; then
10347 # If -module or -export-dynamic was specified, set the dlname.
10356 if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then
10357 func_warning "'-dlopen' is ignored for objects"
10361 *\ -l* | *\ -L*)
10362 func_warning "'-l' and '-L' are ignored for objects" ;;
10365 test -n "$rpath" && \
10366 func_warning "'-rpath' is ignored for objects"
10368 test -n "$xrpath" && \
10369 func_warning "'-R' is ignored for objects"
10371 test -n "$vinfo" && \
10372 func_warning "'-version-info' is ignored for objects"
10374 test -n "$release" && \
10375 func_warning "'-release' is ignored for objects"
10379 test -n "$objs$old_deplibs" && \
10380 func_fatal_error "cannot build library object '$output' from non-libtool objects"
10396 # single-version convenience libraries. Whenever we create
10397 # different ones for PIC/non-PIC, this we'll have to duplicate
10401 # if reload_cmds runs $LD directly, get rid of -Wl from
10407 if test -n "$convenience"; then
10408 if test -n "$whole_archive_flag_spec"; then
10410 test -n "$wl" || tmp_whole_archive_flags=`$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'`
10424 # Create the old-style object.
10431 if test -z "$libobj"; then
10432 if test -n "$gentop"; then
10440 if test -n "$gentop"; then
10444 # Create an invalid libtool object if no PIC, so that we don't
10451 if test -n "$pic_flag" || test default != "$pic_mode"; then
10458 if test -n "$gentop"; then
10470 test -n "$vinfo" && \
10471 func_warning "'-version-info' is ignored for programs"
10473 test -n "$release" && \
10474 func_warning "'-release' is ignored for programs"
10478 && func_warning "'LT_INIT([dlopen])' not used. Assuming no dlopen support."
10481 *-*-rhapsody* | *-*-darwin1.[012])
10483 compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's/ -lc / System.ltframework /'`
10484 finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's/ -lc / System.ltframework /'`
10489 *-*-darwin*)
10493 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
10495 func_append compile_command " $wl-bind_at_load"
10496 func_append finalize_command " $wl-bind_at_load"
10500 # Time to change all our "foo.ltframework" stuff back to "-framework foo"
10501 compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
10502 finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
10512 *" -L$path/$objdir "*) ;;
10515 *" -L$path/$objdir "*)
10516 func_append new_libs " -L$path/$objdir" ;;
10523 -L*)
10538 if test -n "$rpath$xrpath"; then
10541 # This is the magic to use -rpath.
10553 if test -n "$hardcode_libdir_flag_spec"; then
10554 if test -n "$hardcode_libdir_separator"; then
10555 if test -z "$hardcode_libdirs"; then
10571 elif test -n "$runpath_var"; then
10578 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
10579 testbindir=`$ECHO "$libdir" | $SED -e 's*/lib$*/bin*'`
10594 if test -n "$hardcode_libdir_separator" &&
10595 test -n "$hardcode_libdirs"; then
10604 if test -n "$hardcode_libdir_flag_spec"; then
10605 if test -n "$hardcode_libdir_separator"; then
10606 if test -z "$hardcode_libdirs"; then
10622 elif test -n "$runpath_var"; then
10630 if test -n "$hardcode_libdir_separator" &&
10631 test -n "$hardcode_libdirs"; then
10637 if test -n "$libobjs" && test yes = "$build_old_libs"; then
10646 if test -n "$prelink_cmds"; then
10656 *cygwin* | *mingw* )
10660 if test no = "$need_relink" || test yes != "$build_libtool_libs"; then
10670 # We have no uninstalled library dependencies, so finalize right now.
10674 if test -n "$postlink_cmds"; then
10676 …postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUT…
10681 if test -f "$output_objdir/${outputname}S.$objext"; then
10688 if test -n "$compile_shlibpath$finalize_shlibpath"; then
10691 if test -n "$finalize_shlibpath"; then
10697 if test -n "$runpath_var"; then
10698 if test -n "$perm_rpath"; then
10706 if test -n "$finalize_perm_rpath"; then
10726 if test -n "$postlink_cmds"; then
10728 …postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUT…
10748 *,no)
10762 $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname
10766 if test -n "$postlink_cmds"; then
10768 …stlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g…
10776 if test -n "$relink_command"; then
10779 if eval test -z \"\${$var+set}\"; then
10780 …relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relin…
10781 elif eval var_value=\$$var; test -z "$var_value"; then
10810 *cygwin* | *mingw* )
10814 cwrappersource=$output_path/$objdir/lt-$output_name.c
10822 # because it contains $host paths and files. If cross-
10826 $LTCC $LTCFLAGS -o $cwrapper $cwrappersource
10837 $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result
10839 func_emit_wrapper no > $func_ltwrapper_scriptname_result
10847 func_emit_wrapper no > $output
10856 # See if we need to build an old-fashioned archive.
10863 build_libtool_libs=no
10868 build_libtool_libs=no
10872 $preload && test -f "$symfileobj" \
10878 if test -n "$addlibs"; then
10887 if test -n "$old_archive_from_new_cmds" && test yes = "$build_libtool_libs"; then
10892 if test -n "$dlprefiles"; then
10900 # POSIX demands no paths to be encoded in archives. We have
10910 done | sort | sort -uc >/dev/null 2>&1); then
10930 newobj=lt$counter-$objbase
10935 *) if test ! -f "$gentop/$newobj"; then break; fi ;;
10951 if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
10953 elif test -n "$archiver_list_spec"; then
10987 if test "$len" -lt "$max_cmd_len"; then
10995 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
11003 if test -z "$oldobjs"; then
11013 test -n "$generated" && \
11025 if eval test -z \"\${$var+set}\"; then
11026 …relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relin…
11027 elif eval var_value=\$$var; test -z "$var_value"; then
11036 …relink_command="($func_quote_result; $SHELL \"$progpath\" $preserve_args --mode=relink $libtool_ar…
11045 for installed in no yes; do
11047 if test -z "$install_libdir"; then
11059 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result`
11060 test -z "$libdir" && \
11064 -L*)
11065 func_stripname -L '' "$deplib"
11067 func_append newdependency_libs " -L$func_replace_sysroot_result"
11069 -R*)
11070 func_stripname -R '' "$deplib"
11072 func_append newdependency_libs " -R$func_replace_sysroot_result"
11085 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
11086 test -z "$libdir" && \
11098 # Only pass preopened files to the pseudo-archive (for
11104 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
11105 test -z "$libdir" && \
11116 [\\/]* | [A-Za-z]:[\\/]*) abs=$lib ;;
11125 [\\/]* | [A-Za-z]:[\\/]*) abs=$lib ;;
11135 # systems that can't hard-code library paths into their executables
11136 # and that have no shared library path variable independent of PATH,
11138 # libtool variables, so we have to hard-code the OSs to which it
11144 *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll)
11145 # If a -bindir argument was supplied, place the dll there.
11146 if test -n "$bindir"; then
11156 # $outputname - a libtool library file
11188 # Should we warn about portability when linking against -modules?
11197 if test no,yes = "$installed,$need_relink"; then
11234 -f) func_append RM " $arg"; rmforce=: ;;
11235 -*) func_append RM " $arg" ;;
11240 test -z "$RM" && \
11265 # Don't error if the file doesn't exist and rm -f was used.
11266 if { test -L "$file"; } >/dev/null 2>&1 ||
11267 { test -h "$file"; } >/dev/null 2>&1 ||
11268 test -f "$file"; then
11270 elif test -d "$file"; then
11289 test -n "$old_library" && func_append rmfiles " $odir/$old_library"
11295 *) test -n "$dlname" && func_append rmfiles " $odir/$dlname" ;;
11297 test -n "$libdir" && func_append rmfiles " $odir/$name $odir/${name}i"
11300 if test -n "$library_names"; then
11305 if test -n "$old_library"; then
11323 if test -n "$pic_object" && test none != "$pic_object"; then
11327 # Add non-PIC object to the list of files to remove.
11328 if test -n "$non_pic_object" && test none != "$non_pic_object"; then
11363 if test yes = "$fast_install" && test -n "$relink_command"; then
11364 func_append rmfiles " $odir/lt-$name"
11367 func_append rmfiles " $odir/lt-$noexename.c"
11378 if test -d "$dir"; then
11390 test -z "$opt_mode" && {
11395 test -z "$exec_cmd" && \
11398 if test -n "$exec_cmd"; then
11413 # time on that platform, so we default to a shared-only configuration.
11414 # If a disable-shared tag is given, we'll fallback to a static-only
11415 # configuration. But we'll never go from static-only to shared-only.
11417 # ### BEGIN LIBTOOL TAG CONFIG: disable-shared
11418 build_libtool_libs=no
11420 # ### END LIBTOOL TAG CONFIG: disable-shared
11422 # ### BEGIN LIBTOOL TAG CONFIG: disable-static
11423 build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
11424 # ### END LIBTOOL TAG CONFIG: disable-static
11427 # mode:shell-script
11428 # sh-indentation:2