1
# generated automatically by aclocal 1.11.1 -*- Autoconf -*-
1
# generated automatically by aclocal 1.11.6 -*- Autoconf -*-
3
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
# 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
4
# 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
5
6
# This file is free software; the Free Software Foundation
6
7
# gives unlimited permission to copy and/or distribute it,
7
8
# with or without modifications, as long as this notice is preserved.
22
23
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
24
25
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
25
# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
26
# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
27
28
# Written by Gordon Matzigkeit, 1996
29
30
# This file is free software; the Free Software Foundation gives
33
34
m4_define([_LT_COPYING], [dnl
34
35
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
35
# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
36
# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
37
38
# Written by Gordon Matzigkeit, 1996
39
40
# This file is part of GNU Libtool.
167
168
AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
168
169
AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
171
_LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
170
173
_LT_DECL([], [host_alias], [0], [The host system])dnl
171
174
_LT_DECL([], [host], [0])dnl
172
175
_LT_DECL([], [host_os], [0])dnl
652
655
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
653
656
configured by $[0], generated by m4_PACKAGE_STRING.
655
Copyright (C) 2010 Free Software Foundation, Inc.
658
Copyright (C) 2011 Free Software Foundation, Inc.
656
659
This config.lt script is free software; the Free Software Foundation
657
660
gives unlimited permision to copy, distribute and modify it."
844
m4_ifndef([AC_PROG_GO], [
845
# NOTE: This macro has been submitted for inclusion into #
846
# GNU Autoconf as AC_PROG_GO. When it is available in #
847
# a released version of Autoconf we should remove this #
848
# macro and use it instead. #
849
m4_defun([AC_PROG_GO],
851
AC_ARG_VAR([GOC], [Go compiler command])dnl
852
AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
853
_AC_ARG_VAR_LDFLAGS()dnl
854
AC_CHECK_TOOL(GOC, gccgo)
855
if test -z "$GOC"; then
856
if test -n "$ac_tool_prefix"; then
857
AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
860
if test -z "$GOC"; then
861
AC_CHECK_PROG(GOC, gccgo, gccgo, false)
840
867
# _LT_LANG_DEFAULT_CONFIG
841
868
# -----------------------
842
869
m4_defun([_LT_LANG_DEFAULT_CONFIG],
867
894
m4_ifdef([LT_PROG_GCJ],
868
895
[m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
897
AC_PROVIDE_IFELSE([AC_PROG_GO],
899
[m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
870
901
AC_PROVIDE_IFELSE([LT_PROG_RC],
872
903
[m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
969
1000
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
970
1001
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err
972
if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
1003
# If there is a non-empty error log, and "single_module"
1004
# appears in it, assume the flag caused a linker warning
1005
if test -s conftest.err && $GREP single_module conftest.err; then
1006
cat conftest.err >&AS_MESSAGE_LOG_FD
1007
# Otherwise, if the output was created with a 0 exit code from
1008
# the compiler, it worked.
1009
elif test -f libconftest.dylib && test $_lt_result -eq 0; then
973
1010
lt_cv_apple_cc_single_mod=yes
975
1012
cat conftest.err >&AS_MESSAGE_LOG_FD
977
1014
rm -rf libconftest.dylib*
978
1015
rm -f conftest.*
980
1018
AC_CACHE_CHECK([for -exported_symbols_list linker flag],
981
1019
[lt_cv_ld_exported_symbols_list],
982
1020
[lt_cv_ld_exported_symbols_list=no
1005
1044
echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
1006
1045
$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
1008
if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
1047
if test -s conftest.err && $GREP force_load conftest.err; then
1048
cat conftest.err >&AS_MESSAGE_LOG_FD
1049
elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
1009
1050
lt_cv_ld_force_load=yes
1011
1052
cat conftest.err >&AS_MESSAGE_LOG_FD
1053
# _LT_DARWIN_LINKER_FEATURES
1054
# --------------------------
1094
# _LT_DARWIN_LINKER_FEATURES([TAG])
1095
# ---------------------------------
1055
1096
# Checks for linker and compiler features on darwin
1056
1097
m4_defun([_LT_DARWIN_LINKER_FEATURES],
1062
1103
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1063
1104
if test "$lt_cv_ld_force_load" = "yes"; then
1064
1105
_LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
1106
m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
1107
[FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes])
1066
1109
_LT_TAGVAR(whole_archive_flag_spec, $1)=''
1345
1388
CFLAGS="$SAVE_CFLAGS"
1349
1392
# Find out which ABI we are using.
1350
1393
echo 'int i;' > conftest.$ac_ext
1351
1394
if AC_TRY_EVAL(ac_compile); then
1352
1395
case `/usr/bin/file conftest.o` in
1354
1397
case $lt_cv_prog_gnu_ld in
1355
yes*) LD="${LD-ld} -m elf64_sparc" ;;
1401
LD="${LD-ld} -m elf_x86_64"
1404
LD="${LD-ld} -m elf64_sparc"
1407
# GNU ld 2.21 introduced _sol2 emulations. Use them if available.
1408
if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
1357
1413
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
1358
1414
LD="${LD-ld} -64"
1429
1485
if test -n "$RANLIB"; then
1430
1486
case $host_os in
1432
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
1488
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
1435
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
1491
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
1438
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1494
old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
1441
1497
case $host_os in
1615
1671
lt_cv_sys_max_cmd_len=196608
1675
# The test takes a long time on OS/2.
1676
lt_cv_sys_max_cmd_len=8192
1619
1680
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
1620
1681
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
1654
1715
# If test is not a shell built-in, we'll probably end up computing a
1655
1716
# maximum length that is only half of the actual maximum length, but
1656
1717
# we can't tell.
1657
while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
1718
while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
1658
1719
= "X$teststring$teststring"; } >/dev/null 2>&1 &&
1659
1720
test $i != 17 # 1/2 MB should be enough
2595
2652
dynamic_linker=no
2598
# This must be Linux ELF.
2655
# This must be glibc/ELF.
2599
2656
linux* | k*bsd*-gnu | kopensolaris*-gnu)
2657
version_type=linux # correct to gnu/linux during the next big refactor
2601
2658
need_lib_prefix=no
2602
2659
need_version=no
2603
2660
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2626
2683
# before this can be enabled.
2627
2684
hardcode_into_libs=yes
2686
# Add ABI-specific directories to the system library path.
2687
sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
2629
2689
# Append ld.so.conf contents to the search path
2630
2690
if test -f /etc/ld.so.conf; then
2631
2691
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
2632
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
2692
sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
2635
2696
# We used to test for /lib/ld.so.1 and disable shared libraries on
2641
2702
dynamic_linker='GNU/Linux ld.so'
2648
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2649
soname_spec='${libname}${release}${shared_ext}$major'
2650
shlibpath_var=LD_LIBRARY_PATH
2651
shlibpath_overrides_runpath=no
2652
hardcode_into_libs=yes
2653
dynamic_linker='NetBSD ld.elf_so'
2657
2706
version_type=sunos
2658
2707
need_lib_prefix=no
2724
version_type=linux # correct to gnu/linux during the next big refactor
2676
2725
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2677
2726
shlibpath_var=LD_LIBRARY_PATH
2678
2727
shlibpath_overrides_runpath=yes
2768
2817
sysv4 | sysv4.3*)
2818
version_type=linux # correct to gnu/linux during the next big refactor
2770
2819
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2771
2820
soname_spec='${libname}${release}${shared_ext}$major'
2772
2821
shlibpath_var=LD_LIBRARY_PATH
2792
2841
if test -d /usr/nec ;then
2842
version_type=linux # correct to gnu/linux during the next big refactor
2794
2843
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
2795
2844
soname_spec='$libname${shared_ext}.$major'
2796
2845
shlibpath_var=LD_LIBRARY_PATH
2883
version_type=linux # correct to gnu/linux during the next big refactor
2835
2884
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2836
2885
soname_spec='${libname}${release}${shared_ext}$major'
2837
2886
shlibpath_var=LD_LIBRARY_PATH
3253
3302
lt_cv_deplibs_check_method=pass_all
3256
# This must be Linux ELF.
3305
# This must be glibc/ELF.
3257
3306
linux* | k*bsd*-gnu | kopensolaris*-gnu)
3258
3307
lt_cv_deplibs_check_method=pass_all
3261
netbsd* | netbsdelf*-gnu)
3262
3311
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3263
3312
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3673
3722
# which start with @ or ?.
3674
3723
lt_cv_sys_global_symbol_pipe="$AWK ['"\
3675
3724
" {last_section=section; section=\$ 3};"\
3725
" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
3676
3726
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
3677
3727
" \$ 0!~/External *\|/{next};"\
3678
3728
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4257
4307
case $cc_basename in
4258
4308
nvcc*) # Cuda Compiler Driver 2.2
4259
4309
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
4260
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-Xcompiler -fPIC'
4310
if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4311
_LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
4351
4403
case `$CC -V 2>&1 | sed 5q` in
4352
*Sun\ F* | *Sun*Fortran*)
4404
*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
4353
4405
# Sun Fortran 8.3 passes all unrecognized flags to the linker
4354
4406
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4355
4407
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4356
4408
_LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4410
*Sun\ F* | *Sun*Fortran*)
4411
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4412
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4413
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4360
4417
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4361
4418
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4362
4419
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4421
*Intel*\ [[CF]]*Compiler*)
4422
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4423
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4424
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4427
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4428
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4429
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4521
4588
cygwin* | mingw* | cegcc*)
4522
4589
case $cc_basename in
4591
_LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
4525
4594
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
4526
4595
_LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
4530
linux* | k*bsd*-gnu | gnu*)
4531
_LT_TAGVAR(link_all_deplibs, $1)=no
4534
4600
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4548
4614
_LT_TAGVAR(hardcode_direct, $1)=no
4549
4615
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
4550
4616
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4551
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4552
4617
_LT_TAGVAR(hardcode_libdir_separator, $1)=
4553
4618
_LT_TAGVAR(hardcode_minus_L, $1)=no
4554
4619
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4802
4864
xlf* | bgf* | bgxlf* | mpixlf*)
4803
4865
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself
4804
4866
_LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
4805
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4806
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
4867
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4807
4868
_LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
4808
4869
if test "x$supports_anon_versioning" = xyes; then
4809
4870
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
4995
5056
if test "$aix_use_runtimelinking" = yes; then
4996
5057
shared_flag="$shared_flag "'${wl}-G'
4998
_LT_TAGVAR(link_all_deplibs, $1)=no
5000
5060
# not using gcc
5001
5061
if test "$host_cpu" = ia64; then
5099
5159
# The linker will not automatically build a static lib if we build a DLL.
5100
5160
# _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5101
5161
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5162
_LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
5102
5163
_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'
5103
5164
# Don't use ranlib
5104
5165
_LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
5145
5206
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5149
_LT_TAGVAR(ld_shlibs, $1)=no
5152
5209
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5153
5210
# support. Future versions do this automatically, but an explicit c++rt0.o
5154
5211
# does not break anything, and helps significantly (at the cost of a little
5163
5220
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
5165
5222
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5166
5223
_LT_TAGVAR(hardcode_direct, $1)=yes
5167
5224
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5201
5258
if test "$with_gnu_ld" = no; then
5202
5259
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5203
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
5204
5260
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5205
5261
_LT_TAGVAR(hardcode_direct, $1)=yes
5206
5262
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5304
5360
_LT_TAGVAR(link_all_deplibs, $1)=yes
5307
netbsd* | netbsdelf*-gnu)
5308
5364
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5309
5365
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5642
5698
_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
5643
5699
[Flag to hardcode $libdir into a binary during linking.
5644
5700
This must work even if $libdir does not exist])
5645
_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
5646
[[If ld is used when linking, flag to hardcode $libdir into a binary
5647
during linking. This must work even if $libdir does not exist]])
5648
5701
_LT_TAGDECL([], [hardcode_libdir_separator], [1],
5649
5702
[Whether we need a single "-rpath" flag with a separated argument])
5650
5703
_LT_TAGDECL([], [hardcode_direct], [0],
5798
5851
_LT_TAGVAR(hardcode_direct, $1)=no
5799
5852
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
5800
5853
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5801
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5802
5854
_LT_TAGVAR(hardcode_libdir_separator, $1)=
5803
5855
_LT_TAGVAR(hardcode_minus_L, $1)=no
5804
5856
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6984
], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
6934
6991
_lt_libdeps_save_CFLAGS=$CFLAGS
6935
6992
case "$CC $CFLAGS " in #(
6936
6993
*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
6937
6994
*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
6995
*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
6940
6998
dnl Parse the compiler output and extract the necessary
7131
7189
_LT_TAGVAR(hardcode_direct, $1)=no
7132
7190
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
7133
7191
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7134
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7135
7192
_LT_TAGVAR(hardcode_libdir_separator, $1)=
7136
7193
_LT_TAGVAR(hardcode_minus_L, $1)=no
7137
7194
_LT_TAGVAR(hardcode_automatic, $1)=no
7264
7321
_LT_TAGVAR(hardcode_direct, $1)=no
7265
7322
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
7266
7323
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7267
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7268
7324
_LT_TAGVAR(hardcode_libdir_separator, $1)=
7269
7325
_LT_TAGVAR(hardcode_minus_L, $1)=no
7270
7326
_LT_TAGVAR(hardcode_automatic, $1)=no
7447
7503
])# _LT_LANG_GCJ_CONFIG
7506
# _LT_LANG_GO_CONFIG([TAG])
7507
# --------------------------
7508
# Ensure that the configuration variables for the GNU Go compiler
7509
# are suitably defined. These variables are subsequently used by _LT_CONFIG
7510
# to write the compiler configuration to `libtool'.
7511
m4_defun([_LT_LANG_GO_CONFIG],
7512
[AC_REQUIRE([LT_PROG_GO])dnl
7515
# Source file extension for Go test sources.
7518
# Object file extension for compiled Go test sources.
7520
_LT_TAGVAR(objext, $1)=$objext
7522
# Code to be used in simple compile tests
7523
lt_simple_compile_test_code="package main; func main() { }"
7525
# Code to be used in simple link tests
7526
lt_simple_link_test_code='package main; func main() { }'
7528
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7531
# save warnings/boilerplate of simple test code
7532
_LT_COMPILER_BOILERPLATE
7533
_LT_LINKER_BOILERPLATE
7535
# Allow CC to be a program name with arguments.
7537
lt_save_CFLAGS=$CFLAGS
7543
_LT_TAGVAR(compiler, $1)=$CC
7544
_LT_TAGVAR(LD, $1)="$LD"
7545
_LT_CC_BASENAME([$compiler])
7547
# Go did not exist at the time GCC didn't implicitly link libc in.
7548
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7550
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7551
_LT_TAGVAR(reload_flag, $1)=$reload_flag
7552
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7554
if test -n "$compiler"; then
7555
_LT_COMPILER_NO_RTTI($1)
7556
_LT_COMPILER_PIC($1)
7557
_LT_COMPILER_C_O($1)
7558
_LT_COMPILER_FILE_LOCKS($1)
7559
_LT_LINKER_SHLIBS($1)
7560
_LT_LINKER_HARDCODE_LIBPATH($1)
7569
CFLAGS=$lt_save_CFLAGS
7570
])# _LT_LANG_GO_CONFIG
7450
7573
# _LT_LANG_RC_CONFIG([TAG])
7451
7574
# -------------------------
7452
7575
# Ensure that the configuration variables for the Windows resource compiler
8180
8310
# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
8181
8311
m4_define([_LT_WITH_PIC],
8182
8312
[AC_ARG_WITH([pic],
8183
[AS_HELP_STRING([--with-pic],
8313
[AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
8184
8314
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
8185
[pic_mode="$withval"],
8315
[lt_p=${PACKAGE-default}
8317
yes|no) pic_mode=$withval ;;
8320
# Look at the argument we got. We use all the common list separators.
8321
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8322
for lt_pkg in $withval; do
8324
if test "X$lt_pkg" = "X$lt_p"; then
8186
8331
[pic_mode=default])
8188
8333
test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
8355
8500
# @configure_input@
8357
# serial 3293 ltversion.m4
8502
# serial 3337 ltversion.m4
8358
8503
# This file is part of GNU Libtool
8360
m4_define([LT_PACKAGE_VERSION], [2.4])
8361
m4_define([LT_PACKAGE_REVISION], [1.3293])
8505
m4_define([LT_PACKAGE_VERSION], [2.4.2])
8506
m4_define([LT_PACKAGE_REVISION], [1.3337])
8363
8508
AC_DEFUN([LTVERSION_VERSION],
8364
[macro_version='2.4'
8365
macro_revision='1.3293'
8509
[macro_version='2.4.2'
8510
macro_revision='1.3337'
8366
8511
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
8367
8512
_LT_DECL(, macro_revision, 0)
8494
8639
# ----------------------------------
8495
8640
AC_DEFUN([PKG_PROG_PKG_CONFIG],
8496
8641
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
8497
m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
8498
m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
8642
m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
8499
8643
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
8500
8644
AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
8501
8645
AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
8541
8685
pkg_cv_[]$1="$$1"
8542
8686
elif test -n "$PKG_CONFIG"; then
8543
8687
PKG_CHECK_EXISTS([$3],
8544
[pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
8545
test "x$?" != "x0" && pkg_failed=yes ],
8688
[pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
8546
8689
[pkg_failed=yes])
8548
8691
pkg_failed=untried
8590
8733
AC_MSG_RESULT([no])
8591
8734
_PKG_SHORT_ERRORS_SUPPORTED
8592
8735
if test $_pkg_short_errors_supported = yes; then
8593
$1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
8736
$1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
8595
$1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
8738
$1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
8597
8740
# Put the nasty error message in config.log where it belongs
8598
8741
echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
8627
8770
])# PKG_CHECK_MODULES
8629
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
8772
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
8631
8775
# This file is free software; the Free Software Foundation
8632
8776
# gives unlimited permission to copy and/or distribute it,
8633
8777
# with or without modifications, as long as this notice is preserved.
8635
8781
# AM_AUTOMAKE_VERSION(VERSION)
8636
8782
# ----------------------------
8637
8783
# Automake X.Y traces this macro to ensure aclocal.m4 has been
8641
8787
[am__api_version='1.11'
8642
8788
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
8643
8789
dnl require some minimum version. Point them to the right macro.
8644
m4_if([$1], [1.11.1], [],
8790
m4_if([$1], [1.11.6], [],
8645
8791
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
8657
8803
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
8658
8804
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
8659
8805
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
8660
[AM_AUTOMAKE_VERSION([1.11.1])dnl
8806
[AM_AUTOMAKE_VERSION([1.11.6])dnl
8661
8807
m4_ifndef([AC_AUTOCONF_VERSION],
8662
8808
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
8663
8809
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
8665
8811
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
8667
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
8813
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
8669
8815
# This file is free software; the Free Software Foundation
8670
8816
# gives unlimited permission to copy and/or distribute it,
8671
8817
# with or without modifications, as long as this notice is preserved.
8673
8821
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
8674
8822
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
8675
8823
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
8751
8899
Usually this means the macro was only invoked conditionally.]])
8754
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
8755
# Free Software Foundation, Inc.
8902
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
8903
# 2010, 2011 Free Software Foundation, Inc.
8757
8905
# This file is free software; the Free Software Foundation
8758
8906
# gives unlimited permission to copy and/or distribute it,
8759
8907
# with or without modifications, as long as this notice is preserved.
8763
8911
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
8764
8912
# written in clear, in which case automake, when reading aclocal.m4,
8798
8946
# instance it was reported that on HP-UX the gcc test will end up
8799
8947
# making a dummy file named `D' -- because `-MD' means `put the output
8801
8950
mkdir conftest.dir
8802
8951
# Copy depcomp to subdir because otherwise we won't find it if we're
8803
8952
# using a relative directory.
8865
msvisualcpp | msvcmsys)
9014
msvc7 | msvc7msys | msvisualcpp | msvcmsys)
8866
9015
# This compiler won't grok `-c -o', but also, the minuso test has
8867
9016
# not run yet. These depmodes are late enough in the game, and
8868
9017
# so weak that their functioning should not be impacted.
8927
9076
if test "x$enable_dependency_tracking" != xno; then
8928
9077
am_depcomp="$ac_aux_dir/depcomp"
8929
9078
AMDEPBACKSLASH='\'
8931
9081
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
8932
9082
AC_SUBST([AMDEPBACKSLASH])dnl
8933
9083
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
9084
AC_SUBST([am__nodep])dnl
9085
_AM_SUBST_NOTMAKE([am__nodep])dnl
8936
9088
# Generate code to set up dependency tracking. -*- Autoconf -*-
9153
9305
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
9155
# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
9307
# Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation,
9157
9310
# This file is free software; the Free Software Foundation
9158
9311
# gives unlimited permission to copy and/or distribute it,
9159
9312
# with or without modifications, as long as this notice is preserved.
9161
9316
# AM_PROG_INSTALL_SH
9162
9317
# ------------------
9163
9318
# Define $install_sh.
9292
# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9447
# Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
9294
9450
# This file is free software; the Free Software Foundation
9295
9451
# gives unlimited permission to copy and/or distribute it,
9296
9452
# with or without modifications, as long as this notice is preserved.
9298
9456
# AM_PROG_MKDIR_P
9299
9457
# ---------------
9300
9458
# Check for `mkdir -p'.
9318
9476
# Helper functions for option handling. -*- Autoconf -*-
9320
# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
9478
# Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
9322
9481
# This file is free software; the Free Software Foundation
9323
9482
# gives unlimited permission to copy and/or distribute it,
9324
9483
# with or without modifications, as long as this notice is preserved.
9328
9487
# _AM_MANGLE_OPTION(NAME)
9329
9488
# -----------------------
9331
9490
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
9333
9492
# _AM_SET_OPTION(NAME)
9334
# ------------------------------
9493
# --------------------
9335
9494
# Set option NAME. Presently that only means defining a flag for this option.
9336
9495
AC_DEFUN([_AM_SET_OPTION],
9337
9496
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
9339
9498
# _AM_SET_OPTIONS(OPTIONS)
9340
# ----------------------------------
9499
# ------------------------
9341
9500
# OPTIONS is a space-separated list of Automake options.
9342
9501
AC_DEFUN([_AM_SET_OPTIONS],
9343
9502
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
9414
9573
AC_MSG_RESULT(yes)])
9416
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
9575
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
9418
9577
# This file is free software; the Free Software Foundation
9419
9578
# gives unlimited permission to copy and/or distribute it,
9420
9579
# with or without modifications, as long as this notice is preserved.
9422
9583
# AM_PROG_INSTALL_STRIP
9423
9584
# ---------------------
9424
9585
# One issue with vendor `install' (even GNU) is that you can't
9441
9602
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
9442
9603
AC_SUBST([INSTALL_STRIP_PROGRAM])])
9444
# Copyright (C) 2006, 2008 Free Software Foundation, Inc.
9605
# Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
9446
9607
# This file is free software; the Free Software Foundation
9447
9608
# gives unlimited permission to copy and/or distribute it,
9448
9609
# with or without modifications, as long as this notice is preserved.
9452
9613
# _AM_SUBST_NOTMAKE(VARIABLE)
9453
9614
# ---------------------------
9456
9617
AC_DEFUN([_AM_SUBST_NOTMAKE])
9458
9619
# AM_SUBST_NOTMAKE(VARIABLE)
9459
# ---------------------------
9620
# --------------------------
9460
9621
# Public sister of _AM_SUBST_NOTMAKE.
9461
9622
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
9463
9624
# Check how to create a tarball. -*- Autoconf -*-
9465
# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
9626
# Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
9467
9628
# This file is free software; the Free Software Foundation
9468
9629
# gives unlimited permission to copy and/or distribute it,
9484
9645
# a tarball read from stdin.
9485
9646
# $(am__untar) < result.tar
9486
9647
AC_DEFUN([_AM_PROG_TAR],
9487
[# Always define AMTAR for backward compatibility.
9488
AM_MISSING_PROG([AMTAR], [tar])
9648
[# Always define AMTAR for backward compatibility. Yes, it's still used
9649
# in the wild :-( We should find a proper way to deprecate it ...
9650
AC_SUBST([AMTAR], ['$${TAR-tar}'])
9489
9651
m4_if([$1], [v7],
9490
[am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
9652
[am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
9491
9653
[m4_case([$1], [ustar],, [pax],,
9492
9654
[m4_fatal([Unknown tar format])])
9493
9655
AC_MSG_CHECKING([how to create a $1 tar archive])