4809
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4810
$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4811
if ${lt_cv_to_host_file_cmd+:} false; then :
4812
$as_echo_n "(cached) " >&6
4817
*-*-mingw* ) # actually msys
4818
lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4821
lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4823
* ) # otherwise, assume *nix
4824
lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4830
*-*-mingw* ) # actually msys
4831
lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4834
lt_cv_to_host_file_cmd=func_convert_file_noop
4836
* ) # otherwise, assume *nix
4837
lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4841
* ) # unhandled hosts (and "normal" native builds)
4842
lt_cv_to_host_file_cmd=func_convert_file_noop
4848
to_host_file_cmd=$lt_cv_to_host_file_cmd
4849
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4850
$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4856
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4857
$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4858
if ${lt_cv_to_tool_file_cmd+:} false; then :
4859
$as_echo_n "(cached) " >&6
4861
#assume ordinary cross tools, or native build.
4862
lt_cv_to_tool_file_cmd=func_convert_file_noop
4866
*-*-mingw* ) # actually msys
4867
lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4875
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4876
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4877
$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4786
4883
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4787
4884
$as_echo_n "checking for $LD option to reload object files... " >&6; }
4788
if test "${lt_cv_ld_reload_flag+set}" = set; then :
4885
if ${lt_cv_ld_reload_flag+:} false; then :
4789
4886
$as_echo_n "(cached) " >&6
4791
4888
lt_cv_ld_reload_flag='-r'
5140
if test -n "$ac_tool_prefix"; then
5141
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5142
set dummy ${ac_tool_prefix}ar; ac_word=$2
5143
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5144
$as_echo_n "checking for $ac_word... " >&6; }
5145
if test "${ac_cv_prog_AR+set}" = set; then :
5267
if test -n "$ac_tool_prefix"; then
5268
# Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5269
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5270
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5271
$as_echo_n "checking for $ac_word... " >&6; }
5272
if ${ac_cv_prog_DLLTOOL+:} false; then :
5273
$as_echo_n "(cached) " >&6
5275
if test -n "$DLLTOOL"; then
5276
ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5278
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5282
test -z "$as_dir" && as_dir=.
5283
for ac_exec_ext in '' $ac_executable_extensions; do
5284
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5285
ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5286
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5295
DLLTOOL=$ac_cv_prog_DLLTOOL
5296
if test -n "$DLLTOOL"; then
5297
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5298
$as_echo "$DLLTOOL" >&6; }
5300
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5301
$as_echo "no" >&6; }
5306
if test -z "$ac_cv_prog_DLLTOOL"; then
5307
ac_ct_DLLTOOL=$DLLTOOL
5308
# Extract the first word of "dlltool", so it can be a program name with args.
5309
set dummy dlltool; ac_word=$2
5310
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5311
$as_echo_n "checking for $ac_word... " >&6; }
5312
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5313
$as_echo_n "(cached) " >&6
5315
if test -n "$ac_ct_DLLTOOL"; then
5316
ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5318
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5322
test -z "$as_dir" && as_dir=.
5323
for ac_exec_ext in '' $ac_executable_extensions; do
5324
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5325
ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5326
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5335
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5336
if test -n "$ac_ct_DLLTOOL"; then
5337
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5338
$as_echo "$ac_ct_DLLTOOL" >&6; }
5340
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5341
$as_echo "no" >&6; }
5344
if test "x$ac_ct_DLLTOOL" = x; then
5347
case $cross_compiling:$ac_tool_warned in
5349
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5350
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5351
ac_tool_warned=yes ;;
5353
DLLTOOL=$ac_ct_DLLTOOL
5356
DLLTOOL="$ac_cv_prog_DLLTOOL"
5359
test -z "$DLLTOOL" && DLLTOOL=dlltool
5370
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5371
$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5372
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5373
$as_echo_n "(cached) " >&6
5375
lt_cv_sharedlib_from_linklib_cmd='unknown'
5378
cygwin* | mingw* | pw32* | cegcc*)
5379
# two different shell functions defined in ltmain.sh
5380
# decide which to use based on capabilities of $DLLTOOL
5381
case `$DLLTOOL --help 2>&1` in
5382
*--identify-strict*)
5383
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5386
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5391
# fallback: assume linklib IS sharedlib
5392
lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5397
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5398
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5399
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5400
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5409
if test -n "$ac_tool_prefix"; then
5412
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5413
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5414
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5415
$as_echo_n "checking for $ac_word... " >&6; }
5416
if ${ac_cv_prog_AR+:} false; then :
5146
5417
$as_echo_n "(cached) " >&6
5148
5419
if test -n "$AR"; then
5956
6366
need_locks="$enable_libtool_lock"
6368
if test -n "$ac_tool_prefix"; then
6369
# Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6370
set dummy ${ac_tool_prefix}mt; ac_word=$2
6371
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6372
$as_echo_n "checking for $ac_word... " >&6; }
6373
if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6374
$as_echo_n "(cached) " >&6
6376
if test -n "$MANIFEST_TOOL"; then
6377
ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6379
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6383
test -z "$as_dir" && as_dir=.
6384
for ac_exec_ext in '' $ac_executable_extensions; do
6385
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6386
ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6387
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6396
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6397
if test -n "$MANIFEST_TOOL"; then
6398
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6399
$as_echo "$MANIFEST_TOOL" >&6; }
6401
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6402
$as_echo "no" >&6; }
6407
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6408
ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6409
# Extract the first word of "mt", so it can be a program name with args.
6410
set dummy mt; ac_word=$2
6411
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6412
$as_echo_n "checking for $ac_word... " >&6; }
6413
if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6414
$as_echo_n "(cached) " >&6
6416
if test -n "$ac_ct_MANIFEST_TOOL"; then
6417
ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6419
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6423
test -z "$as_dir" && as_dir=.
6424
for ac_exec_ext in '' $ac_executable_extensions; do
6425
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6426
ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6427
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6436
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6437
if test -n "$ac_ct_MANIFEST_TOOL"; then
6438
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6439
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6441
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6442
$as_echo "no" >&6; }
6445
if test "x$ac_ct_MANIFEST_TOOL" = x; then
6448
case $cross_compiling:$ac_tool_warned in
6450
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6451
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6452
ac_tool_warned=yes ;;
6454
MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6457
MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6460
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6461
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6462
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6463
if ${lt_cv_path_mainfest_tool+:} false; then :
6464
$as_echo_n "(cached) " >&6
6466
lt_cv_path_mainfest_tool=no
6467
echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6468
$MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6469
cat conftest.err >&5
6470
if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6471
lt_cv_path_mainfest_tool=yes
6475
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6476
$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6477
if test "x$lt_cv_path_mainfest_tool" != xyes; then
5959
6486
case $host_os in
5960
6487
rhapsody* | darwin*)
8495
9106
# Microsoft Visual C++.
8496
9107
# hardcode_libdir_flag_spec is actually meaningless, as there is
8497
9108
# no search path for DLLs.
8498
hardcode_libdir_flag_spec=' '
8499
allow_undefined_flag=unsupported
8500
# Tell ltmain to make .lib files, not .a files.
8502
# Tell ltmain to make .dll files, not .so files.
8504
# FIXME: Setting linknames here is a bad hack.
8505
archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8506
# The linker will automatically build a .lib file if we build a DLL.
8507
old_archive_from_new_cmds='true'
8508
# FIXME: Should let the user specify the lib program.
8509
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8510
fix_srcfile_path='`cygpath -w "$srcfile"`'
8511
enable_shared_with_static_runtimes=yes
9109
case $cc_basename in
9112
hardcode_libdir_flag_spec=' '
9113
allow_undefined_flag=unsupported
9114
always_export_symbols=yes
9116
# Tell ltmain to make .lib files, not .a files.
9118
# Tell ltmain to make .dll files, not .so files.
9120
# FIXME: Setting linknames here is a bad hack.
9121
archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9122
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9123
sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9125
sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9127
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9129
# The linker will not automatically build a static lib if we build a DLL.
9130
# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9131
enable_shared_with_static_runtimes=yes
9132
exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9133
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9135
old_postinstall_cmds='chmod 644 $oldlib'
9136
postlink_cmds='lt_outputfile="@OUTPUT@"~
9137
lt_tool_outputfile="@TOOL_OUTPUT@"~
9138
case $lt_outputfile in
9141
lt_outputfile="$lt_outputfile.exe"
9142
lt_tool_outputfile="$lt_tool_outputfile.exe"
9145
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9146
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9147
$RM "$lt_outputfile.manifest";
9151
# Assume MSVC wrapper
9152
hardcode_libdir_flag_spec=' '
9153
allow_undefined_flag=unsupported
9154
# Tell ltmain to make .lib files, not .a files.
9156
# Tell ltmain to make .dll files, not .so files.
9158
# FIXME: Setting linknames here is a bad hack.
9159
archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9160
# The linker will automatically build a .lib file if we build a DLL.
9161
old_archive_from_new_cmds='true'
9162
# FIXME: Should let the user specify the lib program.
9163
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9164
enable_shared_with_static_runtimes=yes
8514
9169
darwin* | rhapsody*)
9435
10095
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10098
dynamic_linker='Win32 ld.exe'
10103
libname_spec='$name'
10104
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10105
library_names_spec='${libname}.dll.lib'
10109
sys_lib_search_path_spec=
10112
for lt_path in $LIB
10115
# Let DOS variable expansion print the short 8.3 style file name.
10116
lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10117
sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10120
# Convert to MSYS style.
10121
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10124
# Convert to unix form, then to dos form, then back to unix form
10125
# but this time dos style (no spaces!) so that the unix form looks
10126
# like /cygdrive/c/PROGRA~1:/cygdr...
10127
sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10128
sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10129
sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10132
sys_lib_search_path_spec="$LIB"
10133
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10134
# It is most probably a Windows format PATH.
10135
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10137
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10139
# FIXME: find the short name or the path components, as spaces are
10140
# common. (e.g. "Program Files" -> "PROGRA~1")
10144
# DLL is installed to $(libdir)/../bin by postinstall_cmds
10145
postinstall_cmds='base_file=`basename \${file}`~
10146
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10147
dldir=$destdir/`dirname \$dlpath`~
10148
test -d \$dldir || mkdir -p \$dldir~
10149
$install_prog $dir/$dlname \$dldir/$dlname'
10150
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10151
dlpath=$dir/\$dldll~
10153
shlibpath_overrides_runpath=yes
10154
dynamic_linker='Win32 link.exe'
10158
# Assume MSVC wrapper
9441
10159
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10160
dynamic_linker='Win32 ld.exe'
9444
dynamic_linker='Win32 ld.exe'
9445
10163
# FIXME: first we should search . and the directory the executable is in
9446
10164
shlibpath_var=PATH
14849
15638
# if finds mixed CR/LF and LF-only lines. Since sed operates in
14850
15639
# text mode, it properly converts lines to CR/LF. This bash problem
14851
15640
# is reportedly fixed, but why not run on old versions too?
14852
sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14853
|| (rm -f "$cfgfile"; exit 1)
14857
cat << \_LT_EOF >> "$cfgfile"
14859
# func_dirname file append nondir_replacement
14860
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14861
# otherwise set result to NONDIR_REPLACEMENT.
14865
*/*) func_dirname_result="${1%/*}${2}" ;;
14866
* ) func_dirname_result="${3}" ;;
14870
# func_basename file
14873
func_basename_result="${1##*/}"
14876
# func_dirname_and_basename file append nondir_replacement
14877
# perform func_basename and func_dirname in a single function
14879
# dirname: Compute the dirname of FILE. If nonempty,
14880
# add APPEND to the result, otherwise set result
14881
# to NONDIR_REPLACEMENT.
14882
# value returned in "$func_dirname_result"
14883
# basename: Compute filename of FILE.
14884
# value retuned in "$func_basename_result"
14885
# Implementation must be kept synchronized with func_dirname
14886
# and func_basename. For efficiency, we do not delegate to
14887
# those functions but instead duplicate the functionality here.
14888
func_dirname_and_basename ()
14891
*/*) func_dirname_result="${1%/*}${2}" ;;
14892
* ) func_dirname_result="${3}" ;;
14894
func_basename_result="${1##*/}"
14897
# func_stripname prefix suffix name
14898
# strip PREFIX and SUFFIX off of NAME.
14899
# PREFIX and SUFFIX must not contain globbing or regex special
14900
# characters, hashes, percent signs, but SUFFIX may contain a leading
14901
# dot (in which case that matches only a dot).
14904
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14905
# positional parameters, so assign one to ordinary parameter first.
14906
func_stripname_result=${3}
14907
func_stripname_result=${func_stripname_result#"${1}"}
14908
func_stripname_result=${func_stripname_result%"${2}"}
14914
func_opt_split_opt=${1%%=*}
14915
func_opt_split_arg=${1#*=}
14922
*.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14923
*) func_lo2o_result=${1} ;;
14927
# func_xform libobj-or-source
14930
func_xform_result=${1%.*}.lo
14933
# func_arith arithmetic-term...
14936
func_arith_result=$(( $* ))
14940
# STRING may not start with a hyphen.
14943
func_len_result=${#1}
14948
*) # Bourne compatible functions.
14949
cat << \_LT_EOF >> "$cfgfile"
14951
# func_dirname file append nondir_replacement
14952
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14953
# otherwise set result to NONDIR_REPLACEMENT.
14956
# Extract subdirectory from the argument.
14957
func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
14958
if test "X$func_dirname_result" = "X${1}"; then
14959
func_dirname_result="${3}"
14961
func_dirname_result="$func_dirname_result${2}"
14965
# func_basename file
14968
func_basename_result=`$ECHO "${1}" | $SED "$basename"`
14972
# func_stripname prefix suffix name
14973
# strip PREFIX and SUFFIX off of NAME.
14974
# PREFIX and SUFFIX must not contain globbing or regex special
14975
# characters, hashes, percent signs, but SUFFIX may contain a leading
14976
# dot (in which case that matches only a dot).
14977
# func_strip_suffix prefix name
14981
.*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14982
*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
14987
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14988
my_sed_long_arg='1s/^-[^=]*=//'
14993
func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
14994
func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
15000
func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
15003
# func_xform libobj-or-source
15006
func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
15009
# func_arith arithmetic-term...
15012
func_arith_result=`expr "$@"`
15016
# STRING may not start with a hyphen.
15019
func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15025
case $lt_shell_append in
15027
cat << \_LT_EOF >> "$cfgfile"
15029
# func_append var value
15030
# Append VALUE to the end of shell variable VAR.
15038
cat << \_LT_EOF >> "$cfgfile"
15040
# func_append var value
15041
# Append VALUE to the end of shell variable VAR.
15052
sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15053
|| (rm -f "$cfgfile"; exit 1)
15055
mv -f "$cfgfile" "$ofile" ||
15641
sed '$q' "$ltmain" >> "$cfgfile" \
15642
|| (rm -f "$cfgfile"; exit 1)
15644
if test x"$xsi_shell" = xyes; then
15645
sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15649
\ */*) func_dirname_result="${1%/*}${2}" ;;\
15650
\ * ) func_dirname_result="${3}" ;;\
15652
} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15653
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15654
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15655
test 0 -eq $? || _lt_function_replace_fail=:
15658
sed -e '/^func_basename ()$/,/^} # func_basename /c\
15661
\ func_basename_result="${1##*/}"\
15662
} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15663
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15664
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15665
test 0 -eq $? || _lt_function_replace_fail=:
15668
sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15669
func_dirname_and_basename ()\
15672
\ */*) func_dirname_result="${1%/*}${2}" ;;\
15673
\ * ) func_dirname_result="${3}" ;;\
15675
\ func_basename_result="${1##*/}"\
15676
} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15677
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15678
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15679
test 0 -eq $? || _lt_function_replace_fail=:
15682
sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15685
\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15686
\ # positional parameters, so assign one to ordinary parameter first.\
15687
\ func_stripname_result=${3}\
15688
\ func_stripname_result=${func_stripname_result#"${1}"}\
15689
\ func_stripname_result=${func_stripname_result%"${2}"}\
15690
} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15691
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15692
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15693
test 0 -eq $? || _lt_function_replace_fail=:
15696
sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15697
func_split_long_opt ()\
15699
\ func_split_long_opt_name=${1%%=*}\
15700
\ func_split_long_opt_arg=${1#*=}\
15701
} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15702
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15703
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15704
test 0 -eq $? || _lt_function_replace_fail=:
15707
sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15708
func_split_short_opt ()\
15710
\ func_split_short_opt_arg=${1#??}\
15711
\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15712
} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15713
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15714
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15715
test 0 -eq $? || _lt_function_replace_fail=:
15718
sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15722
\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15723
\ *) func_lo2o_result=${1} ;;\
15725
} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15726
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15727
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15728
test 0 -eq $? || _lt_function_replace_fail=:
15731
sed -e '/^func_xform ()$/,/^} # func_xform /c\
15734
func_xform_result=${1%.*}.lo\
15735
} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15736
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15737
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15738
test 0 -eq $? || _lt_function_replace_fail=:
15741
sed -e '/^func_arith ()$/,/^} # func_arith /c\
15744
func_arith_result=$(( $* ))\
15745
} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15746
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15747
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15748
test 0 -eq $? || _lt_function_replace_fail=:
15751
sed -e '/^func_len ()$/,/^} # func_len /c\
15754
func_len_result=${#1}\
15755
} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15756
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15757
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15758
test 0 -eq $? || _lt_function_replace_fail=:
15762
if test x"$lt_shell_append" = xyes; then
15763
sed -e '/^func_append ()$/,/^} # func_append /c\
15766
eval "${1}+=\\${2}"\
15767
} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15768
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15769
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15770
test 0 -eq $? || _lt_function_replace_fail=:
15773
sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15774
func_append_quoted ()\
15776
\ func_quote_for_eval "${2}"\
15777
\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15778
} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15779
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15780
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15781
test 0 -eq $? || _lt_function_replace_fail=:
15784
# Save a `func_append' function call where possible by direct use of '+='
15785
sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15786
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15787
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15788
test 0 -eq $? || _lt_function_replace_fail=:
15790
# Save a `func_append' function call even when '+=' is not available
15791
sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15792
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15793
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15794
test 0 -eq $? || _lt_function_replace_fail=:
15797
if test x"$_lt_function_replace_fail" = x":"; then
15798
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15799
$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15803
mv -f "$cfgfile" "$ofile" ||
15056
15804
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15057
15805
chmod +x "$ofile"