Lines Matching +full:- +full:- +full:disable +full:- +full:llvm +full:- +full:shared +full:- +full:libs
2 ## DO NOT EDIT - This file generated from ./build-aux/ltmain.in
3 ## by inline-source v2014-01-03.01
6 # Provide generalized library-building support services.
9 # Copyright (C) 1996-2015 Free Software Foundation, Inc.
34 VERSION="2.4.6 Debian-2.4.6-2"
38 ## ------ ##
40 ## ------ ##
42 # Run './libtool --help' for help with using this script from the
46 ## ------------------------------- ##
48 ## ------------------------------- ##
51 # shell tools we need than the defaults used by the functions shared
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=2015-01-20.17; # UTC
72 # Copyright (C) 2004-2015 Free Software Foundation, Inc.
97 ## ------ ##
99 ## ------ ##
104 # . `echo "$0" | ${SED-sed} 's|[^/]*$||'`/build-aux/funclib.sh
110 ## -------------------- ##
112 ## -------------------- ##
118 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
121 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
122 # is contrary to our usage. Disable this feature.
123 alias -g '${1+"$@"}'='"$@"'
126 case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac
155 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
156 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
163 ## ------------------------- ##
165 ## ------------------------- ##
169 # ----------------------
173 test -f "$1" && test -x "$1"
178 # --------------------------------------------
179 # Search for either a program that responds to --version with output
191 _G_PATH=${3-"$PATH"}
195 _G_save_IFS=$IFS; IFS=${PATH_SEPARATOR-:}
198 test -z "$_G_dir" && _G_dir=.
203 case `"$_G_path_prog" --version 2>&1` in
214 test -z "$func_path_progs_result" && {
223 # to search for them ourselves - except when the results are already set
228 test -z "$SED" && {
248 "$_G_path_prog" -f conftest.sed <conftest.nl >conftest.out 2>/dev/null || break
251 if test "$_G_count" -gt "$_G_path_prog_max"; then
257 test 10 -lt "$_G_count" && break
259 rm -f conftest.in conftest.tmp conftest.nl conftest.out
263 rm -f conftest.sed
270 test -z "$GREP" && {
284 … "$_G_path_prog" -e 'GREP$' -e '-(cannot match)-' <conftest.nl >conftest.out 2>/dev/null || break
287 if test "$_G_count" -gt "$_G_path_prog_max"; then
293 test 10 -lt "$_G_count" && break
295 rm -f conftest.in conftest.tmp conftest.nl conftest.out
303 ## ------------------------------- ##
305 ## ------------------------------- ##
312 : ${CP="cp -f"}
314 : ${EGREP="$GREP -E"}
315 : ${FGREP="$GREP -F"}
316 : ${LN_S="ln -s"}
319 : ${MV="mv -f"}
320 : ${RM="rm -f"}
321 : ${SHELL="${CONFIG_SHELL-/bin/sh}"}
324 ## -------------------- ##
326 ## -------------------- ##
332 # metacharacters that are still active within double-quoted strings.
347 # Re-'\' parameter expansions in output of sed_double_quote_subst that
348 # were '\'-ed in input to the same. If an odd number of '\' preceded a
364 ## ----------------- ##
366 ## ----------------- ##
390 # debug_cmd='eval echo "${FUNCNAME[0]} $*" >&2' bash your-script-name
391 debug_cmd=${debug_cmd-":"}
398 # so that you can set exit_status to non-zero if you want to indicate
415 [\\/]*|[A-Za-z]:\\*) ;;
423 IFS=${PATH_SEPARATOR-:}
426 test -x "$progdir/$progname" && break
429 test -n "$progdir" || progdir=`pwd`
435 ## ----------------- ##
437 ## ----------------- ##
440 # below, and should be set appropriately depending on run-time para-
463 ## -------------------- ##
465 ## -------------------- ##
468 # particular resource (a file, or a non-empty configuration variable for
480 # -------------------
487 test -t 1 && {
491 test -n "${COLORTERM+set}" && : ${USE_ANSI_COLORS="1"}
501 test -n "`tput sgr0 2>/dev/null`" && {
503 test -n "`tput bold 2>/dev/null`" && tc_bold=`tput bold`
505 test -n "`tput smso 2>/dev/null`" && tc_standout=`tput smso`
506 test -n "`tput setaf 1 2>/dev/null`" && tc_red=`tput setaf 1`
507 test -n "`tput setaf 2 2>/dev/null`" && tc_green=`tput setaf 2`
508 test -n "`tput setaf 4 2>/dev/null`" && tc_blue=`tput setaf 4`
509 test -n "`tput setaf 5 2>/dev/null`" && tc_cyan=`tput setaf 5`
518 ## ----------------- ##
520 ## ----------------- ##
529 # ---------------------
550 test -z "$_G_HAVE_PLUSEQ_OP" \
575 # ----------------------------
598 # --------------------------
602 # func_append_uniq options " --another-option option-argument"
604 # will only append to $options if " --another-option option-argument "
622 # ------------------
624 test -z "$_G_HAVE_ARITH_OP" \
646 # ------------------
679 # -------------------------------------------
691 # --------------------------------------------------------
712 # ----------------
731 # --------------------
732 # Invoke $ECHO with all args, space-separated.
740 # ------------------------------
757 test -n "$_G_tc" && {
776 # -----------------
789 # -----------------------
801 # -----------------------------
812 # ---------------
815 test -z "$_G_HAVE_XSI_OPS" \
837 # func_mkdir_p DIRECTORY-PATH
838 # ---------------------------
839 # Make sure the entire path to DIRECTORY-PATH is available.
847 if test -n "$_G_directory_path" && test : != "$opt_dry_run"; then
849 # Protect directory names starting with '-'
851 -*) _G_directory_path=./$_G_directory_path ;;
855 while test ! -d "$_G_directory_path"; do
864 _G_directory_path=`$ECHO "$_G_directory_path" | $SED -e "$sed_dirname"`
879 test -d "$_G_directory_path" || \
886 # -------------------------
894 _G_template=${TMPDIR-/tmp}/${1-$progname}
897 # Return a directory name, but don't create it in dry-run mode
898 _G_tmpdir=$_G_template-$$
902 _G_tmpdir=`mktemp -d "$_G_template-XXXXXXXX" 2>/dev/null`
904 if test ! -d "$_G_tmpdir"; then
906 _G_tmpdir=$_G_template-${RANDOM-0}$$
914 # If we're not in dry-run mode, bomb out on failure
915 test -d "$_G_tmpdir" || \
924 # ------------------------
925 # Remove doubled-up and trailing slashes, "." path components,
955 # we take advantage of case's first-match behaviour.
978 -e "$_G_removedotparts" -e "$_G_collapseslashes" -e "$_G_finalslash"`
983 if test -z "$func_normal_abspath_result"; then
989 -e "$_G_pathcar"`
991 -e "$_G_pathcdr"`
1008 # Restore leading double-slash if one was found on entry.
1014 # --------------------
1023 # fails when set -e is in force, so we need another command to
1030 # --------------------------------
1055 if test -z "$func_relative_path_result"; then
1063 if test -z "$func_relative_path_tlibdir"; then
1074 # Now calculate path; take care to avoid doubling-up slashes.
1078 if test -n "$func_stripname_result"; then
1083 if test -n "$func_relative_path_result"; then
1088 test -n "$func_relative_path_result" || func_relative_path_result=.
1095 # --------------------------
1099 # double-quoted, suitable for a subsequent eval
1109 while test 0 -lt $#; do
1116 if test -n "$func_quote_for_eval_unquoted_result"; then
1123 # Double-quote args containing shell metacharacters to delay
1136 if test -n "$func_quote_for_eval_result"; then
1147 # -------------------------
1157 -e "$sed_double_quote_subst" -e "$sed_double_backslash"` ;;
1163 # Double-quote args containing shell metacharacters to delay
1177 # ---------------------------------
1199 .*) func_stripname_result=`$ECHO "$3" | $SED -e "s%^$1%%" -e "s%\\\\$2\$%%"`;;
1200 *) func_stripname_result=`$ECHO "$3" | $SED -e "s%^$1%%" -e "s%$2\$%%"`;;
1207 # -----------------------------
1216 _G_fail_exp=${2-':'}
1224 if test 0 -ne "$_G_status"; then
1232 # ------------------------------------
1241 _G_fail_exp=${2-':'}
1253 if test 0 -ne "$_G_status"; then
1261 # ----------
1264 # not in the set a-zA-Z0-9_ are replaced with '_'. Further,
1271 [0-9]* | *[!a-zA-Z0-9_]*)
1272 func_tr_sh_result=`$ECHO "$1" | $SED -e 's/^\([0-9]\)/_\1/' -e 's/[^a-zA-Z0-9_]/_/g'`
1282 # -------------------
1295 # -----------------------------
1308 # ----------------------------
1333 # -----------------------
1334 # 'sort -V' is not generally available.
1336 # in that it treats 1.5 < 1.5.0, and treats 1.4.4a < 1.4-p3a
1346 | 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
1350 # ---------------------
1364 # mode: shell-script
1365 # sh-indentation: 2
1366 # eval: (add-hook 'before-save-hook 'time-stamp)
1367 # time-stamp-pattern: "10/scriptversion=%:y-%02m-%02d.%02H; # UTC"
1368 # time-stamp-time-zone: "UTC"
1373 scriptversion=2014-01-07.03; # UTC
1378 # Copyright (C) 2010-2015 Free Software Foundation, Inc.
1398 ## ------ ##
1400 ## ------ ##
1410 # . relative/path/to/options-parser
1416 # In order for the '--version' option to work, you will need to have a
1420 # For '-h' and '--help' to work, you will also need a one line
1424 # The default options also support '--debug', which will turn on shell
1426 # use), and '--verbose' and the func_verbose function to allow your script
1428 # '--verbose'.
1435 ## -------------- ##
1437 ## -------------- ##
1443 # The usage line for option parsing errors and the start of '-h' and
1444 # '--help' output messages. You can embed shell variables for delayed
1446 # quote other shell meta-characters carefully to prevent them being
1450 # Short help message in response to '-h' and '--help'. Add to this or
1454 --debug enable verbose shell tracing
1455 -W, --warnings=CATEGORY
1457 -v, --verbose verbosely report processing
1458 --version print version information and exit
1459 -h, --help print short or long help message and exit
1462 # Additional text appended to 'usage_message' in response to '--help'.
1470 fatal_help="Try '\$progname --help' for more information."
1474 ## ------------------------- ##
1476 ## ------------------------- ##
1483 # -----------------------
1495 # ---------------------------------
1512 # ------------------------------------
1523 # ---------------------------------
1526 # than a whitespace-delimited list of legal shell function names, and
1527 # no effort is wasted trying to catch shell meta-characters or preserve
1555 ## --------------- ##
1557 ## --------------- ##
1571 # -s, --silent don'\''t print informational messages
1587 # while test $# -gt 0; do
1590 # --silent|-s) opt_silent=: ;;
1591 # # Separate non-argument short options:
1592 # -s*) func_split_short_opt "$_G_opt"
1594 # "-$func_split_short_opt_arg" ${1+"$@"}
1612 # '--silent' and '--verbose' options are mutually exclusive."
1625 # ---------------------
1648 # --------------------------
1672 # ---------------------------
1682 while test $# -gt 0; do
1691 test $# -gt 0 || break
1696 --debug|-x) debug_cmd='set -x'
1701 --no-warnings|--no-warning|--no-warn)
1702 set dummy --warnings none ${1+"$@"}
1706 --warnings|--warning|-W)
1732 --verbose|-v) opt_verbose=: ;;
1733 --version) func_version ;;
1734 -\?|-h) func_usage ;;
1735 --help) func_help ;;
1738 --*=*) func_split_equals "$_G_opt"
1745 -W*)
1752 # Separate non-argument short options:
1753 -\?*|-h*|-v*|-x*)
1756 "-$func_split_short_opt_arg" ${1+"$@"}
1760 --) break ;;
1761 -*) func_fatal_help "unrecognised option: '$_G_opt'" ;;
1773 # ------------------------------
1781 # Display all warnings if -W was not given.
1782 test -n "$opt_warning_types" || opt_warning_types=" $warning_categories"
1795 ## ----------------- ##
1797 ## ----------------- ##
1800 # hookable option parser framework in ascii-betical order.
1804 # ----------------------
1819 # ---------
1832 # ------------------------
1845 # ------------------------
1848 test -z "$_G_HAVE_XSI_OPS" \
1880 # -----------------------------
1899 func_split_short_opt_name=`expr "x$1" : 'x-\(.\)'`
1900 func_split_short_opt_arg=`expr "x$1" : 'x-.\(.*\)$'`
1906 # ----------
1913 $ECHO "Run '$progname --help |${PAGER-more}' for full usage"
1919 # ------------------
1927 $SED -n 's|^# ||
1939 # ------------
1946 $SED -n '
1958 s|\((C)\)[ 0-9,-]*[ ,-]\([1-9][0-9]* \)|\1 \2|
1972 # mode: shell-script
1973 # sh-indentation: 2
1974 # eval: (add-hook 'before-save-hook 'time-stamp)
1975 # time-stamp-pattern: "10/scriptversion=%:y-%02m-%02d.%02H; # UTC"
1976 # time-stamp-time-zone: "UTC"
1984 # ----------------
2004 # -------------------
2015 ## ---------------- ##
2017 ## ---------------- ##
2022 usage='$progpath [OPTION]... [MODE-ARG]...'
2024 # Short help message in response to '-h'.
2026 --config show all configuration variables
2027 --debug enable verbose shell tracing
2028 -n, --dry-run display commands without modifying any files
2029 --features display basic configuration information and exit
2030 --mode=MODE use operation mode MODE
2031 --no-warnings equivalent to '-Wnone'
2032 --preserve-dup-deps don't remove duplicate dependency libraries
2033 --quiet, --silent don't print informational messages
2034 --tag=TAG use configuration variables from tag TAG
2035 -v, --verbose print more informational messages than default
2036 --version print version information
2037 -W, --warnings=CATEGORY report the warnings falling in CATEGORY [all]
2038 -h, --help, --help-all print short, long, or detailed help message
2041 # Additional text appended to 'usage_message' in response to '--help'.
2059 MODE-ARGS vary depending on the MODE. When passed as first option,
2060 '--mode=MODE' may be abbreviated as 'MODE' or a unique abbreviation of that.
2061 Try '$progname --help --mode=MODE' for a more detailed description of MODE.
2066 host-triplet: $host
2071 version: $progname $scriptversion Debian-2.4.6-2
2072 automake: `($AUTOMAKE --version) 2>/dev/null |$SED 1q`
2073 autoconf: `($AUTOCONF --version) 2>/dev/null |$SED 1q`
2075 Report bugs to <bug-libtool@gnu.org>.
2082 # func_lo2o OBJECT-NAME
2083 # ---------------------
2084 # Transform OBJECT-NAME from a '.lo' suffix to the platform specific
2099 # func_xform LIBOBJ-OR-SOURCE
2100 # ---------------------------
2101 # Transform LIBOBJ-OR-SOURCE from a '.o' or '.c' (or otherwise)
2102 # suffix to a '.lo' libtool-object suffix.
2122 # -------------------------------
2134 # -----------
2146 … $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath"
2154 # -------------
2160 echo "enable shared libraries"
2162 echo "disable shared libraries"
2167 echo "disable static libraries"
2175 # -----------------------
2190 *[!-_A-Za-z0-9,/]*)
2205 # also don't use non-portable quotes within backquotes within
2207 extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"`
2218 # ------------------------
2225 if test -z "$macro_version"; then
2255 # -----------------------------
2273 # Shorthand for --mode=foo, only valid as the first argument
2276 shift; set dummy --mode clean ${1+"$@"}; shift
2279 shift; set dummy --mode compile ${1+"$@"}; shift
2282 shift; set dummy --mode execute ${1+"$@"}; shift
2285 shift; set dummy --mode finish ${1+"$@"}; shift
2288 shift; set dummy --mode install ${1+"$@"}; shift
2291 shift; set dummy --mode link ${1+"$@"}; shift
2294 shift; set dummy --mode uninstall ${1+"$@"}; shift
2306 # ---------------------------------
2314 while test $# -gt 0; do
2318 --dry-run|--dryrun|-n)
2322 --config) func_config ;;
2324 --dlopen|-dlopen)
2330 --preserve-dup-deps)
2333 --features) func_features ;;
2335 --finish) set dummy --mode finish ${1+"$@"}; shift ;;
2337 --help) opt_help=: ;;
2339 --help-all) opt_help=': help-all' ;;
2341 --mode) test $# = 0 && func_missing_arg $_G_opt && break
2356 --no-silent|--no-quiet)
2361 --no-warnings|--no-warning|--no-warn)
2366 --no-verbose)
2371 --silent|--quiet)
2377 --tag) test $# = 0 && func_missing_arg $_G_opt && break
2384 --verbose|-v) opt_quiet=false
2404 # ---------------------------------
2409 # save first non-option argument
2410 if test 0 -lt $#; then
2415 # preserve --debug
2416 test : = "$debug_cmd" || func_append preserve_args " --debug"
2441 # Only execute mode is allowed to have -dlopen flags.
2442 if test -n "$opt_dlopen" && test execute != "$opt_mode"; then
2443 func_error "unrecognized option '-dlopen'"
2448 # Change the help message to a mode-specific one.
2450 help="Try '$progname --help --mode=$opt_mode' for more information."
2460 # Process options as early as possible so that --help and --version
2467 ## ----------- ##
2469 ## ----------- ##
2479 # will be execed at the end. This prevents here-documents from being
2506 test -f "$1" &&
2507 $SED -e 4q "$1" 2>/dev/null | func_generated_by_libtool_p
2520 if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then
2528 exec 0<&5 5<&-
2539 test -f "$1" &&
2579 # Execute tilde-delimited COMMANDS.
2581 # FAIL_CMD may read-access the current command in variable CMD!
2591 func_show_eval "$cmd" "${2-:}"
2600 # FILE even if both FILE and FILE.exe exist: automatic-append-.exe
2647 # if one wasn't chosen via the "--tag" command line option.
2655 if test -n "$available_tags" && test -z "$tagname"; then
2673 …eval "`$SED -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/…
2676 # Double-quote args containing other shell metacharacters.
2694 # was found and let the user know that the "--tag" command
2696 if test -z "$tagname"; then
2698 func_fatal_error "specify a tag with '--tag'"
2729 # $write_libobj - a libtool object file
2738 # Name of the non-PIC object
2765 if test -n "$1"; then
2766 # Unfortunately, winepath does not exit with a non-zero error code, so we
2770 # zero AND non-empty stdout, which explains the odd construction:
2771 func_convert_core_file_wine_to_w32_tmp=`winepath -w "$1" 2>/dev/null`
2772 if test "$?" -eq 0 && test -n "$func_convert_core_file_wine_to_w32_tmp"; then
2774 $SED -e "$sed_naive_backslashify"`
2799 if test -n "$1"; then
2805 if test -n "$func_convert_core_file_wine_to_w32_result"; then
2806 if test -z "$func_convert_core_path_wine_to_w32_result"; then
2838 if test -n "$LT_CYGPATH" && test -f "$LT_CYGPATH"; then
2840 if test "$?" -ne 0; then
2846 func_error "LT_CYGPATH is empty or specifies non-existent file: '$LT_CYGPATH'"
2861 $SED -e 's/[ ]*$//' -e "$sed_naive_backslashify"`
2874 if test -z "$2" && test -n "$1"; then
2893 if test -z "$4" && test -n "$3"; then
2902 $SED -e "$lt_replace_pathsep_chars"`
2990 if test -n "$1"; then
3007 if test -n "$1"; then
3010 func_to_host_file_result=`cygpath -m "$1"`
3025 if test -n "$1"; then
3042 if test -n "$1"; then
3044 func_cygpath -u "$func_convert_core_msys_to_w32_result"
3061 if test -n "$1"; then
3064 func_cygpath -u "$func_convert_core_file_wine_to_w32_result"
3101 if test -z "$to_host_path_cmd"; then
3139 if test -n "$1"; then
3163 if test -n "$1"; then
3167 func_to_host_path_result=`cygpath -m -p "$func_to_host_path_tmp1"`
3184 if test -n "$1"; then
3206 if test -n "$1"; then
3211 func_cygpath -u -p "$func_convert_core_msys_to_w32_result"
3230 if test -n "$1"; then
3237 func_cygpath -u -p "$func_convert_core_path_wine_to_w32_result"
3254 func_dll_def_p_tmp=`$SED -n \
3255 -e 's/^[ ]*//' \
3256 -e '/^\(;.*\)*$/d' \
3257 -e 's/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p' \
3258 -e q \
3271 srcfile=$nonopt # always keep a non-empty value in "srcfile"
3295 # Accept any command-line options.
3297 -o)
3298 test -n "$libobj" && \
3299 func_fatal_error "you cannot specify '-o' more than once"
3304 -pie | -fpie | -fPIE)
3309 -shared | -static | -prefer-pic | -prefer-non-pic)
3314 -no-suppress)
3319 -Xcompiler)
3324 -Wc,*)
3325 func_stripname '-Wc,' '' "$arg"
3359 func_fatal_error "you must specify an argument for -Xcompile"
3362 func_fatal_error "you must specify a target with '-o'"
3366 test -z "$libobj" && {
3374 # If the user specifies -o file.o, it is replaced with file.lo
3396 -shared)
3398 || func_fatal_configuration "cannot build a shared library"
3403 -static)
3409 -prefer-pic)
3414 -prefer-non-pic)
3430 test -z "$base_compile" && \
3447 # non-PIC code in shared libraries is not supported
3452 # not support -o with -c
3470 if test -f "$lockfile"; then
3477 your compiler does not support '-c' and '-o' together. If you
3479 avoid parallel builds (make -j) in this platform, or get a better
3512 if test -z "$output_obj"; then
3514 func_append command " -o $lobj"
3518 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE'
3531 your compiler does not support '-c' and '-o' together. If you
3533 avoid parallel builds (make -j) in this platform, or get a better
3541 if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
3552 # Only build a position-dependent object if we build old libraries.
3561 func_append command " -o $obj"
3580 your compiler does not support '-c' and '-o' together. If you
3582 avoid parallel builds (make -j) in this platform, or get a better
3590 if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
3625 "Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
3630 (typically '/bin/rm'). RM-OPTIONS are options (such as '-f') to be passed
3639 "Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
3645 -o OUTPUT-FILE set the output file name to OUTPUT-FILE
3646 -no-suppress do not suppress compiler output for multiple passes
3647 -prefer-pic try to build PIC objects only
3648 -prefer-non-pic try to build non-PIC objects only
3649 -shared do not build a '.o' file suitable for static linking
3650 -static only build a '.o' file suitable for static linking
3651 -Wc,FLAG pass FLAG directly to the compiler
3653 COMPILE-COMMAND is a command to be used in creating a 'standard' object file
3663 "Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]...
3669 -dlopen FILE add the directory containing FILE to the library path
3671 This mode sets the library path environment variable according to '-dlopen'
3683 "Usage: $progname [OPTION]... --mode=finish [LIBDIR]...
3690 the '--dry-run' option if you just want to see what would be executed."
3695 "Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND...
3699 INSTALL-COMMAND is the installation command. The first component should be
3702 The following components of INSTALL-COMMAND are treated specially:
3704 -inst-prefix-dir PREFIX-DIR Use PREFIX-DIR as a staging area for installation
3707 BSD-compatible install options are recognized)."
3712 "Usage: $progname [OPTION]... --mode=link LINK-COMMAND...
3717 LINK-COMMAND is a command using the C compiler that you would use to create
3720 The following components of LINK-COMMAND are treated specially:
3722 -all-static do not do any dynamic linking at all
3723 -avoid-version do not add a version suffix if possible
3724 -bindir BINDIR specify path to binaries directory (for systems where
3726 -dlopen FILE '-dlpreopen' FILE if it cannot be dlopened at runtime
3727 -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
3728 -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
3729 -export-symbols SYMFILE
3731 -export-symbols-regex REGEX
3733 -LLIBDIR search LIBDIR for required installed libraries
3734 -lNAME OUTPUT-FILE requires the installed library libNAME
3735 -module build a library that can dlopened
3736 -no-fast-install disable the fast-install mode
3737 -no-install link a not-installable executable
3738 -no-undefined declare that a library does not refer to external symbols
3739 -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
3740 -objectlist FILE use a list of object files found in FILE to specify objects
3741 -os2dllname NAME force a short DLL name on OS/2 (no effect on other OSes)
3742 -precious-files-regex REGEX
3744 -release RELEASE specify package release information
3745 -rpath LIBDIR the created library will eventually be installed in LIBDIR
3746 -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
3747 -shared only do dynamic linking of libtool libraries
3748 -shrext SUFFIX override the standard shared library file extension
3749 -static do not do any dynamic linking of uninstalled libtool libraries
3750 -static-libtool-libs
3752 -version-info CURRENT[:REVISION[:AGE]]
3754 -weak LIBNAME declare that the target provides the LIBNAME interface
3755 -Wc,FLAG
3756 -Xcompiler FLAG pass linker-specific FLAG directly to the compiler
3757 -Wl,FLAG
3758 -Xlinker FLAG pass linker-specific FLAG directly to the linker
3759 -XCClinker FLAG pass link-specific FLAG to the compiler driver (CC)
3761 All other options (arguments beginning with '-') are ignored.
3767 If the OUTPUT-FILE ends in '.la', then a libtool library is created,
3768 only library objects ('.lo' files) may be specified, and '-rpath' is
3771 If OUTPUT-FILE ends in '.a' or '.lib', then a standard library is created
3774 If OUTPUT-FILE ends in '.lo' or '.$objext', then a reloadable object file
3780 "Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
3785 (typically '/bin/rm'). RM-OPTIONS are options (such as '-f') to be passed
3798 $ECHO "Try '$progname --help' for more information about other modes."
3801 # Now that we've collected a possible --mode arg, show help if necessary
3811 } | $SED -n '1p; 2,$s/^Usage:/ or: /p'
3827 s/^Usage:.*--mode=\([^ ]*\) .*/Description of \1 mode:/'
3840 test -z "$cmd" && \
3843 # Handle -dlopen flags immediately.
3845 test -f "$file" \
3864 if test -z "$dlname"; then
3865 # Warn if it was a shared library.
3866 test -n "$library_names" && \
3867 func_warning "'$file' was not linked with '-export-dynamic'"
3874 if test -f "$dir/$objdir/$dlname"; then
3877 if test ! -f "$dir/$dlname"; then
3890 func_warning "'-dlopen' is ignored for non-libtool libraries and objects"
3897 test -n "$absdir" && dir=$absdir
3900 if eval "test -z \"\$$shlibpath_var\""; then
3916 -* | *.la | *.lo ) ;;
3937 if test -n "$shlibpath_var"; then
3944 if test -n "$shlibpath_var"; then
3972 libs=
3978 if test -d "$opt"; then
3981 elif test -f "$opt"; then
3983 func_append libs " $opt"
3993 if test -n "$libs"; then
3994 if test -n "$lt_sysroot"; then
4003 for lib in $libs; do
4008 for lib in $libs; do
4009 $SED -e "$sysroot_cmd s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \
4010 > $tmpdir/tmp-la
4011 mv -f $tmpdir/tmp-la $lib
4017 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
4019 if test -n "$finish_cmds"; then
4024 if test -n "$finish_eval"; then
4036 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
4037 echo "----------------------------------------------------------------------"
4045 echo "specify the full pathname of the library, or use the '-LLIBDIR'"
4047 if test -n "$shlibpath_var"; then
4048 echo " - add LIBDIR to the '$shlibpath_var' environment variable"
4051 if test -n "$runpath_var"; then
4052 echo " - add LIBDIR to the '$runpath_var' environment variable"
4055 if test -n "$hardcode_libdir_flag_spec"; then
4059 $ECHO " - use the '$flag' linker flag"
4061 if test -n "$admincmds"; then
4062 $ECHO " - have your system administrator run these commands:$admincmds"
4064 if test -f /etc/ld.so.conf; then
4065 echo " - have your system administrator add LIBDIR to '/etc/ld.so.conf'"
4069 echo "See any operating system documentation about shared libraries for"
4071 solaris2.[6789]|solaris2.1[0-9])
4079 echo "----------------------------------------------------------------------"
4130 if test -n "$dest"; then
4137 -d) isdir=: ;;
4138 -f)
4143 -g | -m | -o)
4146 -s)
4147 stripme=" -s"
4150 -*)
4154 if test -n "$prev"; then
4155 if test X-m = "X$prev" && test -n "$install_override_mode"; then
4170 if test -n "$arg2"; then
4176 test -z "$install_prog" && \
4179 test -n "$prev" && \
4182 if test -n "$install_override_mode" && $no_mode; then
4185 func_append install_shared_prog " -m $func_quote_for_eval_result"
4189 if test -z "$files"; then
4190 if test -z "$dest"; then
4202 test -d "$dest" && isdir=:
4213 test "$#" -gt 1 && \
4217 [\\/]* | [A-Za-z]:[\\/]*) ;;
4277 if test -n "$relink_command"; then
4279 inst_prefix_dir=`$ECHO "$destdir" | $SED -e "s%$libdir\$%%"`
4290 if test -n "$inst_prefix_dir"; then
4292 …relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_…
4302 # See the names of the shared library.
4304 if test -n "$1"; then
4309 test -n "$relink_command" && srcname=${realname}T
4311 # Install the shared library and build the symlinks.
4331 if test -n "$tstripme" && test -n "$striplib"; then
4335 if test "$#" -gt 0; then
4337 # Try 'ln -sf' first, because the 'ln' binary might depend on
4338 # the symlink we replace! Solaris /bin/ln does not understand -f,
4339 # so we also need to try rm && ln -s.
4343 …&& func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $rea…
4352 # Install the pseudo-library for information purposes.
4359 test -n "$old_library" && func_append staticlibs " $dir/$old_library"
4366 if test -n "$destname"; then
4374 # Deduce the name of the destination old-style object file.
4390 test -n "$destfile" && \
4395 # Deduce the name of the old-style object file.
4405 if test -n "$destname"; then
4419 if test ! -f "$file"; then
4449 test -z "$generated_by_libtool_version" && \
4456 if test -f "$lib"; then
4460 if test -n "$libdir" && test ! -f "$libfile"; then
4470 if test no = "$fast_install" && test -n "$relink_command"; then
4520 $opt_dry_run || if test -n "$outputname"; then
4538 if test -n "$stripme" && test -n "$old_striplib"; then
4546 test -n "$future_libdirs" && \
4547 func_warning "remember to run '$progname --finish$future_libdirs'"
4549 if test -n "$current_libdirs"; then
4551 $opt_dry_run && current_libdirs=" -n$current_libdirs"
4552 exec_cmd='$SHELL "$progpath" $preserve_args --finish$current_libdirs'
4570 my_pic_p=${3-false}
4571 my_prefix=`$ECHO "$my_originator" | $SED 's%[^a-zA-Z0-9]%_%g'`
4574 if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then
4575 if test -n "$NM" && test -n "$global_symbol_pipe"; then
4582 if test -n "$my_dlsyms"; then
4595 /* $my_dlsyms - symbol resolution table for '$my_outputname' dlsym emulation. */
4603 #pragma GCC diagnostic ignored \"-Wstrict-prototypes\"
4609 relocations are performed -- see ld's documentation on pseudo-relocs. */
4636 if test -n "$exclude_expsyms"; then
4638 eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
4643 if test -n "$export_symbols_regex"; then
4645 eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
4651 if test -z "$export_symbols"; then
4655 … eval "$SED -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
4665 …eval "$SED -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_o…
4666 eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
4689 if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then
4692 if test -n "$dlprefile_dlname"; then
4696 # no lafile. user explicitly requested -dlpreopen <import library>.
4702 if test -n "$dlprefile_dlbasename"; then
4710 $SED -e '/I __imp/d' -e 's/I __nm_/D /;s/_nm__//' >> '$nlist'"
4732 test -f "$nlist" || : > "$nlist"
4734 if test -n "$exclude_expsyms"; then
4735 $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
4740 if $GREP -v "^: " < "$nlist" |
4741 if sort -k 3 </dev/null >/dev/null 2>&1; then
4742 sort -k 3
4749 $GREP -v "^: " < "$nlist" > "$nlist"S
4752 if test -f "$nlist"S; then
4759 if test -n "$global_symbol_to_import"; then
4774 if test -s "$nlist"I; then
4779 for (; symbol->name; ++symbol)
4781 …$SED 's/.*/ if (STREQ (symbol->name, \"&\")) symbol->address = (void *) \&&;/' < "$nlist"I >>…
4791 if test -s "$nlist"I; then
4823 *" -static "*) ;;
4827 # a FreeBSD bug that causes programs to crash when -lm is
4829 # pic_flag when linking with -static. The problem exists in
4831 *-*-freebsd2.*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
4832 pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;;
4833 *-*-hpux*)
4844 -pie | -fpie | -fPIE) ;;
4850 …func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable…
4859 if test -f "$output_objdir/$my_outputname.def"; then
4890 # ARG is a GNU/binutils-style import library. Returns
4897 …file_result" | eval "$global_symbol_pipe" | $EGREP ' (_head_[A-Za-z0-9_]+_[ad]l*|[A-Za-z0-9_]+_[ad…
4898 test -n "$func_cygming_gnu_implib_tmp"
4903 # ARG is an MS-style import library. Returns
4911 test -n "$func_cygming_ms_implib_tmp"
4917 # Need a lot of goo to handle *both* DLLs and import libs
4926 win32_fileres=`file -L $1 2>/dev/null`
4933 if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
4934 … $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null; then
4947 win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" |
4948 $SED -n -e '
4980 # Platform-specific function to extract the
4991 sharedlib_from_linklib_result=`$DLLTOOL --identify-strict --identify "$1"`
4997 # platform-specific function to extract the name of the
5010 $OBJDUMP -s --section "$1" "$2" 2>/dev/null |
5019 /:[ ]*file format pe[i]\{,1\}-/d
5027 $SED -n '
5048 # 0x302f exports -- but will fail for DLLs whose name actually
5053 $SED -e '/^\./d;/^.\./d;q'
5057 # Platform-specific function to extract the
5062 # does not support the --identify-strict option.
5075 # ms-generated import library
5099 'stat=$?; rm -f "$lockfile"; exit $stat'
5101 $opt_dry_run || rm -f "$lockfile"
5103 if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
5126 [\\/]* | [A-Za-z]:[\\/]*) my_xabs=$my_xlib ;;
5137 my_xlib_u=lt$extracted_serial-$my_xlib ;;
5147 *-darwin*)
5157 …darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true`
5158 if test -n "$darwin_arches"; then
5159 darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'`
5163 func_mkdir_p "unfat-$$/$darwin_base_archive-$darwin_arch"
5164 …$LIPO -thin $darwin_arch -output "unfat-$$/$darwin_base_archive-$darwin_arch/$darwin_base_archive"…
5165 cd "unfat-$$/$darwin_base_archive-$darwin_arch"
5168 $RM "unfat-$$/$darwin_base_archive-$darwin_arch/$darwin_base_archive"
5171 …darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$sed_bas…
5175 darwin_files=`find unfat-$$ -name $darwin_file -print | sort | $NL2SP`
5176 $LIPO -create -output "$darwin_file" $darwin_files
5178 $RM -rf unfat-$$
5190 …my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | sort | $NL…
5209 # the $objdir directory. This is a cygwin/mingw-specific
5213 func_emit_wrapper_arg1=${1-no}
5218 # $output - temporary wrapper script for $objdir/$outputname
5228 # metacharacters that are still active within double-quoted strings.
5232 if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
5236 # is contrary to our usage. Disable this feature.
5237 alias -g '\${1+\"\$@\"}'='\"\$@\"'
5240 case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
5245 # The HP-UX ksh and POSIX shell print the target directory to stdout
5277 # windows platforms, and (c) all begin with the string "--lt-"
5281 # There are only two supported options: --lt-debug and
5282 # --lt-dump-script. There is, deliberately, no --lt-help.
5294 --lt-debug) lt_option_debug=1 ;;
5295 --lt-dump-script)
5296 lt_dump_D=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%/[^/]*$%%'\`
5298 lt_dump_F=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%^.*/%%'\`
5302 --lt-*)
5303 \$ECHO \"Unrecognized --lt- option: '\$lt_opt'\" 1>&2
5310 if test -n \"\$lt_option_debug\"; then
5315 # Used when --lt-debug. Prints its arguments to stdout
5333 *-*-mingw | *-*-os2* | *-cegcc*)
5335 if test -n \"\$lt_option_debug\"; then
5345 if test -n \"\$lt_option_debug\"; then
5359 # Strips options in the --lt-* namespace from \$@ and
5364 *\\ --lt-*)
5368 --lt-*) ;;
5385 file=\`ls -ld \"\$file\" | $SED -n 's/.*-> //p'\`
5386 while test -n \"\$file\"; do
5392 [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
5398 file=\`ls -ld \"\$thisdir/\$file\" | $SED -n 's/.*-> //p'\`
5409 # remove .libs from thisdir
5418 test -n \"\$absdir\" && thisdir=\"\$absdir\"
5423 program=lt-'$outputname'$exeext
5426 if test ! -f \"\$progdir/\$program\" ||
5427 { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | $SED 1q\`; \\
5430 file=\"\$\$-\$program\"
5432 if test ! -d \"\$progdir\"; then
5441 if test -n \"\$relink_command\"; then
5464 if test -f \"\$progdir/\$program\"; then"
5471 if test -n "$dllsearchpath"; then
5479 …if test yes = "$shlibpath_overrides_runpath" && test -n "$shlibpath_var" && test -n "$temp_rpath";…
5484 # Some systems cannot cope with colon-terminated $shlibpath_var
5517 /* $cwrappersource - temporary wrapper executable for $objdir/$outputname
5555 /* declarations of non-ANSI functions */
5653 const char *program_name = "libtool-wrapper"; /* in case xstrdup fails */
5685 …if test yes = "$shlibpath_overrides_runpath" && test -n "$shlibpath_var" && test -n "$temp_rpath";…
5696 if test -n "$dllsearchpath"; then
5711 const char * TARGET_PROGRAM_NAME = "lt-$outputname"; /* hopefully, no .exe */
5722 #define LTWRAPPER_OPTION_PREFIX "--lt-"
5725 static const char *dumpscript_opt = LTWRAPPER_OPTION_PREFIX "dump-script";
5775 have already dealt with, above (inluding dump-script), then
5779 need to make LTWRAPPER_OPTION_PREFIX a configure-time option
5780 or a configure.ac-settable value.
5793 /* The GNU banner must be the first non-error debug message */
5823 /* target_name transforms -- use actual target program name; might have lt- prefix */
5849 /* do NOT want the lt- prefix here, so use actual_cwrapper_name */
5852 /* DO want the lt- prefix here if it exists, so use target_name */
5906 if (rval == -1)
6060 p_len = (size_t) (q - p);
6131 p = tmp_pathspec + strlen (tmp_pathspec) - 1;
6133 p--;
6178 str += len - patlen;
6292 /* some systems can't cope with a ':'-terminated path #' */
6294 while ((len > 0) && IS_PATH_SEPARATOR (new_value[len-1]))
6296 new_value[--len] = '\0';
6334 - Space and tab are interpreted as delimiters. They are not treated as
6336 - Unescaped double quotes are removed from the input. Their only effect is
6339 - Backslashes not followed by double quotes are not special.
6340 - But 2*n+1 backslashes followed by a double quote become
6342 \" -> "
6343 \\\" -> \"
6344 \\\\\" -> \\"
6408 for (j = backslashes + 1; j > 0; j--)
6420 for (j = backslashes; j > 0; j--)
6444 $SED -n -e '
6465 case `eval $file_magic_cmd \"\$1\" 2>/dev/null | $SED -e 10q` in
6480 *" -compat=g "*|*\ -std=c++[0-9][0-9]\ *|*" -library=stdcxx4 "*|*" -library=stlport4 "*)
6495 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
6505 # -no-undefined on the libtool link line when we can be certain
6563 single_module=$wl-single_module
6566 # We need to know -static, to get the right output filenames.
6570 -shared)
6572 && func_fatal_configuration "cannot build a shared library"
6576 -all-static | -static | -static-libtool-libs)
6578 -all-static)
6579 if test yes = "$build_libtool_libs" && test -z "$link_static_flag"; then
6582 if test -n "$link_static_flag"; then
6587 -static)
6588 if test -z "$pic_flag" && test -n "$link_static_flag"; then
6593 -static-libtool-libs)
6594 if test -z "$pic_flag" && test -n "$link_static_flag"; then
6607 # See if our shared archives depend on static archives.
6608 test -n "$old_archive_from_new_cmds" && build_old_libs=yes
6611 while test "$#" -gt 0; do
6619 if test -n "$prev"; then
6675 test -f "$arg" \
6687 *-*-darwin*)
6704 # Clang does not use LLVM to link, so we can simply discard any
6705 # '-mllvm $arg' options when doing the link step.
6710 if test -f "$arg"; then
6717 # A libtool-controlled object.
6727 if test -z "$pic_object" ||
6728 test -z "$non_pic_object" ||
6753 # CHECK ME: I think I busted this. -Ossama
6755 # Preload the old-style object.
6765 # Non-PIC object.
6770 # A standard non-PIC object
6772 if test -z "$pic_object" || test none = "$pic_object"; then
6782 # Only an error if not doing a dry-run.
6816 release=-$arg
6823 [\\/]* | [A-Za-z]:[\\/]*) ;;
6825 func_fatal_error "only absolute run-paths are allowed"
6881 fi # test -n "$prev"
6886 -all-static)
6887 if test -n "$link_static_flag"; then
6888 # See comment for -static flag below, for more details.
6895 -allow-undefined)
6897 func_fatal_error "'-allow-undefined' must not be used because it is the default"
6900 -avoid-version)
6905 -bindir)
6910 -dlopen)
6915 -dlpreopen)
6920 -export-dynamic)
6925 -export-symbols | -export-symbols-regex)
6926 if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
6927 func_fatal_error "more than one -exported-symbols argument is not allowed"
6929 if test X-export-symbols = "X$arg"; then
6937 -framework)
6942 -inst-prefix-dir)
6947 # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
6948 # so, if we see these flags be careful not to treat them like -L
6949 -L[A-Z][A-Z]*:*)
6951 no/*-*-irix* | /*-*-irix*)
6959 -L*)
6960 func_stripname "-L" '' "$arg"
6961 if test -z "$func_stripname_result"; then
6962 if test "$#" -gt 0; then
6963 func_fatal_error "require no space between '-L' and '$1'"
6965 func_fatal_error "need path for '-L' option"
6972 [\\/]* | [A-Za-z]:[\\/]*) ;;
6975 test -z "$absdir" && \
6981 *" -L$dir "* | *" $arg "*)
6987 [\\/]* | [A-Za-z]:[\\/]* | =*) func_append deplibs " $arg" ;;
6988 *) func_append deplibs " -L$dir" ;;
6994 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
7011 -l*)
7012 if test X-lc = "X$arg" || test X-lm = "X$arg"; then
7014 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*)
7018 *-*-os2*)
7020 test X-lc = "X$arg" && continue
7022 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig*)
7024 test X-lc = "X$arg" && continue
7026 *-*-rhapsody* | *-*-darwin1.[012])
7031 *-*-sco3.2v5* | *-*-sco5v6*)
7033 test X-lc = "X$arg" && continue
7035 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
7037 test X-lc = "X$arg" && continue
7040 elif test X-lc_r = "X$arg"; then
7042 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig*)
7043 # Do not include libc_r directly, use -pthread flag.
7052 -mllvm)
7057 -module)
7062 # Tru64 UNIX uses -model [arg] to determine the layout of C++
7064 # Darwin uses the -arch flag to determine output architecture.
7065 -model|-arch|-isysroot|--sysroot)
7073 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
7074 |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
7085 -multi_module)
7086 single_module=$wl-multi_module
7090 -no-fast-install)
7095 -no-install)
7097 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*)
7100 func_warning "'-no-install' is ignored for $host"
7101 func_warning "assuming '-no-fast-install' instead"
7109 -no-undefined)
7114 -objectlist)
7119 -os2dllname)
7124 -o) prev=output ;;
7126 -precious-files-regex)
7131 -release)
7136 -rpath)
7141 -R)
7146 -R*)
7147 func_stripname '-R' '' "$arg"
7151 [\\/]* | [A-Za-z]:[\\/]*) ;;
7157 func_fatal_error "only absolute run-paths are allowed"
7167 -shared)
7168 # The effects of -shared are defined in a previous loop.
7172 -shrext)
7177 -static | -static-libtool-libs)
7178 # The effects of -static are defined in a previous loop.
7179 # We used to do the same as -all-static on platforms that
7186 -thread-safe)
7191 -version-info)
7196 -version-number)
7202 -weak)
7207 -Wc,*)
7208 func_stripname '-Wc,' '' "$arg"
7223 -Wl,*)
7224 func_stripname '-Wl,' '' "$arg"
7240 -Xcompiler)
7245 -Xlinker)
7250 -XCClinker)
7255 # -msg_* for osf cc
7256 -msg_*)
7262 # -64, -mips[0-9] enable 64-bit mode for the SGI compiler
7263 # -r[0-9][0-9]* specify processor for the SGI compiler
7264 # -xarch=*, -xtarget=* enable 64-bit mode for the Sun compiler
7265 # +DA*, +DD* enable 64-bit mode for the HP compiler
7266 # -q* compiler args for the IBM compiler
7267 # -m*, -t[45]*, -txscale* architecture-specific flags for GCC
7268 # -F/path path to uninstalled frameworks, gcc on darwin
7269 # -p, -pg, --coverage, -fprofile-* profiling flags for GCC
7270 # -fstack-protector* stack protector flags for GCC
7272 # -tp=* Portland pgcc target processor selection
7273 # --sysroot=* for sysroot support
7274 # -O*, -g*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
7275 # -specs=* GCC specs files
7276 # -stdlib=* select c++ std lib with clang
7277 # -fsanitize=* Clang/GCC memory and address sanitizer
7278 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
7279 -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
7280 -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*| \
7281 -specs=*|-fsanitize=*)
7290 -Z*)
7292 # OS/2 uses -Zxxx to specify OS/2-specific options
7297 -Zlinker | -Zstack)
7310 -* | +*)
7321 # A libtool-controlled object.
7331 if test -z "$pic_object" ||
7332 test -z "$non_pic_object" ||
7357 # CHECK ME: I think I busted this. -Ossama
7359 # Preload the old-style object.
7369 # Non-PIC object.
7374 # A standard non-PIC object
7376 if test -z "$pic_object" || test none = "$pic_object"; then
7386 # Only an error if not doing a dry-run.
7411 # A libtool-controlled library.
7415 # This library was specified with -dlopen.
7419 # The library was specified with -dlpreopen.
7438 if test -n "$arg"; then
7444 test -n "$prev" && \
7447 if test yes = "$export_dynamic" && test -n "$export_dynamic_flag_spec"; then
7459 if test -n "$shlibpath_var"; then
7491 libs=
7493 # that are linked more than once (e.g. -la -lb -la)
7496 case "$libs " in
7500 func_append libs " $deplib"
7504 libs="$predeps $libs $compiler_lib_search_path $postdeps"
7525 notinst_deplibs= # not-installed libtool libraries
7526 notinst_path= # paths that contain not-installed libtool libraries
7535 func_fatal_help "libraries can '-dlopen' only libtool libraries: $file"
7554 # so that -L comes before libs that need it for instance...
7567 libs=$deplibs
7572 dlopen) libs=$dlfiles ;;
7573 dlpreopen) libs=$dlprefiles ;;
7575 libs="$deplibs %DEPLIBS%"
7576 test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
7581 # Collect and forward deplibs of preopened libtool libs
7583 # Ignore non-libtool-libs
7591 # has declared as weak libs
7601 libs=$dlprefiles
7609 for deplib in $libs; do
7613 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
7614 |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
7629 -l*)
7631 func_warning "'-l' is ignored for archives/objects"
7634 func_stripname '-l' '' "$deplib"
7645 if test -f "$lib"; then
7699 ;; # -l
7715 -L*)
7721 func_stripname '-L' '' "$deplib"
7736 func_stripname '-L' '' "$deplib"
7741 func_warning "'-L' is ignored for archives/objects"
7745 ;; # -L
7746 -R*)
7748 func_stripname '-R' '' "$deplib"
7771 # Linking convenience modules into shared libraries is allowed,
7772 # but linking other static libraries is non-portable.
7792 $ECHO "*** Warning: Linking the shared library $output against the"
7800 echo "*** shared version of the library, which you do not appear to have"
7841 $found || test -f "$lib" \
7868 # Convert "-framework foo" to "foo.ltframework"
7869 if test -n "$inherited_linker_flags"; then
7870 …tmp_inherited_linker_flags=`$ECHO "$inherited_linker_flags" | $SED 's/-framework \([^ $]*\)/\1.ltf…
7878 dependency_libs=`$ECHO " $dependency_libs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
7882 test -n "$dlopen" && func_append dlfiles " $dlopen"
7883 test -n "$dlpreopen" && func_append dlprefiles " $dlpreopen"
7889 if test -z "$libdir"; then
7890 if test -z "$old_library"; then
7915 if test -n "$old_library" &&
7924 if test -z "$linklib"; then
7928 # This library was specified with -dlopen.
7930 test -z "$libdir" \
7931 && func_fatal_error "cannot -dlopen a convenience library: '$lib'"
7932 if test -z "$dlname" ||
7949 [\\/]* | [A-Za-z]:[\\/]*) abs_ladir=$ladir ;;
7952 if test -z "$abs_ladir"; then
7964 if test ! -f "$lt_sysroot$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
7975 if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
7990 # This library was specified with -dlpreopen.
7992 if test -z "$libdir" && test prog = "$linkmode"; then
7993 func_fatal_error "only libraries may -dlpreopen a convenience library: '$lib'"
7996 # special handling for platforms with PE-DLLs.
7998 # Linker will automatically link against shared library if both
7999 # static and shared are present. Therefore, ensure we extract
8000 # symbols from the import library if a shared library is present
8006 if test -n "$dlname"; then
8014 test -z "$libdir" && \
8021 if test -n "$old_library"; then
8025 test -z "$libdir" && \
8028 elif test -n "$dlname"; then
8037 if test -z "$libdir"; then
8056 if test no != "$link_all_deplibs" || test -z "$library_names" ||
8064 -L*) func_stripname '-L' '' "$deplib"
8073 # Need to hardcode shared library paths
8088 if test -n "$library_names" &&
8091 test -z "$old_library"; }; then
8093 if test -n "$shlibpath_var" && test -z "$avoidtemprpath"; then
8102 # Skip directories that are in the system default run-time
8127 test -n "$library_names"; }; }; then
8138 if test -n "$library_names" &&
8139 { test no = "$use_static_libs" || test -z "$old_library"; }; then
8153 # This is a shared library
8155 # Warn about portability, can't link against -module's on some
8164 if test -z "$dlopenmodule" && test yes = "$shouldnotlink" && test link = "$pass"; then
8169 $ECHO "*** Warning: Linking the shared library $output against the loadable module"
8176 # Skip directories that are in the system default run-time
8198 if test -n "$old_archive_from_expsyms_cmds"; then
8206 if test -n "$dlname"; then
8208 elif test -n "$soname_spec"; then
8212 func_arith $current - $age
8214 versuffix=-$major
8227 newlib=libimp-$func_stripname_result.a
8230 if test -f "$output_objdir/$soname-def"; then :
8237 if test -f "$output_objdir/$newlib"; then :; else
8244 fi # test -n "$old_archive_from_expsyms_cmds"
8256 *-*-sco3.2v5.0.[024]*) add_dir=-L$dir ;;
8257 *-*-sysv4*uw2*) add_dir=-L$dir ;;
8258 *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
8259 *-*-unixware7*) add_dir=-L$dir ;;
8260 *-*-darwin* )
8261 # if the lib is a (non-dlopened) module then we cannot
8263 if /usr/bin/file -L $add 2> /dev/null |
8266 $ECHO "*** Warning: lib $linklib is a module, not a shared library"
8267 if test -z "$old_library"; then
8274 elif test -n "$old_library"; then
8281 *-*-sunos*) add_shlibpath=$dir ;;
8283 add_dir=-L$dir
8284 add=-l$name
8287 add=-l$name
8297 add_dir=-L$absdir
8299 if test -n "$inst_prefix_dir"; then
8302 func_append add_dir " -L$inst_prefix_dir$libdir"
8306 add=-l$name
8309 add=-l$name
8321 if test -n "$add_shlibpath"; then
8328 test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
8329 test -n "$add" && compile_deplibs="$add $compile_deplibs"
8331 test -n "$add_dir" && deplibs="$add_dir $deplibs"
8332 test -n "$add" && deplibs="$add $deplibs"
8353 add_dir=-L$libdir
8354 add=-l$name
8360 add=-l$name
8362 if test -n "$inst_prefix_dir" &&
8363 test -f "$inst_prefix_dir$libdir/$linklib"; then
8370 add_dir=-L$libdir
8372 if test -n "$inst_prefix_dir"; then
8375 func_append add_dir " -L$inst_prefix_dir$libdir"
8379 add=-l$name
8383 test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
8384 test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
8386 test -n "$add_dir" && deplibs="$add_dir $deplibs"
8387 test -n "$add" && deplibs="$add $deplibs"
8393 # shared platforms.
8395 test -n "$old_library" && linklib=$old_library
8399 compile_deplibs="-l$name -L$dir $compile_deplibs"
8400 finalize_deplibs="-l$name -L$dir $finalize_deplibs"
8403 # Not a shared library
8405 # We're trying link a shared library against a static one
8414 echo "*** shared version of the library, which you do not appear to have."
8418 echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
8419 if test -z "$global_symbol_pipe"; then
8437 fi # link shared/static library?
8440 if test -n "$dependency_libs" &&
8444 # Extract -R from dependency_libs
8448 -R*) func_stripname '-R' '' "$libdir"
8468 -L*) func_stripname '-L' '' "$deplib"
8486 -L*) path=$deplib ;;
8494 [\\/]* | [A-Za-z]:[\\/]*) absdir=$dir ;;
8497 if test -z "$absdir"; then
8505 *-*-darwin*)
8507 eval deplibrary_names=`$SED -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
8508 if test -n "$deplibrary_names"; then
8512 if test -f "$absdir/$objdir/$depdepl"; then
8514 darwin_install_name=`$OTOOL -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
8515 if test -z "$darwin_install_name"; then
8516 … darwin_install_name=`$OTOOL64 -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
8518 func_append compiler_flags " $wl-dylib_file $wl$darwin_install_name:$depdepl"
8519 func_append linker_flags " -dylib_file $darwin_install_name:$depdepl"
8525 path=-L$absdir/$objdir
8529 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
8530 test -z "$libdir" && \
8535 path=-L$absdir
8546 done # for deplib in $libs
8552 …r_flags "`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
8592 -L*) new_libs="$deplib $new_libs" ;;
8593 -R*) ;;
8607 # using -Wl,-lname, so that libtool does not consider it
8624 -L*)
8641 case `$CC -V 2>&1 | sed 5q` in
8646 func_append postdeps ' -library=Cstd -library=Crun'
8659 func_append postdeps ' -library=Cstd -library=Crun'
8667 # Last step: remove runtime libs from dependency_libs
8676 if test -n "$i"; then
8691 if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then
8692 func_warning "'-dlopen' is ignored for archives"
8696 *\ -l* | *\ -L*)
8697 func_warning "'-l' and '-L' are ignored for archives" ;;
8700 test -n "$rpath" && \
8701 func_warning "'-rpath' is ignored for archives"
8703 test -n "$xrpath" && \
8704 func_warning "'-R' is ignored for archives"
8706 test -n "$vinfo" && \
8707 func_warning "'-version-info/-version-number' is ignored for archives"
8709 test -n "$release" && \
8710 func_warning "'-release' is ignored for archives"
8712 test -n "$export_symbols$export_symbols_regex" && \
8713 func_warning "'-export-symbols' is ignored for archives"
8747 if test -n "$objs"; then
8749 …func_fatal_error "cannot build libtool library '$output' from non-libtool objects on this host:$ob…
8752 $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
8759 || func_warning "'-dlopen self' is ignored for libtool libraries"
8763 test 1 -lt "$#" \
8764 && func_warning "ignoring multiple '-rpath's for a libtool library"
8769 if test -z "$rpath"; then
8780 test -n "$vinfo" && \
8781 func_warning "'-version-info/-version-number' is ignored for convenience libraries"
8783 test -n "$release" && \
8784 func_warning "'-release' is ignored for convenience libraries"
8793 test -n "$7" && \
8794 func_fatal_help "too many parameters to '-version-info'"
8806 # There are really only two kinds -- those that
8814 darwin|freebsd-elf|linux|osf|windows|none)
8820 freebsd-aout|qnx|sunos)
8846 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]) ;;
8854 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]) ;;
8862 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]) ;;
8869 if test "$age" -gt "$current"; then
8884 func_arith $current - $age
8890 …xlcverstring="$wl-compatibility_version $wl$minor_current $wl-current_version $wl$minor_current.$r…
8891 verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
8895 …verstring="$wl-compatibility_version $wl$minor_current $wl-current_version $wl$minor_current.$revi…
8898 … verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
8903 freebsd-aout)
8908 freebsd-elf)
8909 func_arith $current - $age
8916 func_arith $current - $age
8918 func_arith $current - $age + 1
8930 while test 0 -ne "$loop"; do
8931 func_arith $revision - $loop
8933 func_arith $loop - 1
8944 func_arith $current - $age
8950 func_arith $current - $age
8957 while test 0 -ne "$loop"; do
8958 func_arith $current - $loop
8960 func_arith $loop - 1
8985 # Use '-' rather than '.', since we only want one
8987 func_arith $current - $age
8989 versuffix=-$major
8998 if test -z "$vinfo" && test -n "$release"; then
9028 func_warning "undefined symbols not allowed in $host shared libraries; building static only"
9031 func_fatal_error "can't build $host shared library unless -no-undefined is specified"
9055 if test -n "$precious_files_regex"; then
9056 if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
9066 test -n "$removelist" && \
9081 # deplibs=`$ECHO "$deplibs " | $SED "s% -L$path % %g"`
9082 # dependency_libs=`$ECHO "$dependency_libs " | $SED "s% -L$path % %g"`
9085 if test -n "$xrpath"; then
9090 func_append temp_xrpath " -R$func_replace_sysroot_result"
9122 if test -n "$rpath"; then
9124 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*)
9127 *-*-rhapsody* | *-*-darwin1.[012])
9131 *-*-netbsd*)
9134 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
9137 *-*-sco3.2v5* | *-*-sco5v6*)
9140 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
9146 func_append deplibs " -lc"
9152 # Transform deplibs into only deplibs that can be linked in shared.
9159 # release should show up in the -l (ie -lgmp5) so we don't want to
9168 # Don't check for shared/static. Everything works.
9185 if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
9189 -l*)
9190 func_stripname -l '' "$i"
9200 if test -n "$i"; then
9205 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0; then
9213 echo "*** shared version of the library, which I believe you do not have"
9229 -l*)
9230 func_stripname -l '' "$i"
9233 if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
9243 if test -n "$i"; then
9248 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0; then
9256 echo "*** shared version of the library, which you do not appear to have"
9282 -l*)
9283 func_stripname -l '' "$a_deplib"
9293 if test -n "$a_deplib"; then
9295 if test -n "$file_magic_glob"; then
9296 libnameglob=`func_echo_all "$libname" | $SED -e $file_magic_glob`
9300 test yes = "$want_nocaseglob" && nocaseglob=`shopt -p nocaseglob`
9303 shopt -s nocaseglob
9304 potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
9307 potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
9311 if ls -lLd "$potent_lib" 2>/dev/null |
9312 $GREP " -> " >/dev/null; then
9321 while test -h "$potlib" 2>/dev/null; do
9322 potliblink=`ls -ld $potlib | $SED 's/.* -> //'`
9324 [\\/]* | [A-Za-z]:[\\/]*) potlib=$potliblink;;
9329 $SED -e 10q |
9338 if test -n "$a_deplib"; then
9344 echo "*** shared version of the library, which you do not appear to have"
9346 if test -z "$potlib"; then
9355 # Add a -L argument.
9366 -l*)
9367 func_stripname -l '' "$a_deplib"
9377 if test -n "$a_deplib"; then
9380 potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
9382 potlib=$potent_lib # see symlink-check above in file_magic test
9392 if test -n "$a_deplib"; then
9398 echo "*** shared version of the library, which you do not appear to have"
9400 if test -z "$potlib"; then
9409 # Add a -L argument.
9417 tmp_deplibs=`$ECHO " $deplibs" | $SED 's/ -lc$//; s/ -[LR][^ ]*//g'`
9428 echo "*** Warning: inter-library dependencies are not supported in this platform."
9430 echo "*** Warning: inter-library dependencies are not known to be supported."
9432 echo "*** All declared inter-library dependencies are being dropped."
9445 *-*-rhapsody* | *-*-darwin1.[012])
9447 newdeplibs=`$ECHO " $newdeplibs" | $SED 's/ -lc / System.ltframework /'`
9454 echo "*** Warning: libtool could not satisfy all declared inter-library"
9457 echo "*** application is linked with the -dlopen flag."
9458 if test -z "$global_symbol_pipe"; then
9473 echo "*** The inter-library dependencies that have been dropped here will be"
9475 echo "*** or is declared to -dlopen it."
9481 echo "*** it was explicitly requested with -no-undefined,"
9496 # Time to change all our "foo.ltframework" stuff back to "-framework foo"
9498 *-*-darwin*)
9499 newdeplibs=`$ECHO " $newdeplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
9500 …er_flags=`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
9501 deplibs=`$ECHO " $deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
9510 *" -L$path/$objdir "*) ;;
9513 *" -L$path/$objdir "*)
9514 func_append new_libs " -L$path/$objdir" ;;
9521 -L*)
9532 # All the library-specific variables (install_libdir is set above).
9551 if test -n "$hardcode_libdir_flag_spec"; then
9552 if test -n "$hardcode_libdir_separator"; then
9555 if test -z "$hardcode_libdirs"; then
9571 elif test -n "$runpath_var"; then
9579 if test -n "$hardcode_libdir_separator" &&
9580 test -n "$hardcode_libdirs"; then
9584 if test -n "$runpath_var" && test -n "$perm_rpath"; then
9592 test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
9597 if test -n "$shlibpath"; then
9609 if test -n "$soname_spec"; then
9614 if test -z "$dlname"; then
9626 test -z "$pic_flag" && libobjs=`$ECHO "$libobjs" | $SP2NL | $SED "$lo2o" | $NL2SP`
9630 if test -n "$export_symbols" && test -n "$include_expsyms"; then
9639 if test -n "$export_symbols" && test -z "$export_symbols_regex"; then
9657 if test -z "$export_symbols"; then
9658 if test yes = "$always_export_symbols" || test -n "$export_symbols_regex"; then
9680 && { test "$len" -lt "$max_cmd_len" \
9681 || test "$max_cmd_len" -le -1; }
9685 elif test -n "$nm_file_list_spec"; then
9714 if test -n "$export_symbols_regex" && test : != "$skipped_export"; then
9715 func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
9721 if test -n "$export_symbols" && test -n "$include_expsyms"; then
9723 test -n "$orig_export_symbols" && tmp_export_symbols=$orig_export_symbols
9727 if test : != "$skipped_export" && test -n "$orig_export_symbols"; then
9735 …$opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $outp…
9738 $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
9752 if test -n "$convenience"; then
9753 if test -n "$whole_archive_flag_spec" &&
9755 test -z "$libobjs"; then
9760 if test -n "$whole_archive_flag_spec"; then
9774 if test yes = "$thread_safe" && test -n "$thread_safe_flag_spec"; then
9785 if test yes = "$module" && test -n "$module_cmds"; then
9786 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
9794 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
9806 test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
9821 if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
9836 if test -n "$save_libobjs" && test : != "$skipped_export" && test yes = "$with_gnu_ld"; then
9849 elif test -n "$save_libobjs" && test : != "$skipped_export" && test -n "$file_list_spec"; then
9869 if test -n "$save_libobjs"; then
9871 output=$output_objdir/$output_la-$k.$objext
9883 if test -z "$objlist" ||
9884 test "$len" -lt "$max_cmd_len"; then
9889 if test 1 -eq "$k"; then
9899 last_robj=$output_objdir/$output_la-$k.$objext
9902 output=$output_objdir/$output_la-$k.$objext
9912 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
9915 if test -n "$last_robj"; then
9924 ${skipped_export-false} && {
9930 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
9932 if test -n "$last_robj"; then
9937 test -n "$save_libobjs" &&
9963 if test -n "$export_symbols_regex" && ${skipped_export-false}; then
9964 func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
9969 ${skipped_export-false} && {
9970 if test -n "$export_symbols" && test -n "$include_expsyms"; then
9972 test -n "$orig_export_symbols" && tmp_export_symbols=$orig_export_symbols
9976 if test -n "$orig_export_symbols"; then
9984 …$opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $outp…
9987 … $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
9995 if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
10003 if test yes = "$module" && test -n "$module_cmds"; then
10004 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
10010 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
10018 if test -n "$delfiles"; then
10024 if test -n "$dlprefiles"; then
10061 if test -n "$convenience"; then
10062 if test -z "$whole_archive_flag_spec"; then
10077 # If -module or -export-dynamic was specified, set the dlname.
10086 if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then
10087 func_warning "'-dlopen' is ignored for objects"
10091 *\ -l* | *\ -L*)
10092 func_warning "'-l' and '-L' are ignored for objects" ;;
10095 test -n "$rpath" && \
10096 func_warning "'-rpath' is ignored for objects"
10098 test -n "$xrpath" && \
10099 func_warning "'-R' is ignored for objects"
10101 test -n "$vinfo" && \
10102 func_warning "'-version-info' is ignored for objects"
10104 test -n "$release" && \
10105 func_warning "'-release' is ignored for objects"
10109 test -n "$objs$old_deplibs" && \
10110 func_fatal_error "cannot build library object '$output' from non-libtool objects"
10126 # single-version convenience libraries. Whenever we create
10127 # different ones for PIC/non-PIC, this we'll have to duplicate
10131 # if reload_cmds runs $LD directly, get rid of -Wl from
10137 if test -n "$convenience"; then
10138 if test -n "$whole_archive_flag_spec"; then
10140 test -n "$wl" || tmp_whole_archive_flags=`$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'`
10151 # If we're not building shared, we need to use non_pic_objs
10154 # Create the old-style object.
10161 if test -z "$libobj"; then
10162 if test -n "$gentop"; then
10170 if test -n "$gentop"; then
10181 if test -n "$pic_flag" || test default != "$pic_mode"; then
10188 if test -n "$gentop"; then
10200 test -n "$vinfo" && \
10201 func_warning "'-version-info' is ignored for programs"
10203 test -n "$release" && \
10204 func_warning "'-release' is ignored for programs"
10211 *-*-rhapsody* | *-*-darwin1.[012])
10213 compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's/ -lc / System.ltframework /'`
10214 finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's/ -lc / System.ltframework /'`
10219 *-*-darwin*)
10223 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
10225 func_append compile_command " $wl-bind_at_load"
10226 func_append finalize_command " $wl-bind_at_load"
10230 # Time to change all our "foo.ltframework" stuff back to "-framework foo"
10231 compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
10232 finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
10242 *" -L$path/$objdir "*) ;;
10245 *" -L$path/$objdir "*)
10246 func_append new_libs " -L$path/$objdir" ;;
10253 -L*)
10268 if test -n "$rpath$xrpath"; then
10271 # This is the magic to use -rpath.
10283 if test -n "$hardcode_libdir_flag_spec"; then
10284 if test -n "$hardcode_libdir_separator"; then
10285 if test -z "$hardcode_libdirs"; then
10301 elif test -n "$runpath_var"; then
10308 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
10309 testbindir=`$ECHO "$libdir" | $SED -e 's*/lib$*/bin*'`
10324 if test -n "$hardcode_libdir_separator" &&
10325 test -n "$hardcode_libdirs"; then
10334 if test -n "$hardcode_libdir_flag_spec"; then
10335 if test -n "$hardcode_libdir_separator"; then
10336 if test -z "$hardcode_libdirs"; then
10352 elif test -n "$runpath_var"; then
10360 if test -n "$hardcode_libdir_separator" &&
10361 test -n "$hardcode_libdirs"; then
10367 if test -n "$libobjs" && test yes = "$build_old_libs"; then
10376 if test -n "$prelink_cmds"; then
10383 # Disable wrappers for cegcc and mingw32ce hosts, we are cross compiling anyway.
10404 if test -n "$postlink_cmds"; then
10406 …postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUT…
10411 if test -f "$output_objdir/${outputname}S.$objext"; then
10418 if test -n "$compile_shlibpath$finalize_shlibpath"; then
10421 if test -n "$finalize_shlibpath"; then
10427 if test -n "$runpath_var"; then
10428 if test -n "$perm_rpath"; then
10436 if test -n "$finalize_perm_rpath"; then
10456 if test -n "$postlink_cmds"; then
10458 …postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUT…
10471 func_warning "this platform does not like uninstalled shared libraries"
10492 $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname
10496 if test -n "$postlink_cmds"; then
10498 …stlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g…
10506 if test -n "$relink_command"; then
10509 if eval test -z \"\${$var+set}\"; then
10510 …relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relin…
10511 elif eval var_value=\$$var; test -z "$var_value"; then
10543 cwrappersource=$output_path/$objdir/lt-$output_name.c
10551 # because it contains $host paths and files. If cross-
10555 $LTCC $LTCFLAGS -o $cwrapper $cwrappersource
10566 $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result
10585 # See if we need to build an old-fashioned archive.
10601 $preload && test -f "$symfileobj" \
10607 if test -n "$addlibs"; then
10616 if test -n "$old_archive_from_new_cmds" && test yes = "$build_libtool_libs"; then
10621 if test -n "$dlprefiles"; then
10639 done | sort | sort -uc >/dev/null 2>&1); then
10659 newobj=lt$counter-$objbase
10664 *) if test ! -f "$gentop/$newobj"; then break; fi ;;
10680 if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
10682 elif test -n "$archiver_list_spec"; then
10716 if test "$len" -lt "$max_cmd_len"; then
10724 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
10732 if test -z "$oldobjs"; then
10742 test -n "$generated" && \
10754 if eval test -z \"\${$var+set}\"; then
10755 …relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relin…
10756 elif eval var_value=\$$var; test -z "$var_value"; then
10764 …relink_command="(cd `pwd`; $SHELL \"$progpath\" $preserve_args --mode=relink $libtool_args @inst_p…
10774 if test -z "$install_libdir"; then
10786 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result`
10787 test -z "$libdir" && \
10791 -L*)
10792 func_stripname -L '' "$deplib"
10794 func_append newdependency_libs " -L$func_replace_sysroot_result"
10796 -R*)
10797 func_stripname -R '' "$deplib"
10799 func_append newdependency_libs " -R$func_replace_sysroot_result"
10812 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
10813 test -z "$libdir" && \
10825 # Only pass preopened files to the pseudo-archive (for
10831 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
10832 test -z "$libdir" && \
10843 [\\/]* | [A-Za-z]:[\\/]*) abs=$lib ;;
10852 [\\/]* | [A-Za-z]:[\\/]*) abs=$lib ;;
10862 # systems that can't hard-code library paths into their executables
10863 # and that have no shared library path variable independent of PATH,
10865 # libtool variables, so we have to hard-code the OSs to which it
10872 # If a -bindir argument was supplied, place the dll there.
10873 if test -n "$bindir"; then
10883 # $outputname - a libtool library file
10915 # Should we warn about portability when linking against -modules?
10961 -f) func_append RM " $arg"; rmforce=: ;;
10962 -*) func_append RM " $arg" ;;
10967 test -z "$RM" && \
10992 # Don't error if the file doesn't exist and rm -f was used.
10993 if { test -L "$file"; } >/dev/null 2>&1 ||
10994 { test -h "$file"; } >/dev/null 2>&1 ||
10995 test -f "$file"; then
10997 elif test -d "$file"; then
11016 test -n "$old_library" && func_append rmfiles " $odir/$old_library"
11022 *) test -n "$dlname" && func_append rmfiles " $odir/$dlname" ;;
11024 test -n "$libdir" && func_append rmfiles " $odir/$name $odir/${name}i"
11027 if test -n "$library_names"; then
11032 if test -n "$old_library"; then
11036 # FIXME: should reinstall the best remaining shared library.
11050 if test -n "$pic_object" && test none != "$pic_object"; then
11054 # Add non-PIC object to the list of files to remove.
11055 if test -n "$non_pic_object" && test none != "$non_pic_object"; then
11090 if test yes = "$fast_install" && test -n "$relink_command"; then
11091 func_append rmfiles " $odir/lt-$name"
11094 func_append rmfiles " $odir/lt-$noexename.c"
11105 if test -d "$dir"; then
11117 test -z "$opt_mode" && {
11122 test -z "$exec_cmd" && \
11125 if test -n "$exec_cmd"; then
11134 # where we disable both kinds of libraries. Given conflicting
11136 # since we can't tell whether shared libraries were disabled because
11139 # support having both static and shared libraries enabled at the same
11140 # time on that platform, so we default to a shared-only configuration.
11141 # If a disable-shared tag is given, we'll fallback to a static-only
11142 # configuration. But we'll never go from static-only to shared-only.
11144 # ### BEGIN LIBTOOL TAG CONFIG: disable-shared
11147 # ### END LIBTOOL TAG CONFIG: disable-shared
11149 # ### BEGIN LIBTOOL TAG CONFIG: disable-static
11151 # ### END LIBTOOL TAG CONFIG: disable-static
11154 # mode:shell-script
11155 # sh-indentation:2