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 # --no-warn don't display warning messages
45 # --tag=TAG use configuration variables from tag TAG
46 # -v, --verbose print more informational messages than default
47 # --no-verbose don't print the extra informational messages
48 # --version print version information
49 # -h, --help, --help-all print short, long, or detailed help message
61 # MODE-ARGS vary depending on the MODE. When passed as first option,
62 # `--mode=MODE' may be abbreviated as `MODE' or a unique abbreviation of that.
63 # Try `$progname --help --mode=MODE' for a more detailed description of MODE.
68 # host-triplet: $host
73 # $progname: (GNU libtool) 2.4.2 Debian-2.4.2-1.1
77 # Report bugs to <bug-libtool@gnu.org>.
83 VERSION="2.4.2 Debian-2.4.2-1.1"
88 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
93 alias -g '${1+"$@"}'='"$@"'
96 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
138 : ${CP="cp -f"}
139 test "${ECHO+set}" = set || ECHO=${as_echo-'printf %s\n'}
142 : ${MV="mv -f"}
143 : ${RM="rm -f"}
144 : ${SHELL="${CONFIG_SHELL-/bin/sh}"}
145 : ${Xsed="$SED -e 1s/^X//"}
199 func_dirname_result=`$ECHO "${1}" | $SED -e "$dirname"`
205 func_basename_result=`$ECHO "${1}" | $SED -e "$basename"`
235 # Remove doubled-up and trailing slashes, "." path components,
254 # we take advantage of case's first-match behaviour.
276 -e "$removedotparts" -e "$collapseslashes" -e "$finalslash"`
281 if test -z "$func_normal_abspath_result" ; then
287 -e "$pathcar"`
289 -e "$pathcdr"`
306 # Restore leading double-slash if one was found on entry.
312 # slash if non-empty, suitable for immediately appending a filename
336 if test -z "$func_relative_path_result"; then
355 # Now calculate path; take care to avoid doubling-up slashes.
366 if test ! -z "$func_relative_path_result"; then
378 [\\/]*|[A-Za-z]:\\*) ;;
386 IFS=${PATH_SEPARATOR-:}
389 test -x "$progdir/$progname" && break
392 test -n "$progdir" || progdir=`pwd`
398 # metacharacters that are still active within double-quoted strings.
399 Xsed="${SED}"' -e 1s/^X//'
414 # Re-`\' parameter expansions in output of double_quote_subst that were
415 # `\'-ed in input to the same. If an odd number of `\' preceded a '$'
452 # fails when set -e is in force, so we need another command to
458 # Invoke $ECHO with all args, space-separated.
497 help="Try \`$progname --help' for more information." ## default
508 # func_mkdir_p directory-path
509 # Make sure the entire path to DIRECTORY-PATH is available.
515 if test -n "$my_directory_path" && test "$opt_dry_run" != ":"; then
517 # Protect directory names starting with `-'
519 -*) my_directory_path="./$my_directory_path" ;;
523 while test ! -d "$my_directory_path"; do
532 my_directory_path=`$ECHO "$my_directory_path" | $SED -e "$dirname"`
547 test -d "$my_directory_path" || \
559 my_template="${TMPDIR-/tmp}/${1-$progname}"
562 # Return a directory name, but don't create it in dry-run mode
563 my_tmpdir="${my_template}-$$"
567 my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
569 if test ! -d "$my_tmpdir"; then
571 my_tmpdir="${my_template}-${RANDOM-0}$$"
579 # If we're not in dry-run mode, bomb out on failure
580 test -d "$my_tmpdir" || \
591 # is double-quoted, suitable for a subsequent eval, whereas
604 # Double-quote args containing shell metacharacters to delay
626 -e "$double_quote_subst" -e "$sed_double_backslash"` ;;
632 # Double-quote args containing shell metacharacters to delay
652 my_fail_exp="${2-:}"
654 ${opt_silent-false} || {
659 if ${opt_dry_run-false}; then :; else
662 if test "$my_status" -eq 0; then :; else
676 my_fail_exp="${2-:}"
678 ${opt_silent-false} || {
683 if ${opt_dry_run-false}; then :; else
688 if test "$my_status" -eq 0; then :; else
697 # not in the set a-zA-Z0-9_ are replaced with '_'. Further,
702 [0-9]* | *[!a-zA-Z0-9_]*)
703 func_tr_sh_result=`$ECHO "$1" | $SED 's/^\([0-9]\)/_\1/; s/[^a-zA-Z0-9_]/_/g'`
718 $SED -n '/(C)/!b go
729 s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/
741 $SED -n '/^# Usage:/,/^# *.*--help/ {
748 $ECHO "run \`$progname --help | more' for full usage"
759 $SED -n '/^# Usage:/,/# Report bugs to/ {
770 s/\$automake_version/'"`(${AUTOMAKE-automake} --version) 2>/dev/null |$SED 1q`"'/
771 s/\$autoconf_version/'"`(${AUTOCONF-autoconf} --version) 2>/dev/null |$SED 1q`"'/
779 if test -z "$1"; then
814 my_sed_long_opt='1s/^\(--[^=]*\)=.*/\1/;q'
815 my_sed_long_arg='1s/^--[^=]*=//'
839 # will be execed at the end. This prevents here-documents from being
860 # func_arith arithmetic-term...
882 # func_xform libobj-or-source
912 … $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath"
952 *[!-_A-Za-z0-9,/]*)
967 # also don't use non-portable quotes within backquotes within
969 extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"`
985 if test -z "$macro_version"; then
1014 # Shorthand for --mode=foo, only valid as the first argument
1017 shift; set dummy --mode clean ${1+"$@"}; shift
1020 shift; set dummy --mode compile ${1+"$@"}; shift
1023 shift; set dummy --mode execute ${1+"$@"}; shift
1026 shift; set dummy --mode finish ${1+"$@"}; shift
1029 shift; set dummy --mode install ${1+"$@"}; shift
1032 shift; set dummy --mode link ${1+"$@"}; shift
1035 shift; set dummy --mode uninstall ${1+"$@"}; shift
1058 # script to make things like `--version' happen as quickly as we can.
1061 while test $# -gt 0; do
1065 --debug|-x) opt_debug='set -x'
1069 --dry-run|--dryrun|-n)
1072 --config)
1076 --dlopen|-dlopen)
1082 --preserve-dup-deps)
1085 --features)
1089 --finish)
1091 set dummy --mode finish ${1+"$@"}; shift
1093 --help)
1096 --help-all)
1098 opt_help=': help-all'
1100 --mode)
1116 --no-silent|--no-quiet)
1120 --no-warning|--no-warn)
1124 --no-verbose)
1128 --silent|--quiet)
1133 --verbose|-v)
1138 --tag)
1147 -\?|-h) func_usage ;;
1148 --help) func_help ;;
1149 --version) func_version ;;
1152 --*=*)
1158 # Separate non-argument short options:
1159 -\?*|-h*|-n*|-v*)
1161 set dummy "$func_split_short_opt_name" "-$func_split_short_opt_arg" ${1+"$@"}
1165 --) break ;;
1166 -*) func_fatal_help "unrecognized option \`$opt'" ;;
1173 # save first non-option argument
1174 if test "$#" -gt 0; then
1179 # preserve --debug
1180 test "$opt_debug" = : || func_append preserve_args " --debug"
1203 # Only execute mode is allowed to have -dlopen flags.
1204 if test -n "$opt_dlopen" && test "$opt_mode" != execute; then
1205 func_error "unrecognized option \`-dlopen'"
1210 # Change the help message to a mode-specific one.
1212 help="Try \`$progname --help --mode=$opt_mode' for more information."
1223 ## ----------- ##
1225 ## ----------- ##
1233 test -f "$1" &&
1234 $SED -e 4q "$1" 2>/dev/null \
1248 if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then
1256 exec 0<&5 5<&-
1306 # Execute tilde-delimited COMMANDS.
1308 # FAIL_CMD may read-access the current command in variable CMD!
1316 func_show_eval "$cmd" "${2-:}"
1325 # FILE even if both FILE and FILE.exe exist: automatic-append-.exe
1371 # if one wasn't chosen via the "--tag" command line option.
1378 if test -n "$available_tags" && test -z "$tagname"; then
1396 …eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'…
1399 # Double-quote args containing other shell metacharacters.
1417 # was found and let the user know that the "--tag" command
1419 if test -z "$tagname"; then
1421 func_fatal_error "specify a tag with \`--tag'"
1452 # $write_libobj - a libtool object file
1461 # Name of the non-PIC object
1487 if test -n "$1"; then
1488 # Unfortunately, winepath does not exit with a non-zero error code, so we
1492 # zero AND non-empty stdout, which explains the odd construction:
1493 func_convert_core_file_wine_to_w32_tmp=`winepath -w "$1" 2>/dev/null`
1494 if test "$?" -eq 0 && test -n "${func_convert_core_file_wine_to_w32_tmp}"; then
1496 $SED -e "$lt_sed_naive_backslashify"`
1520 if test -n "$1"; then
1526 if test -n "$func_convert_core_file_wine_to_w32_result" ; then
1527 if test -z "$func_convert_core_path_wine_to_w32_result"; then
1558 if test -n "$LT_CYGPATH" && test -f "$LT_CYGPATH"; then
1560 if test "$?" -ne 0; then
1566 func_error "LT_CYGPATH is empty or specifies non-existent file: \`$LT_CYGPATH'"
1580 $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"`
1592 if test -z "$2" && test -n "$1" ; then
1610 if test -z "$4" && test -n "$3"; then
1619 $SED -e "$lt_replace_pathsep_chars"`
1703 if test -n "$1"; then
1719 if test -n "$1"; then
1722 func_to_host_file_result=`cygpath -m "$1"`
1736 if test -n "$1"; then
1752 if test -n "$1"; then
1754 func_cygpath -u "$func_convert_core_msys_to_w32_result"
1770 if test -n "$1"; then
1773 func_cygpath -u "$func_convert_core_file_wine_to_w32_result"
1809 if test -z "$to_host_path_cmd"; then
1845 if test -n "$1"; then
1868 if test -n "$1"; then
1872 func_to_host_path_result=`cygpath -m -p "$func_to_host_path_tmp1"`
1888 if test -n "$1"; then
1909 if test -n "$1"; then
1914 func_cygpath -u -p "$func_convert_core_msys_to_w32_result"
1932 if test -n "$1"; then
1939 func_cygpath -u -p "$func_convert_core_path_wine_to_w32_result"
1955 srcfile="$nonopt" # always keep a non-empty value in "srcfile"
1979 # Accept any command-line options.
1981 -o)
1982 test -n "$libobj" && \
1983 func_fatal_error "you cannot specify \`-o' more than once"
1988 -pie | -fpie | -fPIE)
1993 -shared | -static | -prefer-pic | -prefer-non-pic)
1998 -no-suppress)
2003 -Xcompiler)
2008 -Wc,*)
2009 func_stripname '-Wc,' '' "$arg"
2043 func_fatal_error "you must specify an argument for -Xcompile"
2046 func_fatal_error "you must specify a target with \`-o'"
2050 test -z "$libobj" && {
2058 # If the user specifies -o file.o, it is replaced with file.lo
2080 -shared)
2087 -static)
2093 -prefer-pic)
2098 -prefer-non-pic)
2114 test -z "$base_compile" && \
2131 # non-PIC code in shared libraries is not supported
2136 # not support -o with -c
2139 lockfile="$output_obj.lock"
2143 lockfile=
2149 until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
2150 func_echo "Waiting for $lockfile to be removed"
2154 if test -f "$lockfile"; then
2156 *** ERROR, $lockfile exists and contains:
2157 `cat $lockfile 2>/dev/null`
2161 your compiler does not support \`-c' and \`-o' together. If you
2163 avoid parallel builds (make -j) in this platform, or get a better
2170 $ECHO "$srcfile" > "$lockfile"
2174 func_append removelist " $lockfile"
2196 if test -z "$output_obj"; then
2198 func_append command " -o $lobj"
2202 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE'
2205 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
2207 *** ERROR, $lockfile contains:
2208 `cat $lockfile 2>/dev/null`
2215 your compiler does not support \`-c' and \`-o' together. If you
2217 avoid parallel builds (make -j) in this platform, or get a better
2225 if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
2236 # Only build a position-dependent object if we build old libraries.
2245 func_append command " -o $obj"
2254 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
2256 *** ERROR, $lockfile contains:
2257 `cat $lockfile 2>/dev/null`
2264 your compiler does not support \`-c' and \`-o' together. If you
2266 avoid parallel builds (make -j) in this platform, or get a better
2274 if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
2285 removelist=$lockfile
2286 $RM "$lockfile"
2309 "Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
2314 (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
2323 "Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
2329 -o OUTPUT-FILE set the output file name to OUTPUT-FILE
2330 -no-suppress do not suppress compiler output for multiple passes
2331 -prefer-pic try to build PIC objects only
2332 -prefer-non-pic try to build non-PIC objects only
2333 -shared do not build a \`.o' file suitable for static linking
2334 -static only build a \`.o' file suitable for static linking
2335 -Wc,FLAG pass FLAG directly to the compiler
2337 COMPILE-COMMAND is a command to be used in creating a \`standard' object file
2347 "Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]...
2353 -dlopen FILE add the directory containing FILE to the library path
2355 This mode sets the library path environment variable according to \`-dlopen'
2367 "Usage: $progname [OPTION]... --mode=finish [LIBDIR]...
2374 the \`--dry-run' option if you just want to see what would be executed."
2379 "Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND...
2383 INSTALL-COMMAND is the installation command. The first component should be
2386 The following components of INSTALL-COMMAND are treated specially:
2388 -inst-prefix-dir PREFIX-DIR Use PREFIX-DIR as a staging area for installation
2391 BSD-compatible install options are recognized)."
2396 "Usage: $progname [OPTION]... --mode=link LINK-COMMAND...
2401 LINK-COMMAND is a command using the C compiler that you would use to create
2404 The following components of LINK-COMMAND are treated specially:
2406 -all-static do not do any dynamic linking at all
2407 -avoid-version do not add a version suffix if possible
2408 -bindir BINDIR specify path to binaries directory (for systems where
2410 -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
2411 -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
2412 -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
2413 -export-symbols SYMFILE
2415 -export-symbols-regex REGEX
2417 -LLIBDIR search LIBDIR for required installed libraries
2418 -lNAME OUTPUT-FILE requires the installed library libNAME
2419 -module build a library that can dlopened
2420 -no-fast-install disable the fast-install mode
2421 -no-install link a not-installable executable
2422 -no-undefined declare that a library does not refer to external symbols
2423 -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
2424 -objectlist FILE Use a list of object files found in FILE to specify objects
2425 -precious-files-regex REGEX
2427 -release RELEASE specify package release information
2428 -rpath LIBDIR the created library will eventually be installed in LIBDIR
2429 -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
2430 -shared only do dynamic linking of libtool libraries
2431 -shrext SUFFIX override the standard shared library file extension
2432 -static do not do any dynamic linking of uninstalled libtool libraries
2433 -static-libtool-libs
2435 -version-info CURRENT[:REVISION[:AGE]]
2437 -weak LIBNAME declare that the target provides the LIBNAME interface
2438 -Wc,FLAG
2439 -Xcompiler FLAG pass linker-specific FLAG directly to the compiler
2440 -Wl,FLAG
2441 -Xlinker FLAG pass linker-specific FLAG directly to the linker
2442 -XCClinker FLAG pass link-specific FLAG to the compiler driver (CC)
2444 All other options (arguments beginning with \`-') are ignored.
2450 If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
2451 only library objects (\`.lo' files) may be specified, and \`-rpath' is
2454 If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
2457 If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
2463 "Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
2468 (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
2481 $ECHO "Try \`$progname --help' for more information about other modes."
2484 # Now that we've collected a possible --mode arg, show help if necessary
2494 } | sed -n '1p; 2,$s/^Usage:/ or: /p'
2510 s/^Usage:.*--mode=\([^ ]*\) .*/Description of \1 mode:/'
2522 test -z "$cmd" && \
2525 # Handle -dlopen flags immediately.
2527 test -f "$file" \
2546 if test -z "$dlname"; then
2548 test -n "$library_names" && \
2549 func_warning "\`$file' was not linked with \`-export-dynamic'"
2556 if test -f "$dir/$objdir/$dlname"; then
2559 if test ! -f "$dir/$dlname"; then
2572 func_warning "\`-dlopen' is ignored for non-libtool libraries and objects"
2579 test -n "$absdir" && dir="$absdir"
2582 if eval "test -z \"\$$shlibpath_var\""; then
2598 -* | *.la | *.lo ) ;;
2618 if test -n "$shlibpath_var"; then
2637 if test -n "$shlibpath_var"; then
2659 if test -d "$opt"; then
2662 elif test -f "$opt"; then
2674 if test -n "$libs"; then
2675 if test -n "$lt_sysroot"; then
2690 sed -e "${sysroot_cmd} s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \
2691 > $tmpdir/tmp-la
2692 mv -f $tmpdir/tmp-la $lib
2698 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
2700 if test -n "$finish_cmds"; then
2705 if test -n "$finish_eval"; then
2717 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
2718 echo "----------------------------------------------------------------------"
2726 echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
2728 if test -n "$shlibpath_var"; then
2729 echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
2732 if test -n "$runpath_var"; then
2733 echo " - add LIBDIR to the \`$runpath_var' environment variable"
2736 if test -n "$hardcode_libdir_flag_spec"; then
2740 $ECHO " - use the \`$flag' linker flag"
2742 if test -n "$admincmds"; then
2743 $ECHO " - have your system administrator run these commands:$admincmds"
2745 if test -f /etc/ld.so.conf; then
2746 echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
2752 solaris2.[6789]|solaris2.1[0-9])
2760 echo "----------------------------------------------------------------------"
2809 if test -n "$dest"; then
2816 -d) isdir=yes ;;
2817 -f)
2822 -g | -m | -o)
2825 -s)
2826 stripme=" -s"
2829 -*)
2833 if test -n "$prev"; then
2834 if test "x$prev" = x-m && test -n "$install_override_mode"; then
2849 if test -n "$arg2"; then
2855 test -z "$install_prog" && \
2858 test -n "$prev" && \
2861 if test -n "$install_override_mode" && $no_mode; then
2864 func_append install_shared_prog " -m $func_quote_for_eval_result"
2868 if test -z "$files"; then
2869 if test -z "$dest"; then
2881 test -d "$dest" && isdir=yes
2892 test "$#" -gt 1 && \
2896 [\\/]* | [A-Za-z]:[\\/]*) ;;
2956 if test -n "$relink_command"; then
2958 inst_prefix_dir=`$ECHO "$destdir" | $SED -e "s%$libdir\$%%"`
2969 if test -n "$inst_prefix_dir"; then
2971 …relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_…
2983 if test -n "$1"; then
2988 test -n "$relink_command" && srcname="$realname"T
3003 if test -n "$tstripme" && test -n "$striplib"; then
3007 if test "$#" -gt 0; then
3009 # Try `ln -sf' first, because the `ln' binary might depend on
3010 # the symlink we replace! Solaris /bin/ln does not understand -f,
3011 # so we also need to try rm && ln -s.
3015 …&& func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $rea…
3024 # Install the pseudo-library for information purposes.
3031 test -n "$old_library" && func_append staticlibs " $dir/$old_library"
3038 if test -n "$destname"; then
3046 # Deduce the name of the destination old-style object file.
3062 test -n "$destfile" && \
3067 # Deduce the name of the old-style object file.
3077 if test -n "$destname"; then
3091 if test ! -f "$file"; then
3121 test -z "$generated_by_libtool_version" && \
3128 if test -f "$lib"; then
3132 if test -n "$libdir" && test ! -f "$libfile"; then
3142 if test "$fast_install" = no && test -n "$relink_command"; then
3192 $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
3989 *\\ --lt-*)
3993 --lt-*) ;;
4010 file=\`ls -ld \"\$file\" | $SED -n 's/.*-> //p'\`
4011 while test -n \"\$file\"; do
4017 [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
4023 file=\`ls -ld \"\$thisdir/\$file\" | $SED -n 's/.*-> //p'\`
4043 test -n \"\$absdir\" && thisdir=\"\$absdir\"
4048 program=lt-'$outputname'$exeext
4051 if test ! -f \"\$progdir/\$program\" ||
4052 … { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
4055 file=\"\$\$-\$program\"
4057 if test ! -d \"\$progdir\"; then
4066 if test -n \"\$relink_command\"; then
4089 if test -f \"\$progdir/\$program\"; then"
4096 if test -n "$dllsearchpath"; then
4104 …if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath";…
4109 # Some systems cannot cope with colon-terminated $shlibpath_var
4142 /* $cwrappersource - temporary wrapper executable for $objdir/$outputname
4178 /* declarations of non-ANSI functions */
4280 const char *program_name = "libtool-wrapper"; /* in case xstrdup fails */
4307 …if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath";…
4318 if test -n "$dllsearchpath"; then
4333 const char * TARGET_PROGRAM_NAME = "lt-$outputname"; /* hopefully, no .exe */
4344 #define LTWRAPPER_OPTION_PREFIX "--lt-"
4347 static const char *dumpscript_opt = LTWRAPPER_OPTION_PREFIX "dump-script";
4397 have already dealt with, above (inluding dump-script), then
4401 need to make LTWRAPPER_OPTION_PREFIX a configure-time option
4402 or a configure.ac-settable value.
4415 /* The GNU banner must be the first non-error debug message */
4445 /* target_name transforms -- use actual target program name; might have lt- prefix */
4471 /* do NOT want the lt- prefix here, so use actual_cwrapper_name */
4474 /* DO want the lt- prefix here if it exists, so use target_name */
4528 if (rval == -1)
4682 p_len = q - p;
4753 p = tmp_pathspec + strlen (tmp_pathspec) - 1;
4755 p--;
4800 str += len - patlen;
4914 /* some systems can't cope with a ':'-terminated path #' */
4916 while (((len = strlen (new_value)) > 0) && IS_PATH_SEPARATOR (new_value[len-1]))
4918 new_value[len-1] = '\0';
4956 - Space and tab are interpreted as delimiters. They are not treated as
4958 - Unescaped double quotes are removed from the input. Their only effect is
4961 - Backslashes not followed by double quotes are not special.
4962 - But 2*n+1 backslashes followed by a double quote become
4964 \" -> "
4965 \\\" -> \"
4966 \\\\\" -> \\"
5030 for (j = backslashes + 1; j > 0; j--)
5042 for (j = backslashes; j > 0; j--)
5066 $SED -n -e '
5086 case `eval $file_magic_cmd \"\$1\" 2>/dev/null | $SED -e 10q` in
5097 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
5107 # -no-undefined on the libtool link line when we can be certain
5164 single_module="${wl}-single_module"
5167 # We need to know -static, to get the right output filenames.
5171 -shared)
5177 -all-static | -static | -static-libtool-libs)
5179 -all-static)
5180 if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
5183 if test -n "$link_static_flag"; then
5188 -static)
5189 if test -z "$pic_flag" && test -n "$link_static_flag"; then
5194 -static-libtool-libs)
5195 if test -z "$pic_flag" && test -n "$link_static_flag"; then
5209 test -n "$old_archive_from_new_cmds" && build_old_libs=yes
5212 while test "$#" -gt 0; do
5220 if test -n "$prev"; then
5276 test -f "$arg" \
5288 *-*-darwin*)
5305 if test -f "$arg"; then
5312 # A libtool-controlled object.
5322 if test -z "$pic_object" ||
5323 test -z "$non_pic_object" ||
5348 # CHECK ME: I think I busted this. -Ossama
5350 # Preload the old-style object.
5360 # Non-PIC object.
5365 # A standard non-PIC object
5367 if test -z "$pic_object" || test "$pic_object" = none ; then
5377 # Only an error if not doing a dry-run.
5406 release="-$arg"
5413 [\\/]* | [A-Za-z]:[\\/]*) ;;
5415 func_fatal_error "only absolute run-paths are allowed"
5471 fi # test -n "$prev"
5476 -all-static)
5477 if test -n "$link_static_flag"; then
5478 # See comment for -static flag below, for more details.
5485 -allow-undefined)
5487 func_fatal_error "\`-allow-undefined' must not be used because it is the default"
5490 -avoid-version)
5495 -bindir)
5500 -dlopen)
5505 -dlpreopen)
5510 -export-dynamic)
5515 -export-symbols | -export-symbols-regex)
5516 if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
5517 func_fatal_error "more than one -exported-symbols argument is not allowed"
5519 if test "X$arg" = "X-export-symbols"; then
5527 -framework)
5532 -inst-prefix-dir)
5537 # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
5538 # so, if we see these flags be careful not to treat them like -L
5539 -L[A-Z][A-Z]*:*)
5541 no/*-*-irix* | /*-*-irix*)
5549 -L*)
5550 func_stripname "-L" '' "$arg"
5551 if test -z "$func_stripname_result"; then
5552 if test "$#" -gt 0; then
5553 func_fatal_error "require no space between \`-L' and \`$1'"
5555 func_fatal_error "need path for \`-L' option"
5562 [\\/]* | [A-Za-z]:[\\/]*) ;;
5565 test -z "$absdir" && \
5571 *" -L$dir "* | *" $arg "*)
5577 [\\/]* | [A-Za-z]:[\\/]* | =*) func_append deplibs " $arg" ;;
5578 *) func_append deplibs " -L$dir" ;;
5584 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
5601 -l*)
5602 if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
5604 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*)
5608 *-*-os2*)
5610 test "X$arg" = "X-lc" && continue
5612 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
5614 test "X$arg" = "X-lc" && continue
5616 *-*-rhapsody* | *-*-darwin1.[012])
5621 *-*-sco3.2v5* | *-*-sco5v6*)
5623 test "X$arg" = "X-lc" && continue
5625 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
5627 test "X$arg" = "X-lc" && continue
5630 elif test "X$arg" = "X-lc_r"; then
5632 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
5633 # Do not include libc_r directly, use -pthread flag.
5642 -module)
5647 # Tru64 UNIX uses -model [arg] to determine the layout of C++
5649 # Darwin uses the -arch flag to determine output architecture.
5650 -model|-arch|-isysroot|--sysroot)
5658 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
5659 |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
5670 -multi_module)
5671 single_module="${wl}-multi_module"
5675 -no-fast-install)
5680 -no-install)
5682 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*)
5685 func_warning "\`-no-install' is ignored for $host"
5686 func_warning "assuming \`-no-fast-install' instead"
5694 -no-undefined)
5699 -objectlist)
5704 -o) prev=output ;;
5706 -precious-files-regex)
5711 -release)
5716 -rpath)
5721 -R)
5726 -R*)
5727 func_stripname '-R' '' "$arg"
5731 [\\/]* | [A-Za-z]:[\\/]*) ;;
5737 func_fatal_error "only absolute run-paths are allowed"
5747 -shared)
5748 # The effects of -shared are defined in a previous loop.
5752 -shrext)
5757 -static | -static-libtool-libs)
5758 # The effects of -static are defined in a previous loop.
5759 # We used to do the same as -all-static on platforms that
5766 -thread-safe)
5771 -version-info)
5776 -version-number)
5782 -weak)
5787 -Wc,*)
5788 func_stripname '-Wc,' '' "$arg"
5803 -Wl,*)
5804 func_stripname '-Wl,' '' "$arg"
5820 -Xcompiler)
5825 -Xlinker)
5830 -XCClinker)
5835 # -msg_* for osf cc
5836 -msg_*)
5842 # -64, -mips[0-9] enable 64-bit mode for the SGI compiler
5843 # -r[0-9][0-9]* specify processor for the SGI compiler
5844 # -xarch=*, -xtarget=* enable 64-bit mode for the Sun compiler
5845 # +DA*, +DD* enable 64-bit mode for the HP compiler
5846 # -q* compiler args for the IBM compiler
5847 # -m*, -t[45]*, -txscale* architecture-specific flags for GCC
5848 # -F/path path to uninstalled frameworks, gcc on darwin
5849 # -p, -pg, --coverage, -fprofile-* profiling flags for GCC
5851 # -tp=* Portland pgcc target processor selection
5852 # --sysroot=* for sysroot support
5853 # -O*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
5854 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
5855 -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
5856 -O*|-flto*|-fwhopr*|-fuse-linker-plugin)
5866 -* | +*)
5877 # A libtool-controlled object.
5887 if test -z "$pic_object" ||
5888 test -z "$non_pic_object" ||
5913 # CHECK ME: I think I busted this. -Ossama
5915 # Preload the old-style object.
5925 # Non-PIC object.
5930 # A standard non-PIC object
5932 if test -z "$pic_object" || test "$pic_object" = none ; then
5942 # Only an error if not doing a dry-run.
5967 # A libtool-controlled library.
5971 # This library was specified with -dlopen.
5975 # The library was specified with -dlpreopen.
5994 if test -n "$arg"; then
6000 test -n "$prev" && \
6003 if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
6015 if test -n "$shlibpath_var"; then
6046 # that are linked more than once (e.g. -la -lb -la)
6078 notinst_deplibs= # not-installed libtool libraries
6079 notinst_path= # paths that contain not-installed libtool libraries
6088 func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file"
6107 # so that -L comes before libs that need it for instance...
6136 # Ignore non-libtool-libs
6166 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
6167 |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
6182 -l*)
6184 func_warning "\`-l' is ignored for archives/objects"
6187 func_stripname '-l' '' "$deplib"
6198 if test -f "$lib"; then
6251 ;; # -l
6267 -L*)
6273 func_stripname '-L' '' "$deplib"
6288 func_stripname '-L' '' "$deplib"
6293 func_warning "\`-L' is ignored for archives/objects"
6297 ;; # -L
6298 -R*)
6300 func_stripname '-R' '' "$deplib"
6324 # but linking other static libraries is non-portable.
6393 if test "$found" = yes || test -f "$lib"; then :
6422 # Convert "-framework foo" to "foo.ltframework"
6423 if test -n "$inherited_linker_flags"; then
6424 …tmp_inherited_linker_flags=`$ECHO "$inherited_linker_flags" | $SED 's/-framework \([^ $]*\)/\1.ltf…
6432 dependency_libs=`$ECHO " $dependency_libs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
6436 test -n "$dlopen" && func_append dlfiles " $dlopen"
6437 test -n "$dlpreopen" && func_append dlprefiles " $dlpreopen"
6443 if test -z "$libdir"; then
6444 if test -z "$old_library"; then
6469 if test -n "$old_library" &&
6478 if test -z "$linklib"; then
6482 # This library was specified with -dlopen.
6484 if test -z "$libdir"; then
6485 func_fatal_error "cannot -dlopen a convenience library: \`$lib'"
6487 if test -z "$dlname" ||
6503 [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
6506 if test -z "$abs_ladir"; then
6518 if test ! -f "$lt_sysroot$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
6529 if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
6544 # This library was specified with -dlpreopen.
6546 if test -z "$libdir" && test "$linkmode" = prog; then
6547 func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'"
6550 # special handling for platforms with PE-DLLs.
6560 if test -n "$dlname"; then
6568 test -z "$libdir" && \
6575 if test -n "$old_library"; then
6579 test -z "$libdir" && \
6582 elif test -n "$dlname"; then
6591 if test -z "$libdir"; then
6610 if test "$link_all_deplibs" != no || test -z "$library_names" ||
6618 -L*) func_stripname '-L' '' "$deplib"
6642 if test -n "$library_names" &&
6645 test -z "$old_library"; }; then
6647 if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
6656 # Skip directories that are in the system default run-time
6681 test -n "$library_names"; }; }; then
6692 if test -n "$library_names" &&
6693 { test "$use_static_libs" = no || test -z "$old_library"; }; then
6709 # Warn about portability, can't link against -module's on some
6718 if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then
6730 # Skip directories that are in the system default run-time
6752 if test -n "$old_archive_from_expsyms_cmds"; then
6760 if test -n "$dlname"; then
6762 elif test -n "$soname_spec"; then
6766 func_arith $current - $age
6768 versuffix="-$major"
6781 newlib=libimp-$func_stripname_result.a
6784 if test -f "$output_objdir/$soname-def"; then :
6791 if test -f "$output_objdir/$newlib"; then :; else
6798 fi # test -n "$old_archive_from_expsyms_cmds"
6810 *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
6811 *-*-sysv4*uw2*) add_dir="-L$dir" ;;
6812 *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
6813 *-*-unixware7*) add_dir="-L$dir" ;;
6814 *-*-darwin* )
6815 # if the lib is a (non-dlopened) module then we can not
6817 if /usr/bin/file -L $add 2> /dev/null |
6821 if test -z "$old_library" ; then
6828 elif test -n "$old_library"; then
6835 *-*-sunos*) add_shlibpath="$dir" ;;
6837 add_dir="-L$dir"
6838 add="-l$name"
6841 add="-l$name"
6851 add_dir="-L$absdir"
6853 if test -n "$inst_prefix_dir"; then
6856 func_append add_dir " -L$inst_prefix_dir$libdir"
6860 add="-l$name"
6863 add="-l$name"
6875 if test -n "$add_shlibpath"; then
6882 test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
6883 test -n "$add" && compile_deplibs="$add $compile_deplibs"
6885 test -n "$add_dir" && deplibs="$add_dir $deplibs"
6886 test -n "$add" && deplibs="$add $deplibs"
6907 add_dir="-L$libdir"
6908 add="-l$name"
6914 add="-l$name"
6916 if test -n "$inst_prefix_dir" &&
6917 test -f "$inst_prefix_dir$libdir/$linklib" ; then
6924 add_dir="-L$libdir"
6926 if test -n "$inst_prefix_dir"; then
6929 func_append add_dir " -L$inst_prefix_dir$libdir"
6933 add="-l$name"
6937 test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
6938 test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
6940 test -n "$add_dir" && deplibs="$add_dir $deplibs"
6941 test -n "$add" && deplibs="$add $deplibs"
6949 test -n "$old_library" && linklib="$old_library"
6953 compile_deplibs="-l$name -L$dir $compile_deplibs"
6954 finalize_deplibs="-l$name -L$dir $finalize_deplibs"
6972 echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
6973 if test -z "$global_symbol_pipe"; then
6994 if test -n "$dependency_libs" &&
6998 # Extract -R from dependency_libs
7002 -R*) func_stripname '-R' '' "$libdir"
7022 -L*) func_stripname '-L' '' "$deplib"
7040 -L*) path="$deplib" ;;
7048 [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
7051 if test -z "$absdir"; then
7059 *-*-darwin*)
7061 eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
7062 if test -n "$deplibrary_names" ; then
7066 if test -f "$absdir/$objdir/$depdepl" ; then
7068 darwin_install_name=`${OTOOL} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
7069 if test -z "$darwin_install_name"; then
7070 … darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
7072 func_append compiler_flags " ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
7073 func_append linker_flags " -dylib_file ${darwin_install_name}:${depdepl}"
7079 path="-L$absdir/$objdir"
7083 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
7084 test -z "$libdir" && \
7089 path="-L$absdir"
7106 …r_flags "`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
7146 -L*) new_libs="$deplib $new_libs" ;;
7147 -R*) ;;
7161 # using -Wl,-lname, so that libtool does not consider it
7178 -L*)
7199 if test -n "$i" ; then
7214 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
7215 func_warning "\`-dlopen' is ignored for archives"
7219 *\ -l* | *\ -L*)
7220 func_warning "\`-l' and \`-L' are ignored for archives" ;;
7223 test -n "$rpath" && \
7224 func_warning "\`-rpath' is ignored for archives"
7226 test -n "$xrpath" && \
7227 func_warning "\`-R' is ignored for archives"
7229 test -n "$vinfo" && \
7230 func_warning "\`-version-info/-version-number' is ignored for archives"
7232 test -n "$release" && \
7233 func_warning "\`-release' is ignored for archives"
7235 test -n "$export_symbols$export_symbols_regex" && \
7236 func_warning "\`-export-symbols' is ignored for archives"
7245 # Make sure we only generate libraries of the form `libNAME.la'.
7270 if test -n "$objs"; then
7272 …func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$o…
7275 $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
7282 func_warning "\`-dlopen self' is ignored for libtool libraries"
7286 test "$#" -gt 1 && \
7287 func_warning "ignoring multiple \`-rpath's for a libtool library"
7292 if test -z "$rpath"; then
7303 test -n "$vinfo" && \
7304 func_warning "\`-version-info/-version-number' is ignored for convenience libraries"
7306 test -n "$release" && \
7307 func_warning "\`-release' is ignored for convenience libraries"
7316 test -n "$7" && \
7317 func_fatal_help "too many parameters to \`-version-info'"
7329 # There are really only two kinds -- those that
7343 freebsd-aout|freebsd-elf|qnx|sunos)
7369 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]) ;;
7377 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]) ;;
7385 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]) ;;
7392 if test "$age" -gt "$current"; then
7407 func_arith $current - $age
7413 …xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_cu…
7414 verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
7417 freebsd-aout)
7422 freebsd-elf)
7429 func_arith $current - $age
7431 func_arith $current - $age + 1
7443 while test "$loop" -ne 0; do
7444 func_arith $revision - $loop
7446 func_arith $loop - 1
7457 func_arith $current - $age
7463 func_arith $current - $age
7470 while test "$loop" -ne 0; do
7471 func_arith $current - $loop
7473 func_arith $loop - 1
7493 # Use '-' rather than '.', since we only want one
7495 func_arith $current - $age
7497 versuffix="-$major"
7506 if test -z "$vinfo" && test -n "$release"; then
7561 if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
7571 test -n "$removelist" && \
7586 # deplibs=`$ECHO "$deplibs " | $SED "s% -L$path % %g"`
7587 # dependency_libs=`$ECHO "$dependency_libs " | $SED "s% -L$path % %g"`
7590 if test -n "$xrpath"; then
7595 func_append temp_xrpath " -R$func_replace_sysroot_result"
7627 if test -n "$rpath"; then
7629 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*)
7632 *-*-rhapsody* | *-*-darwin1.[012])
7636 *-*-netbsd*)
7639 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
7642 *-*-sco3.2v5* | *-*-sco5v6*)
7645 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
7651 func_append deplibs " -lc"
7664 # release should show up in the -l (ie -lgmp5) so we don't want to
7690 if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
7694 -l*)
7695 func_stripname -l '' "$i"
7705 if test -n "$i" ; then
7710 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
7734 -l*)
7735 func_stripname -l '' "$i"
7738 if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
7748 if test -n "$i" ; then
7753 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
7787 -l*)
7788 func_stripname -l '' "$a_deplib"
7798 if test -n "$a_deplib" ; then
7800 if test -n "$file_magic_glob"; then
7801 libnameglob=`func_echo_all "$libname" | $SED -e $file_magic_glob`
7805 test "$want_nocaseglob" = yes && nocaseglob=`shopt -p nocaseglob`
7808 shopt -s nocaseglob
7809 potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
7812 potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
7816 if ls -lLd "$potent_lib" 2>/dev/null |
7817 $GREP " -> " >/dev/null; then
7826 while test -h "$potlib" 2>/dev/null; do
7827 potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
7829 [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
7834 $SED -e 10q |
7843 if test -n "$a_deplib" ; then
7851 if test -z "$potlib" ; then
7860 # Add a -L argument.
7871 -l*)
7872 func_stripname -l '' "$a_deplib"
7882 if test -n "$a_deplib" ; then
7885 potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
7887 potlib="$potent_lib" # see symlink-check above in file_magic test
7897 if test -n "$a_deplib" ; then
7905 if test -z "$potlib" ; then
7914 # Add a -L argument.
7922 tmp_deplibs=`$ECHO " $deplibs" | $SED 's/ -lc$//; s/ -[LR][^ ]*//g'`
7933 echo "*** Warning: inter-library dependencies are not supported in this platform."
7935 echo "*** Warning: inter-library dependencies are not known to be supported."
7937 echo "*** All declared inter-library dependencies are being dropped."
7950 *-*-rhapsody* | *-*-darwin1.[012])
7952 newdeplibs=`$ECHO " $newdeplibs" | $SED 's/ -lc / System.ltframework /'`
7959 echo "*** Warning: libtool could not satisfy all declared inter-library"
7962 echo "*** application is linked with the -dlopen flag."
7963 if test -z "$global_symbol_pipe"; then
7978 echo "*** The inter-library dependencies that have been dropped here will be"
7980 echo "*** or is declared to -dlopen it."
7986 echo "*** it was explicitly requested with -no-undefined,"
8001 # Time to change all our "foo.ltframework" stuff back to "-framework foo"
8003 *-*-darwin*)
8004 newdeplibs=`$ECHO " $newdeplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
8005 …er_flags=`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
8006 deplibs=`$ECHO " $deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
8015 *" -L$path/$objdir "*) ;;
8018 *" -L$path/$objdir "*)
8019 func_append new_libs " -L$path/$objdir" ;;
8026 -L*)
8037 # All the library-specific variables (install_libdir is set above).
8056 if test -n "$hardcode_libdir_flag_spec"; then
8057 if test -n "$hardcode_libdir_separator"; then
8060 if test -z "$hardcode_libdirs"; then
8076 elif test -n "$runpath_var"; then
8084 if test -n "$hardcode_libdir_separator" &&
8085 test -n "$hardcode_libdirs"; then
8089 if test -n "$runpath_var" && test -n "$perm_rpath"; then
8097 test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
8102 if test -n "$shlibpath"; then
8114 if test -n "$soname_spec"; then
8119 if test -z "$dlname"; then
8131 test -z "$pic_flag" && libobjs=`$ECHO "$libobjs" | $SP2NL | $SED "$lo2o" | $NL2SP`
8135 if test -n "$export_symbols" && test -n "$include_expsyms"; then
8144 if test -n "$export_symbols" && test -z "$export_symbols_regex"; then
8162 if test -z "$export_symbols"; then
8163 if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
8185 && { test "$len" -lt "$max_cmd_len" \
8186 || test "$max_cmd_len" -le -1; }
8190 elif test -n "$nm_file_list_spec"; then
8219 if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then
8220 func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
8226 if test -n "$export_symbols" && test -n "$include_expsyms"; then
8228 test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
8232 if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then
8240 …$opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $outp…
8243 $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
8257 if test -n "$convenience"; then
8258 if test -n "$whole_archive_flag_spec" &&
8260 test -z "$libobjs"; then
8265 if test -n "$whole_archive_flag_spec"; then
8279 if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
8290 if test "$module" = yes && test -n "$module_cmds" ; then
8291 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
8299 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
8311 test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
8326 if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
8341 if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then
8354 …elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; t…
8374 if test -n "$save_libobjs"; then
8376 output=$output_objdir/$output_la-${k}.$objext
8389 test "$len" -lt "$max_cmd_len"; then
8394 if test "$k" -eq 1 ; then
8404 last_robj=$output_objdir/$output_la-${k}.$objext
8407 output=$output_objdir/$output_la-${k}.$objext
8417 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
8420 if test -n "$last_robj"; then
8429 if ${skipped_export-false}; then
8435 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
8437 if test -n "$last_robj"; then
8442 test -n "$save_libobjs" &&
8468 if test -n "$export_symbols_regex" && ${skipped_export-false}; then
8469 func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
8474 if ${skipped_export-false}; then
8475 if test -n "$export_symbols" && test -n "$include_expsyms"; then
8477 test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
8481 if test -n "$orig_export_symbols"; then
8489 …$opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $outp…
8492 … $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
8500 if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
8508 if test "$module" = yes && test -n "$module_cmds" ; then
8509 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
8515 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
8523 if test -n "$delfiles"; then
8529 if test -n "$dlprefiles"; then
8565 if test -n "$convenience"; then
8566 if test -z "$whole_archive_flag_spec"; then
8581 # If -module or -export-dynamic was specified, set the dlname.
8590 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
8591 func_warning "\`-dlopen' is ignored for objects"
8595 *\ -l* | *\ -L*)
8596 func_warning "\`-l' and \`-L' are ignored for objects" ;;
8599 test -n "$rpath" && \
8600 func_warning "\`-rpath' is ignored for objects"
8602 test -n "$xrpath" && \
8603 func_warning "\`-R' is ignored for objects"
8605 test -n "$vinfo" && \
8606 func_warning "\`-version-info' is ignored for objects"
8608 test -n "$release" && \
8609 func_warning "\`-release' is ignored for objects"
8613 test -n "$objs$old_deplibs" && \
8614 func_fatal_error "cannot build library object \`$output' from non-libtool objects"
8630 # single-version convenience libraries. Whenever we create
8631 # different ones for PIC/non-PIC, this we'll have to duplicate
8636 # -Wl from whole_archive_flag_spec and hope we can get by with
8640 if test -n "$convenience"; then
8641 if test -n "$whole_archive_flag_spec"; then
8656 # Create the old-style object.
8663 if test -z "$libobj"; then
8664 if test -n "$gentop"; then
8672 if test -n "$gentop"; then
8683 if test -n "$pic_flag" || test "$pic_mode" != default; then
8690 if test -n "$gentop"; then
8702 test -n "$vinfo" && \
8703 func_warning "\`-version-info' is ignored for programs"
8705 test -n "$release" && \
8706 func_warning "\`-release' is ignored for programs"
8715 *-*-rhapsody* | *-*-darwin1.[012])
8717 compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's/ -lc / System.ltframework /'`
8718 finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's/ -lc / System.ltframework /'`
8723 *-*-darwin*)
8727 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
8729 func_append compile_command " ${wl}-bind_at_load"
8730 func_append finalize_command " ${wl}-bind_at_load"
8734 # Time to change all our "foo.ltframework" stuff back to "-framework foo"
8735 compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
8736 finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
8746 *" -L$path/$objdir "*) ;;
8749 *" -L$path/$objdir "*)
8750 func_append new_libs " -L$path/$objdir" ;;
8757 -L*)
8772 if test -n "$rpath$xrpath"; then
8775 # This is the magic to use -rpath.
8787 if test -n "$hardcode_libdir_flag_spec"; then
8788 if test -n "$hardcode_libdir_separator"; then
8789 if test -z "$hardcode_libdirs"; then
8805 elif test -n "$runpath_var"; then
8812 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
8813 testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'`
8828 if test -n "$hardcode_libdir_separator" &&
8829 test -n "$hardcode_libdirs"; then
8838 if test -n "$hardcode_libdir_flag_spec"; then
8839 if test -n "$hardcode_libdir_separator"; then
8840 if test -z "$hardcode_libdirs"; then
8856 elif test -n "$runpath_var"; then
8864 if test -n "$hardcode_libdir_separator" &&
8865 test -n "$hardcode_libdirs"; then
8871 if test -n "$libobjs" && test "$build_old_libs" = yes; then
8880 if test -n "$prelink_cmds"; then
8910 if test -n "$postlink_cmds"; then
8912 …postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUT…
8917 if test -f "$output_objdir/${outputname}S.${objext}"; then
8924 if test -n "$compile_shlibpath$finalize_shlibpath"; then
8927 if test -n "$finalize_shlibpath"; then
8933 if test -n "$runpath_var"; then
8934 if test -n "$perm_rpath"; then
8942 if test -n "$finalize_perm_rpath"; then
8962 if test -n "$postlink_cmds"; then
8964 …postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUT…
8997 $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname
9001 if test -n "$postlink_cmds"; then
9003 …stlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g…
9011 if test -n "$relink_command"; then
9014 if eval test -z \"\${$var+set}\"; then
9015 …relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relin…
9016 elif eval var_value=\$$var; test -z "$var_value"; then
9048 cwrappersource="$output_path/$objdir/lt-$output_name.c"
9056 # because it contains $host paths and files. If cross-
9060 $LTCC $LTCFLAGS -o $cwrapper $cwrappersource
9071 $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result
9090 # See if we need to build an old-fashioned archive.
9103 if test "$preload" = yes && test -f "$symfileobj"; then
9110 if test -n "$addlibs"; then
9119 if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
9124 if test -n "$dlprefiles"; then
9142 done | sort | sort -uc >/dev/null 2>&1); then
9162 newobj=lt$counter-$objbase
9167 *) if test ! -f "$gentop/$newobj"; then break; fi ;;
9183 if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
9185 elif test -n "$archiver_list_spec"; then
9219 if test "$len" -lt "$max_cmd_len"; then
9227 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
9245 test -n "$generated" && \
9257 if eval test -z \"\${$var+set}\"; then
9258 …relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relin…
9259 elif eval var_value=\$$var; test -z "$var_value"; then
9267 …relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefi…
9277 if test -z "$install_libdir"; then
9289 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result`
9290 test -z "$libdir" && \
9294 -L*)
9295 func_stripname -L '' "$deplib"
9297 func_append newdependency_libs " -L$func_replace_sysroot_result"
9299 -R*)
9300 func_stripname -R '' "$deplib"
9302 func_append newdependency_libs " -R$func_replace_sysroot_result"
9315 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
9316 test -z "$libdir" && \
9328 # Only pass preopened files to the pseudo-archive (for
9334 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
9335 test -z "$libdir" && \
9346 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
9355 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
9365 # systems that can't hard-code library paths into their executables
9368 # libtool variables, so we have to hard-code the OSs to which it
9375 # If a -bindir argument was supplied, place the dll there.
9387 # $outputname - a libtool library file
9419 # Should we warn about portability when linking against -modules?
9463 -f) func_append RM " $arg"; rmforce=yes ;;
9464 -*) func_append RM " $arg" ;;
9469 test -z "$RM" && \
9494 # Don't error if the file doesn't exist and rm -f was used.
9495 if { test -L "$file"; } >/dev/null 2>&1 ||
9496 { test -h "$file"; } >/dev/null 2>&1 ||
9497 test -f "$file"; then
9499 elif test -d "$file"; then
9518 test -n "$old_library" && func_append rmfiles " $odir/$old_library"
9524 *) test -n "$dlname" && func_append rmfiles " $odir/$dlname" ;;
9526 test -n "$libdir" && func_append rmfiles " $odir/$name $odir/${name}i"
9529 if test -n "$library_names"; then
9534 if test -n "$old_library"; then
9552 if test -n "$pic_object" &&
9557 # Add non-PIC object to the list of files to remove.
9558 if test -n "$non_pic_object" &&
9594 if test "$fast_install" = yes && test -n "$relink_command"; then
9595 func_append rmfiles " $odir/lt-$name"
9598 func_append rmfiles " $odir/lt-${noexename}.c"
9609 if test -d "$dir"; then
9620 test -z "$opt_mode" && {
9625 test -z "$exec_cmd" && \
9628 if test -n "$exec_cmd"; then
9643 # time on that platform, so we default to a shared-only configuration.
9644 # If a disable-shared tag is given, we'll fallback to a static-only
9645 # configuration. But we'll never go from static-only to shared-only.
9647 # ### BEGIN LIBTOOL TAG CONFIG: disable-shared
9650 # ### END LIBTOOL TAG CONFIG: disable-shared
9652 # ### BEGIN LIBTOOL TAG CONFIG: disable-static
9654 # ### END LIBTOOL TAG CONFIG: disable-static
9657 # mode:shell-script
9658 # sh-indentation:2