529
545
# Sed expression to map a string onto a valid variable name.
530
546
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534
# Check that we are running under the correct shell.
535
548
SHELL=${CONFIG_SHELL-/bin/sh}
539
# Remove one level of quotation (which was required for Make).
540
ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
545
if test "X$1" = X--no-reexec; then
546
# Discard the --no-reexec flag, and continue.
548
elif test "X$1" = X--fallback-echo; then
549
# Avoid inline document here, it may be left over
551
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
552
# Yippee, $ECHO works!
555
# Restart under the correct shell.
556
exec $SHELL "$0" --no-reexec ${1+"$@"}
559
if test "X$1" = X--fallback-echo; then
560
# used as fallback echo
568
# The HP-UX ksh and POSIX shell print the target directory to stdout
570
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
572
if test -z "$lt_ECHO"; then
573
if test "X${echo_test_string+set}" != Xset; then
574
# find a string as large as possible, as long as the shell can cope with it
575
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
576
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
577
if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
578
{ test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
585
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
586
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
587
test "X$echo_testing_string" = "X$echo_test_string"; then
590
# The Solaris, AIX, and Digital Unix default echo programs unquote
591
# backslashes. This makes it impossible to quote backslashes using
592
# echo "$something" | sed 's/\\/\\\\/g'
594
# So, first we look for a working echo in the user's PATH.
596
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
597
for dir in $PATH /usr/ucb; do
599
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
600
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
601
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
602
test "X$echo_testing_string" = "X$echo_test_string"; then
609
if test "X$ECHO" = Xecho; then
610
# We didn't find a better echo, so look for alternatives.
611
if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
612
echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
613
test "X$echo_testing_string" = "X$echo_test_string"; then
614
# This shell has a builtin print -r that does the trick.
616
elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
617
test "X$CONFIG_SHELL" != X/bin/ksh; then
618
# If we have ksh, try running configure again with it.
619
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
620
export ORIGINAL_CONFIG_SHELL
621
CONFIG_SHELL=/bin/ksh
623
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
627
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
628
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
629
test "X$echo_testing_string" = "X$echo_test_string"; then
632
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
633
test "X$echo_testing_string" = 'X\t' &&
634
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
635
test "X$echo_testing_string" = "X$echo_test_string"; then
636
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
638
SHELL="$CONFIG_SHELL"
640
ECHO="$CONFIG_SHELL $0 --fallback-echo"
641
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642
test "X$echo_testing_string" = 'X\t' &&
643
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644
test "X$echo_testing_string" = "X$echo_test_string"; then
645
ECHO="$CONFIG_SHELL $0 --fallback-echo"
647
# maybe with a smaller string...
650
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
651
if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
658
if test "$prev" != 'sed 50q "$0"'; then
659
echo_test_string=`eval $prev`
660
export echo_test_string
661
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
663
# Oops. We lost completely, so just stick with echo.
672
# Copy echo and quote the copy suitably for passing to libtool from
673
# the Makefile, instead of quoting the original, which is used later.
675
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
676
lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
681
550
as_awk_strverscmp='
682
551
# Use only awk features that work with 7th edition Unix awk (1978).
683
552
# My, what an old awk you have, Mr. Solaris!
5390
if test -n "$ac_tool_prefix"; then
5391
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5392
set dummy ${ac_tool_prefix}ar; ac_word=$2
5393
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5394
$as_echo_n "checking for $ac_word... " >&6; }
5395
if test "${ac_cv_prog_AR+set}" = set; then :
5525
if test -n "$ac_tool_prefix"; then
5526
# Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5527
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5528
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5529
$as_echo_n "checking for $ac_word... " >&6; }
5530
if ${ac_cv_prog_DLLTOOL+:} false; then :
5531
$as_echo_n "(cached) " >&6
5533
if test -n "$DLLTOOL"; then
5534
ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5536
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5540
test -z "$as_dir" && as_dir=.
5541
for ac_exec_ext in '' $ac_executable_extensions; do
5542
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5543
ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5544
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5553
DLLTOOL=$ac_cv_prog_DLLTOOL
5554
if test -n "$DLLTOOL"; then
5555
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5556
$as_echo "$DLLTOOL" >&6; }
5558
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5559
$as_echo "no" >&6; }
5564
if test -z "$ac_cv_prog_DLLTOOL"; then
5565
ac_ct_DLLTOOL=$DLLTOOL
5566
# Extract the first word of "dlltool", so it can be a program name with args.
5567
set dummy dlltool; ac_word=$2
5568
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5569
$as_echo_n "checking for $ac_word... " >&6; }
5570
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5571
$as_echo_n "(cached) " >&6
5573
if test -n "$ac_ct_DLLTOOL"; then
5574
ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5576
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5580
test -z "$as_dir" && as_dir=.
5581
for ac_exec_ext in '' $ac_executable_extensions; do
5582
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5583
ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5584
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5593
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5594
if test -n "$ac_ct_DLLTOOL"; then
5595
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5596
$as_echo "$ac_ct_DLLTOOL" >&6; }
5598
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5599
$as_echo "no" >&6; }
5602
if test "x$ac_ct_DLLTOOL" = x; then
5605
case $cross_compiling:$ac_tool_warned in
5607
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5608
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5609
ac_tool_warned=yes ;;
5611
DLLTOOL=$ac_ct_DLLTOOL
5614
DLLTOOL="$ac_cv_prog_DLLTOOL"
5617
test -z "$DLLTOOL" && DLLTOOL=dlltool
5628
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5629
$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5630
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5631
$as_echo_n "(cached) " >&6
5633
lt_cv_sharedlib_from_linklib_cmd='unknown'
5636
cygwin* | mingw* | pw32* | cegcc*)
5637
# two different shell functions defined in ltmain.sh
5638
# decide which to use based on capabilities of $DLLTOOL
5639
case `$DLLTOOL --help 2>&1` in
5640
*--identify-strict*)
5641
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5644
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5649
# fallback: assume linklib IS sharedlib
5650
lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5655
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5656
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5657
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5658
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5667
if test -n "$ac_tool_prefix"; then
5670
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5671
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5672
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5673
$as_echo_n "checking for $ac_word... " >&6; }
5674
if ${ac_cv_prog_AR+:} false; then :
5396
5675
$as_echo_n "(cached) " >&6
5398
5677
if test -n "$AR"; then
6194
6610
need_locks="$enable_libtool_lock"
6612
if test -n "$ac_tool_prefix"; then
6613
# Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6614
set dummy ${ac_tool_prefix}mt; ac_word=$2
6615
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6616
$as_echo_n "checking for $ac_word... " >&6; }
6617
if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6618
$as_echo_n "(cached) " >&6
6620
if test -n "$MANIFEST_TOOL"; then
6621
ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6623
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6627
test -z "$as_dir" && as_dir=.
6628
for ac_exec_ext in '' $ac_executable_extensions; do
6629
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6630
ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6631
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6640
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6641
if test -n "$MANIFEST_TOOL"; then
6642
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6643
$as_echo "$MANIFEST_TOOL" >&6; }
6645
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6646
$as_echo "no" >&6; }
6651
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6652
ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6653
# Extract the first word of "mt", so it can be a program name with args.
6654
set dummy mt; ac_word=$2
6655
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6656
$as_echo_n "checking for $ac_word... " >&6; }
6657
if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6658
$as_echo_n "(cached) " >&6
6660
if test -n "$ac_ct_MANIFEST_TOOL"; then
6661
ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6663
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6667
test -z "$as_dir" && as_dir=.
6668
for ac_exec_ext in '' $ac_executable_extensions; do
6669
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6670
ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6671
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6680
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6681
if test -n "$ac_ct_MANIFEST_TOOL"; then
6682
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6683
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6685
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6686
$as_echo "no" >&6; }
6689
if test "x$ac_ct_MANIFEST_TOOL" = x; then
6692
case $cross_compiling:$ac_tool_warned in
6694
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6695
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6696
ac_tool_warned=yes ;;
6698
MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6701
MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6704
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6705
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6706
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6707
if ${lt_cv_path_mainfest_tool+:} false; then :
6708
$as_echo_n "(cached) " >&6
6710
lt_cv_path_mainfest_tool=no
6711
echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6712
$MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6713
cat conftest.err >&5
6714
if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6715
lt_cv_path_mainfest_tool=yes
6719
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6720
$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6721
if test "x$lt_cv_path_mainfest_tool" != xyes; then
6197
6730
case $host_os in
6198
6731
rhapsody* | darwin*)
8672
9313
# Microsoft Visual C++.
8673
9314
# hardcode_libdir_flag_spec is actually meaningless, as there is
8674
9315
# no search path for DLLs.
8675
hardcode_libdir_flag_spec=' '
8676
allow_undefined_flag=unsupported
8677
# Tell ltmain to make .lib files, not .a files.
8679
# Tell ltmain to make .dll files, not .so files.
8681
# FIXME: Setting linknames here is a bad hack.
8682
archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8683
# The linker will automatically build a .lib file if we build a DLL.
8684
old_archive_from_new_cmds='true'
8685
# FIXME: Should let the user specify the lib program.
8686
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8687
fix_srcfile_path='`cygpath -w "$srcfile"`'
8688
enable_shared_with_static_runtimes=yes
9316
case $cc_basename in
9319
hardcode_libdir_flag_spec=' '
9320
allow_undefined_flag=unsupported
9321
always_export_symbols=yes
9323
# Tell ltmain to make .lib files, not .a files.
9325
# Tell ltmain to make .dll files, not .so files.
9327
# FIXME: Setting linknames here is a bad hack.
9328
archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9329
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9330
sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9332
sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9334
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9336
# The linker will not automatically build a static lib if we build a DLL.
9337
# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9338
enable_shared_with_static_runtimes=yes
9339
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9341
old_postinstall_cmds='chmod 644 $oldlib'
9342
postlink_cmds='lt_outputfile="@OUTPUT@"~
9343
lt_tool_outputfile="@TOOL_OUTPUT@"~
9344
case $lt_outputfile in
9347
lt_outputfile="$lt_outputfile.exe"
9348
lt_tool_outputfile="$lt_tool_outputfile.exe"
9351
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9352
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9353
$RM "$lt_outputfile.manifest";
9357
# Assume MSVC wrapper
9358
hardcode_libdir_flag_spec=' '
9359
allow_undefined_flag=unsupported
9360
# Tell ltmain to make .lib files, not .a files.
9362
# Tell ltmain to make .dll files, not .so files.
9364
# FIXME: Setting linknames here is a bad hack.
9365
archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9366
# The linker will automatically build a .lib file if we build a DLL.
9367
old_archive_from_new_cmds='true'
9368
# FIXME: Should let the user specify the lib program.
9369
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9370
enable_shared_with_static_runtimes=yes
8691
9375
darwin* | rhapsody*)
9539
10299
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
9540
10300
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9541
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10302
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9543
10304
mingw* | cegcc*)
9544
10305
# MinGW DLLs use traditional 'lib' prefix
9545
10306
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9546
sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9547
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9548
# It is most probably a Windows format PATH printed by
9549
# mingw gcc, but we are running on Cygwin. Gcc prints its search
9550
# path with ; separators, and with drive letters. We can handle the
9551
# drive letters (cygwin fileutils understands them), so leave them,
9552
# especially as we might pass files found there to a mingw objdump,
9553
# which wouldn't understand a cygwinified path. Ahh.
9554
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9556
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9560
10309
# pw32 DLLs use 'pw' prefix rather than 'lib'
9561
10310
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10313
dynamic_linker='Win32 ld.exe'
10318
libname_spec='$name'
10319
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10320
library_names_spec='${libname}.dll.lib'
10324
sys_lib_search_path_spec=
10327
for lt_path in $LIB
10330
# Let DOS variable expansion print the short 8.3 style file name.
10331
lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10332
sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10335
# Convert to MSYS style.
10336
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10339
# Convert to unix form, then to dos form, then back to unix form
10340
# but this time dos style (no spaces!) so that the unix form looks
10341
# like /cygdrive/c/PROGRA~1:/cygdr...
10342
sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10343
sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10344
sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10347
sys_lib_search_path_spec="$LIB"
10348
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10349
# It is most probably a Windows format PATH.
10350
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10352
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10354
# FIXME: find the short name or the path components, as spaces are
10355
# common. (e.g. "Program Files" -> "PROGRA~1")
10359
# DLL is installed to $(libdir)/../bin by postinstall_cmds
10360
postinstall_cmds='base_file=`basename \${file}`~
10361
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10362
dldir=$destdir/`dirname \$dlpath`~
10363
test -d \$dldir || mkdir -p \$dldir~
10364
$install_prog $dir/$dlname \$dldir/$dlname'
10365
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10366
dlpath=$dir/\$dldll~
10368
shlibpath_overrides_runpath=yes
10369
dynamic_linker='Win32 link.exe'
10373
# Assume MSVC wrapper
9567
10374
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10375
dynamic_linker='Win32 ld.exe'
9570
dynamic_linker='Win32 ld.exe'
9571
10378
# FIXME: first we should search . and the directory the executable is in
9572
10379
shlibpath_var=PATH
14986
15831
as_fn_error $? "You need to have gtk-doc >= 1.11 installed to build $PACKAGE_NAME" "$LINENO" 5
14990
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5
14991
$as_echo_n "checking for GTKDOC_DEPS... " >&6; }
14993
if test -n "$GTKDOC_DEPS_CFLAGS"; then
14994
pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS"
14995
elif test -n "$PKG_CONFIG"; then
14996
if test -n "$PKG_CONFIG" && \
14997
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0\""; } >&5
14998
($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5
15000
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15001
test $ac_status = 0; }; then
15002
pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null`
15009
if test -n "$GTKDOC_DEPS_LIBS"; then
15010
pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS"
15011
elif test -n "$PKG_CONFIG"; then
15012
if test -n "$PKG_CONFIG" && \
15013
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0\""; } >&5
15014
($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5
15016
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15017
test $ac_status = 0; }; then
15018
pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null`
15028
if test $pkg_failed = yes; then
15029
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15030
$as_echo "no" >&6; }
15032
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15033
_pkg_short_errors_supported=yes
15035
_pkg_short_errors_supported=no
15037
if test $_pkg_short_errors_supported = yes; then
15038
GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>&1`
15040
GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>&1`
15042
# Put the nasty error message in config.log where it belongs
15043
echo "$GTKDOC_DEPS_PKG_ERRORS" >&5
15045
as_fn_error $? "Package requirements (glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0) were not met:
15047
$GTKDOC_DEPS_PKG_ERRORS
15049
Consider adjusting the PKG_CONFIG_PATH environment variable if you
15050
installed software in a non-standard prefix.
15052
Alternatively, you may set the environment variables GTKDOC_DEPS_CFLAGS
15053
and GTKDOC_DEPS_LIBS to avoid the need to call pkg-config.
15054
See the pkg-config man page for more details." "$LINENO" 5
15055
elif test $pkg_failed = untried; then
15056
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15057
$as_echo "no" >&6; }
15058
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15059
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15060
as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
15061
is in your PATH or set the PKG_CONFIG environment variable to the full
15062
path to pkg-config.
15064
Alternatively, you may set the environment variables GTKDOC_DEPS_CFLAGS
15065
and GTKDOC_DEPS_LIBS to avoid the need to call pkg-config.
15066
See the pkg-config man page for more details.
15068
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15069
See \`config.log' for more details" "$LINENO" 5 ; }
15071
GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS
15072
GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS
15073
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15074
$as_echo "yes" >&6; }
15079
15835
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
16177
16945
sed_quote_subst='$sed_quote_subst'
16178
16946
double_quote_subst='$double_quote_subst'
16179
16947
delay_variable_subst='$delay_variable_subst'
16180
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
16181
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
16182
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
16183
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
16184
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
16185
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
16186
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
16187
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
16188
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
16189
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
16190
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
16191
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
16192
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
16193
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
16194
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
16195
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
16196
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
16197
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
16198
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
16199
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
16200
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
16201
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
16202
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
16203
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
16204
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
16205
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
16206
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
16207
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16208
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
16209
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
16210
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
16211
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
16212
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16213
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
16214
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
16215
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16216
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16217
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16218
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
16219
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16220
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
16221
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
16222
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
16223
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
16224
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
16225
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16226
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
16227
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
16228
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
16229
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
16230
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
16231
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
16232
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
16233
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
16234
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
16235
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
16236
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
16237
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
16238
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
16239
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
16240
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
16241
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
16242
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16243
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16244
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
16245
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
16246
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16247
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16248
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
16249
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16250
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16251
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16252
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16253
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16254
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16255
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
16256
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16257
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16258
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16259
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
16260
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
16261
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
16262
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
16263
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
16264
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16265
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
16266
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
16267
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
16268
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
16269
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
16270
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16271
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16272
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16273
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16274
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
16275
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
16276
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16277
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
16278
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
16279
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16280
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16281
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
16282
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16283
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
16284
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16285
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16286
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16287
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16288
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
16289
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
16290
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16291
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16292
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
16293
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
16294
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
16295
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
16296
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
16297
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
16948
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16949
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16950
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16951
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16952
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16953
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16954
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16955
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16956
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16957
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16958
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16959
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16960
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16961
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16962
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16963
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16964
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16965
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16966
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16967
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16968
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16969
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16970
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16971
ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16972
exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16973
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16974
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16975
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16976
lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16977
lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16978
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16979
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16980
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16981
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16982
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16983
file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16984
want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16985
DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16986
sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16987
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16988
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16989
archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16990
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16991
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16992
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16993
old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16994
old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16995
lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16996
CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16997
CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16998
compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16999
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17000
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17001
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17002
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17003
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
17004
nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17005
lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17006
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17007
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17008
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17009
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17010
lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17011
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17012
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17013
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17014
MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17015
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17016
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17017
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17018
OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17019
OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17020
libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17021
shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17022
extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17023
archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17024
enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17025
export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17026
whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17027
compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17028
old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17029
old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17030
archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17031
archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17032
module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17033
module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17034
with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17035
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17036
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17037
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17038
hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17039
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17040
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17041
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17042
hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17043
hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17044
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17045
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17046
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17047
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17048
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17049
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17050
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17051
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17052
postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17053
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17054
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17055
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17056
need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17057
version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17058
runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17059
shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17060
shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17061
libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17062
library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17063
soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17064
install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17065
postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17066
postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17067
finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17068
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17069
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17070
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17071
sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17072
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17073
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17074
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17075
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17076
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17077
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16300
17080
LTCFLAGS='$LTCFLAGS'
16301
17081
compiler='$compiler_DEFAULT'
17083
# A function that is used when there is no print builtin or printf.
17084
func_fallback_echo ()
17086
eval 'cat <<_LTECHO_EOF
16303
17091
# Quote evaled strings.
17602
18434
# if finds mixed CR/LF and LF-only lines. Since sed operates in
17603
18435
# text mode, it properly converts lines to CR/LF. This bash problem
17604
18436
# is reportedly fixed, but why not run on old versions too?
17605
sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17606
|| (rm -f "$cfgfile"; exit 1)
17610
cat << \_LT_EOF >> "$cfgfile"
17612
# func_dirname file append nondir_replacement
17613
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17614
# otherwise set result to NONDIR_REPLACEMENT.
17618
*/*) func_dirname_result="${1%/*}${2}" ;;
17619
* ) func_dirname_result="${3}" ;;
17623
# func_basename file
17626
func_basename_result="${1##*/}"
17629
# func_dirname_and_basename file append nondir_replacement
17630
# perform func_basename and func_dirname in a single function
17632
# dirname: Compute the dirname of FILE. If nonempty,
17633
# add APPEND to the result, otherwise set result
17634
# to NONDIR_REPLACEMENT.
17635
# value returned in "$func_dirname_result"
17636
# basename: Compute filename of FILE.
17637
# value retuned in "$func_basename_result"
17638
# Implementation must be kept synchronized with func_dirname
17639
# and func_basename. For efficiency, we do not delegate to
17640
# those functions but instead duplicate the functionality here.
17641
func_dirname_and_basename ()
17644
*/*) func_dirname_result="${1%/*}${2}" ;;
17645
* ) func_dirname_result="${3}" ;;
17647
func_basename_result="${1##*/}"
17650
# func_stripname prefix suffix name
17651
# strip PREFIX and SUFFIX off of NAME.
17652
# PREFIX and SUFFIX must not contain globbing or regex special
17653
# characters, hashes, percent signs, but SUFFIX may contain a leading
17654
# dot (in which case that matches only a dot).
17657
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17658
# positional parameters, so assign one to ordinary parameter first.
17659
func_stripname_result=${3}
17660
func_stripname_result=${func_stripname_result#"${1}"}
17661
func_stripname_result=${func_stripname_result%"${2}"}
17667
func_opt_split_opt=${1%%=*}
17668
func_opt_split_arg=${1#*=}
17675
*.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17676
*) func_lo2o_result=${1} ;;
17680
# func_xform libobj-or-source
17683
func_xform_result=${1%.*}.lo
17686
# func_arith arithmetic-term...
17689
func_arith_result=$(( $* ))
17693
# STRING may not start with a hyphen.
17696
func_len_result=${#1}
17701
*) # Bourne compatible functions.
17702
cat << \_LT_EOF >> "$cfgfile"
17704
# func_dirname file append nondir_replacement
17705
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17706
# otherwise set result to NONDIR_REPLACEMENT.
17709
# Extract subdirectory from the argument.
17710
func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
17711
if test "X$func_dirname_result" = "X${1}"; then
17712
func_dirname_result="${3}"
17714
func_dirname_result="$func_dirname_result${2}"
17718
# func_basename file
17721
func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
17725
# func_stripname prefix suffix name
17726
# strip PREFIX and SUFFIX off of NAME.
17727
# PREFIX and SUFFIX must not contain globbing or regex special
17728
# characters, hashes, percent signs, but SUFFIX may contain a leading
17729
# dot (in which case that matches only a dot).
17730
# func_strip_suffix prefix name
17734
.*) func_stripname_result=`$ECHO "X${3}" \
17735
| $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
17736
*) func_stripname_result=`$ECHO "X${3}" \
17737
| $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
17742
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17743
my_sed_long_arg='1s/^-[^=]*=//'
17748
func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
17749
func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
17755
func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
17758
# func_xform libobj-or-source
17761
func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
17764
# func_arith arithmetic-term...
17767
func_arith_result=`expr "$@"`
17771
# STRING may not start with a hyphen.
17774
func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17780
case $lt_shell_append in
17782
cat << \_LT_EOF >> "$cfgfile"
17784
# func_append var value
17785
# Append VALUE to the end of shell variable VAR.
17793
cat << \_LT_EOF >> "$cfgfile"
17795
# func_append var value
17796
# Append VALUE to the end of shell variable VAR.
17807
sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17808
|| (rm -f "$cfgfile"; exit 1)
17810
mv -f "$cfgfile" "$ofile" ||
18437
sed '$q' "$ltmain" >> "$cfgfile" \
18438
|| (rm -f "$cfgfile"; exit 1)
18440
if test x"$xsi_shell" = xyes; then
18441
sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18445
\ */*) func_dirname_result="${1%/*}${2}" ;;\
18446
\ * ) func_dirname_result="${3}" ;;\
18448
} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18449
&& mv -f "$cfgfile.tmp" "$cfgfile" \
18450
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18451
test 0 -eq $? || _lt_function_replace_fail=:
18454
sed -e '/^func_basename ()$/,/^} # func_basename /c\
18457
\ func_basename_result="${1##*/}"\
18458
} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18459
&& mv -f "$cfgfile.tmp" "$cfgfile" \
18460
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18461
test 0 -eq $? || _lt_function_replace_fail=:
18464
sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18465
func_dirname_and_basename ()\
18468
\ */*) func_dirname_result="${1%/*}${2}" ;;\
18469
\ * ) func_dirname_result="${3}" ;;\
18471
\ func_basename_result="${1##*/}"\
18472
} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18473
&& mv -f "$cfgfile.tmp" "$cfgfile" \
18474
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18475
test 0 -eq $? || _lt_function_replace_fail=:
18478
sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18481
\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18482
\ # positional parameters, so assign one to ordinary parameter first.\
18483
\ func_stripname_result=${3}\
18484
\ func_stripname_result=${func_stripname_result#"${1}"}\
18485
\ func_stripname_result=${func_stripname_result%"${2}"}\
18486
} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18487
&& mv -f "$cfgfile.tmp" "$cfgfile" \
18488
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18489
test 0 -eq $? || _lt_function_replace_fail=:
18492
sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18493
func_split_long_opt ()\
18495
\ func_split_long_opt_name=${1%%=*}\
18496
\ func_split_long_opt_arg=${1#*=}\
18497
} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18498
&& mv -f "$cfgfile.tmp" "$cfgfile" \
18499
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18500
test 0 -eq $? || _lt_function_replace_fail=:
18503
sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18504
func_split_short_opt ()\
18506
\ func_split_short_opt_arg=${1#??}\
18507
\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18508
} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18509
&& mv -f "$cfgfile.tmp" "$cfgfile" \
18510
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18511
test 0 -eq $? || _lt_function_replace_fail=:
18514
sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18518
\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18519
\ *) func_lo2o_result=${1} ;;\
18521
} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18522
&& mv -f "$cfgfile.tmp" "$cfgfile" \
18523
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18524
test 0 -eq $? || _lt_function_replace_fail=:
18527
sed -e '/^func_xform ()$/,/^} # func_xform /c\
18530
func_xform_result=${1%.*}.lo\
18531
} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18532
&& mv -f "$cfgfile.tmp" "$cfgfile" \
18533
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18534
test 0 -eq $? || _lt_function_replace_fail=:
18537
sed -e '/^func_arith ()$/,/^} # func_arith /c\
18540
func_arith_result=$(( $* ))\
18541
} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18542
&& mv -f "$cfgfile.tmp" "$cfgfile" \
18543
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18544
test 0 -eq $? || _lt_function_replace_fail=:
18547
sed -e '/^func_len ()$/,/^} # func_len /c\
18550
func_len_result=${#1}\
18551
} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18552
&& mv -f "$cfgfile.tmp" "$cfgfile" \
18553
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18554
test 0 -eq $? || _lt_function_replace_fail=:
18558
if test x"$lt_shell_append" = xyes; then
18559
sed -e '/^func_append ()$/,/^} # func_append /c\
18562
eval "${1}+=\\${2}"\
18563
} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18564
&& mv -f "$cfgfile.tmp" "$cfgfile" \
18565
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18566
test 0 -eq $? || _lt_function_replace_fail=:
18569
sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18570
func_append_quoted ()\
18572
\ func_quote_for_eval "${2}"\
18573
\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18574
} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18575
&& mv -f "$cfgfile.tmp" "$cfgfile" \
18576
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18577
test 0 -eq $? || _lt_function_replace_fail=:
18580
# Save a `func_append' function call where possible by direct use of '+='
18581
sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18582
&& mv -f "$cfgfile.tmp" "$cfgfile" \
18583
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18584
test 0 -eq $? || _lt_function_replace_fail=:
18586
# Save a `func_append' function call even when '+=' is not available
18587
sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18588
&& mv -f "$cfgfile.tmp" "$cfgfile" \
18589
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18590
test 0 -eq $? || _lt_function_replace_fail=:
18593
if test x"$_lt_function_replace_fail" = x":"; then
18594
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18595
$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18599
mv -f "$cfgfile" "$ofile" ||
17811
18600
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17812
18601
chmod +x "$ofile"