13422
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13423
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
14782
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
14783
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
13424
14784
with_gnu_ld=$lt_cv_prog_gnu_ld
13428
# Check if GNU C++ uses GNU ld as the underlying linker, since the
13429
# archiving commands below assume that GNU ld is being used.
13430
if test "$with_gnu_ld" = yes; then
13431
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13432
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'
13434
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13435
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13437
# If archive_cmds runs LD, not CC, wlarc should be empty
13438
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13439
# investigate it a little bit more. (MM)
13442
# ancient GNU ld didn't support --whole-archive et. al.
13443
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
13444
grep 'no-whole-archive' > /dev/null; then
13445
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13447
whole_archive_flag_spec_CXX=
13453
# A generic and very simple default shared library creation
13454
# command for GNU C++ for the case where it uses the native
13455
# linker, instead of GNU ld. If possible, this setting should
13456
# overridden to take advantage of the native linker features on
13457
# the platform it is being used on.
13458
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13461
# Commands to make compiler produce verbose output that lists
13462
# what "hidden" libraries, object files and flags are used when
13463
# linking a shared library.
13464
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13472
# PORTME: fill in a description of your system's C++ link characteristics
13473
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13474
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13478
# FIXME: insert proper C++ library support
13482
if test "$host_cpu" = ia64; then
13483
# On IA64, the linker does run time linking by default, so we don't
13484
# have to do anything special.
13485
aix_use_runtimelinking=no
13486
exp_sym_flag='-Bexport'
13489
aix_use_runtimelinking=no
13491
# Test if we are trying to use run time linking or normal
13492
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
13493
# need to do runtime linking.
13494
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13495
for ld_flag in $LDFLAGS; do
13498
aix_use_runtimelinking=yes
13506
exp_sym_flag='-bexport'
13507
no_entry_flag='-bnoentry'
13510
# When large executables or shared objects are built, AIX ld can
13511
# have problems creating the table of contents. If linking a library
13512
# or program results in "error TOC overflow" add -mminimal-toc to
13513
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13514
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13516
archive_cmds_CXX=''
13517
hardcode_direct_CXX=yes
13518
hardcode_libdir_separator_CXX=':'
13519
link_all_deplibs_CXX=yes
13521
if test "$GXX" = yes; then
13522
case $host_os in aix4.[012]|aix4.[012].*)
13523
# We only want to do this on AIX 4.2 and lower, the check
13524
# below for broken collect2 doesn't work under 4.3+
13525
collect2name=`${CC} -print-prog-name=collect2`
13526
if test -f "$collect2name" && \
13527
strings "$collect2name" | grep resolve_lib_name >/dev/null
13529
# We have reworked collect2
13532
# We have old collect2
13533
hardcode_direct_CXX=unsupported
13534
# It fails to find uninstalled libraries when the uninstalled
13535
# path is not listed in the libpath. Setting hardcode_minus_L
13536
# to unsupported forces relinking
13537
hardcode_minus_L_CXX=yes
13538
hardcode_libdir_flag_spec_CXX='-L$libdir'
13539
hardcode_libdir_separator_CXX=
13543
shared_flag='-shared'
13544
if test "$aix_use_runtimelinking" = yes; then
13545
shared_flag="$shared_flag "'${wl}-G'
13549
if test "$host_cpu" = ia64; then
13550
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13551
# chokes on -Wl,-G. The following line is correct:
13554
if test "$aix_use_runtimelinking" = yes; then
13555
shared_flag='${wl}-G'
13557
shared_flag='${wl}-bM:SRE'
13562
# It seems that -bexpall does not export symbols beginning with
13563
# underscore (_), so it is better to generate a list of symbols to export.
13564
always_export_symbols_CXX=yes
13565
if test "$aix_use_runtimelinking" = yes; then
13566
# Warning - without using the other runtime loading flags (-brtl),
13567
# -berok will link without error, but may produce a broken library.
13568
allow_undefined_flag_CXX='-berok'
13569
# Determine the default libpath from the value encoded in an empty executable.
13570
cat >conftest.$ac_ext <<_ACEOF
13573
cat confdefs.h >>conftest.$ac_ext
13574
cat >>conftest.$ac_ext <<_ACEOF
13575
/* end confdefs.h. */
13585
rm -f conftest.$ac_objext conftest$ac_exeext
13586
if { (ac_try="$ac_link"
13587
case "(($ac_try" in
13588
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13589
*) ac_try_echo=$ac_try;;
13591
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13592
(eval "$ac_link") 2>conftest.er1
13594
grep -v '^ *+' conftest.er1 >conftest.err
13596
cat conftest.err >&5
13597
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13598
(exit $ac_status); } && {
13599
test -z "$ac_cxx_werror_flag" ||
13600
test ! -s conftest.err
13601
} && test -s conftest$ac_exeext &&
13602
$as_test_x conftest$ac_exeext; then
13604
lt_aix_libpath_sed='
13605
/Import File Strings/,/^$/ {
13611
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13612
# Check for a 64-bit object if we didn't find anything.
13613
if test -z "$aix_libpath"; then
13614
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13617
echo "$as_me: failed program was:" >&5
13618
sed 's/^/| /' conftest.$ac_ext >&5
13623
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13624
conftest$ac_exeext conftest.$ac_ext
13625
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13627
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13629
archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13631
if test "$host_cpu" = ia64; then
13632
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13633
allow_undefined_flag_CXX="-z nodefs"
13634
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
13636
# Determine the default libpath from the value encoded in an empty executable.
13637
cat >conftest.$ac_ext <<_ACEOF
13640
cat confdefs.h >>conftest.$ac_ext
13641
cat >>conftest.$ac_ext <<_ACEOF
13642
/* end confdefs.h. */
13652
rm -f conftest.$ac_objext conftest$ac_exeext
13653
if { (ac_try="$ac_link"
13654
case "(($ac_try" in
13655
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13656
*) ac_try_echo=$ac_try;;
13658
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13659
(eval "$ac_link") 2>conftest.er1
13661
grep -v '^ *+' conftest.er1 >conftest.err
13663
cat conftest.err >&5
13664
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13665
(exit $ac_status); } && {
13666
test -z "$ac_cxx_werror_flag" ||
13667
test ! -s conftest.err
13668
} && test -s conftest$ac_exeext &&
13669
$as_test_x conftest$ac_exeext; then
13671
lt_aix_libpath_sed='
13672
/Import File Strings/,/^$/ {
13678
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13679
# Check for a 64-bit object if we didn't find anything.
13680
if test -z "$aix_libpath"; then
13681
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13684
echo "$as_me: failed program was:" >&5
13685
sed 's/^/| /' conftest.$ac_ext >&5
13690
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13691
conftest$ac_exeext conftest.$ac_ext
13692
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13694
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13695
# Warning - without using the other run time loading flags,
13696
# -berok will link without error, but may produce a broken library.
13697
no_undefined_flag_CXX=' ${wl}-bernotok'
13698
allow_undefined_flag_CXX=' ${wl}-berok'
13699
# Exported symbols can be pulled into shared objects from archives
13700
whole_archive_flag_spec_CXX='$convenience'
13701
archive_cmds_need_lc_CXX=yes
13702
# This is similar to how AIX traditionally builds its shared libraries.
13703
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13709
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13710
allow_undefined_flag_CXX=unsupported
13711
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13712
# support --undefined. This deserves some investigation. FIXME
13713
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13720
case $cc_basename in
13722
# FIXME: insert proper C++ library support
13728
cygwin* | mingw* | pw32*)
13729
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13730
# as there is no search path for DLLs.
13731
hardcode_libdir_flag_spec_CXX='-L$libdir'
13732
allow_undefined_flag_CXX=unsupported
13733
always_export_symbols_CXX=no
13734
enable_shared_with_static_runtimes_CXX=yes
13736
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13737
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13738
# If the export-symbols file already is a .def file (1st line
13739
# is EXPORTS), use it as is; otherwise, prepend...
13740
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13741
cp $export_symbols $output_objdir/$soname.def;
13743
echo EXPORTS > $output_objdir/$soname.def;
13744
cat $export_symbols >> $output_objdir/$soname.def;
13746
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13751
darwin* | rhapsody*)
13752
archive_cmds_need_lc_CXX=no
13753
hardcode_direct_CXX=no
13754
hardcode_automatic_CXX=yes
13755
hardcode_shlibpath_var_CXX=unsupported
13756
whole_archive_flag_spec_CXX=''
13757
link_all_deplibs_CXX=yes
13758
allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13759
if test "$GXX" = yes ; then
13760
output_verbose_link_cmd='echo'
13761
archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13762
module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13763
archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
13764
module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
13765
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13766
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${_lt_dsymutil}"
13767
archive_expsym_cmds_CXX="sed '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${_lt_dar_export_syms}${_lt_dsymutil}"
13770
case $cc_basename in
13772
output_verbose_link_cmd='echo'
13773
archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
13774
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13775
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13776
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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13777
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}'
13787
case $cc_basename in
13789
# FIXME: insert proper C++ library support
13793
# Green Hills C++ Compiler
13794
# FIXME: insert proper C++ library support
13798
# FIXME: insert proper C++ library support
13804
# C++ shared libraries reported to be fairly broken before switch to ELF
13808
archive_cmds_need_lc_CXX=no
13810
freebsd* | dragonfly*)
13811
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13818
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13819
hardcode_libdir_separator_CXX=:
13820
export_dynamic_flag_spec_CXX='${wl}-E'
13821
hardcode_direct_CXX=yes
13822
hardcode_minus_L_CXX=yes # Not in the search PATH,
13823
# but as the default
13824
# location of the library.
13826
case $cc_basename in
13828
# FIXME: insert proper C++ library support
13832
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'
14792
# Check if GNU C++ uses GNU ld as the underlying linker, since the
14793
# archiving commands below assume that GNU ld is being used.
14794
if test "$with_gnu_ld" = yes; then
14795
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14796
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'
14798
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14799
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14801
# If archive_cmds runs LD, not CC, wlarc should be empty
14802
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14803
# investigate it a little bit more. (MM)
14806
# ancient GNU ld didn't support --whole-archive et. al.
14807
if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14808
$GREP 'no-whole-archive' > /dev/null; then
14809
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14811
whole_archive_flag_spec_CXX=
14817
# A generic and very simple default shared library creation
14818
# command for GNU C++ for the case where it uses the native
14819
# linker, instead of GNU ld. If possible, this setting should
14820
# overridden to take advantage of the native linker features on
14821
# the platform it is being used on.
14822
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13833
14825
# Commands to make compiler produce verbose output that lists
13834
14826
# what "hidden" libraries, object files and flags are used when
13835
14827
# linking a shared library.
13837
# There doesn't appear to be a way to prevent this compiler from
13838
# explicitly linking system object files so we need to strip them
13839
# from the output so that they don't get included in the library
13841
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'
13844
if test "$GXX" = yes; then
13845
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'
14828
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14836
# PORTME: fill in a description of your system's C++ link characteristics
14837
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14838
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13847
14842
# FIXME: insert proper C++ library support
13848
14843
ld_shlibs_CXX=no
13854
if test $with_gnu_ld = no; then
13855
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13856
hardcode_libdir_separator_CXX=:
14846
if test "$host_cpu" = ia64; then
14847
# On IA64, the linker does run time linking by default, so we don't
14848
# have to do anything special.
14849
aix_use_runtimelinking=no
14850
exp_sym_flag='-Bexport'
14853
aix_use_runtimelinking=no
14855
# Test if we are trying to use run time linking or normal
14856
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14857
# need to do runtime linking.
14858
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14859
for ld_flag in $LDFLAGS; do
14862
aix_use_runtimelinking=yes
14870
exp_sym_flag='-bexport'
14871
no_entry_flag='-bnoentry'
14874
# When large executables or shared objects are built, AIX ld can
14875
# have problems creating the table of contents. If linking a library
14876
# or program results in "error TOC overflow" add -mminimal-toc to
14877
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14878
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14880
archive_cmds_CXX=''
14881
hardcode_direct_CXX=yes
14882
hardcode_direct_absolute_CXX=yes
14883
hardcode_libdir_separator_CXX=':'
14884
link_all_deplibs_CXX=yes
14885
file_list_spec_CXX='${wl}-f,'
14887
if test "$GXX" = yes; then
14888
case $host_os in aix4.[012]|aix4.[012].*)
14889
# We only want to do this on AIX 4.2 and lower, the check
14890
# below for broken collect2 doesn't work under 4.3+
14891
collect2name=`${CC} -print-prog-name=collect2`
14892
if test -f "$collect2name" &&
14893
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14895
# We have reworked collect2
14898
# We have old collect2
14899
hardcode_direct_CXX=unsupported
14900
# It fails to find uninstalled libraries when the uninstalled
14901
# path is not listed in the libpath. Setting hardcode_minus_L
14902
# to unsupported forces relinking
14903
hardcode_minus_L_CXX=yes
14904
hardcode_libdir_flag_spec_CXX='-L$libdir'
14905
hardcode_libdir_separator_CXX=
14908
shared_flag='-shared'
14909
if test "$aix_use_runtimelinking" = yes; then
14910
shared_flag="$shared_flag "'${wl}-G'
14914
if test "$host_cpu" = ia64; then
14915
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14916
# chokes on -Wl,-G. The following line is correct:
14919
if test "$aix_use_runtimelinking" = yes; then
14920
shared_flag='${wl}-G'
14922
shared_flag='${wl}-bM:SRE'
14927
export_dynamic_flag_spec_CXX='${wl}-bexpall'
14928
# It seems that -bexpall does not export symbols beginning with
14929
# underscore (_), so it is better to generate a list of symbols to
14931
always_export_symbols_CXX=yes
14932
if test "$aix_use_runtimelinking" = yes; then
14933
# Warning - without using the other runtime loading flags (-brtl),
14934
# -berok will link without error, but may produce a broken library.
14935
allow_undefined_flag_CXX='-berok'
14936
# Determine the default libpath from the value encoded in an empty
14938
cat >conftest.$ac_ext <<_ACEOF
14941
cat confdefs.h >>conftest.$ac_ext
14942
cat >>conftest.$ac_ext <<_ACEOF
14943
/* end confdefs.h. */
14953
rm -f conftest.$ac_objext conftest$ac_exeext
14954
if { (ac_try="$ac_link"
14955
case "(($ac_try" in
14956
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14957
*) ac_try_echo=$ac_try;;
14959
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14960
$as_echo "$ac_try_echo") >&5
14961
(eval "$ac_link") 2>conftest.er1
14963
grep -v '^ *+' conftest.er1 >conftest.err
14965
cat conftest.err >&5
14966
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14967
(exit $ac_status); } && {
14968
test -z "$ac_cxx_werror_flag" ||
14969
test ! -s conftest.err
14970
} && test -s conftest$ac_exeext && {
14971
test "$cross_compiling" = yes ||
14972
$as_test_x conftest$ac_exeext
14975
lt_aix_libpath_sed='
14976
/Import File Strings/,/^$/ {
14982
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14983
# Check for a 64-bit object if we didn't find anything.
14984
if test -z "$aix_libpath"; then
14985
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14988
$as_echo "$as_me: failed program was:" >&5
14989
sed 's/^/| /' conftest.$ac_ext >&5
14994
rm -rf conftest.dSYM
14995
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14996
conftest$ac_exeext conftest.$ac_ext
14997
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14999
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15001
archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15003
if test "$host_cpu" = ia64; then
15004
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15005
allow_undefined_flag_CXX="-z nodefs"
15006
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
15008
# Determine the default libpath from the value encoded in an
15009
# empty executable.
15010
cat >conftest.$ac_ext <<_ACEOF
15013
cat confdefs.h >>conftest.$ac_ext
15014
cat >>conftest.$ac_ext <<_ACEOF
15015
/* end confdefs.h. */
15025
rm -f conftest.$ac_objext conftest$ac_exeext
15026
if { (ac_try="$ac_link"
15027
case "(($ac_try" in
15028
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15029
*) ac_try_echo=$ac_try;;
15031
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15032
$as_echo "$ac_try_echo") >&5
15033
(eval "$ac_link") 2>conftest.er1
15035
grep -v '^ *+' conftest.er1 >conftest.err
15037
cat conftest.err >&5
15038
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039
(exit $ac_status); } && {
15040
test -z "$ac_cxx_werror_flag" ||
15041
test ! -s conftest.err
15042
} && test -s conftest$ac_exeext && {
15043
test "$cross_compiling" = yes ||
15044
$as_test_x conftest$ac_exeext
15047
lt_aix_libpath_sed='
15048
/Import File Strings/,/^$/ {
15054
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15055
# Check for a 64-bit object if we didn't find anything.
15056
if test -z "$aix_libpath"; then
15057
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15060
$as_echo "$as_me: failed program was:" >&5
15061
sed 's/^/| /' conftest.$ac_ext >&5
15066
rm -rf conftest.dSYM
15067
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15068
conftest$ac_exeext conftest.$ac_ext
15069
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15071
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15072
# Warning - without using the other run time loading flags,
15073
# -berok will link without error, but may produce a broken library.
15074
no_undefined_flag_CXX=' ${wl}-bernotok'
15075
allow_undefined_flag_CXX=' ${wl}-berok'
15076
# Exported symbols can be pulled into shared objects from archives
15077
whole_archive_flag_spec_CXX='$convenience'
15078
archive_cmds_need_lc_CXX=yes
15079
# This is similar to how AIX traditionally builds its shared
15081
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15087
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15088
allow_undefined_flag_CXX=unsupported
15089
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15090
# support --undefined. This deserves some investigation. FIXME
15091
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15098
case $cc_basename in
15100
# FIXME: insert proper C++ library support
15106
cygwin* | mingw* | pw32* | cegcc*)
15107
# _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15108
# as there is no search path for DLLs.
15109
hardcode_libdir_flag_spec_CXX='-L$libdir'
15110
allow_undefined_flag_CXX=unsupported
15111
always_export_symbols_CXX=no
15112
enable_shared_with_static_runtimes_CXX=yes
15114
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15115
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15116
# If the export-symbols file already is a .def file (1st line
15117
# is EXPORTS), use it as is; otherwise, prepend...
15118
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15119
cp $export_symbols $output_objdir/$soname.def;
15121
echo EXPORTS > $output_objdir/$soname.def;
15122
cat $export_symbols >> $output_objdir/$soname.def;
15124
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15129
darwin* | rhapsody*)
15132
archive_cmds_need_lc_CXX=no
15133
hardcode_direct_CXX=no
15134
hardcode_automatic_CXX=yes
15135
hardcode_shlibpath_var_CXX=unsupported
15136
whole_archive_flag_spec_CXX=''
15137
link_all_deplibs_CXX=yes
15138
allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
15139
case $cc_basename in
15140
ifort*) _lt_dar_can_shared=yes ;;
15141
*) _lt_dar_can_shared=$GCC ;;
15143
if test "$_lt_dar_can_shared" = "yes"; then
15144
output_verbose_link_cmd=echo
15145
archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15146
module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15147
archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15148
module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15149
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
15150
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${_lt_dsymutil}"
15151
archive_expsym_cmds_CXX="sed '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${_lt_dar_export_syms}${_lt_dsymutil}"
15161
case $cc_basename in
15163
# FIXME: insert proper C++ library support
15167
# Green Hills C++ Compiler
15168
# FIXME: insert proper C++ library support
15172
# FIXME: insert proper C++ library support
15179
# C++ shared libraries reported to be fairly broken before
15185
archive_cmds_need_lc_CXX=no
15188
freebsd* | dragonfly*)
15189
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15198
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15199
hardcode_libdir_separator_CXX=:
15200
export_dynamic_flag_spec_CXX='${wl}-E'
15201
hardcode_direct_CXX=yes
15202
hardcode_minus_L_CXX=yes # Not in the search PATH,
15203
# but as the default
15204
# location of the library.
15206
case $cc_basename in
15208
# FIXME: insert proper C++ library support
15212
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'
15213
# Commands to make compiler produce verbose output that lists
15214
# what "hidden" libraries, object files and flags are used when
15215
# linking a shared library.
15217
# There doesn't appear to be a way to prevent this compiler from
15218
# explicitly linking system object files so we need to strip them
15219
# from the output so that they don't get included in the library
15221
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
15224
if test "$GXX" = yes; then
15225
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'
15227
# FIXME: insert proper C++ library support
15235
if test $with_gnu_ld = no; then
15236
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15237
hardcode_libdir_separator_CXX=:
15243
export_dynamic_flag_spec_CXX='${wl}-E'
15249
hardcode_direct_CXX=no
15250
hardcode_shlibpath_var_CXX=no
15253
hardcode_direct_CXX=yes
15254
hardcode_direct_absolute_CXX=yes
15255
hardcode_minus_L_CXX=yes # Not in the search PATH,
15256
# but as the default
15257
# location of the library.
15261
case $cc_basename in
15263
# FIXME: insert proper C++ library support
15269
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15272
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15275
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15278
# Commands to make compiler produce verbose output that lists
15279
# what "hidden" libraries, object files and flags are used when
15280
# linking a shared library.
15282
# There doesn't appear to be a way to prevent this compiler from
15283
# explicitly linking system object files so we need to strip them
15284
# from the output so that they don't get included in the library
15286
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 "X$list" | $Xsed'
15289
if test "$GXX" = yes; then
15290
if test $with_gnu_ld = no; then
15293
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15296
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15299
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'
15304
# FIXME: insert proper C++ library support
15312
hardcode_direct_CXX=no
15313
hardcode_shlibpath_var_CXX=no
15314
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13861
15315
export_dynamic_flag_spec_CXX='${wl}-E'
13867
hardcode_direct_CXX=no
15316
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15317
# Instead, shared libraries are loaded at an image base (0x10000000 by
15318
# default) and relocated if they conflict, which is a slow very memory
15319
# consuming and fragmenting process. To avoid this, we pick a random,
15320
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15321
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
15322
archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15323
archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15326
case $cc_basename in
15329
archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
15331
# Archives containing C++ object files must be created using
15332
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
15333
# necessary to make sure instantiated templates are included
15335
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15338
if test "$GXX" = yes; then
15339
if test "$with_gnu_ld" = no; then
15340
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15342
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
15345
link_all_deplibs_CXX=yes
15348
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15349
hardcode_libdir_separator_CXX=:
15350
inherit_rpath_CXX=yes
15353
linux* | k*bsd*-gnu)
15354
case $cc_basename in
15356
# Kuck and Associates, Inc. (KAI) C++ Compiler
15358
# KCC will only create a shared library if the output file
15359
# ends with ".so" (or ".sl" for HP-UX), so rename the library
15360
# to its proper name (with version) after linking.
15361
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'
15362
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'
15363
# Commands to make compiler produce verbose output that lists
15364
# what "hidden" libraries, object files and flags are used when
15365
# linking a shared library.
15367
# There doesn't appear to be a way to prevent this compiler from
15368
# explicitly linking system object files so we need to strip them
15369
# from the output so that they don't get included in the library
15371
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 "X$list" | $Xsed'
15373
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15374
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15376
# Archives containing C++ object files must be created using
15377
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
15378
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15383
# version 8.0 and above of icpc choke on multiply defined symbols
15384
# if we add $predep_objects and $postdep_objects, however 7.1 and
15385
# earlier do not add the objects themselves.
15386
case `$CC -V 2>&1` in
15388
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15389
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'
15391
*) # Version 8.0 or newer
15394
ia64*) tmp_idyn=' -i_dynamic';;
15396
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15397
archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15400
archive_cmds_need_lc_CXX=no
15401
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15402
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15403
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15406
# Portland Group C++ compiler
15408
*pgCC\ [1-5]* | *pgcpp\ [1-5]*)
15409
prelink_cmds_CXX='tpldir=Template.dir~
15411
$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15412
compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
15413
old_archive_cmds_CXX='tpldir=Template.dir~
15415
$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15416
$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
15418
archive_cmds_CXX='tpldir=Template.dir~
15420
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15421
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15422
archive_expsym_cmds_CXX='tpldir=Template.dir~
15424
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15425
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
15427
*) # Version 6 will use weak symbols
15428
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15429
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
15433
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15434
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15435
whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
15439
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15440
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'
15442
runpath_var=LD_RUN_PATH
15443
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15444
hardcode_libdir_separator_CXX=:
15446
# Commands to make compiler produce verbose output that lists
15447
# what "hidden" libraries, object files and flags are used when
15448
# linking a shared library.
15450
# There doesn't appear to be a way to prevent this compiler from
15451
# explicitly linking system object files so we need to strip them
15452
# from the output so that they don't get included in the library
15454
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
15457
# IBM XL 8.0 on PPC, with GNU ld
15458
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15459
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15460
archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15461
if test "x$supports_anon_versioning" = xyes; then
15462
archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15463
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15464
echo "local: *; };" >> $output_objdir/$libname.ver~
15465
$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15469
case `$CC -V 2>&1 | sed 5q` in
15472
no_undefined_flag_CXX=' -zdefs'
15473
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15474
archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
15475
hardcode_libdir_flag_spec_CXX='-R$libdir'
15476
whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
15477
compiler_needs_object_CXX=yes
15479
# Not sure whether something based on
15480
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15482
output_verbose_link_cmd='echo'
15484
# Archives containing C++ object files must be created using
15485
# "CC -xar", where "CC" is the Sun C++ compiler. This is
15486
# necessary to make sure instantiated templates are included
15488
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15496
# FIXME: insert proper C++ library support
15501
# FIXME: insert proper C++ library support
15506
case $cc_basename in
15508
# FIXME: insert proper C++ library support
15512
# FIXME: insert proper C++ library support
15519
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15520
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15522
hardcode_libdir_flag_spec_CXX='-R$libdir'
15523
hardcode_direct_CXX=yes
15524
hardcode_shlibpath_var_CXX=no
15526
# Workaround some broken pre-1.5 toolchains
15527
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15535
# C++ shared libraries are fairly broken
15540
if test -f /usr/libexec/ld.so; then
15541
hardcode_direct_CXX=yes
15542
hardcode_shlibpath_var_CXX=no
15543
hardcode_direct_absolute_CXX=yes
15544
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15545
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15546
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15547
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15548
export_dynamic_flag_spec_CXX='${wl}-E'
15549
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15551
output_verbose_link_cmd=echo
15557
osf3* | osf4* | osf5*)
15558
case $cc_basename in
15560
# Kuck and Associates, Inc. (KAI) C++ Compiler
15562
# KCC will only create a shared library if the output file
15563
# ends with ".so" (or ".sl" for HP-UX), so rename the library
15564
# to its proper name (with version) after linking.
15565
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'
15567
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15568
hardcode_libdir_separator_CXX=:
15570
# Archives containing C++ object files must be created using
15571
# the KAI C++ compiler.
15573
osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15574
*) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15578
# Rational C++ 2.4.1
15579
# FIXME: insert proper C++ library support
15585
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15586
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
15587
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15590
allow_undefined_flag_CXX=' -expect_unresolved \*'
15591
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
15592
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15593
echo "-hidden">> $lib.exp~
15594
$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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
15596
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15600
hardcode_libdir_separator_CXX=:
15602
# Commands to make compiler produce verbose output that lists
15603
# what "hidden" libraries, object files and flags are used when
15604
# linking a shared library.
15606
# There doesn't appear to be a way to prevent this compiler from
15607
# explicitly linking system object files so we need to strip them
15608
# from the output so that they don't get included in the library
15610
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
15613
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15614
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15617
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 "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15620
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" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15624
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15625
hardcode_libdir_separator_CXX=:
15627
# Commands to make compiler produce verbose output that lists
15628
# what "hidden" libraries, object files and flags are used when
15629
# linking a shared library.
15630
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15633
# FIXME: insert proper C++ library support
15641
# FIXME: insert proper C++ library support
15646
case $cc_basename in
15649
# FIXME: insert proper C++ library support
15654
# FIXME: insert proper C++ library support
15658
# FIXME: insert proper C++ library support
15665
case $cc_basename in
15667
# Sun C++ 4.2, 5.x and Centerline C++
15668
archive_cmds_need_lc_CXX=yes
15669
no_undefined_flag_CXX=' -zdefs'
15670
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15671
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15672
$CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15674
hardcode_libdir_flag_spec_CXX='-R$libdir'
15675
hardcode_shlibpath_var_CXX=no
15677
solaris2.[0-5] | solaris2.[0-5].*) ;;
15679
# The compiler driver will combine and reorder linker options,
15680
# but understands `-z linker_flag'.
15681
# Supported since Solaris 2.6 (maybe 2.5.1?)
15682
whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15685
link_all_deplibs_CXX=yes
15687
output_verbose_link_cmd='echo'
15689
# Archives containing C++ object files must be created using
15690
# "CC -xar", where "CC" is the Sun C++ compiler. This is
15691
# necessary to make sure instantiated templates are included
15693
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15696
# Green Hills C++ Compiler
15697
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15699
# The C++ compiler must be used to create the archive.
15700
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15703
# GNU C++ compiler with Solaris linker
15704
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15705
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
15706
if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15707
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15708
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15709
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15711
# Commands to make compiler produce verbose output that lists
15712
# what "hidden" libraries, object files and flags are used when
15713
# linking a shared library.
15714
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15716
# g++ 2.7 appears to require `-G' NOT `-shared' on this
15718
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15719
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15720
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15722
# Commands to make compiler produce verbose output that lists
15723
# what "hidden" libraries, object files and flags are used when
15724
# linking a shared library.
15725
output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15728
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
15730
solaris2.[0-5] | solaris2.[0-5].*) ;;
15732
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15740
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15741
no_undefined_flag_CXX='${wl}-z,text'
15742
archive_cmds_need_lc_CXX=no
13868
15743
hardcode_shlibpath_var_CXX=no
13871
hardcode_direct_CXX=yes
13872
hardcode_minus_L_CXX=yes # Not in the search PATH,
13873
# but as the default
13874
# location of the library.
15744
runpath_var='LD_RUN_PATH'
13878
case $cc_basename in
13880
# FIXME: insert proper C++ library support
13886
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13889
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15746
case $cc_basename in
15748
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15749
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13892
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13895
# Commands to make compiler produce verbose output that lists
13896
# what "hidden" libraries, object files and flags are used when
13897
# linking a shared library.
13899
# There doesn't appear to be a way to prevent this compiler from
13900
# explicitly linking system object files so we need to strip them
13901
# from the output so that they don't get included in the library
13903
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'
13906
if test "$GXX" = yes; then
13907
if test $with_gnu_ld = no; then
13910
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13913
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13916
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'
13921
# FIXME: insert proper C++ library support
13928
hardcode_direct_CXX=no
13929
hardcode_shlibpath_var_CXX=no
13930
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13931
export_dynamic_flag_spec_CXX='${wl}-E'
13932
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13933
# Instead, shared libraries are loaded at an image base (0x10000000 by
13934
# default) and relocated if they conflict, which is a slow very memory
13935
# consuming and fragmenting process. To avoid this, we pick a random,
13936
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13937
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
13938
archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13939
archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13942
case $cc_basename in
13945
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 ${output_objdir}/so_locations -o $lib'
13947
# Archives containing C++ object files must be created using
13948
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
13949
# necessary to make sure instantiated templates are included
13951
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13954
if test "$GXX" = yes; then
13955
if test "$with_gnu_ld" = no; then
13956
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}${output_objdir}/so_locations -o $lib'
13958
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'
13961
link_all_deplibs_CXX=yes
13964
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13965
hardcode_libdir_separator_CXX=:
13967
linux* | k*bsd*-gnu)
13968
case $cc_basename in
13970
# Kuck and Associates, Inc. (KAI) C++ Compiler
13972
# KCC will only create a shared library if the output file
13973
# ends with ".so" (or ".sl" for HP-UX), so rename the library
13974
# to its proper name (with version) after linking.
13975
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'
13976
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'
13977
# Commands to make compiler produce verbose output that lists
13978
# what "hidden" libraries, object files and flags are used when
13979
# linking a shared library.
13981
# There doesn't appear to be a way to prevent this compiler from
13982
# explicitly linking system object files so we need to strip them
13983
# from the output so that they don't get included in the library
13985
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'
13987
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
13988
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13990
# Archives containing C++ object files must be created using
13991
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
13992
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13997
# version 8.0 and above of icpc choke on multiply defined symbols
13998
# if we add $predep_objects and $postdep_objects, however 7.1 and
13999
# earlier do not add the objects themselves.
14000
case `$CC -V 2>&1` in
14002
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14003
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'
14005
*) # Version 8.0 or newer
14008
ia64*) tmp_idyn=' -i_dynamic';;
14010
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14011
archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15752
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15753
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15758
sysv5* | sco3.2v5* | sco5v6*)
15759
# Note: We can NOT use -z defs as we might desire, because we do not
15760
# link with -lc, and that would cause any symbols used from libc to
15761
# always be unresolved, which means just about no library would
15762
# ever link correctly. If we're not using GNU ld we use -z text
15763
# though, which does catch some bad symbols but isn't as heavy-handed
15765
no_undefined_flag_CXX='${wl}-z,text'
15766
allow_undefined_flag_CXX='${wl}-z,nodefs'
14014
15767
archive_cmds_need_lc_CXX=no
14015
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14016
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14017
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14020
# Portland Group C++ compiler
14021
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14022
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14024
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14025
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14026
whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14030
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14031
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'
14033
runpath_var=LD_RUN_PATH
14034
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14035
hardcode_libdir_separator_CXX=:
14037
# Commands to make compiler produce verbose output that lists
14038
# what "hidden" libraries, object files and flags are used when
14039
# linking a shared library.
14041
# There doesn't appear to be a way to prevent this compiler from
14042
# explicitly linking system object files so we need to strip them
14043
# from the output so that they don't get included in the library
14045
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'
14048
case `$CC -V 2>&1 | sed 5q` in
14051
no_undefined_flag_CXX=' -zdefs'
14052
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14053
archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
14054
hardcode_libdir_flag_spec_CXX='-R$libdir'
14055
whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14057
# Not sure whether something based on
14058
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14060
output_verbose_link_cmd='echo'
14062
# Archives containing C++ object files must be created using
14063
# "CC -xar", where "CC" is the Sun C++ compiler. This is
14064
# necessary to make sure instantiated templates are included
14066
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14073
# FIXME: insert proper C++ library support
14077
# FIXME: insert proper C++ library support
14081
case $cc_basename in
14083
# FIXME: insert proper C++ library support
14087
# FIXME: insert proper C++ library support
14092
netbsd* | netbsdelf*-gnu)
14093
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14094
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14096
hardcode_libdir_flag_spec_CXX='-R$libdir'
14097
hardcode_direct_CXX=yes
14098
hardcode_shlibpath_var_CXX=no
14100
# Workaround some broken pre-1.5 toolchains
14101
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14104
# C++ shared libraries are fairly broken
14108
if test -f /usr/libexec/ld.so; then
14109
hardcode_direct_CXX=yes
14110
hardcode_shlibpath_var_CXX=no
14111
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14112
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14113
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14114
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14115
export_dynamic_flag_spec_CXX='${wl}-E'
14116
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14118
output_verbose_link_cmd='echo'
14124
case $cc_basename in
14126
# Kuck and Associates, Inc. (KAI) C++ Compiler
14128
# KCC will only create a shared library if the output file
14129
# ends with ".so" (or ".sl" for HP-UX), so rename the library
14130
# to its proper name (with version) after linking.
14131
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'
14133
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14134
hardcode_libdir_separator_CXX=:
14136
# Archives containing C++ object files must be created using
14137
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
14138
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14142
# Rational C++ 2.4.1
14143
# FIXME: insert proper C++ library support
14147
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14148
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 ${output_objdir}/so_locations -o $lib'
14150
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14151
hardcode_libdir_separator_CXX=:
14153
# Commands to make compiler produce verbose output that lists
14154
# what "hidden" libraries, object files and flags are used when
14155
# linking a shared library.
14157
# There doesn't appear to be a way to prevent this compiler from
14158
# explicitly linking system object files so we need to strip them
14159
# from the output so that they don't get included in the library
14161
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'
14164
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14165
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14166
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}${output_objdir}/so_locations -o $lib'
14168
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14169
hardcode_libdir_separator_CXX=:
14171
# Commands to make compiler produce verbose output that lists
14172
# what "hidden" libraries, object files and flags are used when
14173
# linking a shared library.
14174
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
14177
# FIXME: insert proper C++ library support
14184
case $cc_basename in
14186
# Kuck and Associates, Inc. (KAI) C++ Compiler
14188
# KCC will only create a shared library if the output file
14189
# ends with ".so" (or ".sl" for HP-UX), so rename the library
14190
# to its proper name (with version) after linking.
14191
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'
14193
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14194
hardcode_libdir_separator_CXX=:
14196
# Archives containing C++ object files must be created using
14197
# the KAI C++ compiler.
14198
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
14201
# Rational C++ 2.4.1
14202
# FIXME: insert proper C++ library support
14206
allow_undefined_flag_CXX=' -expect_unresolved \*'
14207
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 ${output_objdir}/so_locations -o $lib'
14208
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14209
echo "-hidden">> $lib.exp~
14210
$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 ${output_objdir}/so_locations -o $lib~
14213
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14214
hardcode_libdir_separator_CXX=:
14216
# Commands to make compiler produce verbose output that lists
14217
# what "hidden" libraries, object files and flags are used when
14218
# linking a shared library.
14220
# There doesn't appear to be a way to prevent this compiler from
14221
# explicitly linking system object files so we need to strip them
14222
# from the output so that they don't get included in the library
14224
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'
14227
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14228
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14229
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}${output_objdir}/so_locations -o $lib'
14231
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14232
hardcode_libdir_separator_CXX=:
14234
# Commands to make compiler produce verbose output that lists
14235
# what "hidden" libraries, object files and flags are used when
14236
# linking a shared library.
14237
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
14240
# FIXME: insert proper C++ library support
14247
# FIXME: insert proper C++ library support
14251
case $cc_basename in
14254
# FIXME: insert proper C++ library support
14259
# FIXME: insert proper C++ library support
14263
# FIXME: insert proper C++ library support
14269
case $cc_basename in
14271
# Sun C++ 4.2, 5.x and Centerline C++
14272
archive_cmds_need_lc_CXX=yes
14273
no_undefined_flag_CXX=' -zdefs'
14274
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14275
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14276
$CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
14278
hardcode_libdir_flag_spec_CXX='-R$libdir'
14279
15768
hardcode_shlibpath_var_CXX=no
14281
solaris2.[0-5] | solaris2.[0-5].*) ;;
14283
# The compiler driver will combine and reorder linker options,
14284
# but understands `-z linker_flag'.
14285
# Supported since Solaris 2.6 (maybe 2.5.1?)
14286
whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15769
hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
15770
hardcode_libdir_separator_CXX=':'
14289
15771
link_all_deplibs_CXX=yes
14291
output_verbose_link_cmd='echo'
14293
# Archives containing C++ object files must be created using
14294
# "CC -xar", where "CC" is the Sun C++ compiler. This is
14295
# necessary to make sure instantiated templates are included
14297
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14300
# Green Hills C++ Compiler
14301
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14303
# The C++ compiler must be used to create the archive.
14304
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14307
# GNU C++ compiler with Solaris linker
14308
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14309
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14310
if $CC --version | grep -v '^2\.7' > /dev/null; then
14311
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14312
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14313
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
14315
# Commands to make compiler produce verbose output that lists
14316
# what "hidden" libraries, object files and flags are used when
14317
# linking a shared library.
14318
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
14320
# g++ 2.7 appears to require `-G' NOT `-shared' on this
14322
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14323
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14324
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
14326
# Commands to make compiler produce verbose output that lists
14327
# what "hidden" libraries, object files and flags are used when
14328
# linking a shared library.
14329
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
14332
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14334
solaris2.[0-5] | solaris2.[0-5].*) ;;
15772
export_dynamic_flag_spec_CXX='${wl}-Bexport'
15773
runpath_var='LD_RUN_PATH'
15775
case $cc_basename in
15777
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15778
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14336
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14343
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14344
no_undefined_flag_CXX='${wl}-z,text'
14345
archive_cmds_need_lc_CXX=no
14346
hardcode_shlibpath_var_CXX=no
14347
runpath_var='LD_RUN_PATH'
14349
case $cc_basename in
14351
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14352
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14355
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14356
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14360
sysv5* | sco3.2v5* | sco5v6*)
14361
# Note: We can NOT use -z defs as we might desire, because we do not
14362
# link with -lc, and that would cause any symbols used from libc to
14363
# always be unresolved, which means just about no library would
14364
# ever link correctly. If we're not using GNU ld we use -z text
14365
# though, which does catch some bad symbols but isn't as heavy-handed
14367
# For security reasons, it is highly recommended that you always
14368
# use absolute paths for naming shared libraries, and exclude the
14369
# DT_RUNPATH tag from executables and libraries. But doing so
14370
# requires that you compile everything twice, which is a pain.
14371
# So that behaviour is only enabled if SCOABSPATH is set to a
14372
# non-empty value in the environment. Most likely only useful for
14373
# creating official distributions of packages.
14374
# This is a hack until libtool officially supports absolute path
14375
# names for shared libraries.
14376
no_undefined_flag_CXX='${wl}-z,text'
14377
allow_undefined_flag_CXX='${wl}-z,nodefs'
14378
archive_cmds_need_lc_CXX=no
14379
hardcode_shlibpath_var_CXX=no
14380
hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14381
hardcode_libdir_separator_CXX=':'
14382
link_all_deplibs_CXX=yes
14383
export_dynamic_flag_spec_CXX='${wl}-Bexport'
14384
runpath_var='LD_RUN_PATH'
14386
case $cc_basename in
14388
archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14389
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14392
archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14393
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14398
case $cc_basename in
14400
# NonStop-UX NCC 3.20
14401
# FIXME: insert proper C++ library support
14405
# FIXME: insert proper C++ library support
14411
# FIXME: insert proper C++ library support
14415
# FIXME: insert proper C++ library support
14419
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14420
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14421
test "$ld_shlibs_CXX" = no && can_build_shared=no
14426
cat > conftest.$ac_ext <<EOF
15781
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15782
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15788
case $cc_basename in
15790
# NonStop-UX NCC 3.20
15791
# FIXME: insert proper C++ library support
15795
# FIXME: insert proper C++ library support
15802
# FIXME: insert proper C++ library support
15807
# FIXME: insert proper C++ library support
15812
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15813
$as_echo "$ld_shlibs_CXX" >&6; }
15814
test "$ld_shlibs_CXX" = no && can_build_shared=no
15820
## There is no encapsulation within the following macros, do not change
15821
## the running order or otherwise move them around unless you know exactly
15822
## what you are doing...
15823
# Dependencies to place before and after the object being linked:
15824
predep_objects_CXX=
15825
postdep_objects_CXX=
15828
compiler_lib_search_path_CXX=
15830
cat > conftest.$ac_ext <<_LT_EOF
15765
17458
# directories.
15766
17459
hardcode_action_CXX=unsupported
15768
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15769
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15771
if test "$hardcode_action_CXX" = relink; then
15772
# Fast installation is not supported
15773
enable_fast_install=no
15774
elif test "$shlibpath_overrides_runpath" = yes ||
15775
test "$enable_shared" = no; then
15776
# Fast installation is not necessary
15777
enable_fast_install=needless
15781
# The else clause should only fire when bootstrapping the
15782
# libtool distribution, otherwise you forgot to ship ltmain.sh
15783
# with your package, and you will get complaints that there are
15784
# no rules to generate ltmain.sh.
15785
if test -f "$ltmain"; then
15786
# See if we are running on zsh, and set the options which allow our commands through
15787
# without removal of \ escapes.
15788
if test -n "${ZSH_VERSION+set}" ; then
15789
setopt NO_GLOB_SUBST
15791
# Now quote all the things that may contain metacharacters while being
15792
# careful not to overquote the AC_SUBSTed values. We take copies of the
15793
# variables and quote the copies for generation of the libtool script.
15794
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15796
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15797
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15798
deplibs_check_method reload_flag reload_cmds need_locks \
15799
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15800
lt_cv_sys_global_symbol_to_c_name_address \
15801
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15802
old_postinstall_cmds old_postuninstall_cmds \
15806
lt_prog_compiler_wl_CXX \
15807
lt_prog_compiler_pic_CXX \
15808
lt_prog_compiler_static_CXX \
15809
lt_prog_compiler_no_builtin_flag_CXX \
15810
export_dynamic_flag_spec_CXX \
15811
thread_safe_flag_spec_CXX \
15812
whole_archive_flag_spec_CXX \
15813
enable_shared_with_static_runtimes_CXX \
15814
old_archive_cmds_CXX \
15815
old_archive_from_new_cmds_CXX \
15816
predep_objects_CXX \
15817
postdep_objects_CXX \
15820
compiler_lib_search_path_CXX \
15821
compiler_lib_search_dirs_CXX \
15823
archive_expsym_cmds_CXX \
15824
postinstall_cmds_CXX \
15825
postuninstall_cmds_CXX \
15826
old_archive_from_expsyms_cmds_CXX \
15827
allow_undefined_flag_CXX \
15828
no_undefined_flag_CXX \
15829
export_symbols_cmds_CXX \
15830
hardcode_libdir_flag_spec_CXX \
15831
hardcode_libdir_flag_spec_ld_CXX \
15832
hardcode_libdir_separator_CXX \
15833
hardcode_automatic_CXX \
15835
module_expsym_cmds_CXX \
15836
lt_cv_prog_compiler_c_o_CXX \
15837
fix_srcfile_path_CXX \
15838
exclude_expsyms_CXX \
15839
include_expsyms_CXX; do
15842
old_archive_cmds_CXX | \
15843
old_archive_from_new_cmds_CXX | \
15844
archive_cmds_CXX | \
15845
archive_expsym_cmds_CXX | \
15846
module_cmds_CXX | \
15847
module_expsym_cmds_CXX | \
15848
old_archive_from_expsyms_cmds_CXX | \
15849
export_symbols_cmds_CXX | \
15850
extract_expsyms_cmds | reload_cmds | finish_cmds | \
15851
postinstall_cmds | postuninstall_cmds | \
15852
old_postinstall_cmds | old_postuninstall_cmds | \
15853
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15854
# Double-quote double-evaled strings.
15855
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15858
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15864
*'\$0 --fallback-echo"')
15865
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15871
cat <<__EOF__ >> "$cfgfile"
15872
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15874
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15876
# Shell to use when invoking shell scripts.
15879
# Whether or not to build shared libraries.
15880
build_libtool_libs=$enable_shared
15882
# Whether or not to build static libraries.
15883
build_old_libs=$enable_static
15885
# Whether or not to add -lc for building shared libraries.
15886
build_libtool_need_lc=$archive_cmds_need_lc_CXX
15888
# Whether or not to disallow shared libs when runtime libs are static
15889
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
15891
# Whether or not to optimize for fast installation.
15892
fast_install=$enable_fast_install
15895
host_alias=$host_alias
15899
# The build system.
15900
build_alias=$build_alias
15904
# An echo program that does not interpret backslashes.
15909
AR_FLAGS=$lt_AR_FLAGS
15914
# LTCC compiler flags.
15915
LTCFLAGS=$lt_LTCFLAGS
15917
# A language-specific compiler.
15918
CC=$lt_compiler_CXX
15920
# Is the compiler the GNU C compiler?
15926
# The linker used to build libraries.
15929
# Whether we need hard or soft links.
15932
# A BSD-compatible nm program.
15935
# A symbol stripping program
15938
# Used to examine libraries when file_magic_cmd begins "file"
15939
MAGIC_CMD=$MAGIC_CMD
15941
# Used on cygwin: DLL creation program.
15944
# Used on cygwin: object dumper.
15947
# Used on cygwin: assembler.
15950
# The name of the directory that contains temporary libtool files.
15953
# How to create reloadable object files.
15954
reload_flag=$lt_reload_flag
15955
reload_cmds=$lt_reload_cmds
15957
# How to pass a linker flag through the compiler.
15958
wl=$lt_lt_prog_compiler_wl_CXX
15960
# Object file suffix (normally "o").
15961
objext="$ac_objext"
15963
# Old archive suffix (normally "a").
15966
# Shared library suffix (normally ".so").
15967
shrext_cmds='$shrext_cmds'
15969
# Executable file suffix (normally "").
15972
# Additional compiler flags for building library objects.
15973
pic_flag=$lt_lt_prog_compiler_pic_CXX
15976
# What is the maximum length of a command?
15977
max_cmd_len=$lt_cv_sys_max_cmd_len
15979
# Does compiler simultaneously support -c and -o options?
15980
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15982
# Must we lock files when doing compilation?
15983
need_locks=$lt_need_locks
15985
# Do we need the lib prefix for modules?
15986
need_lib_prefix=$need_lib_prefix
15988
# Do we need a version for libraries?
15989
need_version=$need_version
15991
# Whether dlopen is supported.
15992
dlopen_support=$enable_dlopen
15994
# Whether dlopen of programs is supported.
15995
dlopen_self=$enable_dlopen_self
15997
# Whether dlopen of statically linked programs is supported.
15998
dlopen_self_static=$enable_dlopen_self_static
16000
# Compiler flag to prevent dynamic linking.
16001
link_static_flag=$lt_lt_prog_compiler_static_CXX
16003
# Compiler flag to turn off builtin functions.
16004
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
16006
# Compiler flag to allow reflexive dlopens.
16007
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
16009
# Compiler flag to generate shared objects directly from archives.
16010
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
16012
# Compiler flag to generate thread-safe objects.
16013
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
16015
# Library versioning type.
16016
version_type=$version_type
16018
# Format of library name prefix.
16019
libname_spec=$lt_libname_spec
16021
# List of archive names. First name is the real one, the rest are links.
16022
# The last name is the one that the linker finds with -lNAME.
16023
library_names_spec=$lt_library_names_spec
16025
# The coded name of the library, if different from the real name.
16026
soname_spec=$lt_soname_spec
16028
# Commands used to build and install an old-style archive.
16030
old_archive_cmds=$lt_old_archive_cmds_CXX
16031
old_postinstall_cmds=$lt_old_postinstall_cmds
16032
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16034
# Create an old-style archive from a shared archive.
16035
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
16037
# Create a temporary old-style archive to link instead of a shared archive.
16038
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
16040
# Commands used to build and install a shared archive.
16041
archive_cmds=$lt_archive_cmds_CXX
16042
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
16043
postinstall_cmds=$lt_postinstall_cmds
16044
postuninstall_cmds=$lt_postuninstall_cmds
16046
# Commands used to build a loadable module (assumed same as above if empty)
16047
module_cmds=$lt_module_cmds_CXX
16048
module_expsym_cmds=$lt_module_expsym_cmds_CXX
16050
# Commands to strip libraries.
16051
old_striplib=$lt_old_striplib
16052
striplib=$lt_striplib
16054
# Dependencies to place before the objects being linked to create a
16056
predep_objects=$lt_predep_objects_CXX
16058
# Dependencies to place after the objects being linked to create a
16060
postdep_objects=$lt_postdep_objects_CXX
16062
# Dependencies to place before the objects being linked to create a
16064
predeps=$lt_predeps_CXX
16066
# Dependencies to place after the objects being linked to create a
16068
postdeps=$lt_postdeps_CXX
16070
# The directories searched by this compiler when creating a shared
16072
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
16074
# The library search path used internally by the compiler when linking
16075
# a shared library.
16076
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
16078
# Method to check whether dependent libraries are shared objects.
16079
deplibs_check_method=$lt_deplibs_check_method
16081
# Command to use when deplibs_check_method == file_magic.
16082
file_magic_cmd=$lt_file_magic_cmd
16084
# Flag that allows shared libraries with undefined symbols to be built.
16085
allow_undefined_flag=$lt_allow_undefined_flag_CXX
16087
# Flag that forces no undefined symbols.
16088
no_undefined_flag=$lt_no_undefined_flag_CXX
16090
# Commands used to finish a libtool library installation in a directory.
16091
finish_cmds=$lt_finish_cmds
16093
# Same as above, but a single script fragment to be evaled but not shown.
16094
finish_eval=$lt_finish_eval
16096
# Take the output of nm and produce a listing of raw symbols and C names.
16097
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16099
# Transform the output of nm in a proper C declaration
16100
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16102
# Transform the output of nm in a C name address pair
16103
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16105
# This is the shared library runtime path variable.
16106
runpath_var=$runpath_var
16108
# This is the shared library path variable.
16109
shlibpath_var=$shlibpath_var
16111
# Is shlibpath searched before the hard-coded library search path?
16112
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16114
# How to hardcode a shared library path into an executable.
16115
hardcode_action=$hardcode_action_CXX
16117
# Whether we should hardcode library paths into libraries.
16118
hardcode_into_libs=$hardcode_into_libs
16120
# Flag to hardcode \$libdir into a binary during linking.
16121
# This must work even if \$libdir does not exist.
16122
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
16124
# If ld is used when linking, flag to hardcode \$libdir into
16125
# a binary during linking. This must work even if \$libdir does
16127
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
16129
# Whether we need a single -rpath flag with a separated argument.
16130
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
16132
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16133
# resulting binary.
16134
hardcode_direct=$hardcode_direct_CXX
16136
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16137
# resulting binary.
16138
hardcode_minus_L=$hardcode_minus_L_CXX
16140
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16141
# the resulting binary.
16142
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
16144
# Set to yes if building a shared library automatically hardcodes DIR into the library
16145
# and all subsequent libraries and executables linked against it.
16146
hardcode_automatic=$hardcode_automatic_CXX
16148
# Variables whose values should be saved in libtool wrapper scripts and
16149
# restored at relink time.
16150
variables_saved_for_relink="$variables_saved_for_relink"
16152
# Whether libtool must link a program against all its dependency libraries.
16153
link_all_deplibs=$link_all_deplibs_CXX
16155
# Compile-time system search path for libraries
16156
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16158
# Run-time system search path for libraries
16159
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16161
# Fix the shell variable \$srcfile for the compiler.
16162
fix_srcfile_path=$lt_fix_srcfile_path
16164
# Set to yes if exported symbols are required.
16165
always_export_symbols=$always_export_symbols_CXX
16167
# The commands to list exported symbols.
16168
export_symbols_cmds=$lt_export_symbols_cmds_CXX
16170
# The commands to extract the exported symbol list from a shared archive.
16171
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16173
# Symbols that should not be listed in the preloaded symbols.
16174
exclude_expsyms=$lt_exclude_expsyms_CXX
16176
# Symbols that must always be exported.
16177
include_expsyms=$lt_include_expsyms_CXX
16179
# ### END LIBTOOL TAG CONFIG: $tagname
16185
# If there is no Makefile yet, we rely on a make rule to execute
16186
# `config.status --recheck' to rerun these tests and create the
16187
# libtool script then.
16188
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16189
if test -f "$ltmain_in"; then
16190
test -f Makefile && make "$ltmain"
16196
ac_cpp='$CPP $CPPFLAGS'
16197
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16198
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16199
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16205
with_gnu_ldcxx=$with_gnu_ld
16206
with_gnu_ld=$lt_save_with_gnu_ld
16207
lt_cv_path_LDCXX=$lt_cv_path_LD
16208
lt_cv_path_LD=$lt_save_path_LD
16209
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16210
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16218
if test -n "$F77" && test "X$F77" != "Xno"; then
16221
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
16222
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16223
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
16226
archive_cmds_need_lc_F77=no
16227
allow_undefined_flag_F77=
16228
always_export_symbols_F77=no
16229
archive_expsym_cmds_F77=
16230
export_dynamic_flag_spec_F77=
16231
hardcode_direct_F77=no
16232
hardcode_libdir_flag_spec_F77=
16233
hardcode_libdir_flag_spec_ld_F77=
16234
hardcode_libdir_separator_F77=
16235
hardcode_minus_L_F77=no
16236
hardcode_automatic_F77=no
16238
module_expsym_cmds_F77=
16239
link_all_deplibs_F77=unknown
16240
old_archive_cmds_F77=$old_archive_cmds
16241
no_undefined_flag_F77=
16242
whole_archive_flag_spec_F77=
16243
enable_shared_with_static_runtimes_F77=no
16245
# Source file extension for f77 test sources.
16248
# Object file extension for compiled f77 test sources.
16252
# Code to be used in simple compile tests
16253
lt_simple_compile_test_code="\
16259
# Code to be used in simple link tests
16260
lt_simple_link_test_code="\
16265
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16267
# If no C compiler was specified, use CC.
16270
# If no C compiler flags were specified, use CFLAGS.
16271
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16273
# Allow CC to be a program name with arguments.
16277
# save warnings/boilerplate of simple test code
16278
ac_outfile=conftest.$ac_objext
16279
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16280
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16281
_lt_compiler_boilerplate=`cat conftest.err`
16284
ac_outfile=conftest.$ac_objext
16285
echo "$lt_simple_link_test_code" >conftest.$ac_ext
16286
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16287
_lt_linker_boilerplate=`cat conftest.err`
16291
# Allow CC to be a program name with arguments.
16296
for cc_temp in $compiler""; do
16298
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16299
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16304
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16307
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
16308
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
16309
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
16310
echo "${ECHO_T}$can_build_shared" >&6; }
16312
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
16313
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
16314
test "$can_build_shared" = "no" && enable_shared=no
16316
# On AIX, shared libraries and static libraries use the same namespace, and
16317
# are all built from PIC.
16320
test "$enable_shared" = yes && enable_static=no
16321
if test -n "$RANLIB"; then
16322
archive_cmds="$archive_cmds~\$RANLIB \$lib"
16323
postinstall_cmds='$RANLIB $lib'
16327
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16328
test "$enable_shared" = yes && enable_static=no
16332
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
16333
echo "${ECHO_T}$enable_shared" >&6; }
16335
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
16336
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
16337
# Make sure either enable_shared or enable_static is yes.
16338
test "$enable_shared" = yes || enable_static=yes
16339
{ echo "$as_me:$LINENO: result: $enable_static" >&5
16340
echo "${ECHO_T}$enable_static" >&6; }
16345
lt_prog_compiler_wl_F77=
16346
lt_prog_compiler_pic_F77=
16347
lt_prog_compiler_static_F77=
16349
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16350
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16352
if test "$GCC" = yes; then
16353
lt_prog_compiler_wl_F77='-Wl,'
16354
lt_prog_compiler_static_F77='-static'
16358
# All AIX code is PIC.
16359
if test "$host_cpu" = ia64; then
16360
# AIX 5 now supports IA64 processor
16361
lt_prog_compiler_static_F77='-Bstatic'
16366
# FIXME: we need at least 68020 code to build shared libraries, but
16367
# adding the `-m68020' flag to GCC prevents building anything better,
16369
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
16372
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16373
# PIC is the default for these OSes.
16376
mingw* | cygwin* | pw32* | os2*)
16377
# This hack is so that the source file can tell whether it is being
16378
# built for inclusion in a dll (and should export symbols for example).
16379
# Although the cygwin gcc ignores -fPIC, still need this for old-style
16380
# (--disable-auto-import) libraries
16381
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
16384
darwin* | rhapsody*)
16385
# PIC is the default on this platform
16386
# Common symbols not allowed in MH_DYLIB files
16387
lt_prog_compiler_pic_F77='-fno-common'
16391
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
16392
# Instead, we relocate shared libraries at runtime.
16396
# Just because we use GCC doesn't mean we suddenly get shared libraries
16397
# on systems that don't support them.
16398
lt_prog_compiler_can_build_shared_F77=no
16403
if test -d /usr/nec; then
16404
lt_prog_compiler_pic_F77=-Kconform_pic
16409
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16410
# not for PA HP-UX.
16416
lt_prog_compiler_pic_F77='-fPIC'
16422
lt_prog_compiler_pic_F77='-fPIC'
16426
# PORTME Check for flag to pass linker flags through the system compiler.
16429
lt_prog_compiler_wl_F77='-Wl,'
16430
if test "$host_cpu" = ia64; then
16431
# AIX 5 now supports IA64 processor
16432
lt_prog_compiler_static_F77='-Bstatic'
16434
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
16438
# PIC is the default on this platform
16439
# Common symbols not allowed in MH_DYLIB files
16440
case $cc_basename in
16442
lt_prog_compiler_pic_F77='-qnocommon'
16443
lt_prog_compiler_wl_F77='-Wl,'
16448
mingw* | cygwin* | pw32* | os2*)
16449
# This hack is so that the source file can tell whether it is being
16450
# built for inclusion in a dll (and should export symbols for example).
16451
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
16454
hpux9* | hpux10* | hpux11*)
16455
lt_prog_compiler_wl_F77='-Wl,'
16456
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16457
# not for PA HP-UX.
16463
lt_prog_compiler_pic_F77='+Z'
16466
# Is there a better lt_prog_compiler_static that works with the bundled CC?
16467
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
16470
irix5* | irix6* | nonstopux*)
16471
lt_prog_compiler_wl_F77='-Wl,'
16472
# PIC (with -KPIC) is the default.
16473
lt_prog_compiler_static_F77='-non_shared'
16477
lt_prog_compiler_pic_F77='-KPIC'
16478
lt_prog_compiler_static_F77='-Bstatic'
16481
linux* | k*bsd*-gnu)
16482
case $cc_basename in
16484
lt_prog_compiler_wl_F77='-Wl,'
16485
lt_prog_compiler_pic_F77='-KPIC'
16486
lt_prog_compiler_static_F77='-static'
16488
pgcc* | pgf77* | pgf90* | pgf95*)
16489
# Portland Group compilers (*not* the Pentium gcc compiler,
16490
# which looks to be a dead project)
16491
lt_prog_compiler_wl_F77='-Wl,'
16492
lt_prog_compiler_pic_F77='-fpic'
16493
lt_prog_compiler_static_F77='-Bstatic'
16496
lt_prog_compiler_wl_F77='-Wl,'
16497
# All Alpha code is PIC.
16498
lt_prog_compiler_static_F77='-non_shared'
16501
case `$CC -V 2>&1 | sed 5q` in
16504
lt_prog_compiler_pic_F77='-KPIC'
16505
lt_prog_compiler_static_F77='-Bstatic'
16506
lt_prog_compiler_wl_F77='-Wl,'
16509
# Sun Fortran 8.3 passes all unrecognized flags to the linker
16510
lt_prog_compiler_pic_F77='-KPIC'
16511
lt_prog_compiler_static_F77='-Bstatic'
16512
lt_prog_compiler_wl_F77=''
16519
osf3* | osf4* | osf5*)
16520
lt_prog_compiler_wl_F77='-Wl,'
16521
# All OSF/1 code is PIC.
16522
lt_prog_compiler_static_F77='-non_shared'
16526
lt_prog_compiler_static_F77='-non_shared'
16530
lt_prog_compiler_pic_F77='-KPIC'
16531
lt_prog_compiler_static_F77='-Bstatic'
16532
case $cc_basename in
16533
f77* | f90* | f95*)
16534
lt_prog_compiler_wl_F77='-Qoption ld ';;
16536
lt_prog_compiler_wl_F77='-Wl,';;
16541
lt_prog_compiler_wl_F77='-Qoption ld '
16542
lt_prog_compiler_pic_F77='-PIC'
16543
lt_prog_compiler_static_F77='-Bstatic'
16546
sysv4 | sysv4.2uw2* | sysv4.3*)
16547
lt_prog_compiler_wl_F77='-Wl,'
16548
lt_prog_compiler_pic_F77='-KPIC'
16549
lt_prog_compiler_static_F77='-Bstatic'
16553
if test -d /usr/nec ;then
16554
lt_prog_compiler_pic_F77='-Kconform_pic'
16555
lt_prog_compiler_static_F77='-Bstatic'
16559
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16560
lt_prog_compiler_wl_F77='-Wl,'
16561
lt_prog_compiler_pic_F77='-KPIC'
16562
lt_prog_compiler_static_F77='-Bstatic'
16566
lt_prog_compiler_wl_F77='-Wl,'
16567
lt_prog_compiler_can_build_shared_F77=no
16571
lt_prog_compiler_pic_F77='-pic'
16572
lt_prog_compiler_static_F77='-Bstatic'
16576
lt_prog_compiler_can_build_shared_F77=no
16581
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
16582
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
16585
# Check to make sure the PIC flag actually works.
16587
if test -n "$lt_prog_compiler_pic_F77"; then
16589
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
16590
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
16591
if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
16592
echo $ECHO_N "(cached) $ECHO_C" >&6
16594
lt_cv_prog_compiler_pic_works_F77=no
16595
ac_outfile=conftest.$ac_objext
16596
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16597
lt_compiler_flag="$lt_prog_compiler_pic_F77"
16598
# Insert the option either (1) after the last *FLAGS variable, or
16599
# (2) before a word containing "conftest.", or (3) at the end.
16600
# Note that $ac_compile itself does not contain backslashes and begins
16601
# with a dollar sign (not a hyphen), so the echo should work correctly.
16602
# The option is referenced via a variable to avoid confusing sed.
16603
lt_compile=`echo "$ac_compile" | $SED \
16604
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16605
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16606
-e 's:$: $lt_compiler_flag:'`
16607
(eval echo "\"\$as_me:16607: $lt_compile\"" >&5)
16608
(eval "$lt_compile" 2>conftest.err)
16610
cat conftest.err >&5
16611
echo "$as_me:16611: \$? = $ac_status" >&5
16612
if (exit $ac_status) && test -s "$ac_outfile"; then
16613
# The compiler can only warn and ignore the option if not recognized
16614
# So say no if there are warnings other than the usual output.
16615
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16616
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16617
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16618
lt_cv_prog_compiler_pic_works_F77=yes
16624
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
16625
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
16627
if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
16628
case $lt_prog_compiler_pic_F77 in
16630
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
16633
lt_prog_compiler_pic_F77=
16634
lt_prog_compiler_can_build_shared_F77=no
16639
# For platforms which do not support PIC, -DPIC is meaningless:
16641
lt_prog_compiler_pic_F77=
16644
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
16649
# Check to make sure the static flag actually works.
16651
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
16652
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16653
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16654
if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
16655
echo $ECHO_N "(cached) $ECHO_C" >&6
16657
lt_cv_prog_compiler_static_works_F77=no
16658
save_LDFLAGS="$LDFLAGS"
16659
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16660
echo "$lt_simple_link_test_code" > conftest.$ac_ext
16661
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16662
# The linker can only warn and ignore the option if not recognized
16663
# So say no if there are warnings
16664
if test -s conftest.err; then
16665
# Append any errors to the config.log.
16666
cat conftest.err 1>&5
16667
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16668
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16669
if diff conftest.exp conftest.er2 >/dev/null; then
16670
lt_cv_prog_compiler_static_works_F77=yes
16673
lt_cv_prog_compiler_static_works_F77=yes
16677
LDFLAGS="$save_LDFLAGS"
16680
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
16681
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
16683
if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
16686
lt_prog_compiler_static_F77=
16690
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16691
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16692
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
16693
echo $ECHO_N "(cached) $ECHO_C" >&6
16695
lt_cv_prog_compiler_c_o_F77=no
16696
$rm -r conftest 2>/dev/null
16700
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16702
lt_compiler_flag="-o out/conftest2.$ac_objext"
16703
# Insert the option either (1) after the last *FLAGS variable, or
16704
# (2) before a word containing "conftest.", or (3) at the end.
16705
# Note that $ac_compile itself does not contain backslashes and begins
16706
# with a dollar sign (not a hyphen), so the echo should work correctly.
16707
lt_compile=`echo "$ac_compile" | $SED \
16708
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16709
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16710
-e 's:$: $lt_compiler_flag:'`
16711
(eval echo "\"\$as_me:16711: $lt_compile\"" >&5)
16712
(eval "$lt_compile" 2>out/conftest.err)
16714
cat out/conftest.err >&5
16715
echo "$as_me:16715: \$? = $ac_status" >&5
16716
if (exit $ac_status) && test -s out/conftest2.$ac_objext
16718
# The compiler can only warn and ignore the option if not recognized
16719
# So say no if there are warnings
16720
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16721
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16722
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16723
lt_cv_prog_compiler_c_o_F77=yes
16728
# SGI C++ compiler will create directory out/ii_files/ for
16729
# template instantiation
16730
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16731
$rm out/* && rmdir out
16737
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
16738
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
16741
hard_links="nottested"
16742
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
16743
# do not overwrite the value of need_locks provided by the user
16744
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16745
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16748
ln conftest.a conftest.b 2>/dev/null && hard_links=no
16750
ln conftest.a conftest.b 2>&5 || hard_links=no
16751
ln conftest.a conftest.b 2>/dev/null && hard_links=no
16752
{ echo "$as_me:$LINENO: result: $hard_links" >&5
16753
echo "${ECHO_T}$hard_links" >&6; }
16754
if test "$hard_links" = no; then
16755
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16756
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16763
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16764
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16767
allow_undefined_flag_F77=
16768
enable_shared_with_static_runtimes_F77=no
16770
archive_expsym_cmds_F77=
16771
old_archive_From_new_cmds_F77=
16772
old_archive_from_expsyms_cmds_F77=
16773
export_dynamic_flag_spec_F77=
16774
whole_archive_flag_spec_F77=
16775
thread_safe_flag_spec_F77=
16776
hardcode_libdir_flag_spec_F77=
16777
hardcode_libdir_flag_spec_ld_F77=
16778
hardcode_libdir_separator_F77=
16779
hardcode_direct_F77=no
16780
hardcode_minus_L_F77=no
16781
hardcode_shlibpath_var_F77=unsupported
16782
link_all_deplibs_F77=unknown
16783
hardcode_automatic_F77=no
16785
module_expsym_cmds_F77=
16786
always_export_symbols_F77=no
16787
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16788
# include_expsyms should be a list of space-separated symbols to be *always*
16789
# included in the symbol list
16790
include_expsyms_F77=
16791
# exclude_expsyms can be an extended regexp of symbols to exclude
16792
# it will be wrapped by ` (' and `)$', so one must not match beginning or
16793
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16794
# as well as any symbol that contains `d'.
16795
exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16796
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16797
# platforms (ab)use it in PIC code, but their linkers get confused if
16798
# the symbol is explicitly referenced. Since portable code cannot
16799
# rely on this symbol name, it's probably fine to never include it in
16800
# preloaded symbol tables.
16801
# Exclude shared library initialization/finalization symbols.
16802
extract_expsyms_cmds=
16803
# Just being paranoid about ensuring that cc_basename is set.
16804
for cc_temp in $compiler""; do
16806
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16807
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16812
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16815
cygwin* | mingw* | pw32*)
16816
# FIXME: the MSVC++ port hasn't been tested in a loooong time
16817
# When not using gcc, we currently assume that we are using
16818
# Microsoft Visual C++.
16819
if test "$GCC" != yes; then
16824
# we just hope/assume this is gcc and not c89 (= MSVC++)
16833
if test "$with_gnu_ld" = yes; then
16834
# If archive_cmds runs LD, not CC, wlarc should be empty
16837
# Set some defaults for GNU ld with shared library support. These
16838
# are reset later if shared libraries are not supported. Putting them
16839
# here allows them to be overridden if necessary.
16840
runpath_var=LD_RUN_PATH
16841
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
16842
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
16843
# ancient GNU ld didn't support --whole-archive et. al.
16844
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16845
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16847
whole_archive_flag_spec_F77=
16849
supports_anon_versioning=no
16850
case `$LD -v 2>/dev/null` in
16851
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16852
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16853
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16854
*\ 2.11.*) ;; # other 2.11 versions
16855
*) supports_anon_versioning=yes ;;
16858
# See if GNU ld supports shared libraries.
16861
# On AIX/PPC, the GNU linker is very broken
16862
if test "$host_cpu" != ia64; then
16866
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16867
*** to be unable to reliably create shared libraries on AIX.
16868
*** Therefore, libtool is disabling shared libraries support. If you
16869
*** really care for shared libraries, you may want to modify your PATH
16870
*** so that a non-GNU linker is found, and then restart.
16877
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)'
16878
hardcode_libdir_flag_spec_F77='-L$libdir'
16879
hardcode_minus_L_F77=yes
16881
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16882
# that the semantics of dynamic libraries on AmigaOS, at least up
16883
# to version 4, is to share data among multiple programs linked
16884
# with the same dynamic library. Since this doesn't match the
16885
# behavior of shared libraries on other platforms, we can't use
16891
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16892
allow_undefined_flag_F77=unsupported
16893
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16894
# support --undefined. This deserves some investigation. FIXME
16895
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16901
cygwin* | mingw* | pw32*)
16902
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
16903
# as there is no search path for DLLs.
16904
hardcode_libdir_flag_spec_F77='-L$libdir'
16905
allow_undefined_flag_F77=unsupported
16906
always_export_symbols_F77=no
16907
enable_shared_with_static_runtimes_F77=yes
16908
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16910
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16911
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16912
# If the export-symbols file already is a .def file (1st line
16913
# is EXPORTS), use it as is; otherwise, prepend...
16914
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16915
cp $export_symbols $output_objdir/$soname.def;
16917
echo EXPORTS > $output_objdir/$soname.def;
16918
cat $export_symbols >> $output_objdir/$soname.def;
16920
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16927
hardcode_direct_F77=no
16928
hardcode_shlibpath_var_F77=no
16929
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16930
export_dynamic_flag_spec_F77='${wl}-E'
16931
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16932
# Instead, shared libraries are loaded at an image base (0x10000000 by
16933
# default) and relocated if they conflict, which is a slow very memory
16934
# consuming and fragmenting process. To avoid this, we pick a random,
16935
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16936
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
16937
archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16938
archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16941
gnu* | linux* | k*bsd*-gnu)
16942
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16944
case $cc_basename,$host_cpu in
16945
pgcc*) # Portland Group C compiler
16946
whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16947
tmp_addflag=' $pic_flag'
16949
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16950
whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16951
tmp_addflag=' $pic_flag -Mnomain' ;;
16952
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16953
tmp_addflag=' -i_dynamic' ;;
16954
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16955
tmp_addflag=' -i_dynamic -nofor_main' ;;
16956
ifc* | ifort*) # Intel Fortran compiler
16957
tmp_addflag=' -nofor_main' ;;
16959
case `$CC -V 2>&1 | sed 5q` in
16960
*Sun\ C*) # Sun C 5.9
16961
whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16962
tmp_sharedflag='-G' ;;
16963
*Sun\ F*) # Sun Fortran 8.3
16964
tmp_sharedflag='-G' ;;
16966
tmp_sharedflag='-shared' ;;
16968
archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16970
if test $supports_anon_versioning = yes; then
16971
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16972
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16973
$echo "local: *; };" >> $output_objdir/$libname.ver~
16974
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16976
link_all_deplibs_F77=no
16982
netbsd* | netbsdelf*-gnu)
16983
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16984
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16987
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16988
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16993
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16997
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16998
*** create shared libraries on Solaris systems. Therefore, libtool
16999
*** is disabling shared libraries support. We urge you to upgrade GNU
17000
*** binutils to release 2.9.1 or newer. Another option is to modify
17001
*** your PATH or compiler configuration so that the native linker is
17002
*** used, and then restart.
17005
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17006
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17007
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17013
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17014
case `$LD -v 2>&1` in
17015
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17019
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17020
*** reliably create shared libraries on SCO systems. Therefore, libtool
17021
*** is disabling shared libraries support. We urge you to upgrade GNU
17022
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17023
*** your PATH or compiler configuration so that the native linker is
17024
*** used, and then restart.
17029
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17030
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17031
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17032
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17041
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17043
hardcode_direct_F77=yes
17044
hardcode_shlibpath_var_F77=no
17048
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17049
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17050
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17057
if test "$ld_shlibs_F77" = no; then
17059
hardcode_libdir_flag_spec_F77=
17060
export_dynamic_flag_spec_F77=
17061
whole_archive_flag_spec_F77=
17064
# PORTME fill in a description of your system's linker (not GNU ld)
17067
allow_undefined_flag_F77=unsupported
17068
always_export_symbols_F77=yes
17069
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'
17070
# Note: this linker hardcodes the directories in LIBPATH if there
17071
# are no directories specified by -L.
17072
hardcode_minus_L_F77=yes
17073
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17074
# Neither direct hardcoding nor static linking is supported with a
17076
hardcode_direct_F77=unsupported
17081
if test "$host_cpu" = ia64; then
17082
# On IA64, the linker does run time linking by default, so we don't
17083
# have to do anything special.
17084
aix_use_runtimelinking=no
17085
exp_sym_flag='-Bexport'
17088
# If we're using GNU nm, then we don't want the "-C" option.
17089
# -C means demangle to AIX nm, but means don't demangle with GNU nm
17090
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17091
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'
17093
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'
17095
aix_use_runtimelinking=no
17097
# Test if we are trying to use run time linking or normal
17098
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17099
# need to do runtime linking.
17100
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17101
for ld_flag in $LDFLAGS; do
17102
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17103
aix_use_runtimelinking=yes
17110
exp_sym_flag='-bexport'
17111
no_entry_flag='-bnoentry'
17114
# When large executables or shared objects are built, AIX ld can
17115
# have problems creating the table of contents. If linking a library
17116
# or program results in "error TOC overflow" add -mminimal-toc to
17117
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17118
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17120
archive_cmds_F77=''
17121
hardcode_direct_F77=yes
17122
hardcode_libdir_separator_F77=':'
17123
link_all_deplibs_F77=yes
17125
if test "$GCC" = yes; then
17126
case $host_os in aix4.[012]|aix4.[012].*)
17127
# We only want to do this on AIX 4.2 and lower, the check
17128
# below for broken collect2 doesn't work under 4.3+
17129
collect2name=`${CC} -print-prog-name=collect2`
17130
if test -f "$collect2name" && \
17131
strings "$collect2name" | grep resolve_lib_name >/dev/null
17133
# We have reworked collect2
17136
# We have old collect2
17137
hardcode_direct_F77=unsupported
17138
# It fails to find uninstalled libraries when the uninstalled
17139
# path is not listed in the libpath. Setting hardcode_minus_L
17140
# to unsupported forces relinking
17141
hardcode_minus_L_F77=yes
17142
hardcode_libdir_flag_spec_F77='-L$libdir'
17143
hardcode_libdir_separator_F77=
17147
shared_flag='-shared'
17148
if test "$aix_use_runtimelinking" = yes; then
17149
shared_flag="$shared_flag "'${wl}-G'
17153
if test "$host_cpu" = ia64; then
17154
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17155
# chokes on -Wl,-G. The following line is correct:
17158
if test "$aix_use_runtimelinking" = yes; then
17159
shared_flag='${wl}-G'
17161
shared_flag='${wl}-bM:SRE'
17166
# It seems that -bexpall does not export symbols beginning with
17167
# underscore (_), so it is better to generate a list of symbols to export.
17168
always_export_symbols_F77=yes
17169
if test "$aix_use_runtimelinking" = yes; then
17170
# Warning - without using the other runtime loading flags (-brtl),
17171
# -berok will link without error, but may produce a broken library.
17172
allow_undefined_flag_F77='-berok'
17173
# Determine the default libpath from the value encoded in an empty executable.
17174
cat >conftest.$ac_ext <<_ACEOF
17179
rm -f conftest.$ac_objext conftest$ac_exeext
17180
if { (ac_try="$ac_link"
17181
case "(($ac_try" in
17182
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17183
*) ac_try_echo=$ac_try;;
17185
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17186
(eval "$ac_link") 2>conftest.er1
17188
grep -v '^ *+' conftest.er1 >conftest.err
17190
cat conftest.err >&5
17191
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17192
(exit $ac_status); } && {
17193
test -z "$ac_f77_werror_flag" ||
17194
test ! -s conftest.err
17195
} && test -s conftest$ac_exeext &&
17196
$as_test_x conftest$ac_exeext; then
17198
lt_aix_libpath_sed='
17199
/Import File Strings/,/^$/ {
17205
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17206
# Check for a 64-bit object if we didn't find anything.
17207
if test -z "$aix_libpath"; then
17208
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17211
echo "$as_me: failed program was:" >&5
17212
sed 's/^/| /' conftest.$ac_ext >&5
17217
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17218
conftest$ac_exeext conftest.$ac_ext
17219
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17221
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
17222
archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17224
if test "$host_cpu" = ia64; then
17225
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
17226
allow_undefined_flag_F77="-z nodefs"
17227
archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
17229
# Determine the default libpath from the value encoded in an empty executable.
17230
cat >conftest.$ac_ext <<_ACEOF
17235
rm -f conftest.$ac_objext conftest$ac_exeext
17236
if { (ac_try="$ac_link"
17237
case "(($ac_try" in
17238
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17239
*) ac_try_echo=$ac_try;;
17241
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17242
(eval "$ac_link") 2>conftest.er1
17244
grep -v '^ *+' conftest.er1 >conftest.err
17246
cat conftest.err >&5
17247
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17248
(exit $ac_status); } && {
17249
test -z "$ac_f77_werror_flag" ||
17250
test ! -s conftest.err
17251
} && test -s conftest$ac_exeext &&
17252
$as_test_x conftest$ac_exeext; then
17254
lt_aix_libpath_sed='
17255
/Import File Strings/,/^$/ {
17261
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17262
# Check for a 64-bit object if we didn't find anything.
17263
if test -z "$aix_libpath"; then
17264
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17267
echo "$as_me: failed program was:" >&5
17268
sed 's/^/| /' conftest.$ac_ext >&5
17273
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17274
conftest$ac_exeext conftest.$ac_ext
17275
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17277
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
17278
# Warning - without using the other run time loading flags,
17279
# -berok will link without error, but may produce a broken library.
17280
no_undefined_flag_F77=' ${wl}-bernotok'
17281
allow_undefined_flag_F77=' ${wl}-berok'
17282
# Exported symbols can be pulled into shared objects from archives
17283
whole_archive_flag_spec_F77='$convenience'
17284
archive_cmds_need_lc_F77=yes
17285
# This is similar to how AIX traditionally builds its shared libraries.
17286
archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17292
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)'
17293
hardcode_libdir_flag_spec_F77='-L$libdir'
17294
hardcode_minus_L_F77=yes
17295
# see comment about different semantics on the GNU ld section
17300
export_dynamic_flag_spec_F77=-rdynamic
17303
cygwin* | mingw* | pw32*)
17304
# When not using gcc, we currently assume that we are using
17305
# Microsoft Visual C++.
17306
# hardcode_libdir_flag_spec is actually meaningless, as there is
17307
# no search path for DLLs.
17308
hardcode_libdir_flag_spec_F77=' '
17309
allow_undefined_flag_F77=unsupported
17310
# Tell ltmain to make .lib files, not .a files.
17312
# Tell ltmain to make .dll files, not .so files.
17314
# FIXME: Setting linknames here is a bad hack.
17315
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17316
# The linker will automatically build a .lib file if we build a DLL.
17317
old_archive_From_new_cmds_F77='true'
17318
# FIXME: Should let the user specify the lib program.
17319
old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
17320
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
17321
enable_shared_with_static_runtimes_F77=yes
17324
darwin* | rhapsody*)
17326
rhapsody* | darwin1.[012])
17327
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
17330
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17331
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17333
case ${MACOSX_DEPLOYMENT_TARGET} in
17335
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17338
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
17344
archive_cmds_need_lc_F77=no
17345
hardcode_direct_F77=no
17346
hardcode_automatic_F77=yes
17347
hardcode_shlibpath_var_F77=unsupported
17348
whole_archive_flag_spec_F77=''
17349
link_all_deplibs_F77=yes
17350
if test "$GCC" = yes ; then
17351
output_verbose_link_cmd='echo'
17352
archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17353
module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17354
archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
17355
module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
17357
case $cc_basename in
17359
output_verbose_link_cmd='echo'
17360
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17361
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17362
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17363
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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17364
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}'
17374
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17375
hardcode_libdir_flag_spec_F77='-L$libdir'
17376
hardcode_shlibpath_var_F77=no
17383
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17384
# support. Future versions do this automatically, but an explicit c++rt0.o
17385
# does not break anything, and helps significantly (at the cost of a little
17388
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17389
hardcode_libdir_flag_spec_F77='-R$libdir'
17390
hardcode_direct_F77=yes
17391
hardcode_shlibpath_var_F77=no
17394
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
17396
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17397
hardcode_direct_F77=yes
17398
hardcode_minus_L_F77=yes
17399
hardcode_shlibpath_var_F77=no
17402
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17403
freebsd* | dragonfly*)
17404
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17405
hardcode_libdir_flag_spec_F77='-R$libdir'
17406
hardcode_direct_F77=yes
17407
hardcode_shlibpath_var_F77=no
17411
if test "$GCC" = yes; then
17412
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'
17414
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'
17416
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17417
hardcode_libdir_separator_F77=:
17418
hardcode_direct_F77=yes
17420
# hardcode_minus_L: Not really in the search PATH,
17421
# but as the default location of the library.
17422
hardcode_minus_L_F77=yes
17423
export_dynamic_flag_spec_F77='${wl}-E'
17427
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17428
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17430
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17432
if test "$with_gnu_ld" = no; then
17433
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17434
hardcode_libdir_separator_F77=:
17436
hardcode_direct_F77=yes
17437
export_dynamic_flag_spec_F77='${wl}-E'
17439
# hardcode_minus_L: Not really in the search PATH,
17440
# but as the default location of the library.
17441
hardcode_minus_L_F77=yes
17446
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17449
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17452
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17455
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17461
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17464
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17467
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17471
if test "$with_gnu_ld" = no; then
17472
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17473
hardcode_libdir_separator_F77=:
17477
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
17478
hardcode_direct_F77=no
17479
hardcode_shlibpath_var_F77=no
17482
hardcode_direct_F77=yes
17483
export_dynamic_flag_spec_F77='${wl}-E'
17485
# hardcode_minus_L: Not really in the search PATH,
17486
# but as the default location of the library.
17487
hardcode_minus_L_F77=yes
17493
irix5* | irix6* | nonstopux*)
17494
if test "$GCC" = yes; then
17495
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'
17497
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'
17498
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
17500
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17501
hardcode_libdir_separator_F77=:
17502
link_all_deplibs_F77=yes
17505
netbsd* | netbsdelf*-gnu)
17506
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17507
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17509
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17511
hardcode_libdir_flag_spec_F77='-R$libdir'
17512
hardcode_direct_F77=yes
17513
hardcode_shlibpath_var_F77=no
17517
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17518
hardcode_direct_F77=yes
17519
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17520
hardcode_libdir_separator_F77=:
17521
hardcode_shlibpath_var_F77=no
17525
if test -f /usr/libexec/ld.so; then
17526
hardcode_direct_F77=yes
17527
hardcode_shlibpath_var_F77=no
17528
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17529
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17530
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17531
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
17532
export_dynamic_flag_spec_F77='${wl}-E'
17535
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17536
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17537
hardcode_libdir_flag_spec_F77='-R$libdir'
17540
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17541
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
17551
hardcode_libdir_flag_spec_F77='-L$libdir'
17552
hardcode_minus_L_F77=yes
17553
allow_undefined_flag_F77=unsupported
17554
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'
17555
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17559
if test "$GCC" = yes; then
17560
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
17561
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'
17563
allow_undefined_flag_F77=' -expect_unresolved \*'
17564
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'
17566
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17567
hardcode_libdir_separator_F77=:
17570
osf4* | osf5*) # as osf3* with the addition of -msym flag
17571
if test "$GCC" = yes; then
17572
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
17573
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'
17574
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17576
allow_undefined_flag_F77=' -expect_unresolved \*'
17577
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'
17578
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~
17579
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17581
# Both c and cxx compiler support -rpath directly
17582
hardcode_libdir_flag_spec_F77='-rpath $libdir'
17584
hardcode_libdir_separator_F77=:
17588
no_undefined_flag_F77=' -z text'
17589
if test "$GCC" = yes; then
17591
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17592
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17593
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17596
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17597
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17598
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17600
hardcode_libdir_flag_spec_F77='-R$libdir'
17601
hardcode_shlibpath_var_F77=no
17603
solaris2.[0-5] | solaris2.[0-5].*) ;;
17605
# The compiler driver will combine and reorder linker options,
17606
# but understands `-z linker_flag'. GCC discards it without `$wl',
17607
# but is careful enough not to reorder.
17608
# Supported since Solaris 2.6 (maybe 2.5.1?)
17609
if test "$GCC" = yes; then
17610
whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17612
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
17616
link_all_deplibs_F77=yes
17620
if test "x$host_vendor" = xsequent; then
17621
# Use $CC to link under sequent, because it throws in some extra .o
17622
# files that make .init and .fini sections work.
17623
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17625
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17627
hardcode_libdir_flag_spec_F77='-L$libdir'
17628
hardcode_direct_F77=yes
17629
hardcode_minus_L_F77=yes
17630
hardcode_shlibpath_var_F77=no
17634
case $host_vendor in
17636
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17637
hardcode_direct_F77=yes # is this really true???
17640
## LD is ld it makes a PLAMLIB
17641
## CC just makes a GrossModule.
17642
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17643
reload_cmds_F77='$CC -r -o $output$reload_objs'
17644
hardcode_direct_F77=no
17647
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17648
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
17651
runpath_var='LD_RUN_PATH'
17652
hardcode_shlibpath_var_F77=no
17656
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17657
hardcode_shlibpath_var_F77=no
17658
export_dynamic_flag_spec_F77='-Bexport'
17662
if test -d /usr/nec; then
17663
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17664
hardcode_shlibpath_var_F77=no
17665
runpath_var=LD_RUN_PATH
17666
hardcode_runpath_var=yes
17671
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17672
no_undefined_flag_F77='${wl}-z,text'
17673
archive_cmds_need_lc_F77=no
17674
hardcode_shlibpath_var_F77=no
17675
runpath_var='LD_RUN_PATH'
17677
if test "$GCC" = yes; then
17678
archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17679
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17681
archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17682
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17686
sysv5* | sco3.2v5* | sco5v6*)
17687
# Note: We can NOT use -z defs as we might desire, because we do not
17688
# link with -lc, and that would cause any symbols used from libc to
17689
# always be unresolved, which means just about no library would
17690
# ever link correctly. If we're not using GNU ld we use -z text
17691
# though, which does catch some bad symbols but isn't as heavy-handed
17693
no_undefined_flag_F77='${wl}-z,text'
17694
allow_undefined_flag_F77='${wl}-z,nodefs'
17695
archive_cmds_need_lc_F77=no
17696
hardcode_shlibpath_var_F77=no
17697
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17698
hardcode_libdir_separator_F77=':'
17699
link_all_deplibs_F77=yes
17700
export_dynamic_flag_spec_F77='${wl}-Bexport'
17701
runpath_var='LD_RUN_PATH'
17703
if test "$GCC" = yes; then
17704
archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17705
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17707
archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17708
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17713
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17714
hardcode_libdir_flag_spec_F77='-L$libdir'
17715
hardcode_shlibpath_var_F77=no
17724
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
17725
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
17726
test "$ld_shlibs_F77" = no && can_build_shared=no
17729
# Do we need to explicitly link libc?
17731
case "x$archive_cmds_need_lc_F77" in
17733
# Assume -lc should be added
17734
archive_cmds_need_lc_F77=yes
17736
if test "$enable_shared" = yes && test "$GCC" = yes; then
17737
case $archive_cmds_F77 in
17739
# FIXME: we may have to deal with multi-command sequences.
17742
# Test whether the compiler implicitly links with -lc since on some
17743
# systems, -lgcc has to come before -lc. If gcc already passes -lc
17744
# to ld, don't add -lc before -lgcc.
17745
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17746
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17748
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17750
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17751
(eval $ac_compile) 2>&5
17753
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754
(exit $ac_status); } 2>conftest.err; then
17757
libobjs=conftest.$ac_objext
17759
wl=$lt_prog_compiler_wl_F77
17760
pic_flag=$lt_prog_compiler_pic_F77
17766
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
17767
allow_undefined_flag_F77=
17768
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17769
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17771
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17772
(exit $ac_status); }
17774
archive_cmds_need_lc_F77=no
17776
archive_cmds_need_lc_F77=yes
17778
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
17780
cat conftest.err 1>&5
17783
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
17784
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
17791
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17792
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17793
library_names_spec=
17794
libname_spec='lib$name'
17798
postuninstall_cmds=
17802
shlibpath_overrides_runpath=unknown
17804
dynamic_linker="$host_os ld.so"
17805
sys_lib_dlsearch_path_spec="/lib /usr/lib"
17807
need_lib_prefix=unknown
17808
hardcode_into_libs=no
17810
# when you set need_version to no, make sure it does not cause -set_version
17811
# flags to be left without arguments
17812
need_version=unknown
17817
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17818
shlibpath_var=LIBPATH
17820
# AIX 3 has no versioning support, so we append a major version to the name.
17821
soname_spec='${libname}${release}${shared_ext}$major'
17828
hardcode_into_libs=yes
17829
if test "$host_cpu" = ia64; then
17830
# AIX 5 supports IA64
17831
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17832
shlibpath_var=LD_LIBRARY_PATH
17834
# With GCC up to 2.95.x, collect2 would create an import file
17835
# for dependence libraries. The import file would start with
17836
# the line `#! .'. This would cause the generated library to
17837
# depend on `.', always an invalid library. This was fixed in
17838
# development snapshots of GCC prior to 3.0.
17840
aix4 | aix4.[01] | aix4.[01].*)
17841
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17843
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17846
can_build_shared=no
17850
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17851
# soname into executable. Probably we can add versioning support to
17852
# collect2, so additional links can be useful in future.
17853
if test "$aix_use_runtimelinking" = yes; then
17854
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
17855
# instead of lib<name>.a to let people know that these are not
17856
# typical AIX shared libraries.
17857
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17859
# We preserve .a as extension for shared libraries through AIX4.2
17860
# and later when we are not doing run time linking.
17861
library_names_spec='${libname}${release}.a $libname.a'
17862
soname_spec='${libname}${release}${shared_ext}$major'
17864
shlibpath_var=LIBPATH
17869
library_names_spec='$libname.ixlibrary $libname.a'
17870
# Create ${libname}_ixlibrary.a entries in /sys/libs.
17871
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'
17875
library_names_spec='${libname}${shared_ext}'
17876
dynamic_linker="$host_os ld.so"
17877
shlibpath_var=LIBRARY_PATH
17883
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17884
soname_spec='${libname}${release}${shared_ext}$major'
17885
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17886
shlibpath_var=LD_LIBRARY_PATH
17887
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17888
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17889
# the default ld.so.conf also contains /usr/contrib/lib and
17890
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17891
# libtool to hard-code these into programs
17894
cygwin* | mingw* | pw32*)
17895
version_type=windows
17900
case $GCC,$host_os in
17901
yes,cygwin* | yes,mingw* | yes,pw32*)
17902
library_names_spec='$libname.dll.a'
17903
# DLL is installed to $(libdir)/../bin by postinstall_cmds
17904
postinstall_cmds='base_file=`basename \${file}`~
17905
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17906
dldir=$destdir/`dirname \$dlpath`~
17907
test -d \$dldir || mkdir -p \$dldir~
17908
$install_prog $dir/$dlname \$dldir/$dlname~
17909
chmod a+x \$dldir/$dlname'
17910
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17911
dlpath=$dir/\$dldll~
17913
shlibpath_overrides_runpath=yes
17917
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
17918
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17919
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17922
# MinGW DLLs use traditional 'lib' prefix
17923
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17924
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17925
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17926
# It is most probably a Windows format PATH printed by
17927
# mingw gcc, but we are running on Cygwin. Gcc prints its search
17928
# path with ; separators, and with drive letters. We can handle the
17929
# drive letters (cygwin fileutils understands them), so leave them,
17930
# especially as we might pass files found there to a mingw objdump,
17931
# which wouldn't understand a cygwinified path. Ahh.
17932
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17934
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17938
# pw32 DLLs use 'pw' prefix rather than 'lib'
17939
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17945
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17948
dynamic_linker='Win32 ld.exe'
17949
# FIXME: first we should search . and the directory the executable is in
17953
darwin* | rhapsody*)
17954
dynamic_linker="$host_os dyld"
17955
version_type=darwin
17958
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17959
soname_spec='${libname}${release}${major}$shared_ext'
17960
shlibpath_overrides_runpath=yes
17961
shlibpath_var=DYLD_LIBRARY_PATH
17962
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17964
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17971
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17972
soname_spec='${libname}${release}${shared_ext}$major'
17973
shlibpath_var=LD_LIBRARY_PATH
17980
freebsd* | dragonfly*)
17981
# DragonFly does not have aout. When/if they implement a new
17982
# versioning mechanism, adjust this.
17983
if test -x /usr/bin/objformat; then
17984
objformat=`/usr/bin/objformat`
17987
freebsd[123]*) objformat=aout ;;
17988
*) objformat=elf ;;
17991
version_type=freebsd-$objformat
17992
case $version_type in
17994
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17999
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18003
shlibpath_var=LD_LIBRARY_PATH
18006
shlibpath_overrides_runpath=yes
18008
freebsd3.[01]* | freebsdelf3.[01]*)
18009
shlibpath_overrides_runpath=yes
18010
hardcode_into_libs=yes
18012
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18013
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18014
shlibpath_overrides_runpath=no
18015
hardcode_into_libs=yes
18017
*) # from 4.6 on, and DragonFly
18018
shlibpath_overrides_runpath=yes
18019
hardcode_into_libs=yes
18028
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18029
soname_spec='${libname}${release}${shared_ext}$major'
18030
shlibpath_var=LD_LIBRARY_PATH
18031
hardcode_into_libs=yes
18034
hpux9* | hpux10* | hpux11*)
18035
# Give a soname corresponding to the major version so that dld.sl refuses to
18036
# link against other versions.
18043
hardcode_into_libs=yes
18044
dynamic_linker="$host_os dld.so"
18045
shlibpath_var=LD_LIBRARY_PATH
18046
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18047
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18048
soname_spec='${libname}${release}${shared_ext}$major'
18049
if test "X$HPUX_IA64_MODE" = X32; then
18050
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18052
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18054
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18058
hardcode_into_libs=yes
18059
dynamic_linker="$host_os dld.sl"
18060
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18061
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18062
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18063
soname_spec='${libname}${release}${shared_ext}$major'
18064
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18065
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18069
dynamic_linker="$host_os dld.sl"
18070
shlibpath_var=SHLIB_PATH
18071
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18072
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18073
soname_spec='${libname}${release}${shared_ext}$major'
18076
# HP-UX runs *really* slowly unless shared libraries are mode 555.
18077
postinstall_cmds='chmod 555 $lib'
18084
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18085
soname_spec='${libname}${release}${shared_ext}$major'
18086
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18087
shlibpath_var=LD_LIBRARY_PATH
18088
shlibpath_overrides_runpath=no
18089
hardcode_into_libs=yes
18092
irix5* | irix6* | nonstopux*)
18094
nonstopux*) version_type=nonstopux ;;
18096
if test "$lt_cv_prog_gnu_ld" = yes; then
18104
soname_spec='${libname}${release}${shared_ext}$major'
18105
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18107
irix5* | nonstopux*)
18108
libsuff= shlibsuff=
18111
case $LD in # libtool.m4 will add one of these switches to LD
18112
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18113
libsuff= shlibsuff= libmagic=32-bit;;
18114
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18115
libsuff=32 shlibsuff=N32 libmagic=N32;;
18116
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18117
libsuff=64 shlibsuff=64 libmagic=64-bit;;
18118
*) libsuff= shlibsuff= libmagic=never-match;;
18122
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18123
shlibpath_overrides_runpath=no
18124
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18125
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18126
hardcode_into_libs=yes
18129
# No shared lib support for Linux oldld, aout, or coff.
18130
linux*oldld* | linux*aout* | linux*coff*)
18134
# This must be Linux ELF.
18135
linux* | k*bsd*-gnu)
18139
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18140
soname_spec='${libname}${release}${shared_ext}$major'
18141
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18142
shlibpath_var=LD_LIBRARY_PATH
18143
shlibpath_overrides_runpath=no
18144
# This implies no fast_install, which is unacceptable.
18145
# Some rework will be needed to allow for fast_install
18146
# before this can be enabled.
18147
hardcode_into_libs=yes
18149
# Append ld.so.conf contents to the search path
18150
if test -f /etc/ld.so.conf; then
18151
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18152
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18155
# We used to test for /lib/ld.so.1 and disable shared libraries on
18156
# powerpc, because MkLinux only supported shared libraries with the
18157
# GNU dynamic linker. Since this was broken with cross compilers,
18158
# most powerpc-linux boxes support dynamic linking these days and
18159
# people can always --disable-shared, the test was removed, and we
18160
# assume the GNU/Linux dynamic linker is in use.
18161
dynamic_linker='GNU/Linux ld.so'
18168
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18169
soname_spec='${libname}${release}${shared_ext}$major'
18170
shlibpath_var=LD_LIBRARY_PATH
18171
shlibpath_overrides_runpath=no
18172
hardcode_into_libs=yes
18173
dynamic_linker='NetBSD ld.elf_so'
18180
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18181
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18182
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18183
dynamic_linker='NetBSD (a.out) ld.so'
18185
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18186
soname_spec='${libname}${release}${shared_ext}$major'
18187
dynamic_linker='NetBSD ld.elf_so'
18189
shlibpath_var=LD_LIBRARY_PATH
18190
shlibpath_overrides_runpath=yes
18191
hardcode_into_libs=yes
18196
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18197
shlibpath_var=LD_LIBRARY_PATH
18198
shlibpath_overrides_runpath=yes
18205
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18206
soname_spec='${libname}${release}${shared_ext}$major'
18207
shlibpath_var=LD_LIBRARY_PATH
18208
shlibpath_overrides_runpath=yes
18213
sys_lib_dlsearch_path_spec="/usr/lib"
18215
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18217
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18218
*) need_version=no ;;
18220
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18221
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18222
shlibpath_var=LD_LIBRARY_PATH
18223
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18225
openbsd2.[89] | openbsd2.[89].*)
18226
shlibpath_overrides_runpath=no
18229
shlibpath_overrides_runpath=yes
18233
shlibpath_overrides_runpath=yes
18238
libname_spec='$name'
18241
library_names_spec='$libname${shared_ext} $libname.a'
18242
dynamic_linker='OS/2 ld.exe'
18243
shlibpath_var=LIBPATH
18246
osf3* | osf4* | osf5*)
18250
soname_spec='${libname}${release}${shared_ext}$major'
18251
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18252
shlibpath_var=LD_LIBRARY_PATH
18253
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18254
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18265
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18266
soname_spec='${libname}${release}${shared_ext}$major'
18267
shlibpath_var=LD_LIBRARY_PATH
18268
shlibpath_overrides_runpath=yes
18269
hardcode_into_libs=yes
18270
# ldd complains unless libraries are executable
18271
postinstall_cmds='chmod +x $lib'
18276
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18277
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18278
shlibpath_var=LD_LIBRARY_PATH
18279
shlibpath_overrides_runpath=yes
18280
if test "$with_gnu_ld" = yes; then
18288
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18289
soname_spec='${libname}${release}${shared_ext}$major'
18290
shlibpath_var=LD_LIBRARY_PATH
18291
case $host_vendor in
18293
shlibpath_overrides_runpath=no
18295
export_dynamic_flag_spec='${wl}-Blargedynsym'
18296
runpath_var=LD_RUN_PATH
18304
shlibpath_overrides_runpath=no
18305
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18311
if test -d /usr/nec ;then
18313
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18314
soname_spec='$libname${shared_ext}.$major'
18315
shlibpath_var=LD_LIBRARY_PATH
18319
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18320
version_type=freebsd-elf
18323
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18324
soname_spec='${libname}${release}${shared_ext}$major'
18325
shlibpath_var=LD_LIBRARY_PATH
18326
hardcode_into_libs=yes
18327
if test "$with_gnu_ld" = yes; then
18328
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18329
shlibpath_overrides_runpath=no
18331
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18332
shlibpath_overrides_runpath=yes
18335
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18339
sys_lib_dlsearch_path_spec='/usr/lib'
18344
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18345
soname_spec='${libname}${release}${shared_ext}$major'
18346
shlibpath_var=LD_LIBRARY_PATH
18353
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18354
echo "${ECHO_T}$dynamic_linker" >&6; }
18355
test "$dynamic_linker" = no && can_build_shared=no
18357
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18358
echo $ECHO_N "(cached) $ECHO_C" >&6
18360
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18363
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18364
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18365
echo $ECHO_N "(cached) $ECHO_C" >&6
18367
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18370
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18372
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18373
if test "$GCC" = yes; then
18374
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18377
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18378
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18379
hardcode_action_F77=
18380
if test -n "$hardcode_libdir_flag_spec_F77" || \
18381
test -n "$runpath_var_F77" || \
18382
test "X$hardcode_automatic_F77" = "Xyes" ; then
18384
# We can hardcode non-existant directories.
18385
if test "$hardcode_direct_F77" != no &&
18386
# If the only mechanism to avoid hardcoding is shlibpath_var, we
18387
# have to relink, otherwise we might link with an installed library
18388
# when we should be linking with a yet-to-be-installed one
18389
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
18390
test "$hardcode_minus_L_F77" != no; then
18391
# Linking always hardcodes the temporary library directory.
18392
hardcode_action_F77=relink
18394
# We can link without hardcoding, and we can hardcode nonexisting dirs.
18395
hardcode_action_F77=immediate
18398
# We cannot hardcode anything, or else we can only hardcode existing
18400
hardcode_action_F77=unsupported
18402
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
18403
echo "${ECHO_T}$hardcode_action_F77" >&6; }
18405
if test "$hardcode_action_F77" = relink; then
18406
# Fast installation is not supported
18407
enable_fast_install=no
18408
elif test "$shlibpath_overrides_runpath" = yes ||
18409
test "$enable_shared" = no; then
18410
# Fast installation is not necessary
18411
enable_fast_install=needless
18415
# The else clause should only fire when bootstrapping the
18416
# libtool distribution, otherwise you forgot to ship ltmain.sh
18417
# with your package, and you will get complaints that there are
18418
# no rules to generate ltmain.sh.
18419
if test -f "$ltmain"; then
18420
# See if we are running on zsh, and set the options which allow our commands through
18421
# without removal of \ escapes.
18422
if test -n "${ZSH_VERSION+set}" ; then
18423
setopt NO_GLOB_SUBST
18425
# Now quote all the things that may contain metacharacters while being
18426
# careful not to overquote the AC_SUBSTed values. We take copies of the
18427
# variables and quote the copies for generation of the libtool script.
18428
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18430
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18431
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18432
deplibs_check_method reload_flag reload_cmds need_locks \
18433
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18434
lt_cv_sys_global_symbol_to_c_name_address \
18435
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18436
old_postinstall_cmds old_postuninstall_cmds \
18440
lt_prog_compiler_wl_F77 \
18441
lt_prog_compiler_pic_F77 \
18442
lt_prog_compiler_static_F77 \
18443
lt_prog_compiler_no_builtin_flag_F77 \
18444
export_dynamic_flag_spec_F77 \
18445
thread_safe_flag_spec_F77 \
18446
whole_archive_flag_spec_F77 \
18447
enable_shared_with_static_runtimes_F77 \
18448
old_archive_cmds_F77 \
18449
old_archive_from_new_cmds_F77 \
18450
predep_objects_F77 \
18451
postdep_objects_F77 \
18454
compiler_lib_search_path_F77 \
18455
compiler_lib_search_dirs_F77 \
18457
archive_expsym_cmds_F77 \
18458
postinstall_cmds_F77 \
18459
postuninstall_cmds_F77 \
18460
old_archive_from_expsyms_cmds_F77 \
18461
allow_undefined_flag_F77 \
18462
no_undefined_flag_F77 \
18463
export_symbols_cmds_F77 \
18464
hardcode_libdir_flag_spec_F77 \
18465
hardcode_libdir_flag_spec_ld_F77 \
18466
hardcode_libdir_separator_F77 \
18467
hardcode_automatic_F77 \
18469
module_expsym_cmds_F77 \
18470
lt_cv_prog_compiler_c_o_F77 \
18471
fix_srcfile_path_F77 \
18472
exclude_expsyms_F77 \
18473
include_expsyms_F77; do
18476
old_archive_cmds_F77 | \
18477
old_archive_from_new_cmds_F77 | \
18478
archive_cmds_F77 | \
18479
archive_expsym_cmds_F77 | \
18480
module_cmds_F77 | \
18481
module_expsym_cmds_F77 | \
18482
old_archive_from_expsyms_cmds_F77 | \
18483
export_symbols_cmds_F77 | \
18484
extract_expsyms_cmds | reload_cmds | finish_cmds | \
18485
postinstall_cmds | postuninstall_cmds | \
18486
old_postinstall_cmds | old_postuninstall_cmds | \
18487
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18488
# Double-quote double-evaled strings.
18489
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18492
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18498
*'\$0 --fallback-echo"')
18499
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18505
cat <<__EOF__ >> "$cfgfile"
18506
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18508
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18510
# Shell to use when invoking shell scripts.
18513
# Whether or not to build shared libraries.
18514
build_libtool_libs=$enable_shared
18516
# Whether or not to build static libraries.
18517
build_old_libs=$enable_static
18519
# Whether or not to add -lc for building shared libraries.
18520
build_libtool_need_lc=$archive_cmds_need_lc_F77
18522
# Whether or not to disallow shared libs when runtime libs are static
18523
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
18525
# Whether or not to optimize for fast installation.
18526
fast_install=$enable_fast_install
18529
host_alias=$host_alias
18533
# The build system.
18534
build_alias=$build_alias
18538
# An echo program that does not interpret backslashes.
18543
AR_FLAGS=$lt_AR_FLAGS
18548
# LTCC compiler flags.
18549
LTCFLAGS=$lt_LTCFLAGS
18551
# A language-specific compiler.
18552
CC=$lt_compiler_F77
18554
# Is the compiler the GNU C compiler?
18560
# The linker used to build libraries.
18563
# Whether we need hard or soft links.
18566
# A BSD-compatible nm program.
18569
# A symbol stripping program
18572
# Used to examine libraries when file_magic_cmd begins "file"
18573
MAGIC_CMD=$MAGIC_CMD
18575
# Used on cygwin: DLL creation program.
18578
# Used on cygwin: object dumper.
18581
# Used on cygwin: assembler.
18584
# The name of the directory that contains temporary libtool files.
18587
# How to create reloadable object files.
18588
reload_flag=$lt_reload_flag
18589
reload_cmds=$lt_reload_cmds
18591
# How to pass a linker flag through the compiler.
18592
wl=$lt_lt_prog_compiler_wl_F77
18594
# Object file suffix (normally "o").
18595
objext="$ac_objext"
18597
# Old archive suffix (normally "a").
18600
# Shared library suffix (normally ".so").
18601
shrext_cmds='$shrext_cmds'
18603
# Executable file suffix (normally "").
18606
# Additional compiler flags for building library objects.
18607
pic_flag=$lt_lt_prog_compiler_pic_F77
18610
# What is the maximum length of a command?
18611
max_cmd_len=$lt_cv_sys_max_cmd_len
18613
# Does compiler simultaneously support -c and -o options?
18614
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
18616
# Must we lock files when doing compilation?
18617
need_locks=$lt_need_locks
18619
# Do we need the lib prefix for modules?
18620
need_lib_prefix=$need_lib_prefix
18622
# Do we need a version for libraries?
18623
need_version=$need_version
18625
# Whether dlopen is supported.
18626
dlopen_support=$enable_dlopen
18628
# Whether dlopen of programs is supported.
18629
dlopen_self=$enable_dlopen_self
18631
# Whether dlopen of statically linked programs is supported.
18632
dlopen_self_static=$enable_dlopen_self_static
18634
# Compiler flag to prevent dynamic linking.
18635
link_static_flag=$lt_lt_prog_compiler_static_F77
18637
# Compiler flag to turn off builtin functions.
18638
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
18640
# Compiler flag to allow reflexive dlopens.
18641
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
18643
# Compiler flag to generate shared objects directly from archives.
18644
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
18646
# Compiler flag to generate thread-safe objects.
18647
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
18649
# Library versioning type.
18650
version_type=$version_type
18652
# Format of library name prefix.
18653
libname_spec=$lt_libname_spec
18655
# List of archive names. First name is the real one, the rest are links.
18656
# The last name is the one that the linker finds with -lNAME.
18657
library_names_spec=$lt_library_names_spec
18659
# The coded name of the library, if different from the real name.
18660
soname_spec=$lt_soname_spec
18662
# Commands used to build and install an old-style archive.
18664
old_archive_cmds=$lt_old_archive_cmds_F77
18665
old_postinstall_cmds=$lt_old_postinstall_cmds
18666
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18668
# Create an old-style archive from a shared archive.
18669
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
18671
# Create a temporary old-style archive to link instead of a shared archive.
18672
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
18674
# Commands used to build and install a shared archive.
18675
archive_cmds=$lt_archive_cmds_F77
18676
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
18677
postinstall_cmds=$lt_postinstall_cmds
18678
postuninstall_cmds=$lt_postuninstall_cmds
18680
# Commands used to build a loadable module (assumed same as above if empty)
18681
module_cmds=$lt_module_cmds_F77
18682
module_expsym_cmds=$lt_module_expsym_cmds_F77
18684
# Commands to strip libraries.
18685
old_striplib=$lt_old_striplib
18686
striplib=$lt_striplib
18688
# Dependencies to place before the objects being linked to create a
18690
predep_objects=$lt_predep_objects_F77
18692
# Dependencies to place after the objects being linked to create a
18694
postdep_objects=$lt_postdep_objects_F77
18696
# Dependencies to place before the objects being linked to create a
18698
predeps=$lt_predeps_F77
18700
# Dependencies to place after the objects being linked to create a
18702
postdeps=$lt_postdeps_F77
18704
# The directories searched by this compiler when creating a shared
18706
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
18708
# The library search path used internally by the compiler when linking
18709
# a shared library.
18710
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
18712
# Method to check whether dependent libraries are shared objects.
18713
deplibs_check_method=$lt_deplibs_check_method
18715
# Command to use when deplibs_check_method == file_magic.
18716
file_magic_cmd=$lt_file_magic_cmd
18718
# Flag that allows shared libraries with undefined symbols to be built.
18719
allow_undefined_flag=$lt_allow_undefined_flag_F77
18721
# Flag that forces no undefined symbols.
18722
no_undefined_flag=$lt_no_undefined_flag_F77
18724
# Commands used to finish a libtool library installation in a directory.
18725
finish_cmds=$lt_finish_cmds
18727
# Same as above, but a single script fragment to be evaled but not shown.
18728
finish_eval=$lt_finish_eval
18730
# Take the output of nm and produce a listing of raw symbols and C names.
18731
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18733
# Transform the output of nm in a proper C declaration
18734
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18736
# Transform the output of nm in a C name address pair
18737
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18739
# This is the shared library runtime path variable.
18740
runpath_var=$runpath_var
18742
# This is the shared library path variable.
18743
shlibpath_var=$shlibpath_var
18745
# Is shlibpath searched before the hard-coded library search path?
18746
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18748
# How to hardcode a shared library path into an executable.
18749
hardcode_action=$hardcode_action_F77
18751
# Whether we should hardcode library paths into libraries.
18752
hardcode_into_libs=$hardcode_into_libs
18754
# Flag to hardcode \$libdir into a binary during linking.
18755
# This must work even if \$libdir does not exist.
18756
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
18758
# If ld is used when linking, flag to hardcode \$libdir into
18759
# a binary during linking. This must work even if \$libdir does
18761
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
18763
# Whether we need a single -rpath flag with a separated argument.
18764
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
18766
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18767
# resulting binary.
18768
hardcode_direct=$hardcode_direct_F77
18770
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18771
# resulting binary.
18772
hardcode_minus_L=$hardcode_minus_L_F77
18774
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18775
# the resulting binary.
18776
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
18778
# Set to yes if building a shared library automatically hardcodes DIR into the library
18779
# and all subsequent libraries and executables linked against it.
18780
hardcode_automatic=$hardcode_automatic_F77
18782
# Variables whose values should be saved in libtool wrapper scripts and
18783
# restored at relink time.
18784
variables_saved_for_relink="$variables_saved_for_relink"
18786
# Whether libtool must link a program against all its dependency libraries.
18787
link_all_deplibs=$link_all_deplibs_F77
18789
# Compile-time system search path for libraries
18790
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18792
# Run-time system search path for libraries
18793
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18795
# Fix the shell variable \$srcfile for the compiler.
18796
fix_srcfile_path=$lt_fix_srcfile_path
18798
# Set to yes if exported symbols are required.
18799
always_export_symbols=$always_export_symbols_F77
18801
# The commands to list exported symbols.
18802
export_symbols_cmds=$lt_export_symbols_cmds_F77
18804
# The commands to extract the exported symbol list from a shared archive.
18805
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18807
# Symbols that should not be listed in the preloaded symbols.
18808
exclude_expsyms=$lt_exclude_expsyms_F77
18810
# Symbols that must always be exported.
18811
include_expsyms=$lt_include_expsyms_F77
18813
# ### END LIBTOOL TAG CONFIG: $tagname
18819
# If there is no Makefile yet, we rely on a make rule to execute
18820
# `config.status --recheck' to rerun these tests and create the
18821
# libtool script then.
18822
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18823
if test -f "$ltmain_in"; then
18824
test -f Makefile && make "$ltmain"
18830
ac_cpp='$CPP $CPPFLAGS'
18831
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18832
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18833
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18843
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
18846
# Source file extension for Java test sources.
18849
# Object file extension for compiled Java test sources.
18853
# Code to be used in simple compile tests
18854
lt_simple_compile_test_code="class foo {}"
18856
# Code to be used in simple link tests
18857
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
18859
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18861
# If no C compiler was specified, use CC.
18864
# If no C compiler flags were specified, use CFLAGS.
18865
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18867
# Allow CC to be a program name with arguments.
18871
# save warnings/boilerplate of simple test code
18872
ac_outfile=conftest.$ac_objext
18873
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18874
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18875
_lt_compiler_boilerplate=`cat conftest.err`
18878
ac_outfile=conftest.$ac_objext
18879
echo "$lt_simple_link_test_code" >conftest.$ac_ext
18880
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18881
_lt_linker_boilerplate=`cat conftest.err`
18885
# Allow CC to be a program name with arguments.
18890
for cc_temp in $compiler""; do
18892
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18893
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18898
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18901
# GCJ did not exist at the time GCC didn't implicitly link libc in.
18902
archive_cmds_need_lc_GCJ=no
18904
old_archive_cmds_GCJ=$old_archive_cmds
18907
lt_prog_compiler_no_builtin_flag_GCJ=
18909
if test "$GCC" = yes; then
18910
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
18913
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
18914
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
18915
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
18916
echo $ECHO_N "(cached) $ECHO_C" >&6
18918
lt_cv_prog_compiler_rtti_exceptions=no
18919
ac_outfile=conftest.$ac_objext
18920
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18921
lt_compiler_flag="-fno-rtti -fno-exceptions"
18922
# Insert the option either (1) after the last *FLAGS variable, or
18923
# (2) before a word containing "conftest.", or (3) at the end.
18924
# Note that $ac_compile itself does not contain backslashes and begins
18925
# with a dollar sign (not a hyphen), so the echo should work correctly.
18926
# The option is referenced via a variable to avoid confusing sed.
18927
lt_compile=`echo "$ac_compile" | $SED \
18928
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18929
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18930
-e 's:$: $lt_compiler_flag:'`
18931
(eval echo "\"\$as_me:18931: $lt_compile\"" >&5)
18932
(eval "$lt_compile" 2>conftest.err)
18934
cat conftest.err >&5
18935
echo "$as_me:18935: \$? = $ac_status" >&5
18936
if (exit $ac_status) && test -s "$ac_outfile"; then
18937
# The compiler can only warn and ignore the option if not recognized
18938
# So say no if there are warnings other than the usual output.
18939
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18940
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18941
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18942
lt_cv_prog_compiler_rtti_exceptions=yes
18948
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18949
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
18951
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18952
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18959
lt_prog_compiler_wl_GCJ=
18960
lt_prog_compiler_pic_GCJ=
18961
lt_prog_compiler_static_GCJ=
18963
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18964
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
18966
if test "$GCC" = yes; then
18967
lt_prog_compiler_wl_GCJ='-Wl,'
18968
lt_prog_compiler_static_GCJ='-static'
18972
# All AIX code is PIC.
18973
if test "$host_cpu" = ia64; then
18974
# AIX 5 now supports IA64 processor
18975
lt_prog_compiler_static_GCJ='-Bstatic'
18980
# FIXME: we need at least 68020 code to build shared libraries, but
18981
# adding the `-m68020' flag to GCC prevents building anything better,
18983
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18986
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18987
# PIC is the default for these OSes.
18990
mingw* | cygwin* | pw32* | os2*)
18991
# This hack is so that the source file can tell whether it is being
18992
# built for inclusion in a dll (and should export symbols for example).
18993
# Although the cygwin gcc ignores -fPIC, still need this for old-style
18994
# (--disable-auto-import) libraries
18998
darwin* | rhapsody*)
18999
# PIC is the default on this platform
19000
# Common symbols not allowed in MH_DYLIB files
19001
lt_prog_compiler_pic_GCJ='-fno-common'
19005
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
19006
# Instead, we relocate shared libraries at runtime.
19010
# Just because we use GCC doesn't mean we suddenly get shared libraries
19011
# on systems that don't support them.
19012
lt_prog_compiler_can_build_shared_GCJ=no
19017
if test -d /usr/nec; then
19018
lt_prog_compiler_pic_GCJ=-Kconform_pic
19023
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19024
# not for PA HP-UX.
19030
lt_prog_compiler_pic_GCJ='-fPIC'
19036
lt_prog_compiler_pic_GCJ='-fPIC'
19040
# PORTME Check for flag to pass linker flags through the system compiler.
19043
lt_prog_compiler_wl_GCJ='-Wl,'
19044
if test "$host_cpu" = ia64; then
19045
# AIX 5 now supports IA64 processor
19046
lt_prog_compiler_static_GCJ='-Bstatic'
19048
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
19052
# PIC is the default on this platform
19053
# Common symbols not allowed in MH_DYLIB files
19054
case $cc_basename in
19056
lt_prog_compiler_pic_GCJ='-qnocommon'
19057
lt_prog_compiler_wl_GCJ='-Wl,'
19062
mingw* | cygwin* | pw32* | os2*)
19063
# This hack is so that the source file can tell whether it is being
19064
# built for inclusion in a dll (and should export symbols for example).
19068
hpux9* | hpux10* | hpux11*)
19069
lt_prog_compiler_wl_GCJ='-Wl,'
19070
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19071
# not for PA HP-UX.
19077
lt_prog_compiler_pic_GCJ='+Z'
19080
# Is there a better lt_prog_compiler_static that works with the bundled CC?
19081
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
19084
irix5* | irix6* | nonstopux*)
19085
lt_prog_compiler_wl_GCJ='-Wl,'
19086
# PIC (with -KPIC) is the default.
19087
lt_prog_compiler_static_GCJ='-non_shared'
19091
lt_prog_compiler_pic_GCJ='-KPIC'
19092
lt_prog_compiler_static_GCJ='-Bstatic'
19095
linux* | k*bsd*-gnu)
19096
case $cc_basename in
19098
lt_prog_compiler_wl_GCJ='-Wl,'
19099
lt_prog_compiler_pic_GCJ='-KPIC'
19100
lt_prog_compiler_static_GCJ='-static'
19102
pgcc* | pgf77* | pgf90* | pgf95*)
19103
# Portland Group compilers (*not* the Pentium gcc compiler,
19104
# which looks to be a dead project)
19105
lt_prog_compiler_wl_GCJ='-Wl,'
19106
lt_prog_compiler_pic_GCJ='-fpic'
19107
lt_prog_compiler_static_GCJ='-Bstatic'
19110
lt_prog_compiler_wl_GCJ='-Wl,'
19111
# All Alpha code is PIC.
19112
lt_prog_compiler_static_GCJ='-non_shared'
19115
case `$CC -V 2>&1 | sed 5q` in
19118
lt_prog_compiler_pic_GCJ='-KPIC'
19119
lt_prog_compiler_static_GCJ='-Bstatic'
19120
lt_prog_compiler_wl_GCJ='-Wl,'
19123
# Sun Fortran 8.3 passes all unrecognized flags to the linker
19124
lt_prog_compiler_pic_GCJ='-KPIC'
19125
lt_prog_compiler_static_GCJ='-Bstatic'
19126
lt_prog_compiler_wl_GCJ=''
19133
osf3* | osf4* | osf5*)
19134
lt_prog_compiler_wl_GCJ='-Wl,'
19135
# All OSF/1 code is PIC.
19136
lt_prog_compiler_static_GCJ='-non_shared'
19140
lt_prog_compiler_static_GCJ='-non_shared'
19144
lt_prog_compiler_pic_GCJ='-KPIC'
19145
lt_prog_compiler_static_GCJ='-Bstatic'
19146
case $cc_basename in
19147
f77* | f90* | f95*)
19148
lt_prog_compiler_wl_GCJ='-Qoption ld ';;
19150
lt_prog_compiler_wl_GCJ='-Wl,';;
19155
lt_prog_compiler_wl_GCJ='-Qoption ld '
19156
lt_prog_compiler_pic_GCJ='-PIC'
19157
lt_prog_compiler_static_GCJ='-Bstatic'
19160
sysv4 | sysv4.2uw2* | sysv4.3*)
19161
lt_prog_compiler_wl_GCJ='-Wl,'
19162
lt_prog_compiler_pic_GCJ='-KPIC'
19163
lt_prog_compiler_static_GCJ='-Bstatic'
19167
if test -d /usr/nec ;then
19168
lt_prog_compiler_pic_GCJ='-Kconform_pic'
19169
lt_prog_compiler_static_GCJ='-Bstatic'
19173
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19174
lt_prog_compiler_wl_GCJ='-Wl,'
19175
lt_prog_compiler_pic_GCJ='-KPIC'
19176
lt_prog_compiler_static_GCJ='-Bstatic'
19180
lt_prog_compiler_wl_GCJ='-Wl,'
19181
lt_prog_compiler_can_build_shared_GCJ=no
19185
lt_prog_compiler_pic_GCJ='-pic'
19186
lt_prog_compiler_static_GCJ='-Bstatic'
19190
lt_prog_compiler_can_build_shared_GCJ=no
19195
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
19196
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
19199
# Check to make sure the PIC flag actually works.
19201
if test -n "$lt_prog_compiler_pic_GCJ"; then
19203
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
19204
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
19205
if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
19206
echo $ECHO_N "(cached) $ECHO_C" >&6
19208
lt_cv_prog_compiler_pic_works_GCJ=no
19209
ac_outfile=conftest.$ac_objext
19210
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19211
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
19212
# Insert the option either (1) after the last *FLAGS variable, or
19213
# (2) before a word containing "conftest.", or (3) at the end.
19214
# Note that $ac_compile itself does not contain backslashes and begins
19215
# with a dollar sign (not a hyphen), so the echo should work correctly.
19216
# The option is referenced via a variable to avoid confusing sed.
19217
lt_compile=`echo "$ac_compile" | $SED \
19218
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19219
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19220
-e 's:$: $lt_compiler_flag:'`
19221
(eval echo "\"\$as_me:19221: $lt_compile\"" >&5)
19222
(eval "$lt_compile" 2>conftest.err)
19224
cat conftest.err >&5
19225
echo "$as_me:19225: \$? = $ac_status" >&5
19226
if (exit $ac_status) && test -s "$ac_outfile"; then
19227
# The compiler can only warn and ignore the option if not recognized
19228
# So say no if there are warnings other than the usual output.
19229
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19230
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19231
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19232
lt_cv_prog_compiler_pic_works_GCJ=yes
19238
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
19239
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
19241
if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
19242
case $lt_prog_compiler_pic_GCJ in
19244
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
19247
lt_prog_compiler_pic_GCJ=
19248
lt_prog_compiler_can_build_shared_GCJ=no
19253
# For platforms which do not support PIC, -DPIC is meaningless:
19255
lt_prog_compiler_pic_GCJ=
19258
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
19263
# Check to make sure the static flag actually works.
19265
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
19266
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19267
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19268
if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
19269
echo $ECHO_N "(cached) $ECHO_C" >&6
19271
lt_cv_prog_compiler_static_works_GCJ=no
19272
save_LDFLAGS="$LDFLAGS"
19273
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19274
echo "$lt_simple_link_test_code" > conftest.$ac_ext
19275
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19276
# The linker can only warn and ignore the option if not recognized
19277
# So say no if there are warnings
19278
if test -s conftest.err; then
19279
# Append any errors to the config.log.
19280
cat conftest.err 1>&5
19281
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19282
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19283
if diff conftest.exp conftest.er2 >/dev/null; then
19284
lt_cv_prog_compiler_static_works_GCJ=yes
19287
lt_cv_prog_compiler_static_works_GCJ=yes
19291
LDFLAGS="$save_LDFLAGS"
19294
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
19295
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
19297
if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
19300
lt_prog_compiler_static_GCJ=
19304
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19305
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19306
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
19307
echo $ECHO_N "(cached) $ECHO_C" >&6
19309
lt_cv_prog_compiler_c_o_GCJ=no
19310
$rm -r conftest 2>/dev/null
19314
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19316
lt_compiler_flag="-o out/conftest2.$ac_objext"
19317
# Insert the option either (1) after the last *FLAGS variable, or
19318
# (2) before a word containing "conftest.", or (3) at the end.
19319
# Note that $ac_compile itself does not contain backslashes and begins
19320
# with a dollar sign (not a hyphen), so the echo should work correctly.
19321
lt_compile=`echo "$ac_compile" | $SED \
19322
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19323
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19324
-e 's:$: $lt_compiler_flag:'`
19325
(eval echo "\"\$as_me:19325: $lt_compile\"" >&5)
19326
(eval "$lt_compile" 2>out/conftest.err)
19328
cat out/conftest.err >&5
19329
echo "$as_me:19329: \$? = $ac_status" >&5
19330
if (exit $ac_status) && test -s out/conftest2.$ac_objext
19332
# The compiler can only warn and ignore the option if not recognized
19333
# So say no if there are warnings
19334
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19335
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19336
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19337
lt_cv_prog_compiler_c_o_GCJ=yes
19342
# SGI C++ compiler will create directory out/ii_files/ for
19343
# template instantiation
19344
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19345
$rm out/* && rmdir out
19351
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
19352
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
19355
hard_links="nottested"
19356
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
19357
# do not overwrite the value of need_locks provided by the user
19358
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19359
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19362
ln conftest.a conftest.b 2>/dev/null && hard_links=no
19364
ln conftest.a conftest.b 2>&5 || hard_links=no
19365
ln conftest.a conftest.b 2>/dev/null && hard_links=no
19366
{ echo "$as_me:$LINENO: result: $hard_links" >&5
19367
echo "${ECHO_T}$hard_links" >&6; }
19368
if test "$hard_links" = no; then
19369
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19370
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19377
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19378
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19381
allow_undefined_flag_GCJ=
19382
enable_shared_with_static_runtimes_GCJ=no
19384
archive_expsym_cmds_GCJ=
19385
old_archive_From_new_cmds_GCJ=
19386
old_archive_from_expsyms_cmds_GCJ=
19387
export_dynamic_flag_spec_GCJ=
19388
whole_archive_flag_spec_GCJ=
19389
thread_safe_flag_spec_GCJ=
19390
hardcode_libdir_flag_spec_GCJ=
19391
hardcode_libdir_flag_spec_ld_GCJ=
19392
hardcode_libdir_separator_GCJ=
19393
hardcode_direct_GCJ=no
19394
hardcode_minus_L_GCJ=no
19395
hardcode_shlibpath_var_GCJ=unsupported
19396
link_all_deplibs_GCJ=unknown
19397
hardcode_automatic_GCJ=no
19399
module_expsym_cmds_GCJ=
19400
always_export_symbols_GCJ=no
19401
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19402
# include_expsyms should be a list of space-separated symbols to be *always*
19403
# included in the symbol list
19404
include_expsyms_GCJ=
19405
# exclude_expsyms can be an extended regexp of symbols to exclude
19406
# it will be wrapped by ` (' and `)$', so one must not match beginning or
19407
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19408
# as well as any symbol that contains `d'.
19409
exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19410
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19411
# platforms (ab)use it in PIC code, but their linkers get confused if
19412
# the symbol is explicitly referenced. Since portable code cannot
19413
# rely on this symbol name, it's probably fine to never include it in
19414
# preloaded symbol tables.
19415
# Exclude shared library initialization/finalization symbols.
19416
extract_expsyms_cmds=
19417
# Just being paranoid about ensuring that cc_basename is set.
19418
for cc_temp in $compiler""; do
19420
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19421
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19426
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19429
cygwin* | mingw* | pw32*)
19430
# FIXME: the MSVC++ port hasn't been tested in a loooong time
19431
# When not using gcc, we currently assume that we are using
19432
# Microsoft Visual C++.
19433
if test "$GCC" != yes; then
19438
# we just hope/assume this is gcc and not c89 (= MSVC++)
19447
if test "$with_gnu_ld" = yes; then
19448
# If archive_cmds runs LD, not CC, wlarc should be empty
19451
# Set some defaults for GNU ld with shared library support. These
19452
# are reset later if shared libraries are not supported. Putting them
19453
# here allows them to be overridden if necessary.
19454
runpath_var=LD_RUN_PATH
19455
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
19456
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
19457
# ancient GNU ld didn't support --whole-archive et. al.
19458
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19459
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19461
whole_archive_flag_spec_GCJ=
19463
supports_anon_versioning=no
19464
case `$LD -v 2>/dev/null` in
19465
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19466
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19467
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19468
*\ 2.11.*) ;; # other 2.11 versions
19469
*) supports_anon_versioning=yes ;;
19472
# See if GNU ld supports shared libraries.
19475
# On AIX/PPC, the GNU linker is very broken
19476
if test "$host_cpu" != ia64; then
19480
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
19481
*** to be unable to reliably create shared libraries on AIX.
19482
*** Therefore, libtool is disabling shared libraries support. If you
19483
*** really care for shared libraries, you may want to modify your PATH
19484
*** so that a non-GNU linker is found, and then restart.
19491
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)'
19492
hardcode_libdir_flag_spec_GCJ='-L$libdir'
19493
hardcode_minus_L_GCJ=yes
19495
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19496
# that the semantics of dynamic libraries on AmigaOS, at least up
19497
# to version 4, is to share data among multiple programs linked
19498
# with the same dynamic library. Since this doesn't match the
19499
# behavior of shared libraries on other platforms, we can't use
19505
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19506
allow_undefined_flag_GCJ=unsupported
19507
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19508
# support --undefined. This deserves some investigation. FIXME
19509
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19515
cygwin* | mingw* | pw32*)
19516
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
19517
# as there is no search path for DLLs.
19518
hardcode_libdir_flag_spec_GCJ='-L$libdir'
19519
allow_undefined_flag_GCJ=unsupported
19520
always_export_symbols_GCJ=no
19521
enable_shared_with_static_runtimes_GCJ=yes
19522
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
19524
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19525
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19526
# If the export-symbols file already is a .def file (1st line
19527
# is EXPORTS), use it as is; otherwise, prepend...
19528
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19529
cp $export_symbols $output_objdir/$soname.def;
19531
echo EXPORTS > $output_objdir/$soname.def;
19532
cat $export_symbols >> $output_objdir/$soname.def;
19534
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19541
hardcode_direct_GCJ=no
19542
hardcode_shlibpath_var_GCJ=no
19543
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19544
export_dynamic_flag_spec_GCJ='${wl}-E'
19545
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19546
# Instead, shared libraries are loaded at an image base (0x10000000 by
19547
# default) and relocated if they conflict, which is a slow very memory
19548
# consuming and fragmenting process. To avoid this, we pick a random,
19549
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19550
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
19551
archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
19552
archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
19555
gnu* | linux* | k*bsd*-gnu)
19556
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19558
case $cc_basename,$host_cpu in
19559
pgcc*) # Portland Group C compiler
19560
whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
19561
tmp_addflag=' $pic_flag'
19563
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
19564
whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
19565
tmp_addflag=' $pic_flag -Mnomain' ;;
19566
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
19567
tmp_addflag=' -i_dynamic' ;;
19568
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
19569
tmp_addflag=' -i_dynamic -nofor_main' ;;
19570
ifc* | ifort*) # Intel Fortran compiler
19571
tmp_addflag=' -nofor_main' ;;
19573
case `$CC -V 2>&1 | sed 5q` in
19574
*Sun\ C*) # Sun C 5.9
19575
whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
19576
tmp_sharedflag='-G' ;;
19577
*Sun\ F*) # Sun Fortran 8.3
19578
tmp_sharedflag='-G' ;;
19580
tmp_sharedflag='-shared' ;;
19582
archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19584
if test $supports_anon_versioning = yes; then
19585
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
19586
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19587
$echo "local: *; };" >> $output_objdir/$libname.ver~
19588
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19590
link_all_deplibs_GCJ=no
19596
netbsd* | netbsdelf*-gnu)
19597
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19598
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19601
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19602
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19607
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19611
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
19612
*** create shared libraries on Solaris systems. Therefore, libtool
19613
*** is disabling shared libraries support. We urge you to upgrade GNU
19614
*** binutils to release 2.9.1 or newer. Another option is to modify
19615
*** your PATH or compiler configuration so that the native linker is
19616
*** used, and then restart.
19619
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19620
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19621
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19627
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
19628
case `$LD -v 2>&1` in
19629
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
19633
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
19634
*** reliably create shared libraries on SCO systems. Therefore, libtool
19635
*** is disabling shared libraries support. We urge you to upgrade GNU
19636
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
19637
*** your PATH or compiler configuration so that the native linker is
19638
*** used, and then restart.
19643
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19644
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
19645
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
19646
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
19655
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19657
hardcode_direct_GCJ=yes
19658
hardcode_shlibpath_var_GCJ=no
19662
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19663
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19664
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19671
if test "$ld_shlibs_GCJ" = no; then
19673
hardcode_libdir_flag_spec_GCJ=
19674
export_dynamic_flag_spec_GCJ=
19675
whole_archive_flag_spec_GCJ=
19678
# PORTME fill in a description of your system's linker (not GNU ld)
19681
allow_undefined_flag_GCJ=unsupported
19682
always_export_symbols_GCJ=yes
19683
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'
19684
# Note: this linker hardcodes the directories in LIBPATH if there
19685
# are no directories specified by -L.
19686
hardcode_minus_L_GCJ=yes
19687
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
19688
# Neither direct hardcoding nor static linking is supported with a
19690
hardcode_direct_GCJ=unsupported
19695
if test "$host_cpu" = ia64; then
19696
# On IA64, the linker does run time linking by default, so we don't
19697
# have to do anything special.
19698
aix_use_runtimelinking=no
19699
exp_sym_flag='-Bexport'
19702
# If we're using GNU nm, then we don't want the "-C" option.
19703
# -C means demangle to AIX nm, but means don't demangle with GNU nm
19704
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19705
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'
19707
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'
19709
aix_use_runtimelinking=no
19711
# Test if we are trying to use run time linking or normal
19712
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
19713
# need to do runtime linking.
19714
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19715
for ld_flag in $LDFLAGS; do
19716
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19717
aix_use_runtimelinking=yes
19724
exp_sym_flag='-bexport'
19725
no_entry_flag='-bnoentry'
19728
# When large executables or shared objects are built, AIX ld can
19729
# have problems creating the table of contents. If linking a library
19730
# or program results in "error TOC overflow" add -mminimal-toc to
19731
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19732
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19734
archive_cmds_GCJ=''
19735
hardcode_direct_GCJ=yes
19736
hardcode_libdir_separator_GCJ=':'
19737
link_all_deplibs_GCJ=yes
19739
if test "$GCC" = yes; then
19740
case $host_os in aix4.[012]|aix4.[012].*)
19741
# We only want to do this on AIX 4.2 and lower, the check
19742
# below for broken collect2 doesn't work under 4.3+
19743
collect2name=`${CC} -print-prog-name=collect2`
19744
if test -f "$collect2name" && \
19745
strings "$collect2name" | grep resolve_lib_name >/dev/null
19747
# We have reworked collect2
19750
# We have old collect2
19751
hardcode_direct_GCJ=unsupported
19752
# It fails to find uninstalled libraries when the uninstalled
19753
# path is not listed in the libpath. Setting hardcode_minus_L
19754
# to unsupported forces relinking
19755
hardcode_minus_L_GCJ=yes
19756
hardcode_libdir_flag_spec_GCJ='-L$libdir'
19757
hardcode_libdir_separator_GCJ=
19761
shared_flag='-shared'
19762
if test "$aix_use_runtimelinking" = yes; then
19763
shared_flag="$shared_flag "'${wl}-G'
19767
if test "$host_cpu" = ia64; then
19768
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19769
# chokes on -Wl,-G. The following line is correct:
19772
if test "$aix_use_runtimelinking" = yes; then
19773
shared_flag='${wl}-G'
19775
shared_flag='${wl}-bM:SRE'
19780
# It seems that -bexpall does not export symbols beginning with
19781
# underscore (_), so it is better to generate a list of symbols to export.
19782
always_export_symbols_GCJ=yes
19783
if test "$aix_use_runtimelinking" = yes; then
19784
# Warning - without using the other runtime loading flags (-brtl),
19785
# -berok will link without error, but may produce a broken library.
19786
allow_undefined_flag_GCJ='-berok'
19787
# Determine the default libpath from the value encoded in an empty executable.
19788
cat >conftest.$ac_ext <<_ACEOF
19791
cat confdefs.h >>conftest.$ac_ext
19792
cat >>conftest.$ac_ext <<_ACEOF
19793
/* end confdefs.h. */
19803
rm -f conftest.$ac_objext conftest$ac_exeext
19804
if { (ac_try="$ac_link"
19805
case "(($ac_try" in
19806
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19807
*) ac_try_echo=$ac_try;;
19809
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19810
(eval "$ac_link") 2>conftest.er1
19812
grep -v '^ *+' conftest.er1 >conftest.err
19814
cat conftest.err >&5
19815
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19816
(exit $ac_status); } && {
19817
test -z "$ac_c_werror_flag" ||
19818
test ! -s conftest.err
19819
} && test -s conftest$ac_exeext &&
19820
$as_test_x conftest$ac_exeext; then
19822
lt_aix_libpath_sed='
19823
/Import File Strings/,/^$/ {
19829
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19830
# Check for a 64-bit object if we didn't find anything.
19831
if test -z "$aix_libpath"; then
19832
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19835
echo "$as_me: failed program was:" >&5
19836
sed 's/^/| /' conftest.$ac_ext >&5
19841
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19842
conftest$ac_exeext conftest.$ac_ext
19843
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19845
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19846
archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
19848
if test "$host_cpu" = ia64; then
19849
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
19850
allow_undefined_flag_GCJ="-z nodefs"
19851
archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
19853
# Determine the default libpath from the value encoded in an empty executable.
19854
cat >conftest.$ac_ext <<_ACEOF
19857
cat confdefs.h >>conftest.$ac_ext
19858
cat >>conftest.$ac_ext <<_ACEOF
19859
/* end confdefs.h. */
19869
rm -f conftest.$ac_objext conftest$ac_exeext
19870
if { (ac_try="$ac_link"
19871
case "(($ac_try" in
19872
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19873
*) ac_try_echo=$ac_try;;
19875
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19876
(eval "$ac_link") 2>conftest.er1
19878
grep -v '^ *+' conftest.er1 >conftest.err
19880
cat conftest.err >&5
19881
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19882
(exit $ac_status); } && {
19883
test -z "$ac_c_werror_flag" ||
19884
test ! -s conftest.err
19885
} && test -s conftest$ac_exeext &&
19886
$as_test_x conftest$ac_exeext; then
19888
lt_aix_libpath_sed='
19889
/Import File Strings/,/^$/ {
19895
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19896
# Check for a 64-bit object if we didn't find anything.
19897
if test -z "$aix_libpath"; then
19898
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19901
echo "$as_me: failed program was:" >&5
19902
sed 's/^/| /' conftest.$ac_ext >&5
19907
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19908
conftest$ac_exeext conftest.$ac_ext
19909
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19911
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19912
# Warning - without using the other run time loading flags,
19913
# -berok will link without error, but may produce a broken library.
19914
no_undefined_flag_GCJ=' ${wl}-bernotok'
19915
allow_undefined_flag_GCJ=' ${wl}-berok'
19916
# Exported symbols can be pulled into shared objects from archives
19917
whole_archive_flag_spec_GCJ='$convenience'
19918
archive_cmds_need_lc_GCJ=yes
19919
# This is similar to how AIX traditionally builds its shared libraries.
19920
archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
19926
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)'
19927
hardcode_libdir_flag_spec_GCJ='-L$libdir'
19928
hardcode_minus_L_GCJ=yes
19929
# see comment about different semantics on the GNU ld section
19934
export_dynamic_flag_spec_GCJ=-rdynamic
19937
cygwin* | mingw* | pw32*)
19938
# When not using gcc, we currently assume that we are using
19939
# Microsoft Visual C++.
19940
# hardcode_libdir_flag_spec is actually meaningless, as there is
19941
# no search path for DLLs.
19942
hardcode_libdir_flag_spec_GCJ=' '
19943
allow_undefined_flag_GCJ=unsupported
19944
# Tell ltmain to make .lib files, not .a files.
19946
# Tell ltmain to make .dll files, not .so files.
19948
# FIXME: Setting linknames here is a bad hack.
19949
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19950
# The linker will automatically build a .lib file if we build a DLL.
19951
old_archive_From_new_cmds_GCJ='true'
19952
# FIXME: Should let the user specify the lib program.
19953
old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
19954
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
19955
enable_shared_with_static_runtimes_GCJ=yes
19958
darwin* | rhapsody*)
19960
rhapsody* | darwin1.[012])
19961
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
19964
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19965
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19967
case ${MACOSX_DEPLOYMENT_TARGET} in
19969
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19972
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
19978
archive_cmds_need_lc_GCJ=no
19979
hardcode_direct_GCJ=no
19980
hardcode_automatic_GCJ=yes
19981
hardcode_shlibpath_var_GCJ=unsupported
19982
whole_archive_flag_spec_GCJ=''
19983
link_all_deplibs_GCJ=yes
19984
if test "$GCC" = yes ; then
19985
output_verbose_link_cmd='echo'
19986
archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
19987
module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19988
archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
19989
module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
19991
case $cc_basename in
19993
output_verbose_link_cmd='echo'
19994
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
19995
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19996
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19997
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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19998
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}'
20008
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20009
hardcode_libdir_flag_spec_GCJ='-L$libdir'
20010
hardcode_shlibpath_var_GCJ=no
20017
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
20018
# support. Future versions do this automatically, but an explicit c++rt0.o
20019
# does not break anything, and helps significantly (at the cost of a little
20022
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
20023
hardcode_libdir_flag_spec_GCJ='-R$libdir'
20024
hardcode_direct_GCJ=yes
20025
hardcode_shlibpath_var_GCJ=no
20028
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
20030
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20031
hardcode_direct_GCJ=yes
20032
hardcode_minus_L_GCJ=yes
20033
hardcode_shlibpath_var_GCJ=no
20036
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
20037
freebsd* | dragonfly*)
20038
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
20039
hardcode_libdir_flag_spec_GCJ='-R$libdir'
20040
hardcode_direct_GCJ=yes
20041
hardcode_shlibpath_var_GCJ=no
20045
if test "$GCC" = yes; then
20046
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'
20048
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'
20050
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
20051
hardcode_libdir_separator_GCJ=:
20052
hardcode_direct_GCJ=yes
20054
# hardcode_minus_L: Not really in the search PATH,
20055
# but as the default location of the library.
20056
hardcode_minus_L_GCJ=yes
20057
export_dynamic_flag_spec_GCJ='${wl}-E'
20061
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
20062
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20064
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
20066
if test "$with_gnu_ld" = no; then
20067
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
20068
hardcode_libdir_separator_GCJ=:
20070
hardcode_direct_GCJ=yes
20071
export_dynamic_flag_spec_GCJ='${wl}-E'
20073
# hardcode_minus_L: Not really in the search PATH,
20074
# but as the default location of the library.
20075
hardcode_minus_L_GCJ=yes
20080
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
20083
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20086
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
20089
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20095
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20098
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
20101
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20105
if test "$with_gnu_ld" = no; then
20106
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
20107
hardcode_libdir_separator_GCJ=:
20111
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
20112
hardcode_direct_GCJ=no
20113
hardcode_shlibpath_var_GCJ=no
20116
hardcode_direct_GCJ=yes
20117
export_dynamic_flag_spec_GCJ='${wl}-E'
20119
# hardcode_minus_L: Not really in the search PATH,
20120
# but as the default location of the library.
20121
hardcode_minus_L_GCJ=yes
20127
irix5* | irix6* | nonstopux*)
20128
if test "$GCC" = yes; then
20129
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'
20131
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'
20132
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
20134
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20135
hardcode_libdir_separator_GCJ=:
20136
link_all_deplibs_GCJ=yes
20139
netbsd* | netbsdelf*-gnu)
20140
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20141
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
20143
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
20145
hardcode_libdir_flag_spec_GCJ='-R$libdir'
20146
hardcode_direct_GCJ=yes
20147
hardcode_shlibpath_var_GCJ=no
20151
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20152
hardcode_direct_GCJ=yes
20153
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20154
hardcode_libdir_separator_GCJ=:
20155
hardcode_shlibpath_var_GCJ=no
20159
if test -f /usr/libexec/ld.so; then
20160
hardcode_direct_GCJ=yes
20161
hardcode_shlibpath_var_GCJ=no
20162
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20163
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20164
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
20165
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
20166
export_dynamic_flag_spec_GCJ='${wl}-E'
20169
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
20170
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20171
hardcode_libdir_flag_spec_GCJ='-R$libdir'
20174
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20175
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
20185
hardcode_libdir_flag_spec_GCJ='-L$libdir'
20186
hardcode_minus_L_GCJ=yes
20187
allow_undefined_flag_GCJ=unsupported
20188
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'
20189
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
20193
if test "$GCC" = yes; then
20194
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
20195
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'
20197
allow_undefined_flag_GCJ=' -expect_unresolved \*'
20198
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'
20200
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20201
hardcode_libdir_separator_GCJ=:
20204
osf4* | osf5*) # as osf3* with the addition of -msym flag
20205
if test "$GCC" = yes; then
20206
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
20207
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'
20208
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20210
allow_undefined_flag_GCJ=' -expect_unresolved \*'
20211
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'
20212
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~
20213
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
20215
# Both c and cxx compiler support -rpath directly
20216
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
20218
hardcode_libdir_separator_GCJ=:
20222
no_undefined_flag_GCJ=' -z text'
20223
if test "$GCC" = yes; then
20225
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20226
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20227
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
20230
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20231
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20232
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20234
hardcode_libdir_flag_spec_GCJ='-R$libdir'
20235
hardcode_shlibpath_var_GCJ=no
20237
solaris2.[0-5] | solaris2.[0-5].*) ;;
20239
# The compiler driver will combine and reorder linker options,
20240
# but understands `-z linker_flag'. GCC discards it without `$wl',
20241
# but is careful enough not to reorder.
20242
# Supported since Solaris 2.6 (maybe 2.5.1?)
20243
if test "$GCC" = yes; then
20244
whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20246
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
20250
link_all_deplibs_GCJ=yes
20254
if test "x$host_vendor" = xsequent; then
20255
# Use $CC to link under sequent, because it throws in some extra .o
20256
# files that make .init and .fini sections work.
20257
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
20259
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
20261
hardcode_libdir_flag_spec_GCJ='-L$libdir'
20262
hardcode_direct_GCJ=yes
20263
hardcode_minus_L_GCJ=yes
20264
hardcode_shlibpath_var_GCJ=no
20268
case $host_vendor in
20270
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20271
hardcode_direct_GCJ=yes # is this really true???
20274
## LD is ld it makes a PLAMLIB
20275
## CC just makes a GrossModule.
20276
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20277
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
20278
hardcode_direct_GCJ=no
20281
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20282
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
20285
runpath_var='LD_RUN_PATH'
20286
hardcode_shlibpath_var_GCJ=no
20290
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20291
hardcode_shlibpath_var_GCJ=no
20292
export_dynamic_flag_spec_GCJ='-Bexport'
20296
if test -d /usr/nec; then
20297
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20298
hardcode_shlibpath_var_GCJ=no
20299
runpath_var=LD_RUN_PATH
20300
hardcode_runpath_var=yes
20305
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20306
no_undefined_flag_GCJ='${wl}-z,text'
20307
archive_cmds_need_lc_GCJ=no
20308
hardcode_shlibpath_var_GCJ=no
20309
runpath_var='LD_RUN_PATH'
20311
if test "$GCC" = yes; then
20312
archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20313
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20315
archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20316
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20320
sysv5* | sco3.2v5* | sco5v6*)
20321
# Note: We can NOT use -z defs as we might desire, because we do not
20322
# link with -lc, and that would cause any symbols used from libc to
20323
# always be unresolved, which means just about no library would
20324
# ever link correctly. If we're not using GNU ld we use -z text
20325
# though, which does catch some bad symbols but isn't as heavy-handed
20327
no_undefined_flag_GCJ='${wl}-z,text'
20328
allow_undefined_flag_GCJ='${wl}-z,nodefs'
20329
archive_cmds_need_lc_GCJ=no
20330
hardcode_shlibpath_var_GCJ=no
20331
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
20332
hardcode_libdir_separator_GCJ=':'
20333
link_all_deplibs_GCJ=yes
20334
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
20335
runpath_var='LD_RUN_PATH'
20337
if test "$GCC" = yes; then
20338
archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20339
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20341
archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20342
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20347
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20348
hardcode_libdir_flag_spec_GCJ='-L$libdir'
20349
hardcode_shlibpath_var_GCJ=no
20358
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
20359
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
20360
test "$ld_shlibs_GCJ" = no && can_build_shared=no
20363
# Do we need to explicitly link libc?
20365
case "x$archive_cmds_need_lc_GCJ" in
20367
# Assume -lc should be added
20368
archive_cmds_need_lc_GCJ=yes
20370
if test "$enable_shared" = yes && test "$GCC" = yes; then
20371
case $archive_cmds_GCJ in
20373
# FIXME: we may have to deal with multi-command sequences.
20376
# Test whether the compiler implicitly links with -lc since on some
20377
# systems, -lgcc has to come before -lc. If gcc already passes -lc
20378
# to ld, don't add -lc before -lgcc.
20379
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20380
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
20382
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20384
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20385
(eval $ac_compile) 2>&5
20387
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20388
(exit $ac_status); } 2>conftest.err; then
20391
libobjs=conftest.$ac_objext
20393
wl=$lt_prog_compiler_wl_GCJ
20394
pic_flag=$lt_prog_compiler_pic_GCJ
20400
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
20401
allow_undefined_flag_GCJ=
20402
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20403
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20405
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20406
(exit $ac_status); }
20408
archive_cmds_need_lc_GCJ=no
20410
archive_cmds_need_lc_GCJ=yes
20412
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
20414
cat conftest.err 1>&5
20417
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
20418
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
20425
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20426
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20427
library_names_spec=
20428
libname_spec='lib$name'
20432
postuninstall_cmds=
20436
shlibpath_overrides_runpath=unknown
20438
dynamic_linker="$host_os ld.so"
20439
sys_lib_dlsearch_path_spec="/lib /usr/lib"
20441
need_lib_prefix=unknown
20442
hardcode_into_libs=no
20444
# when you set need_version to no, make sure it does not cause -set_version
20445
# flags to be left without arguments
20446
need_version=unknown
20451
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20452
shlibpath_var=LIBPATH
20454
# AIX 3 has no versioning support, so we append a major version to the name.
20455
soname_spec='${libname}${release}${shared_ext}$major'
20462
hardcode_into_libs=yes
20463
if test "$host_cpu" = ia64; then
20464
# AIX 5 supports IA64
20465
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20466
shlibpath_var=LD_LIBRARY_PATH
20468
# With GCC up to 2.95.x, collect2 would create an import file
20469
# for dependence libraries. The import file would start with
20470
# the line `#! .'. This would cause the generated library to
20471
# depend on `.', always an invalid library. This was fixed in
20472
# development snapshots of GCC prior to 3.0.
20474
aix4 | aix4.[01] | aix4.[01].*)
20475
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20477
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20480
can_build_shared=no
20484
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20485
# soname into executable. Probably we can add versioning support to
20486
# collect2, so additional links can be useful in future.
20487
if test "$aix_use_runtimelinking" = yes; then
20488
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
20489
# instead of lib<name>.a to let people know that these are not
20490
# typical AIX shared libraries.
20491
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20493
# We preserve .a as extension for shared libraries through AIX4.2
20494
# and later when we are not doing run time linking.
20495
library_names_spec='${libname}${release}.a $libname.a'
20496
soname_spec='${libname}${release}${shared_ext}$major'
20498
shlibpath_var=LIBPATH
20503
library_names_spec='$libname.ixlibrary $libname.a'
20504
# Create ${libname}_ixlibrary.a entries in /sys/libs.
20505
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'
20509
library_names_spec='${libname}${shared_ext}'
20510
dynamic_linker="$host_os ld.so"
20511
shlibpath_var=LIBRARY_PATH
20517
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20518
soname_spec='${libname}${release}${shared_ext}$major'
20519
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20520
shlibpath_var=LD_LIBRARY_PATH
20521
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20522
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20523
# the default ld.so.conf also contains /usr/contrib/lib and
20524
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20525
# libtool to hard-code these into programs
20528
cygwin* | mingw* | pw32*)
20529
version_type=windows
20534
case $GCC,$host_os in
20535
yes,cygwin* | yes,mingw* | yes,pw32*)
20536
library_names_spec='$libname.dll.a'
20537
# DLL is installed to $(libdir)/../bin by postinstall_cmds
20538
postinstall_cmds='base_file=`basename \${file}`~
20539
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20540
dldir=$destdir/`dirname \$dlpath`~
20541
test -d \$dldir || mkdir -p \$dldir~
20542
$install_prog $dir/$dlname \$dldir/$dlname~
20543
chmod a+x \$dldir/$dlname'
20544
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20545
dlpath=$dir/\$dldll~
20547
shlibpath_overrides_runpath=yes
20551
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
20552
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20553
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20556
# MinGW DLLs use traditional 'lib' prefix
20557
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20558
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20559
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20560
# It is most probably a Windows format PATH printed by
20561
# mingw gcc, but we are running on Cygwin. Gcc prints its search
20562
# path with ; separators, and with drive letters. We can handle the
20563
# drive letters (cygwin fileutils understands them), so leave them,
20564
# especially as we might pass files found there to a mingw objdump,
20565
# which wouldn't understand a cygwinified path. Ahh.
20566
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20568
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20572
# pw32 DLLs use 'pw' prefix rather than 'lib'
20573
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20579
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20582
dynamic_linker='Win32 ld.exe'
20583
# FIXME: first we should search . and the directory the executable is in
20587
darwin* | rhapsody*)
20588
dynamic_linker="$host_os dyld"
20589
version_type=darwin
20592
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20593
soname_spec='${libname}${release}${major}$shared_ext'
20594
shlibpath_overrides_runpath=yes
20595
shlibpath_var=DYLD_LIBRARY_PATH
20596
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20598
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20605
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20606
soname_spec='${libname}${release}${shared_ext}$major'
20607
shlibpath_var=LD_LIBRARY_PATH
20614
freebsd* | dragonfly*)
20615
# DragonFly does not have aout. When/if they implement a new
20616
# versioning mechanism, adjust this.
20617
if test -x /usr/bin/objformat; then
20618
objformat=`/usr/bin/objformat`
20621
freebsd[123]*) objformat=aout ;;
20622
*) objformat=elf ;;
20625
version_type=freebsd-$objformat
20626
case $version_type in
20628
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20633
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20637
shlibpath_var=LD_LIBRARY_PATH
20640
shlibpath_overrides_runpath=yes
20642
freebsd3.[01]* | freebsdelf3.[01]*)
20643
shlibpath_overrides_runpath=yes
20644
hardcode_into_libs=yes
20646
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20647
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20648
shlibpath_overrides_runpath=no
20649
hardcode_into_libs=yes
20651
*) # from 4.6 on, and DragonFly
20652
shlibpath_overrides_runpath=yes
20653
hardcode_into_libs=yes
20662
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20663
soname_spec='${libname}${release}${shared_ext}$major'
20664
shlibpath_var=LD_LIBRARY_PATH
20665
hardcode_into_libs=yes
20668
hpux9* | hpux10* | hpux11*)
20669
# Give a soname corresponding to the major version so that dld.sl refuses to
20670
# link against other versions.
20677
hardcode_into_libs=yes
20678
dynamic_linker="$host_os dld.so"
20679
shlibpath_var=LD_LIBRARY_PATH
20680
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20681
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20682
soname_spec='${libname}${release}${shared_ext}$major'
20683
if test "X$HPUX_IA64_MODE" = X32; then
20684
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20686
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20688
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20692
hardcode_into_libs=yes
20693
dynamic_linker="$host_os dld.sl"
20694
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20695
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20696
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20697
soname_spec='${libname}${release}${shared_ext}$major'
20698
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20699
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20703
dynamic_linker="$host_os dld.sl"
20704
shlibpath_var=SHLIB_PATH
20705
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20706
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20707
soname_spec='${libname}${release}${shared_ext}$major'
20710
# HP-UX runs *really* slowly unless shared libraries are mode 555.
20711
postinstall_cmds='chmod 555 $lib'
20718
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20719
soname_spec='${libname}${release}${shared_ext}$major'
20720
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20721
shlibpath_var=LD_LIBRARY_PATH
20722
shlibpath_overrides_runpath=no
20723
hardcode_into_libs=yes
20726
irix5* | irix6* | nonstopux*)
20728
nonstopux*) version_type=nonstopux ;;
20730
if test "$lt_cv_prog_gnu_ld" = yes; then
20738
soname_spec='${libname}${release}${shared_ext}$major'
20739
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20741
irix5* | nonstopux*)
20742
libsuff= shlibsuff=
20745
case $LD in # libtool.m4 will add one of these switches to LD
20746
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20747
libsuff= shlibsuff= libmagic=32-bit;;
20748
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20749
libsuff=32 shlibsuff=N32 libmagic=N32;;
20750
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20751
libsuff=64 shlibsuff=64 libmagic=64-bit;;
20752
*) libsuff= shlibsuff= libmagic=never-match;;
20756
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20757
shlibpath_overrides_runpath=no
20758
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20759
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20760
hardcode_into_libs=yes
20763
# No shared lib support for Linux oldld, aout, or coff.
20764
linux*oldld* | linux*aout* | linux*coff*)
20768
# This must be Linux ELF.
20769
linux* | k*bsd*-gnu)
20773
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20774
soname_spec='${libname}${release}${shared_ext}$major'
20775
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20776
shlibpath_var=LD_LIBRARY_PATH
20777
shlibpath_overrides_runpath=no
20778
# This implies no fast_install, which is unacceptable.
20779
# Some rework will be needed to allow for fast_install
20780
# before this can be enabled.
20781
hardcode_into_libs=yes
20783
# Append ld.so.conf contents to the search path
20784
if test -f /etc/ld.so.conf; then
20785
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
20786
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20789
# We used to test for /lib/ld.so.1 and disable shared libraries on
20790
# powerpc, because MkLinux only supported shared libraries with the
20791
# GNU dynamic linker. Since this was broken with cross compilers,
20792
# most powerpc-linux boxes support dynamic linking these days and
20793
# people can always --disable-shared, the test was removed, and we
20794
# assume the GNU/Linux dynamic linker is in use.
20795
dynamic_linker='GNU/Linux ld.so'
20802
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20803
soname_spec='${libname}${release}${shared_ext}$major'
20804
shlibpath_var=LD_LIBRARY_PATH
20805
shlibpath_overrides_runpath=no
20806
hardcode_into_libs=yes
20807
dynamic_linker='NetBSD ld.elf_so'
20814
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20815
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20816
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20817
dynamic_linker='NetBSD (a.out) ld.so'
20819
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20820
soname_spec='${libname}${release}${shared_ext}$major'
20821
dynamic_linker='NetBSD ld.elf_so'
20823
shlibpath_var=LD_LIBRARY_PATH
20824
shlibpath_overrides_runpath=yes
20825
hardcode_into_libs=yes
20830
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20831
shlibpath_var=LD_LIBRARY_PATH
20832
shlibpath_overrides_runpath=yes
20839
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20840
soname_spec='${libname}${release}${shared_ext}$major'
20841
shlibpath_var=LD_LIBRARY_PATH
20842
shlibpath_overrides_runpath=yes
20847
sys_lib_dlsearch_path_spec="/usr/lib"
20849
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20851
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20852
*) need_version=no ;;
20854
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20855
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20856
shlibpath_var=LD_LIBRARY_PATH
20857
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20859
openbsd2.[89] | openbsd2.[89].*)
20860
shlibpath_overrides_runpath=no
20863
shlibpath_overrides_runpath=yes
20867
shlibpath_overrides_runpath=yes
20872
libname_spec='$name'
20875
library_names_spec='$libname${shared_ext} $libname.a'
20876
dynamic_linker='OS/2 ld.exe'
20877
shlibpath_var=LIBPATH
20880
osf3* | osf4* | osf5*)
20884
soname_spec='${libname}${release}${shared_ext}$major'
20885
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20886
shlibpath_var=LD_LIBRARY_PATH
20887
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20888
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20899
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20900
soname_spec='${libname}${release}${shared_ext}$major'
20901
shlibpath_var=LD_LIBRARY_PATH
20902
shlibpath_overrides_runpath=yes
20903
hardcode_into_libs=yes
20904
# ldd complains unless libraries are executable
20905
postinstall_cmds='chmod +x $lib'
20910
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20911
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20912
shlibpath_var=LD_LIBRARY_PATH
20913
shlibpath_overrides_runpath=yes
20914
if test "$with_gnu_ld" = yes; then
20922
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20923
soname_spec='${libname}${release}${shared_ext}$major'
20924
shlibpath_var=LD_LIBRARY_PATH
20925
case $host_vendor in
20927
shlibpath_overrides_runpath=no
20929
export_dynamic_flag_spec='${wl}-Blargedynsym'
20930
runpath_var=LD_RUN_PATH
20938
shlibpath_overrides_runpath=no
20939
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20945
if test -d /usr/nec ;then
20947
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20948
soname_spec='$libname${shared_ext}.$major'
20949
shlibpath_var=LD_LIBRARY_PATH
20953
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20954
version_type=freebsd-elf
20957
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20958
soname_spec='${libname}${release}${shared_ext}$major'
20959
shlibpath_var=LD_LIBRARY_PATH
20960
hardcode_into_libs=yes
20961
if test "$with_gnu_ld" = yes; then
20962
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20963
shlibpath_overrides_runpath=no
20965
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20966
shlibpath_overrides_runpath=yes
20969
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20973
sys_lib_dlsearch_path_spec='/usr/lib'
20978
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20979
soname_spec='${libname}${release}${shared_ext}$major'
20980
shlibpath_var=LD_LIBRARY_PATH
20987
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20988
echo "${ECHO_T}$dynamic_linker" >&6; }
20989
test "$dynamic_linker" = no && can_build_shared=no
20991
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20992
echo $ECHO_N "(cached) $ECHO_C" >&6
20994
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
20997
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20998
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20999
echo $ECHO_N "(cached) $ECHO_C" >&6
21001
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
21004
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21006
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21007
if test "$GCC" = yes; then
21008
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21011
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
21012
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
21013
hardcode_action_GCJ=
21014
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
21015
test -n "$runpath_var_GCJ" || \
21016
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
21018
# We can hardcode non-existant directories.
21019
if test "$hardcode_direct_GCJ" != no &&
21020
# If the only mechanism to avoid hardcoding is shlibpath_var, we
21021
# have to relink, otherwise we might link with an installed library
21022
# when we should be linking with a yet-to-be-installed one
21023
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
21024
test "$hardcode_minus_L_GCJ" != no; then
21025
# Linking always hardcodes the temporary library directory.
21026
hardcode_action_GCJ=relink
21028
# We can link without hardcoding, and we can hardcode nonexisting dirs.
21029
hardcode_action_GCJ=immediate
21032
# We cannot hardcode anything, or else we can only hardcode existing
21034
hardcode_action_GCJ=unsupported
21036
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
21037
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
21039
if test "$hardcode_action_GCJ" = relink; then
21040
# Fast installation is not supported
21041
enable_fast_install=no
21042
elif test "$shlibpath_overrides_runpath" = yes ||
21043
test "$enable_shared" = no; then
21044
# Fast installation is not necessary
21045
enable_fast_install=needless
21049
# The else clause should only fire when bootstrapping the
21050
# libtool distribution, otherwise you forgot to ship ltmain.sh
21051
# with your package, and you will get complaints that there are
21052
# no rules to generate ltmain.sh.
21053
if test -f "$ltmain"; then
21054
# See if we are running on zsh, and set the options which allow our commands through
21055
# without removal of \ escapes.
21056
if test -n "${ZSH_VERSION+set}" ; then
21057
setopt NO_GLOB_SUBST
21059
# Now quote all the things that may contain metacharacters while being
21060
# careful not to overquote the AC_SUBSTed values. We take copies of the
21061
# variables and quote the copies for generation of the libtool script.
21062
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
21064
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21065
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21066
deplibs_check_method reload_flag reload_cmds need_locks \
21067
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21068
lt_cv_sys_global_symbol_to_c_name_address \
21069
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21070
old_postinstall_cmds old_postuninstall_cmds \
21074
lt_prog_compiler_wl_GCJ \
21075
lt_prog_compiler_pic_GCJ \
21076
lt_prog_compiler_static_GCJ \
21077
lt_prog_compiler_no_builtin_flag_GCJ \
21078
export_dynamic_flag_spec_GCJ \
21079
thread_safe_flag_spec_GCJ \
21080
whole_archive_flag_spec_GCJ \
21081
enable_shared_with_static_runtimes_GCJ \
21082
old_archive_cmds_GCJ \
21083
old_archive_from_new_cmds_GCJ \
21084
predep_objects_GCJ \
21085
postdep_objects_GCJ \
21088
compiler_lib_search_path_GCJ \
21089
compiler_lib_search_dirs_GCJ \
21091
archive_expsym_cmds_GCJ \
21092
postinstall_cmds_GCJ \
21093
postuninstall_cmds_GCJ \
21094
old_archive_from_expsyms_cmds_GCJ \
21095
allow_undefined_flag_GCJ \
21096
no_undefined_flag_GCJ \
21097
export_symbols_cmds_GCJ \
21098
hardcode_libdir_flag_spec_GCJ \
21099
hardcode_libdir_flag_spec_ld_GCJ \
21100
hardcode_libdir_separator_GCJ \
21101
hardcode_automatic_GCJ \
21103
module_expsym_cmds_GCJ \
21104
lt_cv_prog_compiler_c_o_GCJ \
21105
fix_srcfile_path_GCJ \
21106
exclude_expsyms_GCJ \
21107
include_expsyms_GCJ; do
21110
old_archive_cmds_GCJ | \
21111
old_archive_from_new_cmds_GCJ | \
21112
archive_cmds_GCJ | \
21113
archive_expsym_cmds_GCJ | \
21114
module_cmds_GCJ | \
21115
module_expsym_cmds_GCJ | \
21116
old_archive_from_expsyms_cmds_GCJ | \
21117
export_symbols_cmds_GCJ | \
21118
extract_expsyms_cmds | reload_cmds | finish_cmds | \
21119
postinstall_cmds | postuninstall_cmds | \
21120
old_postinstall_cmds | old_postuninstall_cmds | \
21121
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21122
# Double-quote double-evaled strings.
21123
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21126
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21132
*'\$0 --fallback-echo"')
21133
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21139
cat <<__EOF__ >> "$cfgfile"
21140
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
21142
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21144
# Shell to use when invoking shell scripts.
21147
# Whether or not to build shared libraries.
21148
build_libtool_libs=$enable_shared
21150
# Whether or not to build static libraries.
21151
build_old_libs=$enable_static
21153
# Whether or not to add -lc for building shared libraries.
21154
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
21156
# Whether or not to disallow shared libs when runtime libs are static
21157
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
21159
# Whether or not to optimize for fast installation.
21160
fast_install=$enable_fast_install
21163
host_alias=$host_alias
21167
# The build system.
21168
build_alias=$build_alias
21172
# An echo program that does not interpret backslashes.
21177
AR_FLAGS=$lt_AR_FLAGS
21182
# LTCC compiler flags.
21183
LTCFLAGS=$lt_LTCFLAGS
21185
# A language-specific compiler.
21186
CC=$lt_compiler_GCJ
21188
# Is the compiler the GNU C compiler?
21194
# The linker used to build libraries.
21197
# Whether we need hard or soft links.
21200
# A BSD-compatible nm program.
21203
# A symbol stripping program
21206
# Used to examine libraries when file_magic_cmd begins "file"
21207
MAGIC_CMD=$MAGIC_CMD
21209
# Used on cygwin: DLL creation program.
21212
# Used on cygwin: object dumper.
21215
# Used on cygwin: assembler.
21218
# The name of the directory that contains temporary libtool files.
21221
# How to create reloadable object files.
21222
reload_flag=$lt_reload_flag
21223
reload_cmds=$lt_reload_cmds
21225
# How to pass a linker flag through the compiler.
21226
wl=$lt_lt_prog_compiler_wl_GCJ
21228
# Object file suffix (normally "o").
21229
objext="$ac_objext"
21231
# Old archive suffix (normally "a").
21234
# Shared library suffix (normally ".so").
21235
shrext_cmds='$shrext_cmds'
21237
# Executable file suffix (normally "").
21240
# Additional compiler flags for building library objects.
21241
pic_flag=$lt_lt_prog_compiler_pic_GCJ
21244
# What is the maximum length of a command?
21245
max_cmd_len=$lt_cv_sys_max_cmd_len
21247
# Does compiler simultaneously support -c and -o options?
21248
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
21250
# Must we lock files when doing compilation?
21251
need_locks=$lt_need_locks
21253
# Do we need the lib prefix for modules?
21254
need_lib_prefix=$need_lib_prefix
21256
# Do we need a version for libraries?
21257
need_version=$need_version
21259
# Whether dlopen is supported.
21260
dlopen_support=$enable_dlopen
21262
# Whether dlopen of programs is supported.
21263
dlopen_self=$enable_dlopen_self
21265
# Whether dlopen of statically linked programs is supported.
21266
dlopen_self_static=$enable_dlopen_self_static
21268
# Compiler flag to prevent dynamic linking.
21269
link_static_flag=$lt_lt_prog_compiler_static_GCJ
21271
# Compiler flag to turn off builtin functions.
21272
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
21274
# Compiler flag to allow reflexive dlopens.
21275
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
21277
# Compiler flag to generate shared objects directly from archives.
21278
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
21280
# Compiler flag to generate thread-safe objects.
21281
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
21283
# Library versioning type.
21284
version_type=$version_type
21286
# Format of library name prefix.
21287
libname_spec=$lt_libname_spec
21289
# List of archive names. First name is the real one, the rest are links.
21290
# The last name is the one that the linker finds with -lNAME.
21291
library_names_spec=$lt_library_names_spec
21293
# The coded name of the library, if different from the real name.
21294
soname_spec=$lt_soname_spec
21296
# Commands used to build and install an old-style archive.
21298
old_archive_cmds=$lt_old_archive_cmds_GCJ
21299
old_postinstall_cmds=$lt_old_postinstall_cmds
21300
old_postuninstall_cmds=$lt_old_postuninstall_cmds
21302
# Create an old-style archive from a shared archive.
21303
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
21305
# Create a temporary old-style archive to link instead of a shared archive.
21306
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
21308
# Commands used to build and install a shared archive.
21309
archive_cmds=$lt_archive_cmds_GCJ
21310
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
21311
postinstall_cmds=$lt_postinstall_cmds
21312
postuninstall_cmds=$lt_postuninstall_cmds
21314
# Commands used to build a loadable module (assumed same as above if empty)
21315
module_cmds=$lt_module_cmds_GCJ
21316
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
21318
# Commands to strip libraries.
21319
old_striplib=$lt_old_striplib
21320
striplib=$lt_striplib
21322
# Dependencies to place before the objects being linked to create a
21324
predep_objects=$lt_predep_objects_GCJ
21326
# Dependencies to place after the objects being linked to create a
21328
postdep_objects=$lt_postdep_objects_GCJ
21330
# Dependencies to place before the objects being linked to create a
21332
predeps=$lt_predeps_GCJ
21334
# Dependencies to place after the objects being linked to create a
21336
postdeps=$lt_postdeps_GCJ
21338
# The directories searched by this compiler when creating a shared
21340
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
21342
# The library search path used internally by the compiler when linking
21343
# a shared library.
21344
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
21346
# Method to check whether dependent libraries are shared objects.
21347
deplibs_check_method=$lt_deplibs_check_method
21349
# Command to use when deplibs_check_method == file_magic.
21350
file_magic_cmd=$lt_file_magic_cmd
21352
# Flag that allows shared libraries with undefined symbols to be built.
21353
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
21355
# Flag that forces no undefined symbols.
21356
no_undefined_flag=$lt_no_undefined_flag_GCJ
21358
# Commands used to finish a libtool library installation in a directory.
21359
finish_cmds=$lt_finish_cmds
21361
# Same as above, but a single script fragment to be evaled but not shown.
21362
finish_eval=$lt_finish_eval
21364
# Take the output of nm and produce a listing of raw symbols and C names.
21365
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21367
# Transform the output of nm in a proper C declaration
21368
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21370
# Transform the output of nm in a C name address pair
21371
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21373
# This is the shared library runtime path variable.
21374
runpath_var=$runpath_var
21376
# This is the shared library path variable.
21377
shlibpath_var=$shlibpath_var
21379
# Is shlibpath searched before the hard-coded library search path?
21380
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21382
# How to hardcode a shared library path into an executable.
21383
hardcode_action=$hardcode_action_GCJ
21385
# Whether we should hardcode library paths into libraries.
21386
hardcode_into_libs=$hardcode_into_libs
21388
# Flag to hardcode \$libdir into a binary during linking.
21389
# This must work even if \$libdir does not exist.
21390
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
21392
# If ld is used when linking, flag to hardcode \$libdir into
21393
# a binary during linking. This must work even if \$libdir does
21395
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
21397
# Whether we need a single -rpath flag with a separated argument.
21398
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
21400
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21401
# resulting binary.
21402
hardcode_direct=$hardcode_direct_GCJ
21404
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21405
# resulting binary.
21406
hardcode_minus_L=$hardcode_minus_L_GCJ
21408
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21409
# the resulting binary.
21410
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
21412
# Set to yes if building a shared library automatically hardcodes DIR into the library
21413
# and all subsequent libraries and executables linked against it.
21414
hardcode_automatic=$hardcode_automatic_GCJ
21416
# Variables whose values should be saved in libtool wrapper scripts and
21417
# restored at relink time.
21418
variables_saved_for_relink="$variables_saved_for_relink"
21420
# Whether libtool must link a program against all its dependency libraries.
21421
link_all_deplibs=$link_all_deplibs_GCJ
21423
# Compile-time system search path for libraries
21424
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21426
# Run-time system search path for libraries
21427
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21429
# Fix the shell variable \$srcfile for the compiler.
21430
fix_srcfile_path=$lt_fix_srcfile_path
21432
# Set to yes if exported symbols are required.
21433
always_export_symbols=$always_export_symbols_GCJ
21435
# The commands to list exported symbols.
21436
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
21438
# The commands to extract the exported symbol list from a shared archive.
21439
extract_expsyms_cmds=$lt_extract_expsyms_cmds
21441
# Symbols that should not be listed in the preloaded symbols.
21442
exclude_expsyms=$lt_exclude_expsyms_GCJ
21444
# Symbols that must always be exported.
21445
include_expsyms=$lt_include_expsyms_GCJ
21447
# ### END LIBTOOL TAG CONFIG: $tagname
21453
# If there is no Makefile yet, we rely on a make rule to execute
21454
# `config.status --recheck' to rerun these tests and create the
21455
# libtool script then.
21456
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21457
if test -f "$ltmain_in"; then
21458
test -f Makefile && make "$ltmain"
21464
ac_cpp='$CPP $CPPFLAGS'
21465
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21466
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21467
ac_compiler_gnu=$ac_cv_c_compiler_gnu
21479
# Source file extension for RC test sources.
21482
# Object file extension for compiled RC test sources.
21486
# Code to be used in simple compile tests
21487
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
21489
# Code to be used in simple link tests
21490
lt_simple_link_test_code="$lt_simple_compile_test_code"
21492
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21494
# If no C compiler was specified, use CC.
21497
# If no C compiler flags were specified, use CFLAGS.
21498
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21500
# Allow CC to be a program name with arguments.
21504
# save warnings/boilerplate of simple test code
21505
ac_outfile=conftest.$ac_objext
21506
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
21507
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21508
_lt_compiler_boilerplate=`cat conftest.err`
21511
ac_outfile=conftest.$ac_objext
21512
echo "$lt_simple_link_test_code" >conftest.$ac_ext
21513
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21514
_lt_linker_boilerplate=`cat conftest.err`
21518
# Allow CC to be a program name with arguments.
21523
for cc_temp in $compiler""; do
21525
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21526
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21531
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21533
lt_cv_prog_compiler_c_o_RC=yes
21535
# The else clause should only fire when bootstrapping the
21536
# libtool distribution, otherwise you forgot to ship ltmain.sh
21537
# with your package, and you will get complaints that there are
21538
# no rules to generate ltmain.sh.
21539
if test -f "$ltmain"; then
21540
# See if we are running on zsh, and set the options which allow our commands through
21541
# without removal of \ escapes.
21542
if test -n "${ZSH_VERSION+set}" ; then
21543
setopt NO_GLOB_SUBST
21545
# Now quote all the things that may contain metacharacters while being
21546
# careful not to overquote the AC_SUBSTed values. We take copies of the
21547
# variables and quote the copies for generation of the libtool script.
21548
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
21550
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21551
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21552
deplibs_check_method reload_flag reload_cmds need_locks \
21553
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21554
lt_cv_sys_global_symbol_to_c_name_address \
21555
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21556
old_postinstall_cmds old_postuninstall_cmds \
21560
lt_prog_compiler_wl_RC \
21561
lt_prog_compiler_pic_RC \
21562
lt_prog_compiler_static_RC \
21563
lt_prog_compiler_no_builtin_flag_RC \
21564
export_dynamic_flag_spec_RC \
21565
thread_safe_flag_spec_RC \
21566
whole_archive_flag_spec_RC \
21567
enable_shared_with_static_runtimes_RC \
21568
old_archive_cmds_RC \
21569
old_archive_from_new_cmds_RC \
21570
predep_objects_RC \
21571
postdep_objects_RC \
21574
compiler_lib_search_path_RC \
21575
compiler_lib_search_dirs_RC \
21577
archive_expsym_cmds_RC \
21578
postinstall_cmds_RC \
21579
postuninstall_cmds_RC \
21580
old_archive_from_expsyms_cmds_RC \
21581
allow_undefined_flag_RC \
21582
no_undefined_flag_RC \
21583
export_symbols_cmds_RC \
21584
hardcode_libdir_flag_spec_RC \
21585
hardcode_libdir_flag_spec_ld_RC \
21586
hardcode_libdir_separator_RC \
21587
hardcode_automatic_RC \
21589
module_expsym_cmds_RC \
21590
lt_cv_prog_compiler_c_o_RC \
21591
fix_srcfile_path_RC \
21592
exclude_expsyms_RC \
21593
include_expsyms_RC; do
21596
old_archive_cmds_RC | \
21597
old_archive_from_new_cmds_RC | \
21598
archive_cmds_RC | \
21599
archive_expsym_cmds_RC | \
21601
module_expsym_cmds_RC | \
21602
old_archive_from_expsyms_cmds_RC | \
21603
export_symbols_cmds_RC | \
21604
extract_expsyms_cmds | reload_cmds | finish_cmds | \
21605
postinstall_cmds | postuninstall_cmds | \
21606
old_postinstall_cmds | old_postuninstall_cmds | \
21607
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21608
# Double-quote double-evaled strings.
21609
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21612
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21618
*'\$0 --fallback-echo"')
21619
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21625
cat <<__EOF__ >> "$cfgfile"
21626
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
21628
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21630
# Shell to use when invoking shell scripts.
21633
# Whether or not to build shared libraries.
21634
build_libtool_libs=$enable_shared
21636
# Whether or not to build static libraries.
21637
build_old_libs=$enable_static
21639
# Whether or not to add -lc for building shared libraries.
21640
build_libtool_need_lc=$archive_cmds_need_lc_RC
21642
# Whether or not to disallow shared libs when runtime libs are static
21643
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
21645
# Whether or not to optimize for fast installation.
21646
fast_install=$enable_fast_install
21649
host_alias=$host_alias
21653
# The build system.
21654
build_alias=$build_alias
21658
# An echo program that does not interpret backslashes.
21663
AR_FLAGS=$lt_AR_FLAGS
21668
# LTCC compiler flags.
21669
LTCFLAGS=$lt_LTCFLAGS
21671
# A language-specific compiler.
21674
# Is the compiler the GNU C compiler?
21680
# The linker used to build libraries.
21683
# Whether we need hard or soft links.
21686
# A BSD-compatible nm program.
21689
# A symbol stripping program
21692
# Used to examine libraries when file_magic_cmd begins "file"
21693
MAGIC_CMD=$MAGIC_CMD
21695
# Used on cygwin: DLL creation program.
21698
# Used on cygwin: object dumper.
21701
# Used on cygwin: assembler.
21704
# The name of the directory that contains temporary libtool files.
21707
# How to create reloadable object files.
21708
reload_flag=$lt_reload_flag
21709
reload_cmds=$lt_reload_cmds
21711
# How to pass a linker flag through the compiler.
21712
wl=$lt_lt_prog_compiler_wl_RC
21714
# Object file suffix (normally "o").
21715
objext="$ac_objext"
21717
# Old archive suffix (normally "a").
21720
# Shared library suffix (normally ".so").
21721
shrext_cmds='$shrext_cmds'
21723
# Executable file suffix (normally "").
21726
# Additional compiler flags for building library objects.
21727
pic_flag=$lt_lt_prog_compiler_pic_RC
21730
# What is the maximum length of a command?
21731
max_cmd_len=$lt_cv_sys_max_cmd_len
21733
# Does compiler simultaneously support -c and -o options?
21734
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
21736
# Must we lock files when doing compilation?
21737
need_locks=$lt_need_locks
21739
# Do we need the lib prefix for modules?
21740
need_lib_prefix=$need_lib_prefix
21742
# Do we need a version for libraries?
21743
need_version=$need_version
21745
# Whether dlopen is supported.
21746
dlopen_support=$enable_dlopen
21748
# Whether dlopen of programs is supported.
21749
dlopen_self=$enable_dlopen_self
21751
# Whether dlopen of statically linked programs is supported.
21752
dlopen_self_static=$enable_dlopen_self_static
21754
# Compiler flag to prevent dynamic linking.
21755
link_static_flag=$lt_lt_prog_compiler_static_RC
21757
# Compiler flag to turn off builtin functions.
21758
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
21760
# Compiler flag to allow reflexive dlopens.
21761
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
21763
# Compiler flag to generate shared objects directly from archives.
21764
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
21766
# Compiler flag to generate thread-safe objects.
21767
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
21769
# Library versioning type.
21770
version_type=$version_type
21772
# Format of library name prefix.
21773
libname_spec=$lt_libname_spec
21775
# List of archive names. First name is the real one, the rest are links.
21776
# The last name is the one that the linker finds with -lNAME.
21777
library_names_spec=$lt_library_names_spec
21779
# The coded name of the library, if different from the real name.
21780
soname_spec=$lt_soname_spec
21782
# Commands used to build and install an old-style archive.
21784
old_archive_cmds=$lt_old_archive_cmds_RC
21785
old_postinstall_cmds=$lt_old_postinstall_cmds
21786
old_postuninstall_cmds=$lt_old_postuninstall_cmds
21788
# Create an old-style archive from a shared archive.
21789
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
21791
# Create a temporary old-style archive to link instead of a shared archive.
21792
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
21794
# Commands used to build and install a shared archive.
21795
archive_cmds=$lt_archive_cmds_RC
21796
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
21797
postinstall_cmds=$lt_postinstall_cmds
21798
postuninstall_cmds=$lt_postuninstall_cmds
21800
# Commands used to build a loadable module (assumed same as above if empty)
21801
module_cmds=$lt_module_cmds_RC
21802
module_expsym_cmds=$lt_module_expsym_cmds_RC
21804
# Commands to strip libraries.
21805
old_striplib=$lt_old_striplib
21806
striplib=$lt_striplib
21808
# Dependencies to place before the objects being linked to create a
21810
predep_objects=$lt_predep_objects_RC
21812
# Dependencies to place after the objects being linked to create a
21814
postdep_objects=$lt_postdep_objects_RC
21816
# Dependencies to place before the objects being linked to create a
21818
predeps=$lt_predeps_RC
21820
# Dependencies to place after the objects being linked to create a
21822
postdeps=$lt_postdeps_RC
21824
# The directories searched by this compiler when creating a shared
21826
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
21828
# The library search path used internally by the compiler when linking
21829
# a shared library.
21830
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
21832
# Method to check whether dependent libraries are shared objects.
21833
deplibs_check_method=$lt_deplibs_check_method
21835
# Command to use when deplibs_check_method == file_magic.
21836
file_magic_cmd=$lt_file_magic_cmd
21838
# Flag that allows shared libraries with undefined symbols to be built.
21839
allow_undefined_flag=$lt_allow_undefined_flag_RC
21841
# Flag that forces no undefined symbols.
21842
no_undefined_flag=$lt_no_undefined_flag_RC
21844
# Commands used to finish a libtool library installation in a directory.
21845
finish_cmds=$lt_finish_cmds
21847
# Same as above, but a single script fragment to be evaled but not shown.
21848
finish_eval=$lt_finish_eval
21850
# Take the output of nm and produce a listing of raw symbols and C names.
21851
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21853
# Transform the output of nm in a proper C declaration
21854
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21856
# Transform the output of nm in a C name address pair
21857
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21859
# This is the shared library runtime path variable.
21860
runpath_var=$runpath_var
21862
# This is the shared library path variable.
21863
shlibpath_var=$shlibpath_var
21865
# Is shlibpath searched before the hard-coded library search path?
21866
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21868
# How to hardcode a shared library path into an executable.
21869
hardcode_action=$hardcode_action_RC
21871
# Whether we should hardcode library paths into libraries.
21872
hardcode_into_libs=$hardcode_into_libs
21874
# Flag to hardcode \$libdir into a binary during linking.
21875
# This must work even if \$libdir does not exist.
21876
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
21878
# If ld is used when linking, flag to hardcode \$libdir into
21879
# a binary during linking. This must work even if \$libdir does
21881
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
21883
# Whether we need a single -rpath flag with a separated argument.
21884
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
21886
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21887
# resulting binary.
21888
hardcode_direct=$hardcode_direct_RC
21890
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21891
# resulting binary.
21892
hardcode_minus_L=$hardcode_minus_L_RC
21894
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21895
# the resulting binary.
21896
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
21898
# Set to yes if building a shared library automatically hardcodes DIR into the library
21899
# and all subsequent libraries and executables linked against it.
21900
hardcode_automatic=$hardcode_automatic_RC
21902
# Variables whose values should be saved in libtool wrapper scripts and
21903
# restored at relink time.
21904
variables_saved_for_relink="$variables_saved_for_relink"
21906
# Whether libtool must link a program against all its dependency libraries.
21907
link_all_deplibs=$link_all_deplibs_RC
21909
# Compile-time system search path for libraries
21910
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21912
# Run-time system search path for libraries
21913
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21915
# Fix the shell variable \$srcfile for the compiler.
21916
fix_srcfile_path=$lt_fix_srcfile_path
21918
# Set to yes if exported symbols are required.
21919
always_export_symbols=$always_export_symbols_RC
21921
# The commands to list exported symbols.
21922
export_symbols_cmds=$lt_export_symbols_cmds_RC
21924
# The commands to extract the exported symbol list from a shared archive.
21925
extract_expsyms_cmds=$lt_extract_expsyms_cmds
21927
# Symbols that should not be listed in the preloaded symbols.
21928
exclude_expsyms=$lt_exclude_expsyms_RC
21930
# Symbols that must always be exported.
21931
include_expsyms=$lt_include_expsyms_RC
21933
# ### END LIBTOOL TAG CONFIG: $tagname
21939
# If there is no Makefile yet, we rely on a make rule to execute
21940
# `config.status --recheck' to rerun these tests and create the
21941
# libtool script then.
21942
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21943
if test -f "$ltmain_in"; then
21944
test -f Makefile && make "$ltmain"
21950
ac_cpp='$CPP $CPPFLAGS'
21951
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21952
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21953
ac_compiler_gnu=$ac_cv_c_compiler_gnu
21960
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21961
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21962
{ (exit 1); exit 1; }; }
21966
# Append the new tag name to the list of available tags.
21967
if test -n "$tagname" ; then
21968
available_tags="$available_tags $tagname"
21974
# Now substitute the updated list of available tags.
21975
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21976
mv "${ofile}T" "$ofile"
21980
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21981
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21982
{ (exit 1); exit 1; }; }
21988
# This can be used to rebuild libtool when needed
21989
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21991
# Always use our own libtool.
21992
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21994
# Prevent multiple expansion
17461
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17462
$as_echo "$hardcode_action_CXX" >&6; }
17464
if test "$hardcode_action_CXX" = relink ||
17465
test "$inherit_rpath_CXX" = yes; then
17466
# Fast installation is not supported
17467
enable_fast_install=no
17468
elif test "$shlibpath_overrides_runpath" = yes ||
17469
test "$enable_shared" = no; then
17470
# Fast installation is not necessary
17471
enable_fast_install=needless
17480
fi # test -n "$compiler"
17486
with_gnu_ld=$lt_save_with_gnu_ld
17487
lt_cv_path_LDCXX=$lt_cv_path_LD
17488
lt_cv_path_LD=$lt_save_path_LD
17489
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17490
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17491
fi # test "$_lt_caught_CXX_error" != yes
17494
ac_cpp='$CPP $CPPFLAGS'
17495
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17496
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17497
ac_compiler_gnu=$ac_cv_c_compiler_gnu
17511
ac_config_commands="$ac_config_commands libtool"
17516
# Only expand once: