513
517
# ----------------------------------
514
518
AC_DEFUN([PKG_PROG_PKG_CONFIG],
515
519
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
516
m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
520
m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
521
m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
517
522
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
518
523
AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
519
524
AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
559
564
pkg_cv_[]$1="$$1"
560
565
elif test -n "$PKG_CONFIG"; then
561
566
PKG_CHECK_EXISTS([$3],
562
[pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
567
[pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
568
test "x$?" != "x0" && pkg_failed=yes ],
563
569
[pkg_failed=yes])
565
571
pkg_failed=untried
607
613
AC_MSG_RESULT([no])
608
614
_PKG_SHORT_ERRORS_SUPPORTED
609
615
if test $_pkg_short_errors_supported = yes; then
610
$1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
616
$1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
612
$1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
618
$1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
614
620
# Put the nasty error message in config.log where it belongs
615
621
echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
1734
1740
dnl GTK_DOC_CHECK([minimum-gtk-doc-version])
1735
1741
AC_DEFUN([GTK_DOC_CHECK],
1743
AC_REQUIRE([PKG_PROG_PKG_CONFIG])
1737
1744
AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
1738
1745
AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
1761
1768
AC_MSG_ERROR([gtk-doc not installed and --enable-gtk-doc requested]))],
1762
1769
[PKG_CHECK_EXISTS([gtk-doc >= $1],,
1763
1770
AC_MSG_ERROR([You need to have gtk-doc >= $1 installed to build $PACKAGE_NAME]))])
1771
dnl don't check for glib if we build glib
1772
if test "x$PACKAGE_NAME" != "xglib"; then
1773
dnl don't fail if someone does not have glib
1774
PKG_CHECK_MODULES(GTKDOC_DEPS, glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0,,)
1766
1778
AC_MSG_CHECKING([whether to build gtk-doc documentation])
1985
1997
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
1987
1999
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
1988
# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
2000
# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
1990
2002
# Written by Gordon Matzigkeit, 1996
1992
2004
# This file is free software; the Free Software Foundation gives
1996
2008
m4_define([_LT_COPYING], [dnl
1997
2009
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
1998
# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
2010
# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
2000
2012
# Written by Gordon Matzigkeit, 1996
2002
2014
# This file is part of GNU Libtool.
2130
2142
AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
2131
2143
AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
2145
_LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
2133
2147
_LT_DECL([], [host_alias], [0], [The host system])dnl
2134
2148
_LT_DECL([], [host], [0])dnl
2135
2149
_LT_DECL([], [host_os], [0])dnl
2615
2629
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
2616
2630
configured by $[0], generated by m4_PACKAGE_STRING.
2618
Copyright (C) 2010 Free Software Foundation, Inc.
2632
Copyright (C) 2011 Free Software Foundation, Inc.
2619
2633
This config.lt script is free software; the Free Software Foundation
2620
2634
gives unlimited permision to copy, distribute and modify it."
2818
m4_ifndef([AC_PROG_GO], [
2819
# NOTE: This macro has been submitted for inclusion into #
2820
# GNU Autoconf as AC_PROG_GO. When it is available in #
2821
# a released version of Autoconf we should remove this #
2822
# macro and use it instead. #
2823
m4_defun([AC_PROG_GO],
2824
[AC_LANG_PUSH(Go)dnl
2825
AC_ARG_VAR([GOC], [Go compiler command])dnl
2826
AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
2827
_AC_ARG_VAR_LDFLAGS()dnl
2828
AC_CHECK_TOOL(GOC, gccgo)
2829
if test -z "$GOC"; then
2830
if test -n "$ac_tool_prefix"; then
2831
AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
2834
if test -z "$GOC"; then
2835
AC_CHECK_PROG(GOC, gccgo, gccgo, false)
2803
2841
# _LT_LANG_DEFAULT_CONFIG
2804
2842
# -----------------------
2805
2843
m4_defun([_LT_LANG_DEFAULT_CONFIG],
2830
2868
m4_ifdef([LT_PROG_GCJ],
2831
2869
[m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
2871
AC_PROVIDE_IFELSE([AC_PROG_GO],
2873
[m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
2833
2875
AC_PROVIDE_IFELSE([LT_PROG_RC],
2835
2877
[m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
2932
2974
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
2933
2975
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err
2935
if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
2977
# If there is a non-empty error log, and "single_module"
2978
# appears in it, assume the flag caused a linker warning
2979
if test -s conftest.err && $GREP single_module conftest.err; then
2980
cat conftest.err >&AS_MESSAGE_LOG_FD
2981
# Otherwise, if the output was created with a 0 exit code from
2982
# the compiler, it worked.
2983
elif test -f libconftest.dylib && test $_lt_result -eq 0; then
2936
2984
lt_cv_apple_cc_single_mod=yes
2938
2986
cat conftest.err >&AS_MESSAGE_LOG_FD
2940
2988
rm -rf libconftest.dylib*
2941
2989
rm -f conftest.*
2943
2992
AC_CACHE_CHECK([for -exported_symbols_list linker flag],
2944
2993
[lt_cv_ld_exported_symbols_list],
2945
2994
[lt_cv_ld_exported_symbols_list=no
2968
3018
echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
2969
3019
$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
2971
if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
3021
if test -s conftest.err && $GREP force_load conftest.err; then
3022
cat conftest.err >&AS_MESSAGE_LOG_FD
3023
elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
2972
3024
lt_cv_ld_force_load=yes
2974
3026
cat conftest.err >&AS_MESSAGE_LOG_FD
3016
# _LT_DARWIN_LINKER_FEATURES
3017
# --------------------------
3068
# _LT_DARWIN_LINKER_FEATURES([TAG])
3069
# ---------------------------------
3018
3070
# Checks for linker and compiler features on darwin
3019
3071
m4_defun([_LT_DARWIN_LINKER_FEATURES],
3025
3077
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3026
3078
if test "$lt_cv_ld_force_load" = "yes"; then
3027
3079
_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\"`'
3080
m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
3081
[FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes])
3029
3083
_LT_TAGVAR(whole_archive_flag_spec, $1)=''
3308
3362
CFLAGS="$SAVE_CFLAGS"
3312
3366
# Find out which ABI we are using.
3313
3367
echo 'int i;' > conftest.$ac_ext
3314
3368
if AC_TRY_EVAL(ac_compile); then
3315
3369
case `/usr/bin/file conftest.o` in
3317
3371
case $lt_cv_prog_gnu_ld in
3318
yes*) LD="${LD-ld} -m elf64_sparc" ;;
3375
LD="${LD-ld} -m elf_x86_64"
3378
LD="${LD-ld} -m elf64_sparc"
3381
# GNU ld 2.21 introduced _sol2 emulations. Use them if available.
3382
if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
3320
3387
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
3321
3388
LD="${LD-ld} -64"
3392
3459
if test -n "$RANLIB"; then
3393
3460
case $host_os in
3395
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
3462
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
3398
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
3465
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
3401
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
3468
old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
3404
3471
case $host_os in
3578
3645
lt_cv_sys_max_cmd_len=196608
3649
# The test takes a long time on OS/2.
3650
lt_cv_sys_max_cmd_len=8192
3582
3654
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3583
3655
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3617
3689
# If test is not a shell built-in, we'll probably end up computing a
3618
3690
# maximum length that is only half of the actual maximum length, but
3619
3691
# we can't tell.
3620
while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
3692
while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
3621
3693
= "X$teststring$teststring"; } >/dev/null 2>&1 &&
3622
3694
test $i != 17 # 1/2 MB should be enough
4504
version_type=linux # correct to gnu/linux during the next big refactor
4437
4505
need_lib_prefix=no
4438
4506
need_version=no
4439
4507
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
4440
4508
soname_spec='${libname}${release}${shared_ext}$major'
4441
4509
shlibpath_var=LD_LIBRARY_PATH
4510
shlibpath_overrides_runpath=no
4442
4511
hardcode_into_libs=yes
4515
version_type=linux # correct to gnu/linux during the next big refactor
4447
4516
need_lib_prefix=no
4448
4517
need_version=no
4449
4518
dynamic_linker="$host_os runtime_loader"
4557
4626
dynamic_linker=no
4560
# This must be Linux ELF.
4629
# This must be glibc/ELF.
4561
4630
linux* | k*bsd*-gnu | kopensolaris*-gnu)
4631
version_type=linux # correct to gnu/linux during the next big refactor
4563
4632
need_lib_prefix=no
4564
4633
need_version=no
4565
4634
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4588
4657
# before this can be enabled.
4589
4658
hardcode_into_libs=yes
4591
# Add ABI-specific directories to the system library path.
4592
sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
4594
4660
# Append ld.so.conf contents to the search path
4595
4661
if test -f /etc/ld.so.conf; then
4596
4662
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' ' '`
4597
sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
4663
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
4601
4666
# We used to test for /lib/ld.so.1 and disable shared libraries on
4694
version_type=linux # correct to gnu/linux during the next big refactor
4630
4695
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4631
4696
shlibpath_var=LD_LIBRARY_PATH
4632
4697
shlibpath_overrides_runpath=yes
4722
4787
sysv4 | sysv4.3*)
4788
version_type=linux # correct to gnu/linux during the next big refactor
4724
4789
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4725
4790
soname_spec='${libname}${release}${shared_ext}$major'
4726
4791
shlibpath_var=LD_LIBRARY_PATH
4746
4811
if test -d /usr/nec ;then
4812
version_type=linux # correct to gnu/linux during the next big refactor
4748
4813
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
4749
4814
soname_spec='$libname${shared_ext}.$major'
4750
4815
shlibpath_var=LD_LIBRARY_PATH
4853
version_type=linux # correct to gnu/linux during the next big refactor
4789
4854
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4790
4855
soname_spec='${libname}${release}${shared_ext}$major'
4791
4856
shlibpath_var=LD_LIBRARY_PATH
5207
5272
lt_cv_deplibs_check_method=pass_all
5210
# This must be Linux ELF.
5275
# This must be glibc/ELF.
5211
5276
linux* | k*bsd*-gnu | kopensolaris*-gnu)
5212
5277
lt_cv_deplibs_check_method=pass_all
5627
5692
# which start with @ or ?.
5628
5693
lt_cv_sys_global_symbol_pipe="$AWK ['"\
5629
5694
" {last_section=section; section=\$ 3};"\
5695
" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5630
5696
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5631
5697
" \$ 0!~/External *\|/{next};"\
5632
5698
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6211
6277
case $cc_basename in
6212
6278
nvcc*) # Cuda Compiler Driver 2.2
6213
6279
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
6214
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-Xcompiler -fPIC'
6280
if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
6281
_LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
6305
6373
case `$CC -V 2>&1 | sed 5q` in
6306
*Sun\ F* | *Sun*Fortran*)
6374
*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
6307
6375
# Sun Fortran 8.3 passes all unrecognized flags to the linker
6308
6376
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6309
6377
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6310
6378
_LT_TAGVAR(lt_prog_compiler_wl, $1)=''
6380
*Sun\ F* | *Sun*Fortran*)
6381
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6382
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6383
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
6314
6387
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6315
6388
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6316
6389
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6391
*Intel*\ [[CF]]*Compiler*)
6392
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6393
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6394
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
6397
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6398
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
6399
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6475
6558
cygwin* | mingw* | cegcc*)
6476
6559
case $cc_basename in
6561
_LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
6479
6564
_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'
6480
6565
_LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
6499
6584
_LT_TAGVAR(hardcode_direct, $1)=no
6500
6585
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
6501
6586
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6502
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6503
6587
_LT_TAGVAR(hardcode_libdir_separator, $1)=
6504
6588
_LT_TAGVAR(hardcode_minus_L, $1)=no
6505
6589
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6750
6834
xlf* | bgf* | bgxlf* | mpixlf*)
6751
6835
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself
6752
6836
_LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
6753
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6754
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
6837
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6755
6838
_LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
6756
6839
if test "x$supports_anon_versioning" = xyes; then
6757
6840
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
7046
7129
# The linker will not automatically build a static lib if we build a DLL.
7047
7130
# _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
7048
7131
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
7132
_LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
7049
7133
_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'
7050
7134
# Don't use ranlib
7051
7135
_LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
7092
7176
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7096
_LT_TAGVAR(ld_shlibs, $1)=no
7099
7179
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7100
7180
# support. Future versions do this automatically, but an explicit c++rt0.o
7101
7181
# does not break anything, and helps significantly (at the cost of a little
7110
7190
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
7112
7192
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7113
7193
_LT_TAGVAR(hardcode_direct, $1)=yes
7114
7194
_LT_TAGVAR(hardcode_minus_L, $1)=yes
7148
7228
if test "$with_gnu_ld" = no; then
7149
7229
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
7150
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
7151
7230
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
7152
7231
_LT_TAGVAR(hardcode_direct, $1)=yes
7153
7232
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
7589
7668
_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
7590
7669
[Flag to hardcode $libdir into a binary during linking.
7591
7670
This must work even if $libdir does not exist])
7592
_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
7593
[[If ld is used when linking, flag to hardcode $libdir into a binary
7594
during linking. This must work even if $libdir does not exist]])
7595
7671
_LT_TAGDECL([], [hardcode_libdir_separator], [1],
7596
7672
[Whether we need a single "-rpath" flag with a separated argument])
7597
7673
_LT_TAGDECL([], [hardcode_direct], [0],
7745
7821
_LT_TAGVAR(hardcode_direct, $1)=no
7746
7822
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
7747
7823
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7748
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7749
7824
_LT_TAGVAR(hardcode_libdir_separator, $1)=
7750
7825
_LT_TAGVAR(hardcode_minus_L, $1)=no
7751
7826
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
8954
], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
8881
8961
_lt_libdeps_save_CFLAGS=$CFLAGS
8882
8962
case "$CC $CFLAGS " in #(
8883
8963
*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
8884
8964
*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
8965
*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
8887
8968
dnl Parse the compiler output and extract the necessary
9078
9159
_LT_TAGVAR(hardcode_direct, $1)=no
9079
9160
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
9080
9161
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
9081
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
9082
9162
_LT_TAGVAR(hardcode_libdir_separator, $1)=
9083
9163
_LT_TAGVAR(hardcode_minus_L, $1)=no
9084
9164
_LT_TAGVAR(hardcode_automatic, $1)=no
9211
9291
_LT_TAGVAR(hardcode_direct, $1)=no
9212
9292
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
9213
9293
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
9214
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
9215
9294
_LT_TAGVAR(hardcode_libdir_separator, $1)=
9216
9295
_LT_TAGVAR(hardcode_minus_L, $1)=no
9217
9296
_LT_TAGVAR(hardcode_automatic, $1)=no
9394
9473
])# _LT_LANG_GCJ_CONFIG
9476
# _LT_LANG_GO_CONFIG([TAG])
9477
# --------------------------
9478
# Ensure that the configuration variables for the GNU Go compiler
9479
# are suitably defined. These variables are subsequently used by _LT_CONFIG
9480
# to write the compiler configuration to `libtool'.
9481
m4_defun([_LT_LANG_GO_CONFIG],
9482
[AC_REQUIRE([LT_PROG_GO])dnl
9485
# Source file extension for Go test sources.
9488
# Object file extension for compiled Go test sources.
9490
_LT_TAGVAR(objext, $1)=$objext
9492
# Code to be used in simple compile tests
9493
lt_simple_compile_test_code="package main; func main() { }"
9495
# Code to be used in simple link tests
9496
lt_simple_link_test_code='package main; func main() { }'
9498
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9501
# save warnings/boilerplate of simple test code
9502
_LT_COMPILER_BOILERPLATE
9503
_LT_LINKER_BOILERPLATE
9505
# Allow CC to be a program name with arguments.
9507
lt_save_CFLAGS=$CFLAGS
9513
_LT_TAGVAR(compiler, $1)=$CC
9514
_LT_TAGVAR(LD, $1)="$LD"
9515
_LT_CC_BASENAME([$compiler])
9517
# Go did not exist at the time GCC didn't implicitly link libc in.
9518
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
9520
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
9521
_LT_TAGVAR(reload_flag, $1)=$reload_flag
9522
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
9524
if test -n "$compiler"; then
9525
_LT_COMPILER_NO_RTTI($1)
9526
_LT_COMPILER_PIC($1)
9527
_LT_COMPILER_C_O($1)
9528
_LT_COMPILER_FILE_LOCKS($1)
9529
_LT_LINKER_SHLIBS($1)
9530
_LT_LINKER_HARDCODE_LIBPATH($1)
9539
CFLAGS=$lt_save_CFLAGS
9540
])# _LT_LANG_GO_CONFIG
9397
9543
# _LT_LANG_RC_CONFIG([TAG])
9398
9544
# -------------------------
9399
9545
# Ensure that the configuration variables for the Windows resource compiler
10127
10280
# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
10128
10281
m4_define([_LT_WITH_PIC],
10129
10282
[AC_ARG_WITH([pic],
10130
[AS_HELP_STRING([--with-pic],
10283
[AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
10131
10284
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
10132
[pic_mode="$withval"],
10285
[lt_p=${PACKAGE-default}
10287
yes|no) pic_mode=$withval ;;
10290
# Look at the argument we got. We use all the common list separators.
10291
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10292
for lt_pkg in $withval; do
10294
if test "X$lt_pkg" = "X$lt_p"; then
10133
10301
[pic_mode=default])
10135
10303
test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
10302
10470
# @configure_input@
10304
# serial 3293 ltversion.m4
10472
# serial 3337 ltversion.m4
10305
10473
# This file is part of GNU Libtool
10307
m4_define([LT_PACKAGE_VERSION], [2.4])
10308
m4_define([LT_PACKAGE_REVISION], [1.3293])
10475
m4_define([LT_PACKAGE_VERSION], [2.4.2])
10476
m4_define([LT_PACKAGE_REVISION], [1.3337])
10310
10478
AC_DEFUN([LTVERSION_VERSION],
10311
[macro_version='2.4'
10312
macro_revision='1.3293'
10479
[macro_version='2.4.2'
10480
macro_revision='1.3337'
10313
10481
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
10314
10482
_LT_DECL(, macro_revision, 0)