4326
8109
test -z "$pic_mode" && pic_mode=default
4328
# We assume here that the value for lt_cv_prog_cc_pic will not be cached
4329
# in isolation, and that seeing it set (from the cache) indicates that
4330
# the associated values are set (in the cache) correctly too.
4331
echo "$as_me:4331: checking for $compiler option to produce PIC" >&5
4332
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
4333
if test "${lt_cv_prog_cc_pic+set}" = set; then
4334
echo $ECHO_N "(cached) $ECHO_C" >&6
4337
lt_cv_prog_cc_shlib=
4339
lt_cv_prog_cc_static=
4340
lt_cv_prog_cc_no_builtin=
4341
lt_cv_prog_cc_can_build_shared=$can_build_shared
4343
if test "$GCC" = yes; then
4344
lt_cv_prog_cc_wl='-Wl,'
4345
lt_cv_prog_cc_static='-static'
4349
# Below there is a dirty hack to force normal static linking with -ldl
4350
# The problem is because libdl dynamically linked with both libc and
4351
# libC (AIX C++ library), which obviously doesn't included in libraries
4352
# list by gcc. This cause undefined symbols with -static flags.
4353
# This hack allows C programs to be linked with "-static -ldl", but
4354
# we not sure about C++ programs.
4355
lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4358
# FIXME: we need at least 68020 code to build shared libraries, but
4359
# adding the `-m68020' flag to GCC prevents building anything better,
4361
lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4363
beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
4364
# PIC is the default for these OSes.
4366
darwin* | rhapsody*)
4367
# PIC is the default on this platform
4368
# Common symbols not allowed in MH_DYLIB files
4369
lt_cv_prog_cc_pic='-fno-common'
4371
cygwin* | mingw* | pw32* | os2*)
4372
# This hack is so that the source file can tell whether it is being
4373
# built for inclusion in a dll (and should export symbols for example).
4374
lt_cv_prog_cc_pic='-DDLL_EXPORT'
4377
if test -d /usr/nec; then
4378
lt_cv_prog_cc_pic=-Kconform_pic
4382
lt_cv_prog_cc_pic='-fPIC'
4386
# PORTME Check for PIC flags for the system compiler.
4388
aix3* | aix4* | aix5*)
4389
# All AIX code is PIC.
4390
if test "$host_cpu" = ia64; then
4391
# AIX 5 now supports IA64 processor
4392
lt_cv_prog_cc_static='-Bstatic'
4393
lt_cv_prog_cc_wl='-Wl,'
4395
lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4399
hpux9* | hpux10* | hpux11*)
4400
# Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4401
lt_cv_prog_cc_wl='-Wl,'
4402
lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4403
lt_cv_prog_cc_pic='+Z'
4407
lt_cv_prog_cc_wl='-Wl,'
4408
lt_cv_prog_cc_static='-non_shared'
4409
# PIC (with -KPIC) is the default.
4412
cygwin* | mingw* | pw32* | os2*)
4413
# This hack is so that the source file can tell whether it is being
4414
# built for inclusion in a dll (and should export symbols for example).
4415
lt_cv_prog_cc_pic='-DDLL_EXPORT'
4419
lt_cv_prog_cc_pic='-KPIC'
4420
lt_cv_prog_cc_static='-Bstatic'
4423
osf3* | osf4* | osf5*)
4424
# All OSF/1 code is PIC.
4425
lt_cv_prog_cc_wl='-Wl,'
4426
lt_cv_prog_cc_static='-non_shared'
4430
lt_cv_prog_cc_pic='-Kpic'
4431
lt_cv_prog_cc_static='-dn'
4432
lt_cv_prog_cc_shlib='-belf'
4436
lt_cv_prog_cc_pic='-KPIC'
4437
lt_cv_prog_cc_static='-Bstatic'
4438
lt_cv_prog_cc_wl='-Wl,'
4442
lt_cv_prog_cc_pic='-PIC'
4443
lt_cv_prog_cc_static='-Bstatic'
4444
lt_cv_prog_cc_wl='-Qoption ld '
4447
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4448
lt_cv_prog_cc_pic='-KPIC'
4449
lt_cv_prog_cc_static='-Bstatic'
4450
if test "x$host_vendor" = xsni; then
4451
lt_cv_prog_cc_wl='-LD'
4453
lt_cv_prog_cc_wl='-Wl,'
4458
lt_cv_prog_cc_pic='-pic'
4459
lt_cv_prog_cc_static='-Bstatic'
4463
if test -d /usr/nec ;then
4464
lt_cv_prog_cc_pic='-Kconform_pic'
4465
lt_cv_prog_cc_static='-Bstatic'
4470
lt_cv_prog_cc_can_build_shared=no
4477
if test -z "$lt_cv_prog_cc_pic"; then
4478
echo "$as_me:4478: result: none" >&5
4479
echo "${ECHO_T}none" >&6
4481
echo "$as_me:4481: result: $lt_cv_prog_cc_pic" >&5
4482
echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
4484
# Check to make sure the pic_flag actually works.
4485
echo "$as_me:4485: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
4486
echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
4487
if test "${lt_cv_prog_cc_pic_works+set}" = set; then
4488
echo $ECHO_N "(cached) $ECHO_C" >&6
4490
save_CFLAGS="$CFLAGS"
4491
CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
4492
cat >conftest.$ac_ext <<_ACEOF
4493
#line 4493 "configure"
4494
#include "confdefs.h"
4504
rm -f conftest.$ac_objext
4505
if { (eval echo "$as_me:4505: \"$ac_compile\"") >&5
4506
(eval $ac_compile) 2>&5
4508
echo "$as_me:4508: \$? = $ac_status" >&5
4509
(exit $ac_status); } &&
4510
{ ac_try='test -s conftest.$ac_objext'
4511
{ (eval echo "$as_me:4511: \"$ac_try\"") >&5
4514
echo "$as_me:4514: \$? = $ac_status" >&5
4515
(exit $ac_status); }; }; then
4517
hpux9* | hpux10* | hpux11*)
4518
# On HP-UX, both CC and GCC only warn that PIC is supported... then
4519
# they create non-PIC objects. So, if there were any warnings, we
4520
# assume that PIC is not supported.
4521
if test -s conftest.err; then
4522
lt_cv_prog_cc_pic_works=no
4524
lt_cv_prog_cc_pic_works=yes
4528
lt_cv_prog_cc_pic_works=yes
4533
echo "$as_me: failed program was:" >&5
4534
cat conftest.$ac_ext >&5
4535
lt_cv_prog_cc_pic_works=no
4538
rm -f conftest.$ac_objext conftest.$ac_ext
4539
CFLAGS="$save_CFLAGS"
4543
if test "X$lt_cv_prog_cc_pic_works" = Xno; then
4545
lt_cv_prog_cc_can_build_shared=no
4547
lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
4550
echo "$as_me:4550: result: $lt_cv_prog_cc_pic_works" >&5
4551
echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
8111
# Use C for the default configuration in the libtool script
8115
ac_cpp='$CPP $CPPFLAGS'
8116
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8117
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8118
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8121
# Source file extension for C test sources.
8124
# Object file extension for compiled C test sources.
8128
# Code to be used in simple compile tests
8129
lt_simple_compile_test_code="int some_variable = 0;\n"
8131
# Code to be used in simple link tests
8132
lt_simple_link_test_code='int main(){return(0);}\n'
8135
# If no C compiler was specified, use CC.
8138
# Allow CC to be a program name with arguments.
4554
8143
# Check for any special shared library compilation flags.
4555
if test -n "$lt_cv_prog_cc_shlib"; then
4556
{ echo "$as_me:4556: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
4557
echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
4558
if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
4560
{ echo "$as_me:4560: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
4561
echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
4562
lt_cv_prog_cc_can_build_shared=no
4566
echo "$as_me:4566: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
4567
echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
4568
if test "${lt_cv_prog_cc_static_works+set}" = set; then
4569
echo $ECHO_N "(cached) $ECHO_C" >&6
4571
lt_cv_prog_cc_static_works=no
4572
save_LDFLAGS="$LDFLAGS"
4573
LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
4574
cat >conftest.$ac_ext <<_ACEOF
4575
#line 4575 "configure"
4576
#include "confdefs.h"
4586
rm -f conftest.$ac_objext conftest$ac_exeext
4587
if { (eval echo "$as_me:4587: \"$ac_link\"") >&5
4588
(eval $ac_link) 2>&5
4590
echo "$as_me:4590: \$? = $ac_status" >&5
4591
(exit $ac_status); } &&
4592
{ ac_try='test -s conftest$ac_exeext'
4593
{ (eval echo "$as_me:4593: \"$ac_try\"") >&5
4596
echo "$as_me:4596: \$? = $ac_status" >&5
4597
(exit $ac_status); }; }; then
4598
lt_cv_prog_cc_static_works=yes
4600
echo "$as_me: failed program was:" >&5
4601
cat conftest.$ac_ext >&5
4603
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4604
LDFLAGS="$save_LDFLAGS"
4608
# Belt *and* braces to stop my trousers falling down:
4609
test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
4610
echo "$as_me:4610: result: $lt_cv_prog_cc_static_works" >&5
4611
echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
4613
pic_flag="$lt_cv_prog_cc_pic"
4614
special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
4615
wl="$lt_cv_prog_cc_wl"
4616
link_static_flag="$lt_cv_prog_cc_static"
4617
no_builtin_flag="$lt_cv_prog_cc_no_builtin"
4618
can_build_shared="$lt_cv_prog_cc_can_build_shared"
4620
# Check to see if options -o and -c are simultaneously supported by compiler
4621
echo "$as_me:4621: checking if $compiler supports -c -o file.$ac_objext" >&5
4622
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
4623
if test "${lt_cv_compiler_c_o+set}" = set; then
4624
echo $ECHO_N "(cached) $ECHO_C" >&6
4627
$rm -r conftest 2>/dev/null
4630
echo "int some_variable = 0;" > conftest.$ac_ext
4632
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
4633
# that will create temporary files in the current directory regardless of
4634
# the output directory. Thus, making CWD read-only will cause this test
4635
# to fail, enabling locking or at least warning the user not to do parallel
4638
save_CFLAGS="$CFLAGS"
4639
CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
4641
if { (eval echo configure:4641: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
4642
# The compiler can only warn and ignore the option if not recognized
4643
# So say no if there are warnings
4644
if test -s out/conftest.err; then
4645
lt_cv_compiler_c_o=no
4647
lt_cv_compiler_c_o=yes
4650
# Append any errors to the config.log.
4651
cat out/conftest.err 1>&5
4652
lt_cv_compiler_c_o=no
4654
CFLAGS="$save_CFLAGS"
4660
$rm -r conftest 2>/dev/null
4664
compiler_c_o=$lt_cv_compiler_c_o
4665
echo "$as_me:4665: result: $compiler_c_o" >&5
4666
echo "${ECHO_T}$compiler_c_o" >&6
4668
if test x"$compiler_c_o" = x"yes"; then
4669
# Check to see if we can write to a .lo
4670
echo "$as_me:4670: checking if $compiler supports -c -o file.lo" >&5
4671
echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
4672
if test "${lt_cv_compiler_o_lo+set}" = set; then
4673
echo $ECHO_N "(cached) $ECHO_C" >&6
4676
lt_cv_compiler_o_lo=no
4677
save_CFLAGS="$CFLAGS"
4678
CFLAGS="$CFLAGS -c -o conftest.lo"
4679
cat >conftest.$ac_ext <<_ACEOF
4680
#line 4680 "configure"
4681
#include "confdefs.h"
4686
int some_variable = 0;
4691
rm -f conftest.$ac_objext
4692
if { (eval echo "$as_me:4692: \"$ac_compile\"") >&5
4693
(eval $ac_compile) 2>&5
4695
echo "$as_me:4695: \$? = $ac_status" >&5
4696
(exit $ac_status); } &&
4697
{ ac_try='test -s conftest.$ac_objext'
4698
{ (eval echo "$as_me:4698: \"$ac_try\"") >&5
4701
echo "$as_me:4701: \$? = $ac_status" >&5
4702
(exit $ac_status); }; }; then
4703
# The compiler can only warn and ignore the option if not recognized
4704
# So say no if there are warnings
4705
if test -s conftest.err; then
4706
lt_cv_compiler_o_lo=no
4708
lt_cv_compiler_o_lo=yes
4712
echo "$as_me: failed program was:" >&5
4713
cat conftest.$ac_ext >&5
4715
rm -f conftest.$ac_objext conftest.$ac_ext
4716
CFLAGS="$save_CFLAGS"
4720
compiler_o_lo=$lt_cv_compiler_o_lo
4721
echo "$as_me:4721: result: $compiler_c_lo" >&5
4722
echo "${ECHO_T}$compiler_c_lo" >&6
4727
# Check to see if we can do hard links to lock some files if needed
4728
hard_links="nottested"
4729
if test "$compiler_c_o" = no && test "$need_locks" != no; then
4730
# do not overwrite the value of need_locks provided by the user
4731
echo "$as_me:4731: checking if we can lock with hard links" >&5
4732
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
4735
ln conftest.a conftest.b 2>/dev/null && hard_links=no
4737
ln conftest.a conftest.b 2>&5 || hard_links=no
4738
ln conftest.a conftest.b 2>/dev/null && hard_links=no
4739
echo "$as_me:4739: result: $hard_links" >&5
4740
echo "${ECHO_T}$hard_links" >&6
4741
if test "$hard_links" = no; then
4742
{ echo "$as_me:4742: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
4743
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
4750
if test "$GCC" = yes; then
4751
# Check to see if options -fno-rtti -fno-exceptions are supported by compiler
4752
echo "$as_me:4752: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
4753
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
4754
echo "int some_variable = 0;" > conftest.$ac_ext
4755
save_CFLAGS="$CFLAGS"
4756
CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
4757
compiler_rtti_exceptions=no
4758
cat >conftest.$ac_ext <<_ACEOF
4759
#line 4759 "configure"
4760
#include "confdefs.h"
4765
int some_variable = 0;
4770
rm -f conftest.$ac_objext
4771
if { (eval echo "$as_me:4771: \"$ac_compile\"") >&5
4772
(eval $ac_compile) 2>&5
4774
echo "$as_me:4774: \$? = $ac_status" >&5
4775
(exit $ac_status); } &&
4776
{ ac_try='test -s conftest.$ac_objext'
4777
{ (eval echo "$as_me:4777: \"$ac_try\"") >&5
4780
echo "$as_me:4780: \$? = $ac_status" >&5
4781
(exit $ac_status); }; }; then
4782
# The compiler can only warn and ignore the option if not recognized
4783
# So say no if there are warnings
4784
if test -s conftest.err; then
4785
compiler_rtti_exceptions=no
4787
compiler_rtti_exceptions=yes
4791
echo "$as_me: failed program was:" >&5
4792
cat conftest.$ac_ext >&5
4794
rm -f conftest.$ac_objext conftest.$ac_ext
4795
CFLAGS="$save_CFLAGS"
4796
echo "$as_me:4796: result: $compiler_rtti_exceptions" >&5
4797
echo "${ECHO_T}$compiler_rtti_exceptions" >&6
4799
if test "$compiler_rtti_exceptions" = "yes"; then
4800
no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
4802
no_builtin_flag=' -fno-builtin'
4806
# See if the linker supports building shared libraries.
4807
echo "$as_me:4807: checking whether the linker ($LD) supports shared libraries" >&5
4808
echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
4810
allow_undefined_flag=
4812
need_lib_prefix=unknown
4813
need_version=unknown
4814
# when you set need_version to no, make sure it does not cause -set_version
4815
# flags to be left without arguments
4817
archive_expsym_cmds=
4818
old_archive_from_new_cmds=
4819
old_archive_from_expsyms_cmds=
4820
export_dynamic_flag_spec=
4821
whole_archive_flag_spec=
4822
thread_safe_flag_spec=
4823
hardcode_into_libs=no
4824
hardcode_libdir_flag_spec=
4825
hardcode_libdir_separator=
4828
hardcode_shlibpath_var=unsupported
4830
link_all_deplibs=unknown
4831
always_export_symbols=no
4832
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
4833
# include_expsyms should be a list of space-separated symbols to be *always*
4834
# included in the symbol list
4836
# exclude_expsyms can be an egrep regular expression of symbols to exclude
4837
# it will be wrapped by ` (' and `)$', so one must not match beginning or
4838
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4839
# as well as any symbol that contains `d'.
4840
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
4841
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4842
# platforms (ab)use it in PIC code, but their linkers get confused if
4843
# the symbol is explicitly referenced. Since portable code cannot
4844
# rely on this symbol name, it's probably fine to never include it in
4845
# preloaded symbol tables.
4846
extract_expsyms_cmds=
4849
cygwin* | mingw* | pw32* )
4850
# FIXME: the MSVC++ port hasn't been tested in a loooong time
4851
# When not using gcc, we currently assume that we are using
4852
# Microsoft Visual C++.
4853
if test "$GCC" != yes; then
4861
if test "$with_gnu_ld" = yes; then
4862
# If archive_cmds runs LD, not CC, wlarc should be empty
4865
# See if GNU ld supports shared libraries.
4867
aix3* | aix4* | aix5*)
4868
# On AIX, the GNU linker is very broken
4869
# Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
4873
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
4874
*** to be unable to reliably create shared libraries on AIX.
4875
*** Therefore, libtool is disabling shared libraries support. If you
4876
*** really care for shared libraries, you may want to modify your PATH
4877
*** so that a non-GNU linker is found, and then restart.
4883
archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
4884
hardcode_libdir_flag_spec='-L$libdir'
4885
hardcode_minus_L=yes
4887
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
4888
# that the semantics of dynamic libraries on AmigaOS, at least up
4889
# to version 4, is to share data among multiple programs linked
4890
# with the same dynamic library. Since this doesn't match the
4891
# behavior of shared libraries on other platforms, we can use
4897
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4898
allow_undefined_flag=unsupported
4899
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4900
# support --undefined. This deserves some investigation. FIXME
4901
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4907
cygwin* | mingw* | pw32*)
4908
# hardcode_libdir_flag_spec is actually meaningless, as there is
4909
# no search path for DLLs.
4910
hardcode_libdir_flag_spec='-L$libdir'
4911
allow_undefined_flag=unsupported
4912
always_export_symbols=yes
4914
extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
4915
sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
4916
test -f $output_objdir/impgen.exe || (cd $output_objdir && \
4917
if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
4918
else $CC -o impgen impgen.c ; fi)~
4919
$output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
4921
old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
4923
# cygwin and mingw dlls have different entry points and sets of symbols
4925
# FIXME: what about values for MSVC?
4926
dll_entry=__cygwin_dll_entry@12
4927
dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
4931
dll_entry=_DllMainCRTStartup@12
4932
dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
4936
# mingw and cygwin differ, and it's simplest to just exclude the union
4937
# of the two symbol sets.
4938
dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
4940
# recent cygwin and mingw systems supply a stub DllMain which the user
4941
# can override, but on older systems we have to supply one (in ltdll.c)
4942
if test "x$lt_cv_need_dllmain" = "xyes"; then
4943
ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
4944
ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < [$]0 > $output_objdir/$soname-ltdll.c~
4945
test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
4951
# Extract the symbol export list from an `--export-all' def file,
4952
# then regenerate the def file from the symbol export list, so that
4953
# the compiled dll only exports the symbol export list.
4954
# Be careful not to strip the DATA tag left be newer dlltools.
4955
export_symbols_cmds="$ltdll_cmds"'
4956
$DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
4957
sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
4959
# If the export-symbols file already is a .def file (1st line
4960
# is EXPORTS), use it as is.
4961
# If DATA tags from a recent dlltool are present, honour them!
4962
archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
4963
cp $export_symbols $output_objdir/$soname-def;
4965
echo EXPORTS > $output_objdir/$soname-def;
4967
cat $export_symbols | while read symbol; do
4970
2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
4971
*) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
4973
_lt_hint=`expr 1 + \$_lt_hint`;
4977
$CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
4978
$DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
4979
$CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
4980
$DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
4981
$CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
4985
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4986
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4989
archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4990
archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4995
if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
4999
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
5000
*** create shared libraries on Solaris systems. Therefore, libtool
5001
*** is disabling shared libraries support. We urge you to upgrade GNU
5002
*** binutils to release 2.9.1 or newer. Another option is to modify
5003
*** your PATH or compiler configuration so that the native linker is
5004
*** used, and then restart.
5007
elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5008
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5009
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5016
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5019
hardcode_shlibpath_var=no
5023
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5024
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5025
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5032
if test "$ld_shlibs" = yes; then
5033
runpath_var=LD_RUN_PATH
5034
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5035
export_dynamic_flag_spec='${wl}--export-dynamic'
5037
cygwin* | mingw* | pw32*)
5038
# dlltool doesn't understand --whole-archive et. al.
5039
whole_archive_flag_spec=
5042
# ancient GNU ld didn't support --whole-archive et. al.
5043
if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5044
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5046
whole_archive_flag_spec=
5052
# PORTME fill in a description of your system's linker (not GNU ld)
5055
allow_undefined_flag=unsupported
5056
always_export_symbols=yes
5057
archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
5058
# Note: this linker hardcodes the directories in LIBPATH if there
5059
# are no directories specified by -L.
5060
hardcode_minus_L=yes
5061
if test "$GCC" = yes && test -z "$link_static_flag"; then
5062
# Neither direct hardcoding nor static linking is supported with a
5064
hardcode_direct=unsupported
5069
# When large executables or shared objects are built, AIX ld can
5070
# have problems creating the table of contents. If linking a library
5071
# or program results in "error TOC overflow" add -mminimal-toc to
5072
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5073
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5076
hardcode_libdir_separator=':'
5077
if test "$GCC" = yes; then
5078
collect2name=`${CC} -print-prog-name=collect2`
5079
if test -f "$collect2name" && \
5080
strings "$collect2name" | grep resolve_lib_name >/dev/null
5082
# We have reworked collect2
5085
# We have old collect2
5086
hardcode_direct=unsupported
5087
# It fails to find uninstalled libraries when the uninstalled
5088
# path is not listed in the libpath. Setting hardcode_minus_L
5089
# to unsupported forces relinking
5090
hardcode_minus_L=yes
5091
hardcode_libdir_flag_spec='-L$libdir'
5092
hardcode_libdir_separator=
5094
shared_flag='-shared'
5096
if test "$host_cpu" = ia64; then
5099
shared_flag='${wl}-bM:SRE'
5104
if test "$host_cpu" = ia64; then
5105
# On IA64, the linker does run time linking by default, so we don't
5106
# have to do anything special.
5107
aix_use_runtimelinking=no
5108
exp_sym_flag='-Bexport'
5111
# Test if we are trying to use run time linking, or normal AIX style linking.
5112
# If -brtl is somewhere in LDFLAGS, we need to do run time linking.
5113
aix_use_runtimelinking=no
5114
for ld_flag in $LDFLAGS; do
5115
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl" ); then
5116
aix_use_runtimelinking=yes
5120
exp_sym_flag='-bexport'
5121
no_entry_flag='-bnoentry'
5123
# It seems that -bexpall can do strange things, so it is better to
5124
# generate a list of symbols to export.
5125
always_export_symbols=yes
5126
if test "$aix_use_runtimelinking" = yes; then
5127
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5128
allow_undefined_flag=' -Wl,-G'
5129
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
5131
if test "$host_cpu" = ia64; then
5132
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5133
allow_undefined_flag="-znodefs"
5134
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
5136
hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5137
# Warning - without using the other run time loading flags, -berok will
5138
# link without error, but may produce a broken library.
5139
allow_undefined_flag='${wl}-berok"
5140
# This is a bit strange, but is similar to how AIX traditionally builds
5141
# it's shared libraries.
5142
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
5148
archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5149
hardcode_libdir_flag_spec='-L$libdir'
5150
hardcode_minus_L=yes
5151
# see comment about different semantics on the GNU ld section
5155
cygwin* | mingw* | pw32*)
5156
# When not using gcc, we currently assume that we are using
5157
# Microsoft Visual C++.
5158
# hardcode_libdir_flag_spec is actually meaningless, as there is
5159
# no search path for DLLs.
5160
hardcode_libdir_flag_spec=' '
5161
allow_undefined_flag=unsupported
5162
# Tell ltmain to make .lib files, not .a files.
5164
# FIXME: Setting linknames here is a bad hack.
5165
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5166
# The linker will automatically build a .lib file if we build a DLL.
5167
old_archive_from_new_cmds='true'
5168
# FIXME: Should let the user specify the lib program.
5169
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5170
fix_srcfile_path='`cygpath -w "$srcfile"`'
5173
darwin* | rhapsody*)
5174
allow_undefined_flag='-undefined suppress'
5175
# FIXME: Relying on posixy $() will cause problems for
5176
# cross-compilation, but unfortunately the echo tests do not
5177
# yet detect zsh echo's removal of \ escapes.
5178
archive_cmds='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linkopts -install_name $rpath/$soname $(test -n "$verstring" -a x$verstring != x0.0 && echo $verstring)'
5179
# We need to add '_' to the symbols in $export_symbols first
5180
#archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5182
hardcode_shlibpath_var=no
5183
whole_archive_flag_spec='-all_load $convenience'
5190
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5191
# support. Future versions do this automatically, but an explicit c++rt0.o
5192
# does not break anything, and helps significantly (at the cost of a little
5195
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5196
hardcode_libdir_flag_spec='-R$libdir'
5198
hardcode_shlibpath_var=no
5201
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
5203
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5205
hardcode_minus_L=yes
5206
hardcode_shlibpath_var=no
5209
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5211
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5212
hardcode_libdir_flag_spec='-R$libdir'
5214
hardcode_shlibpath_var=no
5217
hpux9* | hpux10* | hpux11*)
5219
hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
5220
*) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5222
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5223
hardcode_libdir_separator=:
5225
hardcode_minus_L=yes # Not in the search PATH, but as the default
5226
# location of the library.
5227
export_dynamic_flag_spec='${wl}-E'
5231
if test "$GCC" = yes; then
5232
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5234
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5236
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5237
hardcode_libdir_separator=:
5238
link_all_deplibs=yes
5242
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5243
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5245
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5247
hardcode_libdir_flag_spec='-R$libdir'
5249
hardcode_shlibpath_var=no
5253
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
5255
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5256
hardcode_libdir_separator=:
5257
hardcode_shlibpath_var=no
5261
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5262
hardcode_libdir_flag_spec='-R$libdir'
5264
hardcode_shlibpath_var=no
5268
hardcode_libdir_flag_spec='-L$libdir'
5269
hardcode_minus_L=yes
5270
allow_undefined_flag=unsupported
5271
archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
5272
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5276
if test "$GCC" = yes; then
5277
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5278
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5280
allow_undefined_flag=' -expect_unresolved \*'
5281
archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5283
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5284
hardcode_libdir_separator=:
5287
osf4* | osf5*) # as osf3* with the addition of -msym flag
5288
if test "$GCC" = yes; then
5289
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5290
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5291
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5293
allow_undefined_flag=' -expect_unresolved \*'
5294
archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5295
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5296
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
5298
#Both c and cxx compiler support -rpath directly
5299
hardcode_libdir_flag_spec='-rpath $libdir'
5301
hardcode_libdir_separator=:
8146
if test "$GCC" = no; then
5305
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5306
hardcode_shlibpath_var=no
5307
runpath_var=LD_RUN_PATH
5308
hardcode_runpath_var=yes
5312
no_undefined_flag=' -z defs'
5313
# $CC -shared without GNU ld will not create a library from C++
5314
# object files and a static libstdc++, better avoid it by now
5315
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5316
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5317
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5318
hardcode_libdir_flag_spec='-R$libdir'
5319
hardcode_shlibpath_var=no
5321
solaris2.[0-5] | solaris2.[0-5].*) ;;
5322
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
5323
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5325
link_all_deplibs=yes
5329
if test "x$host_vendor" = xsequent; then
5330
# Use $CC to link under sequent, because it throws in some extra .o
5331
# files that make .init and .fini sections work.
5332
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5334
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5336
hardcode_libdir_flag_spec='-L$libdir'
5338
hardcode_minus_L=yes
5339
hardcode_shlibpath_var=no
5343
if test "x$host_vendor" = xsno; then
5344
archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts'
5345
hardcode_direct=yes # is this really true???
5347
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5348
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5350
runpath_var='LD_RUN_PATH'
5351
hardcode_shlibpath_var=no
5355
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5356
hardcode_shlibpath_var=no
5357
export_dynamic_flag_spec='-Bexport'
5361
no_undefined_flag=' -z text'
5362
# $CC -shared without GNU ld will not create a library from C++
5363
# object files and a static libstdc++, better avoid it by now
5364
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5365
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5366
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5367
hardcode_libdir_flag_spec=
5368
hardcode_shlibpath_var=no
5369
runpath_var='LD_RUN_PATH'
5373
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5374
hardcode_libdir_flag_spec='-L$libdir'
5375
hardcode_shlibpath_var=no
5379
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5380
hardcode_libdir_flag_spec='-L$libdir'
5381
hardcode_shlibpath_var=no
5385
if test -d /usr/nec; then
5386
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5387
hardcode_shlibpath_var=no
5388
runpath_var=LD_RUN_PATH
5389
hardcode_runpath_var=yes
5395
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5398
hardcode_shlibpath_var=no
5399
hardcode_runpath_var=yes
5400
runpath_var=LD_RUN_PATH
5403
sysv5uw7* | unixware7*)
5404
no_undefined_flag='${wl}-z ${wl}text'
5405
if test "$GCC" = yes; then
5406
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5408
archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5410
runpath_var='LD_RUN_PATH'
5411
hardcode_shlibpath_var=no
8149
lt_prog_cc_shlib='-belf'
8153
if test -n "$lt_prog_cc_shlib"; then
8154
{ echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
8155
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
8156
if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
8158
{ echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
8159
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
8160
lt_cv_prog_cc_can_build_shared=no
8166
# Check to make sure the static flag actually works.
8168
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
8169
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
8170
if test "${lt_prog_compiler_static_works+set}" = set; then
8171
echo $ECHO_N "(cached) $ECHO_C" >&6
8173
lt_prog_compiler_static_works=no
8174
save_LDFLAGS="$LDFLAGS"
8175
LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
8176
printf "$lt_simple_link_test_code" > conftest.$ac_ext
8177
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8178
# The compiler can only warn and ignore the option if not recognized
8179
# So say no if there are warnings
8180
if test -s conftest.err; then
8181
# Append any errors to the config.log.
8182
cat conftest.err 1>&5
8184
lt_prog_compiler_static_works=yes
8188
LDFLAGS="$save_LDFLAGS"
8191
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8192
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8194
if test x"$lt_prog_compiler_static_works" = xyes; then
8197
lt_prog_compiler_static=
8203
lt_prog_compiler_no_builtin_flag=
8205
if test "$GCC" = yes; then
8206
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8209
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8210
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8211
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8212
echo $ECHO_N "(cached) $ECHO_C" >&6
8214
lt_cv_prog_compiler_rtti_exceptions=no
8215
ac_outfile=conftest.$ac_objext
8216
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8217
lt_compiler_flag="-fno-rtti -fno-exceptions"
8218
# Insert the option either (1) after the last *FLAGS variable, or
8219
# (2) before a word containing "conftest.", or (3) at the end.
8220
# Note that $ac_compile itself does not contain backslashes and begins
8221
# with a dollar sign (not a hyphen), so the echo should work correctly.
8222
# The option is referenced via a variable to avoid confusing sed.
8223
lt_compile=`echo "$ac_compile" | $SED \
8224
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8225
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8226
-e 's:$: $lt_compiler_flag:'`
8227
(eval echo "\"\$as_me:8227: $lt_compile\"" >&5)
8228
(eval "$lt_compile" 2>conftest.err)
8230
cat conftest.err >&5
8231
echo "$as_me:8231: \$? = $ac_status" >&5
8232
if (exit $ac_status) && test -s "$ac_outfile"; then
8233
# The compiler can only warn and ignore the option if not recognized
8234
# So say no if there are warnings
8235
if test ! -s conftest.err; then
8236
lt_cv_prog_compiler_rtti_exceptions=yes
8242
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8243
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8245
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8246
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8253
lt_prog_compiler_wl=
8254
lt_prog_compiler_pic=
8255
lt_prog_compiler_static=
8257
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8258
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8260
if test "$GCC" = yes; then
8261
lt_prog_compiler_wl='-Wl,'
8262
lt_prog_compiler_static='-static'
8266
# All AIX code is PIC.
8267
if test "$host_cpu" = ia64; then
8268
# AIX 5 now supports IA64 processor
8269
lt_prog_compiler_static='-Bstatic'
8274
# FIXME: we need at least 68020 code to build shared libraries, but
8275
# adding the `-m68020' flag to GCC prevents building anything better,
8277
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8280
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8281
# PIC is the default for these OSes.
8284
mingw* | pw32* | os2*)
8285
# This hack is so that the source file can tell whether it is being
8286
# built for inclusion in a dll (and should export symbols for example).
8287
lt_prog_compiler_pic='-DDLL_EXPORT'
8290
darwin* | rhapsody*)
8291
# PIC is the default on this platform
8292
# Common symbols not allowed in MH_DYLIB files
8293
lt_prog_compiler_pic='-fno-common'
8297
# Just because we use GCC doesn't mean we suddenly get shared libraries
8298
# on systems that don't support them.
8299
lt_prog_compiler_can_build_shared=no
8304
if test -d /usr/nec; then
8305
lt_prog_compiler_pic=-Kconform_pic
8310
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8317
lt_prog_compiler_pic='-fPIC'
8323
lt_prog_compiler_pic='-fPIC'
8327
# PORTME Check for flag to pass linker flags through the system compiler.
8330
lt_prog_compiler_wl='-Wl,'
8331
if test "$host_cpu" = ia64; then
8332
# AIX 5 now supports IA64 processor
8333
lt_prog_compiler_static='-Bstatic'
8335
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8339
# PIC is the default on this platform
8340
# Common symbols not allowed in MH_DYLIB files
8341
case "$cc_basename" in
8343
lt_prog_compiler_pic='-qnocommon'
8344
lt_prog_compiler_wl='-Wl,'
8349
mingw* | pw32* | os2*)
8350
# This hack is so that the source file can tell whether it is being
8351
# built for inclusion in a dll (and should export symbols for example).
8352
lt_prog_compiler_pic='-DDLL_EXPORT'
8355
hpux9* | hpux10* | hpux11*)
8356
lt_prog_compiler_wl='-Wl,'
8357
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8364
lt_prog_compiler_pic='+Z'
8367
# Is there a better lt_prog_compiler_static that works with the bundled CC?
8368
lt_prog_compiler_static='${wl}-a ${wl}archive'
8371
irix5* | irix6* | nonstopux*)
8372
lt_prog_compiler_wl='-Wl,'
8373
# PIC (with -KPIC) is the default.
8374
lt_prog_compiler_static='-non_shared'
8378
lt_prog_compiler_pic='-KPIC'
8379
lt_prog_compiler_static='-Bstatic'
8385
lt_prog_compiler_wl='-Wl,'
8386
lt_prog_compiler_pic='-KPIC'
8387
lt_prog_compiler_static='-static'
8390
lt_prog_compiler_wl='-Wl,'
8391
# All Alpha code is PIC.
8392
lt_prog_compiler_static='-non_shared'
8397
osf3* | osf4* | osf5*)
8398
lt_prog_compiler_wl='-Wl,'
8399
# All OSF/1 code is PIC.
8400
lt_prog_compiler_static='-non_shared'
8404
lt_prog_compiler_pic='-Kpic'
8405
lt_prog_compiler_static='-dn'
8409
lt_prog_compiler_wl='-Wl,'
8410
lt_prog_compiler_pic='-KPIC'
8411
lt_prog_compiler_static='-Bstatic'
8415
lt_prog_compiler_wl='-Qoption ld '
8416
lt_prog_compiler_pic='-PIC'
8417
lt_prog_compiler_static='-Bstatic'
8420
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8421
lt_prog_compiler_wl='-Wl,'
8422
lt_prog_compiler_pic='-KPIC'
8423
lt_prog_compiler_static='-Bstatic'
8427
if test -d /usr/nec ;then
8428
lt_prog_compiler_pic='-Kconform_pic'
8429
lt_prog_compiler_static='-Bstatic'
8434
lt_prog_compiler_pic='-pic'
8435
lt_prog_compiler_static='-Bstatic'
8439
lt_prog_compiler_can_build_shared=no
8444
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8445
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8448
# Check to make sure the PIC flag actually works.
8450
if test -n "$lt_prog_compiler_pic"; then
8452
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8453
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8454
if test "${lt_prog_compiler_pic_works+set}" = set; then
8455
echo $ECHO_N "(cached) $ECHO_C" >&6
8457
lt_prog_compiler_pic_works=no
8458
ac_outfile=conftest.$ac_objext
8459
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8460
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8461
# Insert the option either (1) after the last *FLAGS variable, or
8462
# (2) before a word containing "conftest.", or (3) at the end.
8463
# Note that $ac_compile itself does not contain backslashes and begins
8464
# with a dollar sign (not a hyphen), so the echo should work correctly.
8465
# The option is referenced via a variable to avoid confusing sed.
8466
lt_compile=`echo "$ac_compile" | $SED \
8467
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8468
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8469
-e 's:$: $lt_compiler_flag:'`
8470
(eval echo "\"\$as_me:8470: $lt_compile\"" >&5)
8471
(eval "$lt_compile" 2>conftest.err)
8473
cat conftest.err >&5
8474
echo "$as_me:8474: \$? = $ac_status" >&5
8475
if (exit $ac_status) && test -s "$ac_outfile"; then
8476
# The compiler can only warn and ignore the option if not recognized
8477
# So say no if there are warnings
8478
if test ! -s conftest.err; then
8479
lt_prog_compiler_pic_works=yes
8485
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8486
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8488
if test x"$lt_prog_compiler_pic_works" = xyes; then
8489
case $lt_prog_compiler_pic in
8491
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8494
lt_prog_compiler_pic=
8495
lt_prog_compiler_can_build_shared=no
8500
# For platforms which do not support PIC, -DPIC is meaningless:
8502
lt_prog_compiler_pic=
8505
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8509
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8510
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8511
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8512
echo $ECHO_N "(cached) $ECHO_C" >&6
8514
lt_cv_prog_compiler_c_o=no
8515
$rm -r conftest 2>/dev/null
8519
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8521
lt_compiler_flag="-o out/conftest2.$ac_objext"
8522
# Insert the option either (1) after the last *FLAGS variable, or
8523
# (2) before a word containing "conftest.", or (3) at the end.
8524
# Note that $ac_compile itself does not contain backslashes and begins
8525
# with a dollar sign (not a hyphen), so the echo should work correctly.
8526
lt_compile=`echo "$ac_compile" | $SED \
8527
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8528
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8529
-e 's:$: $lt_compiler_flag:'`
8530
(eval echo "\"\$as_me:8530: $lt_compile\"" >&5)
8531
(eval "$lt_compile" 2>out/conftest.err)
8533
cat out/conftest.err >&5
8534
echo "$as_me:8534: \$? = $ac_status" >&5
8535
if (exit $ac_status) && test -s out/conftest2.$ac_objext
8537
# The compiler can only warn and ignore the option if not recognized
8538
# So say no if there are warnings
8539
if test ! -s out/conftest.err; then
8540
lt_cv_prog_compiler_c_o=yes
8545
# SGI C++ compiler will create directory out/ii_files/ for
8546
# template instantiation
8547
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8548
$rm out/* && rmdir out
8554
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8555
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8558
hard_links="nottested"
8559
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8560
# do not overwrite the value of need_locks provided by the user
8561
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8562
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8565
ln conftest.a conftest.b 2>/dev/null && hard_links=no
8567
ln conftest.a conftest.b 2>&5 || hard_links=no
8568
ln conftest.a conftest.b 2>/dev/null && hard_links=no
8569
echo "$as_me:$LINENO: result: $hard_links" >&5
8570
echo "${ECHO_T}$hard_links" >&6
8571
if test "$hard_links" = no; then
8572
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8573
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8580
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8581
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8584
allow_undefined_flag=
8585
enable_shared_with_static_runtimes=no
8587
archive_expsym_cmds=
8588
old_archive_From_new_cmds=
8589
old_archive_from_expsyms_cmds=
8590
export_dynamic_flag_spec=
8591
whole_archive_flag_spec=
8592
thread_safe_flag_spec=
8593
hardcode_libdir_flag_spec=
8594
hardcode_libdir_flag_spec_ld=
8595
hardcode_libdir_separator=
8598
hardcode_shlibpath_var=unsupported
8599
link_all_deplibs=unknown
8600
hardcode_automatic=no
8603
always_export_symbols=no
8604
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8605
# include_expsyms should be a list of space-separated symbols to be *always*
8606
# included in the symbol list
8608
# exclude_expsyms can be an extended regexp of symbols to exclude
8609
# it will be wrapped by ` (' and `)$', so one must not match beginning or
8610
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8611
# as well as any symbol that contains `d'.
8612
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8613
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8614
# platforms (ab)use it in PIC code, but their linkers get confused if
8615
# the symbol is explicitly referenced. Since portable code cannot
8616
# rely on this symbol name, it's probably fine to never include it in
8617
# preloaded symbol tables.
8618
extract_expsyms_cmds=
8621
cygwin* | mingw* | pw32*)
8622
# FIXME: the MSVC++ port hasn't been tested in a loooong time
8623
# When not using gcc, we currently assume that we are using
8624
# Microsoft Visual C++.
8625
if test "$GCC" != yes; then
5419
echo "$as_me:5419: result: $ld_shlibs" >&5
8635
if test "$with_gnu_ld" = yes; then
8636
# If archive_cmds runs LD, not CC, wlarc should be empty
8639
# See if GNU ld supports shared libraries.
8641
aix3* | aix4* | aix5*)
8642
# On AIX/PPC, the GNU linker is very broken
8643
if test "$host_cpu" != ia64; then
8647
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8648
*** to be unable to reliably create shared libraries on AIX.
8649
*** Therefore, libtool is disabling shared libraries support. If you
8650
*** really care for shared libraries, you may want to modify your PATH
8651
*** so that a non-GNU linker is found, and then restart.
8658
archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8659
hardcode_libdir_flag_spec='-L$libdir'
8660
hardcode_minus_L=yes
8662
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8663
# that the semantics of dynamic libraries on AmigaOS, at least up
8664
# to version 4, is to share data among multiple programs linked
8665
# with the same dynamic library. Since this doesn't match the
8666
# behavior of shared libraries on other platforms, we can't use
8672
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8673
allow_undefined_flag=unsupported
8674
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8675
# support --undefined. This deserves some investigation. FIXME
8676
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8682
cygwin* | mingw* | pw32*)
8683
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8684
# as there is no search path for DLLs.
8685
hardcode_libdir_flag_spec='-L$libdir'
8686
allow_undefined_flag=unsupported
8687
always_export_symbols=no
8688
enable_shared_with_static_runtimes=yes
8689
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8691
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8692
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8693
# If the export-symbols file already is a .def file (1st line
8694
# is EXPORTS), use it as is; otherwise, prepend...
8695
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8696
cp $export_symbols $output_objdir/$soname.def;
8698
echo EXPORTS > $output_objdir/$soname.def;
8699
cat $export_symbols >> $output_objdir/$soname.def;
8701
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8708
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8709
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8712
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8713
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8718
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8722
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8723
*** create shared libraries on Solaris systems. Therefore, libtool
8724
*** is disabling shared libraries support. We urge you to upgrade GNU
8725
*** binutils to release 2.9.1 or newer. Another option is to modify
8726
*** your PATH or compiler configuration so that the native linker is
8727
*** used, and then restart.
8730
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8731
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8732
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8739
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8742
hardcode_shlibpath_var=no
8746
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8747
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8748
archive_cmds="$tmp_archive_cmds"
8749
supports_anon_versioning=no
8750
case `$LD -v 2>/dev/null` in
8751
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8752
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8753
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8754
*\ 2.11.*) ;; # other 2.11 versions
8755
*) supports_anon_versioning=yes ;;
8757
if test $supports_anon_versioning = yes; then
8758
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8759
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8760
$echo "local: *; };" >> $output_objdir/$libname.ver~
8761
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8763
archive_expsym_cmds="$tmp_archive_cmds"
8771
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8772
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8773
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8780
if test "$ld_shlibs" = yes; then
8781
runpath_var=LD_RUN_PATH
8782
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8783
export_dynamic_flag_spec='${wl}--export-dynamic'
8784
# ancient GNU ld didn't support --whole-archive et. al.
8785
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8786
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8788
whole_archive_flag_spec=
8792
# PORTME fill in a description of your system's linker (not GNU ld)
8795
allow_undefined_flag=unsupported
8796
always_export_symbols=yes
8797
archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
8798
# Note: this linker hardcodes the directories in LIBPATH if there
8799
# are no directories specified by -L.
8800
hardcode_minus_L=yes
8801
if test "$GCC" = yes && test -z "$link_static_flag"; then
8802
# Neither direct hardcoding nor static linking is supported with a
8804
hardcode_direct=unsupported
8809
if test "$host_cpu" = ia64; then
8810
# On IA64, the linker does run time linking by default, so we don't
8811
# have to do anything special.
8812
aix_use_runtimelinking=no
8813
exp_sym_flag='-Bexport'
8816
# If we're using GNU nm, then we don't want the "-C" option.
8817
# -C means demangle to AIX nm, but means don't demangle with GNU nm
8818
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8819
export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8821
export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8823
aix_use_runtimelinking=no
8825
# Test if we are trying to use run time linking or normal
8826
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8827
# need to do runtime linking.
8828
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8829
for ld_flag in $LDFLAGS; do
8830
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8831
aix_use_runtimelinking=yes
8837
exp_sym_flag='-bexport'
8838
no_entry_flag='-bnoentry'
8841
# When large executables or shared objects are built, AIX ld can
8842
# have problems creating the table of contents. If linking a library
8843
# or program results in "error TOC overflow" add -mminimal-toc to
8844
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8845
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8849
hardcode_libdir_separator=':'
8850
link_all_deplibs=yes
8852
if test "$GCC" = yes; then
8853
case $host_os in aix4.012|aix4.012.*)
8854
# We only want to do this on AIX 4.2 and lower, the check
8855
# below for broken collect2 doesn't work under 4.3+
8856
collect2name=`${CC} -print-prog-name=collect2`
8857
if test -f "$collect2name" && \
8858
strings "$collect2name" | grep resolve_lib_name >/dev/null
8860
# We have reworked collect2
8863
# We have old collect2
8864
hardcode_direct=unsupported
8865
# It fails to find uninstalled libraries when the uninstalled
8866
# path is not listed in the libpath. Setting hardcode_minus_L
8867
# to unsupported forces relinking
8868
hardcode_minus_L=yes
8869
hardcode_libdir_flag_spec='-L$libdir'
8870
hardcode_libdir_separator=
8873
shared_flag='-shared'
8876
if test "$host_cpu" = ia64; then
8877
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8878
# chokes on -Wl,-G. The following line is correct:
8881
if test "$aix_use_runtimelinking" = yes; then
8882
shared_flag='${wl}-G'
8884
shared_flag='${wl}-bM:SRE'
8889
# It seems that -bexpall does not export symbols beginning with
8890
# underscore (_), so it is better to generate a list of symbols to export.
8891
always_export_symbols=yes
8892
if test "$aix_use_runtimelinking" = yes; then
8893
# Warning - without using the other runtime loading flags (-brtl),
8894
# -berok will link without error, but may produce a broken library.
8895
allow_undefined_flag='-berok'
8896
# Determine the default libpath from the value encoded in an empty executable.
8897
cat >conftest.$ac_ext <<_ACEOF
8900
cat confdefs.h >>conftest.$ac_ext
8901
cat >>conftest.$ac_ext <<_ACEOF
8902
/* end confdefs.h. */
8912
rm -f conftest.$ac_objext conftest$ac_exeext
8913
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8914
(eval $ac_link) 2>conftest.er1
8916
grep -v '^ *+' conftest.er1 >conftest.err
8918
cat conftest.err >&5
8919
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920
(exit $ac_status); } &&
8921
{ ac_try='test -z "$ac_c_werror_flag"
8922
|| test ! -s conftest.err'
8923
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8926
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927
(exit $ac_status); }; } &&
8928
{ ac_try='test -s conftest$ac_exeext'
8929
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8932
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933
(exit $ac_status); }; }; then
8935
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8937
# Check for a 64-bit object if we didn't find anything.
8938
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8941
echo "$as_me: failed program was:" >&5
8942
sed 's/^/| /' conftest.$ac_ext >&5
8945
rm -f conftest.err conftest.$ac_objext \
8946
conftest$ac_exeext conftest.$ac_ext
8947
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8949
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8950
archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8952
if test "$host_cpu" = ia64; then
8953
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8954
allow_undefined_flag="-z nodefs"
8955
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
8957
# Determine the default libpath from the value encoded in an empty executable.
8958
cat >conftest.$ac_ext <<_ACEOF
8961
cat confdefs.h >>conftest.$ac_ext
8962
cat >>conftest.$ac_ext <<_ACEOF
8963
/* end confdefs.h. */
8973
rm -f conftest.$ac_objext conftest$ac_exeext
8974
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8975
(eval $ac_link) 2>conftest.er1
8977
grep -v '^ *+' conftest.er1 >conftest.err
8979
cat conftest.err >&5
8980
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981
(exit $ac_status); } &&
8982
{ ac_try='test -z "$ac_c_werror_flag"
8983
|| test ! -s conftest.err'
8984
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8987
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988
(exit $ac_status); }; } &&
8989
{ ac_try='test -s conftest$ac_exeext'
8990
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8993
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8994
(exit $ac_status); }; }; then
8996
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8998
# Check for a 64-bit object if we didn't find anything.
8999
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9002
echo "$as_me: failed program was:" >&5
9003
sed 's/^/| /' conftest.$ac_ext >&5
9006
rm -f conftest.err conftest.$ac_objext \
9007
conftest$ac_exeext conftest.$ac_ext
9008
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9010
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9011
# Warning - without using the other run time loading flags,
9012
# -berok will link without error, but may produce a broken library.
9013
no_undefined_flag=' ${wl}-bernotok'
9014
allow_undefined_flag=' ${wl}-berok'
9015
# -bexpall does not export symbols beginning with underscore (_)
9016
always_export_symbols=yes
9017
# Exported symbols can be pulled into shared objects from archives
9018
whole_archive_flag_spec=' '
9019
archive_cmds_need_lc=yes
9020
# This is similar to how AIX traditionally builds it's shared libraries.
9021
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9027
archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9028
hardcode_libdir_flag_spec='-L$libdir'
9029
hardcode_minus_L=yes
9030
# see comment about different semantics on the GNU ld section
9035
export_dynamic_flag_spec=-rdynamic
9038
cygwin* | mingw* | pw32*)
9039
# When not using gcc, we currently assume that we are using
9040
# Microsoft Visual C++.
9041
# hardcode_libdir_flag_spec is actually meaningless, as there is
9042
# no search path for DLLs.
9043
hardcode_libdir_flag_spec=' '
9044
allow_undefined_flag=unsupported
9045
# Tell ltmain to make .lib files, not .a files.
9047
# Tell ltmain to make .dll files, not .so files.
9049
# FIXME: Setting linknames here is a bad hack.
9050
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9051
# The linker will automatically build a .lib file if we build a DLL.
9052
old_archive_From_new_cmds='true'
9053
# FIXME: Should let the user specify the lib program.
9054
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9055
fix_srcfile_path='`cygpath -w "$srcfile"`'
9056
enable_shared_with_static_runtimes=yes
9059
darwin* | rhapsody*)
9061
rhapsody* | darwin1.[012])
9062
allow_undefined_flag='${wl}-undefined ${wl}suppress'
9065
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9066
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9068
case ${MACOSX_DEPLOYMENT_TARGET} in
9070
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9073
allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9079
archive_cmds_need_lc=no
9081
hardcode_automatic=yes
9082
hardcode_shlibpath_var=unsupported
9083
whole_archive_flag_spec=''
9084
link_all_deplibs=yes
9085
if test "$GCC" = yes ; then
9086
output_verbose_link_cmd='echo'
9087
archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9088
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9089
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9090
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9091
module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9093
case "$cc_basename" in
9095
output_verbose_link_cmd='echo'
9096
archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9097
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9098
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9099
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9100
module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9110
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9111
hardcode_libdir_flag_spec='-L$libdir'
9112
hardcode_shlibpath_var=no
9119
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9120
# support. Future versions do this automatically, but an explicit c++rt0.o
9121
# does not break anything, and helps significantly (at the cost of a little
9124
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9125
hardcode_libdir_flag_spec='-R$libdir'
9127
hardcode_shlibpath_var=no
9130
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
9132
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9134
hardcode_minus_L=yes
9135
hardcode_shlibpath_var=no
9138
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9139
freebsd* | kfreebsd*-gnu)
9140
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9141
hardcode_libdir_flag_spec='-R$libdir'
9143
hardcode_shlibpath_var=no
9147
if test "$GCC" = yes; then
9148
archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9150
archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9152
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9153
hardcode_libdir_separator=:
9156
# hardcode_minus_L: Not really in the search PATH,
9157
# but as the default location of the library.
9158
hardcode_minus_L=yes
9159
export_dynamic_flag_spec='${wl}-E'
9163
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9166
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9169
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9175
archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
9178
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9182
if test "$with_gnu_ld" = no; then
9185
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9186
hardcode_libdir_flag_spec_ld='+b $libdir'
9187
hardcode_libdir_separator=:
9189
hardcode_shlibpath_var=no
9192
hardcode_libdir_flag_spec='-L$libdir'
9194
hardcode_shlibpath_var=no
9196
# hardcode_minus_L: Not really in the search PATH,
9197
# but as the default location of the library.
9198
hardcode_minus_L=yes
9201
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9202
hardcode_libdir_separator=:
9204
export_dynamic_flag_spec='${wl}-E'
9206
# hardcode_minus_L: Not really in the search PATH,
9207
# but as the default location of the library.
9208
hardcode_minus_L=yes
9214
irix5* | irix6* | nonstopux*)
9215
if test "$GCC" = yes; then
9216
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9218
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9219
hardcode_libdir_flag_spec_ld='-rpath $libdir'
9221
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9222
hardcode_libdir_separator=:
9223
link_all_deplibs=yes
9227
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9228
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9230
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9232
hardcode_libdir_flag_spec='-R$libdir'
9234
hardcode_shlibpath_var=no
9238
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9240
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9241
hardcode_libdir_separator=:
9242
hardcode_shlibpath_var=no
9247
hardcode_shlibpath_var=no
9248
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9249
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9250
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9251
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9252
export_dynamic_flag_spec='${wl}-E'
9255
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9256
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9257
hardcode_libdir_flag_spec='-R$libdir'
9260
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9261
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9268
hardcode_libdir_flag_spec='-L$libdir'
9269
hardcode_minus_L=yes
9270
allow_undefined_flag=unsupported
9271
archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9272
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9276
if test "$GCC" = yes; then
9277
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9278
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9280
allow_undefined_flag=' -expect_unresolved \*'
9281
archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9283
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9284
hardcode_libdir_separator=:
9287
osf4* | osf5*) # as osf3* with the addition of -msym flag
9288
if test "$GCC" = yes; then
9289
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9290
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9291
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9293
allow_undefined_flag=' -expect_unresolved \*'
9294
archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9295
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9296
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
9298
# Both c and cxx compiler support -rpath directly
9299
hardcode_libdir_flag_spec='-rpath $libdir'
9301
hardcode_libdir_separator=:
9305
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9306
hardcode_shlibpath_var=no
9307
export_dynamic_flag_spec='${wl}-Bexport'
9308
runpath_var=LD_RUN_PATH
9309
hardcode_runpath_var=yes
9313
no_undefined_flag=' -z text'
9314
if test "$GCC" = yes; then
9315
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9316
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9317
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9319
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9320
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9321
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9323
hardcode_libdir_flag_spec='-R$libdir'
9324
hardcode_shlibpath_var=no
9326
solaris2.[0-5] | solaris2.[0-5].*) ;;
9327
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
9328
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9330
link_all_deplibs=yes
9334
if test "x$host_vendor" = xsequent; then
9335
# Use $CC to link under sequent, because it throws in some extra .o
9336
# files that make .init and .fini sections work.
9337
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9339
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9341
hardcode_libdir_flag_spec='-L$libdir'
9343
hardcode_minus_L=yes
9344
hardcode_shlibpath_var=no
9348
case $host_vendor in
9350
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9351
hardcode_direct=yes # is this really true???
9354
## LD is ld it makes a PLAMLIB
9355
## CC just makes a GrossModule.
9356
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9357
reload_cmds='$CC -r -o $output$reload_objs'
9361
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9362
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9365
runpath_var='LD_RUN_PATH'
9366
hardcode_shlibpath_var=no
9370
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9371
hardcode_shlibpath_var=no
9372
export_dynamic_flag_spec='-Bexport'
9376
if test -d /usr/nec; then
9377
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9378
hardcode_shlibpath_var=no
9379
runpath_var=LD_RUN_PATH
9380
hardcode_runpath_var=yes
9386
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9389
hardcode_shlibpath_var=no
9390
hardcode_runpath_var=yes
9391
runpath_var=LD_RUN_PATH
9394
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
9395
no_undefined_flag='${wl}-z ${wl}text'
9396
if test "$GCC" = yes; then
9397
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9399
archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9401
runpath_var='LD_RUN_PATH'
9402
hardcode_shlibpath_var=no
9406
no_undefined_flag=' -z text'
9407
# $CC -shared without GNU ld will not create a library from C++
9408
# object files and a static libstdc++, better avoid it by now
9409
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9410
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9411
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9412
hardcode_libdir_flag_spec=
9413
hardcode_shlibpath_var=no
9414
runpath_var='LD_RUN_PATH'
9418
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9419
hardcode_libdir_flag_spec='-L$libdir'
9420
hardcode_shlibpath_var=no
9429
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
5420
9430
echo "${ECHO_T}$ld_shlibs" >&6
5421
9431
test "$ld_shlibs" = no && can_build_shared=no
5423
# Check hardcoding attributes.
5424
echo "$as_me:5424: checking how to hardcode library paths into programs" >&5
9433
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9434
if test "$GCC" = yes; then
9435
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9439
# Do we need to explicitly link libc?
9441
case "x$archive_cmds_need_lc" in
9443
# Assume -lc should be added
9444
archive_cmds_need_lc=yes
9446
if test "$enable_shared" = yes && test "$GCC" = yes; then
9447
case $archive_cmds in
9449
# FIXME: we may have to deal with multi-command sequences.
9452
# Test whether the compiler implicitly links with -lc since on some
9453
# systems, -lgcc has to come before -lc. If gcc already passes -lc
9454
# to ld, don't add -lc before -lgcc.
9455
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9456
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9458
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9460
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9461
(eval $ac_compile) 2>&5
9463
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9464
(exit $ac_status); } 2>conftest.err; then
9467
libobjs=conftest.$ac_objext
9469
wl=$lt_prog_compiler_wl
9475
lt_save_allow_undefined_flag=$allow_undefined_flag
9476
allow_undefined_flag=
9477
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9478
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9480
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9481
(exit $ac_status); }
9483
archive_cmds_need_lc=no
9485
archive_cmds_need_lc=yes
9487
allow_undefined_flag=$lt_save_allow_undefined_flag
9489
cat conftest.err 1>&5
9492
echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9493
echo "${ECHO_T}$archive_cmds_need_lc" >&6
9500
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9501
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9503
libname_spec='lib$name'
9511
shlibpath_overrides_runpath=unknown
9513
dynamic_linker="$host_os ld.so"
9514
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9515
if test "$GCC" = yes; then
9516
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9517
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9518
# if the path contains ";" then we assume it to be the separator
9519
# otherwise default to the standard path separator (i.e. ":") - it is
9520
# assumed that no part of a normal pathname contains ";" but that should
9521
# okay in the real world where ";" in dirpaths is itself problematic.
9522
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9524
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9527
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9529
need_lib_prefix=unknown
9530
hardcode_into_libs=no
9532
# when you set need_version to no, make sure it does not cause -set_version
9533
# flags to be left without arguments
9534
need_version=unknown
9539
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9540
shlibpath_var=LIBPATH
9542
# AIX 3 has no versioning support, so we append a major version to the name.
9543
soname_spec='${libname}${release}${shared_ext}$major'
9550
hardcode_into_libs=yes
9551
if test "$host_cpu" = ia64; then
9552
# AIX 5 supports IA64
9553
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9554
shlibpath_var=LD_LIBRARY_PATH
9556
# With GCC up to 2.95.x, collect2 would create an import file
9557
# for dependence libraries. The import file would start with
9558
# the line `#! .'. This would cause the generated library to
9559
# depend on `.', always an invalid library. This was fixed in
9560
# development snapshots of GCC prior to 3.0.
9562
aix4 | aix4.[01] | aix4.[01].*)
9563
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9565
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9572
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9573
# soname into executable. Probably we can add versioning support to
9574
# collect2, so additional links can be useful in future.
9575
if test "$aix_use_runtimelinking" = yes; then
9576
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
9577
# instead of lib<name>.a to let people know that these are not
9578
# typical AIX shared libraries.
9579
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9581
# We preserve .a as extension for shared libraries through AIX4.2
9582
# and later when we are not doing run time linking.
9583
library_names_spec='${libname}${release}.a $libname.a'
9584
soname_spec='${libname}${release}${shared_ext}$major'
9586
shlibpath_var=LIBPATH
9591
library_names_spec='$libname.ixlibrary $libname.a'
9592
# Create ${libname}_ixlibrary.a entries in /sys/libs.
9593
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9597
library_names_spec='${libname}${shared_ext}'
9598
dynamic_linker="$host_os ld.so"
9599
shlibpath_var=LIBRARY_PATH
9605
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9606
soname_spec='${libname}${release}${shared_ext}$major'
9607
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9608
shlibpath_var=LD_LIBRARY_PATH
9609
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9610
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9611
# the default ld.so.conf also contains /usr/contrib/lib and
9612
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9613
# libtool to hard-code these into programs
9616
cygwin* | mingw* | pw32*)
9617
version_type=windows
9622
case $GCC,$host_os in
9623
yes,cygwin* | yes,mingw* | yes,pw32*)
9624
library_names_spec='$libname.dll.a'
9625
# DLL is installed to $(libdir)/../bin by postinstall_cmds
9626
postinstall_cmds='base_file=`basename \${file}`~
9627
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9628
dldir=$destdir/`dirname \$dlpath`~
9629
test -d \$dldir || mkdir -p \$dldir~
9630
$install_prog $dir/$dlname \$dldir/$dlname'
9631
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9632
dlpath=$dir/\$dldll~
9634
shlibpath_overrides_runpath=yes
9638
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
9639
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9640
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9643
# MinGW DLLs use traditional 'lib' prefix
9644
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9645
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9646
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9647
# It is most probably a Windows format PATH printed by
9648
# mingw gcc, but we are running on Cygwin. Gcc prints its search
9649
# path with ; separators, and with drive letters. We can handle the
9650
# drive letters (cygwin fileutils understands them), so leave them,
9651
# especially as we might pass files found there to a mingw objdump,
9652
# which wouldn't understand a cygwinified path. Ahh.
9653
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9655
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9659
# pw32 DLLs use 'pw' prefix rather than 'lib'
9660
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
9666
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9669
dynamic_linker='Win32 ld.exe'
9670
# FIXME: first we should search . and the directory the executable is in
9674
darwin* | rhapsody*)
9675
dynamic_linker="$host_os dyld"
9679
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9680
soname_spec='${libname}${release}${major}$shared_ext'
9681
shlibpath_overrides_runpath=yes
9682
shlibpath_var=DYLD_LIBRARY_PATH
9683
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
9684
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9685
if test "$GCC" = yes; then
9686
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
9688
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9690
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9697
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9698
soname_spec='${libname}${release}${shared_ext}$major'
9699
shlibpath_var=LD_LIBRARY_PATH
9710
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9711
soname_spec='${libname}${release}${shared_ext}$major'
9712
shlibpath_var=LD_LIBRARY_PATH
9713
shlibpath_overrides_runpath=no
9714
hardcode_into_libs=yes
9715
dynamic_linker='GNU ld.so'
9719
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
9720
version_type=freebsd-$objformat
9721
case $version_type in
9723
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9728
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9732
shlibpath_var=LD_LIBRARY_PATH
9735
shlibpath_overrides_runpath=yes
9737
freebsd3.01* | freebsdelf3.01*)
9738
shlibpath_overrides_runpath=yes
9739
hardcode_into_libs=yes
9742
shlibpath_overrides_runpath=no
9743
hardcode_into_libs=yes
9752
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9753
soname_spec='${libname}${release}${shared_ext}$major'
9754
shlibpath_var=LD_LIBRARY_PATH
9755
hardcode_into_libs=yes
9758
hpux9* | hpux10* | hpux11*)
9759
# Give a soname corresponding to the major version so that dld.sl refuses to
9760
# link against other versions.
9767
hardcode_into_libs=yes
9768
dynamic_linker="$host_os dld.so"
9769
shlibpath_var=LD_LIBRARY_PATH
9770
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9771
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9772
soname_spec='${libname}${release}${shared_ext}$major'
9773
if test "X$HPUX_IA64_MODE" = X32; then
9774
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9776
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9778
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9782
hardcode_into_libs=yes
9783
dynamic_linker="$host_os dld.sl"
9784
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9785
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9786
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9787
soname_spec='${libname}${release}${shared_ext}$major'
9788
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9789
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9793
dynamic_linker="$host_os dld.sl"
9794
shlibpath_var=SHLIB_PATH
9795
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9796
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9797
soname_spec='${libname}${release}${shared_ext}$major'
9800
# HP-UX runs *really* slowly unless shared libraries are mode 555.
9801
postinstall_cmds='chmod 555 $lib'
9804
irix5* | irix6* | nonstopux*)
9806
nonstopux*) version_type=nonstopux ;;
9808
if test "$lt_cv_prog_gnu_ld" = yes; then
9816
soname_spec='${libname}${release}${shared_ext}$major'
9817
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9819
irix5* | nonstopux*)
9823
case $LD in # libtool.m4 will add one of these switches to LD
9824
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9825
libsuff= shlibsuff= libmagic=32-bit;;
9826
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9827
libsuff=32 shlibsuff=N32 libmagic=N32;;
9828
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9829
libsuff=64 shlibsuff=64 libmagic=64-bit;;
9830
*) libsuff= shlibsuff= libmagic=never-match;;
9834
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9835
shlibpath_overrides_runpath=no
9836
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9837
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9838
hardcode_into_libs=yes
9841
# No shared lib support for Linux oldld, aout, or coff.
9842
linux*oldld* | linux*aout* | linux*coff*)
9846
# This must be Linux ELF.
9851
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9852
soname_spec='${libname}${release}${shared_ext}$major'
9853
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9854
shlibpath_var=LD_LIBRARY_PATH
9855
shlibpath_overrides_runpath=no
9856
# This implies no fast_install, which is unacceptable.
9857
# Some rework will be needed to allow for fast_install
9858
# before this can be enabled.
9859
hardcode_into_libs=yes
9861
# find out which ABI we are using
9864
x86_64*|s390x*|powerpc64*)
9865
echo '#line 9865 "configure"' > conftest.$ac_ext
9866
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9867
(eval $ac_compile) 2>&5
9869
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870
(exit $ac_status); }; then
9871
case `/usr/bin/file conftest.$ac_objext` in
9874
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
9882
# Append ld.so.conf contents to the search path
9883
if test -f /etc/ld.so.conf; then
9884
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
9885
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
9888
# We used to test for /lib/ld.so.1 and disable shared libraries on
9889
# powerpc, because MkLinux only supported shared libraries with the
9890
# GNU dynamic linker. Since this was broken with cross compilers,
9891
# most powerpc-linux boxes support dynamic linking these days and
9892
# people can always --disable-shared, the test was removed, and we
9893
# assume the GNU/Linux dynamic linker is in use.
9894
dynamic_linker='GNU/Linux ld.so'
9901
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9902
soname_spec='${libname}${release}${shared_ext}$major'
9903
shlibpath_var=LD_LIBRARY_PATH
9904
shlibpath_overrides_runpath=no
9905
hardcode_into_libs=yes
9906
dynamic_linker='GNU ld.so'
9913
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9914
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9915
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9916
dynamic_linker='NetBSD (a.out) ld.so'
9918
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9919
soname_spec='${libname}${release}${shared_ext}$major'
9920
dynamic_linker='NetBSD ld.elf_so'
9922
shlibpath_var=LD_LIBRARY_PATH
9923
shlibpath_overrides_runpath=yes
9924
hardcode_into_libs=yes
9929
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9930
shlibpath_var=LD_LIBRARY_PATH
9931
shlibpath_overrides_runpath=yes
9938
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9939
soname_spec='${libname}${release}${shared_ext}$major'
9940
shlibpath_var=LD_LIBRARY_PATH
9941
shlibpath_overrides_runpath=yes
9948
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9949
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9950
shlibpath_var=LD_LIBRARY_PATH
9951
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9953
openbsd2.[89] | openbsd2.[89].*)
9954
shlibpath_overrides_runpath=no
9957
shlibpath_overrides_runpath=yes
9961
shlibpath_overrides_runpath=yes
9966
libname_spec='$name'
9969
library_names_spec='$libname${shared_ext} $libname.a'
9970
dynamic_linker='OS/2 ld.exe'
9971
shlibpath_var=LIBPATH
9974
osf3* | osf4* | osf5*)
9978
soname_spec='${libname}${release}${shared_ext}$major'
9979
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9980
shlibpath_var=LD_LIBRARY_PATH
9981
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9982
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9987
soname_spec='${libname}${release}${shared_ext}$major'
9988
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9989
shlibpath_var=LD_LIBRARY_PATH
9996
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9997
soname_spec='${libname}${release}${shared_ext}$major'
9998
shlibpath_var=LD_LIBRARY_PATH
9999
shlibpath_overrides_runpath=yes
10000
hardcode_into_libs=yes
10001
# ldd complains unless libraries are executable
10002
postinstall_cmds='chmod +x $lib'
10007
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10008
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10009
shlibpath_var=LD_LIBRARY_PATH
10010
shlibpath_overrides_runpath=yes
10011
if test "$with_gnu_ld" = yes; then
10017
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10019
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10020
soname_spec='${libname}${release}${shared_ext}$major'
10021
shlibpath_var=LD_LIBRARY_PATH
10022
case $host_vendor in
10024
shlibpath_overrides_runpath=no
10026
export_dynamic_flag_spec='${wl}-Blargedynsym'
10027
runpath_var=LD_RUN_PATH
10035
shlibpath_overrides_runpath=no
10036
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10042
if test -d /usr/nec ;then
10044
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10045
soname_spec='$libname${shared_ext}.$major'
10046
shlibpath_var=LD_LIBRARY_PATH
10052
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10053
soname_spec='${libname}${release}${shared_ext}$major'
10054
shlibpath_var=LD_LIBRARY_PATH
10061
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10062
echo "${ECHO_T}$dynamic_linker" >&6
10063
test "$dynamic_linker" = no && can_build_shared=no
10065
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
5425
10066
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
5426
10067
hardcode_action=
5427
10068
if test -n "$hardcode_libdir_flag_spec" || \
5428
test -n "$runpath_var"; then
10069
test -n "$runpath_var" || \
10070
test "X$hardcode_automatic" = "Xyes" ; then
5430
10072
# We can hardcode non-existant directories.
5431
10073
if test "$hardcode_direct" != no &&
5432
10074
# If the only mechanism to avoid hardcoding is shlibpath_var, we
5433
10075
# have to relink, otherwise we might link with an installed library
5434
10076
# when we should be linking with a yet-to-be-installed one
5435
## test "$hardcode_shlibpath_var" != no &&
10077
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
5436
10078
test "$hardcode_minus_L" != no; then
5437
10079
# Linking always hardcodes the temporary library directory.
5438
10080
hardcode_action=relink
6826
cygwin* | mingw* | pw32* | os2*)
6827
cat <<'EOF' >> "${ofile}T"
6828
# This is a source program that is used to create dlls on Windows
6829
# Don't remove nor modify the starting and closing comments
6830
# /* ltdll.c starts here */
6831
# #define WIN32_LEAN_AND_MEAN
6832
# #include <windows.h>
6833
# #undef WIN32_LEAN_AND_MEAN
6834
# #include <stdio.h>
6836
# #ifndef __CYGWIN__
6837
# # ifdef __CYGWIN32__
6838
# # define __CYGWIN__ __CYGWIN32__
6842
# #ifdef __cplusplus
6845
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
6846
# #ifdef __cplusplus
6851
# #include <cygwin/cygwin_dll.h>
6852
# DECLARE_CYGWIN_DLL( DllMain );
6854
# HINSTANCE __hDllInstance_base;
6857
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
6859
# __hDllInstance_base = hInst;
6862
# /* ltdll.c ends here */
6863
# This is a source program that is used to create import libraries
6864
# on Windows for dlls which lack them. Don't remove nor modify the
6865
# starting and closing comments
6866
# /* impgen.c starts here */
6867
# /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
6869
# This file is part of GNU libtool.
6871
# This program is free software; you can redistribute it and/or modify
6872
# it under the terms of the GNU General Public License as published by
6873
# the Free Software Foundation; either version 2 of the License, or
6874
# (at your option) any later version.
6876
# This program is distributed in the hope that it will be useful,
6877
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6878
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6879
# GNU General Public License for more details.
6881
# You should have received a copy of the GNU General Public License
6882
# along with this program; if not, write to the Free Software
6883
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6886
# #include <stdio.h> /* for printf() */
6887
# #include <unistd.h> /* for open(), lseek(), read() */
6888
# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
6889
# #include <string.h> /* for strdup() */
6891
# /* O_BINARY isn't required (or even defined sometimes) under Unix */
6893
# #define O_BINARY 0
6896
# static unsigned int
6897
# pe_get16 (fd, offset)
6901
# unsigned char b[2];
6902
# lseek (fd, offset, SEEK_SET);
6904
# return b[0] + (b[1]<<8);
6907
# static unsigned int
6908
# pe_get32 (fd, offset)
6912
# unsigned char b[4];
6913
# lseek (fd, offset, SEEK_SET);
6915
# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
6918
# static unsigned int
6922
# unsigned char *b = ptr;
6923
# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
6932
# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
6933
# unsigned long export_rva, export_size, nsections, secptr, expptr;
6934
# unsigned long name_rvas, nexp;
6935
# unsigned char *expdata, *erva;
6936
# char *filename, *dll_name;
6938
# filename = argv[1];
6940
# dll = open(filename, O_RDONLY|O_BINARY);
6944
# dll_name = filename;
6946
# for (i=0; filename[i]; i++)
6947
# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
6948
# dll_name = filename + i +1;
6950
# pe_header_offset = pe_get32 (dll, 0x3c);
6951
# opthdr_ofs = pe_header_offset + 4 + 20;
6952
# num_entries = pe_get32 (dll, opthdr_ofs + 92);
6954
# if (num_entries < 1) /* no exports */
6957
# export_rva = pe_get32 (dll, opthdr_ofs + 96);
6958
# export_size = pe_get32 (dll, opthdr_ofs + 100);
6959
# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
6960
# secptr = (pe_header_offset + 4 + 20 +
6961
# pe_get16 (dll, pe_header_offset + 4 + 16));
6964
# for (i = 0; i < nsections; i++)
6967
# unsigned long secptr1 = secptr + 40 * i;
6968
# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
6969
# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
6970
# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
6971
# lseek(dll, secptr1, SEEK_SET);
6972
# read(dll, sname, 8);
6973
# if (vaddr <= export_rva && vaddr+vsize > export_rva)
6975
# expptr = fptr + (export_rva - vaddr);
6976
# if (export_rva + export_size > vaddr + vsize)
6977
# export_size = vsize - (export_rva - vaddr);
6982
# expdata = (unsigned char*)malloc(export_size);
6983
# lseek (dll, expptr, SEEK_SET);
6984
# read (dll, expdata, export_size);
6985
# erva = expdata - export_rva;
6987
# nexp = pe_as32 (expdata+24);
6988
# name_rvas = pe_as32 (expdata+32);
6990
# printf ("EXPORTS\n");
6991
# for (i = 0; i<nexp; i++)
6993
# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
6994
# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
6999
# /* impgen.c ends here */
7005
11426
# We use sed instead of cat because bash on DJGPP gets confused if
7006
11427
# if finds mixed CR/LF and LF-only lines. Since sed operates in
7007
11428
# text mode, it properly converts lines to CR/LF. This bash problem
7008
11429
# is reportedly fixed, but why not run on old versions too?
7009
sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
11430
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
7011
mv -f "${ofile}T" "$ofile" || \
7012
(rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
11432
mv -f "$cfgfile" "$ofile" || \
11433
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
7013
11434
chmod +x "$ofile"
11437
# If there is no Makefile yet, we rely on a make rule to execute
11438
# `config.status --recheck' to rerun these tests and create the
11439
# libtool script then.
11440
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11441
if test -f "$ltmain_in"; then
11442
test -f Makefile && make "$ltmain"
11448
ac_cpp='$CPP $CPPFLAGS'
11449
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11450
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11451
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11456
# Check whether --with-tags or --without-tags was given.
11457
if test "${with_tags+set}" = set; then
11458
withval="$with_tags"
11459
tagnames="$withval"
11462
if test -f "$ltmain" && test -n "$tagnames"; then
11463
if test ! -f "${ofile}"; then
11464
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11465
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11468
if test -z "$LTCC"; then
11469
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11470
if test -z "$LTCC"; then
11471
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11472
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11474
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11475
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11479
# Extract list of available tagged configurations in $ofile.
11480
# Note that this assumes the entire list is on one line.
11481
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11483
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11484
for tagname in $tagnames; do
11486
# Check whether tagname contains only valid characters
11487
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11489
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11490
echo "$as_me: error: invalid tag name: $tagname" >&2;}
11491
{ (exit 1); exit 1; }; }
11495
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11497
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11498
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11499
{ (exit 1); exit 1; }; }
11502
# Update the list of available tags.
11503
if test -n "$tagname"; then
11504
echo appending configuration tag \"$tagname\" to $ofile
11508
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11509
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11510
(test "X$CXX" != "Xg++"))) ; then
11512
ac_cpp='$CXXCPP $CPPFLAGS'
11513
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11514
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11515
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11520
archive_cmds_need_lc_CXX=no
11521
allow_undefined_flag_CXX=
11522
always_export_symbols_CXX=no
11523
archive_expsym_cmds_CXX=
11524
export_dynamic_flag_spec_CXX=
11525
hardcode_direct_CXX=no
11526
hardcode_libdir_flag_spec_CXX=
11527
hardcode_libdir_flag_spec_ld_CXX=
11528
hardcode_libdir_separator_CXX=
11529
hardcode_minus_L_CXX=no
11530
hardcode_automatic_CXX=no
11532
module_expsym_cmds_CXX=
11533
link_all_deplibs_CXX=unknown
11534
old_archive_cmds_CXX=$old_archive_cmds
11535
no_undefined_flag_CXX=
11536
whole_archive_flag_spec_CXX=
11537
enable_shared_with_static_runtimes_CXX=no
11539
# Dependencies to place before and after the object being linked:
11540
predep_objects_CXX=
11541
postdep_objects_CXX=
11544
compiler_lib_search_path_CXX=
11546
# Source file extension for C++ test sources.
11549
# Object file extension for compiled C++ test sources.
11553
# Code to be used in simple compile tests
11554
lt_simple_compile_test_code="int some_variable = 0;\n"
11556
# Code to be used in simple link tests
11557
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
11559
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11561
# If no C compiler was specified, use CC.
11564
# Allow CC to be a program name with arguments.
11568
# Allow CC to be a program name with arguments.
11573
lt_save_with_gnu_ld=$with_gnu_ld
11574
lt_save_path_LD=$lt_cv_path_LD
11575
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11576
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11578
unset lt_cv_prog_gnu_ld
11580
if test -n "${lt_cv_path_LDCXX+set}"; then
11581
lt_cv_path_LD=$lt_cv_path_LDCXX
11583
unset lt_cv_path_LD
11585
test -z "${LDCXX+set}" || LD=$LDCXX
11589
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11591
# We don't want -fno-exception wen compiling C++ code, so set the
11592
# no_builtin_flag separately
11593
if test "$GXX" = yes; then
11594
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11596
lt_prog_compiler_no_builtin_flag_CXX=
11599
if test "$GXX" = yes; then
11600
# Set up default GNU C++ configuration
11603
# Check whether --with-gnu-ld or --without-gnu-ld was given.
11604
if test "${with_gnu_ld+set}" = set; then
11605
withval="$with_gnu_ld"
11606
test "$withval" = no || with_gnu_ld=yes
11611
if test "$GCC" = yes; then
11612
# Check if gcc -print-prog-name=ld gives a path.
11613
echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11614
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11617
# gcc leaves a trailing carriage return which upsets mingw
11618
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11620
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11623
# Accept absolute paths.
11625
re_direlt='/[^/][^/]*/\.\./'
11626
# Canonicalize the pathname of ld
11627
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11628
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11629
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11631
test -z "$LD" && LD="$ac_prog"
11634
# If it fails, then pretend we aren't using GCC.
11638
# If it is relative, then search for the first ld in PATH.
11639
with_gnu_ld=unknown
11642
elif test "$with_gnu_ld" = yes; then
11643
echo "$as_me:$LINENO: checking for GNU ld" >&5
11644
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11646
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11647
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11649
if test "${lt_cv_path_LD+set}" = set; then
11650
echo $ECHO_N "(cached) $ECHO_C" >&6
11652
if test -z "$LD"; then
11653
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11654
for ac_dir in $PATH; do
11656
test -z "$ac_dir" && ac_dir=.
11657
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11658
lt_cv_path_LD="$ac_dir/$ac_prog"
11659
# Check to see if the program is GNU ld. I'd rather use --version,
11660
# but apparently some GNU ld's only accept -v.
11661
# Break only if it was the GNU/non-GNU ld that we prefer.
11662
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11663
*GNU* | *'with BFD'*)
11664
test "$with_gnu_ld" != no && break
11667
test "$with_gnu_ld" != yes && break
11674
lt_cv_path_LD="$LD" # Let the user override the test with a path.
11678
LD="$lt_cv_path_LD"
11679
if test -n "$LD"; then
11680
echo "$as_me:$LINENO: result: $LD" >&5
11681
echo "${ECHO_T}$LD" >&6
11683
echo "$as_me:$LINENO: result: no" >&5
11684
echo "${ECHO_T}no" >&6
11686
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11687
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11688
{ (exit 1); exit 1; }; }
11689
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11690
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11691
if test "${lt_cv_prog_gnu_ld+set}" = set; then
11692
echo $ECHO_N "(cached) $ECHO_C" >&6
11694
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
11695
case `$LD -v 2>&1 </dev/null` in
11696
*GNU* | *'with BFD'*)
11697
lt_cv_prog_gnu_ld=yes
11700
lt_cv_prog_gnu_ld=no
11704
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11705
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
11706
with_gnu_ld=$lt_cv_prog_gnu_ld
11710
# Check if GNU C++ uses GNU ld as the underlying linker, since the
11711
# archiving commands below assume that GNU ld is being used.
11712
if test "$with_gnu_ld" = yes; then
11713
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11714
archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11716
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11717
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11719
# If archive_cmds runs LD, not CC, wlarc should be empty
11720
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11721
# investigate it a little bit more. (MM)
11724
# ancient GNU ld didn't support --whole-archive et. al.
11725
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11726
grep 'no-whole-archive' > /dev/null; then
11727
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11729
whole_archive_flag_spec_CXX=
11735
# A generic and very simple default shared library creation
11736
# command for GNU C++ for the case where it uses the native
11737
# linker, instead of GNU ld. If possible, this setting should
11738
# overridden to take advantage of the native linker features on
11739
# the platform it is being used on.
11740
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11743
# Commands to make compiler produce verbose output that lists
11744
# what "hidden" libraries, object files and flags are used when
11745
# linking a shared library.
11746
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11754
# PORTME: fill in a description of your system's C++ link characteristics
11755
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11756
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11760
# FIXME: insert proper C++ library support
11764
if test "$host_cpu" = ia64; then
11765
# On IA64, the linker does run time linking by default, so we don't
11766
# have to do anything special.
11767
aix_use_runtimelinking=no
11768
exp_sym_flag='-Bexport'
11771
aix_use_runtimelinking=no
11773
# Test if we are trying to use run time linking or normal
11774
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11775
# need to do runtime linking.
11776
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11777
for ld_flag in $LDFLAGS; do
11780
aix_use_runtimelinking=yes
11787
exp_sym_flag='-bexport'
11788
no_entry_flag='-bnoentry'
11791
# When large executables or shared objects are built, AIX ld can
11792
# have problems creating the table of contents. If linking a library
11793
# or program results in "error TOC overflow" add -mminimal-toc to
11794
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11795
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11797
archive_cmds_CXX=''
11798
hardcode_direct_CXX=yes
11799
hardcode_libdir_separator_CXX=':'
11800
link_all_deplibs_CXX=yes
11802
if test "$GXX" = yes; then
11803
case $host_os in aix4.012|aix4.012.*)
11804
# We only want to do this on AIX 4.2 and lower, the check
11805
# below for broken collect2 doesn't work under 4.3+
11806
collect2name=`${CC} -print-prog-name=collect2`
11807
if test -f "$collect2name" && \
11808
strings "$collect2name" | grep resolve_lib_name >/dev/null
11810
# We have reworked collect2
11811
hardcode_direct_CXX=yes
11813
# We have old collect2
11814
hardcode_direct_CXX=unsupported
11815
# It fails to find uninstalled libraries when the uninstalled
11816
# path is not listed in the libpath. Setting hardcode_minus_L
11817
# to unsupported forces relinking
11818
hardcode_minus_L_CXX=yes
11819
hardcode_libdir_flag_spec_CXX='-L$libdir'
11820
hardcode_libdir_separator_CXX=
11823
shared_flag='-shared'
11826
if test "$host_cpu" = ia64; then
11827
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11828
# chokes on -Wl,-G. The following line is correct:
11831
if test "$aix_use_runtimelinking" = yes; then
11832
shared_flag='${wl}-G'
11834
shared_flag='${wl}-bM:SRE'
11839
# It seems that -bexpall does not export symbols beginning with
11840
# underscore (_), so it is better to generate a list of symbols to export.
11841
always_export_symbols_CXX=yes
11842
if test "$aix_use_runtimelinking" = yes; then
11843
# Warning - without using the other runtime loading flags (-brtl),
11844
# -berok will link without error, but may produce a broken library.
11845
allow_undefined_flag_CXX='-berok'
11846
# Determine the default libpath from the value encoded in an empty executable.
11847
cat >conftest.$ac_ext <<_ACEOF
11850
cat confdefs.h >>conftest.$ac_ext
11851
cat >>conftest.$ac_ext <<_ACEOF
11852
/* end confdefs.h. */
11862
rm -f conftest.$ac_objext conftest$ac_exeext
11863
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11864
(eval $ac_link) 2>conftest.er1
11866
grep -v '^ *+' conftest.er1 >conftest.err
11868
cat conftest.err >&5
11869
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11870
(exit $ac_status); } &&
11871
{ ac_try='test -z "$ac_cxx_werror_flag"
11872
|| test ! -s conftest.err'
11873
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11874
(eval $ac_try) 2>&5
11876
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11877
(exit $ac_status); }; } &&
11878
{ ac_try='test -s conftest$ac_exeext'
11879
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11880
(eval $ac_try) 2>&5
11882
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883
(exit $ac_status); }; }; then
11885
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11887
# Check for a 64-bit object if we didn't find anything.
11888
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11891
echo "$as_me: failed program was:" >&5
11892
sed 's/^/| /' conftest.$ac_ext >&5
11895
rm -f conftest.err conftest.$ac_objext \
11896
conftest$ac_exeext conftest.$ac_ext
11897
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11899
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11901
archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11903
if test "$host_cpu" = ia64; then
11904
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11905
allow_undefined_flag_CXX="-z nodefs"
11906
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
11908
# Determine the default libpath from the value encoded in an empty executable.
11909
cat >conftest.$ac_ext <<_ACEOF
11912
cat confdefs.h >>conftest.$ac_ext
11913
cat >>conftest.$ac_ext <<_ACEOF
11914
/* end confdefs.h. */
11924
rm -f conftest.$ac_objext conftest$ac_exeext
11925
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11926
(eval $ac_link) 2>conftest.er1
11928
grep -v '^ *+' conftest.er1 >conftest.err
11930
cat conftest.err >&5
11931
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932
(exit $ac_status); } &&
11933
{ ac_try='test -z "$ac_cxx_werror_flag"
11934
|| test ! -s conftest.err'
11935
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11936
(eval $ac_try) 2>&5
11938
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11939
(exit $ac_status); }; } &&
11940
{ ac_try='test -s conftest$ac_exeext'
11941
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11942
(eval $ac_try) 2>&5
11944
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945
(exit $ac_status); }; }; then
11947
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11949
# Check for a 64-bit object if we didn't find anything.
11950
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11953
echo "$as_me: failed program was:" >&5
11954
sed 's/^/| /' conftest.$ac_ext >&5
11957
rm -f conftest.err conftest.$ac_objext \
11958
conftest$ac_exeext conftest.$ac_ext
11959
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11961
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11962
# Warning - without using the other run time loading flags,
11963
# -berok will link without error, but may produce a broken library.
11964
no_undefined_flag_CXX=' ${wl}-bernotok'
11965
allow_undefined_flag_CXX=' ${wl}-berok'
11966
# -bexpall does not export symbols beginning with underscore (_)
11967
always_export_symbols_CXX=yes
11968
# Exported symbols can be pulled into shared objects from archives
11969
whole_archive_flag_spec_CXX=' '
11970
archive_cmds_need_lc_CXX=yes
11971
# This is similar to how AIX traditionally builds it's shared libraries.
11972
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11977
case $cc_basename in
11979
# FIXME: insert proper C++ library support
11986
cygwin* | mingw* | pw32*)
11987
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11988
# as there is no search path for DLLs.
11989
hardcode_libdir_flag_spec_CXX='-L$libdir'
11990
allow_undefined_flag_CXX=unsupported
11991
always_export_symbols_CXX=no
11992
enable_shared_with_static_runtimes_CXX=yes
11994
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11995
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
11996
# If the export-symbols file already is a .def file (1st line
11997
# is EXPORTS), use it as is; otherwise, prepend...
11998
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11999
cp $export_symbols $output_objdir/$soname.def;
12001
echo EXPORTS > $output_objdir/$soname.def;
12002
cat $export_symbols >> $output_objdir/$soname.def;
12004
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12009
darwin* | rhapsody*)
12011
rhapsody* | darwin1.[012])
12012
allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12015
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12016
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12018
case ${MACOSX_DEPLOYMENT_TARGET} in
12020
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12023
allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12029
archive_cmds_need_lc_CXX=no
12030
hardcode_direct_CXX=no
12031
hardcode_automatic_CXX=yes
12032
hardcode_shlibpath_var_CXX=unsupported
12033
whole_archive_flag_spec_CXX=''
12034
link_all_deplibs_CXX=yes
12036
if test "$GXX" = yes ; then
12037
lt_int_apple_cc_single_mod=no
12038
output_verbose_link_cmd='echo'
12039
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12040
lt_int_apple_cc_single_mod=yes
12042
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12043
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12045
archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12047
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12048
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12049
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12050
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12052
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12054
module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12056
case "$cc_basename" in
12058
output_verbose_link_cmd='echo'
12059
archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12060
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12061
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12062
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12063
module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12073
case $cc_basename in
12075
# FIXME: insert proper C++ library support
12079
# Green Hills C++ Compiler
12080
# FIXME: insert proper C++ library support
12084
# FIXME: insert proper C++ library support
12090
# C++ shared libraries reported to be fairly broken before switch to ELF
12094
archive_cmds_need_lc_CXX=no
12096
freebsd* | kfreebsd*-gnu)
12097
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12104
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12105
hardcode_libdir_separator_CXX=:
12106
export_dynamic_flag_spec_CXX='${wl}-E'
12107
hardcode_direct_CXX=yes
12108
hardcode_minus_L_CXX=yes # Not in the search PATH,
12109
# but as the default
12110
# location of the library.
12112
case $cc_basename in
12114
# FIXME: insert proper C++ library support
12118
archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12119
# Commands to make compiler produce verbose output that lists
12120
# what "hidden" libraries, object files and flags are used when
12121
# linking a shared library.
12123
# There doesn't appear to be a way to prevent this compiler from
12124
# explicitly linking system object files so we need to strip them
12125
# from the output so that they don't get included in the library
12127
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12130
if test "$GXX" = yes; then
12131
archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12133
# FIXME: insert proper C++ library support
12140
if test $with_gnu_ld = no; then
12141
case "$host_cpu" in
12143
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12144
hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12145
hardcode_libdir_separator_CXX=:
12148
hardcode_libdir_flag_spec_CXX='-L$libdir'
12151
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12152
hardcode_libdir_separator_CXX=:
12153
export_dynamic_flag_spec_CXX='${wl}-E'
12157
case "$host_cpu" in
12159
hardcode_direct_CXX=no
12160
hardcode_shlibpath_var_CXX=no
12163
hardcode_direct_CXX=no
12164
hardcode_shlibpath_var_CXX=no
12165
hardcode_minus_L_CXX=yes # Not in the search PATH,
12166
# but as the default
12167
# location of the library.
12170
hardcode_direct_CXX=yes
12171
hardcode_minus_L_CXX=yes # Not in the search PATH,
12172
# but as the default
12173
# location of the library.
12177
case $cc_basename in
12179
# FIXME: insert proper C++ library support
12183
case "$host_cpu" in
12185
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12188
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12191
# Commands to make compiler produce verbose output that lists
12192
# what "hidden" libraries, object files and flags are used when
12193
# linking a shared library.
12195
# There doesn't appear to be a way to prevent this compiler from
12196
# explicitly linking system object files so we need to strip them
12197
# from the output so that they don't get included in the library
12199
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12202
if test "$GXX" = yes; then
12203
if test $with_gnu_ld = no; then
12204
case "$host_cpu" in
12206
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12209
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12214
# FIXME: insert proper C++ library support
12221
case $cc_basename in
12224
archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
12226
# Archives containing C++ object files must be created using
12227
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
12228
# necessary to make sure instantiated templates are included
12230
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12233
if test "$GXX" = yes; then
12234
if test "$with_gnu_ld" = no; then
12235
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
12237
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
12240
link_all_deplibs_CXX=yes
12243
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12244
hardcode_libdir_separator_CXX=:
12247
case $cc_basename in
12249
# Kuck and Associates, Inc. (KAI) C++ Compiler
12251
# KCC will only create a shared library if the output file
12252
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12253
# to its proper name (with version) after linking.
12254
archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12255
archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
12256
# Commands to make compiler produce verbose output that lists
12257
# what "hidden" libraries, object files and flags are used when
12258
# linking a shared library.
12260
# There doesn't appear to be a way to prevent this compiler from
12261
# explicitly linking system object files so we need to strip them
12262
# from the output so that they don't get included in the library
12264
output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12266
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12267
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12269
# Archives containing C++ object files must be created using
12270
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12271
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12276
# version 8.0 and above of icpc choke on multiply defined symbols
12277
# if we add $predep_objects and $postdep_objects, however 7.1 and
12278
# earlier do not add the objects themselves.
12279
case `$CC -V 2>&1` in
12281
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12282
archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12284
*) # Version 8.0 or newer
12285
archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12286
archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12289
archive_cmds_need_lc_CXX=no
12290
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12291
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12292
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12296
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12297
archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
12299
runpath_var=LD_RUN_PATH
12300
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12301
hardcode_libdir_separator_CXX=:
12303
# Commands to make compiler produce verbose output that lists
12304
# what "hidden" libraries, object files and flags are used when
12305
# linking a shared library.
12307
# There doesn't appear to be a way to prevent this compiler from
12308
# explicitly linking system object files so we need to strip them
12309
# from the output so that they don't get included in the library
12311
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12316
# FIXME: insert proper C++ library support
12320
# FIXME: insert proper C++ library support
12324
case $cc_basename in
12326
# FIXME: insert proper C++ library support
12330
# FIXME: insert proper C++ library support
12336
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12337
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12339
hardcode_libdir_flag_spec_CXX='-R$libdir'
12340
hardcode_direct_CXX=yes
12341
hardcode_shlibpath_var_CXX=no
12343
# Workaround some broken pre-1.5 toolchains
12344
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12347
# C++ shared libraries are fairly broken
12351
hardcode_direct_CXX=yes
12352
hardcode_shlibpath_var_CXX=no
12353
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12354
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12355
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12356
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12357
export_dynamic_flag_spec_CXX='${wl}-E'
12358
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12360
output_verbose_link_cmd='echo'
12363
case $cc_basename in
12365
# Kuck and Associates, Inc. (KAI) C++ Compiler
12367
# KCC will only create a shared library if the output file
12368
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12369
# to its proper name (with version) after linking.
12370
archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12372
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12373
hardcode_libdir_separator_CXX=:
12375
# Archives containing C++ object files must be created using
12376
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12377
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12381
# Rational C++ 2.4.1
12382
# FIXME: insert proper C++ library support
12386
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12387
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
12389
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12390
hardcode_libdir_separator_CXX=:
12392
# Commands to make compiler produce verbose output that lists
12393
# what "hidden" libraries, object files and flags are used when
12394
# linking a shared library.
12396
# There doesn't appear to be a way to prevent this compiler from
12397
# explicitly linking system object files so we need to strip them
12398
# from the output so that they don't get included in the library
12400
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12403
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12404
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12405
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
12407
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12408
hardcode_libdir_separator_CXX=:
12410
# Commands to make compiler produce verbose output that lists
12411
# what "hidden" libraries, object files and flags are used when
12412
# linking a shared library.
12413
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12416
# FIXME: insert proper C++ library support
12423
case $cc_basename in
12425
# Kuck and Associates, Inc. (KAI) C++ Compiler
12427
# KCC will only create a shared library if the output file
12428
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12429
# to its proper name (with version) after linking.
12430
archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12432
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12433
hardcode_libdir_separator_CXX=:
12435
# Archives containing C++ object files must be created using
12436
# the KAI C++ compiler.
12437
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12440
# Rational C++ 2.4.1
12441
# FIXME: insert proper C++ library support
12445
allow_undefined_flag_CXX=' -expect_unresolved \*'
12446
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
12447
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12448
echo "-hidden">> $lib.exp~
12449
$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
12452
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12453
hardcode_libdir_separator_CXX=:
12455
# Commands to make compiler produce verbose output that lists
12456
# what "hidden" libraries, object files and flags are used when
12457
# linking a shared library.
12459
# There doesn't appear to be a way to prevent this compiler from
12460
# explicitly linking system object files so we need to strip them
12461
# from the output so that they don't get included in the library
12463
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12466
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12467
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12468
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
12470
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12471
hardcode_libdir_separator_CXX=:
12473
# Commands to make compiler produce verbose output that lists
12474
# what "hidden" libraries, object files and flags are used when
12475
# linking a shared library.
12476
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12479
# FIXME: insert proper C++ library support
12486
# FIXME: insert proper C++ library support
12490
archive_cmds_need_lc_CXX=no
12491
case $cc_basename in
12493
# FIXME: insert proper C++ library support
12497
# FIXME: insert proper C++ library support
12503
case $cc_basename in
12506
# FIXME: insert proper C++ library support
12511
# FIXME: insert proper C++ library support
12515
# FIXME: insert proper C++ library support
12521
case $cc_basename in
12523
# Sun C++ 4.2, 5.x and Centerline C++
12524
no_undefined_flag_CXX=' -zdefs'
12525
archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12526
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12527
$CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12529
hardcode_libdir_flag_spec_CXX='-R$libdir'
12530
hardcode_shlibpath_var_CXX=no
12532
solaris2.0-5 | solaris2.0-5.*) ;;
12534
# The C++ compiler is used as linker so we must use $wl
12535
# flag to pass the commands to the underlying system
12537
# Supported since Solaris 2.6 (maybe 2.5.1?)
12538
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12541
link_all_deplibs_CXX=yes
12543
# Commands to make compiler produce verbose output that lists
12544
# what "hidden" libraries, object files and flags are used when
12545
# linking a shared library.
12547
# There doesn't appear to be a way to prevent this compiler from
12548
# explicitly linking system object files so we need to strip them
12549
# from the output so that they don't get included in the library
12551
output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12553
# Archives containing C++ object files must be created using
12554
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12555
# necessary to make sure instantiated templates are included
12557
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12560
# Green Hills C++ Compiler
12561
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12563
# The C++ compiler must be used to create the archive.
12564
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12567
# GNU C++ compiler with Solaris linker
12568
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12569
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12570
if $CC --version | grep -v '^2\.7' > /dev/null; then
12571
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12572
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12573
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12575
# Commands to make compiler produce verbose output that lists
12576
# what "hidden" libraries, object files and flags are used when
12577
# linking a shared library.
12578
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12580
# g++ 2.7 appears to require `-G' NOT `-shared' on this
12582
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12583
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12584
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12586
# Commands to make compiler produce verbose output that lists
12587
# what "hidden" libraries, object files and flags are used when
12588
# linking a shared library.
12589
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12592
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12597
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12598
archive_cmds_need_lc_CXX=no
12601
case $cc_basename in
12603
# NonStop-UX NCC 3.20
12604
# FIXME: insert proper C++ library support
12608
# FIXME: insert proper C++ library support
12614
# FIXME: insert proper C++ library support
12618
# FIXME: insert proper C++ library support
12622
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12623
echo "${ECHO_T}$ld_shlibs_CXX" >&6
12624
test "$ld_shlibs_CXX" = no && can_build_shared=no
12630
cat > conftest.$ac_ext <<EOF
12634
Foo (void) { a = 0; }
12640
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12641
(eval $ac_compile) 2>&5
12643
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644
(exit $ac_status); }; then
12645
# Parse the compiler output and extract the necessary
12646
# objects, libraries and library flags.
12648
# Sentinel used to keep track of whether or not we are before
12649
# the conftest object file.
12650
pre_test_object_deps_done=no
12652
# The `*' in the case matches for architectures that use `case' in
12653
# $output_verbose_cmd can trigger glob expansion during the loop
12654
# eval without this substitution.
12655
output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
12657
for p in `eval $output_verbose_link_cmd`; do
12661
# Some compilers place space between "-{L,R}" and the path.
12662
# Remove the space.
12663
if test $p = "-L" \
12664
|| test $p = "-R"; then
12671
if test "$pre_test_object_deps_done" = no; then
12674
# Internal compiler library paths should come after those
12675
# provided the user. The postdeps already come after the
12676
# user supplied libs so there is no need to process them.
12677
if test -z "$compiler_lib_search_path_CXX"; then
12678
compiler_lib_search_path_CXX="${prev}${p}"
12680
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12683
# The "-l" case would never come before the object being
12684
# linked, so don't bother handling this case.
12687
if test -z "$postdeps_CXX"; then
12688
postdeps_CXX="${prev}${p}"
12690
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12696
# This assumes that the test object file only shows up
12697
# once in the compiler output.
12698
if test "$p" = "conftest.$objext"; then
12699
pre_test_object_deps_done=yes
12703
if test "$pre_test_object_deps_done" = no; then
12704
if test -z "$predep_objects_CXX"; then
12705
predep_objects_CXX="$p"
12707
predep_objects_CXX="$predep_objects_CXX $p"
12710
if test -z "$postdep_objects_CXX"; then
12711
postdep_objects_CXX="$p"
12713
postdep_objects_CXX="$postdep_objects_CXX $p"
12718
*) ;; # Ignore the rest.
12726
echo "libtool.m4: error: problem compiling CXX test program"
12729
$rm -f confest.$objext
12731
case " $postdeps_CXX " in
12732
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12735
lt_prog_compiler_wl_CXX=
12736
lt_prog_compiler_pic_CXX=
12737
lt_prog_compiler_static_CXX=
12739
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12740
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12742
# C++ specific cases for pic, static, wl, etc.
12743
if test "$GXX" = yes; then
12744
lt_prog_compiler_wl_CXX='-Wl,'
12745
lt_prog_compiler_static_CXX='-static'
12749
# All AIX code is PIC.
12750
if test "$host_cpu" = ia64; then
12751
# AIX 5 now supports IA64 processor
12752
lt_prog_compiler_static_CXX='-Bstatic'
12756
# FIXME: we need at least 68020 code to build shared libraries, but
12757
# adding the `-m68020' flag to GCC prevents building anything better,
12759
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12761
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12762
# PIC is the default for these OSes.
12764
mingw* | os2* | pw32*)
12765
# This hack is so that the source file can tell whether it is being
12766
# built for inclusion in a dll (and should export symbols for example).
12767
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12769
darwin* | rhapsody*)
12770
# PIC is the default on this platform
12771
# Common symbols not allowed in MH_DYLIB files
12772
lt_prog_compiler_pic_CXX='-fno-common'
12775
# DJGPP does not support shared libraries at all
12776
lt_prog_compiler_pic_CXX=
12779
if test -d /usr/nec; then
12780
lt_prog_compiler_pic_CXX=-Kconform_pic
12784
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12785
# not for PA HP-UX.
12786
case "$host_cpu" in
12790
lt_prog_compiler_pic_CXX='-fPIC'
12795
lt_prog_compiler_pic_CXX='-fPIC'
12801
# All AIX code is PIC.
12802
if test "$host_cpu" = ia64; then
12803
# AIX 5 now supports IA64 processor
12804
lt_prog_compiler_static_CXX='-Bstatic'
12806
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12810
case $cc_basename in
12812
# Green Hills C++ Compiler
12813
# _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
12818
# PIC is the default on this platform
12819
# Common symbols not allowed in MH_DYLIB files
12820
case "$cc_basename" in
12822
lt_prog_compiler_pic_CXX='-qnocommon'
12823
lt_prog_compiler_wl_CXX='-Wl,'
12828
case $cc_basename in
12830
lt_prog_compiler_pic_CXX='-KPIC'
12833
# Green Hills C++ Compiler
12834
lt_prog_compiler_pic_CXX='-pic'
12840
freebsd* | kfreebsd*-gnu)
12841
# FreeBSD uses GNU C++
12843
hpux9* | hpux10* | hpux11*)
12844
case $cc_basename in
12846
lt_prog_compiler_wl_CXX='-Wl,'
12847
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12848
if test "$host_cpu" != ia64; then
12849
lt_prog_compiler_pic_CXX='+Z'
12853
lt_prog_compiler_wl_CXX='-Wl,'
12854
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12855
case "$host_cpu" in
12860
lt_prog_compiler_pic_CXX='+Z'
12868
irix5* | irix6* | nonstopux*)
12869
case $cc_basename in
12871
lt_prog_compiler_wl_CXX='-Wl,'
12872
lt_prog_compiler_static_CXX='-non_shared'
12873
# CC pic flag -KPIC is the default.
12880
case $cc_basename in
12883
lt_prog_compiler_wl_CXX='--backend -Wl,'
12884
lt_prog_compiler_pic_CXX='-fPIC'
12888
lt_prog_compiler_wl_CXX='-Wl,'
12889
lt_prog_compiler_pic_CXX='-KPIC'
12890
lt_prog_compiler_static_CXX='-static'
12894
# Make sure the PIC flag is empty. It appears that all Alpha
12895
# Linux and Compaq Tru64 Unix objects are PIC.
12896
lt_prog_compiler_pic_CXX=
12897
lt_prog_compiler_static_CXX='-non_shared'
12908
case $cc_basename in
12910
lt_prog_compiler_pic_CXX='-W c,exportall'
12918
osf3* | osf4* | osf5*)
12919
case $cc_basename in
12921
lt_prog_compiler_wl_CXX='--backend -Wl,'
12924
# Rational C++ 2.4.1
12925
lt_prog_compiler_pic_CXX='-pic'
12928
# Digital/Compaq C++
12929
lt_prog_compiler_wl_CXX='-Wl,'
12930
# Make sure the PIC flag is empty. It appears that all Alpha
12931
# Linux and Compaq Tru64 Unix objects are PIC.
12932
lt_prog_compiler_pic_CXX=
12933
lt_prog_compiler_static_CXX='-non_shared'
12942
case $cc_basename in
12944
lt_prog_compiler_pic_CXX='-fPIC'
12951
case $cc_basename in
12953
# Sun C++ 4.2, 5.x and Centerline C++
12954
lt_prog_compiler_pic_CXX='-KPIC'
12955
lt_prog_compiler_static_CXX='-Bstatic'
12956
lt_prog_compiler_wl_CXX='-Qoption ld '
12959
# Green Hills C++ Compiler
12960
lt_prog_compiler_pic_CXX='-PIC'
12967
case $cc_basename in
12970
lt_prog_compiler_pic_CXX='-pic'
12971
lt_prog_compiler_static_CXX='-Bstatic'
12975
lt_prog_compiler_pic_CXX='-pic'
12982
case $cc_basename in
12984
# NonStop-UX NCC 3.20
12985
lt_prog_compiler_pic_CXX='-KPIC'
12996
lt_prog_compiler_can_build_shared_CXX=no
13001
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13002
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
13005
# Check to make sure the PIC flag actually works.
13007
if test -n "$lt_prog_compiler_pic_CXX"; then
13009
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13010
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
13011
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13012
echo $ECHO_N "(cached) $ECHO_C" >&6
13014
lt_prog_compiler_pic_works_CXX=no
13015
ac_outfile=conftest.$ac_objext
13016
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13017
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13018
# Insert the option either (1) after the last *FLAGS variable, or
13019
# (2) before a word containing "conftest.", or (3) at the end.
13020
# Note that $ac_compile itself does not contain backslashes and begins
13021
# with a dollar sign (not a hyphen), so the echo should work correctly.
13022
# The option is referenced via a variable to avoid confusing sed.
13023
lt_compile=`echo "$ac_compile" | $SED \
13024
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13025
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13026
-e 's:$: $lt_compiler_flag:'`
13027
(eval echo "\"\$as_me:13027: $lt_compile\"" >&5)
13028
(eval "$lt_compile" 2>conftest.err)
13030
cat conftest.err >&5
13031
echo "$as_me:13031: \$? = $ac_status" >&5
13032
if (exit $ac_status) && test -s "$ac_outfile"; then
13033
# The compiler can only warn and ignore the option if not recognized
13034
# So say no if there are warnings
13035
if test ! -s conftest.err; then
13036
lt_prog_compiler_pic_works_CXX=yes
13042
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13043
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
13045
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13046
case $lt_prog_compiler_pic_CXX in
13048
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13051
lt_prog_compiler_pic_CXX=
13052
lt_prog_compiler_can_build_shared_CXX=no
13057
# For platforms which do not support PIC, -DPIC is meaningless:
13059
lt_prog_compiler_pic_CXX=
13062
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13066
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13067
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13068
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13069
echo $ECHO_N "(cached) $ECHO_C" >&6
13071
lt_cv_prog_compiler_c_o_CXX=no
13072
$rm -r conftest 2>/dev/null
13076
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13078
lt_compiler_flag="-o out/conftest2.$ac_objext"
13079
# Insert the option either (1) after the last *FLAGS variable, or
13080
# (2) before a word containing "conftest.", or (3) at the end.
13081
# Note that $ac_compile itself does not contain backslashes and begins
13082
# with a dollar sign (not a hyphen), so the echo should work correctly.
13083
lt_compile=`echo "$ac_compile" | $SED \
13084
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13085
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13086
-e 's:$: $lt_compiler_flag:'`
13087
(eval echo "\"\$as_me:13087: $lt_compile\"" >&5)
13088
(eval "$lt_compile" 2>out/conftest.err)
13090
cat out/conftest.err >&5
13091
echo "$as_me:13091: \$? = $ac_status" >&5
13092
if (exit $ac_status) && test -s out/conftest2.$ac_objext
13094
# The compiler can only warn and ignore the option if not recognized
13095
# So say no if there are warnings
13096
if test ! -s out/conftest.err; then
13097
lt_cv_prog_compiler_c_o_CXX=yes
13102
# SGI C++ compiler will create directory out/ii_files/ for
13103
# template instantiation
13104
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13105
$rm out/* && rmdir out
13111
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13112
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13115
hard_links="nottested"
13116
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13117
# do not overwrite the value of need_locks provided by the user
13118
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13119
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13122
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13124
ln conftest.a conftest.b 2>&5 || hard_links=no
13125
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13126
echo "$as_me:$LINENO: result: $hard_links" >&5
13127
echo "${ECHO_T}$hard_links" >&6
13128
if test "$hard_links" = no; then
13129
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13130
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13137
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13138
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13140
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13143
# If we're using GNU nm, then we don't want the "-C" option.
13144
# -C means demangle to AIX nm, but means don't demangle with GNU nm
13145
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13146
export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13148
export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13152
export_symbols_cmds_CXX="$ltdll_cmds"
13155
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13158
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13162
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13163
echo "${ECHO_T}$ld_shlibs_CXX" >&6
13164
test "$ld_shlibs_CXX" = no && can_build_shared=no
13166
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13167
if test "$GCC" = yes; then
13168
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13172
# Do we need to explicitly link libc?
13174
case "x$archive_cmds_need_lc_CXX" in
13176
# Assume -lc should be added
13177
archive_cmds_need_lc_CXX=yes
13179
if test "$enable_shared" = yes && test "$GCC" = yes; then
13180
case $archive_cmds_CXX in
13182
# FIXME: we may have to deal with multi-command sequences.
13185
# Test whether the compiler implicitly links with -lc since on some
13186
# systems, -lgcc has to come before -lc. If gcc already passes -lc
13187
# to ld, don't add -lc before -lgcc.
13188
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13189
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13191
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13193
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13194
(eval $ac_compile) 2>&5
13196
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13197
(exit $ac_status); } 2>conftest.err; then
13200
libobjs=conftest.$ac_objext
13202
wl=$lt_prog_compiler_wl_CXX
13208
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13209
allow_undefined_flag_CXX=
13210
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13211
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13213
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13214
(exit $ac_status); }
13216
archive_cmds_need_lc_CXX=no
13218
archive_cmds_need_lc_CXX=yes
13220
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13222
cat conftest.err 1>&5
13225
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13226
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
13233
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13234
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13235
library_names_spec=
13236
libname_spec='lib$name'
13240
postuninstall_cmds=
13244
shlibpath_overrides_runpath=unknown
13246
dynamic_linker="$host_os ld.so"
13247
sys_lib_dlsearch_path_spec="/lib /usr/lib"
13248
if test "$GCC" = yes; then
13249
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13250
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13251
# if the path contains ";" then we assume it to be the separator
13252
# otherwise default to the standard path separator (i.e. ":") - it is
13253
# assumed that no part of a normal pathname contains ";" but that should
13254
# okay in the real world where ";" in dirpaths is itself problematic.
13255
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13257
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13260
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13262
need_lib_prefix=unknown
13263
hardcode_into_libs=no
13265
# when you set need_version to no, make sure it does not cause -set_version
13266
# flags to be left without arguments
13267
need_version=unknown
13272
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13273
shlibpath_var=LIBPATH
13275
# AIX 3 has no versioning support, so we append a major version to the name.
13276
soname_spec='${libname}${release}${shared_ext}$major'
13283
hardcode_into_libs=yes
13284
if test "$host_cpu" = ia64; then
13285
# AIX 5 supports IA64
13286
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13287
shlibpath_var=LD_LIBRARY_PATH
13289
# With GCC up to 2.95.x, collect2 would create an import file
13290
# for dependence libraries. The import file would start with
13291
# the line `#! .'. This would cause the generated library to
13292
# depend on `.', always an invalid library. This was fixed in
13293
# development snapshots of GCC prior to 3.0.
13295
aix4 | aix4.[01] | aix4.[01].*)
13296
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13298
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13301
can_build_shared=no
13305
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13306
# soname into executable. Probably we can add versioning support to
13307
# collect2, so additional links can be useful in future.
13308
if test "$aix_use_runtimelinking" = yes; then
13309
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
13310
# instead of lib<name>.a to let people know that these are not
13311
# typical AIX shared libraries.
13312
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13314
# We preserve .a as extension for shared libraries through AIX4.2
13315
# and later when we are not doing run time linking.
13316
library_names_spec='${libname}${release}.a $libname.a'
13317
soname_spec='${libname}${release}${shared_ext}$major'
13319
shlibpath_var=LIBPATH
13324
library_names_spec='$libname.ixlibrary $libname.a'
13325
# Create ${libname}_ixlibrary.a entries in /sys/libs.
13326
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
13330
library_names_spec='${libname}${shared_ext}'
13331
dynamic_linker="$host_os ld.so"
13332
shlibpath_var=LIBRARY_PATH
13338
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13339
soname_spec='${libname}${release}${shared_ext}$major'
13340
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13341
shlibpath_var=LD_LIBRARY_PATH
13342
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13343
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13344
# the default ld.so.conf also contains /usr/contrib/lib and
13345
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13346
# libtool to hard-code these into programs
13349
cygwin* | mingw* | pw32*)
13350
version_type=windows
13355
case $GCC,$host_os in
13356
yes,cygwin* | yes,mingw* | yes,pw32*)
13357
library_names_spec='$libname.dll.a'
13358
# DLL is installed to $(libdir)/../bin by postinstall_cmds
13359
postinstall_cmds='base_file=`basename \${file}`~
13360
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13361
dldir=$destdir/`dirname \$dlpath`~
13362
test -d \$dldir || mkdir -p \$dldir~
13363
$install_prog $dir/$dlname \$dldir/$dlname'
13364
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13365
dlpath=$dir/\$dldll~
13367
shlibpath_overrides_runpath=yes
13371
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
13372
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13373
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13376
# MinGW DLLs use traditional 'lib' prefix
13377
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13378
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13379
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13380
# It is most probably a Windows format PATH printed by
13381
# mingw gcc, but we are running on Cygwin. Gcc prints its search
13382
# path with ; separators, and with drive letters. We can handle the
13383
# drive letters (cygwin fileutils understands them), so leave them,
13384
# especially as we might pass files found there to a mingw objdump,
13385
# which wouldn't understand a cygwinified path. Ahh.
13386
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13388
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13392
# pw32 DLLs use 'pw' prefix rather than 'lib'
13393
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13399
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13402
dynamic_linker='Win32 ld.exe'
13403
# FIXME: first we should search . and the directory the executable is in
13407
darwin* | rhapsody*)
13408
dynamic_linker="$host_os dyld"
13409
version_type=darwin
13412
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13413
soname_spec='${libname}${release}${major}$shared_ext'
13414
shlibpath_overrides_runpath=yes
13415
shlibpath_var=DYLD_LIBRARY_PATH
13416
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13417
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13418
if test "$GCC" = yes; then
13419
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
13421
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13423
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13430
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13431
soname_spec='${libname}${release}${shared_ext}$major'
13432
shlibpath_var=LD_LIBRARY_PATH
13443
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13444
soname_spec='${libname}${release}${shared_ext}$major'
13445
shlibpath_var=LD_LIBRARY_PATH
13446
shlibpath_overrides_runpath=no
13447
hardcode_into_libs=yes
13448
dynamic_linker='GNU ld.so'
13452
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13453
version_type=freebsd-$objformat
13454
case $version_type in
13456
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13461
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13465
shlibpath_var=LD_LIBRARY_PATH
13468
shlibpath_overrides_runpath=yes
13470
freebsd3.01* | freebsdelf3.01*)
13471
shlibpath_overrides_runpath=yes
13472
hardcode_into_libs=yes
13475
shlibpath_overrides_runpath=no
13476
hardcode_into_libs=yes
13485
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13486
soname_spec='${libname}${release}${shared_ext}$major'
13487
shlibpath_var=LD_LIBRARY_PATH
13488
hardcode_into_libs=yes
13491
hpux9* | hpux10* | hpux11*)
13492
# Give a soname corresponding to the major version so that dld.sl refuses to
13493
# link against other versions.
13497
case "$host_cpu" in
13500
hardcode_into_libs=yes
13501
dynamic_linker="$host_os dld.so"
13502
shlibpath_var=LD_LIBRARY_PATH
13503
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13504
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13505
soname_spec='${libname}${release}${shared_ext}$major'
13506
if test "X$HPUX_IA64_MODE" = X32; then
13507
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13509
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13511
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13515
hardcode_into_libs=yes
13516
dynamic_linker="$host_os dld.sl"
13517
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13518
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13519
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13520
soname_spec='${libname}${release}${shared_ext}$major'
13521
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13522
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13526
dynamic_linker="$host_os dld.sl"
13527
shlibpath_var=SHLIB_PATH
13528
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13529
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13530
soname_spec='${libname}${release}${shared_ext}$major'
13533
# HP-UX runs *really* slowly unless shared libraries are mode 555.
13534
postinstall_cmds='chmod 555 $lib'
13537
irix5* | irix6* | nonstopux*)
13539
nonstopux*) version_type=nonstopux ;;
13541
if test "$lt_cv_prog_gnu_ld" = yes; then
13549
soname_spec='${libname}${release}${shared_ext}$major'
13550
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13552
irix5* | nonstopux*)
13553
libsuff= shlibsuff=
13556
case $LD in # libtool.m4 will add one of these switches to LD
13557
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13558
libsuff= shlibsuff= libmagic=32-bit;;
13559
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13560
libsuff=32 shlibsuff=N32 libmagic=N32;;
13561
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13562
libsuff=64 shlibsuff=64 libmagic=64-bit;;
13563
*) libsuff= shlibsuff= libmagic=never-match;;
13567
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13568
shlibpath_overrides_runpath=no
13569
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13570
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13571
hardcode_into_libs=yes
13574
# No shared lib support for Linux oldld, aout, or coff.
13575
linux*oldld* | linux*aout* | linux*coff*)
13579
# This must be Linux ELF.
13584
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13585
soname_spec='${libname}${release}${shared_ext}$major'
13586
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13587
shlibpath_var=LD_LIBRARY_PATH
13588
shlibpath_overrides_runpath=no
13589
# This implies no fast_install, which is unacceptable.
13590
# Some rework will be needed to allow for fast_install
13591
# before this can be enabled.
13592
hardcode_into_libs=yes
13594
# find out which ABI we are using
13596
case "$host_cpu" in
13597
x86_64*|s390x*|powerpc64*)
13598
echo '#line 13598 "configure"' > conftest.$ac_ext
13599
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13600
(eval $ac_compile) 2>&5
13602
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13603
(exit $ac_status); }; then
13604
case `/usr/bin/file conftest.$ac_objext` in
13607
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
13615
# Append ld.so.conf contents to the search path
13616
if test -f /etc/ld.so.conf; then
13617
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13618
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
13621
# We used to test for /lib/ld.so.1 and disable shared libraries on
13622
# powerpc, because MkLinux only supported shared libraries with the
13623
# GNU dynamic linker. Since this was broken with cross compilers,
13624
# most powerpc-linux boxes support dynamic linking these days and
13625
# people can always --disable-shared, the test was removed, and we
13626
# assume the GNU/Linux dynamic linker is in use.
13627
dynamic_linker='GNU/Linux ld.so'
13634
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13635
soname_spec='${libname}${release}${shared_ext}$major'
13636
shlibpath_var=LD_LIBRARY_PATH
13637
shlibpath_overrides_runpath=no
13638
hardcode_into_libs=yes
13639
dynamic_linker='GNU ld.so'
13646
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13647
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13648
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13649
dynamic_linker='NetBSD (a.out) ld.so'
13651
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13652
soname_spec='${libname}${release}${shared_ext}$major'
13653
dynamic_linker='NetBSD ld.elf_so'
13655
shlibpath_var=LD_LIBRARY_PATH
13656
shlibpath_overrides_runpath=yes
13657
hardcode_into_libs=yes
13662
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13663
shlibpath_var=LD_LIBRARY_PATH
13664
shlibpath_overrides_runpath=yes
13671
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13672
soname_spec='${libname}${release}${shared_ext}$major'
13673
shlibpath_var=LD_LIBRARY_PATH
13674
shlibpath_overrides_runpath=yes
13681
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13682
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13683
shlibpath_var=LD_LIBRARY_PATH
13684
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13686
openbsd2.[89] | openbsd2.[89].*)
13687
shlibpath_overrides_runpath=no
13690
shlibpath_overrides_runpath=yes
13694
shlibpath_overrides_runpath=yes
13699
libname_spec='$name'
13702
library_names_spec='$libname${shared_ext} $libname.a'
13703
dynamic_linker='OS/2 ld.exe'
13704
shlibpath_var=LIBPATH
13707
osf3* | osf4* | osf5*)
13711
soname_spec='${libname}${release}${shared_ext}$major'
13712
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13713
shlibpath_var=LD_LIBRARY_PATH
13714
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13715
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13720
soname_spec='${libname}${release}${shared_ext}$major'
13721
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13722
shlibpath_var=LD_LIBRARY_PATH
13729
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13730
soname_spec='${libname}${release}${shared_ext}$major'
13731
shlibpath_var=LD_LIBRARY_PATH
13732
shlibpath_overrides_runpath=yes
13733
hardcode_into_libs=yes
13734
# ldd complains unless libraries are executable
13735
postinstall_cmds='chmod +x $lib'
13740
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13741
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13742
shlibpath_var=LD_LIBRARY_PATH
13743
shlibpath_overrides_runpath=yes
13744
if test "$with_gnu_ld" = yes; then
13750
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13752
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13753
soname_spec='${libname}${release}${shared_ext}$major'
13754
shlibpath_var=LD_LIBRARY_PATH
13755
case $host_vendor in
13757
shlibpath_overrides_runpath=no
13759
export_dynamic_flag_spec='${wl}-Blargedynsym'
13760
runpath_var=LD_RUN_PATH
13768
shlibpath_overrides_runpath=no
13769
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13775
if test -d /usr/nec ;then
13777
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13778
soname_spec='$libname${shared_ext}.$major'
13779
shlibpath_var=LD_LIBRARY_PATH
13785
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13786
soname_spec='${libname}${release}${shared_ext}$major'
13787
shlibpath_var=LD_LIBRARY_PATH
13794
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13795
echo "${ECHO_T}$dynamic_linker" >&6
13796
test "$dynamic_linker" = no && can_build_shared=no
13798
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13799
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13800
hardcode_action_CXX=
13801
if test -n "$hardcode_libdir_flag_spec_CXX" || \
13802
test -n "$runpath_var_CXX" || \
13803
test "X$hardcode_automatic_CXX" = "Xyes" ; then
13805
# We can hardcode non-existant directories.
13806
if test "$hardcode_direct_CXX" != no &&
13807
# If the only mechanism to avoid hardcoding is shlibpath_var, we
13808
# have to relink, otherwise we might link with an installed library
13809
# when we should be linking with a yet-to-be-installed one
13810
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13811
test "$hardcode_minus_L_CXX" != no; then
13812
# Linking always hardcodes the temporary library directory.
13813
hardcode_action_CXX=relink
13815
# We can link without hardcoding, and we can hardcode nonexisting dirs.
13816
hardcode_action_CXX=immediate
13819
# We cannot hardcode anything, or else we can only hardcode existing
13821
hardcode_action_CXX=unsupported
13823
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13824
echo "${ECHO_T}$hardcode_action_CXX" >&6
13826
if test "$hardcode_action_CXX" = relink; then
13827
# Fast installation is not supported
13828
enable_fast_install=no
13829
elif test "$shlibpath_overrides_runpath" = yes ||
13830
test "$enable_shared" = no; then
13831
# Fast installation is not necessary
13832
enable_fast_install=needless
13837
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13838
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13839
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13840
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13841
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13842
echo "$as_me:$LINENO: result: yes" >&5
13843
echo "${ECHO_T}yes" >&6
13845
# FIXME - insert some real tests, host_os isn't really good enough
13848
if test -n "$STRIP" ; then
13849
striplib="$STRIP -x"
13850
echo "$as_me:$LINENO: result: yes" >&5
13851
echo "${ECHO_T}yes" >&6
13853
echo "$as_me:$LINENO: result: no" >&5
13854
echo "${ECHO_T}no" >&6
13858
echo "$as_me:$LINENO: result: no" >&5
13859
echo "${ECHO_T}no" >&6
13864
if test "x$enable_dlopen" != xyes; then
13865
enable_dlopen=unknown
13866
enable_dlopen_self=unknown
13867
enable_dlopen_self_static=unknown
13874
lt_cv_dlopen="load_add_on"
13876
lt_cv_dlopen_self=yes
13880
lt_cv_dlopen="LoadLibrary"
13885
lt_cv_dlopen="dlopen"
13890
# if libdl is installed we need to link against it
13891
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13892
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13893
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13894
echo $ECHO_N "(cached) $ECHO_C" >&6
13896
ac_check_lib_save_LIBS=$LIBS
13898
cat >conftest.$ac_ext <<_ACEOF
13901
cat confdefs.h >>conftest.$ac_ext
13902
cat >>conftest.$ac_ext <<_ACEOF
13903
/* end confdefs.h. */
13905
/* Override any gcc2 internal prototype to avoid an error. */
13909
/* We use char because int might match the return type of a gcc2
13910
builtin and then its argument prototype would still apply. */
13920
rm -f conftest.$ac_objext conftest$ac_exeext
13921
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13922
(eval $ac_link) 2>conftest.er1
13924
grep -v '^ *+' conftest.er1 >conftest.err
13926
cat conftest.err >&5
13927
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13928
(exit $ac_status); } &&
13929
{ ac_try='test -z "$ac_cxx_werror_flag"
13930
|| test ! -s conftest.err'
13931
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13932
(eval $ac_try) 2>&5
13934
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935
(exit $ac_status); }; } &&
13936
{ ac_try='test -s conftest$ac_exeext'
13937
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13938
(eval $ac_try) 2>&5
13940
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941
(exit $ac_status); }; }; then
13942
ac_cv_lib_dl_dlopen=yes
13944
echo "$as_me: failed program was:" >&5
13945
sed 's/^/| /' conftest.$ac_ext >&5
13947
ac_cv_lib_dl_dlopen=no
13949
rm -f conftest.err conftest.$ac_objext \
13950
conftest$ac_exeext conftest.$ac_ext
13951
LIBS=$ac_check_lib_save_LIBS
13953
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13954
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13955
if test $ac_cv_lib_dl_dlopen = yes; then
13956
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13959
lt_cv_dlopen="dyld"
13961
lt_cv_dlopen_self=yes
13968
echo "$as_me:$LINENO: checking for shl_load" >&5
13969
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13970
if test "${ac_cv_func_shl_load+set}" = set; then
13971
echo $ECHO_N "(cached) $ECHO_C" >&6
13973
cat >conftest.$ac_ext <<_ACEOF
13976
cat confdefs.h >>conftest.$ac_ext
13977
cat >>conftest.$ac_ext <<_ACEOF
13978
/* end confdefs.h. */
13979
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13980
For example, HP-UX 11i <limits.h> declares gettimeofday. */
13981
#define shl_load innocuous_shl_load
13983
/* System header to define __stub macros and hopefully few prototypes,
13984
which can conflict with char shl_load (); below.
13985
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13986
<limits.h> exists even on freestanding compilers. */
13989
# include <limits.h>
13991
# include <assert.h>
13996
/* Override any gcc2 internal prototype to avoid an error. */
14001
/* We use char because int might match the return type of a gcc2
14002
builtin and then its argument prototype would still apply. */
14004
/* The GNU C library defines this for functions which it implements
14005
to always fail with ENOSYS. Some functions are actually named
14006
something starting with __ and the normal name is an alias. */
14007
#if defined (__stub_shl_load) || defined (__stub___shl_load)
14010
char (*f) () = shl_load;
14019
return f != shl_load;
14024
rm -f conftest.$ac_objext conftest$ac_exeext
14025
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14026
(eval $ac_link) 2>conftest.er1
14028
grep -v '^ *+' conftest.er1 >conftest.err
14030
cat conftest.err >&5
14031
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032
(exit $ac_status); } &&
14033
{ ac_try='test -z "$ac_cxx_werror_flag"
14034
|| test ! -s conftest.err'
14035
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14036
(eval $ac_try) 2>&5
14038
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039
(exit $ac_status); }; } &&
14040
{ ac_try='test -s conftest$ac_exeext'
14041
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14042
(eval $ac_try) 2>&5
14044
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045
(exit $ac_status); }; }; then
14046
ac_cv_func_shl_load=yes
14048
echo "$as_me: failed program was:" >&5
14049
sed 's/^/| /' conftest.$ac_ext >&5
14051
ac_cv_func_shl_load=no
14053
rm -f conftest.err conftest.$ac_objext \
14054
conftest$ac_exeext conftest.$ac_ext
14056
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14057
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14058
if test $ac_cv_func_shl_load = yes; then
14059
lt_cv_dlopen="shl_load"
14061
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14062
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14063
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14064
echo $ECHO_N "(cached) $ECHO_C" >&6
14066
ac_check_lib_save_LIBS=$LIBS
14068
cat >conftest.$ac_ext <<_ACEOF
14071
cat confdefs.h >>conftest.$ac_ext
14072
cat >>conftest.$ac_ext <<_ACEOF
14073
/* end confdefs.h. */
14075
/* Override any gcc2 internal prototype to avoid an error. */
14079
/* We use char because int might match the return type of a gcc2
14080
builtin and then its argument prototype would still apply. */
14090
rm -f conftest.$ac_objext conftest$ac_exeext
14091
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14092
(eval $ac_link) 2>conftest.er1
14094
grep -v '^ *+' conftest.er1 >conftest.err
14096
cat conftest.err >&5
14097
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14098
(exit $ac_status); } &&
14099
{ ac_try='test -z "$ac_cxx_werror_flag"
14100
|| test ! -s conftest.err'
14101
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14102
(eval $ac_try) 2>&5
14104
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105
(exit $ac_status); }; } &&
14106
{ ac_try='test -s conftest$ac_exeext'
14107
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14108
(eval $ac_try) 2>&5
14110
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14111
(exit $ac_status); }; }; then
14112
ac_cv_lib_dld_shl_load=yes
14114
echo "$as_me: failed program was:" >&5
14115
sed 's/^/| /' conftest.$ac_ext >&5
14117
ac_cv_lib_dld_shl_load=no
14119
rm -f conftest.err conftest.$ac_objext \
14120
conftest$ac_exeext conftest.$ac_ext
14121
LIBS=$ac_check_lib_save_LIBS
14123
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14124
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14125
if test $ac_cv_lib_dld_shl_load = yes; then
14126
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14128
echo "$as_me:$LINENO: checking for dlopen" >&5
14129
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14130
if test "${ac_cv_func_dlopen+set}" = set; then
14131
echo $ECHO_N "(cached) $ECHO_C" >&6
14133
cat >conftest.$ac_ext <<_ACEOF
14136
cat confdefs.h >>conftest.$ac_ext
14137
cat >>conftest.$ac_ext <<_ACEOF
14138
/* end confdefs.h. */
14139
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14140
For example, HP-UX 11i <limits.h> declares gettimeofday. */
14141
#define dlopen innocuous_dlopen
14143
/* System header to define __stub macros and hopefully few prototypes,
14144
which can conflict with char dlopen (); below.
14145
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14146
<limits.h> exists even on freestanding compilers. */
14149
# include <limits.h>
14151
# include <assert.h>
14156
/* Override any gcc2 internal prototype to avoid an error. */
14161
/* We use char because int might match the return type of a gcc2
14162
builtin and then its argument prototype would still apply. */
14164
/* The GNU C library defines this for functions which it implements
14165
to always fail with ENOSYS. Some functions are actually named
14166
something starting with __ and the normal name is an alias. */
14167
#if defined (__stub_dlopen) || defined (__stub___dlopen)
14170
char (*f) () = dlopen;
14179
return f != dlopen;
14184
rm -f conftest.$ac_objext conftest$ac_exeext
14185
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14186
(eval $ac_link) 2>conftest.er1
14188
grep -v '^ *+' conftest.er1 >conftest.err
14190
cat conftest.err >&5
14191
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14192
(exit $ac_status); } &&
14193
{ ac_try='test -z "$ac_cxx_werror_flag"
14194
|| test ! -s conftest.err'
14195
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14196
(eval $ac_try) 2>&5
14198
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14199
(exit $ac_status); }; } &&
14200
{ ac_try='test -s conftest$ac_exeext'
14201
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14202
(eval $ac_try) 2>&5
14204
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205
(exit $ac_status); }; }; then
14206
ac_cv_func_dlopen=yes
14208
echo "$as_me: failed program was:" >&5
14209
sed 's/^/| /' conftest.$ac_ext >&5
14211
ac_cv_func_dlopen=no
14213
rm -f conftest.err conftest.$ac_objext \
14214
conftest$ac_exeext conftest.$ac_ext
14216
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14217
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14218
if test $ac_cv_func_dlopen = yes; then
14219
lt_cv_dlopen="dlopen"
14221
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14222
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14223
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14224
echo $ECHO_N "(cached) $ECHO_C" >&6
14226
ac_check_lib_save_LIBS=$LIBS
14228
cat >conftest.$ac_ext <<_ACEOF
14231
cat confdefs.h >>conftest.$ac_ext
14232
cat >>conftest.$ac_ext <<_ACEOF
14233
/* end confdefs.h. */
14235
/* Override any gcc2 internal prototype to avoid an error. */
14239
/* We use char because int might match the return type of a gcc2
14240
builtin and then its argument prototype would still apply. */
14250
rm -f conftest.$ac_objext conftest$ac_exeext
14251
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14252
(eval $ac_link) 2>conftest.er1
14254
grep -v '^ *+' conftest.er1 >conftest.err
14256
cat conftest.err >&5
14257
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258
(exit $ac_status); } &&
14259
{ ac_try='test -z "$ac_cxx_werror_flag"
14260
|| test ! -s conftest.err'
14261
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14262
(eval $ac_try) 2>&5
14264
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265
(exit $ac_status); }; } &&
14266
{ ac_try='test -s conftest$ac_exeext'
14267
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14268
(eval $ac_try) 2>&5
14270
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271
(exit $ac_status); }; }; then
14272
ac_cv_lib_dl_dlopen=yes
14274
echo "$as_me: failed program was:" >&5
14275
sed 's/^/| /' conftest.$ac_ext >&5
14277
ac_cv_lib_dl_dlopen=no
14279
rm -f conftest.err conftest.$ac_objext \
14280
conftest$ac_exeext conftest.$ac_ext
14281
LIBS=$ac_check_lib_save_LIBS
14283
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14284
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14285
if test $ac_cv_lib_dl_dlopen = yes; then
14286
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14288
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14289
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14290
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14291
echo $ECHO_N "(cached) $ECHO_C" >&6
14293
ac_check_lib_save_LIBS=$LIBS
14294
LIBS="-lsvld $LIBS"
14295
cat >conftest.$ac_ext <<_ACEOF
14298
cat confdefs.h >>conftest.$ac_ext
14299
cat >>conftest.$ac_ext <<_ACEOF
14300
/* end confdefs.h. */
14302
/* Override any gcc2 internal prototype to avoid an error. */
14306
/* We use char because int might match the return type of a gcc2
14307
builtin and then its argument prototype would still apply. */
14317
rm -f conftest.$ac_objext conftest$ac_exeext
14318
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14319
(eval $ac_link) 2>conftest.er1
14321
grep -v '^ *+' conftest.er1 >conftest.err
14323
cat conftest.err >&5
14324
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325
(exit $ac_status); } &&
14326
{ ac_try='test -z "$ac_cxx_werror_flag"
14327
|| test ! -s conftest.err'
14328
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14329
(eval $ac_try) 2>&5
14331
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14332
(exit $ac_status); }; } &&
14333
{ ac_try='test -s conftest$ac_exeext'
14334
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14335
(eval $ac_try) 2>&5
14337
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338
(exit $ac_status); }; }; then
14339
ac_cv_lib_svld_dlopen=yes
14341
echo "$as_me: failed program was:" >&5
14342
sed 's/^/| /' conftest.$ac_ext >&5
14344
ac_cv_lib_svld_dlopen=no
14346
rm -f conftest.err conftest.$ac_objext \
14347
conftest$ac_exeext conftest.$ac_ext
14348
LIBS=$ac_check_lib_save_LIBS
14350
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14351
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14352
if test $ac_cv_lib_svld_dlopen = yes; then
14353
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14355
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14356
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14357
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14358
echo $ECHO_N "(cached) $ECHO_C" >&6
14360
ac_check_lib_save_LIBS=$LIBS
14362
cat >conftest.$ac_ext <<_ACEOF
14365
cat confdefs.h >>conftest.$ac_ext
14366
cat >>conftest.$ac_ext <<_ACEOF
14367
/* end confdefs.h. */
14369
/* Override any gcc2 internal prototype to avoid an error. */
14373
/* We use char because int might match the return type of a gcc2
14374
builtin and then its argument prototype would still apply. */
14384
rm -f conftest.$ac_objext conftest$ac_exeext
14385
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14386
(eval $ac_link) 2>conftest.er1
14388
grep -v '^ *+' conftest.er1 >conftest.err
14390
cat conftest.err >&5
14391
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392
(exit $ac_status); } &&
14393
{ ac_try='test -z "$ac_cxx_werror_flag"
14394
|| test ! -s conftest.err'
14395
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14396
(eval $ac_try) 2>&5
14398
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14399
(exit $ac_status); }; } &&
14400
{ ac_try='test -s conftest$ac_exeext'
14401
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14402
(eval $ac_try) 2>&5
14404
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14405
(exit $ac_status); }; }; then
14406
ac_cv_lib_dld_dld_link=yes
14408
echo "$as_me: failed program was:" >&5
14409
sed 's/^/| /' conftest.$ac_ext >&5
14411
ac_cv_lib_dld_dld_link=no
14413
rm -f conftest.err conftest.$ac_objext \
14414
conftest$ac_exeext conftest.$ac_ext
14415
LIBS=$ac_check_lib_save_LIBS
14417
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14418
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14419
if test $ac_cv_lib_dld_dld_link = yes; then
14420
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14441
if test "x$lt_cv_dlopen" != xno; then
14447
case $lt_cv_dlopen in
14449
save_CPPFLAGS="$CPPFLAGS"
14450
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14452
save_LDFLAGS="$LDFLAGS"
14453
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14456
LIBS="$lt_cv_dlopen_libs $LIBS"
14458
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14459
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14460
if test "${lt_cv_dlopen_self+set}" = set; then
14461
echo $ECHO_N "(cached) $ECHO_C" >&6
14463
if test "$cross_compiling" = yes; then :
14464
lt_cv_dlopen_self=cross
14466
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14467
lt_status=$lt_dlunknown
14468
cat > conftest.$ac_ext <<EOF
14469
#line 14469 "configure"
14470
#include "confdefs.h"
14479
# define LT_DLGLOBAL RTLD_GLOBAL
14482
# define LT_DLGLOBAL DL_GLOBAL
14484
# define LT_DLGLOBAL 0
14488
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14489
find out it does not work in some platform. */
14490
#ifndef LT_DLLAZY_OR_NOW
14492
# define LT_DLLAZY_OR_NOW RTLD_LAZY
14495
# define LT_DLLAZY_OR_NOW DL_LAZY
14498
# define LT_DLLAZY_OR_NOW RTLD_NOW
14501
# define LT_DLLAZY_OR_NOW DL_NOW
14503
# define LT_DLLAZY_OR_NOW 0
14511
extern "C" void exit (int);
14514
void fnord() { int i=42;}
14517
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14518
int status = $lt_dlunknown;
14522
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14523
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14524
/* dlclose (self); */
14530
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14531
(eval $ac_link) 2>&5
14533
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14534
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14535
(./conftest; exit; ) 2>/dev/null
14537
case x$lt_status in
14538
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14539
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14540
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14543
# compilation failed
14544
lt_cv_dlopen_self=no
14551
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14552
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14554
if test "x$lt_cv_dlopen_self" = xyes; then
14555
LDFLAGS="$LDFLAGS $link_static_flag"
14556
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14557
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14558
if test "${lt_cv_dlopen_self_static+set}" = set; then
14559
echo $ECHO_N "(cached) $ECHO_C" >&6
14561
if test "$cross_compiling" = yes; then :
14562
lt_cv_dlopen_self_static=cross
14564
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14565
lt_status=$lt_dlunknown
14566
cat > conftest.$ac_ext <<EOF
14567
#line 14567 "configure"
14568
#include "confdefs.h"
14577
# define LT_DLGLOBAL RTLD_GLOBAL
14580
# define LT_DLGLOBAL DL_GLOBAL
14582
# define LT_DLGLOBAL 0
14586
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14587
find out it does not work in some platform. */
14588
#ifndef LT_DLLAZY_OR_NOW
14590
# define LT_DLLAZY_OR_NOW RTLD_LAZY
14593
# define LT_DLLAZY_OR_NOW DL_LAZY
14596
# define LT_DLLAZY_OR_NOW RTLD_NOW
14599
# define LT_DLLAZY_OR_NOW DL_NOW
14601
# define LT_DLLAZY_OR_NOW 0
14609
extern "C" void exit (int);
14612
void fnord() { int i=42;}
14615
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14616
int status = $lt_dlunknown;
14620
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14621
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14622
/* dlclose (self); */
14628
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14629
(eval $ac_link) 2>&5
14631
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14632
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14633
(./conftest; exit; ) 2>/dev/null
14635
case x$lt_status in
14636
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14637
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14638
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14641
# compilation failed
14642
lt_cv_dlopen_self_static=no
14649
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14650
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14653
CPPFLAGS="$save_CPPFLAGS"
14654
LDFLAGS="$save_LDFLAGS"
14659
case $lt_cv_dlopen_self in
14660
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14661
*) enable_dlopen_self=unknown ;;
14664
case $lt_cv_dlopen_self_static in
14665
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14666
*) enable_dlopen_self_static=unknown ;;
14671
# The else clause should only fire when bootstrapping the
14672
# libtool distribution, otherwise you forgot to ship ltmain.sh
14673
# with your package, and you will get complaints that there are
14674
# no rules to generate ltmain.sh.
14675
if test -f "$ltmain"; then
14676
# See if we are running on zsh, and set the options which allow our commands through
14677
# without removal of \ escapes.
14678
if test -n "${ZSH_VERSION+set}" ; then
14679
setopt NO_GLOB_SUBST
14681
# Now quote all the things that may contain metacharacters while being
14682
# careful not to overquote the AC_SUBSTed values. We take copies of the
14683
# variables and quote the copies for generation of the libtool script.
14684
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14686
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14687
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14688
deplibs_check_method reload_flag reload_cmds need_locks \
14689
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14690
lt_cv_sys_global_symbol_to_c_name_address \
14691
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14692
old_postinstall_cmds old_postuninstall_cmds \
14696
lt_prog_compiler_wl_CXX \
14697
lt_prog_compiler_pic_CXX \
14698
lt_prog_compiler_static_CXX \
14699
lt_prog_compiler_no_builtin_flag_CXX \
14700
export_dynamic_flag_spec_CXX \
14701
thread_safe_flag_spec_CXX \
14702
whole_archive_flag_spec_CXX \
14703
enable_shared_with_static_runtimes_CXX \
14704
old_archive_cmds_CXX \
14705
old_archive_from_new_cmds_CXX \
14706
predep_objects_CXX \
14707
postdep_objects_CXX \
14710
compiler_lib_search_path_CXX \
14712
archive_expsym_cmds_CXX \
14713
postinstall_cmds_CXX \
14714
postuninstall_cmds_CXX \
14715
old_archive_from_expsyms_cmds_CXX \
14716
allow_undefined_flag_CXX \
14717
no_undefined_flag_CXX \
14718
export_symbols_cmds_CXX \
14719
hardcode_libdir_flag_spec_CXX \
14720
hardcode_libdir_flag_spec_ld_CXX \
14721
hardcode_libdir_separator_CXX \
14722
hardcode_automatic_CXX \
14724
module_expsym_cmds_CXX \
14725
lt_cv_prog_compiler_c_o_CXX \
14726
exclude_expsyms_CXX \
14727
include_expsyms_CXX; do
14730
old_archive_cmds_CXX | \
14731
old_archive_from_new_cmds_CXX | \
14732
archive_cmds_CXX | \
14733
archive_expsym_cmds_CXX | \
14734
module_cmds_CXX | \
14735
module_expsym_cmds_CXX | \
14736
old_archive_from_expsyms_cmds_CXX | \
14737
export_symbols_cmds_CXX | \
14738
extract_expsyms_cmds | reload_cmds | finish_cmds | \
14739
postinstall_cmds | postuninstall_cmds | \
14740
old_postinstall_cmds | old_postuninstall_cmds | \
14741
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14742
# Double-quote double-evaled strings.
14743
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14746
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14752
*'\$0 --fallback-echo"')
14753
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14759
cat <<__EOF__ >> "$cfgfile"
14760
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14762
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14764
# Shell to use when invoking shell scripts.
14767
# Whether or not to build shared libraries.
14768
build_libtool_libs=$enable_shared
14770
# Whether or not to build static libraries.
14771
build_old_libs=$enable_static
14773
# Whether or not to add -lc for building shared libraries.
14774
build_libtool_need_lc=$archive_cmds_need_lc_CXX
14776
# Whether or not to disallow shared libs when runtime libs are static
14777
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14779
# Whether or not to optimize for fast installation.
14780
fast_install=$enable_fast_install
14783
host_alias=$host_alias
14786
# An echo program that does not interpret backslashes.
14791
AR_FLAGS=$lt_AR_FLAGS
14796
# A language-specific compiler.
14797
CC=$lt_compiler_CXX
14799
# Is the compiler the GNU C compiler?
14805
# The linker used to build libraries.
14808
# Whether we need hard or soft links.
14811
# A BSD-compatible nm program.
14814
# A symbol stripping program
14817
# Used to examine libraries when file_magic_cmd begins "file"
14818
MAGIC_CMD=$MAGIC_CMD
14820
# Used on cygwin: DLL creation program.
14823
# Used on cygwin: object dumper.
14826
# Used on cygwin: assembler.
14829
# The name of the directory that contains temporary libtool files.
14832
# How to create reloadable object files.
14833
reload_flag=$lt_reload_flag
14834
reload_cmds=$lt_reload_cmds
14836
# How to pass a linker flag through the compiler.
14837
wl=$lt_lt_prog_compiler_wl_CXX
14839
# Object file suffix (normally "o").
14840
objext="$ac_objext"
14842
# Old archive suffix (normally "a").
14845
# Shared library suffix (normally ".so").
14846
shrext_cmds='$shrext_cmds'
14848
# Executable file suffix (normally "").
14851
# Additional compiler flags for building library objects.
14852
pic_flag=$lt_lt_prog_compiler_pic_CXX
14855
# What is the maximum length of a command?
14856
max_cmd_len=$lt_cv_sys_max_cmd_len
14858
# Does compiler simultaneously support -c and -o options?
14859
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14861
# Must we lock files when doing compilation ?
14862
need_locks=$lt_need_locks
14864
# Do we need the lib prefix for modules?
14865
need_lib_prefix=$need_lib_prefix
14867
# Do we need a version for libraries?
14868
need_version=$need_version
14870
# Whether dlopen is supported.
14871
dlopen_support=$enable_dlopen
14873
# Whether dlopen of programs is supported.
14874
dlopen_self=$enable_dlopen_self
14876
# Whether dlopen of statically linked programs is supported.
14877
dlopen_self_static=$enable_dlopen_self_static
14879
# Compiler flag to prevent dynamic linking.
14880
link_static_flag=$lt_lt_prog_compiler_static_CXX
14882
# Compiler flag to turn off builtin functions.
14883
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14885
# Compiler flag to allow reflexive dlopens.
14886
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14888
# Compiler flag to generate shared objects directly from archives.
14889
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14891
# Compiler flag to generate thread-safe objects.
14892
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14894
# Library versioning type.
14895
version_type=$version_type
14897
# Format of library name prefix.
14898
libname_spec=$lt_libname_spec
14900
# List of archive names. First name is the real one, the rest are links.
14901
# The last name is the one that the linker finds with -lNAME.
14902
library_names_spec=$lt_library_names_spec
14904
# The coded name of the library, if different from the real name.
14905
soname_spec=$lt_soname_spec
14907
# Commands used to build and install an old-style archive.
14909
old_archive_cmds=$lt_old_archive_cmds_CXX
14910
old_postinstall_cmds=$lt_old_postinstall_cmds
14911
old_postuninstall_cmds=$lt_old_postuninstall_cmds
14913
# Create an old-style archive from a shared archive.
14914
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14916
# Create a temporary old-style archive to link instead of a shared archive.
14917
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14919
# Commands used to build and install a shared archive.
14920
archive_cmds=$lt_archive_cmds_CXX
14921
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14922
postinstall_cmds=$lt_postinstall_cmds
14923
postuninstall_cmds=$lt_postuninstall_cmds
14925
# Commands used to build a loadable module (assumed same as above if empty)
14926
module_cmds=$lt_module_cmds_CXX
14927
module_expsym_cmds=$lt_module_expsym_cmds_CXX
14929
# Commands to strip libraries.
14930
old_striplib=$lt_old_striplib
14931
striplib=$lt_striplib
14933
# Dependencies to place before the objects being linked to create a
14935
predep_objects=$lt_predep_objects_CXX
14937
# Dependencies to place after the objects being linked to create a
14939
postdep_objects=$lt_postdep_objects_CXX
14941
# Dependencies to place before the objects being linked to create a
14943
predeps=$lt_predeps_CXX
14945
# Dependencies to place after the objects being linked to create a
14947
postdeps=$lt_postdeps_CXX
14949
# The library search path used internally by the compiler when linking
14950
# a shared library.
14951
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14953
# Method to check whether dependent libraries are shared objects.
14954
deplibs_check_method=$lt_deplibs_check_method
14956
# Command to use when deplibs_check_method == file_magic.
14957
file_magic_cmd=$lt_file_magic_cmd
14959
# Flag that allows shared libraries with undefined symbols to be built.
14960
allow_undefined_flag=$lt_allow_undefined_flag_CXX
14962
# Flag that forces no undefined symbols.
14963
no_undefined_flag=$lt_no_undefined_flag_CXX
14965
# Commands used to finish a libtool library installation in a directory.
14966
finish_cmds=$lt_finish_cmds
14968
# Same as above, but a single script fragment to be evaled but not shown.
14969
finish_eval=$lt_finish_eval
14971
# Take the output of nm and produce a listing of raw symbols and C names.
14972
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14974
# Transform the output of nm in a proper C declaration
14975
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14977
# Transform the output of nm in a C name address pair
14978
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14980
# This is the shared library runtime path variable.
14981
runpath_var=$runpath_var
14983
# This is the shared library path variable.
14984
shlibpath_var=$shlibpath_var
14986
# Is shlibpath searched before the hard-coded library search path?
14987
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14989
# How to hardcode a shared library path into an executable.
14990
hardcode_action=$hardcode_action_CXX
14992
# Whether we should hardcode library paths into libraries.
14993
hardcode_into_libs=$hardcode_into_libs
14995
# Flag to hardcode \$libdir into a binary during linking.
14996
# This must work even if \$libdir does not exist.
14997
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14999
# If ld is used when linking, flag to hardcode \$libdir into
15000
# a binary during linking. This must work even if \$libdir does
15002
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15004
# Whether we need a single -rpath flag with a separated argument.
15005
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15007
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15008
# resulting binary.
15009
hardcode_direct=$hardcode_direct_CXX
15011
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15012
# resulting binary.
15013
hardcode_minus_L=$hardcode_minus_L_CXX
15015
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15016
# the resulting binary.
15017
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15019
# Set to yes if building a shared library automatically hardcodes DIR into the library
15020
# and all subsequent libraries and executables linked against it.
15021
hardcode_automatic=$hardcode_automatic_CXX
15023
# Variables whose values should be saved in libtool wrapper scripts and
15024
# restored at relink time.
15025
variables_saved_for_relink="$variables_saved_for_relink"
15027
# Whether libtool must link a program against all its dependency libraries.
15028
link_all_deplibs=$link_all_deplibs_CXX
15030
# Compile-time system search path for libraries
15031
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15033
# Run-time system search path for libraries
15034
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15036
# Fix the shell variable \$srcfile for the compiler.
15037
fix_srcfile_path="$fix_srcfile_path_CXX"
15039
# Set to yes if exported symbols are required.
15040
always_export_symbols=$always_export_symbols_CXX
15042
# The commands to list exported symbols.
15043
export_symbols_cmds=$lt_export_symbols_cmds_CXX
15045
# The commands to extract the exported symbol list from a shared archive.
15046
extract_expsyms_cmds=$lt_extract_expsyms_cmds
15048
# Symbols that should not be listed in the preloaded symbols.
15049
exclude_expsyms=$lt_exclude_expsyms_CXX
15051
# Symbols that must always be exported.
15052
include_expsyms=$lt_include_expsyms_CXX
15054
# ### END LIBTOOL TAG CONFIG: $tagname
15060
# If there is no Makefile yet, we rely on a make rule to execute
15061
# `config.status --recheck' to rerun these tests and create the
15062
# libtool script then.
15063
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15064
if test -f "$ltmain_in"; then
15065
test -f Makefile && make "$ltmain"
15071
ac_cpp='$CPP $CPPFLAGS'
15072
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15073
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15074
ac_compiler_gnu=$ac_cv_c_compiler_gnu
15080
with_gnu_ldcxx=$with_gnu_ld
15081
with_gnu_ld=$lt_save_with_gnu_ld
15082
lt_cv_path_LDCXX=$lt_cv_path_LD
15083
lt_cv_path_LD=$lt_save_path_LD
15084
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15085
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15093
if test -n "$F77" && test "X$F77" != "Xno"; then
15096
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15097
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15098
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15101
archive_cmds_need_lc_F77=no
15102
allow_undefined_flag_F77=
15103
always_export_symbols_F77=no
15104
archive_expsym_cmds_F77=
15105
export_dynamic_flag_spec_F77=
15106
hardcode_direct_F77=no
15107
hardcode_libdir_flag_spec_F77=
15108
hardcode_libdir_flag_spec_ld_F77=
15109
hardcode_libdir_separator_F77=
15110
hardcode_minus_L_F77=no
15111
hardcode_automatic_F77=no
15113
module_expsym_cmds_F77=
15114
link_all_deplibs_F77=unknown
15115
old_archive_cmds_F77=$old_archive_cmds
15116
no_undefined_flag_F77=
15117
whole_archive_flag_spec_F77=
15118
enable_shared_with_static_runtimes_F77=no
15120
# Source file extension for f77 test sources.
15123
# Object file extension for compiled f77 test sources.
15127
# Code to be used in simple compile tests
15128
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
15130
# Code to be used in simple link tests
15131
lt_simple_link_test_code=" program t\n end\n"
15133
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15135
# If no C compiler was specified, use CC.
15138
# Allow CC to be a program name with arguments.
15142
# Allow CC to be a program name with arguments.
15147
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15149
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15150
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
15151
echo "$as_me:$LINENO: result: $can_build_shared" >&5
15152
echo "${ECHO_T}$can_build_shared" >&6
15154
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15155
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
15156
test "$can_build_shared" = "no" && enable_shared=no
15158
# On AIX, shared libraries and static libraries use the same namespace, and
15159
# are all built from PIC.
15162
test "$enable_shared" = yes && enable_static=no
15163
if test -n "$RANLIB"; then
15164
archive_cmds="$archive_cmds~\$RANLIB \$lib"
15165
postinstall_cmds='$RANLIB $lib'
15169
test "$enable_shared" = yes && enable_static=no
15172
echo "$as_me:$LINENO: result: $enable_shared" >&5
15173
echo "${ECHO_T}$enable_shared" >&6
15175
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15176
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
15177
# Make sure either enable_shared or enable_static is yes.
15178
test "$enable_shared" = yes || enable_static=yes
15179
echo "$as_me:$LINENO: result: $enable_static" >&5
15180
echo "${ECHO_T}$enable_static" >&6
15182
test "$ld_shlibs_F77" = no && can_build_shared=no
15187
lt_prog_compiler_wl_F77=
15188
lt_prog_compiler_pic_F77=
15189
lt_prog_compiler_static_F77=
15191
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15192
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15194
if test "$GCC" = yes; then
15195
lt_prog_compiler_wl_F77='-Wl,'
15196
lt_prog_compiler_static_F77='-static'
15200
# All AIX code is PIC.
15201
if test "$host_cpu" = ia64; then
15202
# AIX 5 now supports IA64 processor
15203
lt_prog_compiler_static_F77='-Bstatic'
15208
# FIXME: we need at least 68020 code to build shared libraries, but
15209
# adding the `-m68020' flag to GCC prevents building anything better,
15211
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15214
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15215
# PIC is the default for these OSes.
15218
mingw* | pw32* | os2*)
15219
# This hack is so that the source file can tell whether it is being
15220
# built for inclusion in a dll (and should export symbols for example).
15221
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15224
darwin* | rhapsody*)
15225
# PIC is the default on this platform
15226
# Common symbols not allowed in MH_DYLIB files
15227
lt_prog_compiler_pic_F77='-fno-common'
15231
# Just because we use GCC doesn't mean we suddenly get shared libraries
15232
# on systems that don't support them.
15233
lt_prog_compiler_can_build_shared_F77=no
15238
if test -d /usr/nec; then
15239
lt_prog_compiler_pic_F77=-Kconform_pic
15244
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15245
# not for PA HP-UX.
15246
case "$host_cpu" in
15251
lt_prog_compiler_pic_F77='-fPIC'
15257
lt_prog_compiler_pic_F77='-fPIC'
15261
# PORTME Check for flag to pass linker flags through the system compiler.
15264
lt_prog_compiler_wl_F77='-Wl,'
15265
if test "$host_cpu" = ia64; then
15266
# AIX 5 now supports IA64 processor
15267
lt_prog_compiler_static_F77='-Bstatic'
15269
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15273
# PIC is the default on this platform
15274
# Common symbols not allowed in MH_DYLIB files
15275
case "$cc_basename" in
15277
lt_prog_compiler_pic_F77='-qnocommon'
15278
lt_prog_compiler_wl_F77='-Wl,'
15283
mingw* | pw32* | os2*)
15284
# This hack is so that the source file can tell whether it is being
15285
# built for inclusion in a dll (and should export symbols for example).
15286
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15289
hpux9* | hpux10* | hpux11*)
15290
lt_prog_compiler_wl_F77='-Wl,'
15291
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15292
# not for PA HP-UX.
15293
case "$host_cpu" in
15298
lt_prog_compiler_pic_F77='+Z'
15301
# Is there a better lt_prog_compiler_static that works with the bundled CC?
15302
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15305
irix5* | irix6* | nonstopux*)
15306
lt_prog_compiler_wl_F77='-Wl,'
15307
# PIC (with -KPIC) is the default.
15308
lt_prog_compiler_static_F77='-non_shared'
15312
lt_prog_compiler_pic_F77='-KPIC'
15313
lt_prog_compiler_static_F77='-Bstatic'
15319
lt_prog_compiler_wl_F77='-Wl,'
15320
lt_prog_compiler_pic_F77='-KPIC'
15321
lt_prog_compiler_static_F77='-static'
15324
lt_prog_compiler_wl_F77='-Wl,'
15325
# All Alpha code is PIC.
15326
lt_prog_compiler_static_F77='-non_shared'
15331
osf3* | osf4* | osf5*)
15332
lt_prog_compiler_wl_F77='-Wl,'
15333
# All OSF/1 code is PIC.
15334
lt_prog_compiler_static_F77='-non_shared'
15338
lt_prog_compiler_pic_F77='-Kpic'
15339
lt_prog_compiler_static_F77='-dn'
15343
lt_prog_compiler_wl_F77='-Wl,'
15344
lt_prog_compiler_pic_F77='-KPIC'
15345
lt_prog_compiler_static_F77='-Bstatic'
15349
lt_prog_compiler_wl_F77='-Qoption ld '
15350
lt_prog_compiler_pic_F77='-PIC'
15351
lt_prog_compiler_static_F77='-Bstatic'
15354
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15355
lt_prog_compiler_wl_F77='-Wl,'
15356
lt_prog_compiler_pic_F77='-KPIC'
15357
lt_prog_compiler_static_F77='-Bstatic'
15361
if test -d /usr/nec ;then
15362
lt_prog_compiler_pic_F77='-Kconform_pic'
15363
lt_prog_compiler_static_F77='-Bstatic'
15368
lt_prog_compiler_pic_F77='-pic'
15369
lt_prog_compiler_static_F77='-Bstatic'
15373
lt_prog_compiler_can_build_shared_F77=no
15378
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15379
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
15382
# Check to make sure the PIC flag actually works.
15384
if test -n "$lt_prog_compiler_pic_F77"; then
15386
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15387
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
15388
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15389
echo $ECHO_N "(cached) $ECHO_C" >&6
15391
lt_prog_compiler_pic_works_F77=no
15392
ac_outfile=conftest.$ac_objext
15393
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15394
lt_compiler_flag="$lt_prog_compiler_pic_F77"
15395
# Insert the option either (1) after the last *FLAGS variable, or
15396
# (2) before a word containing "conftest.", or (3) at the end.
15397
# Note that $ac_compile itself does not contain backslashes and begins
15398
# with a dollar sign (not a hyphen), so the echo should work correctly.
15399
# The option is referenced via a variable to avoid confusing sed.
15400
lt_compile=`echo "$ac_compile" | $SED \
15401
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15402
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15403
-e 's:$: $lt_compiler_flag:'`
15404
(eval echo "\"\$as_me:15404: $lt_compile\"" >&5)
15405
(eval "$lt_compile" 2>conftest.err)
15407
cat conftest.err >&5
15408
echo "$as_me:15408: \$? = $ac_status" >&5
15409
if (exit $ac_status) && test -s "$ac_outfile"; then
15410
# The compiler can only warn and ignore the option if not recognized
15411
# So say no if there are warnings
15412
if test ! -s conftest.err; then
15413
lt_prog_compiler_pic_works_F77=yes
15419
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15420
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
15422
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15423
case $lt_prog_compiler_pic_F77 in
15425
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15428
lt_prog_compiler_pic_F77=
15429
lt_prog_compiler_can_build_shared_F77=no
15434
# For platforms which do not support PIC, -DPIC is meaningless:
15436
lt_prog_compiler_pic_F77=
15439
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15443
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15444
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15445
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15446
echo $ECHO_N "(cached) $ECHO_C" >&6
15448
lt_cv_prog_compiler_c_o_F77=no
15449
$rm -r conftest 2>/dev/null
15453
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15455
lt_compiler_flag="-o out/conftest2.$ac_objext"
15456
# Insert the option either (1) after the last *FLAGS variable, or
15457
# (2) before a word containing "conftest.", or (3) at the end.
15458
# Note that $ac_compile itself does not contain backslashes and begins
15459
# with a dollar sign (not a hyphen), so the echo should work correctly.
15460
lt_compile=`echo "$ac_compile" | $SED \
15461
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15462
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15463
-e 's:$: $lt_compiler_flag:'`
15464
(eval echo "\"\$as_me:15464: $lt_compile\"" >&5)
15465
(eval "$lt_compile" 2>out/conftest.err)
15467
cat out/conftest.err >&5
15468
echo "$as_me:15468: \$? = $ac_status" >&5
15469
if (exit $ac_status) && test -s out/conftest2.$ac_objext
15471
# The compiler can only warn and ignore the option if not recognized
15472
# So say no if there are warnings
15473
if test ! -s out/conftest.err; then
15474
lt_cv_prog_compiler_c_o_F77=yes
15479
# SGI C++ compiler will create directory out/ii_files/ for
15480
# template instantiation
15481
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15482
$rm out/* && rmdir out
15488
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15489
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
15492
hard_links="nottested"
15493
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15494
# do not overwrite the value of need_locks provided by the user
15495
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15496
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15499
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15501
ln conftest.a conftest.b 2>&5 || hard_links=no
15502
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15503
echo "$as_me:$LINENO: result: $hard_links" >&5
15504
echo "${ECHO_T}$hard_links" >&6
15505
if test "$hard_links" = no; then
15506
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15507
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15514
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15515
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15518
allow_undefined_flag_F77=
15519
enable_shared_with_static_runtimes_F77=no
15521
archive_expsym_cmds_F77=
15522
old_archive_From_new_cmds_F77=
15523
old_archive_from_expsyms_cmds_F77=
15524
export_dynamic_flag_spec_F77=
15525
whole_archive_flag_spec_F77=
15526
thread_safe_flag_spec_F77=
15527
hardcode_libdir_flag_spec_F77=
15528
hardcode_libdir_flag_spec_ld_F77=
15529
hardcode_libdir_separator_F77=
15530
hardcode_direct_F77=no
15531
hardcode_minus_L_F77=no
15532
hardcode_shlibpath_var_F77=unsupported
15533
link_all_deplibs_F77=unknown
15534
hardcode_automatic_F77=no
15536
module_expsym_cmds_F77=
15537
always_export_symbols_F77=no
15538
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15539
# include_expsyms should be a list of space-separated symbols to be *always*
15540
# included in the symbol list
15541
include_expsyms_F77=
15542
# exclude_expsyms can be an extended regexp of symbols to exclude
15543
# it will be wrapped by ` (' and `)$', so one must not match beginning or
15544
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15545
# as well as any symbol that contains `d'.
15546
exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15547
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15548
# platforms (ab)use it in PIC code, but their linkers get confused if
15549
# the symbol is explicitly referenced. Since portable code cannot
15550
# rely on this symbol name, it's probably fine to never include it in
15551
# preloaded symbol tables.
15552
extract_expsyms_cmds=
15555
cygwin* | mingw* | pw32*)
15556
# FIXME: the MSVC++ port hasn't been tested in a loooong time
15557
# When not using gcc, we currently assume that we are using
15558
# Microsoft Visual C++.
15559
if test "$GCC" != yes; then
15569
if test "$with_gnu_ld" = yes; then
15570
# If archive_cmds runs LD, not CC, wlarc should be empty
15573
# See if GNU ld supports shared libraries.
15575
aix3* | aix4* | aix5*)
15576
# On AIX/PPC, the GNU linker is very broken
15577
if test "$host_cpu" != ia64; then
15581
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15582
*** to be unable to reliably create shared libraries on AIX.
15583
*** Therefore, libtool is disabling shared libraries support. If you
15584
*** really care for shared libraries, you may want to modify your PATH
15585
*** so that a non-GNU linker is found, and then restart.
15592
archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15593
hardcode_libdir_flag_spec_F77='-L$libdir'
15594
hardcode_minus_L_F77=yes
15596
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15597
# that the semantics of dynamic libraries on AmigaOS, at least up
15598
# to version 4, is to share data among multiple programs linked
15599
# with the same dynamic library. Since this doesn't match the
15600
# behavior of shared libraries on other platforms, we can't use
15606
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15607
allow_undefined_flag_F77=unsupported
15608
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15609
# support --undefined. This deserves some investigation. FIXME
15610
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15616
cygwin* | mingw* | pw32*)
15617
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15618
# as there is no search path for DLLs.
15619
hardcode_libdir_flag_spec_F77='-L$libdir'
15620
allow_undefined_flag_F77=unsupported
15621
always_export_symbols_F77=no
15622
enable_shared_with_static_runtimes_F77=yes
15623
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15625
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15626
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15627
# If the export-symbols file already is a .def file (1st line
15628
# is EXPORTS), use it as is; otherwise, prepend...
15629
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15630
cp $export_symbols $output_objdir/$soname.def;
15632
echo EXPORTS > $output_objdir/$soname.def;
15633
cat $export_symbols >> $output_objdir/$soname.def;
15635
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15642
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15643
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15646
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15647
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15652
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15656
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15657
*** create shared libraries on Solaris systems. Therefore, libtool
15658
*** is disabling shared libraries support. We urge you to upgrade GNU
15659
*** binutils to release 2.9.1 or newer. Another option is to modify
15660
*** your PATH or compiler configuration so that the native linker is
15661
*** used, and then restart.
15664
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15665
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15666
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15673
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15675
hardcode_direct_F77=yes
15676
hardcode_shlibpath_var_F77=no
15680
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15681
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15682
archive_cmds_F77="$tmp_archive_cmds"
15683
supports_anon_versioning=no
15684
case `$LD -v 2>/dev/null` in
15685
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15686
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15687
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15688
*\ 2.11.*) ;; # other 2.11 versions
15689
*) supports_anon_versioning=yes ;;
15691
if test $supports_anon_versioning = yes; then
15692
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15693
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15694
$echo "local: *; };" >> $output_objdir/$libname.ver~
15695
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15697
archive_expsym_cmds_F77="$tmp_archive_cmds"
15705
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15706
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15707
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15714
if test "$ld_shlibs_F77" = yes; then
15715
runpath_var=LD_RUN_PATH
15716
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15717
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15718
# ancient GNU ld didn't support --whole-archive et. al.
15719
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15720
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15722
whole_archive_flag_spec_F77=
15726
# PORTME fill in a description of your system's linker (not GNU ld)
15729
allow_undefined_flag_F77=unsupported
15730
always_export_symbols_F77=yes
15731
archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
15732
# Note: this linker hardcodes the directories in LIBPATH if there
15733
# are no directories specified by -L.
15734
hardcode_minus_L_F77=yes
15735
if test "$GCC" = yes && test -z "$link_static_flag"; then
15736
# Neither direct hardcoding nor static linking is supported with a
15738
hardcode_direct_F77=unsupported
15743
if test "$host_cpu" = ia64; then
15744
# On IA64, the linker does run time linking by default, so we don't
15745
# have to do anything special.
15746
aix_use_runtimelinking=no
15747
exp_sym_flag='-Bexport'
15750
# If we're using GNU nm, then we don't want the "-C" option.
15751
# -C means demangle to AIX nm, but means don't demangle with GNU nm
15752
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15753
export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15755
export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15757
aix_use_runtimelinking=no
15759
# Test if we are trying to use run time linking or normal
15760
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15761
# need to do runtime linking.
15762
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15763
for ld_flag in $LDFLAGS; do
15764
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15765
aix_use_runtimelinking=yes
15771
exp_sym_flag='-bexport'
15772
no_entry_flag='-bnoentry'
15775
# When large executables or shared objects are built, AIX ld can
15776
# have problems creating the table of contents. If linking a library
15777
# or program results in "error TOC overflow" add -mminimal-toc to
15778
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15779
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15781
archive_cmds_F77=''
15782
hardcode_direct_F77=yes
15783
hardcode_libdir_separator_F77=':'
15784
link_all_deplibs_F77=yes
15786
if test "$GCC" = yes; then
15787
case $host_os in aix4.012|aix4.012.*)
15788
# We only want to do this on AIX 4.2 and lower, the check
15789
# below for broken collect2 doesn't work under 4.3+
15790
collect2name=`${CC} -print-prog-name=collect2`
15791
if test -f "$collect2name" && \
15792
strings "$collect2name" | grep resolve_lib_name >/dev/null
15794
# We have reworked collect2
15795
hardcode_direct_F77=yes
15797
# We have old collect2
15798
hardcode_direct_F77=unsupported
15799
# It fails to find uninstalled libraries when the uninstalled
15800
# path is not listed in the libpath. Setting hardcode_minus_L
15801
# to unsupported forces relinking
15802
hardcode_minus_L_F77=yes
15803
hardcode_libdir_flag_spec_F77='-L$libdir'
15804
hardcode_libdir_separator_F77=
15807
shared_flag='-shared'
15810
if test "$host_cpu" = ia64; then
15811
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15812
# chokes on -Wl,-G. The following line is correct:
15815
if test "$aix_use_runtimelinking" = yes; then
15816
shared_flag='${wl}-G'
15818
shared_flag='${wl}-bM:SRE'
15823
# It seems that -bexpall does not export symbols beginning with
15824
# underscore (_), so it is better to generate a list of symbols to export.
15825
always_export_symbols_F77=yes
15826
if test "$aix_use_runtimelinking" = yes; then
15827
# Warning - without using the other runtime loading flags (-brtl),
15828
# -berok will link without error, but may produce a broken library.
15829
allow_undefined_flag_F77='-berok'
15830
# Determine the default libpath from the value encoded in an empty executable.
15831
cat >conftest.$ac_ext <<_ACEOF
15836
rm -f conftest.$ac_objext conftest$ac_exeext
15837
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15838
(eval $ac_link) 2>conftest.er1
15840
grep -v '^ *+' conftest.er1 >conftest.err
15842
cat conftest.err >&5
15843
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844
(exit $ac_status); } &&
15845
{ ac_try='test -z "$ac_f77_werror_flag"
15846
|| test ! -s conftest.err'
15847
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15848
(eval $ac_try) 2>&5
15850
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15851
(exit $ac_status); }; } &&
15852
{ ac_try='test -s conftest$ac_exeext'
15853
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15854
(eval $ac_try) 2>&5
15856
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15857
(exit $ac_status); }; }; then
15859
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15861
# Check for a 64-bit object if we didn't find anything.
15862
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15865
echo "$as_me: failed program was:" >&5
15866
sed 's/^/| /' conftest.$ac_ext >&5
15869
rm -f conftest.err conftest.$ac_objext \
15870
conftest$ac_exeext conftest.$ac_ext
15871
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15873
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15874
archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15876
if test "$host_cpu" = ia64; then
15877
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15878
allow_undefined_flag_F77="-z nodefs"
15879
archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
15881
# Determine the default libpath from the value encoded in an empty executable.
15882
cat >conftest.$ac_ext <<_ACEOF
15887
rm -f conftest.$ac_objext conftest$ac_exeext
15888
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15889
(eval $ac_link) 2>conftest.er1
15891
grep -v '^ *+' conftest.er1 >conftest.err
15893
cat conftest.err >&5
15894
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15895
(exit $ac_status); } &&
15896
{ ac_try='test -z "$ac_f77_werror_flag"
15897
|| test ! -s conftest.err'
15898
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15899
(eval $ac_try) 2>&5
15901
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15902
(exit $ac_status); }; } &&
15903
{ ac_try='test -s conftest$ac_exeext'
15904
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15905
(eval $ac_try) 2>&5
15907
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15908
(exit $ac_status); }; }; then
15910
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15912
# Check for a 64-bit object if we didn't find anything.
15913
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15916
echo "$as_me: failed program was:" >&5
15917
sed 's/^/| /' conftest.$ac_ext >&5
15920
rm -f conftest.err conftest.$ac_objext \
15921
conftest$ac_exeext conftest.$ac_ext
15922
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15924
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15925
# Warning - without using the other run time loading flags,
15926
# -berok will link without error, but may produce a broken library.
15927
no_undefined_flag_F77=' ${wl}-bernotok'
15928
allow_undefined_flag_F77=' ${wl}-berok'
15929
# -bexpall does not export symbols beginning with underscore (_)
15930
always_export_symbols_F77=yes
15931
# Exported symbols can be pulled into shared objects from archives
15932
whole_archive_flag_spec_F77=' '
15933
archive_cmds_need_lc_F77=yes
15934
# This is similar to how AIX traditionally builds it's shared libraries.
15935
archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15941
archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15942
hardcode_libdir_flag_spec_F77='-L$libdir'
15943
hardcode_minus_L_F77=yes
15944
# see comment about different semantics on the GNU ld section
15949
export_dynamic_flag_spec_F77=-rdynamic
15952
cygwin* | mingw* | pw32*)
15953
# When not using gcc, we currently assume that we are using
15954
# Microsoft Visual C++.
15955
# hardcode_libdir_flag_spec is actually meaningless, as there is
15956
# no search path for DLLs.
15957
hardcode_libdir_flag_spec_F77=' '
15958
allow_undefined_flag_F77=unsupported
15959
# Tell ltmain to make .lib files, not .a files.
15961
# Tell ltmain to make .dll files, not .so files.
15963
# FIXME: Setting linknames here is a bad hack.
15964
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15965
# The linker will automatically build a .lib file if we build a DLL.
15966
old_archive_From_new_cmds_F77='true'
15967
# FIXME: Should let the user specify the lib program.
15968
old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15969
fix_srcfile_path='`cygpath -w "$srcfile"`'
15970
enable_shared_with_static_runtimes_F77=yes
15973
darwin* | rhapsody*)
15975
rhapsody* | darwin1.[012])
15976
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15979
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15980
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15982
case ${MACOSX_DEPLOYMENT_TARGET} in
15984
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15987
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15993
archive_cmds_need_lc_F77=no
15994
hardcode_direct_F77=no
15995
hardcode_automatic_F77=yes
15996
hardcode_shlibpath_var_F77=unsupported
15997
whole_archive_flag_spec_F77=''
15998
link_all_deplibs_F77=yes
15999
if test "$GCC" = yes ; then
16000
output_verbose_link_cmd='echo'
16001
archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16002
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16003
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16004
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16005
module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16007
case "$cc_basename" in
16009
output_verbose_link_cmd='echo'
16010
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16011
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16012
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16013
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16014
module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16024
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16025
hardcode_libdir_flag_spec_F77='-L$libdir'
16026
hardcode_shlibpath_var_F77=no
16033
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16034
# support. Future versions do this automatically, but an explicit c++rt0.o
16035
# does not break anything, and helps significantly (at the cost of a little
16038
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16039
hardcode_libdir_flag_spec_F77='-R$libdir'
16040
hardcode_direct_F77=yes
16041
hardcode_shlibpath_var_F77=no
16044
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
16046
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16047
hardcode_direct_F77=yes
16048
hardcode_minus_L_F77=yes
16049
hardcode_shlibpath_var_F77=no
16052
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16053
freebsd* | kfreebsd*-gnu)
16054
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16055
hardcode_libdir_flag_spec_F77='-R$libdir'
16056
hardcode_direct_F77=yes
16057
hardcode_shlibpath_var_F77=no
16061
if test "$GCC" = yes; then
16062
archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16064
archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16066
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16067
hardcode_libdir_separator_F77=:
16068
hardcode_direct_F77=yes
16070
# hardcode_minus_L: Not really in the search PATH,
16071
# but as the default location of the library.
16072
hardcode_minus_L_F77=yes
16073
export_dynamic_flag_spec_F77='${wl}-E'
16077
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16078
case "$host_cpu" in
16080
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16083
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16087
case "$host_cpu" in
16089
archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16092
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16096
if test "$with_gnu_ld" = no; then
16097
case "$host_cpu" in
16099
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16100
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16101
hardcode_libdir_separator_F77=:
16102
hardcode_direct_F77=no
16103
hardcode_shlibpath_var_F77=no
16106
hardcode_libdir_flag_spec_F77='-L$libdir'
16107
hardcode_direct_F77=no
16108
hardcode_shlibpath_var_F77=no
16110
# hardcode_minus_L: Not really in the search PATH,
16111
# but as the default location of the library.
16112
hardcode_minus_L_F77=yes
16115
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16116
hardcode_libdir_separator_F77=:
16117
hardcode_direct_F77=yes
16118
export_dynamic_flag_spec_F77='${wl}-E'
16120
# hardcode_minus_L: Not really in the search PATH,
16121
# but as the default location of the library.
16122
hardcode_minus_L_F77=yes
16128
irix5* | irix6* | nonstopux*)
16129
if test "$GCC" = yes; then
16130
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16132
archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16133
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16135
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16136
hardcode_libdir_separator_F77=:
16137
link_all_deplibs_F77=yes
16141
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16142
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16144
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16146
hardcode_libdir_flag_spec_F77='-R$libdir'
16147
hardcode_direct_F77=yes
16148
hardcode_shlibpath_var_F77=no
16152
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16153
hardcode_direct_F77=yes
16154
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16155
hardcode_libdir_separator_F77=:
16156
hardcode_shlibpath_var_F77=no
16160
hardcode_direct_F77=yes
16161
hardcode_shlibpath_var_F77=no
16162
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16163
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16164
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16165
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16166
export_dynamic_flag_spec_F77='${wl}-E'
16169
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16170
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16171
hardcode_libdir_flag_spec_F77='-R$libdir'
16174
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16175
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16182
hardcode_libdir_flag_spec_F77='-L$libdir'
16183
hardcode_minus_L_F77=yes
16184
allow_undefined_flag_F77=unsupported
16185
archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
16186
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16190
if test "$GCC" = yes; then
16191
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16192
archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16194
allow_undefined_flag_F77=' -expect_unresolved \*'
16195
archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16197
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16198
hardcode_libdir_separator_F77=:
16201
osf4* | osf5*) # as osf3* with the addition of -msym flag
16202
if test "$GCC" = yes; then
16203
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16204
archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16205
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16207
allow_undefined_flag_F77=' -expect_unresolved \*'
16208
archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16209
archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16210
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16212
# Both c and cxx compiler support -rpath directly
16213
hardcode_libdir_flag_spec_F77='-rpath $libdir'
16215
hardcode_libdir_separator_F77=:
16219
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16220
hardcode_shlibpath_var_F77=no
16221
export_dynamic_flag_spec_F77='${wl}-Bexport'
16222
runpath_var=LD_RUN_PATH
16223
hardcode_runpath_var=yes
16227
no_undefined_flag_F77=' -z text'
16228
if test "$GCC" = yes; then
16229
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16230
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16231
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16233
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16234
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16235
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16237
hardcode_libdir_flag_spec_F77='-R$libdir'
16238
hardcode_shlibpath_var_F77=no
16240
solaris2.[0-5] | solaris2.[0-5].*) ;;
16241
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
16242
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16244
link_all_deplibs_F77=yes
16248
if test "x$host_vendor" = xsequent; then
16249
# Use $CC to link under sequent, because it throws in some extra .o
16250
# files that make .init and .fini sections work.
16251
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16253
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16255
hardcode_libdir_flag_spec_F77='-L$libdir'
16256
hardcode_direct_F77=yes
16257
hardcode_minus_L_F77=yes
16258
hardcode_shlibpath_var_F77=no
16262
case $host_vendor in
16264
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16265
hardcode_direct_F77=yes # is this really true???
16268
## LD is ld it makes a PLAMLIB
16269
## CC just makes a GrossModule.
16270
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16271
reload_cmds_F77='$CC -r -o $output$reload_objs'
16272
hardcode_direct_F77=no
16275
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16276
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16279
runpath_var='LD_RUN_PATH'
16280
hardcode_shlibpath_var_F77=no
16284
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16285
hardcode_shlibpath_var_F77=no
16286
export_dynamic_flag_spec_F77='-Bexport'
16290
if test -d /usr/nec; then
16291
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16292
hardcode_shlibpath_var_F77=no
16293
runpath_var=LD_RUN_PATH
16294
hardcode_runpath_var=yes
16300
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16301
hardcode_direct_F77=yes
16302
hardcode_minus_L_F77=no
16303
hardcode_shlibpath_var_F77=no
16304
hardcode_runpath_var=yes
16305
runpath_var=LD_RUN_PATH
16308
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16309
no_undefined_flag_F77='${wl}-z ${wl}text'
16310
if test "$GCC" = yes; then
16311
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16313
archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16315
runpath_var='LD_RUN_PATH'
16316
hardcode_shlibpath_var_F77=no
16320
no_undefined_flag_F77=' -z text'
16321
# $CC -shared without GNU ld will not create a library from C++
16322
# object files and a static libstdc++, better avoid it by now
16323
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16324
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16325
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16326
hardcode_libdir_flag_spec_F77=
16327
hardcode_shlibpath_var_F77=no
16328
runpath_var='LD_RUN_PATH'
16332
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16333
hardcode_libdir_flag_spec_F77='-L$libdir'
16334
hardcode_shlibpath_var_F77=no
16343
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16344
echo "${ECHO_T}$ld_shlibs_F77" >&6
16345
test "$ld_shlibs_F77" = no && can_build_shared=no
16347
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16348
if test "$GCC" = yes; then
16349
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16353
# Do we need to explicitly link libc?
16355
case "x$archive_cmds_need_lc_F77" in
16357
# Assume -lc should be added
16358
archive_cmds_need_lc_F77=yes
16360
if test "$enable_shared" = yes && test "$GCC" = yes; then
16361
case $archive_cmds_F77 in
16363
# FIXME: we may have to deal with multi-command sequences.
16366
# Test whether the compiler implicitly links with -lc since on some
16367
# systems, -lgcc has to come before -lc. If gcc already passes -lc
16368
# to ld, don't add -lc before -lgcc.
16369
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16370
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16372
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16374
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16375
(eval $ac_compile) 2>&5
16377
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16378
(exit $ac_status); } 2>conftest.err; then
16381
libobjs=conftest.$ac_objext
16383
wl=$lt_prog_compiler_wl_F77
16389
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16390
allow_undefined_flag_F77=
16391
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16392
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16394
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395
(exit $ac_status); }
16397
archive_cmds_need_lc_F77=no
16399
archive_cmds_need_lc_F77=yes
16401
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16403
cat conftest.err 1>&5
16406
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16407
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
16414
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16415
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16416
library_names_spec=
16417
libname_spec='lib$name'
16421
postuninstall_cmds=
16425
shlibpath_overrides_runpath=unknown
16427
dynamic_linker="$host_os ld.so"
16428
sys_lib_dlsearch_path_spec="/lib /usr/lib"
16429
if test "$GCC" = yes; then
16430
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16431
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16432
# if the path contains ";" then we assume it to be the separator
16433
# otherwise default to the standard path separator (i.e. ":") - it is
16434
# assumed that no part of a normal pathname contains ";" but that should
16435
# okay in the real world where ";" in dirpaths is itself problematic.
16436
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16438
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16441
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16443
need_lib_prefix=unknown
16444
hardcode_into_libs=no
16446
# when you set need_version to no, make sure it does not cause -set_version
16447
# flags to be left without arguments
16448
need_version=unknown
16453
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16454
shlibpath_var=LIBPATH
16456
# AIX 3 has no versioning support, so we append a major version to the name.
16457
soname_spec='${libname}${release}${shared_ext}$major'
16464
hardcode_into_libs=yes
16465
if test "$host_cpu" = ia64; then
16466
# AIX 5 supports IA64
16467
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16468
shlibpath_var=LD_LIBRARY_PATH
16470
# With GCC up to 2.95.x, collect2 would create an import file
16471
# for dependence libraries. The import file would start with
16472
# the line `#! .'. This would cause the generated library to
16473
# depend on `.', always an invalid library. This was fixed in
16474
# development snapshots of GCC prior to 3.0.
16476
aix4 | aix4.[01] | aix4.[01].*)
16477
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16479
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16482
can_build_shared=no
16486
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16487
# soname into executable. Probably we can add versioning support to
16488
# collect2, so additional links can be useful in future.
16489
if test "$aix_use_runtimelinking" = yes; then
16490
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
16491
# instead of lib<name>.a to let people know that these are not
16492
# typical AIX shared libraries.
16493
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16495
# We preserve .a as extension for shared libraries through AIX4.2
16496
# and later when we are not doing run time linking.
16497
library_names_spec='${libname}${release}.a $libname.a'
16498
soname_spec='${libname}${release}${shared_ext}$major'
16500
shlibpath_var=LIBPATH
16505
library_names_spec='$libname.ixlibrary $libname.a'
16506
# Create ${libname}_ixlibrary.a entries in /sys/libs.
16507
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
16511
library_names_spec='${libname}${shared_ext}'
16512
dynamic_linker="$host_os ld.so"
16513
shlibpath_var=LIBRARY_PATH
16519
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16520
soname_spec='${libname}${release}${shared_ext}$major'
16521
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16522
shlibpath_var=LD_LIBRARY_PATH
16523
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16524
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16525
# the default ld.so.conf also contains /usr/contrib/lib and
16526
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16527
# libtool to hard-code these into programs
16530
cygwin* | mingw* | pw32*)
16531
version_type=windows
16536
case $GCC,$host_os in
16537
yes,cygwin* | yes,mingw* | yes,pw32*)
16538
library_names_spec='$libname.dll.a'
16539
# DLL is installed to $(libdir)/../bin by postinstall_cmds
16540
postinstall_cmds='base_file=`basename \${file}`~
16541
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16542
dldir=$destdir/`dirname \$dlpath`~
16543
test -d \$dldir || mkdir -p \$dldir~
16544
$install_prog $dir/$dlname \$dldir/$dlname'
16545
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16546
dlpath=$dir/\$dldll~
16548
shlibpath_overrides_runpath=yes
16552
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
16553
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16554
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16557
# MinGW DLLs use traditional 'lib' prefix
16558
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16559
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16560
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16561
# It is most probably a Windows format PATH printed by
16562
# mingw gcc, but we are running on Cygwin. Gcc prints its search
16563
# path with ; separators, and with drive letters. We can handle the
16564
# drive letters (cygwin fileutils understands them), so leave them,
16565
# especially as we might pass files found there to a mingw objdump,
16566
# which wouldn't understand a cygwinified path. Ahh.
16567
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16569
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16573
# pw32 DLLs use 'pw' prefix rather than 'lib'
16574
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16580
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16583
dynamic_linker='Win32 ld.exe'
16584
# FIXME: first we should search . and the directory the executable is in
16588
darwin* | rhapsody*)
16589
dynamic_linker="$host_os dyld"
16590
version_type=darwin
16593
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16594
soname_spec='${libname}${release}${major}$shared_ext'
16595
shlibpath_overrides_runpath=yes
16596
shlibpath_var=DYLD_LIBRARY_PATH
16597
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16598
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16599
if test "$GCC" = yes; then
16600
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16602
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16604
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16611
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16612
soname_spec='${libname}${release}${shared_ext}$major'
16613
shlibpath_var=LD_LIBRARY_PATH
16624
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16625
soname_spec='${libname}${release}${shared_ext}$major'
16626
shlibpath_var=LD_LIBRARY_PATH
16627
shlibpath_overrides_runpath=no
16628
hardcode_into_libs=yes
16629
dynamic_linker='GNU ld.so'
16633
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16634
version_type=freebsd-$objformat
16635
case $version_type in
16637
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16642
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16646
shlibpath_var=LD_LIBRARY_PATH
16649
shlibpath_overrides_runpath=yes
16651
freebsd3.01* | freebsdelf3.01*)
16652
shlibpath_overrides_runpath=yes
16653
hardcode_into_libs=yes
16656
shlibpath_overrides_runpath=no
16657
hardcode_into_libs=yes
16666
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16667
soname_spec='${libname}${release}${shared_ext}$major'
16668
shlibpath_var=LD_LIBRARY_PATH
16669
hardcode_into_libs=yes
16672
hpux9* | hpux10* | hpux11*)
16673
# Give a soname corresponding to the major version so that dld.sl refuses to
16674
# link against other versions.
16678
case "$host_cpu" in
16681
hardcode_into_libs=yes
16682
dynamic_linker="$host_os dld.so"
16683
shlibpath_var=LD_LIBRARY_PATH
16684
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16685
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16686
soname_spec='${libname}${release}${shared_ext}$major'
16687
if test "X$HPUX_IA64_MODE" = X32; then
16688
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16690
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16692
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16696
hardcode_into_libs=yes
16697
dynamic_linker="$host_os dld.sl"
16698
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16699
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16700
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16701
soname_spec='${libname}${release}${shared_ext}$major'
16702
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16703
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16707
dynamic_linker="$host_os dld.sl"
16708
shlibpath_var=SHLIB_PATH
16709
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16710
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16711
soname_spec='${libname}${release}${shared_ext}$major'
16714
# HP-UX runs *really* slowly unless shared libraries are mode 555.
16715
postinstall_cmds='chmod 555 $lib'
16718
irix5* | irix6* | nonstopux*)
16720
nonstopux*) version_type=nonstopux ;;
16722
if test "$lt_cv_prog_gnu_ld" = yes; then
16730
soname_spec='${libname}${release}${shared_ext}$major'
16731
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16733
irix5* | nonstopux*)
16734
libsuff= shlibsuff=
16737
case $LD in # libtool.m4 will add one of these switches to LD
16738
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16739
libsuff= shlibsuff= libmagic=32-bit;;
16740
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16741
libsuff=32 shlibsuff=N32 libmagic=N32;;
16742
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16743
libsuff=64 shlibsuff=64 libmagic=64-bit;;
16744
*) libsuff= shlibsuff= libmagic=never-match;;
16748
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16749
shlibpath_overrides_runpath=no
16750
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16751
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16752
hardcode_into_libs=yes
16755
# No shared lib support for Linux oldld, aout, or coff.
16756
linux*oldld* | linux*aout* | linux*coff*)
16760
# This must be Linux ELF.
16765
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16766
soname_spec='${libname}${release}${shared_ext}$major'
16767
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16768
shlibpath_var=LD_LIBRARY_PATH
16769
shlibpath_overrides_runpath=no
16770
# This implies no fast_install, which is unacceptable.
16771
# Some rework will be needed to allow for fast_install
16772
# before this can be enabled.
16773
hardcode_into_libs=yes
16775
# find out which ABI we are using
16777
case "$host_cpu" in
16778
x86_64*|s390x*|powerpc64*)
16779
echo '#line 16779 "configure"' > conftest.$ac_ext
16780
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16781
(eval $ac_compile) 2>&5
16783
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16784
(exit $ac_status); }; then
16785
case `/usr/bin/file conftest.$ac_objext` in
16788
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
16796
# Append ld.so.conf contents to the search path
16797
if test -f /etc/ld.so.conf; then
16798
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
16799
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
16802
# We used to test for /lib/ld.so.1 and disable shared libraries on
16803
# powerpc, because MkLinux only supported shared libraries with the
16804
# GNU dynamic linker. Since this was broken with cross compilers,
16805
# most powerpc-linux boxes support dynamic linking these days and
16806
# people can always --disable-shared, the test was removed, and we
16807
# assume the GNU/Linux dynamic linker is in use.
16808
dynamic_linker='GNU/Linux ld.so'
16815
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16816
soname_spec='${libname}${release}${shared_ext}$major'
16817
shlibpath_var=LD_LIBRARY_PATH
16818
shlibpath_overrides_runpath=no
16819
hardcode_into_libs=yes
16820
dynamic_linker='GNU ld.so'
16827
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16828
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16829
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16830
dynamic_linker='NetBSD (a.out) ld.so'
16832
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16833
soname_spec='${libname}${release}${shared_ext}$major'
16834
dynamic_linker='NetBSD ld.elf_so'
16836
shlibpath_var=LD_LIBRARY_PATH
16837
shlibpath_overrides_runpath=yes
16838
hardcode_into_libs=yes
16843
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16844
shlibpath_var=LD_LIBRARY_PATH
16845
shlibpath_overrides_runpath=yes
16852
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16853
soname_spec='${libname}${release}${shared_ext}$major'
16854
shlibpath_var=LD_LIBRARY_PATH
16855
shlibpath_overrides_runpath=yes
16862
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16863
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16864
shlibpath_var=LD_LIBRARY_PATH
16865
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16867
openbsd2.[89] | openbsd2.[89].*)
16868
shlibpath_overrides_runpath=no
16871
shlibpath_overrides_runpath=yes
16875
shlibpath_overrides_runpath=yes
16880
libname_spec='$name'
16883
library_names_spec='$libname${shared_ext} $libname.a'
16884
dynamic_linker='OS/2 ld.exe'
16885
shlibpath_var=LIBPATH
16888
osf3* | osf4* | osf5*)
16892
soname_spec='${libname}${release}${shared_ext}$major'
16893
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16894
shlibpath_var=LD_LIBRARY_PATH
16895
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16896
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16901
soname_spec='${libname}${release}${shared_ext}$major'
16902
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16903
shlibpath_var=LD_LIBRARY_PATH
16910
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16911
soname_spec='${libname}${release}${shared_ext}$major'
16912
shlibpath_var=LD_LIBRARY_PATH
16913
shlibpath_overrides_runpath=yes
16914
hardcode_into_libs=yes
16915
# ldd complains unless libraries are executable
16916
postinstall_cmds='chmod +x $lib'
16921
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16922
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16923
shlibpath_var=LD_LIBRARY_PATH
16924
shlibpath_overrides_runpath=yes
16925
if test "$with_gnu_ld" = yes; then
16931
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16933
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16934
soname_spec='${libname}${release}${shared_ext}$major'
16935
shlibpath_var=LD_LIBRARY_PATH
16936
case $host_vendor in
16938
shlibpath_overrides_runpath=no
16940
export_dynamic_flag_spec='${wl}-Blargedynsym'
16941
runpath_var=LD_RUN_PATH
16949
shlibpath_overrides_runpath=no
16950
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16956
if test -d /usr/nec ;then
16958
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16959
soname_spec='$libname${shared_ext}.$major'
16960
shlibpath_var=LD_LIBRARY_PATH
16966
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16967
soname_spec='${libname}${release}${shared_ext}$major'
16968
shlibpath_var=LD_LIBRARY_PATH
16975
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16976
echo "${ECHO_T}$dynamic_linker" >&6
16977
test "$dynamic_linker" = no && can_build_shared=no
16979
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16980
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16981
hardcode_action_F77=
16982
if test -n "$hardcode_libdir_flag_spec_F77" || \
16983
test -n "$runpath_var_F77" || \
16984
test "X$hardcode_automatic_F77" = "Xyes" ; then
16986
# We can hardcode non-existant directories.
16987
if test "$hardcode_direct_F77" != no &&
16988
# If the only mechanism to avoid hardcoding is shlibpath_var, we
16989
# have to relink, otherwise we might link with an installed library
16990
# when we should be linking with a yet-to-be-installed one
16991
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16992
test "$hardcode_minus_L_F77" != no; then
16993
# Linking always hardcodes the temporary library directory.
16994
hardcode_action_F77=relink
16996
# We can link without hardcoding, and we can hardcode nonexisting dirs.
16997
hardcode_action_F77=immediate
17000
# We cannot hardcode anything, or else we can only hardcode existing
17002
hardcode_action_F77=unsupported
17004
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17005
echo "${ECHO_T}$hardcode_action_F77" >&6
17007
if test "$hardcode_action_F77" = relink; then
17008
# Fast installation is not supported
17009
enable_fast_install=no
17010
elif test "$shlibpath_overrides_runpath" = yes ||
17011
test "$enable_shared" = no; then
17012
# Fast installation is not necessary
17013
enable_fast_install=needless
17018
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17019
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17020
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17021
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17022
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17023
echo "$as_me:$LINENO: result: yes" >&5
17024
echo "${ECHO_T}yes" >&6
17026
# FIXME - insert some real tests, host_os isn't really good enough
17029
if test -n "$STRIP" ; then
17030
striplib="$STRIP -x"
17031
echo "$as_me:$LINENO: result: yes" >&5
17032
echo "${ECHO_T}yes" >&6
17034
echo "$as_me:$LINENO: result: no" >&5
17035
echo "${ECHO_T}no" >&6
17039
echo "$as_me:$LINENO: result: no" >&5
17040
echo "${ECHO_T}no" >&6
17047
# The else clause should only fire when bootstrapping the
17048
# libtool distribution, otherwise you forgot to ship ltmain.sh
17049
# with your package, and you will get complaints that there are
17050
# no rules to generate ltmain.sh.
17051
if test -f "$ltmain"; then
17052
# See if we are running on zsh, and set the options which allow our commands through
17053
# without removal of \ escapes.
17054
if test -n "${ZSH_VERSION+set}" ; then
17055
setopt NO_GLOB_SUBST
17057
# Now quote all the things that may contain metacharacters while being
17058
# careful not to overquote the AC_SUBSTed values. We take copies of the
17059
# variables and quote the copies for generation of the libtool script.
17060
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17062
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17063
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17064
deplibs_check_method reload_flag reload_cmds need_locks \
17065
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17066
lt_cv_sys_global_symbol_to_c_name_address \
17067
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17068
old_postinstall_cmds old_postuninstall_cmds \
17072
lt_prog_compiler_wl_F77 \
17073
lt_prog_compiler_pic_F77 \
17074
lt_prog_compiler_static_F77 \
17075
lt_prog_compiler_no_builtin_flag_F77 \
17076
export_dynamic_flag_spec_F77 \
17077
thread_safe_flag_spec_F77 \
17078
whole_archive_flag_spec_F77 \
17079
enable_shared_with_static_runtimes_F77 \
17080
old_archive_cmds_F77 \
17081
old_archive_from_new_cmds_F77 \
17082
predep_objects_F77 \
17083
postdep_objects_F77 \
17086
compiler_lib_search_path_F77 \
17088
archive_expsym_cmds_F77 \
17089
postinstall_cmds_F77 \
17090
postuninstall_cmds_F77 \
17091
old_archive_from_expsyms_cmds_F77 \
17092
allow_undefined_flag_F77 \
17093
no_undefined_flag_F77 \
17094
export_symbols_cmds_F77 \
17095
hardcode_libdir_flag_spec_F77 \
17096
hardcode_libdir_flag_spec_ld_F77 \
17097
hardcode_libdir_separator_F77 \
17098
hardcode_automatic_F77 \
17100
module_expsym_cmds_F77 \
17101
lt_cv_prog_compiler_c_o_F77 \
17102
exclude_expsyms_F77 \
17103
include_expsyms_F77; do
17106
old_archive_cmds_F77 | \
17107
old_archive_from_new_cmds_F77 | \
17108
archive_cmds_F77 | \
17109
archive_expsym_cmds_F77 | \
17110
module_cmds_F77 | \
17111
module_expsym_cmds_F77 | \
17112
old_archive_from_expsyms_cmds_F77 | \
17113
export_symbols_cmds_F77 | \
17114
extract_expsyms_cmds | reload_cmds | finish_cmds | \
17115
postinstall_cmds | postuninstall_cmds | \
17116
old_postinstall_cmds | old_postuninstall_cmds | \
17117
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17118
# Double-quote double-evaled strings.
17119
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17122
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17128
*'\$0 --fallback-echo"')
17129
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17135
cat <<__EOF__ >> "$cfgfile"
17136
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17138
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17140
# Shell to use when invoking shell scripts.
17143
# Whether or not to build shared libraries.
17144
build_libtool_libs=$enable_shared
17146
# Whether or not to build static libraries.
17147
build_old_libs=$enable_static
17149
# Whether or not to add -lc for building shared libraries.
17150
build_libtool_need_lc=$archive_cmds_need_lc_F77
17152
# Whether or not to disallow shared libs when runtime libs are static
17153
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17155
# Whether or not to optimize for fast installation.
17156
fast_install=$enable_fast_install
17159
host_alias=$host_alias
17162
# An echo program that does not interpret backslashes.
17167
AR_FLAGS=$lt_AR_FLAGS
17172
# A language-specific compiler.
17173
CC=$lt_compiler_F77
17175
# Is the compiler the GNU C compiler?
17181
# The linker used to build libraries.
17184
# Whether we need hard or soft links.
17187
# A BSD-compatible nm program.
17190
# A symbol stripping program
17193
# Used to examine libraries when file_magic_cmd begins "file"
17194
MAGIC_CMD=$MAGIC_CMD
17196
# Used on cygwin: DLL creation program.
17199
# Used on cygwin: object dumper.
17202
# Used on cygwin: assembler.
17205
# The name of the directory that contains temporary libtool files.
17208
# How to create reloadable object files.
17209
reload_flag=$lt_reload_flag
17210
reload_cmds=$lt_reload_cmds
17212
# How to pass a linker flag through the compiler.
17213
wl=$lt_lt_prog_compiler_wl_F77
17215
# Object file suffix (normally "o").
17216
objext="$ac_objext"
17218
# Old archive suffix (normally "a").
17221
# Shared library suffix (normally ".so").
17222
shrext_cmds='$shrext_cmds'
17224
# Executable file suffix (normally "").
17227
# Additional compiler flags for building library objects.
17228
pic_flag=$lt_lt_prog_compiler_pic_F77
17231
# What is the maximum length of a command?
17232
max_cmd_len=$lt_cv_sys_max_cmd_len
17234
# Does compiler simultaneously support -c and -o options?
17235
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17237
# Must we lock files when doing compilation ?
17238
need_locks=$lt_need_locks
17240
# Do we need the lib prefix for modules?
17241
need_lib_prefix=$need_lib_prefix
17243
# Do we need a version for libraries?
17244
need_version=$need_version
17246
# Whether dlopen is supported.
17247
dlopen_support=$enable_dlopen
17249
# Whether dlopen of programs is supported.
17250
dlopen_self=$enable_dlopen_self
17252
# Whether dlopen of statically linked programs is supported.
17253
dlopen_self_static=$enable_dlopen_self_static
17255
# Compiler flag to prevent dynamic linking.
17256
link_static_flag=$lt_lt_prog_compiler_static_F77
17258
# Compiler flag to turn off builtin functions.
17259
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17261
# Compiler flag to allow reflexive dlopens.
17262
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17264
# Compiler flag to generate shared objects directly from archives.
17265
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17267
# Compiler flag to generate thread-safe objects.
17268
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17270
# Library versioning type.
17271
version_type=$version_type
17273
# Format of library name prefix.
17274
libname_spec=$lt_libname_spec
17276
# List of archive names. First name is the real one, the rest are links.
17277
# The last name is the one that the linker finds with -lNAME.
17278
library_names_spec=$lt_library_names_spec
17280
# The coded name of the library, if different from the real name.
17281
soname_spec=$lt_soname_spec
17283
# Commands used to build and install an old-style archive.
17285
old_archive_cmds=$lt_old_archive_cmds_F77
17286
old_postinstall_cmds=$lt_old_postinstall_cmds
17287
old_postuninstall_cmds=$lt_old_postuninstall_cmds
17289
# Create an old-style archive from a shared archive.
17290
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17292
# Create a temporary old-style archive to link instead of a shared archive.
17293
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17295
# Commands used to build and install a shared archive.
17296
archive_cmds=$lt_archive_cmds_F77
17297
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17298
postinstall_cmds=$lt_postinstall_cmds
17299
postuninstall_cmds=$lt_postuninstall_cmds
17301
# Commands used to build a loadable module (assumed same as above if empty)
17302
module_cmds=$lt_module_cmds_F77
17303
module_expsym_cmds=$lt_module_expsym_cmds_F77
17305
# Commands to strip libraries.
17306
old_striplib=$lt_old_striplib
17307
striplib=$lt_striplib
17309
# Dependencies to place before the objects being linked to create a
17311
predep_objects=$lt_predep_objects_F77
17313
# Dependencies to place after the objects being linked to create a
17315
postdep_objects=$lt_postdep_objects_F77
17317
# Dependencies to place before the objects being linked to create a
17319
predeps=$lt_predeps_F77
17321
# Dependencies to place after the objects being linked to create a
17323
postdeps=$lt_postdeps_F77
17325
# The library search path used internally by the compiler when linking
17326
# a shared library.
17327
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17329
# Method to check whether dependent libraries are shared objects.
17330
deplibs_check_method=$lt_deplibs_check_method
17332
# Command to use when deplibs_check_method == file_magic.
17333
file_magic_cmd=$lt_file_magic_cmd
17335
# Flag that allows shared libraries with undefined symbols to be built.
17336
allow_undefined_flag=$lt_allow_undefined_flag_F77
17338
# Flag that forces no undefined symbols.
17339
no_undefined_flag=$lt_no_undefined_flag_F77
17341
# Commands used to finish a libtool library installation in a directory.
17342
finish_cmds=$lt_finish_cmds
17344
# Same as above, but a single script fragment to be evaled but not shown.
17345
finish_eval=$lt_finish_eval
17347
# Take the output of nm and produce a listing of raw symbols and C names.
17348
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17350
# Transform the output of nm in a proper C declaration
17351
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17353
# Transform the output of nm in a C name address pair
17354
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17356
# This is the shared library runtime path variable.
17357
runpath_var=$runpath_var
17359
# This is the shared library path variable.
17360
shlibpath_var=$shlibpath_var
17362
# Is shlibpath searched before the hard-coded library search path?
17363
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17365
# How to hardcode a shared library path into an executable.
17366
hardcode_action=$hardcode_action_F77
17368
# Whether we should hardcode library paths into libraries.
17369
hardcode_into_libs=$hardcode_into_libs
17371
# Flag to hardcode \$libdir into a binary during linking.
17372
# This must work even if \$libdir does not exist.
17373
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17375
# If ld is used when linking, flag to hardcode \$libdir into
17376
# a binary during linking. This must work even if \$libdir does
17378
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17380
# Whether we need a single -rpath flag with a separated argument.
17381
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17383
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17384
# resulting binary.
17385
hardcode_direct=$hardcode_direct_F77
17387
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17388
# resulting binary.
17389
hardcode_minus_L=$hardcode_minus_L_F77
17391
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17392
# the resulting binary.
17393
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17395
# Set to yes if building a shared library automatically hardcodes DIR into the library
17396
# and all subsequent libraries and executables linked against it.
17397
hardcode_automatic=$hardcode_automatic_F77
17399
# Variables whose values should be saved in libtool wrapper scripts and
17400
# restored at relink time.
17401
variables_saved_for_relink="$variables_saved_for_relink"
17403
# Whether libtool must link a program against all its dependency libraries.
17404
link_all_deplibs=$link_all_deplibs_F77
17406
# Compile-time system search path for libraries
17407
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17409
# Run-time system search path for libraries
17410
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17412
# Fix the shell variable \$srcfile for the compiler.
17413
fix_srcfile_path="$fix_srcfile_path_F77"
17415
# Set to yes if exported symbols are required.
17416
always_export_symbols=$always_export_symbols_F77
17418
# The commands to list exported symbols.
17419
export_symbols_cmds=$lt_export_symbols_cmds_F77
17421
# The commands to extract the exported symbol list from a shared archive.
17422
extract_expsyms_cmds=$lt_extract_expsyms_cmds
17424
# Symbols that should not be listed in the preloaded symbols.
17425
exclude_expsyms=$lt_exclude_expsyms_F77
17427
# Symbols that must always be exported.
17428
include_expsyms=$lt_include_expsyms_F77
17430
# ### END LIBTOOL TAG CONFIG: $tagname
17436
# If there is no Makefile yet, we rely on a make rule to execute
17437
# `config.status --recheck' to rerun these tests and create the
17438
# libtool script then.
17439
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17440
if test -f "$ltmain_in"; then
17441
test -f Makefile && make "$ltmain"
17447
ac_cpp='$CPP $CPPFLAGS'
17448
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17449
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17450
ac_compiler_gnu=$ac_cv_c_compiler_gnu
17460
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17464
# Source file extension for Java test sources.
17467
# Object file extension for compiled Java test sources.
17471
# Code to be used in simple compile tests
17472
lt_simple_compile_test_code="class foo {}\n"
17474
# Code to be used in simple link tests
17475
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
17477
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17479
# If no C compiler was specified, use CC.
17482
# Allow CC to be a program name with arguments.
17486
# Allow CC to be a program name with arguments.
17492
# GCJ did not exist at the time GCC didn't implicitly link libc in.
17493
archive_cmds_need_lc_GCJ=no
17496
lt_prog_compiler_no_builtin_flag_GCJ=
17498
if test "$GCC" = yes; then
17499
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17502
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17503
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
17504
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17505
echo $ECHO_N "(cached) $ECHO_C" >&6
17507
lt_cv_prog_compiler_rtti_exceptions=no
17508
ac_outfile=conftest.$ac_objext
17509
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17510
lt_compiler_flag="-fno-rtti -fno-exceptions"
17511
# Insert the option either (1) after the last *FLAGS variable, or
17512
# (2) before a word containing "conftest.", or (3) at the end.
17513
# Note that $ac_compile itself does not contain backslashes and begins
17514
# with a dollar sign (not a hyphen), so the echo should work correctly.
17515
# The option is referenced via a variable to avoid confusing sed.
17516
lt_compile=`echo "$ac_compile" | $SED \
17517
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17518
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17519
-e 's:$: $lt_compiler_flag:'`
17520
(eval echo "\"\$as_me:17520: $lt_compile\"" >&5)
17521
(eval "$lt_compile" 2>conftest.err)
17523
cat conftest.err >&5
17524
echo "$as_me:17524: \$? = $ac_status" >&5
17525
if (exit $ac_status) && test -s "$ac_outfile"; then
17526
# The compiler can only warn and ignore the option if not recognized
17527
# So say no if there are warnings
17528
if test ! -s conftest.err; then
17529
lt_cv_prog_compiler_rtti_exceptions=yes
17535
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17536
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
17538
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17539
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17546
lt_prog_compiler_wl_GCJ=
17547
lt_prog_compiler_pic_GCJ=
17548
lt_prog_compiler_static_GCJ=
17550
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17551
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17553
if test "$GCC" = yes; then
17554
lt_prog_compiler_wl_GCJ='-Wl,'
17555
lt_prog_compiler_static_GCJ='-static'
17559
# All AIX code is PIC.
17560
if test "$host_cpu" = ia64; then
17561
# AIX 5 now supports IA64 processor
17562
lt_prog_compiler_static_GCJ='-Bstatic'
17567
# FIXME: we need at least 68020 code to build shared libraries, but
17568
# adding the `-m68020' flag to GCC prevents building anything better,
17570
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17573
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17574
# PIC is the default for these OSes.
17577
mingw* | pw32* | os2*)
17578
# This hack is so that the source file can tell whether it is being
17579
# built for inclusion in a dll (and should export symbols for example).
17580
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17583
darwin* | rhapsody*)
17584
# PIC is the default on this platform
17585
# Common symbols not allowed in MH_DYLIB files
17586
lt_prog_compiler_pic_GCJ='-fno-common'
17590
# Just because we use GCC doesn't mean we suddenly get shared libraries
17591
# on systems that don't support them.
17592
lt_prog_compiler_can_build_shared_GCJ=no
17597
if test -d /usr/nec; then
17598
lt_prog_compiler_pic_GCJ=-Kconform_pic
17603
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17604
# not for PA HP-UX.
17605
case "$host_cpu" in
17610
lt_prog_compiler_pic_GCJ='-fPIC'
17616
lt_prog_compiler_pic_GCJ='-fPIC'
17620
# PORTME Check for flag to pass linker flags through the system compiler.
17623
lt_prog_compiler_wl_GCJ='-Wl,'
17624
if test "$host_cpu" = ia64; then
17625
# AIX 5 now supports IA64 processor
17626
lt_prog_compiler_static_GCJ='-Bstatic'
17628
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17632
# PIC is the default on this platform
17633
# Common symbols not allowed in MH_DYLIB files
17634
case "$cc_basename" in
17636
lt_prog_compiler_pic_GCJ='-qnocommon'
17637
lt_prog_compiler_wl_GCJ='-Wl,'
17642
mingw* | pw32* | os2*)
17643
# This hack is so that the source file can tell whether it is being
17644
# built for inclusion in a dll (and should export symbols for example).
17645
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17648
hpux9* | hpux10* | hpux11*)
17649
lt_prog_compiler_wl_GCJ='-Wl,'
17650
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17651
# not for PA HP-UX.
17652
case "$host_cpu" in
17657
lt_prog_compiler_pic_GCJ='+Z'
17660
# Is there a better lt_prog_compiler_static that works with the bundled CC?
17661
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17664
irix5* | irix6* | nonstopux*)
17665
lt_prog_compiler_wl_GCJ='-Wl,'
17666
# PIC (with -KPIC) is the default.
17667
lt_prog_compiler_static_GCJ='-non_shared'
17671
lt_prog_compiler_pic_GCJ='-KPIC'
17672
lt_prog_compiler_static_GCJ='-Bstatic'
17678
lt_prog_compiler_wl_GCJ='-Wl,'
17679
lt_prog_compiler_pic_GCJ='-KPIC'
17680
lt_prog_compiler_static_GCJ='-static'
17683
lt_prog_compiler_wl_GCJ='-Wl,'
17684
# All Alpha code is PIC.
17685
lt_prog_compiler_static_GCJ='-non_shared'
17690
osf3* | osf4* | osf5*)
17691
lt_prog_compiler_wl_GCJ='-Wl,'
17692
# All OSF/1 code is PIC.
17693
lt_prog_compiler_static_GCJ='-non_shared'
17697
lt_prog_compiler_pic_GCJ='-Kpic'
17698
lt_prog_compiler_static_GCJ='-dn'
17702
lt_prog_compiler_wl_GCJ='-Wl,'
17703
lt_prog_compiler_pic_GCJ='-KPIC'
17704
lt_prog_compiler_static_GCJ='-Bstatic'
17708
lt_prog_compiler_wl_GCJ='-Qoption ld '
17709
lt_prog_compiler_pic_GCJ='-PIC'
17710
lt_prog_compiler_static_GCJ='-Bstatic'
17713
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17714
lt_prog_compiler_wl_GCJ='-Wl,'
17715
lt_prog_compiler_pic_GCJ='-KPIC'
17716
lt_prog_compiler_static_GCJ='-Bstatic'
17720
if test -d /usr/nec ;then
17721
lt_prog_compiler_pic_GCJ='-Kconform_pic'
17722
lt_prog_compiler_static_GCJ='-Bstatic'
17727
lt_prog_compiler_pic_GCJ='-pic'
17728
lt_prog_compiler_static_GCJ='-Bstatic'
17732
lt_prog_compiler_can_build_shared_GCJ=no
17737
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17738
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
17741
# Check to make sure the PIC flag actually works.
17743
if test -n "$lt_prog_compiler_pic_GCJ"; then
17745
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17746
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
17747
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17748
echo $ECHO_N "(cached) $ECHO_C" >&6
17750
lt_prog_compiler_pic_works_GCJ=no
17751
ac_outfile=conftest.$ac_objext
17752
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17753
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17754
# Insert the option either (1) after the last *FLAGS variable, or
17755
# (2) before a word containing "conftest.", or (3) at the end.
17756
# Note that $ac_compile itself does not contain backslashes and begins
17757
# with a dollar sign (not a hyphen), so the echo should work correctly.
17758
# The option is referenced via a variable to avoid confusing sed.
17759
lt_compile=`echo "$ac_compile" | $SED \
17760
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17761
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17762
-e 's:$: $lt_compiler_flag:'`
17763
(eval echo "\"\$as_me:17763: $lt_compile\"" >&5)
17764
(eval "$lt_compile" 2>conftest.err)
17766
cat conftest.err >&5
17767
echo "$as_me:17767: \$? = $ac_status" >&5
17768
if (exit $ac_status) && test -s "$ac_outfile"; then
17769
# The compiler can only warn and ignore the option if not recognized
17770
# So say no if there are warnings
17771
if test ! -s conftest.err; then
17772
lt_prog_compiler_pic_works_GCJ=yes
17778
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17779
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
17781
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17782
case $lt_prog_compiler_pic_GCJ in
17784
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17787
lt_prog_compiler_pic_GCJ=
17788
lt_prog_compiler_can_build_shared_GCJ=no
17793
# For platforms which do not support PIC, -DPIC is meaningless:
17795
lt_prog_compiler_pic_GCJ=
17798
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17802
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17803
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17804
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17805
echo $ECHO_N "(cached) $ECHO_C" >&6
17807
lt_cv_prog_compiler_c_o_GCJ=no
17808
$rm -r conftest 2>/dev/null
17812
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17814
lt_compiler_flag="-o out/conftest2.$ac_objext"
17815
# Insert the option either (1) after the last *FLAGS variable, or
17816
# (2) before a word containing "conftest.", or (3) at the end.
17817
# Note that $ac_compile itself does not contain backslashes and begins
17818
# with a dollar sign (not a hyphen), so the echo should work correctly.
17819
lt_compile=`echo "$ac_compile" | $SED \
17820
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17821
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17822
-e 's:$: $lt_compiler_flag:'`
17823
(eval echo "\"\$as_me:17823: $lt_compile\"" >&5)
17824
(eval "$lt_compile" 2>out/conftest.err)
17826
cat out/conftest.err >&5
17827
echo "$as_me:17827: \$? = $ac_status" >&5
17828
if (exit $ac_status) && test -s out/conftest2.$ac_objext
17830
# The compiler can only warn and ignore the option if not recognized
17831
# So say no if there are warnings
17832
if test ! -s out/conftest.err; then
17833
lt_cv_prog_compiler_c_o_GCJ=yes
17838
# SGI C++ compiler will create directory out/ii_files/ for
17839
# template instantiation
17840
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17841
$rm out/* && rmdir out
17847
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17848
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17851
hard_links="nottested"
17852
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17853
# do not overwrite the value of need_locks provided by the user
17854
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17855
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17858
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17860
ln conftest.a conftest.b 2>&5 || hard_links=no
17861
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17862
echo "$as_me:$LINENO: result: $hard_links" >&5
17863
echo "${ECHO_T}$hard_links" >&6
17864
if test "$hard_links" = no; then
17865
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17866
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17873
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17874
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17877
allow_undefined_flag_GCJ=
17878
enable_shared_with_static_runtimes_GCJ=no
17880
archive_expsym_cmds_GCJ=
17881
old_archive_From_new_cmds_GCJ=
17882
old_archive_from_expsyms_cmds_GCJ=
17883
export_dynamic_flag_spec_GCJ=
17884
whole_archive_flag_spec_GCJ=
17885
thread_safe_flag_spec_GCJ=
17886
hardcode_libdir_flag_spec_GCJ=
17887
hardcode_libdir_flag_spec_ld_GCJ=
17888
hardcode_libdir_separator_GCJ=
17889
hardcode_direct_GCJ=no
17890
hardcode_minus_L_GCJ=no
17891
hardcode_shlibpath_var_GCJ=unsupported
17892
link_all_deplibs_GCJ=unknown
17893
hardcode_automatic_GCJ=no
17895
module_expsym_cmds_GCJ=
17896
always_export_symbols_GCJ=no
17897
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17898
# include_expsyms should be a list of space-separated symbols to be *always*
17899
# included in the symbol list
17900
include_expsyms_GCJ=
17901
# exclude_expsyms can be an extended regexp of symbols to exclude
17902
# it will be wrapped by ` (' and `)$', so one must not match beginning or
17903
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17904
# as well as any symbol that contains `d'.
17905
exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17906
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17907
# platforms (ab)use it in PIC code, but their linkers get confused if
17908
# the symbol is explicitly referenced. Since portable code cannot
17909
# rely on this symbol name, it's probably fine to never include it in
17910
# preloaded symbol tables.
17911
extract_expsyms_cmds=
17914
cygwin* | mingw* | pw32*)
17915
# FIXME: the MSVC++ port hasn't been tested in a loooong time
17916
# When not using gcc, we currently assume that we are using
17917
# Microsoft Visual C++.
17918
if test "$GCC" != yes; then
17928
if test "$with_gnu_ld" = yes; then
17929
# If archive_cmds runs LD, not CC, wlarc should be empty
17932
# See if GNU ld supports shared libraries.
17934
aix3* | aix4* | aix5*)
17935
# On AIX/PPC, the GNU linker is very broken
17936
if test "$host_cpu" != ia64; then
17940
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17941
*** to be unable to reliably create shared libraries on AIX.
17942
*** Therefore, libtool is disabling shared libraries support. If you
17943
*** really care for shared libraries, you may want to modify your PATH
17944
*** so that a non-GNU linker is found, and then restart.
17951
archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17952
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17953
hardcode_minus_L_GCJ=yes
17955
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17956
# that the semantics of dynamic libraries on AmigaOS, at least up
17957
# to version 4, is to share data among multiple programs linked
17958
# with the same dynamic library. Since this doesn't match the
17959
# behavior of shared libraries on other platforms, we can't use
17965
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17966
allow_undefined_flag_GCJ=unsupported
17967
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17968
# support --undefined. This deserves some investigation. FIXME
17969
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17975
cygwin* | mingw* | pw32*)
17976
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17977
# as there is no search path for DLLs.
17978
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17979
allow_undefined_flag_GCJ=unsupported
17980
always_export_symbols_GCJ=no
17981
enable_shared_with_static_runtimes_GCJ=yes
17982
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17984
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17985
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17986
# If the export-symbols file already is a .def file (1st line
17987
# is EXPORTS), use it as is; otherwise, prepend...
17988
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17989
cp $export_symbols $output_objdir/$soname.def;
17991
echo EXPORTS > $output_objdir/$soname.def;
17992
cat $export_symbols >> $output_objdir/$soname.def;
17994
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
18001
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18002
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18005
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18006
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18011
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18015
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
18016
*** create shared libraries on Solaris systems. Therefore, libtool
18017
*** is disabling shared libraries support. We urge you to upgrade GNU
18018
*** binutils to release 2.9.1 or newer. Another option is to modify
18019
*** your PATH or compiler configuration so that the native linker is
18020
*** used, and then restart.
18023
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18024
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18025
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18032
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18034
hardcode_direct_GCJ=yes
18035
hardcode_shlibpath_var_GCJ=no
18039
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18040
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18041
archive_cmds_GCJ="$tmp_archive_cmds"
18042
supports_anon_versioning=no
18043
case `$LD -v 2>/dev/null` in
18044
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18045
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18046
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18047
*\ 2.11.*) ;; # other 2.11 versions
18048
*) supports_anon_versioning=yes ;;
18050
if test $supports_anon_versioning = yes; then
18051
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18052
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18053
$echo "local: *; };" >> $output_objdir/$libname.ver~
18054
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18056
archive_expsym_cmds_GCJ="$tmp_archive_cmds"
18064
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18065
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18066
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18073
if test "$ld_shlibs_GCJ" = yes; then
18074
runpath_var=LD_RUN_PATH
18075
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18076
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18077
# ancient GNU ld didn't support --whole-archive et. al.
18078
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18079
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18081
whole_archive_flag_spec_GCJ=
18085
# PORTME fill in a description of your system's linker (not GNU ld)
18088
allow_undefined_flag_GCJ=unsupported
18089
always_export_symbols_GCJ=yes
18090
archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
18091
# Note: this linker hardcodes the directories in LIBPATH if there
18092
# are no directories specified by -L.
18093
hardcode_minus_L_GCJ=yes
18094
if test "$GCC" = yes && test -z "$link_static_flag"; then
18095
# Neither direct hardcoding nor static linking is supported with a
18097
hardcode_direct_GCJ=unsupported
18102
if test "$host_cpu" = ia64; then
18103
# On IA64, the linker does run time linking by default, so we don't
18104
# have to do anything special.
18105
aix_use_runtimelinking=no
18106
exp_sym_flag='-Bexport'
18109
# If we're using GNU nm, then we don't want the "-C" option.
18110
# -C means demangle to AIX nm, but means don't demangle with GNU nm
18111
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18112
export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
18114
export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
18116
aix_use_runtimelinking=no
18118
# Test if we are trying to use run time linking or normal
18119
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
18120
# need to do runtime linking.
18121
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18122
for ld_flag in $LDFLAGS; do
18123
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18124
aix_use_runtimelinking=yes
18130
exp_sym_flag='-bexport'
18131
no_entry_flag='-bnoentry'
18134
# When large executables or shared objects are built, AIX ld can
18135
# have problems creating the table of contents. If linking a library
18136
# or program results in "error TOC overflow" add -mminimal-toc to
18137
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18138
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18140
archive_cmds_GCJ=''
18141
hardcode_direct_GCJ=yes
18142
hardcode_libdir_separator_GCJ=':'
18143
link_all_deplibs_GCJ=yes
18145
if test "$GCC" = yes; then
18146
case $host_os in aix4.012|aix4.012.*)
18147
# We only want to do this on AIX 4.2 and lower, the check
18148
# below for broken collect2 doesn't work under 4.3+
18149
collect2name=`${CC} -print-prog-name=collect2`
18150
if test -f "$collect2name" && \
18151
strings "$collect2name" | grep resolve_lib_name >/dev/null
18153
# We have reworked collect2
18154
hardcode_direct_GCJ=yes
18156
# We have old collect2
18157
hardcode_direct_GCJ=unsupported
18158
# It fails to find uninstalled libraries when the uninstalled
18159
# path is not listed in the libpath. Setting hardcode_minus_L
18160
# to unsupported forces relinking
18161
hardcode_minus_L_GCJ=yes
18162
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18163
hardcode_libdir_separator_GCJ=
18166
shared_flag='-shared'
18169
if test "$host_cpu" = ia64; then
18170
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18171
# chokes on -Wl,-G. The following line is correct:
18174
if test "$aix_use_runtimelinking" = yes; then
18175
shared_flag='${wl}-G'
18177
shared_flag='${wl}-bM:SRE'
18182
# It seems that -bexpall does not export symbols beginning with
18183
# underscore (_), so it is better to generate a list of symbols to export.
18184
always_export_symbols_GCJ=yes
18185
if test "$aix_use_runtimelinking" = yes; then
18186
# Warning - without using the other runtime loading flags (-brtl),
18187
# -berok will link without error, but may produce a broken library.
18188
allow_undefined_flag_GCJ='-berok'
18189
# Determine the default libpath from the value encoded in an empty executable.
18190
cat >conftest.$ac_ext <<_ACEOF
18193
cat confdefs.h >>conftest.$ac_ext
18194
cat >>conftest.$ac_ext <<_ACEOF
18195
/* end confdefs.h. */
18205
rm -f conftest.$ac_objext conftest$ac_exeext
18206
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18207
(eval $ac_link) 2>conftest.er1
18209
grep -v '^ *+' conftest.er1 >conftest.err
18211
cat conftest.err >&5
18212
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18213
(exit $ac_status); } &&
18214
{ ac_try='test -z "$ac_c_werror_flag"
18215
|| test ! -s conftest.err'
18216
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18217
(eval $ac_try) 2>&5
18219
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18220
(exit $ac_status); }; } &&
18221
{ ac_try='test -s conftest$ac_exeext'
18222
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18223
(eval $ac_try) 2>&5
18225
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18226
(exit $ac_status); }; }; then
18228
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18230
# Check for a 64-bit object if we didn't find anything.
18231
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18234
echo "$as_me: failed program was:" >&5
18235
sed 's/^/| /' conftest.$ac_ext >&5
18238
rm -f conftest.err conftest.$ac_objext \
18239
conftest$ac_exeext conftest.$ac_ext
18240
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18242
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18243
archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
18245
if test "$host_cpu" = ia64; then
18246
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18247
allow_undefined_flag_GCJ="-z nodefs"
18248
archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
18250
# Determine the default libpath from the value encoded in an empty executable.
18251
cat >conftest.$ac_ext <<_ACEOF
18254
cat confdefs.h >>conftest.$ac_ext
18255
cat >>conftest.$ac_ext <<_ACEOF
18256
/* end confdefs.h. */
18266
rm -f conftest.$ac_objext conftest$ac_exeext
18267
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18268
(eval $ac_link) 2>conftest.er1
18270
grep -v '^ *+' conftest.er1 >conftest.err
18272
cat conftest.err >&5
18273
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18274
(exit $ac_status); } &&
18275
{ ac_try='test -z "$ac_c_werror_flag"
18276
|| test ! -s conftest.err'
18277
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18278
(eval $ac_try) 2>&5
18280
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18281
(exit $ac_status); }; } &&
18282
{ ac_try='test -s conftest$ac_exeext'
18283
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18284
(eval $ac_try) 2>&5
18286
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18287
(exit $ac_status); }; }; then
18289
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18291
# Check for a 64-bit object if we didn't find anything.
18292
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18295
echo "$as_me: failed program was:" >&5
18296
sed 's/^/| /' conftest.$ac_ext >&5
18299
rm -f conftest.err conftest.$ac_objext \
18300
conftest$ac_exeext conftest.$ac_ext
18301
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18303
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18304
# Warning - without using the other run time loading flags,
18305
# -berok will link without error, but may produce a broken library.
18306
no_undefined_flag_GCJ=' ${wl}-bernotok'
18307
allow_undefined_flag_GCJ=' ${wl}-berok'
18308
# -bexpall does not export symbols beginning with underscore (_)
18309
always_export_symbols_GCJ=yes
18310
# Exported symbols can be pulled into shared objects from archives
18311
whole_archive_flag_spec_GCJ=' '
18312
archive_cmds_need_lc_GCJ=yes
18313
# This is similar to how AIX traditionally builds it's shared libraries.
18314
archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
18320
archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
18321
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18322
hardcode_minus_L_GCJ=yes
18323
# see comment about different semantics on the GNU ld section
18328
export_dynamic_flag_spec_GCJ=-rdynamic
18331
cygwin* | mingw* | pw32*)
18332
# When not using gcc, we currently assume that we are using
18333
# Microsoft Visual C++.
18334
# hardcode_libdir_flag_spec is actually meaningless, as there is
18335
# no search path for DLLs.
18336
hardcode_libdir_flag_spec_GCJ=' '
18337
allow_undefined_flag_GCJ=unsupported
18338
# Tell ltmain to make .lib files, not .a files.
18340
# Tell ltmain to make .dll files, not .so files.
18342
# FIXME: Setting linknames here is a bad hack.
18343
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18344
# The linker will automatically build a .lib file if we build a DLL.
18345
old_archive_From_new_cmds_GCJ='true'
18346
# FIXME: Should let the user specify the lib program.
18347
old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18348
fix_srcfile_path='`cygpath -w "$srcfile"`'
18349
enable_shared_with_static_runtimes_GCJ=yes
18352
darwin* | rhapsody*)
18354
rhapsody* | darwin1.[012])
18355
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18358
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18359
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18361
case ${MACOSX_DEPLOYMENT_TARGET} in
18363
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18366
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18372
archive_cmds_need_lc_GCJ=no
18373
hardcode_direct_GCJ=no
18374
hardcode_automatic_GCJ=yes
18375
hardcode_shlibpath_var_GCJ=unsupported
18376
whole_archive_flag_spec_GCJ=''
18377
link_all_deplibs_GCJ=yes
18378
if test "$GCC" = yes ; then
18379
output_verbose_link_cmd='echo'
18380
archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18381
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18382
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
18383
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18384
module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18386
case "$cc_basename" in
18388
output_verbose_link_cmd='echo'
18389
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18390
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18391
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
18392
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18393
module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18403
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18404
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18405
hardcode_shlibpath_var_GCJ=no
18412
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18413
# support. Future versions do this automatically, but an explicit c++rt0.o
18414
# does not break anything, and helps significantly (at the cost of a little
18417
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18418
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18419
hardcode_direct_GCJ=yes
18420
hardcode_shlibpath_var_GCJ=no
18423
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
18425
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18426
hardcode_direct_GCJ=yes
18427
hardcode_minus_L_GCJ=yes
18428
hardcode_shlibpath_var_GCJ=no
18431
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18432
freebsd* | kfreebsd*-gnu)
18433
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18434
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18435
hardcode_direct_GCJ=yes
18436
hardcode_shlibpath_var_GCJ=no
18440
if test "$GCC" = yes; then
18441
archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
18443
archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
18445
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18446
hardcode_libdir_separator_GCJ=:
18447
hardcode_direct_GCJ=yes
18449
# hardcode_minus_L: Not really in the search PATH,
18450
# but as the default location of the library.
18451
hardcode_minus_L_GCJ=yes
18452
export_dynamic_flag_spec_GCJ='${wl}-E'
18456
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18457
case "$host_cpu" in
18459
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18462
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18466
case "$host_cpu" in
18468
archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
18471
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18475
if test "$with_gnu_ld" = no; then
18476
case "$host_cpu" in
18478
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18479
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18480
hardcode_libdir_separator_GCJ=:
18481
hardcode_direct_GCJ=no
18482
hardcode_shlibpath_var_GCJ=no
18485
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18486
hardcode_direct_GCJ=no
18487
hardcode_shlibpath_var_GCJ=no
18489
# hardcode_minus_L: Not really in the search PATH,
18490
# but as the default location of the library.
18491
hardcode_minus_L_GCJ=yes
18494
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18495
hardcode_libdir_separator_GCJ=:
18496
hardcode_direct_GCJ=yes
18497
export_dynamic_flag_spec_GCJ='${wl}-E'
18499
# hardcode_minus_L: Not really in the search PATH,
18500
# but as the default location of the library.
18501
hardcode_minus_L_GCJ=yes
18507
irix5* | irix6* | nonstopux*)
18508
if test "$GCC" = yes; then
18509
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18511
archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18512
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18514
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18515
hardcode_libdir_separator_GCJ=:
18516
link_all_deplibs_GCJ=yes
18520
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18521
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18523
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18525
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18526
hardcode_direct_GCJ=yes
18527
hardcode_shlibpath_var_GCJ=no
18531
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18532
hardcode_direct_GCJ=yes
18533
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18534
hardcode_libdir_separator_GCJ=:
18535
hardcode_shlibpath_var_GCJ=no
18539
hardcode_direct_GCJ=yes
18540
hardcode_shlibpath_var_GCJ=no
18541
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18542
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18543
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18544
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18545
export_dynamic_flag_spec_GCJ='${wl}-E'
18548
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18549
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18550
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18553
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18554
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18561
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18562
hardcode_minus_L_GCJ=yes
18563
allow_undefined_flag_GCJ=unsupported
18564
archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
18565
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18569
if test "$GCC" = yes; then
18570
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18571
archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18573
allow_undefined_flag_GCJ=' -expect_unresolved \*'
18574
archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18576
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18577
hardcode_libdir_separator_GCJ=:
18580
osf4* | osf5*) # as osf3* with the addition of -msym flag
18581
if test "$GCC" = yes; then
18582
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18583
archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18584
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18586
allow_undefined_flag_GCJ=' -expect_unresolved \*'
18587
archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18588
archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
18589
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
18591
# Both c and cxx compiler support -rpath directly
18592
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18594
hardcode_libdir_separator_GCJ=:
18598
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18599
hardcode_shlibpath_var_GCJ=no
18600
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18601
runpath_var=LD_RUN_PATH
18602
hardcode_runpath_var=yes
18606
no_undefined_flag_GCJ=' -z text'
18607
if test "$GCC" = yes; then
18608
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18609
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18610
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18612
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18613
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18614
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18616
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18617
hardcode_shlibpath_var_GCJ=no
18619
solaris2.[0-5] | solaris2.[0-5].*) ;;
18620
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
18621
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18623
link_all_deplibs_GCJ=yes
18627
if test "x$host_vendor" = xsequent; then
18628
# Use $CC to link under sequent, because it throws in some extra .o
18629
# files that make .init and .fini sections work.
18630
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18632
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18634
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18635
hardcode_direct_GCJ=yes
18636
hardcode_minus_L_GCJ=yes
18637
hardcode_shlibpath_var_GCJ=no
18641
case $host_vendor in
18643
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18644
hardcode_direct_GCJ=yes # is this really true???
18647
## LD is ld it makes a PLAMLIB
18648
## CC just makes a GrossModule.
18649
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18650
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18651
hardcode_direct_GCJ=no
18654
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18655
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18658
runpath_var='LD_RUN_PATH'
18659
hardcode_shlibpath_var_GCJ=no
18663
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18664
hardcode_shlibpath_var_GCJ=no
18665
export_dynamic_flag_spec_GCJ='-Bexport'
18669
if test -d /usr/nec; then
18670
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18671
hardcode_shlibpath_var_GCJ=no
18672
runpath_var=LD_RUN_PATH
18673
hardcode_runpath_var=yes
18679
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18680
hardcode_direct_GCJ=yes
18681
hardcode_minus_L_GCJ=no
18682
hardcode_shlibpath_var_GCJ=no
18683
hardcode_runpath_var=yes
18684
runpath_var=LD_RUN_PATH
18687
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
18688
no_undefined_flag_GCJ='${wl}-z ${wl}text'
18689
if test "$GCC" = yes; then
18690
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18692
archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18694
runpath_var='LD_RUN_PATH'
18695
hardcode_shlibpath_var_GCJ=no
18699
no_undefined_flag_GCJ=' -z text'
18700
# $CC -shared without GNU ld will not create a library from C++
18701
# object files and a static libstdc++, better avoid it by now
18702
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18703
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18704
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18705
hardcode_libdir_flag_spec_GCJ=
18706
hardcode_shlibpath_var_GCJ=no
18707
runpath_var='LD_RUN_PATH'
18711
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18712
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18713
hardcode_shlibpath_var_GCJ=no
18722
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18723
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
18724
test "$ld_shlibs_GCJ" = no && can_build_shared=no
18726
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18727
if test "$GCC" = yes; then
18728
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18732
# Do we need to explicitly link libc?
18734
case "x$archive_cmds_need_lc_GCJ" in
18736
# Assume -lc should be added
18737
archive_cmds_need_lc_GCJ=yes
18739
if test "$enable_shared" = yes && test "$GCC" = yes; then
18740
case $archive_cmds_GCJ in
18742
# FIXME: we may have to deal with multi-command sequences.
18745
# Test whether the compiler implicitly links with -lc since on some
18746
# systems, -lgcc has to come before -lc. If gcc already passes -lc
18747
# to ld, don't add -lc before -lgcc.
18748
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18749
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18751
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18753
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18754
(eval $ac_compile) 2>&5
18756
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18757
(exit $ac_status); } 2>conftest.err; then
18760
libobjs=conftest.$ac_objext
18762
wl=$lt_prog_compiler_wl_GCJ
18768
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18769
allow_undefined_flag_GCJ=
18770
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18771
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18773
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18774
(exit $ac_status); }
18776
archive_cmds_need_lc_GCJ=no
18778
archive_cmds_need_lc_GCJ=yes
18780
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18782
cat conftest.err 1>&5
18785
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18786
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
18793
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18794
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18795
library_names_spec=
18796
libname_spec='lib$name'
18800
postuninstall_cmds=
18804
shlibpath_overrides_runpath=unknown
18806
dynamic_linker="$host_os ld.so"
18807
sys_lib_dlsearch_path_spec="/lib /usr/lib"
18808
if test "$GCC" = yes; then
18809
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18810
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18811
# if the path contains ";" then we assume it to be the separator
18812
# otherwise default to the standard path separator (i.e. ":") - it is
18813
# assumed that no part of a normal pathname contains ";" but that should
18814
# okay in the real world where ";" in dirpaths is itself problematic.
18815
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18817
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18820
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18822
need_lib_prefix=unknown
18823
hardcode_into_libs=no
18825
# when you set need_version to no, make sure it does not cause -set_version
18826
# flags to be left without arguments
18827
need_version=unknown
18832
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18833
shlibpath_var=LIBPATH
18835
# AIX 3 has no versioning support, so we append a major version to the name.
18836
soname_spec='${libname}${release}${shared_ext}$major'
18843
hardcode_into_libs=yes
18844
if test "$host_cpu" = ia64; then
18845
# AIX 5 supports IA64
18846
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18847
shlibpath_var=LD_LIBRARY_PATH
18849
# With GCC up to 2.95.x, collect2 would create an import file
18850
# for dependence libraries. The import file would start with
18851
# the line `#! .'. This would cause the generated library to
18852
# depend on `.', always an invalid library. This was fixed in
18853
# development snapshots of GCC prior to 3.0.
18855
aix4 | aix4.[01] | aix4.[01].*)
18856
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18858
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18861
can_build_shared=no
18865
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18866
# soname into executable. Probably we can add versioning support to
18867
# collect2, so additional links can be useful in future.
18868
if test "$aix_use_runtimelinking" = yes; then
18869
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
18870
# instead of lib<name>.a to let people know that these are not
18871
# typical AIX shared libraries.
18872
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18874
# We preserve .a as extension for shared libraries through AIX4.2
18875
# and later when we are not doing run time linking.
18876
library_names_spec='${libname}${release}.a $libname.a'
18877
soname_spec='${libname}${release}${shared_ext}$major'
18879
shlibpath_var=LIBPATH
18884
library_names_spec='$libname.ixlibrary $libname.a'
18885
# Create ${libname}_ixlibrary.a entries in /sys/libs.
18886
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
18890
library_names_spec='${libname}${shared_ext}'
18891
dynamic_linker="$host_os ld.so"
18892
shlibpath_var=LIBRARY_PATH
18898
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18899
soname_spec='${libname}${release}${shared_ext}$major'
18900
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18901
shlibpath_var=LD_LIBRARY_PATH
18902
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18903
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18904
# the default ld.so.conf also contains /usr/contrib/lib and
18905
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18906
# libtool to hard-code these into programs
18909
cygwin* | mingw* | pw32*)
18910
version_type=windows
18915
case $GCC,$host_os in
18916
yes,cygwin* | yes,mingw* | yes,pw32*)
18917
library_names_spec='$libname.dll.a'
18918
# DLL is installed to $(libdir)/../bin by postinstall_cmds
18919
postinstall_cmds='base_file=`basename \${file}`~
18920
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18921
dldir=$destdir/`dirname \$dlpath`~
18922
test -d \$dldir || mkdir -p \$dldir~
18923
$install_prog $dir/$dlname \$dldir/$dlname'
18924
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18925
dlpath=$dir/\$dldll~
18927
shlibpath_overrides_runpath=yes
18931
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
18932
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18933
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18936
# MinGW DLLs use traditional 'lib' prefix
18937
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18938
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18939
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18940
# It is most probably a Windows format PATH printed by
18941
# mingw gcc, but we are running on Cygwin. Gcc prints its search
18942
# path with ; separators, and with drive letters. We can handle the
18943
# drive letters (cygwin fileutils understands them), so leave them,
18944
# especially as we might pass files found there to a mingw objdump,
18945
# which wouldn't understand a cygwinified path. Ahh.
18946
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18948
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18952
# pw32 DLLs use 'pw' prefix rather than 'lib'
18953
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
18959
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18962
dynamic_linker='Win32 ld.exe'
18963
# FIXME: first we should search . and the directory the executable is in
18967
darwin* | rhapsody*)
18968
dynamic_linker="$host_os dyld"
18969
version_type=darwin
18972
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18973
soname_spec='${libname}${release}${major}$shared_ext'
18974
shlibpath_overrides_runpath=yes
18975
shlibpath_var=DYLD_LIBRARY_PATH
18976
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
18977
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18978
if test "$GCC" = yes; then
18979
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18981
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18983
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18990
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18991
soname_spec='${libname}${release}${shared_ext}$major'
18992
shlibpath_var=LD_LIBRARY_PATH
19003
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19004
soname_spec='${libname}${release}${shared_ext}$major'
19005
shlibpath_var=LD_LIBRARY_PATH
19006
shlibpath_overrides_runpath=no
19007
hardcode_into_libs=yes
19008
dynamic_linker='GNU ld.so'
19012
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
19013
version_type=freebsd-$objformat
19014
case $version_type in
19016
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19021
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19025
shlibpath_var=LD_LIBRARY_PATH
19028
shlibpath_overrides_runpath=yes
19030
freebsd3.01* | freebsdelf3.01*)
19031
shlibpath_overrides_runpath=yes
19032
hardcode_into_libs=yes
19035
shlibpath_overrides_runpath=no
19036
hardcode_into_libs=yes
19045
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19046
soname_spec='${libname}${release}${shared_ext}$major'
19047
shlibpath_var=LD_LIBRARY_PATH
19048
hardcode_into_libs=yes
19051
hpux9* | hpux10* | hpux11*)
19052
# Give a soname corresponding to the major version so that dld.sl refuses to
19053
# link against other versions.
19057
case "$host_cpu" in
19060
hardcode_into_libs=yes
19061
dynamic_linker="$host_os dld.so"
19062
shlibpath_var=LD_LIBRARY_PATH
19063
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19064
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19065
soname_spec='${libname}${release}${shared_ext}$major'
19066
if test "X$HPUX_IA64_MODE" = X32; then
19067
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19069
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19071
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19075
hardcode_into_libs=yes
19076
dynamic_linker="$host_os dld.sl"
19077
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19078
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19079
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19080
soname_spec='${libname}${release}${shared_ext}$major'
19081
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19082
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19086
dynamic_linker="$host_os dld.sl"
19087
shlibpath_var=SHLIB_PATH
19088
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19089
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19090
soname_spec='${libname}${release}${shared_ext}$major'
19093
# HP-UX runs *really* slowly unless shared libraries are mode 555.
19094
postinstall_cmds='chmod 555 $lib'
19097
irix5* | irix6* | nonstopux*)
19099
nonstopux*) version_type=nonstopux ;;
19101
if test "$lt_cv_prog_gnu_ld" = yes; then
19109
soname_spec='${libname}${release}${shared_ext}$major'
19110
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19112
irix5* | nonstopux*)
19113
libsuff= shlibsuff=
19116
case $LD in # libtool.m4 will add one of these switches to LD
19117
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19118
libsuff= shlibsuff= libmagic=32-bit;;
19119
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19120
libsuff=32 shlibsuff=N32 libmagic=N32;;
19121
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19122
libsuff=64 shlibsuff=64 libmagic=64-bit;;
19123
*) libsuff= shlibsuff= libmagic=never-match;;
19127
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19128
shlibpath_overrides_runpath=no
19129
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19130
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19131
hardcode_into_libs=yes
19134
# No shared lib support for Linux oldld, aout, or coff.
19135
linux*oldld* | linux*aout* | linux*coff*)
19139
# This must be Linux ELF.
19144
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19145
soname_spec='${libname}${release}${shared_ext}$major'
19146
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19147
shlibpath_var=LD_LIBRARY_PATH
19148
shlibpath_overrides_runpath=no
19149
# This implies no fast_install, which is unacceptable.
19150
# Some rework will be needed to allow for fast_install
19151
# before this can be enabled.
19152
hardcode_into_libs=yes
19154
# find out which ABI we are using
19156
case "$host_cpu" in
19157
x86_64*|s390x*|powerpc64*)
19158
echo '#line 19158 "configure"' > conftest.$ac_ext
19159
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19160
(eval $ac_compile) 2>&5
19162
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19163
(exit $ac_status); }; then
19164
case `/usr/bin/file conftest.$ac_objext` in
19167
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
19175
# Append ld.so.conf contents to the search path
19176
if test -f /etc/ld.so.conf; then
19177
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
19178
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
19181
# We used to test for /lib/ld.so.1 and disable shared libraries on
19182
# powerpc, because MkLinux only supported shared libraries with the
19183
# GNU dynamic linker. Since this was broken with cross compilers,
19184
# most powerpc-linux boxes support dynamic linking these days and
19185
# people can always --disable-shared, the test was removed, and we
19186
# assume the GNU/Linux dynamic linker is in use.
19187
dynamic_linker='GNU/Linux ld.so'
19194
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19195
soname_spec='${libname}${release}${shared_ext}$major'
19196
shlibpath_var=LD_LIBRARY_PATH
19197
shlibpath_overrides_runpath=no
19198
hardcode_into_libs=yes
19199
dynamic_linker='GNU ld.so'
19206
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19207
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19208
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19209
dynamic_linker='NetBSD (a.out) ld.so'
19211
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19212
soname_spec='${libname}${release}${shared_ext}$major'
19213
dynamic_linker='NetBSD ld.elf_so'
19215
shlibpath_var=LD_LIBRARY_PATH
19216
shlibpath_overrides_runpath=yes
19217
hardcode_into_libs=yes
19222
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19223
shlibpath_var=LD_LIBRARY_PATH
19224
shlibpath_overrides_runpath=yes
19231
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19232
soname_spec='${libname}${release}${shared_ext}$major'
19233
shlibpath_var=LD_LIBRARY_PATH
19234
shlibpath_overrides_runpath=yes
19241
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19242
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19243
shlibpath_var=LD_LIBRARY_PATH
19244
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19246
openbsd2.[89] | openbsd2.[89].*)
19247
shlibpath_overrides_runpath=no
19250
shlibpath_overrides_runpath=yes
19254
shlibpath_overrides_runpath=yes
19259
libname_spec='$name'
19262
library_names_spec='$libname${shared_ext} $libname.a'
19263
dynamic_linker='OS/2 ld.exe'
19264
shlibpath_var=LIBPATH
19267
osf3* | osf4* | osf5*)
19271
soname_spec='${libname}${release}${shared_ext}$major'
19272
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19273
shlibpath_var=LD_LIBRARY_PATH
19274
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19275
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19280
soname_spec='${libname}${release}${shared_ext}$major'
19281
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19282
shlibpath_var=LD_LIBRARY_PATH
19289
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19290
soname_spec='${libname}${release}${shared_ext}$major'
19291
shlibpath_var=LD_LIBRARY_PATH
19292
shlibpath_overrides_runpath=yes
19293
hardcode_into_libs=yes
19294
# ldd complains unless libraries are executable
19295
postinstall_cmds='chmod +x $lib'
19300
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19301
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19302
shlibpath_var=LD_LIBRARY_PATH
19303
shlibpath_overrides_runpath=yes
19304
if test "$with_gnu_ld" = yes; then
19310
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19312
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19313
soname_spec='${libname}${release}${shared_ext}$major'
19314
shlibpath_var=LD_LIBRARY_PATH
19315
case $host_vendor in
19317
shlibpath_overrides_runpath=no
19319
export_dynamic_flag_spec='${wl}-Blargedynsym'
19320
runpath_var=LD_RUN_PATH
19328
shlibpath_overrides_runpath=no
19329
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19335
if test -d /usr/nec ;then
19337
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19338
soname_spec='$libname${shared_ext}.$major'
19339
shlibpath_var=LD_LIBRARY_PATH
19345
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19346
soname_spec='${libname}${release}${shared_ext}$major'
19347
shlibpath_var=LD_LIBRARY_PATH
19354
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19355
echo "${ECHO_T}$dynamic_linker" >&6
19356
test "$dynamic_linker" = no && can_build_shared=no
19358
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19359
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19360
hardcode_action_GCJ=
19361
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19362
test -n "$runpath_var_GCJ" || \
19363
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19365
# We can hardcode non-existant directories.
19366
if test "$hardcode_direct_GCJ" != no &&
19367
# If the only mechanism to avoid hardcoding is shlibpath_var, we
19368
# have to relink, otherwise we might link with an installed library
19369
# when we should be linking with a yet-to-be-installed one
19370
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19371
test "$hardcode_minus_L_GCJ" != no; then
19372
# Linking always hardcodes the temporary library directory.
19373
hardcode_action_GCJ=relink
19375
# We can link without hardcoding, and we can hardcode nonexisting dirs.
19376
hardcode_action_GCJ=immediate
19379
# We cannot hardcode anything, or else we can only hardcode existing
19381
hardcode_action_GCJ=unsupported
19383
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19384
echo "${ECHO_T}$hardcode_action_GCJ" >&6
19386
if test "$hardcode_action_GCJ" = relink; then
19387
# Fast installation is not supported
19388
enable_fast_install=no
19389
elif test "$shlibpath_overrides_runpath" = yes ||
19390
test "$enable_shared" = no; then
19391
# Fast installation is not necessary
19392
enable_fast_install=needless
19397
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
19398
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
19399
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
19400
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19401
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19402
echo "$as_me:$LINENO: result: yes" >&5
19403
echo "${ECHO_T}yes" >&6
19405
# FIXME - insert some real tests, host_os isn't really good enough
19408
if test -n "$STRIP" ; then
19409
striplib="$STRIP -x"
19410
echo "$as_me:$LINENO: result: yes" >&5
19411
echo "${ECHO_T}yes" >&6
19413
echo "$as_me:$LINENO: result: no" >&5
19414
echo "${ECHO_T}no" >&6
19418
echo "$as_me:$LINENO: result: no" >&5
19419
echo "${ECHO_T}no" >&6
19424
if test "x$enable_dlopen" != xyes; then
19425
enable_dlopen=unknown
19426
enable_dlopen_self=unknown
19427
enable_dlopen_self_static=unknown
19434
lt_cv_dlopen="load_add_on"
19436
lt_cv_dlopen_self=yes
19440
lt_cv_dlopen="LoadLibrary"
19445
lt_cv_dlopen="dlopen"
19450
# if libdl is installed we need to link against it
19451
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19452
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19453
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19454
echo $ECHO_N "(cached) $ECHO_C" >&6
19456
ac_check_lib_save_LIBS=$LIBS
19458
cat >conftest.$ac_ext <<_ACEOF
19461
cat confdefs.h >>conftest.$ac_ext
19462
cat >>conftest.$ac_ext <<_ACEOF
19463
/* end confdefs.h. */
19465
/* Override any gcc2 internal prototype to avoid an error. */
19469
/* We use char because int might match the return type of a gcc2
19470
builtin and then its argument prototype would still apply. */
19480
rm -f conftest.$ac_objext conftest$ac_exeext
19481
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19482
(eval $ac_link) 2>conftest.er1
19484
grep -v '^ *+' conftest.er1 >conftest.err
19486
cat conftest.err >&5
19487
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19488
(exit $ac_status); } &&
19489
{ ac_try='test -z "$ac_c_werror_flag"
19490
|| test ! -s conftest.err'
19491
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19492
(eval $ac_try) 2>&5
19494
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19495
(exit $ac_status); }; } &&
19496
{ ac_try='test -s conftest$ac_exeext'
19497
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19498
(eval $ac_try) 2>&5
19500
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19501
(exit $ac_status); }; }; then
19502
ac_cv_lib_dl_dlopen=yes
19504
echo "$as_me: failed program was:" >&5
19505
sed 's/^/| /' conftest.$ac_ext >&5
19507
ac_cv_lib_dl_dlopen=no
19509
rm -f conftest.err conftest.$ac_objext \
19510
conftest$ac_exeext conftest.$ac_ext
19511
LIBS=$ac_check_lib_save_LIBS
19513
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19514
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19515
if test $ac_cv_lib_dl_dlopen = yes; then
19516
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19519
lt_cv_dlopen="dyld"
19521
lt_cv_dlopen_self=yes
19528
echo "$as_me:$LINENO: checking for shl_load" >&5
19529
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
19530
if test "${ac_cv_func_shl_load+set}" = set; then
19531
echo $ECHO_N "(cached) $ECHO_C" >&6
19533
cat >conftest.$ac_ext <<_ACEOF
19536
cat confdefs.h >>conftest.$ac_ext
19537
cat >>conftest.$ac_ext <<_ACEOF
19538
/* end confdefs.h. */
19539
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
19540
For example, HP-UX 11i <limits.h> declares gettimeofday. */
19541
#define shl_load innocuous_shl_load
19543
/* System header to define __stub macros and hopefully few prototypes,
19544
which can conflict with char shl_load (); below.
19545
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19546
<limits.h> exists even on freestanding compilers. */
19549
# include <limits.h>
19551
# include <assert.h>
19556
/* Override any gcc2 internal prototype to avoid an error. */
19561
/* We use char because int might match the return type of a gcc2
19562
builtin and then its argument prototype would still apply. */
19564
/* The GNU C library defines this for functions which it implements
19565
to always fail with ENOSYS. Some functions are actually named
19566
something starting with __ and the normal name is an alias. */
19567
#if defined (__stub_shl_load) || defined (__stub___shl_load)
19570
char (*f) () = shl_load;
19579
return f != shl_load;
19584
rm -f conftest.$ac_objext conftest$ac_exeext
19585
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19586
(eval $ac_link) 2>conftest.er1
19588
grep -v '^ *+' conftest.er1 >conftest.err
19590
cat conftest.err >&5
19591
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19592
(exit $ac_status); } &&
19593
{ ac_try='test -z "$ac_c_werror_flag"
19594
|| test ! -s conftest.err'
19595
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19596
(eval $ac_try) 2>&5
19598
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19599
(exit $ac_status); }; } &&
19600
{ ac_try='test -s conftest$ac_exeext'
19601
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19602
(eval $ac_try) 2>&5
19604
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19605
(exit $ac_status); }; }; then
19606
ac_cv_func_shl_load=yes
19608
echo "$as_me: failed program was:" >&5
19609
sed 's/^/| /' conftest.$ac_ext >&5
19611
ac_cv_func_shl_load=no
19613
rm -f conftest.err conftest.$ac_objext \
19614
conftest$ac_exeext conftest.$ac_ext
19616
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19617
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
19618
if test $ac_cv_func_shl_load = yes; then
19619
lt_cv_dlopen="shl_load"
19621
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19622
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
19623
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19624
echo $ECHO_N "(cached) $ECHO_C" >&6
19626
ac_check_lib_save_LIBS=$LIBS
19628
cat >conftest.$ac_ext <<_ACEOF
19631
cat confdefs.h >>conftest.$ac_ext
19632
cat >>conftest.$ac_ext <<_ACEOF
19633
/* end confdefs.h. */
19635
/* Override any gcc2 internal prototype to avoid an error. */
19639
/* We use char because int might match the return type of a gcc2
19640
builtin and then its argument prototype would still apply. */
19650
rm -f conftest.$ac_objext conftest$ac_exeext
19651
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19652
(eval $ac_link) 2>conftest.er1
19654
grep -v '^ *+' conftest.er1 >conftest.err
19656
cat conftest.err >&5
19657
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19658
(exit $ac_status); } &&
19659
{ ac_try='test -z "$ac_c_werror_flag"
19660
|| test ! -s conftest.err'
19661
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19662
(eval $ac_try) 2>&5
19664
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19665
(exit $ac_status); }; } &&
19666
{ ac_try='test -s conftest$ac_exeext'
19667
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19668
(eval $ac_try) 2>&5
19670
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19671
(exit $ac_status); }; }; then
19672
ac_cv_lib_dld_shl_load=yes
19674
echo "$as_me: failed program was:" >&5
19675
sed 's/^/| /' conftest.$ac_ext >&5
19677
ac_cv_lib_dld_shl_load=no
19679
rm -f conftest.err conftest.$ac_objext \
19680
conftest$ac_exeext conftest.$ac_ext
19681
LIBS=$ac_check_lib_save_LIBS
19683
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19684
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
19685
if test $ac_cv_lib_dld_shl_load = yes; then
19686
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
19688
echo "$as_me:$LINENO: checking for dlopen" >&5
19689
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
19690
if test "${ac_cv_func_dlopen+set}" = set; then
19691
echo $ECHO_N "(cached) $ECHO_C" >&6
19693
cat >conftest.$ac_ext <<_ACEOF
19696
cat confdefs.h >>conftest.$ac_ext
19697
cat >>conftest.$ac_ext <<_ACEOF
19698
/* end confdefs.h. */
19699
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
19700
For example, HP-UX 11i <limits.h> declares gettimeofday. */
19701
#define dlopen innocuous_dlopen
19703
/* System header to define __stub macros and hopefully few prototypes,
19704
which can conflict with char dlopen (); below.
19705
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19706
<limits.h> exists even on freestanding compilers. */
19709
# include <limits.h>
19711
# include <assert.h>
19716
/* Override any gcc2 internal prototype to avoid an error. */
19721
/* We use char because int might match the return type of a gcc2
19722
builtin and then its argument prototype would still apply. */
19724
/* The GNU C library defines this for functions which it implements
19725
to always fail with ENOSYS. Some functions are actually named
19726
something starting with __ and the normal name is an alias. */
19727
#if defined (__stub_dlopen) || defined (__stub___dlopen)
19730
char (*f) () = dlopen;
19739
return f != dlopen;
19744
rm -f conftest.$ac_objext conftest$ac_exeext
19745
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19746
(eval $ac_link) 2>conftest.er1
19748
grep -v '^ *+' conftest.er1 >conftest.err
19750
cat conftest.err >&5
19751
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19752
(exit $ac_status); } &&
19753
{ ac_try='test -z "$ac_c_werror_flag"
19754
|| test ! -s conftest.err'
19755
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19756
(eval $ac_try) 2>&5
19758
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19759
(exit $ac_status); }; } &&
19760
{ ac_try='test -s conftest$ac_exeext'
19761
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19762
(eval $ac_try) 2>&5
19764
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19765
(exit $ac_status); }; }; then
19766
ac_cv_func_dlopen=yes
19768
echo "$as_me: failed program was:" >&5
19769
sed 's/^/| /' conftest.$ac_ext >&5
19771
ac_cv_func_dlopen=no
19773
rm -f conftest.err conftest.$ac_objext \
19774
conftest$ac_exeext conftest.$ac_ext
19776
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19777
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
19778
if test $ac_cv_func_dlopen = yes; then
19779
lt_cv_dlopen="dlopen"
19781
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19782
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19783
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19784
echo $ECHO_N "(cached) $ECHO_C" >&6
19786
ac_check_lib_save_LIBS=$LIBS
19788
cat >conftest.$ac_ext <<_ACEOF
19791
cat confdefs.h >>conftest.$ac_ext
19792
cat >>conftest.$ac_ext <<_ACEOF
19793
/* end confdefs.h. */
19795
/* Override any gcc2 internal prototype to avoid an error. */
19799
/* We use char because int might match the return type of a gcc2
19800
builtin and then its argument prototype would still apply. */
19810
rm -f conftest.$ac_objext conftest$ac_exeext
19811
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19812
(eval $ac_link) 2>conftest.er1
19814
grep -v '^ *+' conftest.er1 >conftest.err
19816
cat conftest.err >&5
19817
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818
(exit $ac_status); } &&
19819
{ ac_try='test -z "$ac_c_werror_flag"
19820
|| test ! -s conftest.err'
19821
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19822
(eval $ac_try) 2>&5
19824
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19825
(exit $ac_status); }; } &&
19826
{ ac_try='test -s conftest$ac_exeext'
19827
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19828
(eval $ac_try) 2>&5
19830
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19831
(exit $ac_status); }; }; then
19832
ac_cv_lib_dl_dlopen=yes
19834
echo "$as_me: failed program was:" >&5
19835
sed 's/^/| /' conftest.$ac_ext >&5
19837
ac_cv_lib_dl_dlopen=no
19839
rm -f conftest.err conftest.$ac_objext \
19840
conftest$ac_exeext conftest.$ac_ext
19841
LIBS=$ac_check_lib_save_LIBS
19843
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19844
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19845
if test $ac_cv_lib_dl_dlopen = yes; then
19846
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19848
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19849
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
19850
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19851
echo $ECHO_N "(cached) $ECHO_C" >&6
19853
ac_check_lib_save_LIBS=$LIBS
19854
LIBS="-lsvld $LIBS"
19855
cat >conftest.$ac_ext <<_ACEOF
19858
cat confdefs.h >>conftest.$ac_ext
19859
cat >>conftest.$ac_ext <<_ACEOF
19860
/* end confdefs.h. */
19862
/* Override any gcc2 internal prototype to avoid an error. */
19866
/* We use char because int might match the return type of a gcc2
19867
builtin and then its argument prototype would still apply. */
19877
rm -f conftest.$ac_objext conftest$ac_exeext
19878
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19879
(eval $ac_link) 2>conftest.er1
19881
grep -v '^ *+' conftest.er1 >conftest.err
19883
cat conftest.err >&5
19884
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19885
(exit $ac_status); } &&
19886
{ ac_try='test -z "$ac_c_werror_flag"
19887
|| test ! -s conftest.err'
19888
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19889
(eval $ac_try) 2>&5
19891
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19892
(exit $ac_status); }; } &&
19893
{ ac_try='test -s conftest$ac_exeext'
19894
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19895
(eval $ac_try) 2>&5
19897
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19898
(exit $ac_status); }; }; then
19899
ac_cv_lib_svld_dlopen=yes
19901
echo "$as_me: failed program was:" >&5
19902
sed 's/^/| /' conftest.$ac_ext >&5
19904
ac_cv_lib_svld_dlopen=no
19906
rm -f conftest.err conftest.$ac_objext \
19907
conftest$ac_exeext conftest.$ac_ext
19908
LIBS=$ac_check_lib_save_LIBS
19910
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19911
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
19912
if test $ac_cv_lib_svld_dlopen = yes; then
19913
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19915
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19916
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
19917
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19918
echo $ECHO_N "(cached) $ECHO_C" >&6
19920
ac_check_lib_save_LIBS=$LIBS
19922
cat >conftest.$ac_ext <<_ACEOF
19925
cat confdefs.h >>conftest.$ac_ext
19926
cat >>conftest.$ac_ext <<_ACEOF
19927
/* end confdefs.h. */
19929
/* Override any gcc2 internal prototype to avoid an error. */
19933
/* We use char because int might match the return type of a gcc2
19934
builtin and then its argument prototype would still apply. */
19944
rm -f conftest.$ac_objext conftest$ac_exeext
19945
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19946
(eval $ac_link) 2>conftest.er1
19948
grep -v '^ *+' conftest.er1 >conftest.err
19950
cat conftest.err >&5
19951
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19952
(exit $ac_status); } &&
19953
{ ac_try='test -z "$ac_c_werror_flag"
19954
|| test ! -s conftest.err'
19955
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19956
(eval $ac_try) 2>&5
19958
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19959
(exit $ac_status); }; } &&
19960
{ ac_try='test -s conftest$ac_exeext'
19961
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19962
(eval $ac_try) 2>&5
19964
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19965
(exit $ac_status); }; }; then
19966
ac_cv_lib_dld_dld_link=yes
19968
echo "$as_me: failed program was:" >&5
19969
sed 's/^/| /' conftest.$ac_ext >&5
19971
ac_cv_lib_dld_dld_link=no
19973
rm -f conftest.err conftest.$ac_objext \
19974
conftest$ac_exeext conftest.$ac_ext
19975
LIBS=$ac_check_lib_save_LIBS
19977
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19978
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
19979
if test $ac_cv_lib_dld_dld_link = yes; then
19980
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
20001
if test "x$lt_cv_dlopen" != xno; then
20007
case $lt_cv_dlopen in
20009
save_CPPFLAGS="$CPPFLAGS"
20010
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
20012
save_LDFLAGS="$LDFLAGS"
20013
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
20016
LIBS="$lt_cv_dlopen_libs $LIBS"
20018
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
20019
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
20020
if test "${lt_cv_dlopen_self+set}" = set; then
20021
echo $ECHO_N "(cached) $ECHO_C" >&6
20023
if test "$cross_compiling" = yes; then :
20024
lt_cv_dlopen_self=cross
20026
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20027
lt_status=$lt_dlunknown
20028
cat > conftest.$ac_ext <<EOF
20029
#line 20029 "configure"
20030
#include "confdefs.h"
20039
# define LT_DLGLOBAL RTLD_GLOBAL
20042
# define LT_DLGLOBAL DL_GLOBAL
20044
# define LT_DLGLOBAL 0
20048
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20049
find out it does not work in some platform. */
20050
#ifndef LT_DLLAZY_OR_NOW
20052
# define LT_DLLAZY_OR_NOW RTLD_LAZY
20055
# define LT_DLLAZY_OR_NOW DL_LAZY
20058
# define LT_DLLAZY_OR_NOW RTLD_NOW
20061
# define LT_DLLAZY_OR_NOW DL_NOW
20063
# define LT_DLLAZY_OR_NOW 0
20071
extern "C" void exit (int);
20074
void fnord() { int i=42;}
20077
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20078
int status = $lt_dlunknown;
20082
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20083
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20084
/* dlclose (self); */
20090
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20091
(eval $ac_link) 2>&5
20093
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20094
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20095
(./conftest; exit; ) 2>/dev/null
20097
case x$lt_status in
20098
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
20099
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
20100
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
20103
# compilation failed
20104
lt_cv_dlopen_self=no
20111
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
20112
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
20114
if test "x$lt_cv_dlopen_self" = xyes; then
20115
LDFLAGS="$LDFLAGS $link_static_flag"
20116
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
20117
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
20118
if test "${lt_cv_dlopen_self_static+set}" = set; then
20119
echo $ECHO_N "(cached) $ECHO_C" >&6
20121
if test "$cross_compiling" = yes; then :
20122
lt_cv_dlopen_self_static=cross
20124
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20125
lt_status=$lt_dlunknown
20126
cat > conftest.$ac_ext <<EOF
20127
#line 20127 "configure"
20128
#include "confdefs.h"
20137
# define LT_DLGLOBAL RTLD_GLOBAL
20140
# define LT_DLGLOBAL DL_GLOBAL
20142
# define LT_DLGLOBAL 0
20146
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20147
find out it does not work in some platform. */
20148
#ifndef LT_DLLAZY_OR_NOW
20150
# define LT_DLLAZY_OR_NOW RTLD_LAZY
20153
# define LT_DLLAZY_OR_NOW DL_LAZY
20156
# define LT_DLLAZY_OR_NOW RTLD_NOW
20159
# define LT_DLLAZY_OR_NOW DL_NOW
20161
# define LT_DLLAZY_OR_NOW 0
20169
extern "C" void exit (int);
20172
void fnord() { int i=42;}
20175
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20176
int status = $lt_dlunknown;
20180
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20181
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20182
/* dlclose (self); */
20188
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20189
(eval $ac_link) 2>&5
20191
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20192
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20193
(./conftest; exit; ) 2>/dev/null
20195
case x$lt_status in
20196
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
20197
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
20198
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
20201
# compilation failed
20202
lt_cv_dlopen_self_static=no
20209
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
20210
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
20213
CPPFLAGS="$save_CPPFLAGS"
20214
LDFLAGS="$save_LDFLAGS"
20219
case $lt_cv_dlopen_self in
20220
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
20221
*) enable_dlopen_self=unknown ;;
20224
case $lt_cv_dlopen_self_static in
20225
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
20226
*) enable_dlopen_self_static=unknown ;;
20231
# The else clause should only fire when bootstrapping the
20232
# libtool distribution, otherwise you forgot to ship ltmain.sh
20233
# with your package, and you will get complaints that there are
20234
# no rules to generate ltmain.sh.
20235
if test -f "$ltmain"; then
20236
# See if we are running on zsh, and set the options which allow our commands through
20237
# without removal of \ escapes.
20238
if test -n "${ZSH_VERSION+set}" ; then
20239
setopt NO_GLOB_SUBST
20241
# Now quote all the things that may contain metacharacters while being
20242
# careful not to overquote the AC_SUBSTed values. We take copies of the
20243
# variables and quote the copies for generation of the libtool script.
20244
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20246
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20247
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20248
deplibs_check_method reload_flag reload_cmds need_locks \
20249
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20250
lt_cv_sys_global_symbol_to_c_name_address \
20251
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20252
old_postinstall_cmds old_postuninstall_cmds \
20256
lt_prog_compiler_wl_GCJ \
20257
lt_prog_compiler_pic_GCJ \
20258
lt_prog_compiler_static_GCJ \
20259
lt_prog_compiler_no_builtin_flag_GCJ \
20260
export_dynamic_flag_spec_GCJ \
20261
thread_safe_flag_spec_GCJ \
20262
whole_archive_flag_spec_GCJ \
20263
enable_shared_with_static_runtimes_GCJ \
20264
old_archive_cmds_GCJ \
20265
old_archive_from_new_cmds_GCJ \
20266
predep_objects_GCJ \
20267
postdep_objects_GCJ \
20270
compiler_lib_search_path_GCJ \
20272
archive_expsym_cmds_GCJ \
20273
postinstall_cmds_GCJ \
20274
postuninstall_cmds_GCJ \
20275
old_archive_from_expsyms_cmds_GCJ \
20276
allow_undefined_flag_GCJ \
20277
no_undefined_flag_GCJ \
20278
export_symbols_cmds_GCJ \
20279
hardcode_libdir_flag_spec_GCJ \
20280
hardcode_libdir_flag_spec_ld_GCJ \
20281
hardcode_libdir_separator_GCJ \
20282
hardcode_automatic_GCJ \
20284
module_expsym_cmds_GCJ \
20285
lt_cv_prog_compiler_c_o_GCJ \
20286
exclude_expsyms_GCJ \
20287
include_expsyms_GCJ; do
20290
old_archive_cmds_GCJ | \
20291
old_archive_from_new_cmds_GCJ | \
20292
archive_cmds_GCJ | \
20293
archive_expsym_cmds_GCJ | \
20294
module_cmds_GCJ | \
20295
module_expsym_cmds_GCJ | \
20296
old_archive_from_expsyms_cmds_GCJ | \
20297
export_symbols_cmds_GCJ | \
20298
extract_expsyms_cmds | reload_cmds | finish_cmds | \
20299
postinstall_cmds | postuninstall_cmds | \
20300
old_postinstall_cmds | old_postuninstall_cmds | \
20301
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20302
# Double-quote double-evaled strings.
20303
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20306
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20312
*'\$0 --fallback-echo"')
20313
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20319
cat <<__EOF__ >> "$cfgfile"
20320
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20322
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20324
# Shell to use when invoking shell scripts.
20327
# Whether or not to build shared libraries.
20328
build_libtool_libs=$enable_shared
20330
# Whether or not to build static libraries.
20331
build_old_libs=$enable_static
20333
# Whether or not to add -lc for building shared libraries.
20334
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20336
# Whether or not to disallow shared libs when runtime libs are static
20337
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20339
# Whether or not to optimize for fast installation.
20340
fast_install=$enable_fast_install
20343
host_alias=$host_alias
20346
# An echo program that does not interpret backslashes.
20351
AR_FLAGS=$lt_AR_FLAGS
20356
# A language-specific compiler.
20357
CC=$lt_compiler_GCJ
20359
# Is the compiler the GNU C compiler?
20365
# The linker used to build libraries.
20368
# Whether we need hard or soft links.
20371
# A BSD-compatible nm program.
20374
# A symbol stripping program
20377
# Used to examine libraries when file_magic_cmd begins "file"
20378
MAGIC_CMD=$MAGIC_CMD
20380
# Used on cygwin: DLL creation program.
20383
# Used on cygwin: object dumper.
20386
# Used on cygwin: assembler.
20389
# The name of the directory that contains temporary libtool files.
20392
# How to create reloadable object files.
20393
reload_flag=$lt_reload_flag
20394
reload_cmds=$lt_reload_cmds
20396
# How to pass a linker flag through the compiler.
20397
wl=$lt_lt_prog_compiler_wl_GCJ
20399
# Object file suffix (normally "o").
20400
objext="$ac_objext"
20402
# Old archive suffix (normally "a").
20405
# Shared library suffix (normally ".so").
20406
shrext_cmds='$shrext_cmds'
20408
# Executable file suffix (normally "").
20411
# Additional compiler flags for building library objects.
20412
pic_flag=$lt_lt_prog_compiler_pic_GCJ
20415
# What is the maximum length of a command?
20416
max_cmd_len=$lt_cv_sys_max_cmd_len
20418
# Does compiler simultaneously support -c and -o options?
20419
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20421
# Must we lock files when doing compilation ?
20422
need_locks=$lt_need_locks
20424
# Do we need the lib prefix for modules?
20425
need_lib_prefix=$need_lib_prefix
20427
# Do we need a version for libraries?
20428
need_version=$need_version
20430
# Whether dlopen is supported.
20431
dlopen_support=$enable_dlopen
20433
# Whether dlopen of programs is supported.
20434
dlopen_self=$enable_dlopen_self
20436
# Whether dlopen of statically linked programs is supported.
20437
dlopen_self_static=$enable_dlopen_self_static
20439
# Compiler flag to prevent dynamic linking.
20440
link_static_flag=$lt_lt_prog_compiler_static_GCJ
20442
# Compiler flag to turn off builtin functions.
20443
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20445
# Compiler flag to allow reflexive dlopens.
20446
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20448
# Compiler flag to generate shared objects directly from archives.
20449
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20451
# Compiler flag to generate thread-safe objects.
20452
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20454
# Library versioning type.
20455
version_type=$version_type
20457
# Format of library name prefix.
20458
libname_spec=$lt_libname_spec
20460
# List of archive names. First name is the real one, the rest are links.
20461
# The last name is the one that the linker finds with -lNAME.
20462
library_names_spec=$lt_library_names_spec
20464
# The coded name of the library, if different from the real name.
20465
soname_spec=$lt_soname_spec
20467
# Commands used to build and install an old-style archive.
20469
old_archive_cmds=$lt_old_archive_cmds_GCJ
20470
old_postinstall_cmds=$lt_old_postinstall_cmds
20471
old_postuninstall_cmds=$lt_old_postuninstall_cmds
20473
# Create an old-style archive from a shared archive.
20474
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20476
# Create a temporary old-style archive to link instead of a shared archive.
20477
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20479
# Commands used to build and install a shared archive.
20480
archive_cmds=$lt_archive_cmds_GCJ
20481
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20482
postinstall_cmds=$lt_postinstall_cmds
20483
postuninstall_cmds=$lt_postuninstall_cmds
20485
# Commands used to build a loadable module (assumed same as above if empty)
20486
module_cmds=$lt_module_cmds_GCJ
20487
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20489
# Commands to strip libraries.
20490
old_striplib=$lt_old_striplib
20491
striplib=$lt_striplib
20493
# Dependencies to place before the objects being linked to create a
20495
predep_objects=$lt_predep_objects_GCJ
20497
# Dependencies to place after the objects being linked to create a
20499
postdep_objects=$lt_postdep_objects_GCJ
20501
# Dependencies to place before the objects being linked to create a
20503
predeps=$lt_predeps_GCJ
20505
# Dependencies to place after the objects being linked to create a
20507
postdeps=$lt_postdeps_GCJ
20509
# The library search path used internally by the compiler when linking
20510
# a shared library.
20511
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20513
# Method to check whether dependent libraries are shared objects.
20514
deplibs_check_method=$lt_deplibs_check_method
20516
# Command to use when deplibs_check_method == file_magic.
20517
file_magic_cmd=$lt_file_magic_cmd
20519
# Flag that allows shared libraries with undefined symbols to be built.
20520
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20522
# Flag that forces no undefined symbols.
20523
no_undefined_flag=$lt_no_undefined_flag_GCJ
20525
# Commands used to finish a libtool library installation in a directory.
20526
finish_cmds=$lt_finish_cmds
20528
# Same as above, but a single script fragment to be evaled but not shown.
20529
finish_eval=$lt_finish_eval
20531
# Take the output of nm and produce a listing of raw symbols and C names.
20532
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20534
# Transform the output of nm in a proper C declaration
20535
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20537
# Transform the output of nm in a C name address pair
20538
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20540
# This is the shared library runtime path variable.
20541
runpath_var=$runpath_var
20543
# This is the shared library path variable.
20544
shlibpath_var=$shlibpath_var
20546
# Is shlibpath searched before the hard-coded library search path?
20547
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20549
# How to hardcode a shared library path into an executable.
20550
hardcode_action=$hardcode_action_GCJ
20552
# Whether we should hardcode library paths into libraries.
20553
hardcode_into_libs=$hardcode_into_libs
20555
# Flag to hardcode \$libdir into a binary during linking.
20556
# This must work even if \$libdir does not exist.
20557
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20559
# If ld is used when linking, flag to hardcode \$libdir into
20560
# a binary during linking. This must work even if \$libdir does
20562
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20564
# Whether we need a single -rpath flag with a separated argument.
20565
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20567
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20568
# resulting binary.
20569
hardcode_direct=$hardcode_direct_GCJ
20571
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20572
# resulting binary.
20573
hardcode_minus_L=$hardcode_minus_L_GCJ
20575
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20576
# the resulting binary.
20577
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20579
# Set to yes if building a shared library automatically hardcodes DIR into the library
20580
# and all subsequent libraries and executables linked against it.
20581
hardcode_automatic=$hardcode_automatic_GCJ
20583
# Variables whose values should be saved in libtool wrapper scripts and
20584
# restored at relink time.
20585
variables_saved_for_relink="$variables_saved_for_relink"
20587
# Whether libtool must link a program against all its dependency libraries.
20588
link_all_deplibs=$link_all_deplibs_GCJ
20590
# Compile-time system search path for libraries
20591
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20593
# Run-time system search path for libraries
20594
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20596
# Fix the shell variable \$srcfile for the compiler.
20597
fix_srcfile_path="$fix_srcfile_path_GCJ"
20599
# Set to yes if exported symbols are required.
20600
always_export_symbols=$always_export_symbols_GCJ
20602
# The commands to list exported symbols.
20603
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20605
# The commands to extract the exported symbol list from a shared archive.
20606
extract_expsyms_cmds=$lt_extract_expsyms_cmds
20608
# Symbols that should not be listed in the preloaded symbols.
20609
exclude_expsyms=$lt_exclude_expsyms_GCJ
20611
# Symbols that must always be exported.
20612
include_expsyms=$lt_include_expsyms_GCJ
20614
# ### END LIBTOOL TAG CONFIG: $tagname
20620
# If there is no Makefile yet, we rely on a make rule to execute
20621
# `config.status --recheck' to rerun these tests and create the
20622
# libtool script then.
20623
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20624
if test -f "$ltmain_in"; then
20625
test -f Makefile && make "$ltmain"
20631
ac_cpp='$CPP $CPPFLAGS'
20632
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20633
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20634
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20647
# Source file extension for RC test sources.
20650
# Object file extension for compiled RC test sources.
20654
# Code to be used in simple compile tests
20655
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
20657
# Code to be used in simple link tests
20658
lt_simple_link_test_code="$lt_simple_compile_test_code"
20660
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20662
# If no C compiler was specified, use CC.
20665
# Allow CC to be a program name with arguments.
20669
# Allow CC to be a program name with arguments.
20674
lt_cv_prog_compiler_c_o_RC=yes
20676
# The else clause should only fire when bootstrapping the
20677
# libtool distribution, otherwise you forgot to ship ltmain.sh
20678
# with your package, and you will get complaints that there are
20679
# no rules to generate ltmain.sh.
20680
if test -f "$ltmain"; then
20681
# See if we are running on zsh, and set the options which allow our commands through
20682
# without removal of \ escapes.
20683
if test -n "${ZSH_VERSION+set}" ; then
20684
setopt NO_GLOB_SUBST
20686
# Now quote all the things that may contain metacharacters while being
20687
# careful not to overquote the AC_SUBSTed values. We take copies of the
20688
# variables and quote the copies for generation of the libtool script.
20689
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20691
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20692
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20693
deplibs_check_method reload_flag reload_cmds need_locks \
20694
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20695
lt_cv_sys_global_symbol_to_c_name_address \
20696
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20697
old_postinstall_cmds old_postuninstall_cmds \
20701
lt_prog_compiler_wl_RC \
20702
lt_prog_compiler_pic_RC \
20703
lt_prog_compiler_static_RC \
20704
lt_prog_compiler_no_builtin_flag_RC \
20705
export_dynamic_flag_spec_RC \
20706
thread_safe_flag_spec_RC \
20707
whole_archive_flag_spec_RC \
20708
enable_shared_with_static_runtimes_RC \
20709
old_archive_cmds_RC \
20710
old_archive_from_new_cmds_RC \
20711
predep_objects_RC \
20712
postdep_objects_RC \
20715
compiler_lib_search_path_RC \
20717
archive_expsym_cmds_RC \
20718
postinstall_cmds_RC \
20719
postuninstall_cmds_RC \
20720
old_archive_from_expsyms_cmds_RC \
20721
allow_undefined_flag_RC \
20722
no_undefined_flag_RC \
20723
export_symbols_cmds_RC \
20724
hardcode_libdir_flag_spec_RC \
20725
hardcode_libdir_flag_spec_ld_RC \
20726
hardcode_libdir_separator_RC \
20727
hardcode_automatic_RC \
20729
module_expsym_cmds_RC \
20730
lt_cv_prog_compiler_c_o_RC \
20731
exclude_expsyms_RC \
20732
include_expsyms_RC; do
20735
old_archive_cmds_RC | \
20736
old_archive_from_new_cmds_RC | \
20737
archive_cmds_RC | \
20738
archive_expsym_cmds_RC | \
20740
module_expsym_cmds_RC | \
20741
old_archive_from_expsyms_cmds_RC | \
20742
export_symbols_cmds_RC | \
20743
extract_expsyms_cmds | reload_cmds | finish_cmds | \
20744
postinstall_cmds | postuninstall_cmds | \
20745
old_postinstall_cmds | old_postuninstall_cmds | \
20746
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20747
# Double-quote double-evaled strings.
20748
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20751
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20757
*'\$0 --fallback-echo"')
20758
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20764
cat <<__EOF__ >> "$cfgfile"
20765
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20767
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20769
# Shell to use when invoking shell scripts.
20772
# Whether or not to build shared libraries.
20773
build_libtool_libs=$enable_shared
20775
# Whether or not to build static libraries.
20776
build_old_libs=$enable_static
20778
# Whether or not to add -lc for building shared libraries.
20779
build_libtool_need_lc=$archive_cmds_need_lc_RC
20781
# Whether or not to disallow shared libs when runtime libs are static
20782
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20784
# Whether or not to optimize for fast installation.
20785
fast_install=$enable_fast_install
20788
host_alias=$host_alias
20791
# An echo program that does not interpret backslashes.
20796
AR_FLAGS=$lt_AR_FLAGS
20801
# A language-specific compiler.
20804
# Is the compiler the GNU C compiler?
20810
# The linker used to build libraries.
20813
# Whether we need hard or soft links.
20816
# A BSD-compatible nm program.
20819
# A symbol stripping program
20822
# Used to examine libraries when file_magic_cmd begins "file"
20823
MAGIC_CMD=$MAGIC_CMD
20825
# Used on cygwin: DLL creation program.
20828
# Used on cygwin: object dumper.
20831
# Used on cygwin: assembler.
20834
# The name of the directory that contains temporary libtool files.
20837
# How to create reloadable object files.
20838
reload_flag=$lt_reload_flag
20839
reload_cmds=$lt_reload_cmds
20841
# How to pass a linker flag through the compiler.
20842
wl=$lt_lt_prog_compiler_wl_RC
20844
# Object file suffix (normally "o").
20845
objext="$ac_objext"
20847
# Old archive suffix (normally "a").
20850
# Shared library suffix (normally ".so").
20851
shrext_cmds='$shrext_cmds'
20853
# Executable file suffix (normally "").
20856
# Additional compiler flags for building library objects.
20857
pic_flag=$lt_lt_prog_compiler_pic_RC
20860
# What is the maximum length of a command?
20861
max_cmd_len=$lt_cv_sys_max_cmd_len
20863
# Does compiler simultaneously support -c and -o options?
20864
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20866
# Must we lock files when doing compilation ?
20867
need_locks=$lt_need_locks
20869
# Do we need the lib prefix for modules?
20870
need_lib_prefix=$need_lib_prefix
20872
# Do we need a version for libraries?
20873
need_version=$need_version
20875
# Whether dlopen is supported.
20876
dlopen_support=$enable_dlopen
20878
# Whether dlopen of programs is supported.
20879
dlopen_self=$enable_dlopen_self
20881
# Whether dlopen of statically linked programs is supported.
20882
dlopen_self_static=$enable_dlopen_self_static
20884
# Compiler flag to prevent dynamic linking.
20885
link_static_flag=$lt_lt_prog_compiler_static_RC
20887
# Compiler flag to turn off builtin functions.
20888
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20890
# Compiler flag to allow reflexive dlopens.
20891
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20893
# Compiler flag to generate shared objects directly from archives.
20894
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20896
# Compiler flag to generate thread-safe objects.
20897
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20899
# Library versioning type.
20900
version_type=$version_type
20902
# Format of library name prefix.
20903
libname_spec=$lt_libname_spec
20905
# List of archive names. First name is the real one, the rest are links.
20906
# The last name is the one that the linker finds with -lNAME.
20907
library_names_spec=$lt_library_names_spec
20909
# The coded name of the library, if different from the real name.
20910
soname_spec=$lt_soname_spec
20912
# Commands used to build and install an old-style archive.
20914
old_archive_cmds=$lt_old_archive_cmds_RC
20915
old_postinstall_cmds=$lt_old_postinstall_cmds
20916
old_postuninstall_cmds=$lt_old_postuninstall_cmds
20918
# Create an old-style archive from a shared archive.
20919
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20921
# Create a temporary old-style archive to link instead of a shared archive.
20922
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20924
# Commands used to build and install a shared archive.
20925
archive_cmds=$lt_archive_cmds_RC
20926
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20927
postinstall_cmds=$lt_postinstall_cmds
20928
postuninstall_cmds=$lt_postuninstall_cmds
20930
# Commands used to build a loadable module (assumed same as above if empty)
20931
module_cmds=$lt_module_cmds_RC
20932
module_expsym_cmds=$lt_module_expsym_cmds_RC
20934
# Commands to strip libraries.
20935
old_striplib=$lt_old_striplib
20936
striplib=$lt_striplib
20938
# Dependencies to place before the objects being linked to create a
20940
predep_objects=$lt_predep_objects_RC
20942
# Dependencies to place after the objects being linked to create a
20944
postdep_objects=$lt_postdep_objects_RC
20946
# Dependencies to place before the objects being linked to create a
20948
predeps=$lt_predeps_RC
20950
# Dependencies to place after the objects being linked to create a
20952
postdeps=$lt_postdeps_RC
20954
# The library search path used internally by the compiler when linking
20955
# a shared library.
20956
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20958
# Method to check whether dependent libraries are shared objects.
20959
deplibs_check_method=$lt_deplibs_check_method
20961
# Command to use when deplibs_check_method == file_magic.
20962
file_magic_cmd=$lt_file_magic_cmd
20964
# Flag that allows shared libraries with undefined symbols to be built.
20965
allow_undefined_flag=$lt_allow_undefined_flag_RC
20967
# Flag that forces no undefined symbols.
20968
no_undefined_flag=$lt_no_undefined_flag_RC
20970
# Commands used to finish a libtool library installation in a directory.
20971
finish_cmds=$lt_finish_cmds
20973
# Same as above, but a single script fragment to be evaled but not shown.
20974
finish_eval=$lt_finish_eval
20976
# Take the output of nm and produce a listing of raw symbols and C names.
20977
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20979
# Transform the output of nm in a proper C declaration
20980
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20982
# Transform the output of nm in a C name address pair
20983
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20985
# This is the shared library runtime path variable.
20986
runpath_var=$runpath_var
20988
# This is the shared library path variable.
20989
shlibpath_var=$shlibpath_var
20991
# Is shlibpath searched before the hard-coded library search path?
20992
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20994
# How to hardcode a shared library path into an executable.
20995
hardcode_action=$hardcode_action_RC
20997
# Whether we should hardcode library paths into libraries.
20998
hardcode_into_libs=$hardcode_into_libs
21000
# Flag to hardcode \$libdir into a binary during linking.
21001
# This must work even if \$libdir does not exist.
21002
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
21004
# If ld is used when linking, flag to hardcode \$libdir into
21005
# a binary during linking. This must work even if \$libdir does
21007
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
21009
# Whether we need a single -rpath flag with a separated argument.
21010
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
21012
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21013
# resulting binary.
21014
hardcode_direct=$hardcode_direct_RC
21016
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21017
# resulting binary.
21018
hardcode_minus_L=$hardcode_minus_L_RC
21020
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21021
# the resulting binary.
21022
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
21024
# Set to yes if building a shared library automatically hardcodes DIR into the library
21025
# and all subsequent libraries and executables linked against it.
21026
hardcode_automatic=$hardcode_automatic_RC
21028
# Variables whose values should be saved in libtool wrapper scripts and
21029
# restored at relink time.
21030
variables_saved_for_relink="$variables_saved_for_relink"
21032
# Whether libtool must link a program against all its dependency libraries.
21033
link_all_deplibs=$link_all_deplibs_RC
21035
# Compile-time system search path for libraries
21036
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21038
# Run-time system search path for libraries
21039
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21041
# Fix the shell variable \$srcfile for the compiler.
21042
fix_srcfile_path="$fix_srcfile_path_RC"
21044
# Set to yes if exported symbols are required.
21045
always_export_symbols=$always_export_symbols_RC
21047
# The commands to list exported symbols.
21048
export_symbols_cmds=$lt_export_symbols_cmds_RC
21050
# The commands to extract the exported symbol list from a shared archive.
21051
extract_expsyms_cmds=$lt_extract_expsyms_cmds
21053
# Symbols that should not be listed in the preloaded symbols.
21054
exclude_expsyms=$lt_exclude_expsyms_RC
21056
# Symbols that must always be exported.
21057
include_expsyms=$lt_include_expsyms_RC
21059
# ### END LIBTOOL TAG CONFIG: $tagname
21065
# If there is no Makefile yet, we rely on a make rule to execute
21066
# `config.status --recheck' to rerun these tests and create the
21067
# libtool script then.
21068
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21069
if test -f "$ltmain_in"; then
21070
test -f Makefile && make "$ltmain"
21076
ac_cpp='$CPP $CPPFLAGS'
21077
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21078
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21079
ac_compiler_gnu=$ac_cv_c_compiler_gnu
21086
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21087
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21088
{ (exit 1); exit 1; }; }
21092
# Append the new tag name to the list of available tags.
21093
if test -n "$tagname" ; then
21094
available_tags="$available_tags $tagname"
21100
# Now substitute the updated list of available tags.
21101
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21102
mv "${ofile}T" "$ofile"
21106
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21107
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21108
{ (exit 1); exit 1; }; }
7016
21114
# This can be used to rebuild libtool when needed
7017
21115
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"