Lines Matching +full:generate +full:- +full:lockfile

29 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
31 # Usage: $progname [OPTION]... [MODE-ARG]...
33 # Provide generalized library-building support services.
35 # --config show all configuration variables
36 # --debug enable verbose shell tracing
37 # -n, --dry-run display commands without modifying any files
38 # --features display basic configuration information and exit
39 # --mode=MODE use operation mode MODE
40 # --preserve-dup-deps don't remove duplicate dependency libraries
41 # --quiet, --silent don't print informational messages
42 # --no-quiet, --no-silent
44 # --tag=TAG use configuration variables from tag TAG
45 # -v, --verbose print more informational messages than default
46 # --no-verbose don't print the extra informational messages
47 # --version print version information
48 # -h, --help, --help-all print short, long, or detailed help message
60 # MODE-ARGS vary depending on the MODE. When passed as first option,
61 # `--mode=MODE' may be abbreviated as `MODE' or a unique abbreviation of that.
62 # Try `$progname --help --mode=MODE' for a more detailed description of MODE.
67 # host-triplet: $host
76 # Report bugs to <bug-libtool@gnu.org>.
87 test -z "$SED" && SED=sed
90 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
95 alias -g '${1+"$@"}'='"$@"'
98 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
140 : ${CP="cp -f"}
141 test "${ECHO+set}" = set || ECHO=${as_echo-'printf %s\n'}
142 : ${EGREP="/bin/grep -E"}
143 : ${FGREP="/bin/grep -F"}
145 : ${LN_S="ln -s"}
148 : ${MV="mv -f"}
149 : ${RM="rm -f"}
151 : ${SHELL="${CONFIG_SHELL-/bin/sh}"}
152 : ${Xsed="$SED -e 1s/^X//"}
206 func_dirname_result=`$ECHO "${1}" | $SED -e "$dirname"`
212 func_basename_result=`$ECHO "${1}" | $SED -e "$basename"`
242 # Remove doubled-up and trailing slashes, "." path components,
261 # we take advantage of case's first-match behaviour.
283 -e "$removedotparts" -e "$collapseslashes" -e "$finalslash"`
288 if test -z "$func_normal_abspath_result" ; then
294 -e "$pathcar"`
296 -e "$pathcdr"`
313 # Restore leading double-slash if one was found on entry.
319 # slash if non-empty, suitable for immediately appending a filename
343 if test -z "$func_relative_path_result"; then
362 # Now calculate path; take care to avoid doubling-up slashes.
373 if test ! -z "$func_relative_path_result"; then
385 [\\/]*|[A-Za-z]:\\*) ;;
396 test -x "$progdir/$progname" && break
399 test -n "$progdir" || progdir=`pwd`
405 # metacharacters that are still active within double-quoted strings.
406 Xsed="${SED}"' -e 1s/^X//'
421 # Re-`\' parameter expansions in output of double_quote_subst that were
422 # `\'-ed in input to the same. If an odd number of `\' preceded a '$'
459 # fails when set -e is in force, so we need another command to
465 # Invoke $ECHO with all args, space-separated.
504 help="Try \`$progname --help' for more information." ## default
515 # func_mkdir_p directory-path
516 # Make sure the entire path to DIRECTORY-PATH is available.
522 if test -n "$my_directory_path" && test "$opt_dry_run" != ":"; then
524 # Protect directory names starting with `-'
526 -*) my_directory_path="./$my_directory_path" ;;
530 while test ! -d "$my_directory_path"; do
539 my_directory_path=`$ECHO "$my_directory_path" | $SED -e "$dirname"`
554 test -d "$my_directory_path" || \
566 my_template="${TMPDIR-/tmp}/${1-$progname}"
569 # Return a directory name, but don't create it in dry-run mode
570 my_tmpdir="${my_template}-$$"
574 my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
576 if test ! -d "$my_tmpdir"; then
578 my_tmpdir="${my_template}-${RANDOM-0}$$"
586 # If we're not in dry-run mode, bomb out on failure
587 test -d "$my_tmpdir" || \
598 # is double-quoted, suitable for a subsequent eval, whereas
611 # Double-quote args containing shell metacharacters to delay
633 -e "$double_quote_subst" -e "$sed_double_backslash"` ;;
639 # Double-quote args containing shell metacharacters to delay
659 my_fail_exp="${2-:}"
661 ${opt_silent-false} || {
666 if ${opt_dry_run-false}; then :; else
669 if test "$my_status" -eq 0; then :; else
683 my_fail_exp="${2-:}"
685 ${opt_silent-false} || {
690 if ${opt_dry_run-false}; then :; else
695 if test "$my_status" -eq 0; then :; else
704 # not in the set a-zA-Z0-9_ are replaced with '_'. Further,
709 [0-9]* | *[!a-zA-Z0-9_]*)
710 func_tr_sh_result=`$ECHO "$1" | $SED 's/^\([0-9]\)/_\1/; s/[^a-zA-Z0-9_]/_/g'`
725 $SED -n '/(C)/!b go
736 s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/
748 $SED -n '/^# Usage:/,/^# *.*--help/ {
755 $ECHO "run \`$progname --help | more' for full usage"
766 $SED -n '/^# Usage:/,/# Report bugs to/ {
777 s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/
778 s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/
786 if test -z "$1"; then
821 my_sed_long_opt='1s/^\(--[^=]*\)=.*/\1/;q'
822 my_sed_long_arg='1s/^--[^=]*=//'
846 # will be execed at the end. This prevents here-documents from being
867 # func_arith arithmetic-term...
889 # func_xform libobj-or-source
919 … $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath"
959 *[!-_A-Za-z0-9,/]*)
974 # also don't use non-portable quotes within backquotes within
976 extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"`
992 if test -z "$macro_version"; then
1021 # Shorthand for --mode=foo, only valid as the first argument
1024 shift; set dummy --mode clean ${1+"$@"}; shift
1027 shift; set dummy --mode compile ${1+"$@"}; shift
1030 shift; set dummy --mode execute ${1+"$@"}; shift
1033 shift; set dummy --mode finish ${1+"$@"}; shift
1036 shift; set dummy --mode install ${1+"$@"}; shift
1039 shift; set dummy --mode link ${1+"$@"}; shift
1042 shift; set dummy --mode uninstall ${1+"$@"}; shift
1064 # script to make things like `--version' happen as quickly as we can.
1067 while test $# -gt 0; do
1071 --debug|-x) opt_debug='set -x'
1075 --dry-run|--dryrun|-n)
1078 --config)
1082 --dlopen|-dlopen)
1088 --preserve-dup-deps)
1091 --features)
1095 --finish)
1097 set dummy --mode finish ${1+"$@"}; shift
1099 --help)
1102 --help-all)
1104 opt_help=': help-all'
1106 --mode)
1122 --no-silent|--no-quiet)
1126 --no-verbose)
1130 --silent|--quiet)
1135 --verbose|-v)
1140 --tag)
1149 -\?|-h) func_usage ;;
1150 --help) func_help ;;
1151 --version) func_version ;;
1154 --*=*)
1160 # Separate non-argument short options:
1161 -\?*|-h*|-n*|-v*)
1163 set dummy "$func_split_short_opt_name" "-$func_split_short_opt_arg" ${1+"$@"}
1167 --) break ;;
1168 -*) func_fatal_help "unrecognized option \`$opt'" ;;
1175 # save first non-option argument
1176 if test "$#" -gt 0; then
1181 # preserve --debug
1182 test "$opt_debug" = : || func_append preserve_args " --debug"
1205 # Only execute mode is allowed to have -dlopen flags.
1206 if test -n "$opt_dlopen" && test "$opt_mode" != execute; then
1207 func_error "unrecognized option \`-dlopen'"
1212 # Change the help message to a mode-specific one.
1214 help="Try \`$progname --help --mode=$opt_mode' for more information."
1225 ## ----------- ##
1227 ## ----------- ##
1235 test -f "$1" &&
1236 $SED -e 4q "$1" 2>/dev/null \
1250 if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then
1258 exec 0<&5 5<&-
1308 # Execute tilde-delimited COMMANDS.
1310 # FAIL_CMD may read-access the current command in variable CMD!
1318 func_show_eval "$cmd" "${2-:}"
1327 # FILE even if both FILE and FILE.exe exist: automatic-append-.exe
1373 # if one wasn't chosen via the "--tag" command line option.
1380 if test -n "$available_tags" && test -z "$tagname"; then
1398 …eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'…
1401 # Double-quote args containing other shell metacharacters.
1419 # was found and let the user know that the "--tag" command
1421 if test -z "$tagname"; then
1423 func_fatal_error "specify a tag with \`--tag'"
1454 # $write_libobj - a libtool object file
1463 # Name of the non-PIC object
1489 if test -n "$1"; then
1490 # Unfortunately, winepath does not exit with a non-zero error code, so we
1494 # zero AND non-empty stdout, which explains the odd construction:
1495 func_convert_core_file_wine_to_w32_tmp=`winepath -w "$1" 2>/dev/null`
1496 if test "$?" -eq 0 && test -n "${func_convert_core_file_wine_to_w32_tmp}"; then
1498 $SED -e "$lt_sed_naive_backslashify"`
1522 if test -n "$1"; then
1528 if test -n "$func_convert_core_file_wine_to_w32_result" ; then
1529 if test -z "$func_convert_core_path_wine_to_w32_result"; then
1560 if test -n "$LT_CYGPATH" && test -f "$LT_CYGPATH"; then
1562 if test "$?" -ne 0; then
1568 func_error "LT_CYGPATH is empty or specifies non-existent file: \`$LT_CYGPATH'"
1582 $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"`
1594 if test -z "$2" && test -n "$1" ; then
1612 if test -z "$4" && test -n "$3"; then
1621 $SED -e "$lt_replace_pathsep_chars"`
1705 if test -n "$1"; then
1721 if test -n "$1"; then
1724 func_to_host_file_result=`cygpath -m "$1"`
1738 if test -n "$1"; then
1754 if test -n "$1"; then
1756 func_cygpath -u "$func_convert_core_msys_to_w32_result"
1772 if test -n "$1"; then
1775 func_cygpath -u "$func_convert_core_file_wine_to_w32_result"
1811 if test -z "$to_host_path_cmd"; then
1847 if test -n "$1"; then
1870 if test -n "$1"; then
1874 func_to_host_path_result=`cygpath -m -p "$func_to_host_path_tmp1"`
1890 if test -n "$1"; then
1911 if test -n "$1"; then
1916 func_cygpath -u -p "$func_convert_core_msys_to_w32_result"
1934 if test -n "$1"; then
1941 func_cygpath -u -p "$func_convert_core_path_wine_to_w32_result"
1957 srcfile="$nonopt" # always keep a non-empty value in "srcfile"
1981 # Accept any command-line options.
1983 -o)
1984 test -n "$libobj" && \
1985 func_fatal_error "you cannot specify \`-o' more than once"
1990 -pie | -fpie | -fPIE)
1995 -shared | -static | -prefer-pic | -prefer-non-pic)
2000 -no-suppress)
2005 -Xcompiler)
2010 -Wc,*)
2011 func_stripname '-Wc,' '' "$arg"
2045 func_fatal_error "you must specify an argument for -Xcompile"
2048 func_fatal_error "you must specify a target with \`-o'"
2052 test -z "$libobj" && {
2060 # If the user specifies -o file.o, it is replaced with file.lo
2082 -shared)
2089 -static)
2095 -prefer-pic)
2100 -prefer-non-pic)
2116 test -z "$base_compile" && \
2133 # non-PIC code in shared libraries is not supported
2138 # not support -o with -c
2141 lockfile="$output_obj.lock"
2145 lockfile=
2151 until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
2152 func_echo "Waiting for $lockfile to be removed"
2156 if test -f "$lockfile"; then
2158 *** ERROR, $lockfile exists and contains:
2159 `cat $lockfile 2>/dev/null`
2163 your compiler does not support \`-c' and \`-o' together. If you
2165 avoid parallel builds (make -j) in this platform, or get a better
2172 $ECHO "$srcfile" > "$lockfile"
2176 func_append removelist " $lockfile"
2198 if test -z "$output_obj"; then
2200 func_append command " -o $lobj"
2204 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE'
2207 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
2209 *** ERROR, $lockfile contains:
2210 `cat $lockfile 2>/dev/null`
2217 your compiler does not support \`-c' and \`-o' together. If you
2219 avoid parallel builds (make -j) in this platform, or get a better
2227 if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
2238 # Only build a position-dependent object if we build old libraries.
2247 func_append command " -o $obj"
2256 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
2258 *** ERROR, $lockfile contains:
2259 `cat $lockfile 2>/dev/null`
2266 your compiler does not support \`-c' and \`-o' together. If you
2268 avoid parallel builds (make -j) in this platform, or get a better
2276 if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
2287 removelist=$lockfile
2288 $RM "$lockfile"
2311 "Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
2316 (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
2325 "Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
2331 -o OUTPUT-FILE set the output file name to OUTPUT-FILE
2332 -no-suppress do not suppress compiler output for multiple passes
2333 -prefer-pic try to build PIC objects only
2334 -prefer-non-pic try to build non-PIC objects only
2335 -shared do not build a \`.o' file suitable for static linking
2336 -static only build a \`.o' file suitable for static linking
2337 -Wc,FLAG pass FLAG directly to the compiler
2339 COMPILE-COMMAND is a command to be used in creating a \`standard' object file
2349 "Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]...
2355 -dlopen FILE add the directory containing FILE to the library path
2357 This mode sets the library path environment variable according to \`-dlopen'
2369 "Usage: $progname [OPTION]... --mode=finish [LIBDIR]...
2376 the \`--dry-run' option if you just want to see what would be executed."
2381 "Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND...
2385 INSTALL-COMMAND is the installation command. The first component should be
2388 The following components of INSTALL-COMMAND are treated specially:
2390 -inst-prefix-dir PREFIX-DIR Use PREFIX-DIR as a staging area for installation
2393 BSD-compatible install options are recognized)."
2398 "Usage: $progname [OPTION]... --mode=link LINK-COMMAND...
2403 LINK-COMMAND is a command using the C compiler that you would use to create
2406 The following components of LINK-COMMAND are treated specially:
2408 -all-static do not do any dynamic linking at all
2409 -avoid-version do not add a version suffix if possible
2410 -bindir BINDIR specify path to binaries directory (for systems where
2412 -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
2413 -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
2414 -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
2415 -export-symbols SYMFILE
2417 -export-symbols-regex REGEX
2419 -LLIBDIR search LIBDIR for required installed libraries
2420 -lNAME OUTPUT-FILE requires the installed library libNAME
2421 -module build a library that can dlopened
2422 -no-fast-install disable the fast-install mode
2423 -no-install link a not-installable executable
2424 -no-undefined declare that a library does not refer to external symbols
2425 -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
2426 -objectlist FILE Use a list of object files found in FILE to specify objects
2427 -precious-files-regex REGEX
2429 -release RELEASE specify package release information
2430 -rpath LIBDIR the created library will eventually be installed in LIBDIR
2431 -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
2432 -shared only do dynamic linking of libtool libraries
2433 -shrext SUFFIX override the standard shared library file extension
2434 -static do not do any dynamic linking of uninstalled libtool libraries
2435 -static-libtool-libs
2437 -version-info CURRENT[:REVISION[:AGE]]
2439 -weak LIBNAME declare that the target provides the LIBNAME interface
2440 -Wc,FLAG
2441 -Xcompiler FLAG pass linker-specific FLAG directly to the compiler
2442 -Wl,FLAG
2443 -Xlinker FLAG pass linker-specific FLAG directly to the linker
2444 -XCClinker FLAG pass link-specific FLAG to the compiler driver (CC)
2446 All other options (arguments beginning with \`-') are ignored.
2452 If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
2453 only library objects (\`.lo' files) may be specified, and \`-rpath' is
2456 If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
2459 If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
2465 "Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
2470 (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
2483 $ECHO "Try \`$progname --help' for more information about other modes."
2486 # Now that we've collected a possible --mode arg, show help if necessary
2496 } | sed -n '1p; 2,$s/^Usage:/ or: /p'
2512 s/^Usage:.*--mode=\([^ ]*\) .*/Description of \1 mode:/'
2524 test -z "$cmd" && \
2527 # Handle -dlopen flags immediately.
2529 test -f "$file" \
2548 if test -z "$dlname"; then
2550 test -n "$library_names" && \
2551 func_warning "\`$file' was not linked with \`-export-dynamic'"
2558 if test -f "$dir/$objdir/$dlname"; then
2561 if test ! -f "$dir/$dlname"; then
2574 func_warning "\`-dlopen' is ignored for non-libtool libraries and objects"
2581 test -n "$absdir" && dir="$absdir"
2584 if eval "test -z \"\$$shlibpath_var\""; then
2600 -* | *.la | *.lo ) ;;
2620 if test -n "$shlibpath_var"; then
2639 if test -n "$shlibpath_var"; then
2661 if test -d "$opt"; then
2664 elif test -f "$opt"; then
2676 if test -n "$libs"; then
2677 if test -n "$lt_sysroot"; then
2692 sed -e "${sysroot_cmd} s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \
2693 > $tmpdir/tmp-la
2694 mv -f $tmpdir/tmp-la $lib
2700 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
2702 if test -n "$finish_cmds"; then
2707 if test -n "$finish_eval"; then
2719 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
2720 echo "----------------------------------------------------------------------"
2728 echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
2730 if test -n "$shlibpath_var"; then
2731 echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
2734 if test -n "$runpath_var"; then
2735 echo " - add LIBDIR to the \`$runpath_var' environment variable"
2738 if test -n "$hardcode_libdir_flag_spec"; then
2742 $ECHO " - use the \`$flag' linker flag"
2744 if test -n "$admincmds"; then
2745 $ECHO " - have your system administrator run these commands:$admincmds"
2747 if test -f /etc/ld.so.conf; then
2748 echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
2754 solaris2.[6789]|solaris2.1[0-9])
2762 echo "----------------------------------------------------------------------"
2811 if test -n "$dest"; then
2818 -d) isdir=yes ;;
2819 -f)
2824 -g | -m | -o)
2827 -s)
2828 stripme=" -s"
2831 -*)
2835 if test -n "$prev"; then
2836 if test "x$prev" = x-m && test -n "$install_override_mode"; then
2851 if test -n "$arg2"; then
2857 test -z "$install_prog" && \
2860 test -n "$prev" && \
2863 if test -n "$install_override_mode" && $no_mode; then
2866 func_append install_shared_prog " -m $func_quote_for_eval_result"
2870 if test -z "$files"; then
2871 if test -z "$dest"; then
2883 test -d "$dest" && isdir=yes
2894 test "$#" -gt 1 && \
2898 [\\/]* | [A-Za-z]:[\\/]*) ;;
2958 if test -n "$relink_command"; then
2960 inst_prefix_dir=`$ECHO "$destdir" | $SED -e "s%$libdir\$%%"`
2971 if test -n "$inst_prefix_dir"; then
2973 …relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_…
2985 if test -n "$1"; then
2990 test -n "$relink_command" && srcname="$realname"T
3005 if test -n "$tstripme" && test -n "$striplib"; then
3009 if test "$#" -gt 0; then
3011 # Try `ln -sf' first, because the `ln' binary might depend on
3012 # the symlink we replace! Solaris /bin/ln does not understand -f,
3013 # so we also need to try rm && ln -s.
3017 …&& func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $rea…
3026 # Install the pseudo-library for information purposes.
3033 test -n "$old_library" && func_append staticlibs " $dir/$old_library"
3040 if test -n "$destname"; then
3048 # Deduce the name of the destination old-style object file.
3064 test -n "$destfile" && \
3069 # Deduce the name of the old-style object file.
3079 if test -n "$destname"; then
3093 if test ! -f "$file"; then
3123 test -z "$generated_by_libtool_version" && \
3130 if test -f "$lib"; then
3134 if test -n "$libdir" && test ! -f "$libfile"; then
3144 if test "$fast_install" = no && test -n "$relink_command"; then
3194 $opt_dry_run || if test -n "$outputname"; then
3210 if test -n "$stripme" && test -n "$old_striplib"; then
3218 test -n "$future_libdirs" && \
3219 func_warning "remember to run \`$progname --finish$future_libdirs'"
3221 if test -n "$current_libdirs"; then
3223 $opt_dry_run && current_libdirs=" -n$current_libdirs"
3224 exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
3241 my_pic_p="${3-no}"
3242 my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'`
3245 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
3246 if test -n "$NM" && test -n "$global_symbol_pipe"; then
3253 if test -n "$my_dlsyms"; then
3266 /* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emulation. */
3274 #pragma GCC diagnostic ignored \"-Wstrict-prototypes\"
3280 relocations are performed -- see ld's documentation on pseudo-relocs. */
3305 if test -n "$exclude_expsyms"; then
3307 eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
3312 if test -n "$export_symbols_regex"; then
3314 eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
3320 if test -z "$export_symbols"; then
3324 … eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
3334 …eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output…
3335 eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
3358 if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then
3361 if test -n "$dlprefile_dlname" ; then
3365 # no lafile. user explicitly requested -dlpreopen <import library>.
3371 if test -n "$dlprefile_dlbasename" ; then
3379 $SED -e '/I __imp/d' -e 's/I __nm_/D /;s/_nm__//' >> '$nlist'"
3401 test -f "$nlist" || : > "$nlist"
3403 if test -n "$exclude_expsyms"; then
3404 $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
3409 if $GREP -v "^: " < "$nlist" |
3410 if sort -k 3 </dev/null >/dev/null 2>&1; then
3411 sort -k 3
3418 $GREP -v "^: " < "$nlist" > "$nlist"S
3421 if test -f "$nlist"S; then
3468 *" -static "*) ;;
3472 # a FreeBSD bug that causes programs to crash when -lm is
3474 # pic_flag when linking with -static. The problem exists in
3476 *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
3477 pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;;
3478 *-*-hpux*)
3491 -pie | -fpie | -fPIE) ;;
3497 …func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable…
3506 if test -f "$output_objdir/$my_outputname.def"; then
3546 win32_fileres=`file -L $1 2>/dev/null`
3553 if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
3554 … $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null; then
3556 win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" |
3557 $SED -n -e '
3587 # Platform-specific function to extract the
3597 sharedlib_from_linklib_result=`$DLLTOOL --identify-strict --identify "$1"`
3603 # platform-specific function to extract the name of the
3615 $OBJDUMP -s --section "$1" "$2" 2>/dev/null |
3624 /:[ ]*file format pe[i]\{,1\}-/d
3632 $SED -n '
3653 # 0x302f exports -- but will fail for DLLs whose name actually
3658 $SED -e '/^\./d;/^.\./d;q'
3663 # ARG is a GNU/binutils-style import library. Returns
3669 …file_result" | eval "$global_symbol_pipe" | $EGREP ' (_head_[A-Za-z0-9_]+_[ad]l*|[A-Za-z0-9_]+_[ad…
3670 test -n "$func_cygming_gnu_implib_tmp"
3675 # ARG is an MS-style import library. Returns
3682 test -n "$func_cygming_ms_implib_tmp"
3686 # Platform-specific function to extract the
3691 # does not support the --identify-strict option.
3703 # ms-generated import library
3719 lockfile=$f_ex_an_ar_oldlib.lock
3720 until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
3721 func_echo "Waiting for $lockfile to be removed"
3726 'stat=$?; rm -f "$lockfile"; exit $stat'
3728 $opt_dry_run || rm -f "$lockfile"
3730 if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
3752 [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
3763 my_xlib_u=lt$extracted_serial-$my_xlib ;;
3773 *-darwin*)
3782 …darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true`
3783 if test -n "$darwin_arches"; then
3784 darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'`
3788 func_mkdir_p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
3789 …$LIPO -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_arc…
3790 cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
3793 $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
3796 …darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$basenam…
3800 darwin_files=`find unfat-$$ -name $darwin_file -print | sort | $NL2SP`
3801 $LIPO -create -output "$darwin_file" $darwin_files
3803 $RM -rf unfat-$$
3815 …my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | sort | $NL…
3834 # the $objdir directory. This is a cygwin/mingw-specific
3838 func_emit_wrapper_arg1=${1-no}
3843 # $output - temporary wrapper script for $objdir/$outputname
3853 # metacharacters that are still active within double-quoted strings.
3857 if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
3862 alias -g '\${1+\"\$@\"}'='\"\$@\"'
3865 case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
3870 # The HP-UX ksh and POSIX shell print the target directory to stdout
3902 # windows platforms, and (c) all begin with the string "--lt-"
3906 # There are only two supported options: --lt-debug and
3907 # --lt-dump-script. There is, deliberately, no --lt-help.
3919 --lt-debug) lt_option_debug=1 ;;
3920 --lt-dump-script)
3921 lt_dump_D=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%/[^/]*$%%'\`
3923 lt_dump_F=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%^.*/%%'\`
3927 --lt-*)
3928 \$ECHO \"Unrecognized --lt- option: '\$lt_opt'\" 1>&2
3935 if test -n \"\$lt_option_debug\"; then
3940 # Used when --lt-debug. Prints its arguments to stdout
3958 *-*-mingw | *-*-os2* | *-cegcc*)
3960 if test -n \"\$lt_option_debug\"; then
3970 if test -n \"\$lt_option_debug\"; then
3984 # Strips options in the --lt-* namespace from \$@ and
3991 --lt-*) ;;
4007 file=\`ls -ld \"\$file\" | $SED -n 's/.*-> //p'\`
4008 while test -n \"\$file\"; do
4014 [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
4020 file=\`ls -ld \"\$thisdir/\$file\" | $SED -n 's/.*-> //p'\`
4040 test -n \"\$absdir\" && thisdir=\"\$absdir\"
4045 program=lt-'$outputname'$exeext
4048 if test ! -f \"\$progdir/\$program\" ||
4049 … { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
4052 file=\"\$\$-\$program\"
4054 if test ! -d \"\$progdir\"; then
4063 if test -n \"\$relink_command\"; then
4086 if test -f \"\$progdir/\$program\"; then"
4093 if test -n "$dllsearchpath"; then
4101 …if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath";…
4106 # Some systems cannot cope with colon-terminated $shlibpath_var
4139 /* $cwrappersource - temporary wrapper executable for $objdir/$outputname
4175 /* declarations of non-ANSI functions */
4277 const char *program_name = "libtool-wrapper"; /* in case xstrdup fails */
4304 …if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath";…
4315 if test -n "$dllsearchpath"; then
4330 const char * TARGET_PROGRAM_NAME = "lt-$outputname"; /* hopefully, no .exe */
4341 #define LTWRAPPER_OPTION_PREFIX "--lt-"
4344 static const char *dumpscript_opt = LTWRAPPER_OPTION_PREFIX "dump-script";
4394 have already dealt with, above (inluding dump-script), then
4398 need to make LTWRAPPER_OPTION_PREFIX a configure-time option
4399 or a configure.ac-settable value.
4412 /* The GNU banner must be the first non-error debug message */
4442 /* target_name transforms -- use actual target program name; might have lt- prefix */
4468 /* do NOT want the lt- prefix here, so use actual_cwrapper_name */
4471 /* DO want the lt- prefix here if it exists, so use target_name */
4525 if (rval == -1)
4679 p_len = q - p;
4750 p = tmp_pathspec + strlen (tmp_pathspec) - 1;
4752 p--;
4797 str += len - patlen;
4911 /* some systems can't cope with a ':'-terminated path #' */
4913 while (((len = strlen (new_value)) > 0) && IS_PATH_SEPARATOR (new_value[len-1]))
4915 new_value[len-1] = '\0';
4953 - Space and tab are interpreted as delimiters. They are not treated as
4955 - Unescaped double quotes are removed from the input. Their only effect is
4958 - Backslashes not followed by double quotes are not special.
4959 - But 2*n+1 backslashes followed by a double quote become
4961 \" -> "
4962 \\\" -> \"
4963 \\\\\" -> \\"
5027 for (j = backslashes + 1; j > 0; j--)
5039 for (j = backslashes; j > 0; j--)
5063 $SED -e 's/\([\\"]\)/\\\1/g' \
5064 -e 's/^/ fputs ("/' -e 's/$/\\n", f);/'
5077 case `eval $file_magic_cmd \"\$1\" 2>/dev/null | $SED -e 10q` in
5088 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
5098 # -no-undefined on the libtool link line when we can be certain
5155 single_module="${wl}-single_module"
5158 # We need to know -static, to get the right output filenames.
5162 -shared)
5168 -all-static | -static | -static-libtool-libs)
5170 -all-static)
5171 if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
5174 if test -n "$link_static_flag"; then
5179 -static)
5180 if test -z "$pic_flag" && test -n "$link_static_flag"; then
5185 -static-libtool-libs)
5186 if test -z "$pic_flag" && test -n "$link_static_flag"; then
5200 test -n "$old_archive_from_new_cmds" && build_old_libs=yes
5203 while test "$#" -gt 0; do
5211 if test -n "$prev"; then
5267 test -f "$arg" \
5279 *-*-darwin*)
5296 if test -f "$arg"; then
5303 # A libtool-controlled object.
5313 if test -z "$pic_object" ||
5314 test -z "$non_pic_object" ||
5339 # CHECK ME: I think I busted this. -Ossama
5341 # Preload the old-style object.
5351 # Non-PIC object.
5356 # A standard non-PIC object
5358 if test -z "$pic_object" || test "$pic_object" = none ; then
5368 # Only an error if not doing a dry-run.
5397 release="-$arg"
5404 [\\/]* | [A-Za-z]:[\\/]*) ;;
5406 func_fatal_error "only absolute run-paths are allowed"
5462 fi # test -n "$prev"
5467 -all-static)
5468 if test -n "$link_static_flag"; then
5469 # See comment for -static flag below, for more details.
5476 -allow-undefined)
5478 func_fatal_error "\`-allow-undefined' must not be used because it is the default"
5481 -avoid-version)
5486 -bindir)
5491 -dlopen)
5496 -dlpreopen)
5501 -export-dynamic)
5506 -export-symbols | -export-symbols-regex)
5507 if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
5508 func_fatal_error "more than one -exported-symbols argument is not allowed"
5510 if test "X$arg" = "X-export-symbols"; then
5518 -framework)
5523 -inst-prefix-dir)
5528 # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
5529 # so, if we see these flags be careful not to treat them like -L
5530 -L[A-Z][A-Z]*:*)
5532 no/*-*-irix* | /*-*-irix*)
5540 -L*)
5541 func_stripname "-L" '' "$arg"
5542 if test -z "$func_stripname_result"; then
5543 if test "$#" -gt 0; then
5544 func_fatal_error "require no space between \`-L' and \`$1'"
5546 func_fatal_error "need path for \`-L' option"
5553 [\\/]* | [A-Za-z]:[\\/]*) ;;
5556 test -z "$absdir" && \
5562 *" -L$dir "* | *" $arg "*)
5568 [\\/]* | [A-Za-z]:[\\/]* | =*) func_append deplibs " $arg" ;;
5569 *) func_append deplibs " -L$dir" ;;
5575 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
5592 -l*)
5593 if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
5595 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*)
5599 *-*-os2*)
5601 test "X$arg" = "X-lc" && continue
5603 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
5605 test "X$arg" = "X-lc" && continue
5607 *-*-rhapsody* | *-*-darwin1.[012])
5612 *-*-sco3.2v5* | *-*-sco5v6*)
5614 test "X$arg" = "X-lc" && continue
5616 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
5618 test "X$arg" = "X-lc" && continue
5621 elif test "X$arg" = "X-lc_r"; then
5623 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
5624 # Do not include libc_r directly, use -pthread flag.
5633 -module)
5638 # Tru64 UNIX uses -model [arg] to determine the layout of C++
5640 # Darwin uses the -arch flag to determine output architecture.
5641 -model|-arch|-isysroot|--sysroot)
5649 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
5660 -multi_module)
5661 single_module="${wl}-multi_module"
5665 -no-fast-install)
5670 -no-install)
5672 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*)
5675 func_warning "\`-no-install' is ignored for $host"
5676 func_warning "assuming \`-no-fast-install' instead"
5684 -no-undefined)
5689 -objectlist)
5694 -o) prev=output ;;
5696 -precious-files-regex)
5701 -release)
5706 -rpath)
5711 -R)
5716 -R*)
5717 func_stripname '-R' '' "$arg"
5721 [\\/]* | [A-Za-z]:[\\/]*) ;;
5727 func_fatal_error "only absolute run-paths are allowed"
5737 -shared)
5738 # The effects of -shared are defined in a previous loop.
5742 -shrext)
5747 -static | -static-libtool-libs)
5748 # The effects of -static are defined in a previous loop.
5749 # We used to do the same as -all-static on platforms that
5756 -thread-safe)
5761 -version-info)
5766 -version-number)
5772 -weak)
5777 -Wc,*)
5778 func_stripname '-Wc,' '' "$arg"
5793 -Wl,*)
5794 func_stripname '-Wl,' '' "$arg"
5810 -Xcompiler)
5815 -Xlinker)
5820 -XCClinker)
5825 # -msg_* for osf cc
5826 -msg_*)
5832 # -64, -mips[0-9] enable 64-bit mode for the SGI compiler
5833 # -r[0-9][0-9]* specify processor for the SGI compiler
5834 # -xarch=*, -xtarget=* enable 64-bit mode for the Sun compiler
5835 # +DA*, +DD* enable 64-bit mode for the HP compiler
5836 # -q* compiler args for the IBM compiler
5837 # -m*, -t[45]*, -txscale* architecture-specific flags for GCC
5838 # -F/path path to uninstalled frameworks, gcc on darwin
5839 # -p, -pg, --coverage, -fprofile-* profiling flags for GCC
5841 # -tp=* Portland pgcc target processor selection
5842 # --sysroot=* for sysroot support
5843 # -O*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
5844 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
5845 -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
5846 -O*|-flto*|-fwhopr*|-fuse-linker-plugin)
5856 -* | +*)
5867 # A libtool-controlled object.
5877 if test -z "$pic_object" ||
5878 test -z "$non_pic_object" ||
5903 # CHECK ME: I think I busted this. -Ossama
5905 # Preload the old-style object.
5915 # Non-PIC object.
5920 # A standard non-PIC object
5922 if test -z "$pic_object" || test "$pic_object" = none ; then
5932 # Only an error if not doing a dry-run.
5957 # A libtool-controlled library.
5961 # This library was specified with -dlopen.
5965 # The library was specified with -dlpreopen.
5984 if test -n "$arg"; then
5991 # [Mandriva] dropping ld option "--no-undefined" which is wrong for plugins
5992 linker_flags=`$ECHO "X $linker_flags" | $Xsed -e 's/ --no-undefined//'`
5993 compiler_flags=`$ECHO "X $compiler_flags" | $Xsed -e 's/ -Wl,--no-undefined//'`
5996 test -n "$prev" && \
5999 if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
6011 if test -n "$shlibpath_var"; then
6042 # that are linked more than once (e.g. -la -lb -la)
6074 notinst_deplibs= # not-installed libtool libraries
6075 notinst_path= # paths that contain not-installed libtool libraries
6084 func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file"
6103 # so that -L comes before libs that need it for instance...
6132 # Ignore non-libtool-libs
6162 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
6177 -l*)
6179 func_warning "\`-l' is ignored for archives/objects"
6182 func_stripname '-l' '' "$deplib"
6193 if test -f "$lib"; then
6246 ;; # -l
6262 -L*)
6268 func_stripname '-L' '' "$deplib"
6283 func_stripname '-L' '' "$deplib"
6288 func_warning "\`-L' is ignored for archives/objects"
6292 ;; # -L
6293 -R*)
6295 func_stripname '-R' '' "$deplib"
6319 # but linking other static libraries is non-portable.
6388 if test "$found" = yes || test -f "$lib"; then :
6417 # Convert "-framework foo" to "foo.ltframework"
6418 if test -n "$inherited_linker_flags"; then
6419 …tmp_inherited_linker_flags=`$ECHO "$inherited_linker_flags" | $SED 's/-framework \([^ $]*\)/\1.ltf…
6427 dependency_libs=`$ECHO " $dependency_libs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
6431 test -n "$dlopen" && func_append dlfiles " $dlopen"
6432 test -n "$dlpreopen" && func_append dlprefiles " $dlpreopen"
6438 if test -z "$libdir"; then
6439 if test -z "$old_library"; then
6464 if test -n "$old_library" &&
6473 if test -z "$linklib"; then
6477 # This library was specified with -dlopen.
6479 if test -z "$libdir"; then
6480 func_fatal_error "cannot -dlopen a convenience library: \`$lib'"
6482 if test -z "$dlname" ||
6498 [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
6501 if test -z "$abs_ladir"; then
6513 if test ! -f "$lt_sysroot$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
6524 if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
6539 # This library was specified with -dlpreopen.
6541 if test -z "$libdir" && test "$linkmode" = prog; then
6542 func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'"
6545 # special handling for platforms with PE-DLLs.
6555 if test -n "$dlname"; then
6563 test -z "$libdir" && \
6570 if test -n "$old_library"; then
6574 test -z "$libdir" && \
6577 elif test -n "$dlname"; then
6586 if test -z "$libdir"; then
6605 if test "$link_all_deplibs" != no || test -z "$library_names" ||
6613 -L*) func_stripname '-L' '' "$deplib"
6637 if test -n "$library_names" &&
6640 test -z "$old_library"; }; then
6642 if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
6651 # Skip directories that are in the system default run-time
6676 test -n "$library_names"; }; }; then
6687 if test -n "$library_names" &&
6688 { test "$use_static_libs" = no || test -z "$old_library"; }; then
6704 # Warn about portability, can't link against -module's on some
6713 if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then
6725 # Skip directories that are in the system default run-time
6747 if test -n "$old_archive_from_expsyms_cmds"; then
6755 if test -n "$dlname"; then
6757 elif test -n "$soname_spec"; then
6761 func_arith $current - $age
6763 versuffix="-$major"
6776 newlib=libimp-$func_stripname_result.a
6779 if test -f "$output_objdir/$soname-def"; then :
6786 if test -f "$output_objdir/$newlib"; then :; else
6793 fi # test -n "$old_archive_from_expsyms_cmds"
6805 *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
6806 *-*-sysv4*uw2*) add_dir="-L$dir" ;;
6807 *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
6808 *-*-unixware7*) add_dir="-L$dir" ;;
6809 *-*-darwin* )
6810 # if the lib is a (non-dlopened) module then we can not
6812 if /usr/bin/file -L $add 2> /dev/null |
6816 if test -z "$old_library" ; then
6823 elif test -n "$old_library"; then
6830 *-*-sunos*) add_shlibpath="$dir" ;;
6832 add_dir="-L$dir"
6833 add="-l$name"
6836 add="-l$name"
6846 add_dir="-L$dir"
6848 if test -n "$inst_prefix_dir"; then
6851 func_append add_dir " -L$inst_prefix_dir$libdir"
6855 add="-l$name"
6858 add="-l$name"
6870 if test -n "$add_shlibpath"; then
6877 test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
6878 test -n "$add" && compile_deplibs="$add $compile_deplibs"
6880 test -n "$add_dir" && deplibs="$add_dir $deplibs"
6881 test -n "$add" && deplibs="$add $deplibs"
6902 add_dir="-L$libdir"
6903 add="-l$name"
6909 add="-l$name"
6911 if test -n "$inst_prefix_dir" &&
6912 test -f "$inst_prefix_dir$libdir/$linklib" ; then
6919 add_dir="-L$libdir"
6921 if test -n "$inst_prefix_dir"; then
6924 func_append add_dir " -L$inst_prefix_dir$libdir"
6928 add="-l$name"
6932 test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
6933 test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
6935 test -n "$add_dir" && deplibs="$add_dir $deplibs"
6936 test -n "$add" && deplibs="$add $deplibs"
6944 test -n "$old_library" && linklib="$old_library"
6948 compile_deplibs="-l$name -L$dir $compile_deplibs"
6949 finalize_deplibs="-l$name -L$dir $finalize_deplibs"
6967 echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
6968 if test -z "$global_symbol_pipe"; then
6989 if test -n "$dependency_libs" &&
6993 # Extract -R from dependency_libs
6997 -R*) func_stripname '-R' '' "$libdir"
7017 -L*) func_stripname '-L' '' "$deplib"
7035 -L*) path="$deplib" ;;
7043 [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
7046 if test -z "$absdir"; then
7054 *-*-darwin*)
7056 eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
7057 if test -n "$deplibrary_names" ; then
7061 if test -f "$absdir/$objdir/$depdepl" ; then
7063 darwin_install_name=`${OTOOL} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
7064 if test -z "$darwin_install_name"; then
7065 … darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
7067 func_append compiler_flags " ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
7068 func_append linker_flags " -dylib_file ${darwin_install_name}:${depdepl}"
7074 path="-L$absdir/$objdir"
7078 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
7079 test -z "$libdir" && \
7084 path="-L$absdir"
7101 …r_flags "`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
7141 -L*) new_libs="$deplib $new_libs" ;;
7142 -R*) ;;
7156 # using -Wl,-lname, so that libtool does not consider it
7173 -L*)
7194 if test -n "$i" ; then
7209 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
7210 func_warning "\`-dlopen' is ignored for archives"
7214 *\ -l* | *\ -L*)
7215 func_warning "\`-l' and \`-L' are ignored for archives" ;;
7218 test -n "$rpath" && \
7219 func_warning "\`-rpath' is ignored for archives"
7221 test -n "$xrpath" && \
7222 func_warning "\`-R' is ignored for archives"
7224 test -n "$vinfo" && \
7225 func_warning "\`-version-info/-version-number' is ignored for archives"
7227 test -n "$release" && \
7228 func_warning "\`-release' is ignored for archives"
7230 test -n "$export_symbols$export_symbols_regex" && \
7231 func_warning "\`-export-symbols' is ignored for archives"
7240 # Make sure we only generate libraries of the form `libNAME.la'.
7265 if test -n "$objs"; then
7267 …func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$o…
7270 $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
7277 func_warning "\`-dlopen self' is ignored for libtool libraries"
7281 test "$#" -gt 1 && \
7282 func_warning "ignoring multiple \`-rpath's for a libtool library"
7287 if test -z "$rpath"; then
7298 test -n "$vinfo" && \
7299 func_warning "\`-version-info/-version-number' is ignored for convenience libraries"
7301 test -n "$release" && \
7302 func_warning "\`-release' is ignored for convenience libraries"
7311 test -n "$7" && \
7312 func_fatal_help "too many parameters to \`-version-info'"
7324 # There are really only two kinds -- those that
7337 freebsd-aout|freebsd-elf|qnx|sunos)
7360 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]) ;;
7368 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]) ;;
7376 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]) ;;
7383 if test "$age" -gt "$current"; then
7398 func_arith $current - $age
7404 …xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_cu…
7405 verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
7408 freebsd-aout)
7413 freebsd-elf)
7420 func_arith $current - $age
7422 func_arith $current - $age + 1
7434 while test "$loop" -ne 0; do
7435 func_arith $revision - $loop
7437 func_arith $loop - 1
7448 func_arith $current - $age
7454 func_arith $current - $age
7461 while test "$loop" -ne 0; do
7462 func_arith $current - $loop
7464 func_arith $loop - 1
7484 # Use '-' rather than '.', since we only want one
7486 func_arith $current - $age
7488 versuffix="-$major"
7497 if test -z "$vinfo" && test -n "$release"; then
7552 if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
7562 test -n "$removelist" && \
7577 # deplibs=`$ECHO "$deplibs " | $SED "s% -L$path % %g"`
7578 # dependency_libs=`$ECHO "$dependency_libs " | $SED "s% -L$path % %g"`
7581 if test -n "$xrpath"; then
7586 func_append temp_xrpath " -R$func_replace_sysroot_result"
7618 if test -n "$rpath"; then
7620 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*)
7623 *-*-rhapsody* | *-*-darwin1.[012])
7627 *-*-netbsd*)
7630 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
7633 *-*-sco3.2v5* | *-*-sco5v6*)
7636 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
7642 func_append deplibs " -lc"
7655 # release should show up in the -l (ie -lgmp5) so we don't want to
7681 if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
7685 -l*)
7686 func_stripname -l '' "$i"
7696 if test -n "$i" ; then
7701 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
7725 -l*)
7726 func_stripname -l '' "$i"
7729 if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
7739 if test -n "$i" ; then
7744 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
7778 -l*)
7779 func_stripname -l '' "$a_deplib"
7789 if test -n "$a_deplib" ; then
7791 if test -n "$file_magic_glob"; then
7792 libnameglob=`func_echo_all "$libname" | $SED -e $file_magic_glob`
7796 test "$want_nocaseglob" = yes && nocaseglob=`shopt -p nocaseglob`
7799 shopt -s nocaseglob
7800 potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
7803 potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
7807 if ls -lLd "$potent_lib" 2>/dev/null |
7808 $GREP " -> " >/dev/null; then
7817 while test -h "$potlib" 2>/dev/null; do
7818 potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
7820 [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
7825 $SED -e 10q |
7834 if test -n "$a_deplib" ; then
7842 if test -z "$potlib" ; then
7851 # Add a -L argument.
7862 -l*)
7863 func_stripname -l '' "$a_deplib"
7873 if test -n "$a_deplib" ; then
7876 potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
7878 potlib="$potent_lib" # see symlink-check above in file_magic test
7888 if test -n "$a_deplib" ; then
7896 if test -z "$potlib" ; then
7905 # Add a -L argument.
7913 tmp_deplibs=`$ECHO " $deplibs" | $SED 's/ -lc$//; s/ -[LR][^ ]*//g'`
7924 echo "*** Warning: inter-library dependencies are not supported in this platform."
7926 echo "*** Warning: inter-library dependencies are not known to be supported."
7928 echo "*** All declared inter-library dependencies are being dropped."
7941 *-*-rhapsody* | *-*-darwin1.[012])
7943 newdeplibs=`$ECHO " $newdeplibs" | $SED 's/ -lc / System.ltframework /'`
7950 echo "*** Warning: libtool could not satisfy all declared inter-library"
7953 echo "*** application is linked with the -dlopen flag."
7954 if test -z "$global_symbol_pipe"; then
7969 echo "*** The inter-library dependencies that have been dropped here will be"
7971 echo "*** or is declared to -dlopen it."
7977 echo "*** it was explicitly requested with -no-undefined,"
7992 # Time to change all our "foo.ltframework" stuff back to "-framework foo"
7994 *-*-darwin*)
7995 newdeplibs=`$ECHO " $newdeplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
7996 …er_flags=`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
7997 deplibs=`$ECHO " $deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
8006 *" -L$path/$objdir "*) ;;
8009 *" -L$path/$objdir "*)
8010 func_append new_libs " -L$path/$objdir" ;;
8017 -L*)
8028 # All the library-specific variables (install_libdir is set above).
8042 if test -n "$hardcode_libdir_flag_spec"; then
8043 if test -n "$hardcode_libdir_separator"; then
8046 if test -z "$hardcode_libdirs"; then
8062 elif test -n "$runpath_var"; then
8070 if test -n "$hardcode_libdir_separator" &&
8071 test -n "$hardcode_libdirs"; then
8073 if test -n "$hardcode_libdir_flag_spec_ld"; then
8079 if test -n "$runpath_var" && test -n "$perm_rpath"; then
8087 test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
8092 if test -n "$shlibpath"; then
8104 if test -n "$soname_spec"; then
8109 if test -z "$dlname"; then
8121 test -z "$pic_flag" && libobjs=`$ECHO "$libobjs" | $SP2NL | $SED "$lo2o" | $NL2SP`
8125 if test -n "$export_symbols" && test -n "$include_expsyms"; then
8134 if test -n "$export_symbols" && test -z "$export_symbols_regex"; then
8152 if test -z "$export_symbols"; then
8153 if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
8175 && { test "$len" -lt "$max_cmd_len" \
8176 || test "$max_cmd_len" -le -1; }
8180 elif test -n "$nm_file_list_spec"; then
8209 if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then
8210 func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
8216 if test -n "$export_symbols" && test -n "$include_expsyms"; then
8218 test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
8222 if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then
8230 …$opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $outp…
8233 $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
8242 …if test -n "$inst_prefix_dir" && test "$inst_prefix_dir" != "/" && (echo "$test_deplib" | grep --
8251 if test -n "$inst_prefix_arg"; then
8255 if test -n "$convenience"; then
8256 if test -n "$whole_archive_flag_spec" &&
8258 test -z "$libobjs"; then
8263 if test -n "$whole_archive_flag_spec"; then
8277 if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
8288 if test "$module" = yes && test -n "$module_cmds" ; then
8289 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
8297 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
8309 test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
8324 if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
8339 if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then
8352 …elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; t…
8372 if test -n "$save_libobjs"; then
8374 output=$output_objdir/$output_la-${k}.$objext
8387 test "$len" -lt "$max_cmd_len"; then
8392 if test "$k" -eq 1 ; then
8402 last_robj=$output_objdir/$output_la-${k}.$objext
8405 output=$output_objdir/$output_la-${k}.$objext
8415 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
8418 if test -n "$last_robj"; then
8427 if ${skipped_export-false}; then
8433 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
8435 if test -n "$last_robj"; then
8440 test -n "$save_libobjs" &&
8466 if test -n "$export_symbols_regex" && ${skipped_export-false}; then
8467 func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
8472 if ${skipped_export-false}; then
8473 if test -n "$export_symbols" && test -n "$include_expsyms"; then
8475 test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
8479 if test -n "$orig_export_symbols"; then
8487 …$opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $outp…
8490 … $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
8498 if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
8506 if test "$module" = yes && test -n "$module_cmds" ; then
8507 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
8513 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
8521 if test -n "$delfiles"; then
8527 if test -n "$dlprefiles"; then
8563 if test -n "$convenience"; then
8564 if test -z "$whole_archive_flag_spec"; then
8579 # If -module or -export-dynamic was specified, set the dlname.
8588 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
8589 func_warning "\`-dlopen' is ignored for objects"
8593 *\ -l* | *\ -L*)
8594 func_warning "\`-l' and \`-L' are ignored for objects" ;;
8597 test -n "$rpath" && \
8598 func_warning "\`-rpath' is ignored for objects"
8600 test -n "$xrpath" && \
8601 func_warning "\`-R' is ignored for objects"
8603 test -n "$vinfo" && \
8604 func_warning "\`-version-info' is ignored for objects"
8606 test -n "$release" && \
8607 func_warning "\`-release' is ignored for objects"
8611 test -n "$objs$old_deplibs" && \
8612 func_fatal_error "cannot build library object \`$output' from non-libtool objects"
8628 # single-version convenience libraries. Whenever we create
8629 # different ones for PIC/non-PIC, this we'll have to duplicate
8634 # -Wl from whole_archive_flag_spec and hope we can get by with
8638 if test -n "$convenience"; then
8639 if test -n "$whole_archive_flag_spec"; then
8654 # Create the old-style object.
8661 if test -z "$libobj"; then
8662 if test -n "$gentop"; then
8670 if test -n "$gentop"; then
8681 if test -n "$pic_flag" || test "$pic_mode" != default; then
8688 if test -n "$gentop"; then
8700 test -n "$vinfo" && \
8701 func_warning "\`-version-info' is ignored for programs"
8703 test -n "$release" && \
8704 func_warning "\`-release' is ignored for programs"
8713 *-*-rhapsody* | *-*-darwin1.[012])
8715 compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's/ -lc / System.ltframework /'`
8716 finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's/ -lc / System.ltframework /'`
8721 *-*-darwin*)
8725 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
8727 func_append compile_command " ${wl}-bind_at_load"
8728 func_append finalize_command " ${wl}-bind_at_load"
8732 # Time to change all our "foo.ltframework" stuff back to "-framework foo"
8733 compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
8734 finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
8744 *" -L$path/$objdir "*) ;;
8747 *" -L$path/$objdir "*)
8748 func_append new_libs " -L$path/$objdir" ;;
8755 -L*)
8770 if test -n "$rpath$xrpath"; then
8773 # This is the magic to use -rpath.
8785 if test -n "$hardcode_libdir_flag_spec"; then
8786 if test -n "$hardcode_libdir_separator"; then
8787 if test -z "$hardcode_libdirs"; then
8803 elif test -n "$runpath_var"; then
8810 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
8811 testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'`
8826 if test -n "$hardcode_libdir_separator" &&
8827 test -n "$hardcode_libdirs"; then
8836 if test -n "$hardcode_libdir_flag_spec"; then
8837 if test -n "$hardcode_libdir_separator"; then
8838 if test -z "$hardcode_libdirs"; then
8854 elif test -n "$runpath_var"; then
8862 if test -n "$hardcode_libdir_separator" &&
8863 test -n "$hardcode_libdirs"; then
8869 if test -n "$libobjs" && test "$build_old_libs" = yes; then
8878 if test -n "$prelink_cmds"; then
8908 if test -n "$postlink_cmds"; then
8910 …postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUT…
8915 if test -f "$output_objdir/${outputname}S.${objext}"; then
8922 if test -n "$compile_shlibpath$finalize_shlibpath"; then
8925 if test -n "$finalize_shlibpath"; then
8931 if test -n "$runpath_var"; then
8932 if test -n "$perm_rpath"; then
8940 if test -n "$finalize_perm_rpath"; then
8960 if test -n "$postlink_cmds"; then
8962 …postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUT…
8995 $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname
8999 if test -n "$postlink_cmds"; then
9001 …stlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g…
9009 if test -n "$relink_command"; then
9012 if eval test -z \"\${$var+set}\"; then
9013 …relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relin…
9014 elif eval var_value=\$$var; test -z "$var_value"; then
9046 cwrappersource="$output_path/$objdir/lt-$output_name.c"
9054 # because it contains $host paths and files. If cross-
9058 $LTCC $LTCFLAGS -o $cwrapper $cwrappersource
9069 $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result
9088 # See if we need to build an old-fashioned archive.
9101 if test "$preload" = yes && test -f "$symfileobj"; then
9108 if test -n "$addlibs"; then
9117 if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
9122 if test -n "$dlprefiles"; then
9140 done | sort | sort -uc >/dev/null 2>&1); then
9160 newobj=lt$counter-$objbase
9165 *) if test ! -f "$gentop/$newobj"; then break; fi ;;
9179 if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
9181 elif test -n "$archiver_list_spec"; then
9215 if test "$len" -lt "$max_cmd_len"; then
9223 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
9241 test -n "$generated" && \
9253 if eval test -z \"\${$var+set}\"; then
9254 …relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relin…
9255 elif eval var_value=\$$var; test -z "$var_value"; then
9263 …relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefi…
9273 if test -z "$install_libdir"; then
9284 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
9285 test -z "$libdir" && \
9289 -L*)
9290 func_stripname -L '' "$deplib"
9292 func_append newdependency_libs " -L$func_replace_sysroot_result"
9294 -R*)
9295 func_stripname -R '' "$deplib"
9297 func_append newdependency_libs " -R$func_replace_sysroot_result"
9310 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
9311 test -z "$libdir" && \
9323 # Only pass preopened files to the pseudo-archive (for
9329 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
9330 test -z "$libdir" && \
9341 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
9350 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
9360 # systems that can't hard-code library paths into their executables
9363 # libtool variables, so we have to hard-code the OSs to which it
9370 # If a -bindir argument was supplied, place the dll there.
9382 # $outputname - a libtool library file
9414 # Should we warn about portability when linking against -modules?
9458 -f) func_append RM " $arg"; rmforce=yes ;;
9459 -*) func_append RM " $arg" ;;
9464 test -z "$RM" && \
9489 # Don't error if the file doesn't exist and rm -f was used.
9490 if { test -L "$file"; } >/dev/null 2>&1 ||
9491 { test -h "$file"; } >/dev/null 2>&1 ||
9492 test -f "$file"; then
9494 elif test -d "$file"; then
9513 test -n "$old_library" && func_append rmfiles " $odir/$old_library"
9519 *) test -n "$dlname" && func_append rmfiles " $odir/$dlname" ;;
9521 test -n "$libdir" && func_append rmfiles " $odir/$name $odir/${name}i"
9524 if test -n "$library_names"; then
9529 if test -n "$old_library"; then
9547 if test -n "$pic_object" &&
9552 # Add non-PIC object to the list of files to remove.
9553 if test -n "$non_pic_object" &&
9589 if test "$fast_install" = yes && test -n "$relink_command"; then
9590 func_append rmfiles " $odir/lt-$name"
9593 func_append rmfiles " $odir/lt-${noexename}.c"
9604 if test -d "$dir"; then
9615 test -z "$opt_mode" && {
9620 test -z "$exec_cmd" && \
9623 if test -n "$exec_cmd"; then
9638 # time on that platform, so we default to a shared-only configuration.
9639 # If a disable-shared tag is given, we'll fallback to a static-only
9640 # configuration. But we'll never go from static-only to shared-only.
9642 # ### BEGIN LIBTOOL TAG CONFIG: disable-shared
9645 # ### END LIBTOOL TAG CONFIG: disable-shared
9647 # ### BEGIN LIBTOOL TAG CONFIG: disable-static
9649 # ### END LIBTOOL TAG CONFIG: disable-static
9652 # mode:shell-script
9653 # sh-indentation:2