5473
7556
*** used, and then restart.
5476
elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5477
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5478
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5485
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5488
hardcode_shlibpath_var=no
5492
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5493
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5494
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5501
if test "$ld_shlibs" = yes; then
5502
runpath_var=LD_RUN_PATH
5503
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5504
export_dynamic_flag_spec='${wl}--export-dynamic'
5506
cygwin* | mingw* | pw32*)
5507
# dlltool doesn't understand --whole-archive et. al.
5508
whole_archive_flag_spec=
7559
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7560
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7561
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7568
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7571
hardcode_shlibpath_var=no
7575
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7576
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7577
archive_cmds="$tmp_archive_cmds"
7578
supports_anon_versioning=no
7579
case `$LD -v 2>/dev/null` in
7580
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7581
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7582
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7583
*\ 2.11.*) ;; # other 2.11 versions
7584
*) supports_anon_versioning=yes ;;
7586
if test $supports_anon_versioning = yes; then
7587
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7588
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7589
$echo "local: *; };" >> $output_objdir/$libname.ver~
7590
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7592
archive_expsym_cmds="$tmp_archive_cmds"
7601
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7602
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7603
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7610
if test "$ld_shlibs" = yes; then
7611
runpath_var=LD_RUN_PATH
7612
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7613
export_dynamic_flag_spec='${wl}--export-dynamic'
5511
7614
# ancient GNU ld didn't support --whole-archive et. al.
5512
if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5513
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7615
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7616
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5515
whole_archive_flag_spec=
7618
whole_archive_flag_spec=
5521
# PORTME fill in a description of your system's linker (not GNU ld)
5524
allow_undefined_flag=unsupported
5525
always_export_symbols=yes
5526
archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
5527
# Note: this linker hardcodes the directories in LIBPATH if there
5528
# are no directories specified by -L.
5529
hardcode_minus_L=yes
5530
if test "$GCC" = yes && test -z "$link_static_flag"; then
5531
# Neither direct hardcoding nor static linking is supported with a
5533
hardcode_direct=unsupported
5538
if test "$host_cpu" = ia64; then
5539
# On IA64, the linker does run time linking by default, so we don't
5540
# have to do anything special.
5541
aix_use_runtimelinking=no
5542
exp_sym_flag='-Bexport'
7622
# PORTME fill in a description of your system's linker (not GNU ld)
7625
allow_undefined_flag=unsupported
7626
always_export_symbols=yes
7627
archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
7628
# Note: this linker hardcodes the directories in LIBPATH if there
7629
# are no directories specified by -L.
7630
hardcode_minus_L=yes
7631
if test "$GCC" = yes && test -z "$link_static_flag"; then
7632
# Neither direct hardcoding nor static linking is supported with a
7634
hardcode_direct=unsupported
7639
if test "$host_cpu" = ia64; then
7640
# On IA64, the linker does run time linking by default, so we don't
7641
# have to do anything special.
7642
aix_use_runtimelinking=no
7643
exp_sym_flag='-Bexport'
7646
# If we're using GNU nm, then we don't want the "-C" option.
7647
# -C means demangle to AIX nm, but means don't demangle with GNU nm
7648
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7649
export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
7651
export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
7653
aix_use_runtimelinking=no
7655
# Test if we are trying to use run time linking or normal
7656
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7657
# need to do runtime linking.
7658
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7659
for ld_flag in $LDFLAGS; do
7660
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7661
aix_use_runtimelinking=yes
7667
exp_sym_flag='-bexport'
7668
no_entry_flag='-bnoentry'
7671
# When large executables or shared objects are built, AIX ld can
7672
# have problems creating the table of contents. If linking a library
7673
# or program results in "error TOC overflow" add -mminimal-toc to
7674
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7675
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7679
hardcode_libdir_separator=':'
7680
link_all_deplibs=yes
7682
if test "$GCC" = yes; then
7683
case $host_os in aix4.012|aix4.012.*)
7684
# We only want to do this on AIX 4.2 and lower, the check
7685
# below for broken collect2 doesn't work under 4.3+
7686
collect2name=`${CC} -print-prog-name=collect2`
7687
if test -f "$collect2name" && \
7688
strings "$collect2name" | grep resolve_lib_name >/dev/null
7690
# We have reworked collect2
7693
# We have old collect2
7694
hardcode_direct=unsupported
7695
# It fails to find uninstalled libraries when the uninstalled
7696
# path is not listed in the libpath. Setting hardcode_minus_L
7697
# to unsupported forces relinking
7698
hardcode_minus_L=yes
7699
hardcode_libdir_flag_spec='-L$libdir'
7700
hardcode_libdir_separator=
7703
shared_flag='-shared'
7706
if test "$host_cpu" = ia64; then
7707
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7708
# chokes on -Wl,-G. The following line is correct:
7711
if test "$aix_use_runtimelinking" = yes; then
7712
shared_flag='${wl}-G'
7714
shared_flag='${wl}-bM:SRE'
7719
# It seems that -bexpall does not export symbols beginning with
7720
# underscore (_), so it is better to generate a list of symbols to export.
7721
always_export_symbols=yes
7722
if test "$aix_use_runtimelinking" = yes; then
7723
# Warning - without using the other runtime loading flags (-brtl),
7724
# -berok will link without error, but may produce a broken library.
7725
allow_undefined_flag='-berok'
7726
# Determine the default libpath from the value encoded in an empty executable.
7727
cat >conftest.$ac_ext <<_ACEOF
7730
cat confdefs.h >>conftest.$ac_ext
7731
cat >>conftest.$ac_ext <<_ACEOF
7732
/* end confdefs.h. */
7742
rm -f conftest.$ac_objext conftest$ac_exeext
7743
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7744
(eval $ac_link) 2>conftest.er1
7746
grep -v '^ *+' conftest.er1 >conftest.err
7748
cat conftest.err >&5
7749
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7750
(exit $ac_status); } &&
7751
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7752
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7755
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7756
(exit $ac_status); }; } &&
7757
{ ac_try='test -s conftest$ac_exeext'
7758
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7761
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762
(exit $ac_status); }; }; then
7764
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7766
# Check for a 64-bit object if we didn't find anything.
7767
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7770
echo "$as_me: failed program was:" >&5
7771
sed 's/^/| /' conftest.$ac_ext >&5
7774
rm -f conftest.err conftest.$ac_objext \
7775
conftest$ac_exeext conftest.$ac_ext
7776
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7778
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7779
archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7781
if test "$host_cpu" = ia64; then
7782
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7783
allow_undefined_flag="-z nodefs"
7784
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7786
# Determine the default libpath from the value encoded in an empty executable.
7787
cat >conftest.$ac_ext <<_ACEOF
7790
cat confdefs.h >>conftest.$ac_ext
7791
cat >>conftest.$ac_ext <<_ACEOF
7792
/* end confdefs.h. */
7802
rm -f conftest.$ac_objext conftest$ac_exeext
7803
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7804
(eval $ac_link) 2>conftest.er1
7806
grep -v '^ *+' conftest.er1 >conftest.err
7808
cat conftest.err >&5
7809
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7810
(exit $ac_status); } &&
7811
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7812
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7815
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7816
(exit $ac_status); }; } &&
7817
{ ac_try='test -s conftest$ac_exeext'
7818
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7821
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7822
(exit $ac_status); }; }; then
7824
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7826
# Check for a 64-bit object if we didn't find anything.
7827
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7830
echo "$as_me: failed program was:" >&5
7831
sed 's/^/| /' conftest.$ac_ext >&5
7834
rm -f conftest.err conftest.$ac_objext \
7835
conftest$ac_exeext conftest.$ac_ext
7836
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7838
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7839
# Warning - without using the other run time loading flags,
7840
# -berok will link without error, but may produce a broken library.
7841
no_undefined_flag=' ${wl}-bernotok'
7842
allow_undefined_flag=' ${wl}-berok'
7843
# -bexpall does not export symbols beginning with underscore (_)
7844
always_export_symbols=yes
7845
# Exported symbols can be pulled into shared objects from archives
7846
whole_archive_flag_spec=' '
7847
archive_cmds_need_lc=yes
7848
# This is similar to how AIX traditionally builds it's shared libraries.
7849
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7855
archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7856
hardcode_libdir_flag_spec='-L$libdir'
7857
hardcode_minus_L=yes
7858
# see comment about different semantics on the GNU ld section
7863
export_dynamic_flag_spec=-rdynamic
7866
cygwin* | mingw* | pw32*)
7867
# When not using gcc, we currently assume that we are using
7868
# Microsoft Visual C++.
7869
# hardcode_libdir_flag_spec is actually meaningless, as there is
7870
# no search path for DLLs.
7871
hardcode_libdir_flag_spec=' '
7872
allow_undefined_flag=unsupported
7873
# Tell ltmain to make .lib files, not .a files.
7875
# Tell ltmain to make .dll files, not .so files.
7877
# FIXME: Setting linknames here is a bad hack.
7878
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7879
# The linker will automatically build a .lib file if we build a DLL.
7880
old_archive_From_new_cmds='true'
7881
# FIXME: Should let the user specify the lib program.
7882
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7883
fix_srcfile_path='`cygpath -w "$srcfile"`'
7884
enable_shared_with_static_runtimes=yes
7887
darwin* | rhapsody*)
7888
if test "$GXX" = yes ; then
7889
archive_cmds_need_lc=no
7891
rhapsody* | darwin1.[012])
7892
allow_undefined_flag='-undefined suppress'
7895
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7896
allow_undefined_flag='-flat_namespace -undefined suppress'
7898
case ${MACOSX_DEPLOYMENT_TARGET} in
7900
allow_undefined_flag='-flat_namespace -undefined suppress'
7903
allow_undefined_flag='-undefined dynamic_lookup'
7909
lt_int_apple_cc_single_mod=no
7910
output_verbose_link_cmd='echo'
7911
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7912
lt_int_apple_cc_single_mod=yes
7914
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7915
archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7917
archive_cmds='$CC -r ${wl}-bind_at_load -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'
7919
module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7920
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7921
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7922
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7924
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7926
module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7928
hardcode_automatic=yes
7929
hardcode_shlibpath_var=unsupported
7930
whole_archive_flag_spec='-all_load $convenience'
7931
link_all_deplibs=yes
5545
aix_use_runtimelinking=no
5547
# Test if we are trying to use run time linking or normal
5548
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
5549
# need to do runtime linking.
5550
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5551
for ld_flag in $LDFLAGS; do
5554
aix_use_runtimelinking=yes
5561
exp_sym_flag='-bexport'
5562
no_entry_flag='-bnoentry'
5565
# When large executables or shared objects are built, AIX ld can
5566
# have problems creating the table of contents. If linking a library
5567
# or program results in "error TOC overflow" add -mminimal-toc to
5568
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5569
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5573
hardcode_libdir_separator=':'
5574
if test "$GCC" = yes; then
5575
case $host_os in aix4.[012]|aix4.[012].*)
5576
collect2name=`${CC} -print-prog-name=collect2`
5577
if test -f "$collect2name" && \
5578
strings "$collect2name" | grep resolve_lib_name >/dev/null
5580
# We have reworked collect2
7938
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7939
hardcode_libdir_flag_spec='-L$libdir'
7940
hardcode_shlibpath_var=no
7947
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7948
# support. Future versions do this automatically, but an explicit c++rt0.o
7949
# does not break anything, and helps significantly (at the cost of a little
7952
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7953
hardcode_libdir_flag_spec='-R$libdir'
7955
hardcode_shlibpath_var=no
7958
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
7960
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7962
hardcode_minus_L=yes
7963
hardcode_shlibpath_var=no
7966
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7967
freebsd* | kfreebsd*-gnu)
7968
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7969
hardcode_libdir_flag_spec='-R$libdir'
7971
hardcode_shlibpath_var=no
7975
if test "$GCC" = yes; then
7976
archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7978
archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7980
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7981
hardcode_libdir_separator=:
7984
# hardcode_minus_L: Not really in the search PATH,
7985
# but as the default location of the library.
7986
hardcode_minus_L=yes
7987
export_dynamic_flag_spec='${wl}-E'
7991
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7994
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7997
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8003
archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8006
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8010
if test "$with_gnu_ld" = no; then
8013
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8014
hardcode_libdir_flag_spec_ld='+b $libdir'
8015
hardcode_libdir_separator=:
8017
hardcode_shlibpath_var=no
8020
hardcode_libdir_flag_spec='-L$libdir'
8022
hardcode_shlibpath_var=no
8024
# hardcode_minus_L: Not really in the search PATH,
8025
# but as the default location of the library.
8026
hardcode_minus_L=yes
8029
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8030
hardcode_libdir_separator=:
5581
8031
hardcode_direct=yes
5583
# We have old collect2
5584
hardcode_direct=unsupported
5585
# It fails to find uninstalled libraries when the uninstalled
5586
# path is not listed in the libpath. Setting hardcode_minus_L
5587
# to unsupported forces relinking
8032
export_dynamic_flag_spec='${wl}-E'
8034
# hardcode_minus_L: Not really in the search PATH,
8035
# but as the default location of the library.
5588
8036
hardcode_minus_L=yes
5589
hardcode_libdir_flag_spec='-L$libdir'
5590
hardcode_libdir_separator=
5594
shared_flag='-shared'
5597
if test "$host_cpu" = ia64; then
5598
shared_flag='${wl}-G'
5600
if test "$aix_use_runtimelinking" = yes; then
5601
shared_flag='${wl}-G'
5603
shared_flag='${wl}-bM:SRE'
5608
# It seems that -bexpall can do strange things, so it is better to
5609
# generate a list of symbols to export.
5610
always_export_symbols=yes
5611
if test "$aix_use_runtimelinking" = yes; then
5612
# Warning - without using the other runtime loading flags (-brtl),
5613
# -berok will link without error, but may produce a broken library.
5614
allow_undefined_flag='-berok'
5615
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5616
archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5618
if test "$host_cpu" = ia64; then
5619
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5620
allow_undefined_flag="-z nodefs"
5621
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
5623
hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5624
# Warning - without using the other run time loading flags,
5625
# -berok will link without error, but may produce a broken library.
5626
allow_undefined_flag='${wl}-berok'
5627
# This is a bit strange, but is similar to how AIX traditionally builds
5628
# it's shared libraries.
5629
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
5635
archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5636
hardcode_libdir_flag_spec='-L$libdir'
5637
hardcode_minus_L=yes
5638
# see comment about different semantics on the GNU ld section
5642
cygwin* | mingw* | pw32*)
5643
# When not using gcc, we currently assume that we are using
5644
# Microsoft Visual C++.
5645
# hardcode_libdir_flag_spec is actually meaningless, as there is
5646
# no search path for DLLs.
5647
hardcode_libdir_flag_spec=' '
5648
allow_undefined_flag=unsupported
5649
# Tell ltmain to make .lib files, not .a files.
5651
# FIXME: Setting linknames here is a bad hack.
5652
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5653
# The linker will automatically build a .lib file if we build a DLL.
5654
old_archive_from_new_cmds='true'
5655
# FIXME: Should let the user specify the lib program.
5656
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5657
fix_srcfile_path='`cygpath -w "$srcfile"`'
5660
darwin* | rhapsody*)
5662
rhapsody* | darwin1.[012])
5663
allow_undefined_flag='-undefined suppress'
5666
allow_undefined_flag='-flat_namespace -undefined suppress'
5669
# FIXME: Relying on posixy $() will cause problems for
5670
# cross-compilation, but unfortunately the echo tests do not
5671
# yet detect zsh echo's removal of \ escapes. Also zsh mangles
5672
# `"' quotes if we put them in here... so don't!
5673
archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
5674
# We need to add '_' to the symbols in $export_symbols first
5675
#archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5677
hardcode_shlibpath_var=no
5678
whole_archive_flag_spec='-all_load $convenience'
5685
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5686
# support. Future versions do this automatically, but an explicit c++rt0.o
5687
# does not break anything, and helps significantly (at the cost of a little
5690
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5691
hardcode_libdir_flag_spec='-R$libdir'
5693
hardcode_shlibpath_var=no
5696
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
5698
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5700
hardcode_minus_L=yes
5701
hardcode_shlibpath_var=no
5704
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5706
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5707
hardcode_libdir_flag_spec='-R$libdir'
5709
hardcode_shlibpath_var=no
5712
hpux9* | hpux10* | hpux11*)
5714
hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
5715
*) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5717
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5718
hardcode_libdir_separator=:
5720
hardcode_minus_L=yes # Not in the search PATH, but as the default
5721
# location of the library.
5722
export_dynamic_flag_spec='${wl}-E'
5725
irix5* | irix6* | nonstopux*)
5726
if test "$GCC" = yes; then
5727
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5728
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5730
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5731
hardcode_libdir_flag_spec='-rpath $libdir'
5733
hardcode_libdir_separator=:
5734
link_all_deplibs=yes
5738
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5739
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5741
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5743
hardcode_libdir_flag_spec='-R$libdir'
5745
hardcode_shlibpath_var=no
5749
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5751
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5752
hardcode_libdir_separator=:
5753
hardcode_shlibpath_var=no
5758
hardcode_shlibpath_var=no
5759
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5760
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5761
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5762
export_dynamic_flag_spec='${wl}-E'
5765
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5766
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5767
hardcode_libdir_flag_spec='-R$libdir'
5770
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5771
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5778
hardcode_libdir_flag_spec='-L$libdir'
5779
hardcode_minus_L=yes
5780
allow_undefined_flag=unsupported
5781
archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
5782
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5786
if test "$GCC" = yes; then
5787
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5788
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5790
allow_undefined_flag=' -expect_unresolved \*'
5791
archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5793
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5794
hardcode_libdir_separator=:
5797
osf4* | osf5*) # as osf3* with the addition of -msym flag
5798
if test "$GCC" = yes; then
5799
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5800
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5801
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5803
allow_undefined_flag=' -expect_unresolved \*'
5804
archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5805
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5806
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
5808
#Both c and cxx compiler support -rpath directly
5809
hardcode_libdir_flag_spec='-rpath $libdir'
5811
hardcode_libdir_separator=:
5815
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5816
hardcode_shlibpath_var=no
5817
runpath_var=LD_RUN_PATH
5818
hardcode_runpath_var=yes
5819
export_dynamic_flag_spec='${wl}-Bexport'
5823
# gcc --version < 3.0 without binutils cannot create self contained
5824
# shared libraries reliably, requiring libgcc.a to resolve some of
5825
# the object symbols generated in some cases. Libraries that use
5826
# assert need libgcc.a to resolve __eprintf, for example. Linking
5827
# a copy of libgcc.a into every shared library to guarantee resolving
5828
# such symbols causes other problems: According to Tim Van Holder
5829
# <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5830
# (to the application) exception stack for one thing.
5831
no_undefined_flag=' -z defs'
5832
if test "$GCC" = yes; then
5833
case `$CC --version 2>/dev/null` in
5837
*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5838
*** create self contained shared libraries on Solaris systems, without
5839
*** introducing a dependency on libgcc.a. Therefore, libtool is disabling
5840
*** -no-undefined support, which will at least allow you to build shared
5841
*** libraries. However, you may find that when you link such libraries
5842
*** into an application without using GCC, you have to manually add
5843
*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
5844
*** upgrade to a newer version of GCC. Another option is to rebuild your
5845
*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5852
# $CC -shared without GNU ld will not create a library from C++
5853
# object files and a static libstdc++, better avoid it by now
5854
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5855
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5856
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5857
hardcode_libdir_flag_spec='-R$libdir'
5858
hardcode_shlibpath_var=no
5860
solaris2.[0-5] | solaris2.[0-5].*) ;;
5861
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
5862
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5864
link_all_deplibs=yes
5868
if test "x$host_vendor" = xsequent; then
5869
# Use $CC to link under sequent, because it throws in some extra .o
5870
# files that make .init and .fini sections work.
5871
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5873
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5875
hardcode_libdir_flag_spec='-L$libdir'
5877
hardcode_minus_L=yes
5878
hardcode_shlibpath_var=no
5882
case $host_vendor in
5884
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5885
hardcode_direct=yes # is this really true???
5888
## LD is ld it makes a PLAMLIB
5889
## CC just makes a GrossModule.
5890
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5891
reload_cmds='$CC -r -o $output$reload_objs'
5895
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5896
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5899
runpath_var='LD_RUN_PATH'
5900
hardcode_shlibpath_var=no
5904
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5905
hardcode_shlibpath_var=no
5906
export_dynamic_flag_spec='-Bexport'
5910
no_undefined_flag=' -z text'
5911
# $CC -shared without GNU ld will not create a library from C++
5912
# object files and a static libstdc++, better avoid it by now
5913
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5914
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5915
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5916
hardcode_libdir_flag_spec=
5917
hardcode_shlibpath_var=no
5918
runpath_var='LD_RUN_PATH'
5922
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5923
hardcode_libdir_flag_spec='-L$libdir'
5924
hardcode_shlibpath_var=no
5928
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5929
hardcode_libdir_flag_spec='-L$libdir'
5930
hardcode_shlibpath_var=no
5934
if test -d /usr/nec; then
5935
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5936
hardcode_shlibpath_var=no
5937
runpath_var=LD_RUN_PATH
5938
hardcode_runpath_var=yes
5944
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5947
hardcode_shlibpath_var=no
5948
hardcode_runpath_var=yes
5949
runpath_var=LD_RUN_PATH
5952
sysv5uw7* | unixware7*)
5953
no_undefined_flag='${wl}-z ${wl}text'
5954
if test "$GCC" = yes; then
5955
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5957
archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5959
runpath_var='LD_RUN_PATH'
5960
hardcode_shlibpath_var=no
5968
echo "$as_me:5968: result: $ld_shlibs" >&5
8042
irix5* | irix6* | nonstopux*)
8043
if test "$GCC" = yes; then
8044
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8046
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8047
hardcode_libdir_flag_spec_ld='-rpath $libdir'
8049
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8050
hardcode_libdir_separator=:
8051
link_all_deplibs=yes
8054
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
8055
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8056
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8058
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8060
hardcode_libdir_flag_spec='-R$libdir'
8062
hardcode_shlibpath_var=no
8066
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8068
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8069
hardcode_libdir_separator=:
8070
hardcode_shlibpath_var=no
8075
hardcode_shlibpath_var=no
8076
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8077
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8078
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8079
export_dynamic_flag_spec='${wl}-E'
8082
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8083
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8084
hardcode_libdir_flag_spec='-R$libdir'
8087
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8088
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8095
hardcode_libdir_flag_spec='-L$libdir'
8096
hardcode_minus_L=yes
8097
allow_undefined_flag=unsupported
8098
archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8099
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8103
if test "$GCC" = yes; then
8104
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8105
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8107
allow_undefined_flag=' -expect_unresolved \*'
8108
archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8110
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8111
hardcode_libdir_separator=:
8114
osf4* | osf5*) # as osf3* with the addition of -msym flag
8115
if test "$GCC" = yes; then
8116
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8117
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8118
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8120
allow_undefined_flag=' -expect_unresolved \*'
8121
archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8122
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8123
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
8125
# Both c and cxx compiler support -rpath directly
8126
hardcode_libdir_flag_spec='-rpath $libdir'
8128
hardcode_libdir_separator=:
8132
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8133
hardcode_shlibpath_var=no
8134
export_dynamic_flag_spec='${wl}-Bexport'
8135
runpath_var=LD_RUN_PATH
8136
hardcode_runpath_var=yes
8140
no_undefined_flag=' -z text'
8141
if test "$GCC" = yes; then
8142
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8143
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8144
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8146
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8147
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8148
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8150
hardcode_libdir_flag_spec='-R$libdir'
8151
hardcode_shlibpath_var=no
8153
solaris2.[0-5] | solaris2.[0-5].*) ;;
8154
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
8155
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8157
link_all_deplibs=yes
8161
if test "x$host_vendor" = xsequent; then
8162
# Use $CC to link under sequent, because it throws in some extra .o
8163
# files that make .init and .fini sections work.
8164
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8166
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8168
hardcode_libdir_flag_spec='-L$libdir'
8170
hardcode_minus_L=yes
8171
hardcode_shlibpath_var=no
8175
case $host_vendor in
8177
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8178
hardcode_direct=yes # is this really true???
8181
## LD is ld it makes a PLAMLIB
8182
## CC just makes a GrossModule.
8183
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8184
reload_cmds='$CC -r -o $output$reload_objs'
8188
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8189
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8192
runpath_var='LD_RUN_PATH'
8193
hardcode_shlibpath_var=no
8197
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8198
hardcode_shlibpath_var=no
8199
export_dynamic_flag_spec='-Bexport'
8203
if test -d /usr/nec; then
8204
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8205
hardcode_shlibpath_var=no
8206
runpath_var=LD_RUN_PATH
8207
hardcode_runpath_var=yes
8213
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8216
hardcode_shlibpath_var=no
8217
hardcode_runpath_var=yes
8218
runpath_var=LD_RUN_PATH
8221
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
8222
no_undefined_flag='${wl}-z ${wl}text'
8223
if test "$GCC" = yes; then
8224
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8226
archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8228
runpath_var='LD_RUN_PATH'
8229
hardcode_shlibpath_var=no
8233
no_undefined_flag=' -z text'
8234
# $CC -shared without GNU ld will not create a library from C++
8235
# object files and a static libstdc++, better avoid it by now
8236
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8237
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8238
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8239
hardcode_libdir_flag_spec=
8240
hardcode_shlibpath_var=no
8241
runpath_var='LD_RUN_PATH'
8245
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8246
hardcode_libdir_flag_spec='-L$libdir'
8247
hardcode_shlibpath_var=no
8256
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
5969
8257
echo "${ECHO_T}$ld_shlibs" >&6
5970
8258
test "$ld_shlibs" = no && can_build_shared=no
5972
# Check hardcoding attributes.
5973
echo "$as_me:5973: checking how to hardcode library paths into programs" >&5
8260
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8261
if test "$GCC" = yes; then
8262
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8266
# Do we need to explicitly link libc?
8268
case "x$archive_cmds_need_lc" in
8270
# Assume -lc should be added
8271
archive_cmds_need_lc=yes
8273
if test "$enable_shared" = yes && test "$GCC" = yes; then
8274
case $archive_cmds in
8276
# FIXME: we may have to deal with multi-command sequences.
8279
# Test whether the compiler implicitly links with -lc since on some
8280
# systems, -lgcc has to come before -lc. If gcc already passes -lc
8281
# to ld, don't add -lc before -lgcc.
8282
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8283
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8285
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8287
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8288
(eval $ac_compile) 2>&5
8290
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291
(exit $ac_status); } 2>conftest.err; then
8294
libobjs=conftest.$ac_objext
8296
wl=$lt_prog_compiler_wl
8302
lt_save_allow_undefined_flag=$allow_undefined_flag
8303
allow_undefined_flag=
8304
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8305
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8307
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308
(exit $ac_status); }
8310
archive_cmds_need_lc=no
8312
archive_cmds_need_lc=yes
8314
allow_undefined_flag=$lt_save_allow_undefined_flag
8316
cat conftest.err 1>&5
8319
echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8320
echo "${ECHO_T}$archive_cmds_need_lc" >&6
8327
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8328
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8330
libname_spec='lib$name'
8338
shlibpath_overrides_runpath=unknown
8340
dynamic_linker="$host_os ld.so"
8341
sys_lib_dlsearch_path_spec="/lib /usr/lib"
8342
if test "$GCC" = yes; then
8343
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8344
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8345
# if the path contains ";" then we assume it to be the separator
8346
# otherwise default to the standard path separator (i.e. ":") - it is
8347
# assumed that no part of a normal pathname contains ";" but that should
8348
# okay in the real world where ";" in dirpaths is itself problematic.
8349
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8351
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8354
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8356
need_lib_prefix=unknown
8357
hardcode_into_libs=no
8359
# when you set need_version to no, make sure it does not cause -set_version
8360
# flags to be left without arguments
8361
need_version=unknown
8366
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8367
shlibpath_var=LIBPATH
8369
# AIX 3 has no versioning support, so we append a major version to the name.
8370
soname_spec='${libname}${release}${shared_ext}$major'
8377
hardcode_into_libs=yes
8378
if test "$host_cpu" = ia64; then
8379
# AIX 5 supports IA64
8380
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8381
shlibpath_var=LD_LIBRARY_PATH
8383
# With GCC up to 2.95.x, collect2 would create an import file
8384
# for dependence libraries. The import file would start with
8385
# the line `#! .'. This would cause the generated library to
8386
# depend on `.', always an invalid library. This was fixed in
8387
# development snapshots of GCC prior to 3.0.
8389
aix4 | aix4.[01] | aix4.[01].*)
8390
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8392
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8399
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8400
# soname into executable. Probably we can add versioning support to
8401
# collect2, so additional links can be useful in future.
8402
if test "$aix_use_runtimelinking" = yes; then
8403
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
8404
# instead of lib<name>.a to let people know that these are not
8405
# typical AIX shared libraries.
8406
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8408
# We preserve .a as extension for shared libraries through AIX4.2
8409
# and later when we are not doing run time linking.
8410
library_names_spec='${libname}${release}.a $libname.a'
8411
soname_spec='${libname}${release}${shared_ext}$major'
8413
shlibpath_var=LIBPATH
8418
library_names_spec='$libname.ixlibrary $libname.a'
8419
# Create ${libname}_ixlibrary.a entries in /sys/libs.
8420
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'
8424
library_names_spec='${libname}${shared_ext}'
8425
dynamic_linker="$host_os ld.so"
8426
shlibpath_var=LIBRARY_PATH
8432
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8433
soname_spec='${libname}${release}${shared_ext}$major'
8434
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8435
shlibpath_var=LD_LIBRARY_PATH
8436
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8437
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8438
# the default ld.so.conf also contains /usr/contrib/lib and
8439
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8440
# libtool to hard-code these into programs
8443
cygwin* | mingw* | pw32*)
8444
version_type=windows
8449
case $GCC,$host_os in
8450
yes,cygwin* | yes,mingw* | yes,pw32*)
8451
library_names_spec='$libname.dll.a'
8452
# DLL is installed to $(libdir)/../bin by postinstall_cmds
8453
postinstall_cmds='base_file=`basename \${file}`~
8454
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8455
dldir=$destdir/`dirname \$dlpath`~
8456
test -d \$dldir || mkdir -p \$dldir~
8457
$install_prog $dir/$dlname \$dldir/$dlname'
8458
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8459
dlpath=$dir/\$dldll~
8461
shlibpath_overrides_runpath=yes
8465
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
8466
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8467
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8470
# MinGW DLLs use traditional 'lib' prefix
8471
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8472
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8473
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8474
# It is most probably a Windows format PATH printed by
8475
# mingw gcc, but we are running on Cygwin. Gcc prints its search
8476
# path with ; separators, and with drive letters. We can handle the
8477
# drive letters (cygwin fileutils understands them), so leave them,
8478
# especially as we might pass files found there to a mingw objdump,
8479
# which wouldn't understand a cygwinified path. Ahh.
8480
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8482
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8486
# pw32 DLLs use 'pw' prefix rather than 'lib'
8487
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
8493
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8496
dynamic_linker='Win32 ld.exe'
8497
# FIXME: first we should search . and the directory the executable is in
8501
darwin* | rhapsody*)
8502
dynamic_linker="$host_os dyld"
8506
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8507
soname_spec='${libname}${release}${major}$shared_ext'
8508
shlibpath_overrides_runpath=yes
8509
shlibpath_var=DYLD_LIBRARY_PATH
8510
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
8511
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8512
if test "$GCC" = yes; then
8513
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8515
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8517
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8524
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8525
soname_spec='${libname}${release}${shared_ext}$major'
8526
shlibpath_var=LD_LIBRARY_PATH
8537
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8538
soname_spec='${libname}${release}${shared_ext}$major'
8539
shlibpath_var=LD_LIBRARY_PATH
8540
shlibpath_overrides_runpath=no
8541
hardcode_into_libs=yes
8542
dynamic_linker='GNU ld.so'
8546
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8547
version_type=freebsd-$objformat
8548
case $version_type in
8550
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8555
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8559
shlibpath_var=LD_LIBRARY_PATH
8562
shlibpath_overrides_runpath=yes
8564
freebsd3.01* | freebsdelf3.01*)
8565
shlibpath_overrides_runpath=yes
8566
hardcode_into_libs=yes
8569
shlibpath_overrides_runpath=no
8570
hardcode_into_libs=yes
8579
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8580
soname_spec='${libname}${release}${shared_ext}$major'
8581
shlibpath_var=LD_LIBRARY_PATH
8582
hardcode_into_libs=yes
8585
hpux9* | hpux10* | hpux11*)
8586
# Give a soname corresponding to the major version so that dld.sl refuses to
8587
# link against other versions.
8594
hardcode_into_libs=yes
8595
dynamic_linker="$host_os dld.so"
8596
shlibpath_var=LD_LIBRARY_PATH
8597
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8598
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8599
soname_spec='${libname}${release}${shared_ext}$major'
8600
if test "X$HPUX_IA64_MODE" = X32; then
8601
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8603
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8605
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8609
hardcode_into_libs=yes
8610
dynamic_linker="$host_os dld.sl"
8611
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8612
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8613
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8614
soname_spec='${libname}${release}${shared_ext}$major'
8615
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8616
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8620
dynamic_linker="$host_os dld.sl"
8621
shlibpath_var=SHLIB_PATH
8622
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8623
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8624
soname_spec='${libname}${release}${shared_ext}$major'
8627
# HP-UX runs *really* slowly unless shared libraries are mode 555.
8628
postinstall_cmds='chmod 555 $lib'
8631
irix5* | irix6* | nonstopux*)
8633
nonstopux*) version_type=nonstopux ;;
8635
if test "$lt_cv_prog_gnu_ld" = yes; then
8643
soname_spec='${libname}${release}${shared_ext}$major'
8644
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8646
irix5* | nonstopux*)
8650
case $LD in # libtool.m4 will add one of these switches to LD
8651
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8652
libsuff= shlibsuff= libmagic=32-bit;;
8653
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8654
libsuff=32 shlibsuff=N32 libmagic=N32;;
8655
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8656
libsuff=64 shlibsuff=64 libmagic=64-bit;;
8657
*) libsuff= shlibsuff= libmagic=never-match;;
8661
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8662
shlibpath_overrides_runpath=no
8663
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8664
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8665
hardcode_into_libs=yes
8668
# No shared lib support for Linux oldld, aout, or coff.
8669
linux*oldld* | linux*aout* | linux*coff*)
8673
# This must be Linux ELF.
8678
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8679
soname_spec='${libname}${release}${shared_ext}$major'
8680
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8681
shlibpath_var=LD_LIBRARY_PATH
8682
shlibpath_overrides_runpath=no
8683
# This implies no fast_install, which is unacceptable.
8684
# Some rework will be needed to allow for fast_install
8685
# before this can be enabled.
8686
hardcode_into_libs=yes
8688
# Append ld.so.conf contents to the search path
8689
if test -f /etc/ld.so.conf; then
8690
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
8691
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8694
# We used to test for /lib/ld.so.1 and disable shared libraries on
8695
# powerpc, because MkLinux only supported shared libraries with the
8696
# GNU dynamic linker. Since this was broken with cross compilers,
8697
# most powerpc-linux boxes support dynamic linking these days and
8698
# people can always --disable-shared, the test was removed, and we
8699
# assume the GNU/Linux dynamic linker is in use.
8700
dynamic_linker='GNU/Linux ld.so'
8707
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8708
soname_spec='${libname}${release}${shared_ext}$major'
8709
shlibpath_var=LD_LIBRARY_PATH
8710
shlibpath_overrides_runpath=no
8711
hardcode_into_libs=yes
8712
dynamic_linker='NetBSD ld.elf_so'
8719
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8720
soname_spec='${libname}${release}${shared_ext}$major'
8721
shlibpath_var=LD_LIBRARY_PATH
8722
shlibpath_overrides_runpath=no
8723
hardcode_into_libs=yes
8724
dynamic_linker='GNU ld.so'
8731
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8732
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8733
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8734
dynamic_linker='NetBSD (a.out) ld.so'
8736
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8737
soname_spec='${libname}${release}${shared_ext}$major'
8738
dynamic_linker='NetBSD ld.elf_so'
8740
shlibpath_var=LD_LIBRARY_PATH
8741
shlibpath_overrides_runpath=yes
8742
hardcode_into_libs=yes
8747
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8748
shlibpath_var=LD_LIBRARY_PATH
8749
shlibpath_overrides_runpath=yes
8756
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8757
soname_spec='${libname}${release}${shared_ext}$major'
8758
shlibpath_var=LD_LIBRARY_PATH
8759
shlibpath_overrides_runpath=yes
8766
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8767
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8768
shlibpath_var=LD_LIBRARY_PATH
8769
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8771
openbsd2.[89] | openbsd2.[89].*)
8772
shlibpath_overrides_runpath=no
8775
shlibpath_overrides_runpath=yes
8779
shlibpath_overrides_runpath=yes
8784
libname_spec='$name'
8787
library_names_spec='$libname${shared_ext} $libname.a'
8788
dynamic_linker='OS/2 ld.exe'
8789
shlibpath_var=LIBPATH
8792
osf3* | osf4* | osf5*)
8796
soname_spec='${libname}${release}${shared_ext}$major'
8797
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8798
shlibpath_var=LD_LIBRARY_PATH
8799
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8800
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8805
soname_spec='${libname}${release}${shared_ext}$major'
8806
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8807
shlibpath_var=LD_LIBRARY_PATH
8814
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8815
soname_spec='${libname}${release}${shared_ext}$major'
8816
shlibpath_var=LD_LIBRARY_PATH
8817
shlibpath_overrides_runpath=yes
8818
hardcode_into_libs=yes
8819
# ldd complains unless libraries are executable
8820
postinstall_cmds='chmod +x $lib'
8825
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8826
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8827
shlibpath_var=LD_LIBRARY_PATH
8828
shlibpath_overrides_runpath=yes
8829
if test "$with_gnu_ld" = yes; then
8835
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8837
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8838
soname_spec='${libname}${release}${shared_ext}$major'
8839
shlibpath_var=LD_LIBRARY_PATH
8840
case $host_vendor in
8842
shlibpath_overrides_runpath=no
8844
export_dynamic_flag_spec='${wl}-Blargedynsym'
8845
runpath_var=LD_RUN_PATH
8853
shlibpath_overrides_runpath=no
8854
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8860
if test -d /usr/nec ;then
8862
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8863
soname_spec='$libname${shared_ext}.$major'
8864
shlibpath_var=LD_LIBRARY_PATH
8870
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8871
soname_spec='${libname}${release}${shared_ext}$major'
8872
shlibpath_var=LD_LIBRARY_PATH
8879
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8880
echo "${ECHO_T}$dynamic_linker" >&6
8881
test "$dynamic_linker" = no && can_build_shared=no
8883
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
5974
8884
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
5975
8885
hardcode_action=
5976
8886
if test -n "$hardcode_libdir_flag_spec" || \
5977
test -n "$runpath_var"; then
8887
test -n "$runpath_var " || \
8888
test "X$hardcode_automatic"="Xyes" ; then
5979
8890
# We can hardcode non-existant directories.
5980
8891
if test "$hardcode_direct" != no &&
5981
8892
# If the only mechanism to avoid hardcoding is shlibpath_var, we
5982
8893
# have to relink, otherwise we might link with an installed library
5983
8894
# when we should be linking with a yet-to-be-installed one
5984
## test "$hardcode_shlibpath_var" != no &&
8895
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
5985
8896
test "$hardcode_minus_L" != no; then
5986
8897
# Linking always hardcodes the temporary library directory.
5987
8898
hardcode_action=relink
7499
cygwin* | mingw* | pw32* | os2*)
7500
cat <<'EOF' >> "${ofile}T"
7501
# This is a source program that is used to create dlls on Windows
7502
# Don't remove nor modify the starting and closing comments
7503
# /* ltdll.c starts here */
7504
# #define WIN32_LEAN_AND_MEAN
7505
# #include <windows.h>
7506
# #undef WIN32_LEAN_AND_MEAN
7507
# #include <stdio.h>
7509
# #ifndef __CYGWIN__
7510
# # ifdef __CYGWIN32__
7511
# # define __CYGWIN__ __CYGWIN32__
7515
# #ifdef __cplusplus
7518
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7519
# #ifdef __cplusplus
7524
# #include <cygwin/cygwin_dll.h>
7525
# DECLARE_CYGWIN_DLL( DllMain );
7527
# HINSTANCE __hDllInstance_base;
7530
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7532
# __hDllInstance_base = hInst;
7535
# /* ltdll.c ends here */
7536
# This is a source program that is used to create import libraries
7537
# on Windows for dlls which lack them. Don't remove nor modify the
7538
# starting and closing comments
7539
# /* impgen.c starts here */
7540
# /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7542
# This file is part of GNU libtool.
7544
# This program is free software; you can redistribute it and/or modify
7545
# it under the terms of the GNU General Public License as published by
7546
# the Free Software Foundation; either version 2 of the License, or
7547
# (at your option) any later version.
7549
# This program is distributed in the hope that it will be useful,
7550
# but WITHOUT ANY WARRANTY; without even the implied warranty of
7551
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7552
# GNU General Public License for more details.
7554
# You should have received a copy of the GNU General Public License
7555
# along with this program; if not, write to the Free Software
7556
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7559
# #include <stdio.h> /* for printf() */
7560
# #include <unistd.h> /* for open(), lseek(), read() */
7561
# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7562
# #include <string.h> /* for strdup() */
7564
# /* O_BINARY isn't required (or even defined sometimes) under Unix */
7566
# #define O_BINARY 0
7569
# static unsigned int
7570
# pe_get16 (fd, offset)
7574
# unsigned char b[2];
7575
# lseek (fd, offset, SEEK_SET);
7577
# return b[0] + (b[1]<<8);
7580
# static unsigned int
7581
# pe_get32 (fd, offset)
7585
# unsigned char b[4];
7586
# lseek (fd, offset, SEEK_SET);
7588
# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7591
# static unsigned int
7595
# unsigned char *b = ptr;
7596
# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7605
# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7606
# unsigned long export_rva, export_size, nsections, secptr, expptr;
7607
# unsigned long name_rvas, nexp;
7608
# unsigned char *expdata, *erva;
7609
# char *filename, *dll_name;
7611
# filename = argv[1];
7613
# dll = open(filename, O_RDONLY|O_BINARY);
7617
# dll_name = filename;
7619
# for (i=0; filename[i]; i++)
7620
# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7621
# dll_name = filename + i +1;
7623
# pe_header_offset = pe_get32 (dll, 0x3c);
7624
# opthdr_ofs = pe_header_offset + 4 + 20;
7625
# num_entries = pe_get32 (dll, opthdr_ofs + 92);
7627
# if (num_entries < 1) /* no exports */
7630
# export_rva = pe_get32 (dll, opthdr_ofs + 96);
7631
# export_size = pe_get32 (dll, opthdr_ofs + 100);
7632
# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7633
# secptr = (pe_header_offset + 4 + 20 +
7634
# pe_get16 (dll, pe_header_offset + 4 + 16));
7637
# for (i = 0; i < nsections; i++)
7640
# unsigned long secptr1 = secptr + 40 * i;
7641
# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7642
# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7643
# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7644
# lseek(dll, secptr1, SEEK_SET);
7645
# read(dll, sname, 8);
7646
# if (vaddr <= export_rva && vaddr+vsize > export_rva)
7648
# expptr = fptr + (export_rva - vaddr);
7649
# if (export_rva + export_size > vaddr + vsize)
7650
# export_size = vsize - (export_rva - vaddr);
7655
# expdata = (unsigned char*)malloc(export_size);
7656
# lseek (dll, expptr, SEEK_SET);
7657
# read (dll, expdata, export_size);
7658
# erva = expdata - export_rva;
7660
# nexp = pe_as32 (expdata+24);
7661
# name_rvas = pe_as32 (expdata+32);
7663
# printf ("EXPORTS\n");
7664
# for (i = 0; i<nexp; i++)
7666
# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7667
# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7672
# /* impgen.c ends here */
7678
10274
# We use sed instead of cat because bash on DJGPP gets confused if
7679
10275
# if finds mixed CR/LF and LF-only lines. Since sed operates in
7680
10276
# text mode, it properly converts lines to CR/LF. This bash problem
7681
10277
# is reportedly fixed, but why not run on old versions too?
7682
sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
10278
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
7684
mv -f "${ofile}T" "$ofile" || \
7685
(rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
10280
mv -f "$cfgfile" "$ofile" || \
10281
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
7686
10282
chmod +x "$ofile"
10285
# If there is no Makefile yet, we rely on a make rule to execute
10286
# `config.status --recheck' to rerun these tests and create the
10287
# libtool script then.
10288
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10289
if test -f "$ltmain_in"; then
10290
test -f Makefile && make "$ltmain"
10296
ac_cpp='$CPP $CPPFLAGS'
10297
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10298
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10299
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10304
# Check whether --with-tags or --without-tags was given.
10305
if test "${with_tags+set}" = set; then
10306
withval="$with_tags"
10307
tagnames="$withval"
10310
if test -f "$ltmain" && test -n "$tagnames"; then
10311
if test ! -f "${ofile}"; then
10312
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10313
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10316
if test -z "$LTCC"; then
10317
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10318
if test -z "$LTCC"; then
10319
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10320
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10322
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10323
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10327
# Extract list of available tagged configurations in $ofile.
10328
# Note that this assumes the entire list is on one line.
10329
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10331
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10332
for tagname in $tagnames; do
10334
# Check whether tagname contains only valid characters
10335
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10337
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10338
echo "$as_me: error: invalid tag name: $tagname" >&2;}
10339
{ (exit 1); exit 1; }; }
10343
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10345
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10346
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10347
{ (exit 1); exit 1; }; }
10350
# Update the list of available tags.
10351
if test -n "$tagname"; then
10352
echo appending configuration tag \"$tagname\" to $ofile
10356
if test -n "$CXX" && test "X$CXX" != "Xno"; then
10358
ac_cpp='$CXXCPP $CPPFLAGS'
10359
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10360
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10361
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10366
archive_cmds_need_lc_CXX=no
10367
allow_undefined_flag_CXX=
10368
always_export_symbols_CXX=no
10369
archive_expsym_cmds_CXX=
10370
export_dynamic_flag_spec_CXX=
10371
hardcode_direct_CXX=no
10372
hardcode_libdir_flag_spec_CXX=
10373
hardcode_libdir_flag_spec_ld_CXX=
10374
hardcode_libdir_separator_CXX=
10375
hardcode_minus_L_CXX=no
10376
hardcode_automatic_CXX=no
10378
module_expsym_cmds_CXX=
10379
link_all_deplibs_CXX=unknown
10380
old_archive_cmds_CXX=$old_archive_cmds
10381
no_undefined_flag_CXX=
10382
whole_archive_flag_spec_CXX=
10383
enable_shared_with_static_runtimes_CXX=no
10385
# Dependencies to place before and after the object being linked:
10386
predep_objects_CXX=
10387
postdep_objects_CXX=
10390
compiler_lib_search_path_CXX=
10392
# Source file extension for C++ test sources.
10395
# Object file extension for compiled C++ test sources.
10399
# Code to be used in simple compile tests
10400
lt_simple_compile_test_code="int some_variable = 0;\n"
10402
# Code to be used in simple link tests
10403
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10405
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10407
# If no C compiler was specified, use CC.
10410
# Allow CC to be a program name with arguments.
10414
# Allow CC to be a program name with arguments.
10419
lt_save_with_gnu_ld=$with_gnu_ld
10420
lt_save_path_LD=$lt_cv_path_LD
10421
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10422
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10424
unset lt_cv_prog_gnu_ld
10426
if test -n "${lt_cv_path_LDCXX+set}"; then
10427
lt_cv_path_LD=$lt_cv_path_LDCXX
10429
unset lt_cv_path_LD
10431
test -z "${LDCXX+set}" || LD=$LDCXX
10435
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
10437
# We don't want -fno-exception wen compiling C++ code, so set the
10438
# no_builtin_flag separately
10439
if test "$GXX" = yes; then
10440
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10442
lt_prog_compiler_no_builtin_flag_CXX=
10445
if test "$GXX" = yes; then
10446
# Set up default GNU C++ configuration
10449
# Check whether --with-gnu-ld or --without-gnu-ld was given.
10450
if test "${with_gnu_ld+set}" = set; then
10451
withval="$with_gnu_ld"
10452
test "$withval" = no || with_gnu_ld=yes
10457
if test "$GCC" = yes; then
10458
# Check if gcc -print-prog-name=ld gives a path.
10459
echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10460
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10463
# gcc leaves a trailing carriage return which upsets mingw
10464
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10466
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10469
# Accept absolute paths.
10471
re_direlt='/[^/][^/]*/\.\./'
10472
# Canonicalize the pathname of ld
10473
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10474
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10475
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10477
test -z "$LD" && LD="$ac_prog"
10480
# If it fails, then pretend we aren't using GCC.
10484
# If it is relative, then search for the first ld in PATH.
10485
with_gnu_ld=unknown
10488
elif test "$with_gnu_ld" = yes; then
10489
echo "$as_me:$LINENO: checking for GNU ld" >&5
10490
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10492
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10493
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10495
if test "${lt_cv_path_LD+set}" = set; then
10496
echo $ECHO_N "(cached) $ECHO_C" >&6
10498
if test -z "$LD"; then
10499
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10500
for ac_dir in $PATH; do
10502
test -z "$ac_dir" && ac_dir=.
10503
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10504
lt_cv_path_LD="$ac_dir/$ac_prog"
10505
# Check to see if the program is GNU ld. I'd rather use --version,
10506
# but apparently some GNU ld's only accept -v.
10507
# Break only if it was the GNU/non-GNU ld that we prefer.
10508
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10509
*GNU* | *'with BFD'*)
10510
test "$with_gnu_ld" != no && break
10513
test "$with_gnu_ld" != yes && break
10520
lt_cv_path_LD="$LD" # Let the user override the test with a path.
10524
LD="$lt_cv_path_LD"
10525
if test -n "$LD"; then
10526
echo "$as_me:$LINENO: result: $LD" >&5
10527
echo "${ECHO_T}$LD" >&6
10529
echo "$as_me:$LINENO: result: no" >&5
10530
echo "${ECHO_T}no" >&6
10532
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10533
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10534
{ (exit 1); exit 1; }; }
10535
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10536
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10537
if test "${lt_cv_prog_gnu_ld+set}" = set; then
10538
echo $ECHO_N "(cached) $ECHO_C" >&6
10540
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
10541
case `$LD -v 2>&1 </dev/null` in
10542
*GNU* | *'with BFD'*)
10543
lt_cv_prog_gnu_ld=yes
10546
lt_cv_prog_gnu_ld=no
10550
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10551
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10552
with_gnu_ld=$lt_cv_prog_gnu_ld
10556
# Check if GNU C++ uses GNU ld as the underlying linker, since the
10557
# archiving commands below assume that GNU ld is being used.
10558
if test "$with_gnu_ld" = yes; then
10559
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10560
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'
10562
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10563
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10565
# If archive_cmds runs LD, not CC, wlarc should be empty
10566
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10567
# investigate it a little bit more. (MM)
10570
# ancient GNU ld didn't support --whole-archive et. al.
10571
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10572
grep 'no-whole-archive' > /dev/null; then
10573
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10575
whole_archive_flag_spec_CXX=
10581
# A generic and very simple default shared library creation
10582
# command for GNU C++ for the case where it uses the native
10583
# linker, instead of GNU ld. If possible, this setting should
10584
# overridden to take advantage of the native linker features on
10585
# the platform it is being used on.
10586
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10589
# Commands to make compiler produce verbose output that lists
10590
# what "hidden" libraries, object files and flags are used when
10591
# linking a shared library.
10592
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10600
# PORTME: fill in a description of your system's C++ link characteristics
10601
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10602
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10606
# FIXME: insert proper C++ library support
10610
if test "$host_cpu" = ia64; then
10611
# On IA64, the linker does run time linking by default, so we don't
10612
# have to do anything special.
10613
aix_use_runtimelinking=no
10614
exp_sym_flag='-Bexport'
10617
aix_use_runtimelinking=no
10619
# Test if we are trying to use run time linking or normal
10620
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10621
# need to do runtime linking.
10622
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10623
for ld_flag in $LDFLAGS; do
10626
aix_use_runtimelinking=yes
10633
exp_sym_flag='-bexport'
10634
no_entry_flag='-bnoentry'
10637
# When large executables or shared objects are built, AIX ld can
10638
# have problems creating the table of contents. If linking a library
10639
# or program results in "error TOC overflow" add -mminimal-toc to
10640
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10641
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10643
archive_cmds_CXX=''
10644
hardcode_direct_CXX=yes
10645
hardcode_libdir_separator_CXX=':'
10646
link_all_deplibs_CXX=yes
10648
if test "$GXX" = yes; then
10649
case $host_os in aix4.012|aix4.012.*)
10650
# We only want to do this on AIX 4.2 and lower, the check
10651
# below for broken collect2 doesn't work under 4.3+
10652
collect2name=`${CC} -print-prog-name=collect2`
10653
if test -f "$collect2name" && \
10654
strings "$collect2name" | grep resolve_lib_name >/dev/null
10656
# We have reworked collect2
10657
hardcode_direct_CXX=yes
10659
# We have old collect2
10660
hardcode_direct_CXX=unsupported
10661
# It fails to find uninstalled libraries when the uninstalled
10662
# path is not listed in the libpath. Setting hardcode_minus_L
10663
# to unsupported forces relinking
10664
hardcode_minus_L_CXX=yes
10665
hardcode_libdir_flag_spec_CXX='-L$libdir'
10666
hardcode_libdir_separator_CXX=
10669
shared_flag='-shared'
10672
if test "$host_cpu" = ia64; then
10673
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10674
# chokes on -Wl,-G. The following line is correct:
10677
if test "$aix_use_runtimelinking" = yes; then
10678
shared_flag='${wl}-G'
10680
shared_flag='${wl}-bM:SRE'
10685
# It seems that -bexpall does not export symbols beginning with
10686
# underscore (_), so it is better to generate a list of symbols to export.
10687
always_export_symbols_CXX=yes
10688
if test "$aix_use_runtimelinking" = yes; then
10689
# Warning - without using the other runtime loading flags (-brtl),
10690
# -berok will link without error, but may produce a broken library.
10691
allow_undefined_flag_CXX='-berok'
10692
# Determine the default libpath from the value encoded in an empty executable.
10693
cat >conftest.$ac_ext <<_ACEOF
10696
cat confdefs.h >>conftest.$ac_ext
10697
cat >>conftest.$ac_ext <<_ACEOF
10698
/* end confdefs.h. */
10708
rm -f conftest.$ac_objext conftest$ac_exeext
10709
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10710
(eval $ac_link) 2>conftest.er1
10712
grep -v '^ *+' conftest.er1 >conftest.err
10714
cat conftest.err >&5
10715
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716
(exit $ac_status); } &&
10717
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10718
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10719
(eval $ac_try) 2>&5
10721
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10722
(exit $ac_status); }; } &&
10723
{ ac_try='test -s conftest$ac_exeext'
10724
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10725
(eval $ac_try) 2>&5
10727
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10728
(exit $ac_status); }; }; then
10730
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10732
# Check for a 64-bit object if we didn't find anything.
10733
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10736
echo "$as_me: failed program was:" >&5
10737
sed 's/^/| /' conftest.$ac_ext >&5
10740
rm -f conftest.err conftest.$ac_objext \
10741
conftest$ac_exeext conftest.$ac_ext
10742
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10744
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10746
archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10748
if test "$host_cpu" = ia64; then
10749
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10750
allow_undefined_flag_CXX="-z nodefs"
10751
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
10753
# Determine the default libpath from the value encoded in an empty executable.
10754
cat >conftest.$ac_ext <<_ACEOF
10757
cat confdefs.h >>conftest.$ac_ext
10758
cat >>conftest.$ac_ext <<_ACEOF
10759
/* end confdefs.h. */
10769
rm -f conftest.$ac_objext conftest$ac_exeext
10770
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10771
(eval $ac_link) 2>conftest.er1
10773
grep -v '^ *+' conftest.er1 >conftest.err
10775
cat conftest.err >&5
10776
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777
(exit $ac_status); } &&
10778
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10779
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10780
(eval $ac_try) 2>&5
10782
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783
(exit $ac_status); }; } &&
10784
{ ac_try='test -s conftest$ac_exeext'
10785
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10786
(eval $ac_try) 2>&5
10788
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789
(exit $ac_status); }; }; then
10791
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10793
# Check for a 64-bit object if we didn't find anything.
10794
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10797
echo "$as_me: failed program was:" >&5
10798
sed 's/^/| /' conftest.$ac_ext >&5
10801
rm -f conftest.err conftest.$ac_objext \
10802
conftest$ac_exeext conftest.$ac_ext
10803
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10805
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10806
# Warning - without using the other run time loading flags,
10807
# -berok will link without error, but may produce a broken library.
10808
no_undefined_flag_CXX=' ${wl}-bernotok'
10809
allow_undefined_flag_CXX=' ${wl}-berok'
10810
# -bexpall does not export symbols beginning with underscore (_)
10811
always_export_symbols_CXX=yes
10812
# Exported symbols can be pulled into shared objects from archives
10813
whole_archive_flag_spec_CXX=' '
10814
archive_cmds_need_lc_CXX=yes
10815
# This is similar to how AIX traditionally builds it's shared libraries.
10816
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10821
case $cc_basename in
10823
# FIXME: insert proper C++ library support
10829
cygwin* | mingw* | pw32*)
10830
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10831
# as there is no search path for DLLs.
10832
hardcode_libdir_flag_spec_CXX='-L$libdir'
10833
allow_undefined_flag_CXX=unsupported
10834
always_export_symbols_CXX=no
10835
enable_shared_with_static_runtimes_CXX=yes
10837
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10838
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10839
# If the export-symbols file already is a .def file (1st line
10840
# is EXPORTS), use it as is; otherwise, prepend...
10841
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10842
cp $export_symbols $output_objdir/$soname.def;
10844
echo EXPORTS > $output_objdir/$soname.def;
10845
cat $export_symbols >> $output_objdir/$soname.def;
10847
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10853
darwin* | rhapsody*)
10854
if test "$GXX" = yes; then
10855
archive_cmds_need_lc_CXX=no
10857
rhapsody* | darwin1.[012])
10858
allow_undefined_flag_CXX='-undefined suppress'
10861
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10862
allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10864
case ${MACOSX_DEPLOYMENT_TARGET} in
10866
allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10869
allow_undefined_flag_CXX='-undefined dynamic_lookup'
10875
lt_int_apple_cc_single_mod=no
10876
output_verbose_link_cmd='echo'
10877
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10878
lt_int_apple_cc_single_mod=yes
10880
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10881
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10883
archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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'
10885
module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10887
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10888
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10889
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10891
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10893
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}'
10894
hardcode_direct_CXX=no
10895
hardcode_automatic_CXX=yes
10896
hardcode_shlibpath_var_CXX=unsupported
10897
whole_archive_flag_spec_CXX='-all_load $convenience'
10898
link_all_deplibs_CXX=yes
10905
case $cc_basename in
10907
# FIXME: insert proper C++ library support
10911
# Green Hills C++ Compiler
10912
# FIXME: insert proper C++ library support
10916
# FIXME: insert proper C++ library support
10922
# C++ shared libraries reported to be fairly broken before switch to ELF
10926
archive_cmds_need_lc_CXX=no
10928
freebsd* | kfreebsd*-gnu)
10929
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10936
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10937
hardcode_libdir_separator_CXX=:
10938
export_dynamic_flag_spec_CXX='${wl}-E'
10939
hardcode_direct_CXX=yes
10940
hardcode_minus_L_CXX=yes # Not in the search PATH,
10941
# but as the default
10942
# location of the library.
10944
case $cc_basename in
10946
# FIXME: insert proper C++ library support
10950
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'
10951
# Commands to make compiler produce verbose output that lists
10952
# what "hidden" libraries, object files and flags are used when
10953
# linking a shared library.
10955
# There doesn't appear to be a way to prevent this compiler from
10956
# explicitly linking system object files so we need to strip them
10957
# from the output so that they don't get included in the library
10959
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'
10962
if test "$GXX" = yes; then
10963
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'
10965
# FIXME: insert proper C++ library support
10972
if test $with_gnu_ld = no; then
10973
case "$host_cpu" in
10975
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10976
hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10977
hardcode_libdir_separator_CXX=:
10980
hardcode_libdir_flag_spec_CXX='-L$libdir'
10983
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10984
hardcode_libdir_separator_CXX=:
10985
export_dynamic_flag_spec_CXX='${wl}-E'
10989
case "$host_cpu" in
10991
hardcode_direct_CXX=no
10992
hardcode_shlibpath_var_CXX=no
10995
hardcode_direct_CXX=no
10996
hardcode_shlibpath_var_CXX=no
10997
hardcode_minus_L_CXX=yes # Not in the search PATH,
10998
# but as the default
10999
# location of the library.
11002
hardcode_direct_CXX=yes
11003
hardcode_minus_L_CXX=yes # Not in the search PATH,
11004
# but as the default
11005
# location of the library.
11009
case $cc_basename in
11011
# FIXME: insert proper C++ library support
11015
case "$host_cpu" in
11017
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11020
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11023
# Commands to make compiler produce verbose output that lists
11024
# what "hidden" libraries, object files and flags are used when
11025
# linking a shared library.
11027
# There doesn't appear to be a way to prevent this compiler from
11028
# explicitly linking system object files so we need to strip them
11029
# from the output so that they don't get included in the library
11031
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'
11034
if test "$GXX" = yes; then
11035
if test $with_gnu_ld = no; then
11036
case "$host_cpu" in
11038
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11041
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'
11046
# FIXME: insert proper C++ library support
11053
case $cc_basename in
11056
archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
11058
# Archives containing C++ object files must be created using
11059
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
11060
# necessary to make sure instantiated templates are included
11062
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11065
if test "$GXX" = yes; then
11066
if test "$with_gnu_ld" = no; then
11067
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
11069
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'
11072
link_all_deplibs_CXX=yes
11075
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11076
hardcode_libdir_separator_CXX=:
11079
case $cc_basename in
11081
# Kuck and Associates, Inc. (KAI) C++ Compiler
11083
# KCC will only create a shared library if the output file
11084
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11085
# to its proper name (with version) after linking.
11086
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'
11087
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'
11088
# Commands to make compiler produce verbose output that lists
11089
# what "hidden" libraries, object files and flags are used when
11090
# linking a shared library.
11092
# There doesn't appear to be a way to prevent this compiler from
11093
# explicitly linking system object files so we need to strip them
11094
# from the output so that they don't get included in the library
11096
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'
11098
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11099
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11101
# Archives containing C++ object files must be created using
11102
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11103
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11108
archive_cmds_need_lc_CXX=no
11109
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11110
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'
11111
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11112
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11113
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11117
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11118
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'
11120
runpath_var=LD_RUN_PATH
11121
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11122
hardcode_libdir_separator_CXX=:
11124
# Commands to make compiler produce verbose output that lists
11125
# what "hidden" libraries, object files and flags are used when
11126
# linking a shared library.
11128
# There doesn't appear to be a way to prevent this compiler from
11129
# explicitly linking system object files so we need to strip them
11130
# from the output so that they don't get included in the library
11132
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'
11137
# FIXME: insert proper C++ library support
11141
# FIXME: insert proper C++ library support
11145
case $cc_basename in
11147
# FIXME: insert proper C++ library support
11151
# FIXME: insert proper C++ library support
11156
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
11157
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11158
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11160
hardcode_libdir_flag_spec_CXX='-R$libdir'
11161
hardcode_direct_CXX=yes
11162
hardcode_shlibpath_var_CXX=no
11164
# Workaround some broken pre-1.5 toolchains
11165
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11168
case $cc_basename in
11170
# Kuck and Associates, Inc. (KAI) C++ Compiler
11172
# KCC will only create a shared library if the output file
11173
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11174
# to its proper name (with version) after linking.
11175
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'
11177
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11178
hardcode_libdir_separator_CXX=:
11180
# Archives containing C++ object files must be created using
11181
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11182
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11186
# Rational C++ 2.4.1
11187
# FIXME: insert proper C++ library support
11191
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11192
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
11194
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11195
hardcode_libdir_separator_CXX=:
11197
# Commands to make compiler produce verbose output that lists
11198
# what "hidden" libraries, object files and flags are used when
11199
# linking a shared library.
11201
# There doesn't appear to be a way to prevent this compiler from
11202
# explicitly linking system object files so we need to strip them
11203
# from the output so that they don't get included in the library
11205
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'
11208
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11209
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11210
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
11212
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11213
hardcode_libdir_separator_CXX=:
11215
# Commands to make compiler produce verbose output that lists
11216
# what "hidden" libraries, object files and flags are used when
11217
# linking a shared library.
11218
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11221
# FIXME: insert proper C++ library support
11228
case $cc_basename in
11230
# Kuck and Associates, Inc. (KAI) C++ Compiler
11232
# KCC will only create a shared library if the output file
11233
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11234
# to its proper name (with version) after linking.
11235
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'
11237
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11238
hardcode_libdir_separator_CXX=:
11240
# Archives containing C++ object files must be created using
11241
# the KAI C++ compiler.
11242
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11245
# Rational C++ 2.4.1
11246
# FIXME: insert proper C++ library support
11250
allow_undefined_flag_CXX=' -expect_unresolved \*'
11251
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
11252
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11253
echo "-hidden">> $lib.exp~
11254
$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
11257
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11258
hardcode_libdir_separator_CXX=:
11260
# Commands to make compiler produce verbose output that lists
11261
# what "hidden" libraries, object files and flags are used when
11262
# linking a shared library.
11264
# There doesn't appear to be a way to prevent this compiler from
11265
# explicitly linking system object files so we need to strip them
11266
# from the output so that they don't get included in the library
11268
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'
11271
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11272
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11273
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
11275
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11276
hardcode_libdir_separator_CXX=:
11278
# Commands to make compiler produce verbose output that lists
11279
# what "hidden" libraries, object files and flags are used when
11280
# linking a shared library.
11281
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11284
# FIXME: insert proper C++ library support
11291
# FIXME: insert proper C++ library support
11295
archive_cmds_need_lc_CXX=no
11296
case $cc_basename in
11298
# FIXME: insert proper C++ library support
11302
# FIXME: insert proper C++ library support
11308
case $cc_basename in
11311
# FIXME: insert proper C++ library support
11316
# FIXME: insert proper C++ library support
11320
# FIXME: insert proper C++ library support
11326
case $cc_basename in
11328
# Sun C++ 4.2, 5.x and Centerline C++
11329
no_undefined_flag_CXX=' -zdefs'
11330
archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11331
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11332
$CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11334
hardcode_libdir_flag_spec_CXX='-R$libdir'
11335
hardcode_shlibpath_var_CXX=no
11337
solaris2.0-5 | solaris2.0-5.*) ;;
11339
# The C++ compiler is used as linker so we must use $wl
11340
# flag to pass the commands to the underlying system
11342
# Supported since Solaris 2.6 (maybe 2.5.1?)
11343
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11346
link_all_deplibs_CXX=yes
11348
# Commands to make compiler produce verbose output that lists
11349
# what "hidden" libraries, object files and flags are used when
11350
# linking a shared library.
11352
# There doesn't appear to be a way to prevent this compiler from
11353
# explicitly linking system object files so we need to strip them
11354
# from the output so that they don't get included in the library
11356
output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11358
# Archives containing C++ object files must be created using
11359
# "CC -xar", where "CC" is the Sun C++ compiler. This is
11360
# necessary to make sure instantiated templates are included
11362
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11365
# Green Hills C++ Compiler
11366
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11368
# The C++ compiler must be used to create the archive.
11369
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11372
# GNU C++ compiler with Solaris linker
11373
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11374
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11375
if $CC --version | grep -v '^2\.7' > /dev/null; then
11376
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11377
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11378
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11380
# Commands to make compiler produce verbose output that lists
11381
# what "hidden" libraries, object files and flags are used when
11382
# linking a shared library.
11383
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11385
# g++ 2.7 appears to require `-G' NOT `-shared' on this
11387
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11388
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11389
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11391
# Commands to make compiler produce verbose output that lists
11392
# what "hidden" libraries, object files and flags are used when
11393
# linking a shared library.
11394
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11397
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11402
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11403
archive_cmds_need_lc_CXX=no
11406
case $cc_basename in
11408
# NonStop-UX NCC 3.20
11409
# FIXME: insert proper C++ library support
11413
# FIXME: insert proper C++ library support
11419
# FIXME: insert proper C++ library support
11423
# FIXME: insert proper C++ library support
11427
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11428
echo "${ECHO_T}$ld_shlibs_CXX" >&6
11429
test "$ld_shlibs_CXX" = no && can_build_shared=no
11435
cat > conftest.$ac_ext <<EOF
11439
Foo (void) { a = 0; }
11445
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11446
(eval $ac_compile) 2>&5
11448
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11449
(exit $ac_status); }; then
11450
# Parse the compiler output and extract the necessary
11451
# objects, libraries and library flags.
11453
# Sentinel used to keep track of whether or not we are before
11454
# the conftest object file.
11455
pre_test_object_deps_done=no
11457
# The `*' in the case matches for architectures that use `case' in
11458
# $output_verbose_cmd can trigger glob expansion during the loop
11459
# eval without this substitution.
11460
output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
11462
for p in `eval $output_verbose_link_cmd`; do
11466
# Some compilers place space between "-{L,R}" and the path.
11467
# Remove the space.
11468
if test $p = "-L" \
11469
|| test $p = "-R"; then
11476
if test "$pre_test_object_deps_done" = no; then
11479
# Internal compiler library paths should come after those
11480
# provided the user. The postdeps already come after the
11481
# user supplied libs so there is no need to process them.
11482
if test -z "$compiler_lib_search_path_CXX"; then
11483
compiler_lib_search_path_CXX="${prev}${p}"
11485
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11488
# The "-l" case would never come before the object being
11489
# linked, so don't bother handling this case.
11492
if test -z "$postdeps_CXX"; then
11493
postdeps_CXX="${prev}${p}"
11495
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11501
# This assumes that the test object file only shows up
11502
# once in the compiler output.
11503
if test "$p" = "conftest.$objext"; then
11504
pre_test_object_deps_done=yes
11508
if test "$pre_test_object_deps_done" = no; then
11509
if test -z "$predep_objects_CXX"; then
11510
predep_objects_CXX="$p"
11512
predep_objects_CXX="$predep_objects_CXX $p"
11515
if test -z "$postdep_objects_CXX"; then
11516
postdep_objects_CXX="$p"
11518
postdep_objects_CXX="$postdep_objects_CXX $p"
11523
*) ;; # Ignore the rest.
11531
echo "libtool.m4: error: problem compiling CXX test program"
11534
$rm -f confest.$objext
11536
case " $postdeps_CXX " in
11537
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11540
lt_prog_compiler_wl_CXX=
11541
lt_prog_compiler_pic_CXX=
11542
lt_prog_compiler_static_CXX=
11544
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11545
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11547
# C++ specific cases for pic, static, wl, etc.
11548
if test "$GXX" = yes; then
11549
lt_prog_compiler_wl_CXX='-Wl,'
11550
lt_prog_compiler_static_CXX='-static'
11554
# All AIX code is PIC.
11555
if test "$host_cpu" = ia64; then
11556
# AIX 5 now supports IA64 processor
11557
lt_prog_compiler_static_CXX='-Bstatic'
11561
# FIXME: we need at least 68020 code to build shared libraries, but
11562
# adding the `-m68020' flag to GCC prevents building anything better,
11564
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11566
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11567
# PIC is the default for these OSes.
11569
mingw* | os2* | pw32*)
11570
# This hack is so that the source file can tell whether it is being
11571
# built for inclusion in a dll (and should export symbols for example).
11572
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11574
darwin* | rhapsody*)
11575
# PIC is the default on this platform
11576
# Common symbols not allowed in MH_DYLIB files
11577
lt_prog_compiler_pic_CXX='-fno-common'
11580
# DJGPP does not support shared libraries at all
11581
lt_prog_compiler_pic_CXX=
11584
if test -d /usr/nec; then
11585
lt_prog_compiler_pic_CXX=-Kconform_pic
11589
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11590
# not for PA HP-UX.
11591
case "$host_cpu" in
11595
lt_prog_compiler_pic_CXX='-fPIC'
11600
lt_prog_compiler_pic_CXX='-fPIC'
11606
# All AIX code is PIC.
11607
if test "$host_cpu" = ia64; then
11608
# AIX 5 now supports IA64 processor
11609
lt_prog_compiler_static_CXX='-Bstatic'
11611
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11615
case $cc_basename in
11617
# Green Hills C++ Compiler
11618
# _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
11623
case $cc_basename in
11625
lt_prog_compiler_pic_CXX='-KPIC'
11628
# Green Hills C++ Compiler
11629
lt_prog_compiler_pic_CXX='-pic'
11635
freebsd* | kfreebsd*-gnu)
11636
# FreeBSD uses GNU C++
11638
hpux9* | hpux10* | hpux11*)
11639
case $cc_basename in
11641
lt_prog_compiler_wl_CXX='-Wl,'
11642
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11643
if test "$host_cpu" != ia64; then
11644
lt_prog_compiler_pic_CXX='+Z'
11648
lt_prog_compiler_wl_CXX='-Wl,'
11649
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11650
case "$host_cpu" in
11655
lt_prog_compiler_pic_CXX='+Z'
11663
irix5* | irix6* | nonstopux*)
11664
case $cc_basename in
11666
lt_prog_compiler_wl_CXX='-Wl,'
11667
lt_prog_compiler_static_CXX='-non_shared'
11668
# CC pic flag -KPIC is the default.
11675
case $cc_basename in
11678
lt_prog_compiler_wl_CXX='--backend -Wl,'
11679
lt_prog_compiler_pic_CXX='-fPIC'
11683
lt_prog_compiler_wl_CXX='-Wl,'
11684
lt_prog_compiler_pic_CXX='-KPIC'
11685
lt_prog_compiler_static_CXX='-static'
11689
# Make sure the PIC flag is empty. It appears that all Alpha
11690
# Linux and Compaq Tru64 Unix objects are PIC.
11691
lt_prog_compiler_pic_CXX=
11692
lt_prog_compiler_static_CXX='-non_shared'
11703
case $cc_basename in
11705
lt_prog_compiler_pic_CXX='-W c,exportall'
11711
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
11713
osf3* | osf4* | osf5*)
11714
case $cc_basename in
11716
lt_prog_compiler_wl_CXX='--backend -Wl,'
11719
# Rational C++ 2.4.1
11720
lt_prog_compiler_pic_CXX='-pic'
11723
# Digital/Compaq C++
11724
lt_prog_compiler_wl_CXX='-Wl,'
11725
# Make sure the PIC flag is empty. It appears that all Alpha
11726
# Linux and Compaq Tru64 Unix objects are PIC.
11727
lt_prog_compiler_pic_CXX=
11728
lt_prog_compiler_static_CXX='-non_shared'
11737
case $cc_basename in
11739
lt_prog_compiler_pic_CXX='-fPIC'
11746
case $cc_basename in
11748
# Sun C++ 4.2, 5.x and Centerline C++
11749
lt_prog_compiler_pic_CXX='-KPIC'
11750
lt_prog_compiler_static_CXX='-Bstatic'
11751
lt_prog_compiler_wl_CXX='-Qoption ld '
11754
# Green Hills C++ Compiler
11755
lt_prog_compiler_pic_CXX='-PIC'
11762
case $cc_basename in
11765
lt_prog_compiler_pic_CXX='-pic'
11766
lt_prog_compiler_static_CXX='-Bstatic'
11770
lt_prog_compiler_pic_CXX='-pic'
11777
case $cc_basename in
11779
# NonStop-UX NCC 3.20
11780
lt_prog_compiler_pic_CXX='-KPIC'
11791
lt_prog_compiler_can_build_shared_CXX=no
11796
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11797
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11800
# Check to make sure the PIC flag actually works.
11802
if test -n "$lt_prog_compiler_pic_CXX"; then
11804
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11805
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11806
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11807
echo $ECHO_N "(cached) $ECHO_C" >&6
11809
lt_prog_compiler_pic_works_CXX=no
11810
ac_outfile=conftest.$ac_objext
11811
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11812
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11813
# Insert the option either (1) after the last *FLAGS variable, or
11814
# (2) before a word containing "conftest.", or (3) at the end.
11815
# Note that $ac_compile itself does not contain backslashes and begins
11816
# with a dollar sign (not a hyphen), so the echo should work correctly.
11817
# The option is referenced via a variable to avoid confusing sed.
11818
lt_compile=`echo "$ac_compile" | $SED \
11819
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11820
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11821
-e 's:$: $lt_compiler_flag:'`
11822
(eval echo "\"\$as_me:11822: $lt_compile\"" >&5)
11823
(eval "$lt_compile" 2>conftest.err)
11825
cat conftest.err >&5
11826
echo "$as_me:11826: \$? = $ac_status" >&5
11827
if (exit $ac_status) && test -s "$ac_outfile"; then
11828
# The compiler can only warn and ignore the option if not recognized
11829
# So say no if there are warnings
11830
if test ! -s conftest.err; then
11831
lt_prog_compiler_pic_works_CXX=yes
11837
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11838
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11840
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11841
case $lt_prog_compiler_pic_CXX in
11843
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11846
lt_prog_compiler_pic_CXX=
11847
lt_prog_compiler_can_build_shared_CXX=no
11852
# For platforms which do not support PIC, -DPIC is meaningless:
11854
lt_prog_compiler_pic_CXX=
11857
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11861
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11862
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11863
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11864
echo $ECHO_N "(cached) $ECHO_C" >&6
11866
lt_cv_prog_compiler_c_o_CXX=no
11867
$rm -r conftest 2>/dev/null
11871
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11873
lt_compiler_flag="-o out/conftest2.$ac_objext"
11874
# Insert the option either (1) after the last *FLAGS variable, or
11875
# (2) before a word containing "conftest.", or (3) at the end.
11876
# Note that $ac_compile itself does not contain backslashes and begins
11877
# with a dollar sign (not a hyphen), so the echo should work correctly.
11878
lt_compile=`echo "$ac_compile" | $SED \
11879
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11880
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11881
-e 's:$: $lt_compiler_flag:'`
11882
(eval echo "\"\$as_me:11882: $lt_compile\"" >&5)
11883
(eval "$lt_compile" 2>out/conftest.err)
11885
cat out/conftest.err >&5
11886
echo "$as_me:11886: \$? = $ac_status" >&5
11887
if (exit $ac_status) && test -s out/conftest2.$ac_objext
11889
# The compiler can only warn and ignore the option if not recognized
11890
# So say no if there are warnings
11891
if test ! -s out/conftest.err; then
11892
lt_cv_prog_compiler_c_o_CXX=yes
11897
# SGI C++ compiler will create directory out/ii_files/ for
11898
# template instantiation
11899
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11900
$rm out/* && rmdir out
11906
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11907
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11910
hard_links="nottested"
11911
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11912
# do not overwrite the value of need_locks provided by the user
11913
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11914
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11917
ln conftest.a conftest.b 2>/dev/null && hard_links=no
11919
ln conftest.a conftest.b 2>&5 || hard_links=no
11920
ln conftest.a conftest.b 2>/dev/null && hard_links=no
11921
echo "$as_me:$LINENO: result: $hard_links" >&5
11922
echo "${ECHO_T}$hard_links" >&6
11923
if test "$hard_links" = no; then
11924
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11925
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11932
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11933
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11935
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11938
# If we're using GNU nm, then we don't want the "-C" option.
11939
# -C means demangle to AIX nm, but means don't demangle with GNU nm
11940
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11941
export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11943
export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11947
export_symbols_cmds_CXX="$ltdll_cmds"
11950
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11953
link_all_deplibs_CXX=no
11956
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11960
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11961
echo "${ECHO_T}$ld_shlibs_CXX" >&6
11962
test "$ld_shlibs_CXX" = no && can_build_shared=no
11964
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11965
if test "$GCC" = yes; then
11966
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11970
# Do we need to explicitly link libc?
11972
case "x$archive_cmds_need_lc_CXX" in
11974
# Assume -lc should be added
11975
archive_cmds_need_lc_CXX=yes
11977
if test "$enable_shared" = yes && test "$GCC" = yes; then
11978
case $archive_cmds_CXX in
11980
# FIXME: we may have to deal with multi-command sequences.
11983
# Test whether the compiler implicitly links with -lc since on some
11984
# systems, -lgcc has to come before -lc. If gcc already passes -lc
11985
# to ld, don't add -lc before -lgcc.
11986
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11987
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11989
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11991
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11992
(eval $ac_compile) 2>&5
11994
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995
(exit $ac_status); } 2>conftest.err; then
11998
libobjs=conftest.$ac_objext
12000
wl=$lt_prog_compiler_wl_CXX
12006
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12007
allow_undefined_flag_CXX=
12008
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12009
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12011
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12012
(exit $ac_status); }
12014
archive_cmds_need_lc_CXX=no
12016
archive_cmds_need_lc_CXX=yes
12018
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12020
cat conftest.err 1>&5
12023
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12024
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12031
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12032
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12033
library_names_spec=
12034
libname_spec='lib$name'
12038
postuninstall_cmds=
12042
shlibpath_overrides_runpath=unknown
12044
dynamic_linker="$host_os ld.so"
12045
sys_lib_dlsearch_path_spec="/lib /usr/lib"
12046
if test "$GCC" = yes; then
12047
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12048
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12049
# if the path contains ";" then we assume it to be the separator
12050
# otherwise default to the standard path separator (i.e. ":") - it is
12051
# assumed that no part of a normal pathname contains ";" but that should
12052
# okay in the real world where ";" in dirpaths is itself problematic.
12053
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12055
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12058
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12060
need_lib_prefix=unknown
12061
hardcode_into_libs=no
12063
# when you set need_version to no, make sure it does not cause -set_version
12064
# flags to be left without arguments
12065
need_version=unknown
12070
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12071
shlibpath_var=LIBPATH
12073
# AIX 3 has no versioning support, so we append a major version to the name.
12074
soname_spec='${libname}${release}${shared_ext}$major'
12081
hardcode_into_libs=yes
12082
if test "$host_cpu" = ia64; then
12083
# AIX 5 supports IA64
12084
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12085
shlibpath_var=LD_LIBRARY_PATH
12087
# With GCC up to 2.95.x, collect2 would create an import file
12088
# for dependence libraries. The import file would start with
12089
# the line `#! .'. This would cause the generated library to
12090
# depend on `.', always an invalid library. This was fixed in
12091
# development snapshots of GCC prior to 3.0.
12093
aix4 | aix4.[01] | aix4.[01].*)
12094
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12096
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12099
can_build_shared=no
12103
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12104
# soname into executable. Probably we can add versioning support to
12105
# collect2, so additional links can be useful in future.
12106
if test "$aix_use_runtimelinking" = yes; then
12107
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
12108
# instead of lib<name>.a to let people know that these are not
12109
# typical AIX shared libraries.
12110
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12112
# We preserve .a as extension for shared libraries through AIX4.2
12113
# and later when we are not doing run time linking.
12114
library_names_spec='${libname}${release}.a $libname.a'
12115
soname_spec='${libname}${release}${shared_ext}$major'
12117
shlibpath_var=LIBPATH
12122
library_names_spec='$libname.ixlibrary $libname.a'
12123
# Create ${libname}_ixlibrary.a entries in /sys/libs.
12124
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'
12128
library_names_spec='${libname}${shared_ext}'
12129
dynamic_linker="$host_os ld.so"
12130
shlibpath_var=LIBRARY_PATH
12136
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12137
soname_spec='${libname}${release}${shared_ext}$major'
12138
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12139
shlibpath_var=LD_LIBRARY_PATH
12140
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12141
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12142
# the default ld.so.conf also contains /usr/contrib/lib and
12143
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12144
# libtool to hard-code these into programs
12147
cygwin* | mingw* | pw32*)
12148
version_type=windows
12153
case $GCC,$host_os in
12154
yes,cygwin* | yes,mingw* | yes,pw32*)
12155
library_names_spec='$libname.dll.a'
12156
# DLL is installed to $(libdir)/../bin by postinstall_cmds
12157
postinstall_cmds='base_file=`basename \${file}`~
12158
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12159
dldir=$destdir/`dirname \$dlpath`~
12160
test -d \$dldir || mkdir -p \$dldir~
12161
$install_prog $dir/$dlname \$dldir/$dlname'
12162
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12163
dlpath=$dir/\$dldll~
12165
shlibpath_overrides_runpath=yes
12169
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
12170
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12171
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12174
# MinGW DLLs use traditional 'lib' prefix
12175
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12176
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12177
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12178
# It is most probably a Windows format PATH printed by
12179
# mingw gcc, but we are running on Cygwin. Gcc prints its search
12180
# path with ; separators, and with drive letters. We can handle the
12181
# drive letters (cygwin fileutils understands them), so leave them,
12182
# especially as we might pass files found there to a mingw objdump,
12183
# which wouldn't understand a cygwinified path. Ahh.
12184
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12186
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12190
# pw32 DLLs use 'pw' prefix rather than 'lib'
12191
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
12197
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12200
dynamic_linker='Win32 ld.exe'
12201
# FIXME: first we should search . and the directory the executable is in
12205
darwin* | rhapsody*)
12206
dynamic_linker="$host_os dyld"
12207
version_type=darwin
12210
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12211
soname_spec='${libname}${release}${major}$shared_ext'
12212
shlibpath_overrides_runpath=yes
12213
shlibpath_var=DYLD_LIBRARY_PATH
12214
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
12215
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12216
if test "$GCC" = yes; then
12217
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12219
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12221
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12228
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12229
soname_spec='${libname}${release}${shared_ext}$major'
12230
shlibpath_var=LD_LIBRARY_PATH
12241
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12242
soname_spec='${libname}${release}${shared_ext}$major'
12243
shlibpath_var=LD_LIBRARY_PATH
12244
shlibpath_overrides_runpath=no
12245
hardcode_into_libs=yes
12246
dynamic_linker='GNU ld.so'
12250
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
12251
version_type=freebsd-$objformat
12252
case $version_type in
12254
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12259
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12263
shlibpath_var=LD_LIBRARY_PATH
12266
shlibpath_overrides_runpath=yes
12268
freebsd3.01* | freebsdelf3.01*)
12269
shlibpath_overrides_runpath=yes
12270
hardcode_into_libs=yes
12273
shlibpath_overrides_runpath=no
12274
hardcode_into_libs=yes
12283
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12284
soname_spec='${libname}${release}${shared_ext}$major'
12285
shlibpath_var=LD_LIBRARY_PATH
12286
hardcode_into_libs=yes
12289
hpux9* | hpux10* | hpux11*)
12290
# Give a soname corresponding to the major version so that dld.sl refuses to
12291
# link against other versions.
12295
case "$host_cpu" in
12298
hardcode_into_libs=yes
12299
dynamic_linker="$host_os dld.so"
12300
shlibpath_var=LD_LIBRARY_PATH
12301
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12302
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12303
soname_spec='${libname}${release}${shared_ext}$major'
12304
if test "X$HPUX_IA64_MODE" = X32; then
12305
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12307
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12309
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12313
hardcode_into_libs=yes
12314
dynamic_linker="$host_os dld.sl"
12315
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12316
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12317
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12318
soname_spec='${libname}${release}${shared_ext}$major'
12319
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12320
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12324
dynamic_linker="$host_os dld.sl"
12325
shlibpath_var=SHLIB_PATH
12326
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12327
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12328
soname_spec='${libname}${release}${shared_ext}$major'
12331
# HP-UX runs *really* slowly unless shared libraries are mode 555.
12332
postinstall_cmds='chmod 555 $lib'
12335
irix5* | irix6* | nonstopux*)
12337
nonstopux*) version_type=nonstopux ;;
12339
if test "$lt_cv_prog_gnu_ld" = yes; then
12347
soname_spec='${libname}${release}${shared_ext}$major'
12348
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12350
irix5* | nonstopux*)
12351
libsuff= shlibsuff=
12354
case $LD in # libtool.m4 will add one of these switches to LD
12355
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12356
libsuff= shlibsuff= libmagic=32-bit;;
12357
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12358
libsuff=32 shlibsuff=N32 libmagic=N32;;
12359
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12360
libsuff=64 shlibsuff=64 libmagic=64-bit;;
12361
*) libsuff= shlibsuff= libmagic=never-match;;
12365
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12366
shlibpath_overrides_runpath=no
12367
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12368
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12369
hardcode_into_libs=yes
12372
# No shared lib support for Linux oldld, aout, or coff.
12373
linux*oldld* | linux*aout* | linux*coff*)
12377
# This must be Linux ELF.
12382
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12383
soname_spec='${libname}${release}${shared_ext}$major'
12384
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12385
shlibpath_var=LD_LIBRARY_PATH
12386
shlibpath_overrides_runpath=no
12387
# This implies no fast_install, which is unacceptable.
12388
# Some rework will be needed to allow for fast_install
12389
# before this can be enabled.
12390
hardcode_into_libs=yes
12392
# Append ld.so.conf contents to the search path
12393
if test -f /etc/ld.so.conf; then
12394
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
12395
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12398
# We used to test for /lib/ld.so.1 and disable shared libraries on
12399
# powerpc, because MkLinux only supported shared libraries with the
12400
# GNU dynamic linker. Since this was broken with cross compilers,
12401
# most powerpc-linux boxes support dynamic linking these days and
12402
# people can always --disable-shared, the test was removed, and we
12403
# assume the GNU/Linux dynamic linker is in use.
12404
dynamic_linker='GNU/Linux ld.so'
12411
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12412
soname_spec='${libname}${release}${shared_ext}$major'
12413
shlibpath_var=LD_LIBRARY_PATH
12414
shlibpath_overrides_runpath=no
12415
hardcode_into_libs=yes
12416
dynamic_linker='NetBSD ld.elf_so'
12423
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12424
soname_spec='${libname}${release}${shared_ext}$major'
12425
shlibpath_var=LD_LIBRARY_PATH
12426
shlibpath_overrides_runpath=no
12427
hardcode_into_libs=yes
12428
dynamic_linker='GNU ld.so'
12435
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12436
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12437
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12438
dynamic_linker='NetBSD (a.out) ld.so'
12440
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12441
soname_spec='${libname}${release}${shared_ext}$major'
12442
dynamic_linker='NetBSD ld.elf_so'
12444
shlibpath_var=LD_LIBRARY_PATH
12445
shlibpath_overrides_runpath=yes
12446
hardcode_into_libs=yes
12451
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12452
shlibpath_var=LD_LIBRARY_PATH
12453
shlibpath_overrides_runpath=yes
12460
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12461
soname_spec='${libname}${release}${shared_ext}$major'
12462
shlibpath_var=LD_LIBRARY_PATH
12463
shlibpath_overrides_runpath=yes
12470
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12471
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12472
shlibpath_var=LD_LIBRARY_PATH
12473
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12475
openbsd2.[89] | openbsd2.[89].*)
12476
shlibpath_overrides_runpath=no
12479
shlibpath_overrides_runpath=yes
12483
shlibpath_overrides_runpath=yes
12488
libname_spec='$name'
12491
library_names_spec='$libname${shared_ext} $libname.a'
12492
dynamic_linker='OS/2 ld.exe'
12493
shlibpath_var=LIBPATH
12496
osf3* | osf4* | osf5*)
12500
soname_spec='${libname}${release}${shared_ext}$major'
12501
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12502
shlibpath_var=LD_LIBRARY_PATH
12503
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12504
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12509
soname_spec='${libname}${release}${shared_ext}$major'
12510
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12511
shlibpath_var=LD_LIBRARY_PATH
12518
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12519
soname_spec='${libname}${release}${shared_ext}$major'
12520
shlibpath_var=LD_LIBRARY_PATH
12521
shlibpath_overrides_runpath=yes
12522
hardcode_into_libs=yes
12523
# ldd complains unless libraries are executable
12524
postinstall_cmds='chmod +x $lib'
12529
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12530
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12531
shlibpath_var=LD_LIBRARY_PATH
12532
shlibpath_overrides_runpath=yes
12533
if test "$with_gnu_ld" = yes; then
12539
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12541
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12542
soname_spec='${libname}${release}${shared_ext}$major'
12543
shlibpath_var=LD_LIBRARY_PATH
12544
case $host_vendor in
12546
shlibpath_overrides_runpath=no
12548
export_dynamic_flag_spec='${wl}-Blargedynsym'
12549
runpath_var=LD_RUN_PATH
12557
shlibpath_overrides_runpath=no
12558
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12564
if test -d /usr/nec ;then
12566
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12567
soname_spec='$libname${shared_ext}.$major'
12568
shlibpath_var=LD_LIBRARY_PATH
12574
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12575
soname_spec='${libname}${release}${shared_ext}$major'
12576
shlibpath_var=LD_LIBRARY_PATH
12583
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12584
echo "${ECHO_T}$dynamic_linker" >&6
12585
test "$dynamic_linker" = no && can_build_shared=no
12587
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12588
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12589
hardcode_action_CXX=
12590
if test -n "$hardcode_libdir_flag_spec_CXX" || \
12591
test -n "$runpath_var CXX" || \
12592
test "X$hardcode_automatic_CXX"="Xyes" ; then
12594
# We can hardcode non-existant directories.
12595
if test "$hardcode_direct_CXX" != no &&
12596
# If the only mechanism to avoid hardcoding is shlibpath_var, we
12597
# have to relink, otherwise we might link with an installed library
12598
# when we should be linking with a yet-to-be-installed one
12599
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12600
test "$hardcode_minus_L_CXX" != no; then
12601
# Linking always hardcodes the temporary library directory.
12602
hardcode_action_CXX=relink
12604
# We can link without hardcoding, and we can hardcode nonexisting dirs.
12605
hardcode_action_CXX=immediate
12608
# We cannot hardcode anything, or else we can only hardcode existing
12610
hardcode_action_CXX=unsupported
12612
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12613
echo "${ECHO_T}$hardcode_action_CXX" >&6
12615
if test "$hardcode_action_CXX" = relink; then
12616
# Fast installation is not supported
12617
enable_fast_install=no
12618
elif test "$shlibpath_overrides_runpath" = yes ||
12619
test "$enable_shared" = no; then
12620
# Fast installation is not necessary
12621
enable_fast_install=needless
12626
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12627
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12628
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12629
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12630
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12631
echo "$as_me:$LINENO: result: yes" >&5
12632
echo "${ECHO_T}yes" >&6
12634
# FIXME - insert some real tests, host_os isn't really good enough
12637
if test -n "$STRIP" ; then
12638
striplib="$STRIP -x"
12639
echo "$as_me:$LINENO: result: yes" >&5
12640
echo "${ECHO_T}yes" >&6
12642
echo "$as_me:$LINENO: result: no" >&5
12643
echo "${ECHO_T}no" >&6
12647
echo "$as_me:$LINENO: result: no" >&5
12648
echo "${ECHO_T}no" >&6
12653
if test "x$enable_dlopen" != xyes; then
12654
enable_dlopen=unknown
12655
enable_dlopen_self=unknown
12656
enable_dlopen_self_static=unknown
12663
lt_cv_dlopen="load_add_on"
12665
lt_cv_dlopen_self=yes
12669
lt_cv_dlopen="LoadLibrary"
12674
lt_cv_dlopen="dlopen"
12679
# if libdl is installed we need to link against it
12680
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12681
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12682
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12683
echo $ECHO_N "(cached) $ECHO_C" >&6
12685
ac_check_lib_save_LIBS=$LIBS
12687
cat >conftest.$ac_ext <<_ACEOF
12690
cat confdefs.h >>conftest.$ac_ext
12691
cat >>conftest.$ac_ext <<_ACEOF
12692
/* end confdefs.h. */
12694
/* Override any gcc2 internal prototype to avoid an error. */
12698
/* We use char because int might match the return type of a gcc2
12699
builtin and then its argument prototype would still apply. */
12709
rm -f conftest.$ac_objext conftest$ac_exeext
12710
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12711
(eval $ac_link) 2>conftest.er1
12713
grep -v '^ *+' conftest.er1 >conftest.err
12715
cat conftest.err >&5
12716
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12717
(exit $ac_status); } &&
12718
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12719
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12720
(eval $ac_try) 2>&5
12722
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12723
(exit $ac_status); }; } &&
12724
{ ac_try='test -s conftest$ac_exeext'
12725
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12726
(eval $ac_try) 2>&5
12728
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729
(exit $ac_status); }; }; then
12730
ac_cv_lib_dl_dlopen=yes
12732
echo "$as_me: failed program was:" >&5
12733
sed 's/^/| /' conftest.$ac_ext >&5
12735
ac_cv_lib_dl_dlopen=no
12737
rm -f conftest.err conftest.$ac_objext \
12738
conftest$ac_exeext conftest.$ac_ext
12739
LIBS=$ac_check_lib_save_LIBS
12741
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12742
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12743
if test $ac_cv_lib_dl_dlopen = yes; then
12744
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12747
lt_cv_dlopen="dyld"
12749
lt_cv_dlopen_self=yes
12756
echo "$as_me:$LINENO: checking for shl_load" >&5
12757
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12758
if test "${ac_cv_func_shl_load+set}" = set; then
12759
echo $ECHO_N "(cached) $ECHO_C" >&6
12761
cat >conftest.$ac_ext <<_ACEOF
12764
cat confdefs.h >>conftest.$ac_ext
12765
cat >>conftest.$ac_ext <<_ACEOF
12766
/* end confdefs.h. */
12767
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12768
For example, HP-UX 11i <limits.h> declares gettimeofday. */
12769
#define shl_load innocuous_shl_load
12771
/* System header to define __stub macros and hopefully few prototypes,
12772
which can conflict with char shl_load (); below.
12773
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12774
<limits.h> exists even on freestanding compilers. */
12777
# include <limits.h>
12779
# include <assert.h>
12784
/* Override any gcc2 internal prototype to avoid an error. */
12789
/* We use char because int might match the return type of a gcc2
12790
builtin and then its argument prototype would still apply. */
12792
/* The GNU C library defines this for functions which it implements
12793
to always fail with ENOSYS. Some functions are actually named
12794
something starting with __ and the normal name is an alias. */
12795
#if defined (__stub_shl_load) || defined (__stub___shl_load)
12798
char (*f) () = shl_load;
12807
return f != shl_load;
12812
rm -f conftest.$ac_objext conftest$ac_exeext
12813
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12814
(eval $ac_link) 2>conftest.er1
12816
grep -v '^ *+' conftest.er1 >conftest.err
12818
cat conftest.err >&5
12819
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12820
(exit $ac_status); } &&
12821
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12822
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12823
(eval $ac_try) 2>&5
12825
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826
(exit $ac_status); }; } &&
12827
{ ac_try='test -s conftest$ac_exeext'
12828
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12829
(eval $ac_try) 2>&5
12831
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12832
(exit $ac_status); }; }; then
12833
ac_cv_func_shl_load=yes
12835
echo "$as_me: failed program was:" >&5
12836
sed 's/^/| /' conftest.$ac_ext >&5
12838
ac_cv_func_shl_load=no
12840
rm -f conftest.err conftest.$ac_objext \
12841
conftest$ac_exeext conftest.$ac_ext
12843
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12844
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12845
if test $ac_cv_func_shl_load = yes; then
12846
lt_cv_dlopen="shl_load"
12848
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12849
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12850
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12851
echo $ECHO_N "(cached) $ECHO_C" >&6
12853
ac_check_lib_save_LIBS=$LIBS
12855
cat >conftest.$ac_ext <<_ACEOF
12858
cat confdefs.h >>conftest.$ac_ext
12859
cat >>conftest.$ac_ext <<_ACEOF
12860
/* end confdefs.h. */
12862
/* Override any gcc2 internal prototype to avoid an error. */
12866
/* We use char because int might match the return type of a gcc2
12867
builtin and then its argument prototype would still apply. */
12877
rm -f conftest.$ac_objext conftest$ac_exeext
12878
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12879
(eval $ac_link) 2>conftest.er1
12881
grep -v '^ *+' conftest.er1 >conftest.err
12883
cat conftest.err >&5
12884
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12885
(exit $ac_status); } &&
12886
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12887
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12888
(eval $ac_try) 2>&5
12890
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12891
(exit $ac_status); }; } &&
12892
{ ac_try='test -s conftest$ac_exeext'
12893
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12894
(eval $ac_try) 2>&5
12896
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897
(exit $ac_status); }; }; then
12898
ac_cv_lib_dld_shl_load=yes
12900
echo "$as_me: failed program was:" >&5
12901
sed 's/^/| /' conftest.$ac_ext >&5
12903
ac_cv_lib_dld_shl_load=no
12905
rm -f conftest.err conftest.$ac_objext \
12906
conftest$ac_exeext conftest.$ac_ext
12907
LIBS=$ac_check_lib_save_LIBS
12909
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12910
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12911
if test $ac_cv_lib_dld_shl_load = yes; then
12912
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12914
echo "$as_me:$LINENO: checking for dlopen" >&5
12915
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12916
if test "${ac_cv_func_dlopen+set}" = set; then
12917
echo $ECHO_N "(cached) $ECHO_C" >&6
12919
cat >conftest.$ac_ext <<_ACEOF
12922
cat confdefs.h >>conftest.$ac_ext
12923
cat >>conftest.$ac_ext <<_ACEOF
12924
/* end confdefs.h. */
12925
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12926
For example, HP-UX 11i <limits.h> declares gettimeofday. */
12927
#define dlopen innocuous_dlopen
12929
/* System header to define __stub macros and hopefully few prototypes,
12930
which can conflict with char dlopen (); below.
12931
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12932
<limits.h> exists even on freestanding compilers. */
12935
# include <limits.h>
12937
# include <assert.h>
12942
/* Override any gcc2 internal prototype to avoid an error. */
12947
/* We use char because int might match the return type of a gcc2
12948
builtin and then its argument prototype would still apply. */
12950
/* The GNU C library defines this for functions which it implements
12951
to always fail with ENOSYS. Some functions are actually named
12952
something starting with __ and the normal name is an alias. */
12953
#if defined (__stub_dlopen) || defined (__stub___dlopen)
12956
char (*f) () = dlopen;
12965
return f != dlopen;
12970
rm -f conftest.$ac_objext conftest$ac_exeext
12971
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12972
(eval $ac_link) 2>conftest.er1
12974
grep -v '^ *+' conftest.er1 >conftest.err
12976
cat conftest.err >&5
12977
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12978
(exit $ac_status); } &&
12979
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12980
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12981
(eval $ac_try) 2>&5
12983
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984
(exit $ac_status); }; } &&
12985
{ ac_try='test -s conftest$ac_exeext'
12986
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12987
(eval $ac_try) 2>&5
12989
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990
(exit $ac_status); }; }; then
12991
ac_cv_func_dlopen=yes
12993
echo "$as_me: failed program was:" >&5
12994
sed 's/^/| /' conftest.$ac_ext >&5
12996
ac_cv_func_dlopen=no
12998
rm -f conftest.err conftest.$ac_objext \
12999
conftest$ac_exeext conftest.$ac_ext
13001
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13002
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13003
if test $ac_cv_func_dlopen = yes; then
13004
lt_cv_dlopen="dlopen"
13006
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13007
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13008
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13009
echo $ECHO_N "(cached) $ECHO_C" >&6
13011
ac_check_lib_save_LIBS=$LIBS
13013
cat >conftest.$ac_ext <<_ACEOF
13016
cat confdefs.h >>conftest.$ac_ext
13017
cat >>conftest.$ac_ext <<_ACEOF
13018
/* end confdefs.h. */
13020
/* Override any gcc2 internal prototype to avoid an error. */
13024
/* We use char because int might match the return type of a gcc2
13025
builtin and then its argument prototype would still apply. */
13035
rm -f conftest.$ac_objext conftest$ac_exeext
13036
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13037
(eval $ac_link) 2>conftest.er1
13039
grep -v '^ *+' conftest.er1 >conftest.err
13041
cat conftest.err >&5
13042
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13043
(exit $ac_status); } &&
13044
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13045
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13046
(eval $ac_try) 2>&5
13048
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13049
(exit $ac_status); }; } &&
13050
{ ac_try='test -s conftest$ac_exeext'
13051
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13052
(eval $ac_try) 2>&5
13054
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13055
(exit $ac_status); }; }; then
13056
ac_cv_lib_dl_dlopen=yes
13058
echo "$as_me: failed program was:" >&5
13059
sed 's/^/| /' conftest.$ac_ext >&5
13061
ac_cv_lib_dl_dlopen=no
13063
rm -f conftest.err conftest.$ac_objext \
13064
conftest$ac_exeext conftest.$ac_ext
13065
LIBS=$ac_check_lib_save_LIBS
13067
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13068
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13069
if test $ac_cv_lib_dl_dlopen = yes; then
13070
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13072
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13073
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
13074
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13075
echo $ECHO_N "(cached) $ECHO_C" >&6
13077
ac_check_lib_save_LIBS=$LIBS
13078
LIBS="-lsvld $LIBS"
13079
cat >conftest.$ac_ext <<_ACEOF
13082
cat confdefs.h >>conftest.$ac_ext
13083
cat >>conftest.$ac_ext <<_ACEOF
13084
/* end confdefs.h. */
13086
/* Override any gcc2 internal prototype to avoid an error. */
13090
/* We use char because int might match the return type of a gcc2
13091
builtin and then its argument prototype would still apply. */
13101
rm -f conftest.$ac_objext conftest$ac_exeext
13102
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13103
(eval $ac_link) 2>conftest.er1
13105
grep -v '^ *+' conftest.er1 >conftest.err
13107
cat conftest.err >&5
13108
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13109
(exit $ac_status); } &&
13110
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13111
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13112
(eval $ac_try) 2>&5
13114
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13115
(exit $ac_status); }; } &&
13116
{ ac_try='test -s conftest$ac_exeext'
13117
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13118
(eval $ac_try) 2>&5
13120
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13121
(exit $ac_status); }; }; then
13122
ac_cv_lib_svld_dlopen=yes
13124
echo "$as_me: failed program was:" >&5
13125
sed 's/^/| /' conftest.$ac_ext >&5
13127
ac_cv_lib_svld_dlopen=no
13129
rm -f conftest.err conftest.$ac_objext \
13130
conftest$ac_exeext conftest.$ac_ext
13131
LIBS=$ac_check_lib_save_LIBS
13133
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13134
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
13135
if test $ac_cv_lib_svld_dlopen = yes; then
13136
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13138
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13139
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
13140
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13141
echo $ECHO_N "(cached) $ECHO_C" >&6
13143
ac_check_lib_save_LIBS=$LIBS
13145
cat >conftest.$ac_ext <<_ACEOF
13148
cat confdefs.h >>conftest.$ac_ext
13149
cat >>conftest.$ac_ext <<_ACEOF
13150
/* end confdefs.h. */
13152
/* Override any gcc2 internal prototype to avoid an error. */
13156
/* We use char because int might match the return type of a gcc2
13157
builtin and then its argument prototype would still apply. */
13167
rm -f conftest.$ac_objext conftest$ac_exeext
13168
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13169
(eval $ac_link) 2>conftest.er1
13171
grep -v '^ *+' conftest.er1 >conftest.err
13173
cat conftest.err >&5
13174
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13175
(exit $ac_status); } &&
13176
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13177
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13178
(eval $ac_try) 2>&5
13180
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13181
(exit $ac_status); }; } &&
13182
{ ac_try='test -s conftest$ac_exeext'
13183
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13184
(eval $ac_try) 2>&5
13186
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13187
(exit $ac_status); }; }; then
13188
ac_cv_lib_dld_dld_link=yes
13190
echo "$as_me: failed program was:" >&5
13191
sed 's/^/| /' conftest.$ac_ext >&5
13193
ac_cv_lib_dld_dld_link=no
13195
rm -f conftest.err conftest.$ac_objext \
13196
conftest$ac_exeext conftest.$ac_ext
13197
LIBS=$ac_check_lib_save_LIBS
13199
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13200
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
13201
if test $ac_cv_lib_dld_dld_link = yes; then
13202
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13223
if test "x$lt_cv_dlopen" != xno; then
13229
case $lt_cv_dlopen in
13231
save_CPPFLAGS="$CPPFLAGS"
13232
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13234
save_LDFLAGS="$LDFLAGS"
13235
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13238
LIBS="$lt_cv_dlopen_libs $LIBS"
13240
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13241
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
13242
if test "${lt_cv_dlopen_self+set}" = set; then
13243
echo $ECHO_N "(cached) $ECHO_C" >&6
13245
if test "$cross_compiling" = yes; then :
13246
lt_cv_dlopen_self=cross
13248
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13249
lt_status=$lt_dlunknown
13250
cat > conftest.$ac_ext <<EOF
13251
#line 13251 "configure"
13252
#include "confdefs.h"
13261
# define LT_DLGLOBAL RTLD_GLOBAL
13264
# define LT_DLGLOBAL DL_GLOBAL
13266
# define LT_DLGLOBAL 0
13270
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13271
find out it does not work in some platform. */
13272
#ifndef LT_DLLAZY_OR_NOW
13274
# define LT_DLLAZY_OR_NOW RTLD_LAZY
13277
# define LT_DLLAZY_OR_NOW DL_LAZY
13280
# define LT_DLLAZY_OR_NOW RTLD_NOW
13283
# define LT_DLLAZY_OR_NOW DL_NOW
13285
# define LT_DLLAZY_OR_NOW 0
13293
extern "C" void exit (int);
13296
void fnord() { int i=42;}
13299
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13300
int status = $lt_dlunknown;
13304
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13305
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13306
/* dlclose (self); */
13312
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13313
(eval $ac_link) 2>&5
13315
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13317
(./conftest; exit; ) 2>/dev/null
13319
case x$lt_status in
13320
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13321
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13322
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13325
# compilation failed
13326
lt_cv_dlopen_self=no
13333
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13334
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
13336
if test "x$lt_cv_dlopen_self" = xyes; then
13337
LDFLAGS="$LDFLAGS $link_static_flag"
13338
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13339
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
13340
if test "${lt_cv_dlopen_self_static+set}" = set; then
13341
echo $ECHO_N "(cached) $ECHO_C" >&6
13343
if test "$cross_compiling" = yes; then :
13344
lt_cv_dlopen_self_static=cross
13346
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13347
lt_status=$lt_dlunknown
13348
cat > conftest.$ac_ext <<EOF
13349
#line 13349 "configure"
13350
#include "confdefs.h"
13359
# define LT_DLGLOBAL RTLD_GLOBAL
13362
# define LT_DLGLOBAL DL_GLOBAL
13364
# define LT_DLGLOBAL 0
13368
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13369
find out it does not work in some platform. */
13370
#ifndef LT_DLLAZY_OR_NOW
13372
# define LT_DLLAZY_OR_NOW RTLD_LAZY
13375
# define LT_DLLAZY_OR_NOW DL_LAZY
13378
# define LT_DLLAZY_OR_NOW RTLD_NOW
13381
# define LT_DLLAZY_OR_NOW DL_NOW
13383
# define LT_DLLAZY_OR_NOW 0
13391
extern "C" void exit (int);
13394
void fnord() { int i=42;}
13397
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13398
int status = $lt_dlunknown;
13402
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13403
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13404
/* dlclose (self); */
13410
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13411
(eval $ac_link) 2>&5
13413
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13414
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13415
(./conftest; exit; ) 2>/dev/null
13417
case x$lt_status in
13418
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13419
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13420
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13423
# compilation failed
13424
lt_cv_dlopen_self_static=no
13431
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13432
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13435
CPPFLAGS="$save_CPPFLAGS"
13436
LDFLAGS="$save_LDFLAGS"
13441
case $lt_cv_dlopen_self in
13442
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13443
*) enable_dlopen_self=unknown ;;
13446
case $lt_cv_dlopen_self_static in
13447
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13448
*) enable_dlopen_self_static=unknown ;;
13453
# The else clause should only fire when bootstrapping the
13454
# libtool distribution, otherwise you forgot to ship ltmain.sh
13455
# with your package, and you will get complaints that there are
13456
# no rules to generate ltmain.sh.
13457
if test -f "$ltmain"; then
13458
# See if we are running on zsh, and set the options which allow our commands through
13459
# without removal of \ escapes.
13460
if test -n "${ZSH_VERSION+set}" ; then
13461
setopt NO_GLOB_SUBST
13463
# Now quote all the things that may contain metacharacters while being
13464
# careful not to overquote the AC_SUBSTed values. We take copies of the
13465
# variables and quote the copies for generation of the libtool script.
13466
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13468
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13469
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13470
deplibs_check_method reload_flag reload_cmds need_locks \
13471
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13472
lt_cv_sys_global_symbol_to_c_name_address \
13473
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13474
old_postinstall_cmds old_postuninstall_cmds \
13478
lt_prog_compiler_wl_CXX \
13479
lt_prog_compiler_pic_CXX \
13480
lt_prog_compiler_static_CXX \
13481
lt_prog_compiler_no_builtin_flag_CXX \
13482
export_dynamic_flag_spec_CXX \
13483
thread_safe_flag_spec_CXX \
13484
whole_archive_flag_spec_CXX \
13485
enable_shared_with_static_runtimes_CXX \
13486
old_archive_cmds_CXX \
13487
old_archive_from_new_cmds_CXX \
13488
predep_objects_CXX \
13489
postdep_objects_CXX \
13492
compiler_lib_search_path_CXX \
13494
archive_expsym_cmds_CXX \
13495
postinstall_cmds_CXX \
13496
postuninstall_cmds_CXX \
13497
old_archive_from_expsyms_cmds_CXX \
13498
allow_undefined_flag_CXX \
13499
no_undefined_flag_CXX \
13500
export_symbols_cmds_CXX \
13501
hardcode_libdir_flag_spec_CXX \
13502
hardcode_libdir_flag_spec_ld_CXX \
13503
hardcode_libdir_separator_CXX \
13504
hardcode_automatic_CXX \
13506
module_expsym_cmds_CXX \
13507
lt_cv_prog_compiler_c_o_CXX \
13508
exclude_expsyms_CXX \
13509
include_expsyms_CXX; do
13512
old_archive_cmds_CXX | \
13513
old_archive_from_new_cmds_CXX | \
13514
archive_cmds_CXX | \
13515
archive_expsym_cmds_CXX | \
13516
module_cmds_CXX | \
13517
module_expsym_cmds_CXX | \
13518
old_archive_from_expsyms_cmds_CXX | \
13519
export_symbols_cmds_CXX | \
13520
extract_expsyms_cmds | reload_cmds | finish_cmds | \
13521
postinstall_cmds | postuninstall_cmds | \
13522
old_postinstall_cmds | old_postuninstall_cmds | \
13523
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13524
# Double-quote double-evaled strings.
13525
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13528
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13534
*'\$0 --fallback-echo"')
13535
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13541
cat <<__EOF__ >> "$cfgfile"
13542
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13544
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13546
# Shell to use when invoking shell scripts.
13549
# Whether or not to build shared libraries.
13550
build_libtool_libs=$enable_shared
13552
# Whether or not to build static libraries.
13553
build_old_libs=$enable_static
13555
# Whether or not to add -lc for building shared libraries.
13556
build_libtool_need_lc=$archive_cmds_need_lc_CXX
13558
# Whether or not to disallow shared libs when runtime libs are static
13559
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13561
# Whether or not to optimize for fast installation.
13562
fast_install=$enable_fast_install
13565
host_alias=$host_alias
13568
# An echo program that does not interpret backslashes.
13573
AR_FLAGS=$lt_AR_FLAGS
13578
# A language-specific compiler.
13579
CC=$lt_compiler_CXX
13581
# Is the compiler the GNU C compiler?
13587
# The linker used to build libraries.
13590
# Whether we need hard or soft links.
13593
# A BSD-compatible nm program.
13596
# A symbol stripping program
13599
# Used to examine libraries when file_magic_cmd begins "file"
13600
MAGIC_CMD=$MAGIC_CMD
13602
# Used on cygwin: DLL creation program.
13605
# Used on cygwin: object dumper.
13608
# Used on cygwin: assembler.
13611
# The name of the directory that contains temporary libtool files.
13614
# How to create reloadable object files.
13615
reload_flag=$lt_reload_flag
13616
reload_cmds=$lt_reload_cmds
13618
# How to pass a linker flag through the compiler.
13619
wl=$lt_lt_prog_compiler_wl_CXX
13621
# Object file suffix (normally "o").
13622
objext="$ac_objext"
13624
# Old archive suffix (normally "a").
13627
# Shared library suffix (normally ".so").
13628
shrext_cmds='$shrext_cmds'
13630
# Executable file suffix (normally "").
13633
# Additional compiler flags for building library objects.
13634
pic_flag=$lt_lt_prog_compiler_pic_CXX
13637
# What is the maximum length of a command?
13638
max_cmd_len=$lt_cv_sys_max_cmd_len
13640
# Does compiler simultaneously support -c and -o options?
13641
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13643
# Must we lock files when doing compilation ?
13644
need_locks=$lt_need_locks
13646
# Do we need the lib prefix for modules?
13647
need_lib_prefix=$need_lib_prefix
13649
# Do we need a version for libraries?
13650
need_version=$need_version
13652
# Whether dlopen is supported.
13653
dlopen_support=$enable_dlopen
13655
# Whether dlopen of programs is supported.
13656
dlopen_self=$enable_dlopen_self
13658
# Whether dlopen of statically linked programs is supported.
13659
dlopen_self_static=$enable_dlopen_self_static
13661
# Compiler flag to prevent dynamic linking.
13662
link_static_flag=$lt_lt_prog_compiler_static_CXX
13664
# Compiler flag to turn off builtin functions.
13665
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13667
# Compiler flag to allow reflexive dlopens.
13668
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13670
# Compiler flag to generate shared objects directly from archives.
13671
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13673
# Compiler flag to generate thread-safe objects.
13674
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13676
# Library versioning type.
13677
version_type=$version_type
13679
# Format of library name prefix.
13680
libname_spec=$lt_libname_spec
13682
# List of archive names. First name is the real one, the rest are links.
13683
# The last name is the one that the linker finds with -lNAME.
13684
library_names_spec=$lt_library_names_spec
13686
# The coded name of the library, if different from the real name.
13687
soname_spec=$lt_soname_spec
13689
# Commands used to build and install an old-style archive.
13691
old_archive_cmds=$lt_old_archive_cmds_CXX
13692
old_postinstall_cmds=$lt_old_postinstall_cmds
13693
old_postuninstall_cmds=$lt_old_postuninstall_cmds
13695
# Create an old-style archive from a shared archive.
13696
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13698
# Create a temporary old-style archive to link instead of a shared archive.
13699
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13701
# Commands used to build and install a shared archive.
13702
archive_cmds=$lt_archive_cmds_CXX
13703
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13704
postinstall_cmds=$lt_postinstall_cmds
13705
postuninstall_cmds=$lt_postuninstall_cmds
13707
# Commands used to build a loadable module (assumed same as above if empty)
13708
module_cmds=$lt_module_cmds_CXX
13709
module_expsym_cmds=$lt_module_expsym_cmds_CXX
13711
# Commands to strip libraries.
13712
old_striplib=$lt_old_striplib
13713
striplib=$lt_striplib
13715
# Dependencies to place before the objects being linked to create a
13717
predep_objects=$lt_predep_objects_CXX
13719
# Dependencies to place after the objects being linked to create a
13721
postdep_objects=$lt_postdep_objects_CXX
13723
# Dependencies to place before the objects being linked to create a
13725
predeps=$lt_predeps_CXX
13727
# Dependencies to place after the objects being linked to create a
13729
postdeps=$lt_postdeps_CXX
13731
# The library search path used internally by the compiler when linking
13732
# a shared library.
13733
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13735
# Method to check whether dependent libraries are shared objects.
13736
deplibs_check_method=$lt_deplibs_check_method
13738
# Command to use when deplibs_check_method == file_magic.
13739
file_magic_cmd=$lt_file_magic_cmd
13741
# Flag that allows shared libraries with undefined symbols to be built.
13742
allow_undefined_flag=$lt_allow_undefined_flag_CXX
13744
# Flag that forces no undefined symbols.
13745
no_undefined_flag=$lt_no_undefined_flag_CXX
13747
# Commands used to finish a libtool library installation in a directory.
13748
finish_cmds=$lt_finish_cmds
13750
# Same as above, but a single script fragment to be evaled but not shown.
13751
finish_eval=$lt_finish_eval
13753
# Take the output of nm and produce a listing of raw symbols and C names.
13754
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13756
# Transform the output of nm in a proper C declaration
13757
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13759
# Transform the output of nm in a C name address pair
13760
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13762
# This is the shared library runtime path variable.
13763
runpath_var=$runpath_var
13765
# This is the shared library path variable.
13766
shlibpath_var=$shlibpath_var
13768
# Is shlibpath searched before the hard-coded library search path?
13769
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13771
# How to hardcode a shared library path into an executable.
13772
hardcode_action=$hardcode_action_CXX
13774
# Whether we should hardcode library paths into libraries.
13775
hardcode_into_libs=$hardcode_into_libs
13777
# Flag to hardcode \$libdir into a binary during linking.
13778
# This must work even if \$libdir does not exist.
13779
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13781
# If ld is used when linking, flag to hardcode \$libdir into
13782
# a binary during linking. This must work even if \$libdir does
13784
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13786
# Whether we need a single -rpath flag with a separated argument.
13787
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13789
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13790
# resulting binary.
13791
hardcode_direct=$hardcode_direct_CXX
13793
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13794
# resulting binary.
13795
hardcode_minus_L=$hardcode_minus_L_CXX
13797
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13798
# the resulting binary.
13799
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13801
# Set to yes if building a shared library automatically hardcodes DIR into the library
13802
# and all subsequent libraries and executables linked against it.
13803
hardcode_automatic=$hardcode_automatic_CXX
13805
# Variables whose values should be saved in libtool wrapper scripts and
13806
# restored at relink time.
13807
variables_saved_for_relink="$variables_saved_for_relink"
13809
# Whether libtool must link a program against all its dependency libraries.
13810
link_all_deplibs=$link_all_deplibs_CXX
13812
# Compile-time system search path for libraries
13813
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13815
# Run-time system search path for libraries
13816
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13818
# Fix the shell variable \$srcfile for the compiler.
13819
fix_srcfile_path="$fix_srcfile_path_CXX"
13821
# Set to yes if exported symbols are required.
13822
always_export_symbols=$always_export_symbols_CXX
13824
# The commands to list exported symbols.
13825
export_symbols_cmds=$lt_export_symbols_cmds_CXX
13827
# The commands to extract the exported symbol list from a shared archive.
13828
extract_expsyms_cmds=$lt_extract_expsyms_cmds
13830
# Symbols that should not be listed in the preloaded symbols.
13831
exclude_expsyms=$lt_exclude_expsyms_CXX
13833
# Symbols that must always be exported.
13834
include_expsyms=$lt_include_expsyms_CXX
13836
# ### END LIBTOOL TAG CONFIG: $tagname
13842
# If there is no Makefile yet, we rely on a make rule to execute
13843
# `config.status --recheck' to rerun these tests and create the
13844
# libtool script then.
13845
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13846
if test -f "$ltmain_in"; then
13847
test -f Makefile && make "$ltmain"
13853
ac_cpp='$CPP $CPPFLAGS'
13854
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13855
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13856
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13862
with_gnu_ldcxx=$with_gnu_ld
13863
with_gnu_ld=$lt_save_with_gnu_ld
13864
lt_cv_path_LDCXX=$lt_cv_path_LD
13865
lt_cv_path_LD=$lt_save_path_LD
13866
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13867
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13875
if test -n "$F77" && test "X$F77" != "Xno"; then
13878
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13879
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13880
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13883
archive_cmds_need_lc_F77=no
13884
allow_undefined_flag_F77=
13885
always_export_symbols_F77=no
13886
archive_expsym_cmds_F77=
13887
export_dynamic_flag_spec_F77=
13888
hardcode_direct_F77=no
13889
hardcode_libdir_flag_spec_F77=
13890
hardcode_libdir_flag_spec_ld_F77=
13891
hardcode_libdir_separator_F77=
13892
hardcode_minus_L_F77=no
13893
hardcode_automatic_F77=no
13895
module_expsym_cmds_F77=
13896
link_all_deplibs_F77=unknown
13897
old_archive_cmds_F77=$old_archive_cmds
13898
no_undefined_flag_F77=
13899
whole_archive_flag_spec_F77=
13900
enable_shared_with_static_runtimes_F77=no
13902
# Source file extension for f77 test sources.
13905
# Object file extension for compiled f77 test sources.
13909
# Code to be used in simple compile tests
13910
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13912
# Code to be used in simple link tests
13913
lt_simple_link_test_code=" program t\n end\n"
13915
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13917
# If no C compiler was specified, use CC.
13920
# Allow CC to be a program name with arguments.
13924
# Allow CC to be a program name with arguments.
13929
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13931
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13932
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13933
echo "$as_me:$LINENO: result: $can_build_shared" >&5
13934
echo "${ECHO_T}$can_build_shared" >&6
13936
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13937
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13938
test "$can_build_shared" = "no" && enable_shared=no
13940
# On AIX, shared libraries and static libraries use the same namespace, and
13941
# are all built from PIC.
13944
test "$enable_shared" = yes && enable_static=no
13945
if test -n "$RANLIB"; then
13946
archive_cmds="$archive_cmds~\$RANLIB \$lib"
13947
postinstall_cmds='$RANLIB $lib'
13951
test "$enable_shared" = yes && enable_static=no
13954
echo "$as_me:$LINENO: result: $enable_shared" >&5
13955
echo "${ECHO_T}$enable_shared" >&6
13957
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13958
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13959
# Make sure either enable_shared or enable_static is yes.
13960
test "$enable_shared" = yes || enable_static=yes
13961
echo "$as_me:$LINENO: result: $enable_static" >&5
13962
echo "${ECHO_T}$enable_static" >&6
13964
test "$ld_shlibs_F77" = no && can_build_shared=no
13969
lt_prog_compiler_wl_F77=
13970
lt_prog_compiler_pic_F77=
13971
lt_prog_compiler_static_F77=
13973
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13974
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13976
if test "$GCC" = yes; then
13977
lt_prog_compiler_wl_F77='-Wl,'
13978
lt_prog_compiler_static_F77='-static'
13982
# All AIX code is PIC.
13983
if test "$host_cpu" = ia64; then
13984
# AIX 5 now supports IA64 processor
13985
lt_prog_compiler_static_F77='-Bstatic'
13990
# FIXME: we need at least 68020 code to build shared libraries, but
13991
# adding the `-m68020' flag to GCC prevents building anything better,
13993
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13996
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13997
# PIC is the default for these OSes.
14000
mingw* | pw32* | os2*)
14001
# This hack is so that the source file can tell whether it is being
14002
# built for inclusion in a dll (and should export symbols for example).
14003
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14006
darwin* | rhapsody*)
14007
# PIC is the default on this platform
14008
# Common symbols not allowed in MH_DYLIB files
14009
lt_prog_compiler_pic_F77='-fno-common'
14013
# Just because we use GCC doesn't mean we suddenly get shared libraries
14014
# on systems that don't support them.
14015
lt_prog_compiler_can_build_shared_F77=no
14020
if test -d /usr/nec; then
14021
lt_prog_compiler_pic_F77=-Kconform_pic
14026
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14027
# not for PA HP-UX.
14028
case "$host_cpu" in
14033
lt_prog_compiler_pic_F77='-fPIC'
14039
lt_prog_compiler_pic_F77='-fPIC'
14043
# PORTME Check for flag to pass linker flags through the system compiler.
14046
lt_prog_compiler_wl_F77='-Wl,'
14047
if test "$host_cpu" = ia64; then
14048
# AIX 5 now supports IA64 processor
14049
lt_prog_compiler_static_F77='-Bstatic'
14051
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14055
mingw* | pw32* | os2*)
14056
# This hack is so that the source file can tell whether it is being
14057
# built for inclusion in a dll (and should export symbols for example).
14058
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14061
hpux9* | hpux10* | hpux11*)
14062
lt_prog_compiler_wl_F77='-Wl,'
14063
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14064
# not for PA HP-UX.
14065
case "$host_cpu" in
14070
lt_prog_compiler_pic_F77='+Z'
14073
# Is there a better lt_prog_compiler_static that works with the bundled CC?
14074
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14077
irix5* | irix6* | nonstopux*)
14078
lt_prog_compiler_wl_F77='-Wl,'
14079
# PIC (with -KPIC) is the default.
14080
lt_prog_compiler_static_F77='-non_shared'
14084
lt_prog_compiler_pic_F77='-KPIC'
14085
lt_prog_compiler_static_F77='-Bstatic'
14091
lt_prog_compiler_wl_F77='-Wl,'
14092
lt_prog_compiler_pic_F77='-KPIC'
14093
lt_prog_compiler_static_F77='-static'
14096
lt_prog_compiler_wl_F77='-Wl,'
14097
# All Alpha code is PIC.
14098
lt_prog_compiler_static_F77='-non_shared'
14103
osf3* | osf4* | osf5*)
14104
lt_prog_compiler_wl_F77='-Wl,'
14105
# All OSF/1 code is PIC.
14106
lt_prog_compiler_static_F77='-non_shared'
14110
lt_prog_compiler_pic_F77='-Kpic'
14111
lt_prog_compiler_static_F77='-dn'
14115
lt_prog_compiler_wl_F77='-Wl,'
14116
lt_prog_compiler_pic_F77='-KPIC'
14117
lt_prog_compiler_static_F77='-Bstatic'
14121
lt_prog_compiler_wl_F77='-Qoption ld '
14122
lt_prog_compiler_pic_F77='-PIC'
14123
lt_prog_compiler_static_F77='-Bstatic'
14126
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14127
lt_prog_compiler_wl_F77='-Wl,'
14128
lt_prog_compiler_pic_F77='-KPIC'
14129
lt_prog_compiler_static_F77='-Bstatic'
14133
if test -d /usr/nec ;then
14134
lt_prog_compiler_pic_F77='-Kconform_pic'
14135
lt_prog_compiler_static_F77='-Bstatic'
14140
lt_prog_compiler_pic_F77='-pic'
14141
lt_prog_compiler_static_F77='-Bstatic'
14145
lt_prog_compiler_can_build_shared_F77=no
14150
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14151
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14154
# Check to make sure the PIC flag actually works.
14156
if test -n "$lt_prog_compiler_pic_F77"; then
14158
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14159
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14160
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14161
echo $ECHO_N "(cached) $ECHO_C" >&6
14163
lt_prog_compiler_pic_works_F77=no
14164
ac_outfile=conftest.$ac_objext
14165
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14166
lt_compiler_flag="$lt_prog_compiler_pic_F77"
14167
# Insert the option either (1) after the last *FLAGS variable, or
14168
# (2) before a word containing "conftest.", or (3) at the end.
14169
# Note that $ac_compile itself does not contain backslashes and begins
14170
# with a dollar sign (not a hyphen), so the echo should work correctly.
14171
# The option is referenced via a variable to avoid confusing sed.
14172
lt_compile=`echo "$ac_compile" | $SED \
14173
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14174
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14175
-e 's:$: $lt_compiler_flag:'`
14176
(eval echo "\"\$as_me:14176: $lt_compile\"" >&5)
14177
(eval "$lt_compile" 2>conftest.err)
14179
cat conftest.err >&5
14180
echo "$as_me:14180: \$? = $ac_status" >&5
14181
if (exit $ac_status) && test -s "$ac_outfile"; then
14182
# The compiler can only warn and ignore the option if not recognized
14183
# So say no if there are warnings
14184
if test ! -s conftest.err; then
14185
lt_prog_compiler_pic_works_F77=yes
14191
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14192
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14194
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14195
case $lt_prog_compiler_pic_F77 in
14197
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14200
lt_prog_compiler_pic_F77=
14201
lt_prog_compiler_can_build_shared_F77=no
14206
# For platforms which do not support PIC, -DPIC is meaningless:
14208
lt_prog_compiler_pic_F77=
14211
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14215
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14216
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14217
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14218
echo $ECHO_N "(cached) $ECHO_C" >&6
14220
lt_cv_prog_compiler_c_o_F77=no
14221
$rm -r conftest 2>/dev/null
14225
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14227
lt_compiler_flag="-o out/conftest2.$ac_objext"
14228
# Insert the option either (1) after the last *FLAGS variable, or
14229
# (2) before a word containing "conftest.", or (3) at the end.
14230
# Note that $ac_compile itself does not contain backslashes and begins
14231
# with a dollar sign (not a hyphen), so the echo should work correctly.
14232
lt_compile=`echo "$ac_compile" | $SED \
14233
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14234
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14235
-e 's:$: $lt_compiler_flag:'`
14236
(eval echo "\"\$as_me:14236: $lt_compile\"" >&5)
14237
(eval "$lt_compile" 2>out/conftest.err)
14239
cat out/conftest.err >&5
14240
echo "$as_me:14240: \$? = $ac_status" >&5
14241
if (exit $ac_status) && test -s out/conftest2.$ac_objext
14243
# The compiler can only warn and ignore the option if not recognized
14244
# So say no if there are warnings
14245
if test ! -s out/conftest.err; then
14246
lt_cv_prog_compiler_c_o_F77=yes
14251
# SGI C++ compiler will create directory out/ii_files/ for
14252
# template instantiation
14253
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14254
$rm out/* && rmdir out
14260
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14261
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
14264
hard_links="nottested"
14265
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14266
# do not overwrite the value of need_locks provided by the user
14267
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14268
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14271
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14273
ln conftest.a conftest.b 2>&5 || hard_links=no
14274
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14275
echo "$as_me:$LINENO: result: $hard_links" >&5
14276
echo "${ECHO_T}$hard_links" >&6
14277
if test "$hard_links" = no; then
14278
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14279
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14286
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14287
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14290
allow_undefined_flag_F77=
14291
enable_shared_with_static_runtimes_F77=no
14293
archive_expsym_cmds_F77=
14294
old_archive_From_new_cmds_F77=
14295
old_archive_from_expsyms_cmds_F77=
14296
export_dynamic_flag_spec_F77=
14297
whole_archive_flag_spec_F77=
14298
thread_safe_flag_spec_F77=
14299
hardcode_libdir_flag_spec_F77=
14300
hardcode_libdir_flag_spec_ld_F77=
14301
hardcode_libdir_separator_F77=
14302
hardcode_direct_F77=no
14303
hardcode_minus_L_F77=no
14304
hardcode_shlibpath_var_F77=unsupported
14305
link_all_deplibs_F77=unknown
14306
hardcode_automatic_F77=no
14308
module_expsym_cmds_F77=
14309
always_export_symbols_F77=no
14310
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14311
# include_expsyms should be a list of space-separated symbols to be *always*
14312
# included in the symbol list
14313
include_expsyms_F77=
14314
# exclude_expsyms can be an extended regexp of symbols to exclude
14315
# it will be wrapped by ` (' and `)$', so one must not match beginning or
14316
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14317
# as well as any symbol that contains `d'.
14318
exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14319
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14320
# platforms (ab)use it in PIC code, but their linkers get confused if
14321
# the symbol is explicitly referenced. Since portable code cannot
14322
# rely on this symbol name, it's probably fine to never include it in
14323
# preloaded symbol tables.
14324
extract_expsyms_cmds=
14327
cygwin* | mingw* | pw32*)
14328
# FIXME: the MSVC++ port hasn't been tested in a loooong time
14329
# When not using gcc, we currently assume that we are using
14330
# Microsoft Visual C++.
14331
if test "$GCC" != yes; then
14341
if test "$with_gnu_ld" = yes; then
14342
# If archive_cmds runs LD, not CC, wlarc should be empty
14345
# See if GNU ld supports shared libraries.
14347
aix3* | aix4* | aix5*)
14348
# On AIX/PPC, the GNU linker is very broken
14349
if test "$host_cpu" != ia64; then
14353
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14354
*** to be unable to reliably create shared libraries on AIX.
14355
*** Therefore, libtool is disabling shared libraries support. If you
14356
*** really care for shared libraries, you may want to modify your PATH
14357
*** so that a non-GNU linker is found, and then restart.
14364
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)'
14365
hardcode_libdir_flag_spec_F77='-L$libdir'
14366
hardcode_minus_L_F77=yes
14368
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14369
# that the semantics of dynamic libraries on AmigaOS, at least up
14370
# to version 4, is to share data among multiple programs linked
14371
# with the same dynamic library. Since this doesn't match the
14372
# behavior of shared libraries on other platforms, we can't use
14378
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14379
allow_undefined_flag_F77=unsupported
14380
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14381
# support --undefined. This deserves some investigation. FIXME
14382
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14388
cygwin* | mingw* | pw32*)
14389
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14390
# as there is no search path for DLLs.
14391
hardcode_libdir_flag_spec_F77='-L$libdir'
14392
allow_undefined_flag_F77=unsupported
14393
always_export_symbols_F77=no
14394
enable_shared_with_static_runtimes_F77=yes
14395
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14397
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14398
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14399
# If the export-symbols file already is a .def file (1st line
14400
# is EXPORTS), use it as is; otherwise, prepend...
14401
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14402
cp $export_symbols $output_objdir/$soname.def;
14404
echo EXPORTS > $output_objdir/$soname.def;
14405
cat $export_symbols >> $output_objdir/$soname.def;
14407
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14413
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14414
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14415
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14418
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14419
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14424
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14428
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14429
*** create shared libraries on Solaris systems. Therefore, libtool
14430
*** is disabling shared libraries support. We urge you to upgrade GNU
14431
*** binutils to release 2.9.1 or newer. Another option is to modify
14432
*** your PATH or compiler configuration so that the native linker is
14433
*** used, and then restart.
14436
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14437
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14438
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14445
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14447
hardcode_direct_F77=yes
14448
hardcode_shlibpath_var_F77=no
14452
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14453
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14454
archive_cmds_F77="$tmp_archive_cmds"
14455
supports_anon_versioning=no
14456
case `$LD -v 2>/dev/null` in
14457
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14458
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14459
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14460
*\ 2.11.*) ;; # other 2.11 versions
14461
*) supports_anon_versioning=yes ;;
14463
if test $supports_anon_versioning = yes; then
14464
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14465
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14466
$echo "local: *; };" >> $output_objdir/$libname.ver~
14467
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14469
archive_expsym_cmds_F77="$tmp_archive_cmds"
14471
link_all_deplibs_F77=no
14478
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14479
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14480
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14487
if test "$ld_shlibs_F77" = yes; then
14488
runpath_var=LD_RUN_PATH
14489
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14490
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14491
# ancient GNU ld didn't support --whole-archive et. al.
14492
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14493
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14495
whole_archive_flag_spec_F77=
14499
# PORTME fill in a description of your system's linker (not GNU ld)
14502
allow_undefined_flag_F77=unsupported
14503
always_export_symbols_F77=yes
14504
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'
14505
# Note: this linker hardcodes the directories in LIBPATH if there
14506
# are no directories specified by -L.
14507
hardcode_minus_L_F77=yes
14508
if test "$GCC" = yes && test -z "$link_static_flag"; then
14509
# Neither direct hardcoding nor static linking is supported with a
14511
hardcode_direct_F77=unsupported
14516
if test "$host_cpu" = ia64; then
14517
# On IA64, the linker does run time linking by default, so we don't
14518
# have to do anything special.
14519
aix_use_runtimelinking=no
14520
exp_sym_flag='-Bexport'
14523
# If we're using GNU nm, then we don't want the "-C" option.
14524
# -C means demangle to AIX nm, but means don't demangle with GNU nm
14525
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14526
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'
14528
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'
14530
aix_use_runtimelinking=no
14532
# Test if we are trying to use run time linking or normal
14533
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14534
# need to do runtime linking.
14535
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14536
for ld_flag in $LDFLAGS; do
14537
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14538
aix_use_runtimelinking=yes
14544
exp_sym_flag='-bexport'
14545
no_entry_flag='-bnoentry'
14548
# When large executables or shared objects are built, AIX ld can
14549
# have problems creating the table of contents. If linking a library
14550
# or program results in "error TOC overflow" add -mminimal-toc to
14551
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14552
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14554
archive_cmds_F77=''
14555
hardcode_direct_F77=yes
14556
hardcode_libdir_separator_F77=':'
14557
link_all_deplibs_F77=yes
14559
if test "$GCC" = yes; then
14560
case $host_os in aix4.012|aix4.012.*)
14561
# We only want to do this on AIX 4.2 and lower, the check
14562
# below for broken collect2 doesn't work under 4.3+
14563
collect2name=`${CC} -print-prog-name=collect2`
14564
if test -f "$collect2name" && \
14565
strings "$collect2name" | grep resolve_lib_name >/dev/null
14567
# We have reworked collect2
14568
hardcode_direct_F77=yes
14570
# We have old collect2
14571
hardcode_direct_F77=unsupported
14572
# It fails to find uninstalled libraries when the uninstalled
14573
# path is not listed in the libpath. Setting hardcode_minus_L
14574
# to unsupported forces relinking
14575
hardcode_minus_L_F77=yes
14576
hardcode_libdir_flag_spec_F77='-L$libdir'
14577
hardcode_libdir_separator_F77=
14580
shared_flag='-shared'
14583
if test "$host_cpu" = ia64; then
14584
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14585
# chokes on -Wl,-G. The following line is correct:
14588
if test "$aix_use_runtimelinking" = yes; then
14589
shared_flag='${wl}-G'
14591
shared_flag='${wl}-bM:SRE'
14596
# It seems that -bexpall does not export symbols beginning with
14597
# underscore (_), so it is better to generate a list of symbols to export.
14598
always_export_symbols_F77=yes
14599
if test "$aix_use_runtimelinking" = yes; then
14600
# Warning - without using the other runtime loading flags (-brtl),
14601
# -berok will link without error, but may produce a broken library.
14602
allow_undefined_flag_F77='-berok'
14603
# Determine the default libpath from the value encoded in an empty executable.
14604
cat >conftest.$ac_ext <<_ACEOF
14609
rm -f conftest.$ac_objext conftest$ac_exeext
14610
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14611
(eval $ac_link) 2>conftest.er1
14613
grep -v '^ *+' conftest.er1 >conftest.err
14615
cat conftest.err >&5
14616
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14617
(exit $ac_status); } &&
14618
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14619
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14620
(eval $ac_try) 2>&5
14622
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14623
(exit $ac_status); }; } &&
14624
{ ac_try='test -s conftest$ac_exeext'
14625
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14626
(eval $ac_try) 2>&5
14628
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14629
(exit $ac_status); }; }; then
14631
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14633
# Check for a 64-bit object if we didn't find anything.
14634
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14637
echo "$as_me: failed program was:" >&5
14638
sed 's/^/| /' conftest.$ac_ext >&5
14641
rm -f conftest.err conftest.$ac_objext \
14642
conftest$ac_exeext conftest.$ac_ext
14643
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14645
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14646
archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14648
if test "$host_cpu" = ia64; then
14649
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14650
allow_undefined_flag_F77="-z nodefs"
14651
archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
14653
# Determine the default libpath from the value encoded in an empty executable.
14654
cat >conftest.$ac_ext <<_ACEOF
14659
rm -f conftest.$ac_objext conftest$ac_exeext
14660
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14661
(eval $ac_link) 2>conftest.er1
14663
grep -v '^ *+' conftest.er1 >conftest.err
14665
cat conftest.err >&5
14666
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14667
(exit $ac_status); } &&
14668
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14669
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14670
(eval $ac_try) 2>&5
14672
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14673
(exit $ac_status); }; } &&
14674
{ ac_try='test -s conftest$ac_exeext'
14675
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14676
(eval $ac_try) 2>&5
14678
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679
(exit $ac_status); }; }; then
14681
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14683
# Check for a 64-bit object if we didn't find anything.
14684
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14687
echo "$as_me: failed program was:" >&5
14688
sed 's/^/| /' conftest.$ac_ext >&5
14691
rm -f conftest.err conftest.$ac_objext \
14692
conftest$ac_exeext conftest.$ac_ext
14693
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14695
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14696
# Warning - without using the other run time loading flags,
14697
# -berok will link without error, but may produce a broken library.
14698
no_undefined_flag_F77=' ${wl}-bernotok'
14699
allow_undefined_flag_F77=' ${wl}-berok'
14700
# -bexpall does not export symbols beginning with underscore (_)
14701
always_export_symbols_F77=yes
14702
# Exported symbols can be pulled into shared objects from archives
14703
whole_archive_flag_spec_F77=' '
14704
archive_cmds_need_lc_F77=yes
14705
# This is similar to how AIX traditionally builds it's shared libraries.
14706
archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14712
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)'
14713
hardcode_libdir_flag_spec_F77='-L$libdir'
14714
hardcode_minus_L_F77=yes
14715
# see comment about different semantics on the GNU ld section
14720
export_dynamic_flag_spec_F77=-rdynamic
14723
cygwin* | mingw* | pw32*)
14724
# When not using gcc, we currently assume that we are using
14725
# Microsoft Visual C++.
14726
# hardcode_libdir_flag_spec is actually meaningless, as there is
14727
# no search path for DLLs.
14728
hardcode_libdir_flag_spec_F77=' '
14729
allow_undefined_flag_F77=unsupported
14730
# Tell ltmain to make .lib files, not .a files.
14732
# Tell ltmain to make .dll files, not .so files.
14734
# FIXME: Setting linknames here is a bad hack.
14735
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14736
# The linker will automatically build a .lib file if we build a DLL.
14737
old_archive_From_new_cmds_F77='true'
14738
# FIXME: Should let the user specify the lib program.
14739
old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14740
fix_srcfile_path='`cygpath -w "$srcfile"`'
14741
enable_shared_with_static_runtimes_F77=yes
14744
darwin* | rhapsody*)
14745
if test "$GXX" = yes ; then
14746
archive_cmds_need_lc_F77=no
14748
rhapsody* | darwin1.[012])
14749
allow_undefined_flag_F77='-undefined suppress'
14752
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14753
allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14755
case ${MACOSX_DEPLOYMENT_TARGET} in
14757
allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14760
allow_undefined_flag_F77='-undefined dynamic_lookup'
14766
lt_int_apple_cc_single_mod=no
14767
output_verbose_link_cmd='echo'
14768
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14769
lt_int_apple_cc_single_mod=yes
14771
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14772
archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14774
archive_cmds_F77='$CC -r ${wl}-bind_at_load -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'
14776
module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14777
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14778
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14779
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14781
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14783
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}'
14784
hardcode_direct_F77=no
14785
hardcode_automatic_F77=yes
14786
hardcode_shlibpath_var_F77=unsupported
14787
whole_archive_flag_spec_F77='-all_load $convenience'
14788
link_all_deplibs_F77=yes
14795
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14796
hardcode_libdir_flag_spec_F77='-L$libdir'
14797
hardcode_shlibpath_var_F77=no
14804
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14805
# support. Future versions do this automatically, but an explicit c++rt0.o
14806
# does not break anything, and helps significantly (at the cost of a little
14809
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14810
hardcode_libdir_flag_spec_F77='-R$libdir'
14811
hardcode_direct_F77=yes
14812
hardcode_shlibpath_var_F77=no
14815
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
14817
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14818
hardcode_direct_F77=yes
14819
hardcode_minus_L_F77=yes
14820
hardcode_shlibpath_var_F77=no
14823
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14824
freebsd* | kfreebsd*-gnu)
14825
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14826
hardcode_libdir_flag_spec_F77='-R$libdir'
14827
hardcode_direct_F77=yes
14828
hardcode_shlibpath_var_F77=no
14832
if test "$GCC" = yes; then
14833
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'
14835
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'
14837
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14838
hardcode_libdir_separator_F77=:
14839
hardcode_direct_F77=yes
14841
# hardcode_minus_L: Not really in the search PATH,
14842
# but as the default location of the library.
14843
hardcode_minus_L_F77=yes
14844
export_dynamic_flag_spec_F77='${wl}-E'
14848
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14849
case "$host_cpu" in
14851
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14854
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14858
case "$host_cpu" in
14860
archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14863
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14867
if test "$with_gnu_ld" = no; then
14868
case "$host_cpu" in
14870
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14871
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14872
hardcode_libdir_separator_F77=:
14873
hardcode_direct_F77=no
14874
hardcode_shlibpath_var_F77=no
14877
hardcode_libdir_flag_spec_F77='-L$libdir'
14878
hardcode_direct_F77=no
14879
hardcode_shlibpath_var_F77=no
14881
# hardcode_minus_L: Not really in the search PATH,
14882
# but as the default location of the library.
14883
hardcode_minus_L_F77=yes
14886
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14887
hardcode_libdir_separator_F77=:
14888
hardcode_direct_F77=yes
14889
export_dynamic_flag_spec_F77='${wl}-E'
14891
# hardcode_minus_L: Not really in the search PATH,
14892
# but as the default location of the library.
14893
hardcode_minus_L_F77=yes
14899
irix5* | irix6* | nonstopux*)
14900
if test "$GCC" = yes; then
14901
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'
14903
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'
14904
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14906
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14907
hardcode_libdir_separator_F77=:
14908
link_all_deplibs_F77=yes
14911
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14912
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14913
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14915
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14917
hardcode_libdir_flag_spec_F77='-R$libdir'
14918
hardcode_direct_F77=yes
14919
hardcode_shlibpath_var_F77=no
14923
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14924
hardcode_direct_F77=yes
14925
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14926
hardcode_libdir_separator_F77=:
14927
hardcode_shlibpath_var_F77=no
14931
hardcode_direct_F77=yes
14932
hardcode_shlibpath_var_F77=no
14933
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14934
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14935
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14936
export_dynamic_flag_spec_F77='${wl}-E'
14939
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14940
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14941
hardcode_libdir_flag_spec_F77='-R$libdir'
14944
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14945
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14952
hardcode_libdir_flag_spec_F77='-L$libdir'
14953
hardcode_minus_L_F77=yes
14954
allow_undefined_flag_F77=unsupported
14955
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'
14956
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14960
if test "$GCC" = yes; then
14961
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14962
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'
14964
allow_undefined_flag_F77=' -expect_unresolved \*'
14965
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'
14967
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14968
hardcode_libdir_separator_F77=:
14971
osf4* | osf5*) # as osf3* with the addition of -msym flag
14972
if test "$GCC" = yes; then
14973
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14974
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'
14975
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14977
allow_undefined_flag_F77=' -expect_unresolved \*'
14978
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'
14979
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~
14980
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
14982
# Both c and cxx compiler support -rpath directly
14983
hardcode_libdir_flag_spec_F77='-rpath $libdir'
14985
hardcode_libdir_separator_F77=:
14989
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14990
hardcode_shlibpath_var_F77=no
14991
export_dynamic_flag_spec_F77='${wl}-Bexport'
14992
runpath_var=LD_RUN_PATH
14993
hardcode_runpath_var=yes
14997
no_undefined_flag_F77=' -z text'
14998
if test "$GCC" = yes; then
14999
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15000
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15001
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15003
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15004
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15005
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15007
hardcode_libdir_flag_spec_F77='-R$libdir'
15008
hardcode_shlibpath_var_F77=no
15010
solaris2.[0-5] | solaris2.[0-5].*) ;;
15011
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
15012
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15014
link_all_deplibs_F77=yes
15018
if test "x$host_vendor" = xsequent; then
15019
# Use $CC to link under sequent, because it throws in some extra .o
15020
# files that make .init and .fini sections work.
15021
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15023
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15025
hardcode_libdir_flag_spec_F77='-L$libdir'
15026
hardcode_direct_F77=yes
15027
hardcode_minus_L_F77=yes
15028
hardcode_shlibpath_var_F77=no
15032
case $host_vendor in
15034
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15035
hardcode_direct_F77=yes # is this really true???
15038
## LD is ld it makes a PLAMLIB
15039
## CC just makes a GrossModule.
15040
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15041
reload_cmds_F77='$CC -r -o $output$reload_objs'
15042
hardcode_direct_F77=no
15045
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15046
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15049
runpath_var='LD_RUN_PATH'
15050
hardcode_shlibpath_var_F77=no
15054
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15055
hardcode_shlibpath_var_F77=no
15056
export_dynamic_flag_spec_F77='-Bexport'
15060
if test -d /usr/nec; then
15061
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15062
hardcode_shlibpath_var_F77=no
15063
runpath_var=LD_RUN_PATH
15064
hardcode_runpath_var=yes
15070
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15071
hardcode_direct_F77=yes
15072
hardcode_minus_L_F77=no
15073
hardcode_shlibpath_var_F77=no
15074
hardcode_runpath_var=yes
15075
runpath_var=LD_RUN_PATH
15078
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15079
no_undefined_flag_F77='${wl}-z ${wl}text'
15080
if test "$GCC" = yes; then
15081
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15083
archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15085
runpath_var='LD_RUN_PATH'
15086
hardcode_shlibpath_var_F77=no
15090
no_undefined_flag_F77=' -z text'
15091
# $CC -shared without GNU ld will not create a library from C++
15092
# object files and a static libstdc++, better avoid it by now
15093
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15094
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15095
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15096
hardcode_libdir_flag_spec_F77=
15097
hardcode_shlibpath_var_F77=no
15098
runpath_var='LD_RUN_PATH'
15102
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15103
hardcode_libdir_flag_spec_F77='-L$libdir'
15104
hardcode_shlibpath_var_F77=no
15113
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15114
echo "${ECHO_T}$ld_shlibs_F77" >&6
15115
test "$ld_shlibs_F77" = no && can_build_shared=no
15117
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15118
if test "$GCC" = yes; then
15119
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15123
# Do we need to explicitly link libc?
15125
case "x$archive_cmds_need_lc_F77" in
15127
# Assume -lc should be added
15128
archive_cmds_need_lc_F77=yes
15130
if test "$enable_shared" = yes && test "$GCC" = yes; then
15131
case $archive_cmds_F77 in
15133
# FIXME: we may have to deal with multi-command sequences.
15136
# Test whether the compiler implicitly links with -lc since on some
15137
# systems, -lgcc has to come before -lc. If gcc already passes -lc
15138
# to ld, don't add -lc before -lgcc.
15139
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15140
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15142
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15144
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15145
(eval $ac_compile) 2>&5
15147
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15148
(exit $ac_status); } 2>conftest.err; then
15151
libobjs=conftest.$ac_objext
15153
wl=$lt_prog_compiler_wl_F77
15159
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15160
allow_undefined_flag_F77=
15161
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15162
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15164
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15165
(exit $ac_status); }
15167
archive_cmds_need_lc_F77=no
15169
archive_cmds_need_lc_F77=yes
15171
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15173
cat conftest.err 1>&5
15176
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15177
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15184
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15185
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15186
library_names_spec=
15187
libname_spec='lib$name'
15191
postuninstall_cmds=
15195
shlibpath_overrides_runpath=unknown
15197
dynamic_linker="$host_os ld.so"
15198
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15199
if test "$GCC" = yes; then
15200
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15201
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15202
# if the path contains ";" then we assume it to be the separator
15203
# otherwise default to the standard path separator (i.e. ":") - it is
15204
# assumed that no part of a normal pathname contains ";" but that should
15205
# okay in the real world where ";" in dirpaths is itself problematic.
15206
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15208
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15211
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15213
need_lib_prefix=unknown
15214
hardcode_into_libs=no
15216
# when you set need_version to no, make sure it does not cause -set_version
15217
# flags to be left without arguments
15218
need_version=unknown
15223
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15224
shlibpath_var=LIBPATH
15226
# AIX 3 has no versioning support, so we append a major version to the name.
15227
soname_spec='${libname}${release}${shared_ext}$major'
15234
hardcode_into_libs=yes
15235
if test "$host_cpu" = ia64; then
15236
# AIX 5 supports IA64
15237
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15238
shlibpath_var=LD_LIBRARY_PATH
15240
# With GCC up to 2.95.x, collect2 would create an import file
15241
# for dependence libraries. The import file would start with
15242
# the line `#! .'. This would cause the generated library to
15243
# depend on `.', always an invalid library. This was fixed in
15244
# development snapshots of GCC prior to 3.0.
15246
aix4 | aix4.[01] | aix4.[01].*)
15247
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15249
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15252
can_build_shared=no
15256
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15257
# soname into executable. Probably we can add versioning support to
15258
# collect2, so additional links can be useful in future.
15259
if test "$aix_use_runtimelinking" = yes; then
15260
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
15261
# instead of lib<name>.a to let people know that these are not
15262
# typical AIX shared libraries.
15263
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15265
# We preserve .a as extension for shared libraries through AIX4.2
15266
# and later when we are not doing run time linking.
15267
library_names_spec='${libname}${release}.a $libname.a'
15268
soname_spec='${libname}${release}${shared_ext}$major'
15270
shlibpath_var=LIBPATH
15275
library_names_spec='$libname.ixlibrary $libname.a'
15276
# Create ${libname}_ixlibrary.a entries in /sys/libs.
15277
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'
15281
library_names_spec='${libname}${shared_ext}'
15282
dynamic_linker="$host_os ld.so"
15283
shlibpath_var=LIBRARY_PATH
15289
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15290
soname_spec='${libname}${release}${shared_ext}$major'
15291
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15292
shlibpath_var=LD_LIBRARY_PATH
15293
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15294
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15295
# the default ld.so.conf also contains /usr/contrib/lib and
15296
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15297
# libtool to hard-code these into programs
15300
cygwin* | mingw* | pw32*)
15301
version_type=windows
15306
case $GCC,$host_os in
15307
yes,cygwin* | yes,mingw* | yes,pw32*)
15308
library_names_spec='$libname.dll.a'
15309
# DLL is installed to $(libdir)/../bin by postinstall_cmds
15310
postinstall_cmds='base_file=`basename \${file}`~
15311
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15312
dldir=$destdir/`dirname \$dlpath`~
15313
test -d \$dldir || mkdir -p \$dldir~
15314
$install_prog $dir/$dlname \$dldir/$dlname'
15315
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15316
dlpath=$dir/\$dldll~
15318
shlibpath_overrides_runpath=yes
15322
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
15323
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15324
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15327
# MinGW DLLs use traditional 'lib' prefix
15328
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15329
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15330
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15331
# It is most probably a Windows format PATH printed by
15332
# mingw gcc, but we are running on Cygwin. Gcc prints its search
15333
# path with ; separators, and with drive letters. We can handle the
15334
# drive letters (cygwin fileutils understands them), so leave them,
15335
# especially as we might pass files found there to a mingw objdump,
15336
# which wouldn't understand a cygwinified path. Ahh.
15337
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15339
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15343
# pw32 DLLs use 'pw' prefix rather than 'lib'
15344
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
15350
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15353
dynamic_linker='Win32 ld.exe'
15354
# FIXME: first we should search . and the directory the executable is in
15358
darwin* | rhapsody*)
15359
dynamic_linker="$host_os dyld"
15360
version_type=darwin
15363
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15364
soname_spec='${libname}${release}${major}$shared_ext'
15365
shlibpath_overrides_runpath=yes
15366
shlibpath_var=DYLD_LIBRARY_PATH
15367
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
15368
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15369
if test "$GCC" = yes; then
15370
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15372
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15374
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15381
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15382
soname_spec='${libname}${release}${shared_ext}$major'
15383
shlibpath_var=LD_LIBRARY_PATH
15394
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15395
soname_spec='${libname}${release}${shared_ext}$major'
15396
shlibpath_var=LD_LIBRARY_PATH
15397
shlibpath_overrides_runpath=no
15398
hardcode_into_libs=yes
15399
dynamic_linker='GNU ld.so'
15403
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15404
version_type=freebsd-$objformat
15405
case $version_type in
15407
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15412
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15416
shlibpath_var=LD_LIBRARY_PATH
15419
shlibpath_overrides_runpath=yes
15421
freebsd3.01* | freebsdelf3.01*)
15422
shlibpath_overrides_runpath=yes
15423
hardcode_into_libs=yes
15426
shlibpath_overrides_runpath=no
15427
hardcode_into_libs=yes
15436
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15437
soname_spec='${libname}${release}${shared_ext}$major'
15438
shlibpath_var=LD_LIBRARY_PATH
15439
hardcode_into_libs=yes
15442
hpux9* | hpux10* | hpux11*)
15443
# Give a soname corresponding to the major version so that dld.sl refuses to
15444
# link against other versions.
15448
case "$host_cpu" in
15451
hardcode_into_libs=yes
15452
dynamic_linker="$host_os dld.so"
15453
shlibpath_var=LD_LIBRARY_PATH
15454
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15455
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15456
soname_spec='${libname}${release}${shared_ext}$major'
15457
if test "X$HPUX_IA64_MODE" = X32; then
15458
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15460
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15462
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15466
hardcode_into_libs=yes
15467
dynamic_linker="$host_os dld.sl"
15468
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15469
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15470
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15471
soname_spec='${libname}${release}${shared_ext}$major'
15472
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15473
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15477
dynamic_linker="$host_os dld.sl"
15478
shlibpath_var=SHLIB_PATH
15479
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15480
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15481
soname_spec='${libname}${release}${shared_ext}$major'
15484
# HP-UX runs *really* slowly unless shared libraries are mode 555.
15485
postinstall_cmds='chmod 555 $lib'
15488
irix5* | irix6* | nonstopux*)
15490
nonstopux*) version_type=nonstopux ;;
15492
if test "$lt_cv_prog_gnu_ld" = yes; then
15500
soname_spec='${libname}${release}${shared_ext}$major'
15501
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15503
irix5* | nonstopux*)
15504
libsuff= shlibsuff=
15507
case $LD in # libtool.m4 will add one of these switches to LD
15508
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15509
libsuff= shlibsuff= libmagic=32-bit;;
15510
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15511
libsuff=32 shlibsuff=N32 libmagic=N32;;
15512
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15513
libsuff=64 shlibsuff=64 libmagic=64-bit;;
15514
*) libsuff= shlibsuff= libmagic=never-match;;
15518
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15519
shlibpath_overrides_runpath=no
15520
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15521
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15522
hardcode_into_libs=yes
15525
# No shared lib support for Linux oldld, aout, or coff.
15526
linux*oldld* | linux*aout* | linux*coff*)
15530
# This must be Linux ELF.
15535
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15536
soname_spec='${libname}${release}${shared_ext}$major'
15537
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15538
shlibpath_var=LD_LIBRARY_PATH
15539
shlibpath_overrides_runpath=no
15540
# This implies no fast_install, which is unacceptable.
15541
# Some rework will be needed to allow for fast_install
15542
# before this can be enabled.
15543
hardcode_into_libs=yes
15545
# Append ld.so.conf contents to the search path
15546
if test -f /etc/ld.so.conf; then
15547
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
15548
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15551
# We used to test for /lib/ld.so.1 and disable shared libraries on
15552
# powerpc, because MkLinux only supported shared libraries with the
15553
# GNU dynamic linker. Since this was broken with cross compilers,
15554
# most powerpc-linux boxes support dynamic linking these days and
15555
# people can always --disable-shared, the test was removed, and we
15556
# assume the GNU/Linux dynamic linker is in use.
15557
dynamic_linker='GNU/Linux ld.so'
15564
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15565
soname_spec='${libname}${release}${shared_ext}$major'
15566
shlibpath_var=LD_LIBRARY_PATH
15567
shlibpath_overrides_runpath=no
15568
hardcode_into_libs=yes
15569
dynamic_linker='NetBSD ld.elf_so'
15576
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15577
soname_spec='${libname}${release}${shared_ext}$major'
15578
shlibpath_var=LD_LIBRARY_PATH
15579
shlibpath_overrides_runpath=no
15580
hardcode_into_libs=yes
15581
dynamic_linker='GNU ld.so'
15588
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15589
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15590
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15591
dynamic_linker='NetBSD (a.out) ld.so'
15593
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15594
soname_spec='${libname}${release}${shared_ext}$major'
15595
dynamic_linker='NetBSD ld.elf_so'
15597
shlibpath_var=LD_LIBRARY_PATH
15598
shlibpath_overrides_runpath=yes
15599
hardcode_into_libs=yes
15604
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15605
shlibpath_var=LD_LIBRARY_PATH
15606
shlibpath_overrides_runpath=yes
15613
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15614
soname_spec='${libname}${release}${shared_ext}$major'
15615
shlibpath_var=LD_LIBRARY_PATH
15616
shlibpath_overrides_runpath=yes
15623
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15624
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15625
shlibpath_var=LD_LIBRARY_PATH
15626
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15628
openbsd2.[89] | openbsd2.[89].*)
15629
shlibpath_overrides_runpath=no
15632
shlibpath_overrides_runpath=yes
15636
shlibpath_overrides_runpath=yes
15641
libname_spec='$name'
15644
library_names_spec='$libname${shared_ext} $libname.a'
15645
dynamic_linker='OS/2 ld.exe'
15646
shlibpath_var=LIBPATH
15649
osf3* | osf4* | osf5*)
15653
soname_spec='${libname}${release}${shared_ext}$major'
15654
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15655
shlibpath_var=LD_LIBRARY_PATH
15656
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15657
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15662
soname_spec='${libname}${release}${shared_ext}$major'
15663
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15664
shlibpath_var=LD_LIBRARY_PATH
15671
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15672
soname_spec='${libname}${release}${shared_ext}$major'
15673
shlibpath_var=LD_LIBRARY_PATH
15674
shlibpath_overrides_runpath=yes
15675
hardcode_into_libs=yes
15676
# ldd complains unless libraries are executable
15677
postinstall_cmds='chmod +x $lib'
15682
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15683
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15684
shlibpath_var=LD_LIBRARY_PATH
15685
shlibpath_overrides_runpath=yes
15686
if test "$with_gnu_ld" = yes; then
15692
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15694
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15695
soname_spec='${libname}${release}${shared_ext}$major'
15696
shlibpath_var=LD_LIBRARY_PATH
15697
case $host_vendor in
15699
shlibpath_overrides_runpath=no
15701
export_dynamic_flag_spec='${wl}-Blargedynsym'
15702
runpath_var=LD_RUN_PATH
15710
shlibpath_overrides_runpath=no
15711
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15717
if test -d /usr/nec ;then
15719
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15720
soname_spec='$libname${shared_ext}.$major'
15721
shlibpath_var=LD_LIBRARY_PATH
15727
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15728
soname_spec='${libname}${release}${shared_ext}$major'
15729
shlibpath_var=LD_LIBRARY_PATH
15736
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15737
echo "${ECHO_T}$dynamic_linker" >&6
15738
test "$dynamic_linker" = no && can_build_shared=no
15740
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15741
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15742
hardcode_action_F77=
15743
if test -n "$hardcode_libdir_flag_spec_F77" || \
15744
test -n "$runpath_var F77" || \
15745
test "X$hardcode_automatic_F77"="Xyes" ; then
15747
# We can hardcode non-existant directories.
15748
if test "$hardcode_direct_F77" != no &&
15749
# If the only mechanism to avoid hardcoding is shlibpath_var, we
15750
# have to relink, otherwise we might link with an installed library
15751
# when we should be linking with a yet-to-be-installed one
15752
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15753
test "$hardcode_minus_L_F77" != no; then
15754
# Linking always hardcodes the temporary library directory.
15755
hardcode_action_F77=relink
15757
# We can link without hardcoding, and we can hardcode nonexisting dirs.
15758
hardcode_action_F77=immediate
15761
# We cannot hardcode anything, or else we can only hardcode existing
15763
hardcode_action_F77=unsupported
15765
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15766
echo "${ECHO_T}$hardcode_action_F77" >&6
15768
if test "$hardcode_action_F77" = relink; then
15769
# Fast installation is not supported
15770
enable_fast_install=no
15771
elif test "$shlibpath_overrides_runpath" = yes ||
15772
test "$enable_shared" = no; then
15773
# Fast installation is not necessary
15774
enable_fast_install=needless
15779
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15780
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15781
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15782
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15783
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15784
echo "$as_me:$LINENO: result: yes" >&5
15785
echo "${ECHO_T}yes" >&6
15787
# FIXME - insert some real tests, host_os isn't really good enough
15790
if test -n "$STRIP" ; then
15791
striplib="$STRIP -x"
15792
echo "$as_me:$LINENO: result: yes" >&5
15793
echo "${ECHO_T}yes" >&6
15795
echo "$as_me:$LINENO: result: no" >&5
15796
echo "${ECHO_T}no" >&6
15800
echo "$as_me:$LINENO: result: no" >&5
15801
echo "${ECHO_T}no" >&6
15808
# The else clause should only fire when bootstrapping the
15809
# libtool distribution, otherwise you forgot to ship ltmain.sh
15810
# with your package, and you will get complaints that there are
15811
# no rules to generate ltmain.sh.
15812
if test -f "$ltmain"; then
15813
# See if we are running on zsh, and set the options which allow our commands through
15814
# without removal of \ escapes.
15815
if test -n "${ZSH_VERSION+set}" ; then
15816
setopt NO_GLOB_SUBST
15818
# Now quote all the things that may contain metacharacters while being
15819
# careful not to overquote the AC_SUBSTed values. We take copies of the
15820
# variables and quote the copies for generation of the libtool script.
15821
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15823
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15824
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15825
deplibs_check_method reload_flag reload_cmds need_locks \
15826
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15827
lt_cv_sys_global_symbol_to_c_name_address \
15828
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15829
old_postinstall_cmds old_postuninstall_cmds \
15833
lt_prog_compiler_wl_F77 \
15834
lt_prog_compiler_pic_F77 \
15835
lt_prog_compiler_static_F77 \
15836
lt_prog_compiler_no_builtin_flag_F77 \
15837
export_dynamic_flag_spec_F77 \
15838
thread_safe_flag_spec_F77 \
15839
whole_archive_flag_spec_F77 \
15840
enable_shared_with_static_runtimes_F77 \
15841
old_archive_cmds_F77 \
15842
old_archive_from_new_cmds_F77 \
15843
predep_objects_F77 \
15844
postdep_objects_F77 \
15847
compiler_lib_search_path_F77 \
15849
archive_expsym_cmds_F77 \
15850
postinstall_cmds_F77 \
15851
postuninstall_cmds_F77 \
15852
old_archive_from_expsyms_cmds_F77 \
15853
allow_undefined_flag_F77 \
15854
no_undefined_flag_F77 \
15855
export_symbols_cmds_F77 \
15856
hardcode_libdir_flag_spec_F77 \
15857
hardcode_libdir_flag_spec_ld_F77 \
15858
hardcode_libdir_separator_F77 \
15859
hardcode_automatic_F77 \
15861
module_expsym_cmds_F77 \
15862
lt_cv_prog_compiler_c_o_F77 \
15863
exclude_expsyms_F77 \
15864
include_expsyms_F77; do
15867
old_archive_cmds_F77 | \
15868
old_archive_from_new_cmds_F77 | \
15869
archive_cmds_F77 | \
15870
archive_expsym_cmds_F77 | \
15871
module_cmds_F77 | \
15872
module_expsym_cmds_F77 | \
15873
old_archive_from_expsyms_cmds_F77 | \
15874
export_symbols_cmds_F77 | \
15875
extract_expsyms_cmds | reload_cmds | finish_cmds | \
15876
postinstall_cmds | postuninstall_cmds | \
15877
old_postinstall_cmds | old_postuninstall_cmds | \
15878
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15879
# Double-quote double-evaled strings.
15880
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15883
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15889
*'\$0 --fallback-echo"')
15890
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15896
cat <<__EOF__ >> "$cfgfile"
15897
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15899
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15901
# Shell to use when invoking shell scripts.
15904
# Whether or not to build shared libraries.
15905
build_libtool_libs=$enable_shared
15907
# Whether or not to build static libraries.
15908
build_old_libs=$enable_static
15910
# Whether or not to add -lc for building shared libraries.
15911
build_libtool_need_lc=$archive_cmds_need_lc_F77
15913
# Whether or not to disallow shared libs when runtime libs are static
15914
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15916
# Whether or not to optimize for fast installation.
15917
fast_install=$enable_fast_install
15920
host_alias=$host_alias
15923
# An echo program that does not interpret backslashes.
15928
AR_FLAGS=$lt_AR_FLAGS
15933
# A language-specific compiler.
15934
CC=$lt_compiler_F77
15936
# Is the compiler the GNU C compiler?
15942
# The linker used to build libraries.
15945
# Whether we need hard or soft links.
15948
# A BSD-compatible nm program.
15951
# A symbol stripping program
15954
# Used to examine libraries when file_magic_cmd begins "file"
15955
MAGIC_CMD=$MAGIC_CMD
15957
# Used on cygwin: DLL creation program.
15960
# Used on cygwin: object dumper.
15963
# Used on cygwin: assembler.
15966
# The name of the directory that contains temporary libtool files.
15969
# How to create reloadable object files.
15970
reload_flag=$lt_reload_flag
15971
reload_cmds=$lt_reload_cmds
15973
# How to pass a linker flag through the compiler.
15974
wl=$lt_lt_prog_compiler_wl_F77
15976
# Object file suffix (normally "o").
15977
objext="$ac_objext"
15979
# Old archive suffix (normally "a").
15982
# Shared library suffix (normally ".so").
15983
shrext_cmds='$shrext_cmds'
15985
# Executable file suffix (normally "").
15988
# Additional compiler flags for building library objects.
15989
pic_flag=$lt_lt_prog_compiler_pic_F77
15992
# What is the maximum length of a command?
15993
max_cmd_len=$lt_cv_sys_max_cmd_len
15995
# Does compiler simultaneously support -c and -o options?
15996
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15998
# Must we lock files when doing compilation ?
15999
need_locks=$lt_need_locks
16001
# Do we need the lib prefix for modules?
16002
need_lib_prefix=$need_lib_prefix
16004
# Do we need a version for libraries?
16005
need_version=$need_version
16007
# Whether dlopen is supported.
16008
dlopen_support=$enable_dlopen
16010
# Whether dlopen of programs is supported.
16011
dlopen_self=$enable_dlopen_self
16013
# Whether dlopen of statically linked programs is supported.
16014
dlopen_self_static=$enable_dlopen_self_static
16016
# Compiler flag to prevent dynamic linking.
16017
link_static_flag=$lt_lt_prog_compiler_static_F77
16019
# Compiler flag to turn off builtin functions.
16020
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16022
# Compiler flag to allow reflexive dlopens.
16023
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16025
# Compiler flag to generate shared objects directly from archives.
16026
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16028
# Compiler flag to generate thread-safe objects.
16029
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16031
# Library versioning type.
16032
version_type=$version_type
16034
# Format of library name prefix.
16035
libname_spec=$lt_libname_spec
16037
# List of archive names. First name is the real one, the rest are links.
16038
# The last name is the one that the linker finds with -lNAME.
16039
library_names_spec=$lt_library_names_spec
16041
# The coded name of the library, if different from the real name.
16042
soname_spec=$lt_soname_spec
16044
# Commands used to build and install an old-style archive.
16046
old_archive_cmds=$lt_old_archive_cmds_F77
16047
old_postinstall_cmds=$lt_old_postinstall_cmds
16048
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16050
# Create an old-style archive from a shared archive.
16051
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16053
# Create a temporary old-style archive to link instead of a shared archive.
16054
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16056
# Commands used to build and install a shared archive.
16057
archive_cmds=$lt_archive_cmds_F77
16058
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16059
postinstall_cmds=$lt_postinstall_cmds
16060
postuninstall_cmds=$lt_postuninstall_cmds
16062
# Commands used to build a loadable module (assumed same as above if empty)
16063
module_cmds=$lt_module_cmds_F77
16064
module_expsym_cmds=$lt_module_expsym_cmds_F77
16066
# Commands to strip libraries.
16067
old_striplib=$lt_old_striplib
16068
striplib=$lt_striplib
16070
# Dependencies to place before the objects being linked to create a
16072
predep_objects=$lt_predep_objects_F77
16074
# Dependencies to place after the objects being linked to create a
16076
postdep_objects=$lt_postdep_objects_F77
16078
# Dependencies to place before the objects being linked to create a
16080
predeps=$lt_predeps_F77
16082
# Dependencies to place after the objects being linked to create a
16084
postdeps=$lt_postdeps_F77
16086
# The library search path used internally by the compiler when linking
16087
# a shared library.
16088
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16090
# Method to check whether dependent libraries are shared objects.
16091
deplibs_check_method=$lt_deplibs_check_method
16093
# Command to use when deplibs_check_method == file_magic.
16094
file_magic_cmd=$lt_file_magic_cmd
16096
# Flag that allows shared libraries with undefined symbols to be built.
16097
allow_undefined_flag=$lt_allow_undefined_flag_F77
16099
# Flag that forces no undefined symbols.
16100
no_undefined_flag=$lt_no_undefined_flag_F77
16102
# Commands used to finish a libtool library installation in a directory.
16103
finish_cmds=$lt_finish_cmds
16105
# Same as above, but a single script fragment to be evaled but not shown.
16106
finish_eval=$lt_finish_eval
16108
# Take the output of nm and produce a listing of raw symbols and C names.
16109
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16111
# Transform the output of nm in a proper C declaration
16112
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16114
# Transform the output of nm in a C name address pair
16115
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16117
# This is the shared library runtime path variable.
16118
runpath_var=$runpath_var
16120
# This is the shared library path variable.
16121
shlibpath_var=$shlibpath_var
16123
# Is shlibpath searched before the hard-coded library search path?
16124
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16126
# How to hardcode a shared library path into an executable.
16127
hardcode_action=$hardcode_action_F77
16129
# Whether we should hardcode library paths into libraries.
16130
hardcode_into_libs=$hardcode_into_libs
16132
# Flag to hardcode \$libdir into a binary during linking.
16133
# This must work even if \$libdir does not exist.
16134
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16136
# If ld is used when linking, flag to hardcode \$libdir into
16137
# a binary during linking. This must work even if \$libdir does
16139
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16141
# Whether we need a single -rpath flag with a separated argument.
16142
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16144
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16145
# resulting binary.
16146
hardcode_direct=$hardcode_direct_F77
16148
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16149
# resulting binary.
16150
hardcode_minus_L=$hardcode_minus_L_F77
16152
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16153
# the resulting binary.
16154
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16156
# Set to yes if building a shared library automatically hardcodes DIR into the library
16157
# and all subsequent libraries and executables linked against it.
16158
hardcode_automatic=$hardcode_automatic_F77
16160
# Variables whose values should be saved in libtool wrapper scripts and
16161
# restored at relink time.
16162
variables_saved_for_relink="$variables_saved_for_relink"
16164
# Whether libtool must link a program against all its dependency libraries.
16165
link_all_deplibs=$link_all_deplibs_F77
16167
# Compile-time system search path for libraries
16168
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16170
# Run-time system search path for libraries
16171
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16173
# Fix the shell variable \$srcfile for the compiler.
16174
fix_srcfile_path="$fix_srcfile_path_F77"
16176
# Set to yes if exported symbols are required.
16177
always_export_symbols=$always_export_symbols_F77
16179
# The commands to list exported symbols.
16180
export_symbols_cmds=$lt_export_symbols_cmds_F77
16182
# The commands to extract the exported symbol list from a shared archive.
16183
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16185
# Symbols that should not be listed in the preloaded symbols.
16186
exclude_expsyms=$lt_exclude_expsyms_F77
16188
# Symbols that must always be exported.
16189
include_expsyms=$lt_include_expsyms_F77
16191
# ### END LIBTOOL TAG CONFIG: $tagname
16197
# If there is no Makefile yet, we rely on a make rule to execute
16198
# `config.status --recheck' to rerun these tests and create the
16199
# libtool script then.
16200
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16201
if test -f "$ltmain_in"; then
16202
test -f Makefile && make "$ltmain"
16208
ac_cpp='$CPP $CPPFLAGS'
16209
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16210
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16211
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16221
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16225
# Source file extension for Java test sources.
16228
# Object file extension for compiled Java test sources.
16232
# Code to be used in simple compile tests
16233
lt_simple_compile_test_code="class foo {}\n"
16235
# Code to be used in simple link tests
16236
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
16238
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16240
# If no C compiler was specified, use CC.
16243
# Allow CC to be a program name with arguments.
16247
# Allow CC to be a program name with arguments.
16253
# GCJ did not exist at the time GCC didn't implicitly link libc in.
16254
archive_cmds_need_lc_GCJ=no
16257
lt_prog_compiler_no_builtin_flag_GCJ=
16259
if test "$GCC" = yes; then
16260
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16263
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16264
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16265
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16266
echo $ECHO_N "(cached) $ECHO_C" >&6
16268
lt_cv_prog_compiler_rtti_exceptions=no
16269
ac_outfile=conftest.$ac_objext
16270
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16271
lt_compiler_flag="-fno-rtti -fno-exceptions"
16272
# Insert the option either (1) after the last *FLAGS variable, or
16273
# (2) before a word containing "conftest.", or (3) at the end.
16274
# Note that $ac_compile itself does not contain backslashes and begins
16275
# with a dollar sign (not a hyphen), so the echo should work correctly.
16276
# The option is referenced via a variable to avoid confusing sed.
16277
lt_compile=`echo "$ac_compile" | $SED \
16278
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16279
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16280
-e 's:$: $lt_compiler_flag:'`
16281
(eval echo "\"\$as_me:16281: $lt_compile\"" >&5)
16282
(eval "$lt_compile" 2>conftest.err)
16284
cat conftest.err >&5
16285
echo "$as_me:16285: \$? = $ac_status" >&5
16286
if (exit $ac_status) && test -s "$ac_outfile"; then
16287
# The compiler can only warn and ignore the option if not recognized
16288
# So say no if there are warnings
16289
if test ! -s conftest.err; then
16290
lt_cv_prog_compiler_rtti_exceptions=yes
16296
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16297
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16299
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16300
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16307
lt_prog_compiler_wl_GCJ=
16308
lt_prog_compiler_pic_GCJ=
16309
lt_prog_compiler_static_GCJ=
16311
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16312
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16314
if test "$GCC" = yes; then
16315
lt_prog_compiler_wl_GCJ='-Wl,'
16316
lt_prog_compiler_static_GCJ='-static'
16320
# All AIX code is PIC.
16321
if test "$host_cpu" = ia64; then
16322
# AIX 5 now supports IA64 processor
16323
lt_prog_compiler_static_GCJ='-Bstatic'
16328
# FIXME: we need at least 68020 code to build shared libraries, but
16329
# adding the `-m68020' flag to GCC prevents building anything better,
16331
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16334
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16335
# PIC is the default for these OSes.
16338
mingw* | pw32* | os2*)
16339
# This hack is so that the source file can tell whether it is being
16340
# built for inclusion in a dll (and should export symbols for example).
16341
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16344
darwin* | rhapsody*)
16345
# PIC is the default on this platform
16346
# Common symbols not allowed in MH_DYLIB files
16347
lt_prog_compiler_pic_GCJ='-fno-common'
16351
# Just because we use GCC doesn't mean we suddenly get shared libraries
16352
# on systems that don't support them.
16353
lt_prog_compiler_can_build_shared_GCJ=no
16358
if test -d /usr/nec; then
16359
lt_prog_compiler_pic_GCJ=-Kconform_pic
16364
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16365
# not for PA HP-UX.
16366
case "$host_cpu" in
16371
lt_prog_compiler_pic_GCJ='-fPIC'
16377
lt_prog_compiler_pic_GCJ='-fPIC'
16381
# PORTME Check for flag to pass linker flags through the system compiler.
16384
lt_prog_compiler_wl_GCJ='-Wl,'
16385
if test "$host_cpu" = ia64; then
16386
# AIX 5 now supports IA64 processor
16387
lt_prog_compiler_static_GCJ='-Bstatic'
16389
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16393
mingw* | pw32* | os2*)
16394
# This hack is so that the source file can tell whether it is being
16395
# built for inclusion in a dll (and should export symbols for example).
16396
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16399
hpux9* | hpux10* | hpux11*)
16400
lt_prog_compiler_wl_GCJ='-Wl,'
16401
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16402
# not for PA HP-UX.
16403
case "$host_cpu" in
16408
lt_prog_compiler_pic_GCJ='+Z'
16411
# Is there a better lt_prog_compiler_static that works with the bundled CC?
16412
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16415
irix5* | irix6* | nonstopux*)
16416
lt_prog_compiler_wl_GCJ='-Wl,'
16417
# PIC (with -KPIC) is the default.
16418
lt_prog_compiler_static_GCJ='-non_shared'
16422
lt_prog_compiler_pic_GCJ='-KPIC'
16423
lt_prog_compiler_static_GCJ='-Bstatic'
16429
lt_prog_compiler_wl_GCJ='-Wl,'
16430
lt_prog_compiler_pic_GCJ='-KPIC'
16431
lt_prog_compiler_static_GCJ='-static'
16434
lt_prog_compiler_wl_GCJ='-Wl,'
16435
# All Alpha code is PIC.
16436
lt_prog_compiler_static_GCJ='-non_shared'
16441
osf3* | osf4* | osf5*)
16442
lt_prog_compiler_wl_GCJ='-Wl,'
16443
# All OSF/1 code is PIC.
16444
lt_prog_compiler_static_GCJ='-non_shared'
16448
lt_prog_compiler_pic_GCJ='-Kpic'
16449
lt_prog_compiler_static_GCJ='-dn'
16453
lt_prog_compiler_wl_GCJ='-Wl,'
16454
lt_prog_compiler_pic_GCJ='-KPIC'
16455
lt_prog_compiler_static_GCJ='-Bstatic'
16459
lt_prog_compiler_wl_GCJ='-Qoption ld '
16460
lt_prog_compiler_pic_GCJ='-PIC'
16461
lt_prog_compiler_static_GCJ='-Bstatic'
16464
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16465
lt_prog_compiler_wl_GCJ='-Wl,'
16466
lt_prog_compiler_pic_GCJ='-KPIC'
16467
lt_prog_compiler_static_GCJ='-Bstatic'
16471
if test -d /usr/nec ;then
16472
lt_prog_compiler_pic_GCJ='-Kconform_pic'
16473
lt_prog_compiler_static_GCJ='-Bstatic'
16478
lt_prog_compiler_pic_GCJ='-pic'
16479
lt_prog_compiler_static_GCJ='-Bstatic'
16483
lt_prog_compiler_can_build_shared_GCJ=no
16488
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16489
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16492
# Check to make sure the PIC flag actually works.
16494
if test -n "$lt_prog_compiler_pic_GCJ"; then
16496
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16497
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16498
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16499
echo $ECHO_N "(cached) $ECHO_C" >&6
16501
lt_prog_compiler_pic_works_GCJ=no
16502
ac_outfile=conftest.$ac_objext
16503
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16504
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16505
# Insert the option either (1) after the last *FLAGS variable, or
16506
# (2) before a word containing "conftest.", or (3) at the end.
16507
# Note that $ac_compile itself does not contain backslashes and begins
16508
# with a dollar sign (not a hyphen), so the echo should work correctly.
16509
# The option is referenced via a variable to avoid confusing sed.
16510
lt_compile=`echo "$ac_compile" | $SED \
16511
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16512
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16513
-e 's:$: $lt_compiler_flag:'`
16514
(eval echo "\"\$as_me:16514: $lt_compile\"" >&5)
16515
(eval "$lt_compile" 2>conftest.err)
16517
cat conftest.err >&5
16518
echo "$as_me:16518: \$? = $ac_status" >&5
16519
if (exit $ac_status) && test -s "$ac_outfile"; then
16520
# The compiler can only warn and ignore the option if not recognized
16521
# So say no if there are warnings
16522
if test ! -s conftest.err; then
16523
lt_prog_compiler_pic_works_GCJ=yes
16529
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16530
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16532
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16533
case $lt_prog_compiler_pic_GCJ in
16535
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16538
lt_prog_compiler_pic_GCJ=
16539
lt_prog_compiler_can_build_shared_GCJ=no
16544
# For platforms which do not support PIC, -DPIC is meaningless:
16546
lt_prog_compiler_pic_GCJ=
16549
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16553
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16554
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16555
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16556
echo $ECHO_N "(cached) $ECHO_C" >&6
16558
lt_cv_prog_compiler_c_o_GCJ=no
16559
$rm -r conftest 2>/dev/null
16563
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16565
lt_compiler_flag="-o out/conftest2.$ac_objext"
16566
# Insert the option either (1) after the last *FLAGS variable, or
16567
# (2) before a word containing "conftest.", or (3) at the end.
16568
# Note that $ac_compile itself does not contain backslashes and begins
16569
# with a dollar sign (not a hyphen), so the echo should work correctly.
16570
lt_compile=`echo "$ac_compile" | $SED \
16571
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16572
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16573
-e 's:$: $lt_compiler_flag:'`
16574
(eval echo "\"\$as_me:16574: $lt_compile\"" >&5)
16575
(eval "$lt_compile" 2>out/conftest.err)
16577
cat out/conftest.err >&5
16578
echo "$as_me:16578: \$? = $ac_status" >&5
16579
if (exit $ac_status) && test -s out/conftest2.$ac_objext
16581
# The compiler can only warn and ignore the option if not recognized
16582
# So say no if there are warnings
16583
if test ! -s out/conftest.err; then
16584
lt_cv_prog_compiler_c_o_GCJ=yes
16589
# SGI C++ compiler will create directory out/ii_files/ for
16590
# template instantiation
16591
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16592
$rm out/* && rmdir out
16598
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16599
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16602
hard_links="nottested"
16603
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16604
# do not overwrite the value of need_locks provided by the user
16605
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16606
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16609
ln conftest.a conftest.b 2>/dev/null && hard_links=no
16611
ln conftest.a conftest.b 2>&5 || hard_links=no
16612
ln conftest.a conftest.b 2>/dev/null && hard_links=no
16613
echo "$as_me:$LINENO: result: $hard_links" >&5
16614
echo "${ECHO_T}$hard_links" >&6
16615
if test "$hard_links" = no; then
16616
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16617
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16624
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16625
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16628
allow_undefined_flag_GCJ=
16629
enable_shared_with_static_runtimes_GCJ=no
16631
archive_expsym_cmds_GCJ=
16632
old_archive_From_new_cmds_GCJ=
16633
old_archive_from_expsyms_cmds_GCJ=
16634
export_dynamic_flag_spec_GCJ=
16635
whole_archive_flag_spec_GCJ=
16636
thread_safe_flag_spec_GCJ=
16637
hardcode_libdir_flag_spec_GCJ=
16638
hardcode_libdir_flag_spec_ld_GCJ=
16639
hardcode_libdir_separator_GCJ=
16640
hardcode_direct_GCJ=no
16641
hardcode_minus_L_GCJ=no
16642
hardcode_shlibpath_var_GCJ=unsupported
16643
link_all_deplibs_GCJ=unknown
16644
hardcode_automatic_GCJ=no
16646
module_expsym_cmds_GCJ=
16647
always_export_symbols_GCJ=no
16648
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16649
# include_expsyms should be a list of space-separated symbols to be *always*
16650
# included in the symbol list
16651
include_expsyms_GCJ=
16652
# exclude_expsyms can be an extended regexp of symbols to exclude
16653
# it will be wrapped by ` (' and `)$', so one must not match beginning or
16654
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16655
# as well as any symbol that contains `d'.
16656
exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16657
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16658
# platforms (ab)use it in PIC code, but their linkers get confused if
16659
# the symbol is explicitly referenced. Since portable code cannot
16660
# rely on this symbol name, it's probably fine to never include it in
16661
# preloaded symbol tables.
16662
extract_expsyms_cmds=
16665
cygwin* | mingw* | pw32*)
16666
# FIXME: the MSVC++ port hasn't been tested in a loooong time
16667
# When not using gcc, we currently assume that we are using
16668
# Microsoft Visual C++.
16669
if test "$GCC" != yes; then
16679
if test "$with_gnu_ld" = yes; then
16680
# If archive_cmds runs LD, not CC, wlarc should be empty
16683
# See if GNU ld supports shared libraries.
16685
aix3* | aix4* | aix5*)
16686
# On AIX/PPC, the GNU linker is very broken
16687
if test "$host_cpu" != ia64; then
16691
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16692
*** to be unable to reliably create shared libraries on AIX.
16693
*** Therefore, libtool is disabling shared libraries support. If you
16694
*** really care for shared libraries, you may want to modify your PATH
16695
*** so that a non-GNU linker is found, and then restart.
16702
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)'
16703
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16704
hardcode_minus_L_GCJ=yes
16706
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16707
# that the semantics of dynamic libraries on AmigaOS, at least up
16708
# to version 4, is to share data among multiple programs linked
16709
# with the same dynamic library. Since this doesn't match the
16710
# behavior of shared libraries on other platforms, we can't use
16716
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16717
allow_undefined_flag_GCJ=unsupported
16718
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16719
# support --undefined. This deserves some investigation. FIXME
16720
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16726
cygwin* | mingw* | pw32*)
16727
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16728
# as there is no search path for DLLs.
16729
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16730
allow_undefined_flag_GCJ=unsupported
16731
always_export_symbols_GCJ=no
16732
enable_shared_with_static_runtimes_GCJ=yes
16733
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16735
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16736
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16737
# If the export-symbols file already is a .def file (1st line
16738
# is EXPORTS), use it as is; otherwise, prepend...
16739
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16740
cp $export_symbols $output_objdir/$soname.def;
16742
echo EXPORTS > $output_objdir/$soname.def;
16743
cat $export_symbols >> $output_objdir/$soname.def;
16745
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16751
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16752
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16753
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16756
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16757
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16762
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16766
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16767
*** create shared libraries on Solaris systems. Therefore, libtool
16768
*** is disabling shared libraries support. We urge you to upgrade GNU
16769
*** binutils to release 2.9.1 or newer. Another option is to modify
16770
*** your PATH or compiler configuration so that the native linker is
16771
*** used, and then restart.
16774
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16775
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16776
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16783
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16785
hardcode_direct_GCJ=yes
16786
hardcode_shlibpath_var_GCJ=no
16790
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16791
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16792
archive_cmds_GCJ="$tmp_archive_cmds"
16793
supports_anon_versioning=no
16794
case `$LD -v 2>/dev/null` in
16795
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16796
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16797
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16798
*\ 2.11.*) ;; # other 2.11 versions
16799
*) supports_anon_versioning=yes ;;
16801
if test $supports_anon_versioning = yes; then
16802
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16803
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16804
$echo "local: *; };" >> $output_objdir/$libname.ver~
16805
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16807
archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16809
link_all_deplibs_GCJ=no
16816
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16817
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16818
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16825
if test "$ld_shlibs_GCJ" = yes; then
16826
runpath_var=LD_RUN_PATH
16827
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16828
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16829
# ancient GNU ld didn't support --whole-archive et. al.
16830
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16831
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16833
whole_archive_flag_spec_GCJ=
16837
# PORTME fill in a description of your system's linker (not GNU ld)
16840
allow_undefined_flag_GCJ=unsupported
16841
always_export_symbols_GCJ=yes
16842
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'
16843
# Note: this linker hardcodes the directories in LIBPATH if there
16844
# are no directories specified by -L.
16845
hardcode_minus_L_GCJ=yes
16846
if test "$GCC" = yes && test -z "$link_static_flag"; then
16847
# Neither direct hardcoding nor static linking is supported with a
16849
hardcode_direct_GCJ=unsupported
16854
if test "$host_cpu" = ia64; then
16855
# On IA64, the linker does run time linking by default, so we don't
16856
# have to do anything special.
16857
aix_use_runtimelinking=no
16858
exp_sym_flag='-Bexport'
16861
# If we're using GNU nm, then we don't want the "-C" option.
16862
# -C means demangle to AIX nm, but means don't demangle with GNU nm
16863
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16864
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'
16866
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'
16868
aix_use_runtimelinking=no
16870
# Test if we are trying to use run time linking or normal
16871
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16872
# need to do runtime linking.
16873
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16874
for ld_flag in $LDFLAGS; do
16875
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16876
aix_use_runtimelinking=yes
16882
exp_sym_flag='-bexport'
16883
no_entry_flag='-bnoentry'
16886
# When large executables or shared objects are built, AIX ld can
16887
# have problems creating the table of contents. If linking a library
16888
# or program results in "error TOC overflow" add -mminimal-toc to
16889
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16890
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16892
archive_cmds_GCJ=''
16893
hardcode_direct_GCJ=yes
16894
hardcode_libdir_separator_GCJ=':'
16895
link_all_deplibs_GCJ=yes
16897
if test "$GCC" = yes; then
16898
case $host_os in aix4.012|aix4.012.*)
16899
# We only want to do this on AIX 4.2 and lower, the check
16900
# below for broken collect2 doesn't work under 4.3+
16901
collect2name=`${CC} -print-prog-name=collect2`
16902
if test -f "$collect2name" && \
16903
strings "$collect2name" | grep resolve_lib_name >/dev/null
16905
# We have reworked collect2
16906
hardcode_direct_GCJ=yes
16908
# We have old collect2
16909
hardcode_direct_GCJ=unsupported
16910
# It fails to find uninstalled libraries when the uninstalled
16911
# path is not listed in the libpath. Setting hardcode_minus_L
16912
# to unsupported forces relinking
16913
hardcode_minus_L_GCJ=yes
16914
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16915
hardcode_libdir_separator_GCJ=
16918
shared_flag='-shared'
16921
if test "$host_cpu" = ia64; then
16922
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16923
# chokes on -Wl,-G. The following line is correct:
16926
if test "$aix_use_runtimelinking" = yes; then
16927
shared_flag='${wl}-G'
16929
shared_flag='${wl}-bM:SRE'
16934
# It seems that -bexpall does not export symbols beginning with
16935
# underscore (_), so it is better to generate a list of symbols to export.
16936
always_export_symbols_GCJ=yes
16937
if test "$aix_use_runtimelinking" = yes; then
16938
# Warning - without using the other runtime loading flags (-brtl),
16939
# -berok will link without error, but may produce a broken library.
16940
allow_undefined_flag_GCJ='-berok'
16941
# Determine the default libpath from the value encoded in an empty executable.
16942
cat >conftest.$ac_ext <<_ACEOF
16945
cat confdefs.h >>conftest.$ac_ext
16946
cat >>conftest.$ac_ext <<_ACEOF
16947
/* end confdefs.h. */
16957
rm -f conftest.$ac_objext conftest$ac_exeext
16958
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16959
(eval $ac_link) 2>conftest.er1
16961
grep -v '^ *+' conftest.er1 >conftest.err
16963
cat conftest.err >&5
16964
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16965
(exit $ac_status); } &&
16966
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16967
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16968
(eval $ac_try) 2>&5
16970
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16971
(exit $ac_status); }; } &&
16972
{ ac_try='test -s conftest$ac_exeext'
16973
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16974
(eval $ac_try) 2>&5
16976
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16977
(exit $ac_status); }; }; then
16979
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16981
# Check for a 64-bit object if we didn't find anything.
16982
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16985
echo "$as_me: failed program was:" >&5
16986
sed 's/^/| /' conftest.$ac_ext >&5
16989
rm -f conftest.err conftest.$ac_objext \
16990
conftest$ac_exeext conftest.$ac_ext
16991
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16993
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16994
archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16996
if test "$host_cpu" = ia64; then
16997
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16998
allow_undefined_flag_GCJ="-z nodefs"
16999
archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
17001
# Determine the default libpath from the value encoded in an empty executable.
17002
cat >conftest.$ac_ext <<_ACEOF
17005
cat confdefs.h >>conftest.$ac_ext
17006
cat >>conftest.$ac_ext <<_ACEOF
17007
/* end confdefs.h. */
17017
rm -f conftest.$ac_objext conftest$ac_exeext
17018
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17019
(eval $ac_link) 2>conftest.er1
17021
grep -v '^ *+' conftest.er1 >conftest.err
17023
cat conftest.err >&5
17024
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025
(exit $ac_status); } &&
17026
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17027
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17028
(eval $ac_try) 2>&5
17030
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17031
(exit $ac_status); }; } &&
17032
{ ac_try='test -s conftest$ac_exeext'
17033
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17034
(eval $ac_try) 2>&5
17036
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17037
(exit $ac_status); }; }; then
17039
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17041
# Check for a 64-bit object if we didn't find anything.
17042
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17045
echo "$as_me: failed program was:" >&5
17046
sed 's/^/| /' conftest.$ac_ext >&5
17049
rm -f conftest.err conftest.$ac_objext \
17050
conftest$ac_exeext conftest.$ac_ext
17051
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17053
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17054
# Warning - without using the other run time loading flags,
17055
# -berok will link without error, but may produce a broken library.
17056
no_undefined_flag_GCJ=' ${wl}-bernotok'
17057
allow_undefined_flag_GCJ=' ${wl}-berok'
17058
# -bexpall does not export symbols beginning with underscore (_)
17059
always_export_symbols_GCJ=yes
17060
# Exported symbols can be pulled into shared objects from archives
17061
whole_archive_flag_spec_GCJ=' '
17062
archive_cmds_need_lc_GCJ=yes
17063
# This is similar to how AIX traditionally builds it's shared libraries.
17064
archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17070
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)'
17071
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17072
hardcode_minus_L_GCJ=yes
17073
# see comment about different semantics on the GNU ld section
17078
export_dynamic_flag_spec_GCJ=-rdynamic
17081
cygwin* | mingw* | pw32*)
17082
# When not using gcc, we currently assume that we are using
17083
# Microsoft Visual C++.
17084
# hardcode_libdir_flag_spec is actually meaningless, as there is
17085
# no search path for DLLs.
17086
hardcode_libdir_flag_spec_GCJ=' '
17087
allow_undefined_flag_GCJ=unsupported
17088
# Tell ltmain to make .lib files, not .a files.
17090
# Tell ltmain to make .dll files, not .so files.
17092
# FIXME: Setting linknames here is a bad hack.
17093
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17094
# The linker will automatically build a .lib file if we build a DLL.
17095
old_archive_From_new_cmds_GCJ='true'
17096
# FIXME: Should let the user specify the lib program.
17097
old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17098
fix_srcfile_path='`cygpath -w "$srcfile"`'
17099
enable_shared_with_static_runtimes_GCJ=yes
17102
darwin* | rhapsody*)
17103
if test "$GXX" = yes ; then
17104
archive_cmds_need_lc_GCJ=no
17106
rhapsody* | darwin1.[012])
17107
allow_undefined_flag_GCJ='-undefined suppress'
17110
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17111
allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
17113
case ${MACOSX_DEPLOYMENT_TARGET} in
17115
allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
17118
allow_undefined_flag_GCJ='-undefined dynamic_lookup'
17124
lt_int_apple_cc_single_mod=no
17125
output_verbose_link_cmd='echo'
17126
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
17127
lt_int_apple_cc_single_mod=yes
17129
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17130
archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17132
archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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'
17134
module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17135
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17136
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17137
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17139
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17141
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}'
17142
hardcode_direct_GCJ=no
17143
hardcode_automatic_GCJ=yes
17144
hardcode_shlibpath_var_GCJ=unsupported
17145
whole_archive_flag_spec_GCJ='-all_load $convenience'
17146
link_all_deplibs_GCJ=yes
17153
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17154
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17155
hardcode_shlibpath_var_GCJ=no
17162
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17163
# support. Future versions do this automatically, but an explicit c++rt0.o
17164
# does not break anything, and helps significantly (at the cost of a little
17167
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17168
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17169
hardcode_direct_GCJ=yes
17170
hardcode_shlibpath_var_GCJ=no
17173
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
17175
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17176
hardcode_direct_GCJ=yes
17177
hardcode_minus_L_GCJ=yes
17178
hardcode_shlibpath_var_GCJ=no
17181
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17182
freebsd* | kfreebsd*-gnu)
17183
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17184
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17185
hardcode_direct_GCJ=yes
17186
hardcode_shlibpath_var_GCJ=no
17190
if test "$GCC" = yes; then
17191
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'
17193
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'
17195
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17196
hardcode_libdir_separator_GCJ=:
17197
hardcode_direct_GCJ=yes
17199
# hardcode_minus_L: Not really in the search PATH,
17200
# but as the default location of the library.
17201
hardcode_minus_L_GCJ=yes
17202
export_dynamic_flag_spec_GCJ='${wl}-E'
17206
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17207
case "$host_cpu" in
17209
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17212
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17216
case "$host_cpu" in
17218
archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17221
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17225
if test "$with_gnu_ld" = no; then
17226
case "$host_cpu" in
17228
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17229
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17230
hardcode_libdir_separator_GCJ=:
17231
hardcode_direct_GCJ=no
17232
hardcode_shlibpath_var_GCJ=no
17235
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17236
hardcode_direct_GCJ=no
17237
hardcode_shlibpath_var_GCJ=no
17239
# hardcode_minus_L: Not really in the search PATH,
17240
# but as the default location of the library.
17241
hardcode_minus_L_GCJ=yes
17244
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17245
hardcode_libdir_separator_GCJ=:
17246
hardcode_direct_GCJ=yes
17247
export_dynamic_flag_spec_GCJ='${wl}-E'
17249
# hardcode_minus_L: Not really in the search PATH,
17250
# but as the default location of the library.
17251
hardcode_minus_L_GCJ=yes
17257
irix5* | irix6* | nonstopux*)
17258
if test "$GCC" = yes; then
17259
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'
17261
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'
17262
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17264
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17265
hardcode_libdir_separator_GCJ=:
17266
link_all_deplibs_GCJ=yes
17269
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
17270
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17271
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17273
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17275
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17276
hardcode_direct_GCJ=yes
17277
hardcode_shlibpath_var_GCJ=no
17281
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17282
hardcode_direct_GCJ=yes
17283
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17284
hardcode_libdir_separator_GCJ=:
17285
hardcode_shlibpath_var_GCJ=no
17289
hardcode_direct_GCJ=yes
17290
hardcode_shlibpath_var_GCJ=no
17291
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17292
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17293
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17294
export_dynamic_flag_spec_GCJ='${wl}-E'
17297
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17298
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17299
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17302
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17303
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17310
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17311
hardcode_minus_L_GCJ=yes
17312
allow_undefined_flag_GCJ=unsupported
17313
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'
17314
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17318
if test "$GCC" = yes; then
17319
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17320
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'
17322
allow_undefined_flag_GCJ=' -expect_unresolved \*'
17323
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'
17325
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17326
hardcode_libdir_separator_GCJ=:
17329
osf4* | osf5*) # as osf3* with the addition of -msym flag
17330
if test "$GCC" = yes; then
17331
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17332
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'
17333
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17335
allow_undefined_flag_GCJ=' -expect_unresolved \*'
17336
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'
17337
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~
17338
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
17340
# Both c and cxx compiler support -rpath directly
17341
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17343
hardcode_libdir_separator_GCJ=:
17347
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17348
hardcode_shlibpath_var_GCJ=no
17349
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17350
runpath_var=LD_RUN_PATH
17351
hardcode_runpath_var=yes
17355
no_undefined_flag_GCJ=' -z text'
17356
if test "$GCC" = yes; then
17357
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17358
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17359
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17361
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17362
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17363
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17365
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17366
hardcode_shlibpath_var_GCJ=no
17368
solaris2.[0-5] | solaris2.[0-5].*) ;;
17369
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
17370
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17372
link_all_deplibs_GCJ=yes
17376
if test "x$host_vendor" = xsequent; then
17377
# Use $CC to link under sequent, because it throws in some extra .o
17378
# files that make .init and .fini sections work.
17379
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17381
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17383
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17384
hardcode_direct_GCJ=yes
17385
hardcode_minus_L_GCJ=yes
17386
hardcode_shlibpath_var_GCJ=no
17390
case $host_vendor in
17392
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17393
hardcode_direct_GCJ=yes # is this really true???
17396
## LD is ld it makes a PLAMLIB
17397
## CC just makes a GrossModule.
17398
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17399
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17400
hardcode_direct_GCJ=no
17403
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17404
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17407
runpath_var='LD_RUN_PATH'
17408
hardcode_shlibpath_var_GCJ=no
17412
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17413
hardcode_shlibpath_var_GCJ=no
17414
export_dynamic_flag_spec_GCJ='-Bexport'
17418
if test -d /usr/nec; then
17419
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17420
hardcode_shlibpath_var_GCJ=no
17421
runpath_var=LD_RUN_PATH
17422
hardcode_runpath_var=yes
17428
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17429
hardcode_direct_GCJ=yes
17430
hardcode_minus_L_GCJ=no
17431
hardcode_shlibpath_var_GCJ=no
17432
hardcode_runpath_var=yes
17433
runpath_var=LD_RUN_PATH
17436
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17437
no_undefined_flag_GCJ='${wl}-z ${wl}text'
17438
if test "$GCC" = yes; then
17439
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17441
archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17443
runpath_var='LD_RUN_PATH'
17444
hardcode_shlibpath_var_GCJ=no
17448
no_undefined_flag_GCJ=' -z text'
17449
# $CC -shared without GNU ld will not create a library from C++
17450
# object files and a static libstdc++, better avoid it by now
17451
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17452
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17453
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17454
hardcode_libdir_flag_spec_GCJ=
17455
hardcode_shlibpath_var_GCJ=no
17456
runpath_var='LD_RUN_PATH'
17460
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17461
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17462
hardcode_shlibpath_var_GCJ=no
17471
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17472
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17473
test "$ld_shlibs_GCJ" = no && can_build_shared=no
17475
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17476
if test "$GCC" = yes; then
17477
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17481
# Do we need to explicitly link libc?
17483
case "x$archive_cmds_need_lc_GCJ" in
17485
# Assume -lc should be added
17486
archive_cmds_need_lc_GCJ=yes
17488
if test "$enable_shared" = yes && test "$GCC" = yes; then
17489
case $archive_cmds_GCJ in
17491
# FIXME: we may have to deal with multi-command sequences.
17494
# Test whether the compiler implicitly links with -lc since on some
17495
# systems, -lgcc has to come before -lc. If gcc already passes -lc
17496
# to ld, don't add -lc before -lgcc.
17497
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17498
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17500
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17502
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17503
(eval $ac_compile) 2>&5
17505
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506
(exit $ac_status); } 2>conftest.err; then
17509
libobjs=conftest.$ac_objext
17511
wl=$lt_prog_compiler_wl_GCJ
17517
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17518
allow_undefined_flag_GCJ=
17519
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17520
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17522
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17523
(exit $ac_status); }
17525
archive_cmds_need_lc_GCJ=no
17527
archive_cmds_need_lc_GCJ=yes
17529
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17531
cat conftest.err 1>&5
17534
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17535
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17542
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17543
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17544
library_names_spec=
17545
libname_spec='lib$name'
17549
postuninstall_cmds=
17553
shlibpath_overrides_runpath=unknown
17555
dynamic_linker="$host_os ld.so"
17556
sys_lib_dlsearch_path_spec="/lib /usr/lib"
17557
if test "$GCC" = yes; then
17558
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17559
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17560
# if the path contains ";" then we assume it to be the separator
17561
# otherwise default to the standard path separator (i.e. ":") - it is
17562
# assumed that no part of a normal pathname contains ";" but that should
17563
# okay in the real world where ";" in dirpaths is itself problematic.
17564
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17566
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17569
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17571
need_lib_prefix=unknown
17572
hardcode_into_libs=no
17574
# when you set need_version to no, make sure it does not cause -set_version
17575
# flags to be left without arguments
17576
need_version=unknown
17581
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17582
shlibpath_var=LIBPATH
17584
# AIX 3 has no versioning support, so we append a major version to the name.
17585
soname_spec='${libname}${release}${shared_ext}$major'
17592
hardcode_into_libs=yes
17593
if test "$host_cpu" = ia64; then
17594
# AIX 5 supports IA64
17595
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17596
shlibpath_var=LD_LIBRARY_PATH
17598
# With GCC up to 2.95.x, collect2 would create an import file
17599
# for dependence libraries. The import file would start with
17600
# the line `#! .'. This would cause the generated library to
17601
# depend on `.', always an invalid library. This was fixed in
17602
# development snapshots of GCC prior to 3.0.
17604
aix4 | aix4.[01] | aix4.[01].*)
17605
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17607
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17610
can_build_shared=no
17614
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17615
# soname into executable. Probably we can add versioning support to
17616
# collect2, so additional links can be useful in future.
17617
if test "$aix_use_runtimelinking" = yes; then
17618
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
17619
# instead of lib<name>.a to let people know that these are not
17620
# typical AIX shared libraries.
17621
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17623
# We preserve .a as extension for shared libraries through AIX4.2
17624
# and later when we are not doing run time linking.
17625
library_names_spec='${libname}${release}.a $libname.a'
17626
soname_spec='${libname}${release}${shared_ext}$major'
17628
shlibpath_var=LIBPATH
17633
library_names_spec='$libname.ixlibrary $libname.a'
17634
# Create ${libname}_ixlibrary.a entries in /sys/libs.
17635
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'
17639
library_names_spec='${libname}${shared_ext}'
17640
dynamic_linker="$host_os ld.so"
17641
shlibpath_var=LIBRARY_PATH
17647
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17648
soname_spec='${libname}${release}${shared_ext}$major'
17649
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17650
shlibpath_var=LD_LIBRARY_PATH
17651
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17652
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17653
# the default ld.so.conf also contains /usr/contrib/lib and
17654
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17655
# libtool to hard-code these into programs
17658
cygwin* | mingw* | pw32*)
17659
version_type=windows
17664
case $GCC,$host_os in
17665
yes,cygwin* | yes,mingw* | yes,pw32*)
17666
library_names_spec='$libname.dll.a'
17667
# DLL is installed to $(libdir)/../bin by postinstall_cmds
17668
postinstall_cmds='base_file=`basename \${file}`~
17669
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17670
dldir=$destdir/`dirname \$dlpath`~
17671
test -d \$dldir || mkdir -p \$dldir~
17672
$install_prog $dir/$dlname \$dldir/$dlname'
17673
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17674
dlpath=$dir/\$dldll~
17676
shlibpath_overrides_runpath=yes
17680
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
17681
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17682
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17685
# MinGW DLLs use traditional 'lib' prefix
17686
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17687
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17688
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17689
# It is most probably a Windows format PATH printed by
17690
# mingw gcc, but we are running on Cygwin. Gcc prints its search
17691
# path with ; separators, and with drive letters. We can handle the
17692
# drive letters (cygwin fileutils understands them), so leave them,
17693
# especially as we might pass files found there to a mingw objdump,
17694
# which wouldn't understand a cygwinified path. Ahh.
17695
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17697
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17701
# pw32 DLLs use 'pw' prefix rather than 'lib'
17702
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17708
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17711
dynamic_linker='Win32 ld.exe'
17712
# FIXME: first we should search . and the directory the executable is in
17716
darwin* | rhapsody*)
17717
dynamic_linker="$host_os dyld"
17718
version_type=darwin
17721
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17722
soname_spec='${libname}${release}${major}$shared_ext'
17723
shlibpath_overrides_runpath=yes
17724
shlibpath_var=DYLD_LIBRARY_PATH
17725
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17726
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17727
if test "$GCC" = yes; then
17728
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17730
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17732
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17739
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17740
soname_spec='${libname}${release}${shared_ext}$major'
17741
shlibpath_var=LD_LIBRARY_PATH
17752
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17753
soname_spec='${libname}${release}${shared_ext}$major'
17754
shlibpath_var=LD_LIBRARY_PATH
17755
shlibpath_overrides_runpath=no
17756
hardcode_into_libs=yes
17757
dynamic_linker='GNU ld.so'
17761
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17762
version_type=freebsd-$objformat
17763
case $version_type in
17765
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17770
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17774
shlibpath_var=LD_LIBRARY_PATH
17777
shlibpath_overrides_runpath=yes
17779
freebsd3.01* | freebsdelf3.01*)
17780
shlibpath_overrides_runpath=yes
17781
hardcode_into_libs=yes
17784
shlibpath_overrides_runpath=no
17785
hardcode_into_libs=yes
17794
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17795
soname_spec='${libname}${release}${shared_ext}$major'
17796
shlibpath_var=LD_LIBRARY_PATH
17797
hardcode_into_libs=yes
17800
hpux9* | hpux10* | hpux11*)
17801
# Give a soname corresponding to the major version so that dld.sl refuses to
17802
# link against other versions.
17806
case "$host_cpu" in
17809
hardcode_into_libs=yes
17810
dynamic_linker="$host_os dld.so"
17811
shlibpath_var=LD_LIBRARY_PATH
17812
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17813
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17814
soname_spec='${libname}${release}${shared_ext}$major'
17815
if test "X$HPUX_IA64_MODE" = X32; then
17816
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17818
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17820
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17824
hardcode_into_libs=yes
17825
dynamic_linker="$host_os dld.sl"
17826
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17827
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17828
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17829
soname_spec='${libname}${release}${shared_ext}$major'
17830
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17831
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17835
dynamic_linker="$host_os dld.sl"
17836
shlibpath_var=SHLIB_PATH
17837
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17838
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17839
soname_spec='${libname}${release}${shared_ext}$major'
17842
# HP-UX runs *really* slowly unless shared libraries are mode 555.
17843
postinstall_cmds='chmod 555 $lib'
17846
irix5* | irix6* | nonstopux*)
17848
nonstopux*) version_type=nonstopux ;;
17850
if test "$lt_cv_prog_gnu_ld" = yes; then
17858
soname_spec='${libname}${release}${shared_ext}$major'
17859
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17861
irix5* | nonstopux*)
17862
libsuff= shlibsuff=
17865
case $LD in # libtool.m4 will add one of these switches to LD
17866
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17867
libsuff= shlibsuff= libmagic=32-bit;;
17868
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17869
libsuff=32 shlibsuff=N32 libmagic=N32;;
17870
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17871
libsuff=64 shlibsuff=64 libmagic=64-bit;;
17872
*) libsuff= shlibsuff= libmagic=never-match;;
17876
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17877
shlibpath_overrides_runpath=no
17878
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17879
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17880
hardcode_into_libs=yes
17883
# No shared lib support for Linux oldld, aout, or coff.
17884
linux*oldld* | linux*aout* | linux*coff*)
17888
# This must be Linux ELF.
17893
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17894
soname_spec='${libname}${release}${shared_ext}$major'
17895
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17896
shlibpath_var=LD_LIBRARY_PATH
17897
shlibpath_overrides_runpath=no
17898
# This implies no fast_install, which is unacceptable.
17899
# Some rework will be needed to allow for fast_install
17900
# before this can be enabled.
17901
hardcode_into_libs=yes
17903
# Append ld.so.conf contents to the search path
17904
if test -f /etc/ld.so.conf; then
17905
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17906
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17909
# We used to test for /lib/ld.so.1 and disable shared libraries on
17910
# powerpc, because MkLinux only supported shared libraries with the
17911
# GNU dynamic linker. Since this was broken with cross compilers,
17912
# most powerpc-linux boxes support dynamic linking these days and
17913
# people can always --disable-shared, the test was removed, and we
17914
# assume the GNU/Linux dynamic linker is in use.
17915
dynamic_linker='GNU/Linux ld.so'
17922
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17923
soname_spec='${libname}${release}${shared_ext}$major'
17924
shlibpath_var=LD_LIBRARY_PATH
17925
shlibpath_overrides_runpath=no
17926
hardcode_into_libs=yes
17927
dynamic_linker='NetBSD ld.elf_so'
17934
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17935
soname_spec='${libname}${release}${shared_ext}$major'
17936
shlibpath_var=LD_LIBRARY_PATH
17937
shlibpath_overrides_runpath=no
17938
hardcode_into_libs=yes
17939
dynamic_linker='GNU ld.so'
17946
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17947
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17948
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17949
dynamic_linker='NetBSD (a.out) ld.so'
17951
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17952
soname_spec='${libname}${release}${shared_ext}$major'
17953
dynamic_linker='NetBSD ld.elf_so'
17955
shlibpath_var=LD_LIBRARY_PATH
17956
shlibpath_overrides_runpath=yes
17957
hardcode_into_libs=yes
17962
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17963
shlibpath_var=LD_LIBRARY_PATH
17964
shlibpath_overrides_runpath=yes
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
17974
shlibpath_overrides_runpath=yes
17981
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17982
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17983
shlibpath_var=LD_LIBRARY_PATH
17984
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17986
openbsd2.[89] | openbsd2.[89].*)
17987
shlibpath_overrides_runpath=no
17990
shlibpath_overrides_runpath=yes
17994
shlibpath_overrides_runpath=yes
17999
libname_spec='$name'
18002
library_names_spec='$libname${shared_ext} $libname.a'
18003
dynamic_linker='OS/2 ld.exe'
18004
shlibpath_var=LIBPATH
18007
osf3* | osf4* | osf5*)
18011
soname_spec='${libname}${release}${shared_ext}$major'
18012
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18013
shlibpath_var=LD_LIBRARY_PATH
18014
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18015
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18020
soname_spec='${libname}${release}${shared_ext}$major'
18021
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18022
shlibpath_var=LD_LIBRARY_PATH
18029
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18030
soname_spec='${libname}${release}${shared_ext}$major'
18031
shlibpath_var=LD_LIBRARY_PATH
18032
shlibpath_overrides_runpath=yes
18033
hardcode_into_libs=yes
18034
# ldd complains unless libraries are executable
18035
postinstall_cmds='chmod +x $lib'
18040
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18041
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18042
shlibpath_var=LD_LIBRARY_PATH
18043
shlibpath_overrides_runpath=yes
18044
if test "$with_gnu_ld" = yes; then
18050
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18052
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18053
soname_spec='${libname}${release}${shared_ext}$major'
18054
shlibpath_var=LD_LIBRARY_PATH
18055
case $host_vendor in
18057
shlibpath_overrides_runpath=no
18059
export_dynamic_flag_spec='${wl}-Blargedynsym'
18060
runpath_var=LD_RUN_PATH
18068
shlibpath_overrides_runpath=no
18069
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18075
if test -d /usr/nec ;then
18077
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18078
soname_spec='$libname${shared_ext}.$major'
18079
shlibpath_var=LD_LIBRARY_PATH
18085
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18086
soname_spec='${libname}${release}${shared_ext}$major'
18087
shlibpath_var=LD_LIBRARY_PATH
18094
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18095
echo "${ECHO_T}$dynamic_linker" >&6
18096
test "$dynamic_linker" = no && can_build_shared=no
18098
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18099
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18100
hardcode_action_GCJ=
18101
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18102
test -n "$runpath_var GCJ" || \
18103
test "X$hardcode_automatic_GCJ"="Xyes" ; then
18105
# We can hardcode non-existant directories.
18106
if test "$hardcode_direct_GCJ" != no &&
18107
# If the only mechanism to avoid hardcoding is shlibpath_var, we
18108
# have to relink, otherwise we might link with an installed library
18109
# when we should be linking with a yet-to-be-installed one
18110
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18111
test "$hardcode_minus_L_GCJ" != no; then
18112
# Linking always hardcodes the temporary library directory.
18113
hardcode_action_GCJ=relink
18115
# We can link without hardcoding, and we can hardcode nonexisting dirs.
18116
hardcode_action_GCJ=immediate
18119
# We cannot hardcode anything, or else we can only hardcode existing
18121
hardcode_action_GCJ=unsupported
18123
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18124
echo "${ECHO_T}$hardcode_action_GCJ" >&6
18126
if test "$hardcode_action_GCJ" = relink; then
18127
# Fast installation is not supported
18128
enable_fast_install=no
18129
elif test "$shlibpath_overrides_runpath" = yes ||
18130
test "$enable_shared" = no; then
18131
# Fast installation is not necessary
18132
enable_fast_install=needless
18137
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18138
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18139
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18140
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18141
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18142
echo "$as_me:$LINENO: result: yes" >&5
18143
echo "${ECHO_T}yes" >&6
18145
# FIXME - insert some real tests, host_os isn't really good enough
18148
if test -n "$STRIP" ; then
18149
striplib="$STRIP -x"
18150
echo "$as_me:$LINENO: result: yes" >&5
18151
echo "${ECHO_T}yes" >&6
18153
echo "$as_me:$LINENO: result: no" >&5
18154
echo "${ECHO_T}no" >&6
18158
echo "$as_me:$LINENO: result: no" >&5
18159
echo "${ECHO_T}no" >&6
18164
if test "x$enable_dlopen" != xyes; then
18165
enable_dlopen=unknown
18166
enable_dlopen_self=unknown
18167
enable_dlopen_self_static=unknown
18174
lt_cv_dlopen="load_add_on"
18176
lt_cv_dlopen_self=yes
18180
lt_cv_dlopen="LoadLibrary"
18185
lt_cv_dlopen="dlopen"
18190
# if libdl is installed we need to link against it
18191
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18192
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18193
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18194
echo $ECHO_N "(cached) $ECHO_C" >&6
18196
ac_check_lib_save_LIBS=$LIBS
18198
cat >conftest.$ac_ext <<_ACEOF
18201
cat confdefs.h >>conftest.$ac_ext
18202
cat >>conftest.$ac_ext <<_ACEOF
18203
/* end confdefs.h. */
18205
/* Override any gcc2 internal prototype to avoid an error. */
18209
/* We use char because int might match the return type of a gcc2
18210
builtin and then its argument prototype would still apply. */
18220
rm -f conftest.$ac_objext conftest$ac_exeext
18221
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18222
(eval $ac_link) 2>conftest.er1
18224
grep -v '^ *+' conftest.er1 >conftest.err
18226
cat conftest.err >&5
18227
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18228
(exit $ac_status); } &&
18229
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18230
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18231
(eval $ac_try) 2>&5
18233
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18234
(exit $ac_status); }; } &&
18235
{ ac_try='test -s conftest$ac_exeext'
18236
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18237
(eval $ac_try) 2>&5
18239
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18240
(exit $ac_status); }; }; then
18241
ac_cv_lib_dl_dlopen=yes
18243
echo "$as_me: failed program was:" >&5
18244
sed 's/^/| /' conftest.$ac_ext >&5
18246
ac_cv_lib_dl_dlopen=no
18248
rm -f conftest.err conftest.$ac_objext \
18249
conftest$ac_exeext conftest.$ac_ext
18250
LIBS=$ac_check_lib_save_LIBS
18252
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18253
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18254
if test $ac_cv_lib_dl_dlopen = yes; then
18255
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18258
lt_cv_dlopen="dyld"
18260
lt_cv_dlopen_self=yes
18267
echo "$as_me:$LINENO: checking for shl_load" >&5
18268
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18269
if test "${ac_cv_func_shl_load+set}" = set; then
18270
echo $ECHO_N "(cached) $ECHO_C" >&6
18272
cat >conftest.$ac_ext <<_ACEOF
18275
cat confdefs.h >>conftest.$ac_ext
18276
cat >>conftest.$ac_ext <<_ACEOF
18277
/* end confdefs.h. */
18278
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18279
For example, HP-UX 11i <limits.h> declares gettimeofday. */
18280
#define shl_load innocuous_shl_load
18282
/* System header to define __stub macros and hopefully few prototypes,
18283
which can conflict with char shl_load (); below.
18284
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18285
<limits.h> exists even on freestanding compilers. */
18288
# include <limits.h>
18290
# include <assert.h>
18295
/* Override any gcc2 internal prototype to avoid an error. */
18300
/* We use char because int might match the return type of a gcc2
18301
builtin and then its argument prototype would still apply. */
18303
/* The GNU C library defines this for functions which it implements
18304
to always fail with ENOSYS. Some functions are actually named
18305
something starting with __ and the normal name is an alias. */
18306
#if defined (__stub_shl_load) || defined (__stub___shl_load)
18309
char (*f) () = shl_load;
18318
return f != shl_load;
18323
rm -f conftest.$ac_objext conftest$ac_exeext
18324
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18325
(eval $ac_link) 2>conftest.er1
18327
grep -v '^ *+' conftest.er1 >conftest.err
18329
cat conftest.err >&5
18330
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18331
(exit $ac_status); } &&
18332
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18333
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18334
(eval $ac_try) 2>&5
18336
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18337
(exit $ac_status); }; } &&
18338
{ ac_try='test -s conftest$ac_exeext'
18339
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18340
(eval $ac_try) 2>&5
18342
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18343
(exit $ac_status); }; }; then
18344
ac_cv_func_shl_load=yes
18346
echo "$as_me: failed program was:" >&5
18347
sed 's/^/| /' conftest.$ac_ext >&5
18349
ac_cv_func_shl_load=no
18351
rm -f conftest.err conftest.$ac_objext \
18352
conftest$ac_exeext conftest.$ac_ext
18354
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18355
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18356
if test $ac_cv_func_shl_load = yes; then
18357
lt_cv_dlopen="shl_load"
18359
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18360
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18361
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18362
echo $ECHO_N "(cached) $ECHO_C" >&6
18364
ac_check_lib_save_LIBS=$LIBS
18366
cat >conftest.$ac_ext <<_ACEOF
18369
cat confdefs.h >>conftest.$ac_ext
18370
cat >>conftest.$ac_ext <<_ACEOF
18371
/* end confdefs.h. */
18373
/* Override any gcc2 internal prototype to avoid an error. */
18377
/* We use char because int might match the return type of a gcc2
18378
builtin and then its argument prototype would still apply. */
18388
rm -f conftest.$ac_objext conftest$ac_exeext
18389
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18390
(eval $ac_link) 2>conftest.er1
18392
grep -v '^ *+' conftest.er1 >conftest.err
18394
cat conftest.err >&5
18395
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18396
(exit $ac_status); } &&
18397
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18398
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18399
(eval $ac_try) 2>&5
18401
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18402
(exit $ac_status); }; } &&
18403
{ ac_try='test -s conftest$ac_exeext'
18404
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18405
(eval $ac_try) 2>&5
18407
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18408
(exit $ac_status); }; }; then
18409
ac_cv_lib_dld_shl_load=yes
18411
echo "$as_me: failed program was:" >&5
18412
sed 's/^/| /' conftest.$ac_ext >&5
18414
ac_cv_lib_dld_shl_load=no
18416
rm -f conftest.err conftest.$ac_objext \
18417
conftest$ac_exeext conftest.$ac_ext
18418
LIBS=$ac_check_lib_save_LIBS
18420
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18421
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18422
if test $ac_cv_lib_dld_shl_load = yes; then
18423
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18425
echo "$as_me:$LINENO: checking for dlopen" >&5
18426
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18427
if test "${ac_cv_func_dlopen+set}" = set; then
18428
echo $ECHO_N "(cached) $ECHO_C" >&6
18430
cat >conftest.$ac_ext <<_ACEOF
18433
cat confdefs.h >>conftest.$ac_ext
18434
cat >>conftest.$ac_ext <<_ACEOF
18435
/* end confdefs.h. */
18436
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18437
For example, HP-UX 11i <limits.h> declares gettimeofday. */
18438
#define dlopen innocuous_dlopen
18440
/* System header to define __stub macros and hopefully few prototypes,
18441
which can conflict with char dlopen (); below.
18442
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18443
<limits.h> exists even on freestanding compilers. */
18446
# include <limits.h>
18448
# include <assert.h>
18453
/* Override any gcc2 internal prototype to avoid an error. */
18458
/* We use char because int might match the return type of a gcc2
18459
builtin and then its argument prototype would still apply. */
18461
/* The GNU C library defines this for functions which it implements
18462
to always fail with ENOSYS. Some functions are actually named
18463
something starting with __ and the normal name is an alias. */
18464
#if defined (__stub_dlopen) || defined (__stub___dlopen)
18467
char (*f) () = dlopen;
18476
return f != dlopen;
18481
rm -f conftest.$ac_objext conftest$ac_exeext
18482
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18483
(eval $ac_link) 2>conftest.er1
18485
grep -v '^ *+' conftest.er1 >conftest.err
18487
cat conftest.err >&5
18488
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18489
(exit $ac_status); } &&
18490
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18491
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18492
(eval $ac_try) 2>&5
18494
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18495
(exit $ac_status); }; } &&
18496
{ ac_try='test -s conftest$ac_exeext'
18497
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18498
(eval $ac_try) 2>&5
18500
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18501
(exit $ac_status); }; }; then
18502
ac_cv_func_dlopen=yes
18504
echo "$as_me: failed program was:" >&5
18505
sed 's/^/| /' conftest.$ac_ext >&5
18507
ac_cv_func_dlopen=no
18509
rm -f conftest.err conftest.$ac_objext \
18510
conftest$ac_exeext conftest.$ac_ext
18512
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18513
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18514
if test $ac_cv_func_dlopen = yes; then
18515
lt_cv_dlopen="dlopen"
18517
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18518
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18519
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18520
echo $ECHO_N "(cached) $ECHO_C" >&6
18522
ac_check_lib_save_LIBS=$LIBS
18524
cat >conftest.$ac_ext <<_ACEOF
18527
cat confdefs.h >>conftest.$ac_ext
18528
cat >>conftest.$ac_ext <<_ACEOF
18529
/* end confdefs.h. */
18531
/* Override any gcc2 internal prototype to avoid an error. */
18535
/* We use char because int might match the return type of a gcc2
18536
builtin and then its argument prototype would still apply. */
18546
rm -f conftest.$ac_objext conftest$ac_exeext
18547
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18548
(eval $ac_link) 2>conftest.er1
18550
grep -v '^ *+' conftest.er1 >conftest.err
18552
cat conftest.err >&5
18553
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18554
(exit $ac_status); } &&
18555
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18556
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18557
(eval $ac_try) 2>&5
18559
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18560
(exit $ac_status); }; } &&
18561
{ ac_try='test -s conftest$ac_exeext'
18562
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18563
(eval $ac_try) 2>&5
18565
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18566
(exit $ac_status); }; }; then
18567
ac_cv_lib_dl_dlopen=yes
18569
echo "$as_me: failed program was:" >&5
18570
sed 's/^/| /' conftest.$ac_ext >&5
18572
ac_cv_lib_dl_dlopen=no
18574
rm -f conftest.err conftest.$ac_objext \
18575
conftest$ac_exeext conftest.$ac_ext
18576
LIBS=$ac_check_lib_save_LIBS
18578
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18579
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18580
if test $ac_cv_lib_dl_dlopen = yes; then
18581
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18583
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18584
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18585
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18586
echo $ECHO_N "(cached) $ECHO_C" >&6
18588
ac_check_lib_save_LIBS=$LIBS
18589
LIBS="-lsvld $LIBS"
18590
cat >conftest.$ac_ext <<_ACEOF
18593
cat confdefs.h >>conftest.$ac_ext
18594
cat >>conftest.$ac_ext <<_ACEOF
18595
/* end confdefs.h. */
18597
/* Override any gcc2 internal prototype to avoid an error. */
18601
/* We use char because int might match the return type of a gcc2
18602
builtin and then its argument prototype would still apply. */
18612
rm -f conftest.$ac_objext conftest$ac_exeext
18613
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18614
(eval $ac_link) 2>conftest.er1
18616
grep -v '^ *+' conftest.er1 >conftest.err
18618
cat conftest.err >&5
18619
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18620
(exit $ac_status); } &&
18621
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18622
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18623
(eval $ac_try) 2>&5
18625
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18626
(exit $ac_status); }; } &&
18627
{ ac_try='test -s conftest$ac_exeext'
18628
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18629
(eval $ac_try) 2>&5
18631
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18632
(exit $ac_status); }; }; then
18633
ac_cv_lib_svld_dlopen=yes
18635
echo "$as_me: failed program was:" >&5
18636
sed 's/^/| /' conftest.$ac_ext >&5
18638
ac_cv_lib_svld_dlopen=no
18640
rm -f conftest.err conftest.$ac_objext \
18641
conftest$ac_exeext conftest.$ac_ext
18642
LIBS=$ac_check_lib_save_LIBS
18644
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18645
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18646
if test $ac_cv_lib_svld_dlopen = yes; then
18647
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18649
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18650
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18651
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18652
echo $ECHO_N "(cached) $ECHO_C" >&6
18654
ac_check_lib_save_LIBS=$LIBS
18656
cat >conftest.$ac_ext <<_ACEOF
18659
cat confdefs.h >>conftest.$ac_ext
18660
cat >>conftest.$ac_ext <<_ACEOF
18661
/* end confdefs.h. */
18663
/* Override any gcc2 internal prototype to avoid an error. */
18667
/* We use char because int might match the return type of a gcc2
18668
builtin and then its argument prototype would still apply. */
18678
rm -f conftest.$ac_objext conftest$ac_exeext
18679
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18680
(eval $ac_link) 2>conftest.er1
18682
grep -v '^ *+' conftest.er1 >conftest.err
18684
cat conftest.err >&5
18685
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18686
(exit $ac_status); } &&
18687
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18688
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18689
(eval $ac_try) 2>&5
18691
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18692
(exit $ac_status); }; } &&
18693
{ ac_try='test -s conftest$ac_exeext'
18694
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18695
(eval $ac_try) 2>&5
18697
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18698
(exit $ac_status); }; }; then
18699
ac_cv_lib_dld_dld_link=yes
18701
echo "$as_me: failed program was:" >&5
18702
sed 's/^/| /' conftest.$ac_ext >&5
18704
ac_cv_lib_dld_dld_link=no
18706
rm -f conftest.err conftest.$ac_objext \
18707
conftest$ac_exeext conftest.$ac_ext
18708
LIBS=$ac_check_lib_save_LIBS
18710
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18711
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18712
if test $ac_cv_lib_dld_dld_link = yes; then
18713
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18734
if test "x$lt_cv_dlopen" != xno; then
18740
case $lt_cv_dlopen in
18742
save_CPPFLAGS="$CPPFLAGS"
18743
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18745
save_LDFLAGS="$LDFLAGS"
18746
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18749
LIBS="$lt_cv_dlopen_libs $LIBS"
18751
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18752
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18753
if test "${lt_cv_dlopen_self+set}" = set; then
18754
echo $ECHO_N "(cached) $ECHO_C" >&6
18756
if test "$cross_compiling" = yes; then :
18757
lt_cv_dlopen_self=cross
18759
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18760
lt_status=$lt_dlunknown
18761
cat > conftest.$ac_ext <<EOF
18762
#line 18762 "configure"
18763
#include "confdefs.h"
18772
# define LT_DLGLOBAL RTLD_GLOBAL
18775
# define LT_DLGLOBAL DL_GLOBAL
18777
# define LT_DLGLOBAL 0
18781
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18782
find out it does not work in some platform. */
18783
#ifndef LT_DLLAZY_OR_NOW
18785
# define LT_DLLAZY_OR_NOW RTLD_LAZY
18788
# define LT_DLLAZY_OR_NOW DL_LAZY
18791
# define LT_DLLAZY_OR_NOW RTLD_NOW
18794
# define LT_DLLAZY_OR_NOW DL_NOW
18796
# define LT_DLLAZY_OR_NOW 0
18804
extern "C" void exit (int);
18807
void fnord() { int i=42;}
18810
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18811
int status = $lt_dlunknown;
18815
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18816
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18817
/* dlclose (self); */
18823
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18824
(eval $ac_link) 2>&5
18826
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18827
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18828
(./conftest; exit; ) 2>/dev/null
18830
case x$lt_status in
18831
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18832
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18833
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18836
# compilation failed
18837
lt_cv_dlopen_self=no
18844
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18845
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18847
if test "x$lt_cv_dlopen_self" = xyes; then
18848
LDFLAGS="$LDFLAGS $link_static_flag"
18849
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18850
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18851
if test "${lt_cv_dlopen_self_static+set}" = set; then
18852
echo $ECHO_N "(cached) $ECHO_C" >&6
18854
if test "$cross_compiling" = yes; then :
18855
lt_cv_dlopen_self_static=cross
18857
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18858
lt_status=$lt_dlunknown
18859
cat > conftest.$ac_ext <<EOF
18860
#line 18860 "configure"
18861
#include "confdefs.h"
18870
# define LT_DLGLOBAL RTLD_GLOBAL
18873
# define LT_DLGLOBAL DL_GLOBAL
18875
# define LT_DLGLOBAL 0
18879
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18880
find out it does not work in some platform. */
18881
#ifndef LT_DLLAZY_OR_NOW
18883
# define LT_DLLAZY_OR_NOW RTLD_LAZY
18886
# define LT_DLLAZY_OR_NOW DL_LAZY
18889
# define LT_DLLAZY_OR_NOW RTLD_NOW
18892
# define LT_DLLAZY_OR_NOW DL_NOW
18894
# define LT_DLLAZY_OR_NOW 0
18902
extern "C" void exit (int);
18905
void fnord() { int i=42;}
18908
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18909
int status = $lt_dlunknown;
18913
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18914
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18915
/* dlclose (self); */
18921
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18922
(eval $ac_link) 2>&5
18924
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18925
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18926
(./conftest; exit; ) 2>/dev/null
18928
case x$lt_status in
18929
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18930
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18931
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18934
# compilation failed
18935
lt_cv_dlopen_self_static=no
18942
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18943
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18946
CPPFLAGS="$save_CPPFLAGS"
18947
LDFLAGS="$save_LDFLAGS"
18952
case $lt_cv_dlopen_self in
18953
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18954
*) enable_dlopen_self=unknown ;;
18957
case $lt_cv_dlopen_self_static in
18958
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18959
*) enable_dlopen_self_static=unknown ;;
18964
# The else clause should only fire when bootstrapping the
18965
# libtool distribution, otherwise you forgot to ship ltmain.sh
18966
# with your package, and you will get complaints that there are
18967
# no rules to generate ltmain.sh.
18968
if test -f "$ltmain"; then
18969
# See if we are running on zsh, and set the options which allow our commands through
18970
# without removal of \ escapes.
18971
if test -n "${ZSH_VERSION+set}" ; then
18972
setopt NO_GLOB_SUBST
18974
# Now quote all the things that may contain metacharacters while being
18975
# careful not to overquote the AC_SUBSTed values. We take copies of the
18976
# variables and quote the copies for generation of the libtool script.
18977
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18979
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18980
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18981
deplibs_check_method reload_flag reload_cmds need_locks \
18982
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18983
lt_cv_sys_global_symbol_to_c_name_address \
18984
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18985
old_postinstall_cmds old_postuninstall_cmds \
18989
lt_prog_compiler_wl_GCJ \
18990
lt_prog_compiler_pic_GCJ \
18991
lt_prog_compiler_static_GCJ \
18992
lt_prog_compiler_no_builtin_flag_GCJ \
18993
export_dynamic_flag_spec_GCJ \
18994
thread_safe_flag_spec_GCJ \
18995
whole_archive_flag_spec_GCJ \
18996
enable_shared_with_static_runtimes_GCJ \
18997
old_archive_cmds_GCJ \
18998
old_archive_from_new_cmds_GCJ \
18999
predep_objects_GCJ \
19000
postdep_objects_GCJ \
19003
compiler_lib_search_path_GCJ \
19005
archive_expsym_cmds_GCJ \
19006
postinstall_cmds_GCJ \
19007
postuninstall_cmds_GCJ \
19008
old_archive_from_expsyms_cmds_GCJ \
19009
allow_undefined_flag_GCJ \
19010
no_undefined_flag_GCJ \
19011
export_symbols_cmds_GCJ \
19012
hardcode_libdir_flag_spec_GCJ \
19013
hardcode_libdir_flag_spec_ld_GCJ \
19014
hardcode_libdir_separator_GCJ \
19015
hardcode_automatic_GCJ \
19017
module_expsym_cmds_GCJ \
19018
lt_cv_prog_compiler_c_o_GCJ \
19019
exclude_expsyms_GCJ \
19020
include_expsyms_GCJ; do
19023
old_archive_cmds_GCJ | \
19024
old_archive_from_new_cmds_GCJ | \
19025
archive_cmds_GCJ | \
19026
archive_expsym_cmds_GCJ | \
19027
module_cmds_GCJ | \
19028
module_expsym_cmds_GCJ | \
19029
old_archive_from_expsyms_cmds_GCJ | \
19030
export_symbols_cmds_GCJ | \
19031
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19032
postinstall_cmds | postuninstall_cmds | \
19033
old_postinstall_cmds | old_postuninstall_cmds | \
19034
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19035
# Double-quote double-evaled strings.
19036
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19039
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19045
*'\$0 --fallback-echo"')
19046
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19052
cat <<__EOF__ >> "$cfgfile"
19053
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19055
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19057
# Shell to use when invoking shell scripts.
19060
# Whether or not to build shared libraries.
19061
build_libtool_libs=$enable_shared
19063
# Whether or not to build static libraries.
19064
build_old_libs=$enable_static
19066
# Whether or not to add -lc for building shared libraries.
19067
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19069
# Whether or not to disallow shared libs when runtime libs are static
19070
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19072
# Whether or not to optimize for fast installation.
19073
fast_install=$enable_fast_install
19076
host_alias=$host_alias
19079
# An echo program that does not interpret backslashes.
19084
AR_FLAGS=$lt_AR_FLAGS
19089
# A language-specific compiler.
19090
CC=$lt_compiler_GCJ
19092
# Is the compiler the GNU C compiler?
19098
# The linker used to build libraries.
19101
# Whether we need hard or soft links.
19104
# A BSD-compatible nm program.
19107
# A symbol stripping program
19110
# Used to examine libraries when file_magic_cmd begins "file"
19111
MAGIC_CMD=$MAGIC_CMD
19113
# Used on cygwin: DLL creation program.
19116
# Used on cygwin: object dumper.
19119
# Used on cygwin: assembler.
19122
# The name of the directory that contains temporary libtool files.
19125
# How to create reloadable object files.
19126
reload_flag=$lt_reload_flag
19127
reload_cmds=$lt_reload_cmds
19129
# How to pass a linker flag through the compiler.
19130
wl=$lt_lt_prog_compiler_wl_GCJ
19132
# Object file suffix (normally "o").
19133
objext="$ac_objext"
19135
# Old archive suffix (normally "a").
19138
# Shared library suffix (normally ".so").
19139
shrext_cmds='$shrext_cmds'
19141
# Executable file suffix (normally "").
19144
# Additional compiler flags for building library objects.
19145
pic_flag=$lt_lt_prog_compiler_pic_GCJ
19148
# What is the maximum length of a command?
19149
max_cmd_len=$lt_cv_sys_max_cmd_len
19151
# Does compiler simultaneously support -c and -o options?
19152
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19154
# Must we lock files when doing compilation ?
19155
need_locks=$lt_need_locks
19157
# Do we need the lib prefix for modules?
19158
need_lib_prefix=$need_lib_prefix
19160
# Do we need a version for libraries?
19161
need_version=$need_version
19163
# Whether dlopen is supported.
19164
dlopen_support=$enable_dlopen
19166
# Whether dlopen of programs is supported.
19167
dlopen_self=$enable_dlopen_self
19169
# Whether dlopen of statically linked programs is supported.
19170
dlopen_self_static=$enable_dlopen_self_static
19172
# Compiler flag to prevent dynamic linking.
19173
link_static_flag=$lt_lt_prog_compiler_static_GCJ
19175
# Compiler flag to turn off builtin functions.
19176
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19178
# Compiler flag to allow reflexive dlopens.
19179
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19181
# Compiler flag to generate shared objects directly from archives.
19182
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19184
# Compiler flag to generate thread-safe objects.
19185
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19187
# Library versioning type.
19188
version_type=$version_type
19190
# Format of library name prefix.
19191
libname_spec=$lt_libname_spec
19193
# List of archive names. First name is the real one, the rest are links.
19194
# The last name is the one that the linker finds with -lNAME.
19195
library_names_spec=$lt_library_names_spec
19197
# The coded name of the library, if different from the real name.
19198
soname_spec=$lt_soname_spec
19200
# Commands used to build and install an old-style archive.
19202
old_archive_cmds=$lt_old_archive_cmds_GCJ
19203
old_postinstall_cmds=$lt_old_postinstall_cmds
19204
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19206
# Create an old-style archive from a shared archive.
19207
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19209
# Create a temporary old-style archive to link instead of a shared archive.
19210
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19212
# Commands used to build and install a shared archive.
19213
archive_cmds=$lt_archive_cmds_GCJ
19214
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19215
postinstall_cmds=$lt_postinstall_cmds
19216
postuninstall_cmds=$lt_postuninstall_cmds
19218
# Commands used to build a loadable module (assumed same as above if empty)
19219
module_cmds=$lt_module_cmds_GCJ
19220
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19222
# Commands to strip libraries.
19223
old_striplib=$lt_old_striplib
19224
striplib=$lt_striplib
19226
# Dependencies to place before the objects being linked to create a
19228
predep_objects=$lt_predep_objects_GCJ
19230
# Dependencies to place after the objects being linked to create a
19232
postdep_objects=$lt_postdep_objects_GCJ
19234
# Dependencies to place before the objects being linked to create a
19236
predeps=$lt_predeps_GCJ
19238
# Dependencies to place after the objects being linked to create a
19240
postdeps=$lt_postdeps_GCJ
19242
# The library search path used internally by the compiler when linking
19243
# a shared library.
19244
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19246
# Method to check whether dependent libraries are shared objects.
19247
deplibs_check_method=$lt_deplibs_check_method
19249
# Command to use when deplibs_check_method == file_magic.
19250
file_magic_cmd=$lt_file_magic_cmd
19252
# Flag that allows shared libraries with undefined symbols to be built.
19253
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19255
# Flag that forces no undefined symbols.
19256
no_undefined_flag=$lt_no_undefined_flag_GCJ
19258
# Commands used to finish a libtool library installation in a directory.
19259
finish_cmds=$lt_finish_cmds
19261
# Same as above, but a single script fragment to be evaled but not shown.
19262
finish_eval=$lt_finish_eval
19264
# Take the output of nm and produce a listing of raw symbols and C names.
19265
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19267
# Transform the output of nm in a proper C declaration
19268
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19270
# Transform the output of nm in a C name address pair
19271
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19273
# This is the shared library runtime path variable.
19274
runpath_var=$runpath_var
19276
# This is the shared library path variable.
19277
shlibpath_var=$shlibpath_var
19279
# Is shlibpath searched before the hard-coded library search path?
19280
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19282
# How to hardcode a shared library path into an executable.
19283
hardcode_action=$hardcode_action_GCJ
19285
# Whether we should hardcode library paths into libraries.
19286
hardcode_into_libs=$hardcode_into_libs
19288
# Flag to hardcode \$libdir into a binary during linking.
19289
# This must work even if \$libdir does not exist.
19290
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19292
# If ld is used when linking, flag to hardcode \$libdir into
19293
# a binary during linking. This must work even if \$libdir does
19295
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19297
# Whether we need a single -rpath flag with a separated argument.
19298
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19300
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19301
# resulting binary.
19302
hardcode_direct=$hardcode_direct_GCJ
19304
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19305
# resulting binary.
19306
hardcode_minus_L=$hardcode_minus_L_GCJ
19308
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19309
# the resulting binary.
19310
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19312
# Set to yes if building a shared library automatically hardcodes DIR into the library
19313
# and all subsequent libraries and executables linked against it.
19314
hardcode_automatic=$hardcode_automatic_GCJ
19316
# Variables whose values should be saved in libtool wrapper scripts and
19317
# restored at relink time.
19318
variables_saved_for_relink="$variables_saved_for_relink"
19320
# Whether libtool must link a program against all its dependency libraries.
19321
link_all_deplibs=$link_all_deplibs_GCJ
19323
# Compile-time system search path for libraries
19324
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19326
# Run-time system search path for libraries
19327
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19329
# Fix the shell variable \$srcfile for the compiler.
19330
fix_srcfile_path="$fix_srcfile_path_GCJ"
19332
# Set to yes if exported symbols are required.
19333
always_export_symbols=$always_export_symbols_GCJ
19335
# The commands to list exported symbols.
19336
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19338
# The commands to extract the exported symbol list from a shared archive.
19339
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19341
# Symbols that should not be listed in the preloaded symbols.
19342
exclude_expsyms=$lt_exclude_expsyms_GCJ
19344
# Symbols that must always be exported.
19345
include_expsyms=$lt_include_expsyms_GCJ
19347
# ### END LIBTOOL TAG CONFIG: $tagname
19353
# If there is no Makefile yet, we rely on a make rule to execute
19354
# `config.status --recheck' to rerun these tests and create the
19355
# libtool script then.
19356
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19357
if test -f "$ltmain_in"; then
19358
test -f Makefile && make "$ltmain"
19364
ac_cpp='$CPP $CPPFLAGS'
19365
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19366
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19367
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19380
# Source file extension for RC test sources.
19383
# Object file extension for compiled RC test sources.
19387
# Code to be used in simple compile tests
19388
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19390
# Code to be used in simple link tests
19391
lt_simple_link_test_code="$lt_simple_compile_test_code"
19393
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19395
# If no C compiler was specified, use CC.
19398
# Allow CC to be a program name with arguments.
19402
# Allow CC to be a program name with arguments.
19407
lt_cv_prog_compiler_c_o_RC=yes
19409
# The else clause should only fire when bootstrapping the
19410
# libtool distribution, otherwise you forgot to ship ltmain.sh
19411
# with your package, and you will get complaints that there are
19412
# no rules to generate ltmain.sh.
19413
if test -f "$ltmain"; then
19414
# See if we are running on zsh, and set the options which allow our commands through
19415
# without removal of \ escapes.
19416
if test -n "${ZSH_VERSION+set}" ; then
19417
setopt NO_GLOB_SUBST
19419
# Now quote all the things that may contain metacharacters while being
19420
# careful not to overquote the AC_SUBSTed values. We take copies of the
19421
# variables and quote the copies for generation of the libtool script.
19422
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19424
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19425
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19426
deplibs_check_method reload_flag reload_cmds need_locks \
19427
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19428
lt_cv_sys_global_symbol_to_c_name_address \
19429
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19430
old_postinstall_cmds old_postuninstall_cmds \
19434
lt_prog_compiler_wl_RC \
19435
lt_prog_compiler_pic_RC \
19436
lt_prog_compiler_static_RC \
19437
lt_prog_compiler_no_builtin_flag_RC \
19438
export_dynamic_flag_spec_RC \
19439
thread_safe_flag_spec_RC \
19440
whole_archive_flag_spec_RC \
19441
enable_shared_with_static_runtimes_RC \
19442
old_archive_cmds_RC \
19443
old_archive_from_new_cmds_RC \
19444
predep_objects_RC \
19445
postdep_objects_RC \
19448
compiler_lib_search_path_RC \
19450
archive_expsym_cmds_RC \
19451
postinstall_cmds_RC \
19452
postuninstall_cmds_RC \
19453
old_archive_from_expsyms_cmds_RC \
19454
allow_undefined_flag_RC \
19455
no_undefined_flag_RC \
19456
export_symbols_cmds_RC \
19457
hardcode_libdir_flag_spec_RC \
19458
hardcode_libdir_flag_spec_ld_RC \
19459
hardcode_libdir_separator_RC \
19460
hardcode_automatic_RC \
19462
module_expsym_cmds_RC \
19463
lt_cv_prog_compiler_c_o_RC \
19464
exclude_expsyms_RC \
19465
include_expsyms_RC; do
19468
old_archive_cmds_RC | \
19469
old_archive_from_new_cmds_RC | \
19470
archive_cmds_RC | \
19471
archive_expsym_cmds_RC | \
19473
module_expsym_cmds_RC | \
19474
old_archive_from_expsyms_cmds_RC | \
19475
export_symbols_cmds_RC | \
19476
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19477
postinstall_cmds | postuninstall_cmds | \
19478
old_postinstall_cmds | old_postuninstall_cmds | \
19479
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19480
# Double-quote double-evaled strings.
19481
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19484
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19490
*'\$0 --fallback-echo"')
19491
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19497
cat <<__EOF__ >> "$cfgfile"
19498
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19500
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19502
# Shell to use when invoking shell scripts.
19505
# Whether or not to build shared libraries.
19506
build_libtool_libs=$enable_shared
19508
# Whether or not to build static libraries.
19509
build_old_libs=$enable_static
19511
# Whether or not to add -lc for building shared libraries.
19512
build_libtool_need_lc=$archive_cmds_need_lc_RC
19514
# Whether or not to disallow shared libs when runtime libs are static
19515
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19517
# Whether or not to optimize for fast installation.
19518
fast_install=$enable_fast_install
19521
host_alias=$host_alias
19524
# An echo program that does not interpret backslashes.
19529
AR_FLAGS=$lt_AR_FLAGS
19534
# A language-specific compiler.
19537
# Is the compiler the GNU C compiler?
19543
# The linker used to build libraries.
19546
# Whether we need hard or soft links.
19549
# A BSD-compatible nm program.
19552
# A symbol stripping program
19555
# Used to examine libraries when file_magic_cmd begins "file"
19556
MAGIC_CMD=$MAGIC_CMD
19558
# Used on cygwin: DLL creation program.
19561
# Used on cygwin: object dumper.
19564
# Used on cygwin: assembler.
19567
# The name of the directory that contains temporary libtool files.
19570
# How to create reloadable object files.
19571
reload_flag=$lt_reload_flag
19572
reload_cmds=$lt_reload_cmds
19574
# How to pass a linker flag through the compiler.
19575
wl=$lt_lt_prog_compiler_wl_RC
19577
# Object file suffix (normally "o").
19578
objext="$ac_objext"
19580
# Old archive suffix (normally "a").
19583
# Shared library suffix (normally ".so").
19584
shrext_cmds='$shrext_cmds'
19586
# Executable file suffix (normally "").
19589
# Additional compiler flags for building library objects.
19590
pic_flag=$lt_lt_prog_compiler_pic_RC
19593
# What is the maximum length of a command?
19594
max_cmd_len=$lt_cv_sys_max_cmd_len
19596
# Does compiler simultaneously support -c and -o options?
19597
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19599
# Must we lock files when doing compilation ?
19600
need_locks=$lt_need_locks
19602
# Do we need the lib prefix for modules?
19603
need_lib_prefix=$need_lib_prefix
19605
# Do we need a version for libraries?
19606
need_version=$need_version
19608
# Whether dlopen is supported.
19609
dlopen_support=$enable_dlopen
19611
# Whether dlopen of programs is supported.
19612
dlopen_self=$enable_dlopen_self
19614
# Whether dlopen of statically linked programs is supported.
19615
dlopen_self_static=$enable_dlopen_self_static
19617
# Compiler flag to prevent dynamic linking.
19618
link_static_flag=$lt_lt_prog_compiler_static_RC
19620
# Compiler flag to turn off builtin functions.
19621
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19623
# Compiler flag to allow reflexive dlopens.
19624
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19626
# Compiler flag to generate shared objects directly from archives.
19627
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19629
# Compiler flag to generate thread-safe objects.
19630
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19632
# Library versioning type.
19633
version_type=$version_type
19635
# Format of library name prefix.
19636
libname_spec=$lt_libname_spec
19638
# List of archive names. First name is the real one, the rest are links.
19639
# The last name is the one that the linker finds with -lNAME.
19640
library_names_spec=$lt_library_names_spec
19642
# The coded name of the library, if different from the real name.
19643
soname_spec=$lt_soname_spec
19645
# Commands used to build and install an old-style archive.
19647
old_archive_cmds=$lt_old_archive_cmds_RC
19648
old_postinstall_cmds=$lt_old_postinstall_cmds
19649
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19651
# Create an old-style archive from a shared archive.
19652
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19654
# Create a temporary old-style archive to link instead of a shared archive.
19655
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19657
# Commands used to build and install a shared archive.
19658
archive_cmds=$lt_archive_cmds_RC
19659
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19660
postinstall_cmds=$lt_postinstall_cmds
19661
postuninstall_cmds=$lt_postuninstall_cmds
19663
# Commands used to build a loadable module (assumed same as above if empty)
19664
module_cmds=$lt_module_cmds_RC
19665
module_expsym_cmds=$lt_module_expsym_cmds_RC
19667
# Commands to strip libraries.
19668
old_striplib=$lt_old_striplib
19669
striplib=$lt_striplib
19671
# Dependencies to place before the objects being linked to create a
19673
predep_objects=$lt_predep_objects_RC
19675
# Dependencies to place after the objects being linked to create a
19677
postdep_objects=$lt_postdep_objects_RC
19679
# Dependencies to place before the objects being linked to create a
19681
predeps=$lt_predeps_RC
19683
# Dependencies to place after the objects being linked to create a
19685
postdeps=$lt_postdeps_RC
19687
# The library search path used internally by the compiler when linking
19688
# a shared library.
19689
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19691
# Method to check whether dependent libraries are shared objects.
19692
deplibs_check_method=$lt_deplibs_check_method
19694
# Command to use when deplibs_check_method == file_magic.
19695
file_magic_cmd=$lt_file_magic_cmd
19697
# Flag that allows shared libraries with undefined symbols to be built.
19698
allow_undefined_flag=$lt_allow_undefined_flag_RC
19700
# Flag that forces no undefined symbols.
19701
no_undefined_flag=$lt_no_undefined_flag_RC
19703
# Commands used to finish a libtool library installation in a directory.
19704
finish_cmds=$lt_finish_cmds
19706
# Same as above, but a single script fragment to be evaled but not shown.
19707
finish_eval=$lt_finish_eval
19709
# Take the output of nm and produce a listing of raw symbols and C names.
19710
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19712
# Transform the output of nm in a proper C declaration
19713
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19715
# Transform the output of nm in a C name address pair
19716
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19718
# This is the shared library runtime path variable.
19719
runpath_var=$runpath_var
19721
# This is the shared library path variable.
19722
shlibpath_var=$shlibpath_var
19724
# Is shlibpath searched before the hard-coded library search path?
19725
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19727
# How to hardcode a shared library path into an executable.
19728
hardcode_action=$hardcode_action_RC
19730
# Whether we should hardcode library paths into libraries.
19731
hardcode_into_libs=$hardcode_into_libs
19733
# Flag to hardcode \$libdir into a binary during linking.
19734
# This must work even if \$libdir does not exist.
19735
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19737
# If ld is used when linking, flag to hardcode \$libdir into
19738
# a binary during linking. This must work even if \$libdir does
19740
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19742
# Whether we need a single -rpath flag with a separated argument.
19743
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19745
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19746
# resulting binary.
19747
hardcode_direct=$hardcode_direct_RC
19749
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19750
# resulting binary.
19751
hardcode_minus_L=$hardcode_minus_L_RC
19753
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19754
# the resulting binary.
19755
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19757
# Set to yes if building a shared library automatically hardcodes DIR into the library
19758
# and all subsequent libraries and executables linked against it.
19759
hardcode_automatic=$hardcode_automatic_RC
19761
# Variables whose values should be saved in libtool wrapper scripts and
19762
# restored at relink time.
19763
variables_saved_for_relink="$variables_saved_for_relink"
19765
# Whether libtool must link a program against all its dependency libraries.
19766
link_all_deplibs=$link_all_deplibs_RC
19768
# Compile-time system search path for libraries
19769
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19771
# Run-time system search path for libraries
19772
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19774
# Fix the shell variable \$srcfile for the compiler.
19775
fix_srcfile_path="$fix_srcfile_path_RC"
19777
# Set to yes if exported symbols are required.
19778
always_export_symbols=$always_export_symbols_RC
19780
# The commands to list exported symbols.
19781
export_symbols_cmds=$lt_export_symbols_cmds_RC
19783
# The commands to extract the exported symbol list from a shared archive.
19784
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19786
# Symbols that should not be listed in the preloaded symbols.
19787
exclude_expsyms=$lt_exclude_expsyms_RC
19789
# Symbols that must always be exported.
19790
include_expsyms=$lt_include_expsyms_RC
19792
# ### END LIBTOOL TAG CONFIG: $tagname
19798
# If there is no Makefile yet, we rely on a make rule to execute
19799
# `config.status --recheck' to rerun these tests and create the
19800
# libtool script then.
19801
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19802
if test -f "$ltmain_in"; then
19803
test -f Makefile && make "$ltmain"
19809
ac_cpp='$CPP $CPPFLAGS'
19810
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19811
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19812
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19819
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19820
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19821
{ (exit 1); exit 1; }; }
19825
# Append the new tag name to the list of available tags.
19826
if test -n "$tagname" ; then
19827
available_tags="$available_tags $tagname"
19833
# Now substitute the updated list of available tags.
19834
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19835
mv "${ofile}T" "$ofile"
19839
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19840
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19841
{ (exit 1); exit 1; }; }
7689
19847
# This can be used to rebuild libtool when needed
7690
19848
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"