2470
# _LT_SYS_MODULE_PATH_AIX
2471
# -----------------------
2582
# _LT_SYS_MODULE_PATH_AIX([TAGNAME])
2583
# ----------------------------------
2472
2584
# Links a minimal program and checks the executable
2473
2585
# for the system default hardcoded library path. In most cases,
2474
2586
# this is /usr/lib:/lib, but when the MPI compilers are used
2475
2587
# the location of the communication and MPI libs are included too.
2476
2588
# If we don't find anything, use the default library path according
2477
2589
# to the aix ld manual.
2590
# Store the results from the different compilers for each TAGNAME.
2591
# Allow to override them for all tags through lt_cv_aix_libpath.
2478
2592
m4_defun([_LT_SYS_MODULE_PATH_AIX],
2479
2593
[m4_require([_LT_DECL_SED])dnl
2480
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
2481
lt_aix_libpath_sed='
2482
/Import File Strings/,/^$/ {
2488
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
2489
# Check for a 64-bit object if we didn't find anything.
2490
if test -z "$aix_libpath"; then
2491
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
2493
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
2594
if test "${lt_cv_aix_libpath+set}" = set; then
2595
aix_libpath=$lt_cv_aix_libpath
2597
AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
2598
[AC_LINK_IFELSE([AC_LANG_PROGRAM],[
2599
lt_aix_libpath_sed='[
2600
/Import File Strings/,/^$/ {
2602
s/^0 *\([^ ]*\) *$/\1/
2606
_LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
2607
# Check for a 64-bit object if we didn't find anything.
2608
if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
2609
_LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
2611
if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
2612
_LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
2615
aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
2494
2617
])# _LT_SYS_MODULE_PATH_AIX
2497
2620
# _LT_SHELL_INIT(ARG)
2498
2621
# -------------------
2499
2622
m4_define([_LT_SHELL_INIT],
2500
[ifdef([AC_DIVERSION_NOTICE],
2501
[AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
2502
[AC_DIVERT_PUSH(NOTICE)])
2623
[m4_divert_text([M4SH-INIT], [$1
2624
])])# _LT_SHELL_INIT
2508
2628
# _LT_PROG_ECHO_BACKSLASH
2509
2629
# -----------------------
2510
# Add some code to the start of the generated configure script which
2511
# will find an echo command which doesn't interpret backslashes.
2630
# Find how we can fake an echo command that does not interpret backslash.
2631
# In particular, with Autoconf 2.60 or later we add some code to the start
2632
# of the generated configure script which will find a shell with a builtin
2633
# printf (which we can use as an echo command).
2512
2634
m4_defun([_LT_PROG_ECHO_BACKSLASH],
2514
# Check that we are running under the correct shell.
2515
SHELL=${CONFIG_SHELL-/bin/sh}
2519
# Remove one level of quotation (which was required for Make).
2520
ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
2635
[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2636
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2637
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2639
AC_MSG_CHECKING([how to print strings])
2640
# Test print first, because it will be a builtin if present.
2641
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2642
test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2644
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2647
# Use this function as a fallback that always works.
2648
func_fallback_echo ()
2650
eval 'cat <<_LTECHO_EOF
2654
ECHO='func_fallback_echo'
2657
# func_echo_all arg...
2658
# Invoke $ECHO with all args, space-separated.
2665
printf*) AC_MSG_RESULT([printf]) ;;
2666
print*) AC_MSG_RESULT([print -r]) ;;
2667
*) AC_MSG_RESULT([cat]) ;;
2524
ECHO=${lt_ECHO-echo}
2525
if test "X[$]1" = X--no-reexec; then
2526
# Discard the --no-reexec flag, and continue.
2528
elif test "X[$]1" = X--fallback-echo; then
2529
# Avoid inline document here, it may be left over
2531
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
2532
# Yippee, $ECHO works!
2535
# Restart under the correct shell.
2536
exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
2539
if test "X[$]1" = X--fallback-echo; then
2540
# used as fallback echo
2548
# The HP-UX ksh and POSIX shell print the target directory to stdout
2550
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
2552
if test -z "$lt_ECHO"; then
2553
if test "X${echo_test_string+set}" != Xset; then
2554
# find a string as large as possible, as long as the shell can cope with it
2555
for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
2556
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
2557
if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
2558
{ test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
2565
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
2566
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
2567
test "X$echo_testing_string" = "X$echo_test_string"; then
2570
# The Solaris, AIX, and Digital Unix default echo programs unquote
2571
# backslashes. This makes it impossible to quote backslashes using
2572
# echo "$something" | sed 's/\\/\\\\/g'
2574
# So, first we look for a working echo in the user's PATH.
2576
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2577
for dir in $PATH /usr/ucb; do
2579
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
2580
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
2581
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
2582
test "X$echo_testing_string" = "X$echo_test_string"; then
2589
if test "X$ECHO" = Xecho; then
2590
# We didn't find a better echo, so look for alternatives.
2591
if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
2592
echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
2593
test "X$echo_testing_string" = "X$echo_test_string"; then
2594
# This shell has a builtin print -r that does the trick.
2596
elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
2597
test "X$CONFIG_SHELL" != X/bin/ksh; then
2598
# If we have ksh, try running configure again with it.
2599
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
2600
export ORIGINAL_CONFIG_SHELL
2601
CONFIG_SHELL=/bin/ksh
2603
exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
2607
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
2608
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
2609
test "X$echo_testing_string" = "X$echo_test_string"; then
2610
# Cool, printf works
2612
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
2613
test "X$echo_testing_string" = 'X\t' &&
2614
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
2615
test "X$echo_testing_string" = "X$echo_test_string"; then
2616
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
2618
SHELL="$CONFIG_SHELL"
2620
ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
2621
elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
2622
test "X$echo_testing_string" = 'X\t' &&
2623
echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
2624
test "X$echo_testing_string" = "X$echo_test_string"; then
2625
ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
2627
# maybe with a smaller string...
2630
for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
2631
if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
2638
if test "$prev" != 'sed 50q "[$]0"'; then
2639
echo_test_string=`eval $prev`
2640
export echo_test_string
2641
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
2643
# Oops. We lost completely, so just stick with echo.
2652
# Copy echo and quote the copy suitably for passing to libtool from
2653
# the Makefile, instead of quoting the original, which is used later.
2655
if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
2656
lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
2670
m4_ifdef([_AS_DETECT_SUGGESTED],
2671
[_AS_DETECT_SUGGESTED([
2672
test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
2673
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2674
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2675
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2676
PATH=/empty FPATH=/empty; export PATH FPATH
2677
test "X`printf %s $ECHO`" = "X$ECHO" \
2678
|| test "X`print -r -- $ECHO`" = "X$ECHO" )])])
2661
2680
_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
2662
_LT_DECL([], [ECHO], [1],
2663
[An echo program that does not interpret backslashes])
2681
_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
2664
2682
])# _LT_PROG_ECHO_BACKSLASH
2687
AC_DEFUN([_LT_WITH_SYSROOT],
2688
[AC_MSG_CHECKING([for sysroot])
2689
AC_ARG_WITH([sysroot],
2690
[ --with-sysroot[=DIR] Search for dependent libraries within DIR
2691
(or the compiler's sysroot if not specified).],
2692
[], [with_sysroot=no])
2694
dnl lt_sysroot will always be passed unquoted. We quote it here
2695
dnl in case the user passed a directory name.
2697
case ${with_sysroot} in #(
2699
if test "$GCC" = yes; then
2700
lt_sysroot=`$CC --print-sysroot 2>/dev/null`
2704
lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
2709
AC_MSG_RESULT([${with_sysroot}])
2710
AC_MSG_ERROR([The sysroot must be an absolute path.])
2714
AC_MSG_RESULT([${lt_sysroot:-no}])
2715
_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
2716
[dependent libraries, and in which our libraries should be installed.])])
2667
2718
# _LT_ENABLE_LOCK
2668
2719
# ---------------
2669
2720
m4_defun([_LT_ENABLE_LOCK],
3685
3808
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
3686
3809
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3687
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
3811
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
3689
3813
mingw* | cegcc*)
3690
3814
# MinGW DLLs use traditional 'lib' prefix
3691
3815
soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3692
sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
3693
if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
3694
# It is most probably a Windows format PATH printed by
3695
# mingw gcc, but we are running on Cygwin. Gcc prints its search
3696
# path with ; separators, and with drive letters. We can handle the
3697
# drive letters (cygwin fileutils understands them), so leave them,
3698
# especially as we might pass files found there to a mingw objdump,
3699
# which wouldn't understand a cygwinified path. Ahh.
3700
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
3702
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
3706
3818
# pw32 DLLs use 'pw' prefix rather than 'lib'
3707
3819
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3822
dynamic_linker='Win32 ld.exe'
3827
libname_spec='$name'
3828
soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3829
library_names_spec='${libname}.dll.lib'
3833
sys_lib_search_path_spec=
3839
# Let DOS variable expansion print the short 8.3 style file name.
3840
lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
3841
sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
3844
# Convert to MSYS style.
3845
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
3848
# Convert to unix form, then to dos form, then back to unix form
3849
# but this time dos style (no spaces!) so that the unix form looks
3850
# like /cygdrive/c/PROGRA~1:/cygdr...
3851
sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
3852
sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
3853
sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
3856
sys_lib_search_path_spec="$LIB"
3857
if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
3858
# It is most probably a Windows format PATH.
3859
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
3861
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
3863
# FIXME: find the short name or the path components, as spaces are
3864
# common. (e.g. "Program Files" -> "PROGRA~1")
3868
# DLL is installed to $(libdir)/../bin by postinstall_cmds
3869
postinstall_cmds='base_file=`basename \${file}`~
3870
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
3871
dldir=$destdir/`dirname \$dlpath`~
3872
test -d \$dldir || mkdir -p \$dldir~
3873
$install_prog $dir/$dlname \$dldir/$dlname'
3874
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
3875
dlpath=$dir/\$dldll~
3877
shlibpath_overrides_runpath=yes
3878
dynamic_linker='Win32 link.exe'
3882
# Assume MSVC wrapper
3713
3883
library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
3884
dynamic_linker='Win32 ld.exe'
3716
dynamic_linker='Win32 ld.exe'
3717
3887
# FIXME: first we should search . and the directory the executable is in
3718
3888
shlibpath_var=PATH
4707
4943
dnl AC_DEFUN([AM_PROG_NM], [])
4708
4944
dnl AC_DEFUN([AC_PROG_NM], [])
4946
# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
4947
# --------------------------------
4948
# how to determine the name of the shared library
4949
# associated with a specific link library.
4950
# -- PORTME fill in with the dynamic library characteristics
4951
m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
4952
[m4_require([_LT_DECL_EGREP])
4953
m4_require([_LT_DECL_OBJDUMP])
4954
m4_require([_LT_DECL_DLLTOOL])
4955
AC_CACHE_CHECK([how to associate runtime and link libraries],
4956
lt_cv_sharedlib_from_linklib_cmd,
4957
[lt_cv_sharedlib_from_linklib_cmd='unknown'
4960
cygwin* | mingw* | pw32* | cegcc*)
4961
# two different shell functions defined in ltmain.sh
4962
# decide which to use based on capabilities of $DLLTOOL
4963
case `$DLLTOOL --help 2>&1` in
4964
*--identify-strict*)
4965
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
4968
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
4973
# fallback: assume linklib IS sharedlib
4974
lt_cv_sharedlib_from_linklib_cmd="$ECHO"
4978
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
4979
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
4981
_LT_DECL([], [sharedlib_from_linklib_cmd], [1],
4982
[Command to associate shared and link libraries])
4983
])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
4986
# _LT_PATH_MANIFEST_TOOL
4987
# ----------------------
4988
# locate the manifest tool
4989
m4_defun([_LT_PATH_MANIFEST_TOOL],
4990
[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
4991
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
4992
AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
4993
[lt_cv_path_mainfest_tool=no
4994
echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
4995
$MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
4996
cat conftest.err >&AS_MESSAGE_LOG_FD
4997
if $GREP 'Manifest Tool' conftest.out > /dev/null; then
4998
lt_cv_path_mainfest_tool=yes
5001
if test "x$lt_cv_path_mainfest_tool" != xyes; then
5004
_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
5005
])# _LT_PATH_MANIFEST_TOOL
6137
6551
# Microsoft Visual C++.
6138
6552
# hardcode_libdir_flag_spec is actually meaningless, as there is
6139
6553
# no search path for DLLs.
6140
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6141
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6142
# Tell ltmain to make .lib files, not .a files.
6144
# Tell ltmain to make .dll files, not .so files.
6146
# FIXME: Setting linknames here is a bad hack.
6147
_LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6148
# The linker will automatically build a .lib file if we build a DLL.
6149
_LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
6150
# FIXME: Should let the user specify the lib program.
6151
_LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
6152
_LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
6153
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6554
case $cc_basename in
6557
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6558
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6559
_LT_TAGVAR(always_export_symbols, $1)=yes
6560
_LT_TAGVAR(file_list_spec, $1)='@'
6561
# Tell ltmain to make .lib files, not .a files.
6563
# Tell ltmain to make .dll files, not .so files.
6565
# FIXME: Setting linknames here is a bad hack.
6566
_LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
6567
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6568
sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
6570
sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
6572
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
6574
# The linker will not automatically build a static lib if we build a DLL.
6575
# _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
6576
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6577
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
6579
_LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
6580
_LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
6581
lt_tool_outputfile="@TOOL_OUTPUT@"~
6582
case $lt_outputfile in
6585
lt_outputfile="$lt_outputfile.exe"
6586
lt_tool_outputfile="$lt_tool_outputfile.exe"
6589
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
6590
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
6591
$RM "$lt_outputfile.manifest";
6595
# Assume MSVC wrapper
6596
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6597
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6598
# Tell ltmain to make .lib files, not .a files.
6600
# Tell ltmain to make .dll files, not .so files.
6602
# FIXME: Setting linknames here is a bad hack.
6603
_LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
6604
# The linker will automatically build a .lib file if we build a DLL.
6605
_LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
6606
# FIXME: Should let the user specify the lib program.
6607
_LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
6608
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6156
6613
darwin* | rhapsody*)
6280
6744
irix5* | irix6* | nonstopux*)
6281
6745
if test "$GCC" = yes; then
6282
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6746
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6283
6747
# Try to use the -exported_symbol ld option, if it does not
6284
6748
# work, assume that -exports_file does not work either and
6285
6749
# implicitly export all symbols.
6286
save_LDFLAGS="$LDFLAGS"
6287
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
6288
AC_LINK_IFELSE(int foo(void) {},
6289
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
6291
LDFLAGS="$save_LDFLAGS"
6750
# This should be the same for all languages, so no per-tag cache variable.
6751
AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
6752
[lt_cv_irix_exported_symbol],
6753
[save_LDFLAGS="$LDFLAGS"
6754
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
6757
[AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
6758
[C++], [[int foo (void) { return 0; }]],
6765
[lt_cv_irix_exported_symbol=yes],
6766
[lt_cv_irix_exported_symbol=no])
6767
LDFLAGS="$save_LDFLAGS"])
6768
if test "$lt_cv_irix_exported_symbol" = yes; then
6769
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
6293
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
6294
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
6772
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
6773
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
6296
6775
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
6297
6776
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6570
7049
# Test whether the compiler implicitly links with -lc since on some
6571
7050
# systems, -lgcc has to come before -lc. If gcc already passes -lc
6572
7051
# to ld, don't add -lc before -lgcc.
6573
AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6575
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7052
AC_CACHE_CHECK([whether -lc should be explicitly linked in],
7053
[lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
7055
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6577
if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6580
libobjs=conftest.$ac_objext
6582
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
6583
pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
6589
lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
6590
_LT_TAGVAR(allow_undefined_flag, $1)=
6591
if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
6593
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6595
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6597
_LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
6599
cat conftest.err 1>&5
6602
AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
7057
if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
7060
libobjs=conftest.$ac_objext
7062
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
7063
pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
7069
lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
7070
_LT_TAGVAR(allow_undefined_flag, $1)=
7071
if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
7073
lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7075
lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
7077
_LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
7079
cat conftest.err 1>&5
7083
_LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
7079
7554
cygwin* | mingw* | pw32* | cegcc*)
7080
# _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
7081
# as there is no search path for DLLs.
7082
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7083
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
7084
_LT_TAGVAR(always_export_symbols, $1)=no
7085
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
7555
case $GXX,$cc_basename in
7558
# hardcode_libdir_flag_spec is actually meaningless, as there is
7559
# no search path for DLLs.
7560
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
7561
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
7562
_LT_TAGVAR(always_export_symbols, $1)=yes
7563
_LT_TAGVAR(file_list_spec, $1)='@'
7564
# Tell ltmain to make .lib files, not .a files.
7566
# Tell ltmain to make .dll files, not .so files.
7568
# FIXME: Setting linknames here is a bad hack.
7569
_LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
7570
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7571
$SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
7573
$SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
7575
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
7577
# The linker will not automatically build a static lib if we build a DLL.
7578
# _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
7579
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
7581
_LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
7582
_LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
7583
lt_tool_outputfile="@TOOL_OUTPUT@"~
7584
case $lt_outputfile in
7587
lt_outputfile="$lt_outputfile.exe"
7588
lt_tool_outputfile="$lt_tool_outputfile.exe"
7591
func_to_tool_file "$lt_outputfile"~
7592
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
7593
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
7594
$RM "$lt_outputfile.manifest";
7599
# _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
7600
# as there is no search path for DLLs.
7601
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7602
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
7603
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
7604
_LT_TAGVAR(always_export_symbols, $1)=no
7605
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
7087
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7088
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7089
# If the export-symbols file already is a .def file (1st line
7090
# is EXPORTS), use it as is; otherwise, prepend...
7091
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7092
cp $export_symbols $output_objdir/$soname.def;
7094
echo EXPORTS > $output_objdir/$soname.def;
7095
cat $export_symbols >> $output_objdir/$soname.def;
7097
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7099
_LT_TAGVAR(ld_shlibs, $1)=no
7607
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7608
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7609
# If the export-symbols file already is a .def file (1st line
7610
# is EXPORTS), use it as is; otherwise, prepend...
7611
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7612
cp $export_symbols $output_objdir/$soname.def;
7614
echo EXPORTS > $output_objdir/$soname.def;
7615
cat $export_symbols >> $output_objdir/$soname.def;
7617
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7619
_LT_TAGVAR(ld_shlibs, $1)=no
7102
7624
darwin* | rhapsody*)
7103
7625
_LT_DARWIN_LINKER_FEATURES($1)
8599
9170
])# _LT_CHECK_SHELL_FEATURES
8602
# _LT_PROG_XSI_SHELLFNS
8603
# ---------------------
8604
# Bourne and XSI compatible variants of some useful shell functions.
8605
m4_defun([_LT_PROG_XSI_SHELLFNS],
8608
cat << \_LT_EOF >> "$cfgfile"
8610
# func_dirname file append nondir_replacement
8611
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
8612
# otherwise set result to NONDIR_REPLACEMENT.
8616
*/*) func_dirname_result="${1%/*}${2}" ;;
8617
* ) func_dirname_result="${3}" ;;
8621
# func_basename file
8624
func_basename_result="${1##*/}"
8627
# func_dirname_and_basename file append nondir_replacement
8628
# perform func_basename and func_dirname in a single function
8630
# dirname: Compute the dirname of FILE. If nonempty,
8631
# add APPEND to the result, otherwise set result
8632
# to NONDIR_REPLACEMENT.
8633
# value returned in "$func_dirname_result"
8634
# basename: Compute filename of FILE.
8635
# value retuned in "$func_basename_result"
8636
# Implementation must be kept synchronized with func_dirname
8637
# and func_basename. For efficiency, we do not delegate to
8638
# those functions but instead duplicate the functionality here.
8639
func_dirname_and_basename ()
8642
*/*) func_dirname_result="${1%/*}${2}" ;;
8643
* ) func_dirname_result="${3}" ;;
8645
func_basename_result="${1##*/}"
8648
# func_stripname prefix suffix name
8649
# strip PREFIX and SUFFIX off of NAME.
8650
# PREFIX and SUFFIX must not contain globbing or regex special
8651
# characters, hashes, percent signs, but SUFFIX may contain a leading
8652
# dot (in which case that matches only a dot).
8655
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
8656
# positional parameters, so assign one to ordinary parameter first.
8657
func_stripname_result=${3}
8658
func_stripname_result=${func_stripname_result#"${1}"}
8659
func_stripname_result=${func_stripname_result%"${2}"}
8665
func_opt_split_opt=${1%%=*}
8666
func_opt_split_arg=${1#*=}
8673
*.lo) func_lo2o_result=${1%.lo}.${objext} ;;
8674
*) func_lo2o_result=${1} ;;
8678
# func_xform libobj-or-source
8681
func_xform_result=${1%.*}.lo
8684
# func_arith arithmetic-term...
8687
func_arith_result=$(( $[*] ))
8691
# STRING may not start with a hyphen.
8694
func_len_result=${#1}
8699
*) # Bourne compatible functions.
8700
cat << \_LT_EOF >> "$cfgfile"
8702
# func_dirname file append nondir_replacement
8703
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
8704
# otherwise set result to NONDIR_REPLACEMENT.
8707
# Extract subdirectory from the argument.
8708
func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
8709
if test "X$func_dirname_result" = "X${1}"; then
8710
func_dirname_result="${3}"
8712
func_dirname_result="$func_dirname_result${2}"
8716
# func_basename file
8719
func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
8722
dnl func_dirname_and_basename
8723
dnl A portable version of this function is already defined in general.m4sh
8724
dnl so there is no need for it here.
8726
# func_stripname prefix suffix name
8727
# strip PREFIX and SUFFIX off of NAME.
8728
# PREFIX and SUFFIX must not contain globbing or regex special
8729
# characters, hashes, percent signs, but SUFFIX may contain a leading
8730
# dot (in which case that matches only a dot).
8731
# func_strip_suffix prefix name
8735
.*) func_stripname_result=`$ECHO "X${3}" \
8736
| $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
8737
*) func_stripname_result=`$ECHO "X${3}" \
8738
| $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
8743
my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
8744
my_sed_long_arg='1s/^-[[^=]]*=//'
8749
func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
8750
func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
8756
func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
8759
# func_xform libobj-or-source
8762
func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
8765
# func_arith arithmetic-term...
8768
func_arith_result=`expr "$[@]"`
8772
# STRING may not start with a hyphen.
8775
func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
8781
case $lt_shell_append in
8783
cat << \_LT_EOF >> "$cfgfile"
8785
# func_append var value
8786
# Append VALUE to the end of shell variable VAR.
8794
cat << \_LT_EOF >> "$cfgfile"
8796
# func_append var value
8797
# Append VALUE to the end of shell variable VAR.
8800
eval "$[1]=\$$[1]\$[2]"
9173
# _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
9174
# ------------------------------------------------------
9175
# In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
9176
# '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
9177
m4_defun([_LT_PROG_FUNCTION_REPLACE],
9179
sed -e '/^$1 ()$/,/^} # $1 /c\
9182
m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1])
9183
} # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
9184
&& mv -f "$cfgfile.tmp" "$cfgfile" \
9185
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
9186
test 0 -eq $? || _lt_function_replace_fail=:
9190
# _LT_PROG_REPLACE_SHELLFNS
9191
# -------------------------
9192
# Replace existing portable implementations of several shell functions with
9193
# equivalent extended shell implementations where those features are available..
9194
m4_defun([_LT_PROG_REPLACE_SHELLFNS],
9195
[if test x"$xsi_shell" = xyes; then
9196
_LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
9198
*/*) func_dirname_result="${1%/*}${2}" ;;
9199
* ) func_dirname_result="${3}" ;;
9202
_LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
9203
func_basename_result="${1##*/}"])
9205
_LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
9207
*/*) func_dirname_result="${1%/*}${2}" ;;
9208
* ) func_dirname_result="${3}" ;;
9210
func_basename_result="${1##*/}"])
9212
_LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
9213
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
9214
# positional parameters, so assign one to ordinary parameter first.
9215
func_stripname_result=${3}
9216
func_stripname_result=${func_stripname_result#"${1}"}
9217
func_stripname_result=${func_stripname_result%"${2}"}])
9219
_LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
9220
func_split_long_opt_name=${1%%=*}
9221
func_split_long_opt_arg=${1#*=}])
9223
_LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
9224
func_split_short_opt_arg=${1#??}
9225
func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
9227
_LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
9229
*.lo) func_lo2o_result=${1%.lo}.${objext} ;;
9230
*) func_lo2o_result=${1} ;;
9233
_LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo])
9235
_LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))])
9237
_LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}])
9240
if test x"$lt_shell_append" = xyes; then
9241
_LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"])
9243
_LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
9244
func_quote_for_eval "${2}"
9245
dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
9246
eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
9248
# Save a `func_append' function call where possible by direct use of '+='
9249
sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
9250
&& mv -f "$cfgfile.tmp" "$cfgfile" \
9251
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
9252
test 0 -eq $? || _lt_function_replace_fail=:
9254
# Save a `func_append' function call even when '+=' is not available
9255
sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
9256
&& mv -f "$cfgfile.tmp" "$cfgfile" \
9257
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
9258
test 0 -eq $? || _lt_function_replace_fail=:
9261
if test x"$_lt_function_replace_fail" = x":"; then
9262
AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
9266
# _LT_PATH_CONVERSION_FUNCTIONS
9267
# -----------------------------
9268
# Determine which file name conversion functions should be used by
9269
# func_to_host_file (and, implicitly, by func_to_host_path). These are needed
9270
# for certain cross-compile configurations and native mingw.
9271
m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
9272
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
9273
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
9274
AC_MSG_CHECKING([how to convert $build file names to $host format])
9275
AC_CACHE_VAL(lt_cv_to_host_file_cmd,
9279
*-*-mingw* ) # actually msys
9280
lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
9283
lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
9285
* ) # otherwise, assume *nix
9286
lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
9292
*-*-mingw* ) # actually msys
9293
lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
9296
lt_cv_to_host_file_cmd=func_convert_file_noop
9298
* ) # otherwise, assume *nix
9299
lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
9303
* ) # unhandled hosts (and "normal" native builds)
9304
lt_cv_to_host_file_cmd=func_convert_file_noop
9308
to_host_file_cmd=$lt_cv_to_host_file_cmd
9309
AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
9310
_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
9311
[0], [convert $build file names to $host format])dnl
9313
AC_MSG_CHECKING([how to convert $build file names to toolchain format])
9314
AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
9315
[#assume ordinary cross tools, or native build.
9316
lt_cv_to_tool_file_cmd=func_convert_file_noop
9320
*-*-mingw* ) # actually msys
9321
lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
9327
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
9328
AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
9329
_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
9330
[0], [convert $build files to toolchain format])dnl
9331
])# _LT_PATH_CONVERSION_FUNCTIONS
8808
9333
# Helper functions for option handling. -*- Autoconf -*-
8810
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
9335
# Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
8811
9337
# Written by Gary V. Vaughan, 2004
8813
9339
# This file is free software; the Free Software Foundation gives
8814
9340
# unlimited permission to copy and/or distribute it, with or without
8815
9341
# modifications, as long as this notice is preserved.
8817
# serial 6 ltoptions.m4
9343
# serial 7 ltoptions.m4
8819
9345
# This is to help aclocal find these macros, as it can't see m4_define.
8820
9346
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
9576
10111
Consider adjusting the PKG_CONFIG_PATH environment variable if you
9577
10112
installed software in a non-standard prefix.
9581
[AC_MSG_RESULT([no])
9583
10116
elif test $pkg_failed = untried; then
9584
ifelse([$4], , [AC_MSG_FAILURE(dnl
10117
AC_MSG_RESULT([no])
10118
m4_default([$4], [AC_MSG_FAILURE(
9585
10119
[The pkg-config script could not be found or is too old. Make sure it
9586
10120
is in your PATH or set the PKG_CONFIG environment variable to the full
9587
10121
path to pkg-config.
9591
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
10125
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])
9594
10128
$1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
9595
10129
$1[]_LIBS=$pkg_cv_[]$1[]_LIBS
9596
10130
AC_MSG_RESULT([yes])
9597
ifelse([$3], , :, [$3])
9599
10133
])# PKG_CHECK_MODULES
9601
dnl AM_GCONF_SOURCE_2
9602
dnl Defines GCONF_SCHEMA_CONFIG_SOURCE which is where you should install schemas
9603
dnl (i.e. pass to gconftool-2
9604
dnl Defines GCONF_SCHEMA_FILE_DIR which is a filesystem directory where
9605
dnl you should install foo.schemas files
9608
AC_DEFUN([AM_GCONF_SOURCE_2],
9610
if test "x$GCONF_SCHEMA_INSTALL_SOURCE" = "x"; then
9611
GCONF_SCHEMA_CONFIG_SOURCE=`gconftool-2 --get-default-source`
9613
GCONF_SCHEMA_CONFIG_SOURCE=$GCONF_SCHEMA_INSTALL_SOURCE
9616
AC_ARG_WITH([gconf-source],
9617
AC_HELP_STRING([--with-gconf-source=sourceaddress],
9618
[Config database for installing schema files.]),
9619
[GCONF_SCHEMA_CONFIG_SOURCE="$withval"],)
9621
AC_SUBST(GCONF_SCHEMA_CONFIG_SOURCE)
9622
AC_MSG_RESULT([Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation])
9624
if test "x$GCONF_SCHEMA_FILE_DIR" = "x"; then
9625
GCONF_SCHEMA_FILE_DIR='$(sysconfdir)/gconf/schemas'
9628
AC_ARG_WITH([gconf-schema-file-dir],
9629
AC_HELP_STRING([--with-gconf-schema-file-dir=dir],
9630
[Directory for installing schema files.]),
9631
[GCONF_SCHEMA_FILE_DIR="$withval"],)
9633
AC_SUBST(GCONF_SCHEMA_FILE_DIR)
9634
AC_MSG_RESULT([Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files])
9636
AC_ARG_ENABLE(schemas-install,
9637
AC_HELP_STRING([--disable-schemas-install],
9638
[Disable the schemas installation]),
9639
[case ${enableval} in
9641
*) AC_MSG_ERROR([bad value ${enableval} for --enable-schemas-install]) ;;
9643
AM_CONDITIONAL([GCONF_SCHEMAS_INSTALL], [test "$enable_schemas_install" != no])
9646
10135
# Copyright (C) 1995-2002 Free Software Foundation, Inc.
9647
10136
# Copyright (C) 2001-2003,2004 Red Hat, Inc.