7079
7099
lt_cv_sys_max_cmd_len=8192;
7102
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7103
# This has been around since 386BSD, at least. Likely further.
7104
if test -x /sbin/sysctl; then
7105
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7106
elif test -x /usr/sbin/sysctl; then
7107
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7109
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7111
# And add a safety zone
7112
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7113
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7116
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7117
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7118
# nice to cause kernel panics so lets avoid the loop below.
7119
# First set a reasonable default.
7120
lt_cv_sys_max_cmd_len=16384
7122
if test -x /sbin/sysconfig; then
7123
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7124
*1*) lt_cv_sys_max_cmd_len=-1 ;;
7083
7129
# If test is not a shell built-in, we'll probably end up computing a
7084
7130
# maximum length that is only half of the actual maximum length, but
7085
7131
# we can't tell.
7086
while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7132
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7133
while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7087
7134
= "XX$teststring") >/dev/null 2>&1 &&
7088
7135
new_result=`expr "X$teststring" : ".*" 2>&1` &&
7089
7136
lt_cv_sys_max_cmd_len=$new_result &&
7920
8004
# with a dollar sign (not a hyphen), so the echo should work correctly.
7921
8005
# The option is referenced via a variable to avoid confusing sed.
7922
8006
lt_compile=`echo "$ac_compile" | $SED \
7923
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8007
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7924
8008
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7925
8009
-e 's:$: $lt_compiler_flag:'`
7926
(eval echo "\"\$as_me:7926: $lt_compile\"" >&5)
8010
(eval echo "\"\$as_me:8010: $lt_compile\"" >&5)
7927
8011
(eval "$lt_compile" 2>conftest.err)
7929
8013
cat conftest.err >&5
7930
echo "$as_me:7930: \$? = $ac_status" >&5
8014
echo "$as_me:8014: \$? = $ac_status" >&5
7931
8015
if (exit $ac_status) && test -s "$ac_outfile"; then
7932
8016
# The compiler can only warn and ignore the option if not recognized
7933
# So say no if there are warnings
7934
if test ! -s conftest.err; then
8017
# So say no if there are warnings other than the usual output.
8018
$echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8019
$SED '/^$/d' conftest.err >conftest.er2
8020
if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7935
8021
lt_cv_prog_compiler_rtti_exceptions=yes
8153
8266
# with a dollar sign (not a hyphen), so the echo should work correctly.
8154
8267
# The option is referenced via a variable to avoid confusing sed.
8155
8268
lt_compile=`echo "$ac_compile" | $SED \
8156
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8269
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8157
8270
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8158
8271
-e 's:$: $lt_compiler_flag:'`
8159
(eval echo "\"\$as_me:8159: $lt_compile\"" >&5)
8272
(eval echo "\"\$as_me:8272: $lt_compile\"" >&5)
8160
8273
(eval "$lt_compile" 2>conftest.err)
8162
8275
cat conftest.err >&5
8163
echo "$as_me:8163: \$? = $ac_status" >&5
8276
echo "$as_me:8276: \$? = $ac_status" >&5
8164
8277
if (exit $ac_status) && test -s "$ac_outfile"; then
8165
8278
# The compiler can only warn and ignore the option if not recognized
8166
# So say no if there are warnings
8167
if test ! -s conftest.err; then
8279
# So say no if there are warnings other than the usual output.
8280
$echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8281
$SED '/^$/d' conftest.err >conftest.er2
8282
if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8168
8283
lt_prog_compiler_pic_works=yes
8213
8328
# Note that $ac_compile itself does not contain backslashes and begins
8214
8329
# with a dollar sign (not a hyphen), so the echo should work correctly.
8215
8330
lt_compile=`echo "$ac_compile" | $SED \
8216
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8331
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8217
8332
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8218
8333
-e 's:$: $lt_compiler_flag:'`
8219
(eval echo "\"\$as_me:8219: $lt_compile\"" >&5)
8334
(eval echo "\"\$as_me:8334: $lt_compile\"" >&5)
8220
8335
(eval "$lt_compile" 2>out/conftest.err)
8222
8337
cat out/conftest.err >&5
8223
echo "$as_me:8223: \$? = $ac_status" >&5
8338
echo "$as_me:8338: \$? = $ac_status" >&5
8224
8339
if (exit $ac_status) && test -s out/conftest2.$ac_objext
8226
8341
# The compiler can only warn and ignore the option if not recognized
8227
8342
# So say no if there are warnings
8228
if test ! -s out/conftest.err; then
8343
$echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8344
$SED '/^$/d' out/conftest.err >out/conftest.er2
8345
if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8229
8346
lt_cv_prog_compiler_c_o=yes
8234
8351
# SGI C++ compiler will create directory out/ii_files/ for
8235
8352
# template instantiation
8325
8452
# If archive_cmds runs LD, not CC, wlarc should be empty
8455
# Set some defaults for GNU ld with shared library support. These
8456
# are reset later if shared libraries are not supported. Putting them
8457
# here allows them to be overridden if necessary.
8458
runpath_var=LD_RUN_PATH
8459
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8460
export_dynamic_flag_spec='${wl}--export-dynamic'
8461
# ancient GNU ld didn't support --whole-archive et. al.
8462
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8463
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8465
whole_archive_flag_spec=
8467
supports_anon_versioning=no
8468
case `$LD -v 2>/dev/null` in
8469
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8470
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8471
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8472
*\ 2.11.*) ;; # other 2.11 versions
8473
*) supports_anon_versioning=yes ;;
8328
8476
# See if GNU ld supports shared libraries.
8329
8477
case $host_os in
8330
8478
aix3* | aix4* | aix5*)
8545
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8547
case $cc_basename,$host_cpu in
8548
pgcc*) # Portland Group C compiler
8549
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8550
tmp_addflag=' $pic_flag'
8552
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8553
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8554
tmp_addflag=' $pic_flag -Mnomain' ;;
8555
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8556
tmp_addflag=' -i_dynamic' ;;
8557
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8558
tmp_addflag=' -i_dynamic -nofor_main' ;;
8559
ifc* | ifort*) # Intel Fortran compiler
8560
tmp_addflag=' -nofor_main' ;;
8562
archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8564
if test $supports_anon_versioning = yes; then
8565
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8566
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8567
$echo "local: *; };" >> $output_objdir/$libname.ver~
8568
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8396
8576
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
8397
8577
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8398
8578
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8431
8611
hardcode_shlibpath_var=no
8435
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8436
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8437
archive_cmds="$tmp_archive_cmds"
8438
supports_anon_versioning=no
8439
case `$LD -v 2>/dev/null` in
8440
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8441
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8442
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8443
*\ 2.11.*) ;; # other 2.11 versions
8444
*) supports_anon_versioning=yes ;;
8446
if test $supports_anon_versioning = yes; then
8447
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8448
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8449
$echo "local: *; };" >> $output_objdir/$libname.ver~
8450
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8452
archive_expsym_cmds="$tmp_archive_cmds"
8461
8615
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8462
8616
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8747
8899
darwin* | rhapsody*)
8748
if test "$GXX" = yes ; then
8901
rhapsody* | darwin1.[012])
8902
allow_undefined_flag='${wl}-undefined ${wl}suppress'
8905
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8906
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8908
case ${MACOSX_DEPLOYMENT_TARGET} in
8910
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8913
allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8749
8919
archive_cmds_need_lc=no
8751
rhapsody* | darwin1.[012])
8752
allow_undefined_flag='-undefined suppress'
8755
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8756
allow_undefined_flag='-flat_namespace -undefined suppress'
8758
case ${MACOSX_DEPLOYMENT_TARGET} in
8760
allow_undefined_flag='-flat_namespace -undefined suppress'
8763
allow_undefined_flag='-undefined dynamic_lookup'
8769
lt_int_apple_cc_single_mod=no
8770
output_verbose_link_cmd='echo'
8771
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
8772
lt_int_apple_cc_single_mod=yes
8774
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
8775
archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8777
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'
8779
module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8780
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8781
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
8782
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}'
8784
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}'
8786
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}'
8787
8920
hardcode_direct=no
8788
8921
hardcode_automatic=yes
8789
8922
hardcode_shlibpath_var=unsupported
8790
whole_archive_flag_spec='-all_load $convenience'
8923
whole_archive_flag_spec=''
8791
8924
link_all_deplibs=yes
8925
if test "$GCC" = yes ; then
8926
output_verbose_link_cmd='echo'
8927
archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8928
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8929
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8930
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8931
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}'
8933
case $cc_basename in
8935
output_verbose_link_cmd='echo'
8936
archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8937
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8938
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8939
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8940
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}'
10631
10810
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10632
10811
test "$enable_shared" = yes && enable_static=no
10635
darwin* | rhapsody*)
10636
if test "$GCC" = yes; then
10637
archive_cmds_need_lc=no
10639
rhapsody* | darwin1.[012])
10640
allow_undefined_flag='-undefined suppress'
10643
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10644
allow_undefined_flag='-flat_namespace -undefined suppress'
10646
case ${MACOSX_DEPLOYMENT_TARGET} in
10648
allow_undefined_flag='-flat_namespace -undefined suppress'
10651
allow_undefined_flag='-undefined dynamic_lookup'
10657
output_verbose_link_cmd='echo'
10658
archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
10659
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10660
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10661
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10662
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}'
10664
hardcode_automatic=yes
10665
hardcode_shlibpath_var=unsupported
10666
whole_archive_flag_spec='-all_load $convenience'
10667
link_all_deplibs=yes
10673
10815
echo "$as_me:$LINENO: result: $enable_shared" >&5
11709
11886
ld_shlibs_CXX=no
11713
darwin* | rhapsody*)
11714
if test "$GXX" = yes; then
11715
archive_cmds_need_lc_CXX=no
11717
rhapsody* | darwin1.[012])
11718
allow_undefined_flag_CXX='-undefined suppress'
11721
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11722
allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
11724
case ${MACOSX_DEPLOYMENT_TARGET} in
11726
allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
11729
allow_undefined_flag_CXX='-undefined dynamic_lookup'
11889
darwin* | rhapsody*)
11891
rhapsody* | darwin1.[012])
11892
allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11895
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11896
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11898
case ${MACOSX_DEPLOYMENT_TARGET} in
11900
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11903
allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11735
lt_int_apple_cc_single_mod=no
11736
output_verbose_link_cmd='echo'
11737
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
11738
lt_int_apple_cc_single_mod=yes
11740
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11741
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11743
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'
11745
module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11909
archive_cmds_need_lc_CXX=no
11910
hardcode_direct_CXX=no
11911
hardcode_automatic_CXX=yes
11912
hardcode_shlibpath_var_CXX=unsupported
11913
whole_archive_flag_spec_CXX=''
11914
link_all_deplibs_CXX=yes
11747
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11748
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11749
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}'
11751
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}'
11753
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}'
11754
hardcode_direct_CXX=no
11755
hardcode_automatic_CXX=yes
11756
hardcode_shlibpath_var_CXX=unsupported
11757
whole_archive_flag_spec_CXX='-all_load $convenience'
11758
link_all_deplibs_CXX=yes
11916
if test "$GXX" = yes ; then
11917
lt_int_apple_cc_single_mod=no
11918
output_verbose_link_cmd='echo'
11919
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11920
lt_int_apple_cc_single_mod=yes
11922
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11923
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11925
archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11927
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11928
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11929
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11930
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}'
11932
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11934
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}'
11936
case $cc_basename in
11938
output_verbose_link_cmd='echo'
11939
archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11940
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11941
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11942
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11943
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}'
11765
11953
case $cc_basename in
11767
11955
# FIXME: insert proper C++ library support
11768
11956
ld_shlibs_CXX=no
11771
11959
# Green Hills C++ Compiler
11772
11960
# FIXME: insert proper C++ library support
11773
11961
ld_shlibs_CXX=no
11962
12150
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11963
12151
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11967
12155
with_gnu_ld=yes
12156
# version 8.0 and above of icpc choke on multiply defined symbols
12157
# if we add $predep_objects and $postdep_objects, however 7.1 and
12158
# earlier do not add the objects themselves.
12159
case `$CC -V 2>&1` in
12161
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12162
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'
12164
*) # Version 8.0 or newer
12167
ia64*) tmp_idyn=' -i_dynamic';;
12169
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12170
archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11968
12173
archive_cmds_need_lc_CXX=no
11969
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11970
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'
11971
12174
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11972
12175
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11973
12176
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12179
# Portland Group C++ compiler
12180
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12181
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12183
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12184
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12185
whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11977
12189
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11978
12190
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'
12186
12414
case $cc_basename in
12188
12416
# Sun C++ 4.2, 5.x and Centerline C++
12417
archive_cmds_need_lc_CXX=yes
12189
12418
no_undefined_flag_CXX=' -zdefs'
12190
archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12419
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12191
12420
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12192
$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'
12421
$CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12194
12423
hardcode_libdir_flag_spec_CXX='-R$libdir'
12195
12424
hardcode_shlibpath_var_CXX=no
12196
12425
case $host_os in
12197
solaris2.0-5 | solaris2.0-5.*) ;;
12426
solaris2.[0-5] | solaris2.[0-5].*) ;;
12199
12428
# The C++ compiler is used as linker so we must use $wl
12200
12429
# flag to pass the commands to the underlying system
12430
# linker. We must also pass each convience library through
12431
# to the system linker between allextract/defaultextract.
12432
# The C++ compiler will combine linker options so we
12433
# cannot just pass the convience library names through
12202
12435
# Supported since Solaris 2.6 (maybe 2.5.1?)
12203
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12436
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
12206
12439
link_all_deplibs_CXX=yes
12208
# Commands to make compiler produce verbose output that lists
12209
# what "hidden" libraries, object files and flags are used when
12210
# linking a shared library.
12212
# There doesn't appear to be a way to prevent this compiler from
12213
# explicitly linking system object files so we need to strip them
12214
# from the output so that they don't get included in the library
12216
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'
12441
output_verbose_link_cmd='echo'
12218
12443
# Archives containing C++ object files must be created using
12219
12444
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12676
12931
# with a dollar sign (not a hyphen), so the echo should work correctly.
12677
12932
# The option is referenced via a variable to avoid confusing sed.
12678
12933
lt_compile=`echo "$ac_compile" | $SED \
12679
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12934
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12680
12935
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12681
12936
-e 's:$: $lt_compiler_flag:'`
12682
(eval echo "\"\$as_me:12682: $lt_compile\"" >&5)
12937
(eval echo "\"\$as_me:12937: $lt_compile\"" >&5)
12683
12938
(eval "$lt_compile" 2>conftest.err)
12685
12940
cat conftest.err >&5
12686
echo "$as_me:12686: \$? = $ac_status" >&5
12941
echo "$as_me:12941: \$? = $ac_status" >&5
12687
12942
if (exit $ac_status) && test -s "$ac_outfile"; then
12688
12943
# The compiler can only warn and ignore the option if not recognized
12689
# So say no if there are warnings
12690
if test ! -s conftest.err; then
12944
# So say no if there are warnings other than the usual output.
12945
$echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
12946
$SED '/^$/d' conftest.err >conftest.er2
12947
if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
12691
12948
lt_prog_compiler_pic_works_CXX=yes
12736
12993
# Note that $ac_compile itself does not contain backslashes and begins
12737
12994
# with a dollar sign (not a hyphen), so the echo should work correctly.
12738
12995
lt_compile=`echo "$ac_compile" | $SED \
12739
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12996
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12740
12997
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12741
12998
-e 's:$: $lt_compiler_flag:'`
12742
(eval echo "\"\$as_me:12742: $lt_compile\"" >&5)
12999
(eval echo "\"\$as_me:12999: $lt_compile\"" >&5)
12743
13000
(eval "$lt_compile" 2>out/conftest.err)
12745
13002
cat out/conftest.err >&5
12746
echo "$as_me:12746: \$? = $ac_status" >&5
13003
echo "$as_me:13003: \$? = $ac_status" >&5
12747
13004
if (exit $ac_status) && test -s out/conftest2.$ac_objext
12749
13006
# The compiler can only warn and ignore the option if not recognized
12750
13007
# So say no if there are warnings
12751
if test ! -s out/conftest.err; then
13008
$echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
13009
$SED '/^$/d' out/conftest.err >out/conftest.er2
13010
if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12752
13011
lt_cv_prog_compiler_c_o_CXX=yes
12756
13015
$rm conftest*
12757
13016
# SGI C++ compiler will create directory out/ii_files/ for
12758
13017
# template instantiation
15063
# save warnings/boilerplate of simple test code
15064
ac_outfile=conftest.$ac_objext
15065
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15066
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15067
_lt_compiler_boilerplate=`cat conftest.err`
15070
ac_outfile=conftest.$ac_objext
15071
printf "$lt_simple_link_test_code" >conftest.$ac_ext
15072
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15073
_lt_linker_boilerplate=`cat conftest.err`
14784
15077
# Allow CC to be a program name with arguments.
14785
15078
lt_save_CC="$CC"
14786
15079
CC=${F77-"f77"}
14788
15081
compiler_F77=$CC
14789
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15082
for cc_temp in $compiler""; do
15084
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15085
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15090
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14791
15093
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14792
15094
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
15030
15361
# with a dollar sign (not a hyphen), so the echo should work correctly.
15031
15362
# The option is referenced via a variable to avoid confusing sed.
15032
15363
lt_compile=`echo "$ac_compile" | $SED \
15033
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15364
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15034
15365
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15035
15366
-e 's:$: $lt_compiler_flag:'`
15036
(eval echo "\"\$as_me:15036: $lt_compile\"" >&5)
15367
(eval echo "\"\$as_me:15367: $lt_compile\"" >&5)
15037
15368
(eval "$lt_compile" 2>conftest.err)
15039
15370
cat conftest.err >&5
15040
echo "$as_me:15040: \$? = $ac_status" >&5
15371
echo "$as_me:15371: \$? = $ac_status" >&5
15041
15372
if (exit $ac_status) && test -s "$ac_outfile"; then
15042
15373
# The compiler can only warn and ignore the option if not recognized
15043
# So say no if there are warnings
15044
if test ! -s conftest.err; then
15374
# So say no if there are warnings other than the usual output.
15375
$echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
15376
$SED '/^$/d' conftest.err >conftest.er2
15377
if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
15045
15378
lt_prog_compiler_pic_works_F77=yes
15090
15423
# Note that $ac_compile itself does not contain backslashes and begins
15091
15424
# with a dollar sign (not a hyphen), so the echo should work correctly.
15092
15425
lt_compile=`echo "$ac_compile" | $SED \
15093
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15426
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15094
15427
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15095
15428
-e 's:$: $lt_compiler_flag:'`
15096
(eval echo "\"\$as_me:15096: $lt_compile\"" >&5)
15429
(eval echo "\"\$as_me:15429: $lt_compile\"" >&5)
15097
15430
(eval "$lt_compile" 2>out/conftest.err)
15099
15432
cat out/conftest.err >&5
15100
echo "$as_me:15100: \$? = $ac_status" >&5
15433
echo "$as_me:15433: \$? = $ac_status" >&5
15101
15434
if (exit $ac_status) && test -s out/conftest2.$ac_objext
15103
15436
# The compiler can only warn and ignore the option if not recognized
15104
15437
# So say no if there are warnings
15105
if test ! -s out/conftest.err; then
15438
$echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
15439
$SED '/^$/d' out/conftest.err >out/conftest.er2
15440
if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15106
15441
lt_cv_prog_compiler_c_o_F77=yes
15110
15445
$rm conftest*
15111
15446
# SGI C++ compiler will create directory out/ii_files/ for
15112
15447
# template instantiation
15202
15547
# If archive_cmds runs LD, not CC, wlarc should be empty
15203
15548
wlarc='${wl}'
15550
# Set some defaults for GNU ld with shared library support. These
15551
# are reset later if shared libraries are not supported. Putting them
15552
# here allows them to be overridden if necessary.
15553
runpath_var=LD_RUN_PATH
15554
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15555
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15556
# ancient GNU ld didn't support --whole-archive et. al.
15557
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15558
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15560
whole_archive_flag_spec_F77=
15562
supports_anon_versioning=no
15563
case `$LD -v 2>/dev/null` in
15564
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15565
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15566
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15567
*\ 2.11.*) ;; # other 2.11 versions
15568
*) supports_anon_versioning=yes ;;
15205
15571
# See if GNU ld supports shared libraries.
15206
15572
case $host_os in
15207
15573
aix3* | aix4* | aix5*)
15267
15633
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15640
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15642
case $cc_basename,$host_cpu in
15643
pgcc*) # Portland Group C compiler
15644
whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15645
tmp_addflag=' $pic_flag'
15647
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15648
whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15649
tmp_addflag=' $pic_flag -Mnomain' ;;
15650
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15651
tmp_addflag=' -i_dynamic' ;;
15652
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15653
tmp_addflag=' -i_dynamic -nofor_main' ;;
15654
ifc* | ifort*) # Intel Fortran compiler
15655
tmp_addflag=' -nofor_main' ;;
15657
archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15659
if test $supports_anon_versioning = yes; then
15660
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15661
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15662
$echo "local: *; };" >> $output_objdir/$libname.ver~
15663
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15665
link_all_deplibs_F77=no
15308
15706
hardcode_shlibpath_var_F77=no
15312
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15313
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15314
archive_cmds_F77="$tmp_archive_cmds"
15315
supports_anon_versioning=no
15316
case `$LD -v 2>/dev/null` in
15317
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15318
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15319
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15320
*\ 2.11.*) ;; # other 2.11 versions
15321
*) supports_anon_versioning=yes ;;
15323
if test $supports_anon_versioning = yes; then
15324
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15325
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15326
$echo "local: *; };" >> $output_objdir/$libname.ver~
15327
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15329
archive_expsym_cmds_F77="$tmp_archive_cmds"
15331
link_all_deplibs_F77=no
15338
15710
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15339
15711
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15597
15967
old_archive_From_new_cmds_F77='true'
15598
15968
# FIXME: Should let the user specify the lib program.
15599
15969
old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15600
fix_srcfile_path='`cygpath -w "$srcfile"`'
15970
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15601
15971
enable_shared_with_static_runtimes_F77=yes
15604
15974
darwin* | rhapsody*)
15605
if test "$GXX" = yes ; then
15976
rhapsody* | darwin1.[012])
15977
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15980
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15981
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15983
case ${MACOSX_DEPLOYMENT_TARGET} in
15985
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15988
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15606
15994
archive_cmds_need_lc_F77=no
15608
rhapsody* | darwin1.[012])
15609
allow_undefined_flag_F77='-undefined suppress'
15612
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15613
allow_undefined_flag_F77='-flat_namespace -undefined suppress'
15615
case ${MACOSX_DEPLOYMENT_TARGET} in
15617
allow_undefined_flag_F77='-flat_namespace -undefined suppress'
15620
allow_undefined_flag_F77='-undefined dynamic_lookup'
15626
lt_int_apple_cc_single_mod=no
15627
output_verbose_link_cmd='echo'
15628
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15629
lt_int_apple_cc_single_mod=yes
15631
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15632
archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15634
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'
15636
module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15637
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15638
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15639
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}'
15641
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}'
15643
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}'
15644
15995
hardcode_direct_F77=no
15645
15996
hardcode_automatic_F77=yes
15646
15997
hardcode_shlibpath_var_F77=unsupported
15647
whole_archive_flag_spec_F77='-all_load $convenience'
15998
whole_archive_flag_spec_F77=''
15648
15999
link_all_deplibs_F77=yes
16000
if test "$GCC" = yes ; then
16001
output_verbose_link_cmd='echo'
16002
archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16003
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16004
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16005
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16006
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}'
16008
case $cc_basename in
16010
output_verbose_link_cmd='echo'
16011
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16012
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16013
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16014
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16015
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}'
17510
# save warnings/boilerplate of simple test code
17511
ac_outfile=conftest.$ac_objext
17512
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17513
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
17514
_lt_compiler_boilerplate=`cat conftest.err`
17517
ac_outfile=conftest.$ac_objext
17518
printf "$lt_simple_link_test_code" >conftest.$ac_ext
17519
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
17520
_lt_linker_boilerplate=`cat conftest.err`
17107
17524
# Allow CC to be a program name with arguments.
17108
17525
lt_save_CC="$CC"
17109
17526
CC=${GCJ-"gcj"}
17111
17528
compiler_GCJ=$CC
17529
for cc_temp in $compiler""; do
17531
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17532
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17537
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17113
17540
# GCJ did not exist at the time GCC didn't implicitly link libc in.
17114
17541
archive_cmds_need_lc_GCJ=no
17543
old_archive_cmds_GCJ=$old_archive_cmds
17117
17546
lt_prog_compiler_no_builtin_flag_GCJ=
17135
17564
# with a dollar sign (not a hyphen), so the echo should work correctly.
17136
17565
# The option is referenced via a variable to avoid confusing sed.
17137
17566
lt_compile=`echo "$ac_compile" | $SED \
17138
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17567
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17139
17568
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17140
17569
-e 's:$: $lt_compiler_flag:'`
17141
(eval echo "\"\$as_me:17141: $lt_compile\"" >&5)
17570
(eval echo "\"\$as_me:17570: $lt_compile\"" >&5)
17142
17571
(eval "$lt_compile" 2>conftest.err)
17144
17573
cat conftest.err >&5
17145
echo "$as_me:17145: \$? = $ac_status" >&5
17574
echo "$as_me:17574: \$? = $ac_status" >&5
17146
17575
if (exit $ac_status) && test -s "$ac_outfile"; then
17147
17576
# The compiler can only warn and ignore the option if not recognized
17148
# So say no if there are warnings
17149
if test ! -s conftest.err; then
17577
# So say no if there are warnings other than the usual output.
17578
$echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
17579
$SED '/^$/d' conftest.err >conftest.er2
17580
if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
17150
17581
lt_cv_prog_compiler_rtti_exceptions=yes
17368
17826
# with a dollar sign (not a hyphen), so the echo should work correctly.
17369
17827
# The option is referenced via a variable to avoid confusing sed.
17370
17828
lt_compile=`echo "$ac_compile" | $SED \
17371
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17829
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17372
17830
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17373
17831
-e 's:$: $lt_compiler_flag:'`
17374
(eval echo "\"\$as_me:17374: $lt_compile\"" >&5)
17832
(eval echo "\"\$as_me:17832: $lt_compile\"" >&5)
17375
17833
(eval "$lt_compile" 2>conftest.err)
17377
17835
cat conftest.err >&5
17378
echo "$as_me:17378: \$? = $ac_status" >&5
17836
echo "$as_me:17836: \$? = $ac_status" >&5
17379
17837
if (exit $ac_status) && test -s "$ac_outfile"; then
17380
17838
# The compiler can only warn and ignore the option if not recognized
17381
# So say no if there are warnings
17382
if test ! -s conftest.err; then
17839
# So say no if there are warnings other than the usual output.
17840
$echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
17841
$SED '/^$/d' conftest.err >conftest.er2
17842
if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
17383
17843
lt_prog_compiler_pic_works_GCJ=yes
17428
17888
# Note that $ac_compile itself does not contain backslashes and begins
17429
17889
# with a dollar sign (not a hyphen), so the echo should work correctly.
17430
17890
lt_compile=`echo "$ac_compile" | $SED \
17431
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17891
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17432
17892
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17433
17893
-e 's:$: $lt_compiler_flag:'`
17434
(eval echo "\"\$as_me:17434: $lt_compile\"" >&5)
17894
(eval echo "\"\$as_me:17894: $lt_compile\"" >&5)
17435
17895
(eval "$lt_compile" 2>out/conftest.err)
17437
17897
cat out/conftest.err >&5
17438
echo "$as_me:17438: \$? = $ac_status" >&5
17898
echo "$as_me:17898: \$? = $ac_status" >&5
17439
17899
if (exit $ac_status) && test -s out/conftest2.$ac_objext
17441
17901
# The compiler can only warn and ignore the option if not recognized
17442
17902
# So say no if there are warnings
17443
if test ! -s out/conftest.err; then
17903
$echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
17904
$SED '/^$/d' out/conftest.err >out/conftest.er2
17905
if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17444
17906
lt_cv_prog_compiler_c_o_GCJ=yes
17448
17910
$rm conftest*
17449
17911
# SGI C++ compiler will create directory out/ii_files/ for
17450
17912
# template instantiation
17540
18012
# If archive_cmds runs LD, not CC, wlarc should be empty
17541
18013
wlarc='${wl}'
18015
# Set some defaults for GNU ld with shared library support. These
18016
# are reset later if shared libraries are not supported. Putting them
18017
# here allows them to be overridden if necessary.
18018
runpath_var=LD_RUN_PATH
18019
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18020
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18021
# ancient GNU ld didn't support --whole-archive et. al.
18022
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18023
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18025
whole_archive_flag_spec_GCJ=
18027
supports_anon_versioning=no
18028
case `$LD -v 2>/dev/null` in
18029
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18030
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18031
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18032
*\ 2.11.*) ;; # other 2.11 versions
18033
*) supports_anon_versioning=yes ;;
17543
18036
# See if GNU ld supports shared libraries.
17544
18037
case $host_os in
17545
18038
aix3* | aix4* | aix5*)
17605
18098
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
18105
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18107
case $cc_basename,$host_cpu in
18108
pgcc*) # Portland Group C compiler
18109
whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18110
tmp_addflag=' $pic_flag'
18112
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
18113
whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18114
tmp_addflag=' $pic_flag -Mnomain' ;;
18115
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18116
tmp_addflag=' -i_dynamic' ;;
18117
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18118
tmp_addflag=' -i_dynamic -nofor_main' ;;
18119
ifc* | ifort*) # Intel Fortran compiler
18120
tmp_addflag=' -nofor_main' ;;
18122
archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18124
if test $supports_anon_versioning = yes; then
18125
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18126
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18127
$echo "local: *; };" >> $output_objdir/$libname.ver~
18128
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18130
link_all_deplibs_GCJ=no
17646
18171
hardcode_shlibpath_var_GCJ=no
17650
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17651
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17652
archive_cmds_GCJ="$tmp_archive_cmds"
17653
supports_anon_versioning=no
17654
case `$LD -v 2>/dev/null` in
17655
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17656
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17657
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17658
*\ 2.11.*) ;; # other 2.11 versions
17659
*) supports_anon_versioning=yes ;;
17661
if test $supports_anon_versioning = yes; then
17662
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17663
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17664
$echo "local: *; };" >> $output_objdir/$libname.ver~
17665
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17667
archive_expsym_cmds_GCJ="$tmp_archive_cmds"
17669
link_all_deplibs_GCJ=no
17676
18175
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17677
18176
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17955
18452
old_archive_From_new_cmds_GCJ='true'
17956
18453
# FIXME: Should let the user specify the lib program.
17957
18454
old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17958
fix_srcfile_path='`cygpath -w "$srcfile"`'
18455
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17959
18456
enable_shared_with_static_runtimes_GCJ=yes
17962
18459
darwin* | rhapsody*)
17963
if test "$GXX" = yes ; then
18461
rhapsody* | darwin1.[012])
18462
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18465
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18466
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18468
case ${MACOSX_DEPLOYMENT_TARGET} in
18470
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18473
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17964
18479
archive_cmds_need_lc_GCJ=no
17966
rhapsody* | darwin1.[012])
17967
allow_undefined_flag_GCJ='-undefined suppress'
17970
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17971
allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
17973
case ${MACOSX_DEPLOYMENT_TARGET} in
17975
allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
17978
allow_undefined_flag_GCJ='-undefined dynamic_lookup'
17984
lt_int_apple_cc_single_mod=no
17985
output_verbose_link_cmd='echo'
17986
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
17987
lt_int_apple_cc_single_mod=yes
17989
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17990
archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17992
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'
17994
module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17995
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17996
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17997
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}'
17999
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}'
18001
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}'
18002
18480
hardcode_direct_GCJ=no
18003
18481
hardcode_automatic_GCJ=yes
18004
18482
hardcode_shlibpath_var_GCJ=unsupported
18005
whole_archive_flag_spec_GCJ='-all_load $convenience'
18483
whole_archive_flag_spec_GCJ=''
18006
18484
link_all_deplibs_GCJ=yes
18485
if test "$GCC" = yes ; then
18486
output_verbose_link_cmd='echo'
18487
archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18488
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18489
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18490
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18491
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}'
18493
case $cc_basename in
18495
output_verbose_link_cmd='echo'
18496
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18497
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18498
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18499
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18500
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}'
24327
24925
CPPFLAGS="$CPPFLAGS $GSSAPI_INCS"
24329
if test -z "$GSSAPI_LIB_DIR"; then
24330
if test -f "$GSSAPI_ROOT/bin/krb5-config"; then
24331
gss_ldflags=`$GSSAPI_ROOT/bin/krb5-config --libs gssapi`
24332
LDFLAGS="$LDFLAGS $gss_ldflags"
24333
elif test "$GSSAPI_ROOT" != "yes"; then
24334
LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff -lgssapi"
24336
LDFLAGS="$LDFLAGS -lgssapi"
24927
if test "${ac_cv_header_gss_h+set}" = set; then
24928
echo "$as_me:$LINENO: checking for gss.h" >&5
24929
echo $ECHO_N "checking for gss.h... $ECHO_C" >&6
24930
if test "${ac_cv_header_gss_h+set}" = set; then
24931
echo $ECHO_N "(cached) $ECHO_C" >&6
24933
echo "$as_me:$LINENO: result: $ac_cv_header_gss_h" >&5
24934
echo "${ECHO_T}$ac_cv_header_gss_h" >&6
24936
# Is the header compilable?
24937
echo "$as_me:$LINENO: checking gss.h usability" >&5
24938
echo $ECHO_N "checking gss.h usability... $ECHO_C" >&6
24939
cat >conftest.$ac_ext <<_ACEOF
24942
cat confdefs.h >>conftest.$ac_ext
24943
cat >>conftest.$ac_ext <<_ACEOF
24944
/* end confdefs.h. */
24945
$ac_includes_default
24948
rm -f conftest.$ac_objext
24949
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24950
(eval $ac_compile) 2>conftest.er1
24952
grep -v '^ *+' conftest.er1 >conftest.err
24954
cat conftest.err >&5
24955
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24956
(exit $ac_status); } &&
24957
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24958
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24959
(eval $ac_try) 2>&5
24961
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24962
(exit $ac_status); }; } &&
24963
{ ac_try='test -s conftest.$ac_objext'
24964
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24965
(eval $ac_try) 2>&5
24967
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24968
(exit $ac_status); }; }; then
24969
ac_header_compiler=yes
24971
echo "$as_me: failed program was:" >&5
24972
sed 's/^/| /' conftest.$ac_ext >&5
24974
ac_header_compiler=no
24976
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24977
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24978
echo "${ECHO_T}$ac_header_compiler" >&6
24980
# Is the header present?
24981
echo "$as_me:$LINENO: checking gss.h presence" >&5
24982
echo $ECHO_N "checking gss.h presence... $ECHO_C" >&6
24983
cat >conftest.$ac_ext <<_ACEOF
24986
cat confdefs.h >>conftest.$ac_ext
24987
cat >>conftest.$ac_ext <<_ACEOF
24988
/* end confdefs.h. */
24991
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24992
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24994
grep -v '^ *+' conftest.er1 >conftest.err
24996
cat conftest.err >&5
24997
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24998
(exit $ac_status); } >/dev/null; then
24999
if test -s conftest.err; then
25000
ac_cpp_err=$ac_c_preproc_warn_flag
25001
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24339
LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
24342
echo "$as_me:$LINENO: result: yes" >&5
24343
echo "${ECHO_T}yes" >&6
25008
if test -z "$ac_cpp_err"; then
25009
ac_header_preproc=yes
25011
echo "$as_me: failed program was:" >&5
25012
sed 's/^/| /' conftest.$ac_ext >&5
25014
ac_header_preproc=no
25016
rm -f conftest.err conftest.$ac_ext
25017
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25018
echo "${ECHO_T}$ac_header_preproc" >&6
25020
# So? What about this header?
25021
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25023
{ echo "$as_me:$LINENO: WARNING: gss.h: accepted by the compiler, rejected by the preprocessor!" >&5
25024
echo "$as_me: WARNING: gss.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25025
{ echo "$as_me:$LINENO: WARNING: gss.h: proceeding with the compiler's result" >&5
25026
echo "$as_me: WARNING: gss.h: proceeding with the compiler's result" >&2;}
25027
ac_header_preproc=yes
25030
{ echo "$as_me:$LINENO: WARNING: gss.h: present but cannot be compiled" >&5
25031
echo "$as_me: WARNING: gss.h: present but cannot be compiled" >&2;}
25032
{ echo "$as_me:$LINENO: WARNING: gss.h: check for missing prerequisite headers?" >&5
25033
echo "$as_me: WARNING: gss.h: check for missing prerequisite headers?" >&2;}
25034
{ echo "$as_me:$LINENO: WARNING: gss.h: see the Autoconf documentation" >&5
25035
echo "$as_me: WARNING: gss.h: see the Autoconf documentation" >&2;}
25036
{ echo "$as_me:$LINENO: WARNING: gss.h: section \"Present But Cannot Be Compiled\"" >&5
25037
echo "$as_me: WARNING: gss.h: section \"Present But Cannot Be Compiled\"" >&2;}
25038
{ echo "$as_me:$LINENO: WARNING: gss.h: proceeding with the preprocessor's result" >&5
25039
echo "$as_me: WARNING: gss.h: proceeding with the preprocessor's result" >&2;}
25040
{ echo "$as_me:$LINENO: WARNING: gss.h: in the future, the compiler will take precedence" >&5
25041
echo "$as_me: WARNING: gss.h: in the future, the compiler will take precedence" >&2;}
25044
## ------------------------------------------------------------------------ ##
25045
## Report this to a suitable curl mailing list => http://curl.haxx.se/mail/ ##
25046
## ------------------------------------------------------------------------ ##
25049
sed "s/^/$as_me: WARNING: /" >&2
25052
echo "$as_me:$LINENO: checking for gss.h" >&5
25053
echo $ECHO_N "checking for gss.h... $ECHO_C" >&6
25054
if test "${ac_cv_header_gss_h+set}" = set; then
25055
echo $ECHO_N "(cached) $ECHO_C" >&6
25057
ac_cv_header_gss_h=$ac_header_preproc
25059
echo "$as_me:$LINENO: result: $ac_cv_header_gss_h" >&5
25060
echo "${ECHO_T}$ac_cv_header_gss_h" >&6
25063
if test $ac_cv_header_gss_h = yes; then
24345
25066
cat >>confdefs.h <<\_ACEOF
24346
#define HAVE_GSSAPI 1
25067
#define HAVE_GSSGNU 1
24350
curl_gss_msg="enabled"
24352
if test "${ac_cv_header_gssapi_h+set}" = set; then
25074
if test "${ac_cv_header_gssapi_h+set}" = set; then
24353
25075
echo "$as_me:$LINENO: checking for gssapi.h" >&5
24354
25076
echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6
24355
25077
if test "${ac_cv_header_gssapi_h+set}" = set; then
24634
25356
if test $ac_cv_header_gssapi_gssapi_h = yes; then
24636
25359
cat >>confdefs.h <<\_ACEOF
24637
25360
#define HAVE_GSSMIT 1
25367
{ echo "$as_me:$LINENO: WARNING: disabling GSSAPI since no header files was found" >&5
25368
echo "$as_me: WARNING: disabling GSSAPI since no header files was found" >&2;}
24652
25385
echo "$as_me:$LINENO: result: no" >&5
24653
25386
echo "${ECHO_T}no" >&6
25388
if test x"$want_gss" = xyes; then
25390
cat >>confdefs.h <<\_ACEOF
25391
#define HAVE_GSSAPI 1
25395
curl_gss_msg="enabled (MIT/Heimdal)"
25397
if test -n "$gnu_gss"; then
25398
curl_gss_msg="enabled (GNU GSS)"
25399
LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR -lgss"
25400
elif test -z "$GSSAPI_LIB_DIR"; then
25401
if test -f "$GSSAPI_ROOT/bin/krb5-config"; then
25402
gss_ldflags=`$GSSAPI_ROOT/bin/krb5-config --libs gssapi`
25403
LDFLAGS="$LDFLAGS $gss_ldflags"
25404
elif test "$GSSAPI_ROOT" != "yes"; then
25405
LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff -lgssapi"
25407
LDFLAGS="$LDFLAGS -lgssapi"
25410
LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR -lgssapi"
25413
CPPFLAGS="$save_CPPFLAGS"
27099
echo "$as_me:$LINENO: checking if libraries can be versioned" >&5
27100
echo $ECHO_N "checking if libraries can be versioned... $ECHO_C" >&6
27101
GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
27102
if test -z "$GLD"; then
27103
versioned_symbols_flavour=
27104
echo "$as_me:$LINENO: result: no" >&5
27105
echo "${ECHO_T}no" >&6
27106
{ echo "$as_me:$LINENO: WARNING: ***
27107
*** You may want to rerun configure using --with-gnu-ld to enable versioned symbols.
27109
echo "$as_me: WARNING: ***
27110
*** You may want to rerun configure using --with-gnu-ld to enable versioned symbols.
27113
echo "$as_me:$LINENO: result: yes" >&5
27114
echo "${ECHO_T}yes" >&6
27116
echo "$as_me:$LINENO: checking whether versioned symbols are wanted" >&5
27117
echo $ECHO_N "checking whether versioned symbols are wanted... $ECHO_C" >&6
27118
versioned_symbols_flavour=
27120
# Check whether --enable-versioned-symbols or --disable-versioned-symbols was given.
27121
if test "${enable_versioned_symbols+set}" = set; then
27122
enableval="$enable_versioned_symbols"
27123
case "$enableval" in
27124
yes) echo "$as_me:$LINENO: result: yes" >&5
27125
echo "${ECHO_T}yes" >&6
27126
if test "$OPENSSL_ENABLED" = "1"; then
27127
versioned_symbols_flavour="OPENSSL_"
27129
if test "$OPT_GNUTLS" != "no"; then
27130
versioned_symbols_flavour="GNUTLS_"
27135
*) echo "$as_me:$LINENO: result: no" >&5
27136
echo "${ECHO_T}no" >&6
27142
echo "$as_me:$LINENO: result: no" >&5
27143
echo "${ECHO_T}no" >&6
27149
VERSIONED_FLAVOUR="$versioned_symbols_flavour"
27153
if test "$versioned_symbols_flavour" != ""; then
27154
VERSIONED_SYMBOLS_TRUE=
27155
VERSIONED_SYMBOLS_FALSE='#'
27157
VERSIONED_SYMBOLS_TRUE='#'
27158
VERSIONED_SYMBOLS_FALSE=
28037
28874
cat >>conftest.$ac_ext <<_ACEOF
28038
28875
/* end confdefs.h. */
28040
#define _THREAD_SAFE
28041
28878
#include <string.h>
28043
28880
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28044
28881
$EGREP "strerror_r" >/dev/null 2>&1; then
28047
CPPFLAGS="-D_THREAD_SAFE $CPPFLAGS"
28883
CPPFLAGS="-D_REENTRANT $CPPFLAGS"
28048
28884
echo "$as_me:$LINENO: result: yes" >&5
28049
28885
echo "${ECHO_T}yes" >&6
28051
28887
echo "$as_me:$LINENO: result: no" >&5
28052
28888
echo "${ECHO_T}no" >&6
28063
if test "x$strerror_r" = "xyes"; then
28065
echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
28066
echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
28067
if test "${ac_cv_have_decl_strerror_r+set}" = set; then
28068
echo $ECHO_N "(cached) $ECHO_C" >&6
28070
cat >conftest.$ac_ext <<_ACEOF
28073
cat confdefs.h >>conftest.$ac_ext
28074
cat >>conftest.$ac_ext <<_ACEOF
28075
/* end confdefs.h. */
28076
#include <stdlib.h>
28078
#include <string.h>
28086
char *p = (char *) strerror_r;
28093
rm -f conftest.$ac_objext
28094
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28095
(eval $ac_compile) 2>conftest.er1
28097
grep -v '^ *+' conftest.er1 >conftest.err
28099
cat conftest.err >&5
28100
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28101
(exit $ac_status); } &&
28102
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28103
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28104
(eval $ac_try) 2>&5
28106
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28107
(exit $ac_status); }; } &&
28108
{ ac_try='test -s conftest.$ac_objext'
28109
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28110
(eval $ac_try) 2>&5
28112
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28113
(exit $ac_status); }; }; then
28114
ac_cv_have_decl_strerror_r=yes
28116
echo "$as_me: failed program was:" >&5
28117
sed 's/^/| /' conftest.$ac_ext >&5
28119
ac_cv_have_decl_strerror_r=no
28121
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28123
echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
28124
echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
28125
if test $ac_cv_have_decl_strerror_r = yes; then
28129
28890
cat >>confdefs.h <<\_ACEOF
28130
28891
#define HAVE_NO_STRERROR_R_DECL 1
28262
for ac_func in gmtime_r
28264
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28265
echo "$as_me:$LINENO: checking for $ac_func" >&5
28266
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28267
if eval "test \"\${$as_ac_var+set}\" = set"; then
28268
echo $ECHO_N "(cached) $ECHO_C" >&6
28270
cat >conftest.$ac_ext <<_ACEOF
28273
cat confdefs.h >>conftest.$ac_ext
28274
cat >>conftest.$ac_ext <<_ACEOF
28275
/* end confdefs.h. */
28276
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28277
For example, HP-UX 11i <limits.h> declares gettimeofday. */
28278
#define $ac_func innocuous_$ac_func
28280
/* System header to define __stub macros and hopefully few prototypes,
28281
which can conflict with char $ac_func (); below.
28282
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28283
<limits.h> exists even on freestanding compilers. */
28286
# include <limits.h>
28288
# include <assert.h>
28293
/* Override any gcc2 internal prototype to avoid an error. */
28298
/* We use char because int might match the return type of a gcc2
28299
builtin and then its argument prototype would still apply. */
28301
/* The GNU C library defines this for functions which it implements
28302
to always fail with ENOSYS. Some functions are actually named
28303
something starting with __ and the normal name is an alias. */
28304
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28307
char (*f) () = $ac_func;
28316
return f != $ac_func;
28321
rm -f conftest.$ac_objext conftest$ac_exeext
28322
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28323
(eval $ac_link) 2>conftest.er1
28325
grep -v '^ *+' conftest.er1 >conftest.err
28327
cat conftest.err >&5
28328
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28329
(exit $ac_status); } &&
28330
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28331
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28332
(eval $ac_try) 2>&5
28334
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28335
(exit $ac_status); }; } &&
28336
{ ac_try='test -s conftest$ac_exeext'
28337
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28338
(eval $ac_try) 2>&5
28340
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28341
(exit $ac_status); }; }; then
28342
eval "$as_ac_var=yes"
28344
echo "$as_me: failed program was:" >&5
28345
sed 's/^/| /' conftest.$ac_ext >&5
28347
eval "$as_ac_var=no"
28349
rm -f conftest.err conftest.$ac_objext \
28350
conftest$ac_exeext conftest.$ac_ext
28352
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28353
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28354
if test `eval echo '${'$as_ac_var'}'` = yes; then
28355
cat >>confdefs.h <<_ACEOF
28356
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29052
checkfor_gmtime_r="yes"
28680
29376
cat >>conftest.$ac_ext <<_ACEOF
28681
29377
/* end confdefs.h. */
28683
#define _THREAD_SAFE
28684
29380
#include <string.h>
28686
29382
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28687
29383
$EGREP "strerror_r" >/dev/null 2>&1; then
28690
CPPFLAGS="-D_THREAD_SAFE $CPPFLAGS"
29385
CPPFLAGS="-D_REENTRANT $CPPFLAGS"
28691
29386
echo "$as_me:$LINENO: result: yes" >&5
28692
29387
echo "${ECHO_T}yes" >&6
28694
29389
echo "$as_me:$LINENO: result: no" >&5
28695
29390
echo "${ECHO_T}no" >&6
28706
if test "x$strerror_r" = "xyes"; then
28708
echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
28709
echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
28710
if test "${ac_cv_have_decl_strerror_r+set}" = set; then
28711
echo $ECHO_N "(cached) $ECHO_C" >&6
28713
cat >conftest.$ac_ext <<_ACEOF
28716
cat confdefs.h >>conftest.$ac_ext
28717
cat >>conftest.$ac_ext <<_ACEOF
28718
/* end confdefs.h. */
28719
#include <stdlib.h>
28721
#include <string.h>
28729
char *p = (char *) strerror_r;
28736
rm -f conftest.$ac_objext
28737
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28738
(eval $ac_compile) 2>conftest.er1
28740
grep -v '^ *+' conftest.er1 >conftest.err
28742
cat conftest.err >&5
28743
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28744
(exit $ac_status); } &&
28745
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28746
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28747
(eval $ac_try) 2>&5
28749
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28750
(exit $ac_status); }; } &&
28751
{ ac_try='test -s conftest.$ac_objext'
28752
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28753
(eval $ac_try) 2>&5
28755
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28756
(exit $ac_status); }; }; then
28757
ac_cv_have_decl_strerror_r=yes
28759
echo "$as_me: failed program was:" >&5
28760
sed 's/^/| /' conftest.$ac_ext >&5
28762
ac_cv_have_decl_strerror_r=no
28764
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28766
echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
28767
echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
28768
if test $ac_cv_have_decl_strerror_r = yes; then
28772
29392
cat >>confdefs.h <<\_ACEOF
28773
29393
#define HAVE_NO_STRERROR_R_DECL 1
29554
checkfor_gmtime_r="yes"
29557
if test x$cross_compiling != xyes; then
29559
if test x$checkfor_gmtime_r = xyes; then
29562
echo "$as_me:$LINENO: checking if gmtime_r exists and works" >&5
29563
echo $ECHO_N "checking if gmtime_r exists and works... $ECHO_C" >&6
29564
if test "$cross_compiling" = yes; then
29567
cat >conftest.$ac_ext <<_ACEOF
29572
time_t local = 1170352587;
29575
putenv("TZ=CST6CDT");
29577
gmt = gmtime_r(&local, &keeper);
29581
return 1; /* failure */
29585
rm -f conftest$ac_exeext
29586
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29587
(eval $ac_link) 2>&5
29589
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29590
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29591
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29592
(eval $ac_try) 2>&5
29594
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29595
(exit $ac_status); }; }; then
29596
echo "$as_me:$LINENO: result: yes" >&5
29597
echo "${ECHO_T}yes" >&6
29599
cat >>confdefs.h <<\_ACEOF
29600
#define HAVE_GMTIME_R 1
29605
echo "$as_me: program exited with status $ac_status" >&5
29606
echo "$as_me: failed program was:" >&5
29607
sed 's/^/| /' conftest.$ac_ext >&5
29609
( exit $ac_status )
29610
echo "$as_me:$LINENO: result: no" >&5
29611
echo "${ECHO_T}no" >&6
29614
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28905
29619
for ac_func in gmtime_r
33239
echo "$as_me:$LINENO: checking whether inet_pton is declared" >&5
33240
echo $ECHO_N "checking whether inet_pton is declared... $ECHO_C" >&6
33241
if test "${ac_cv_have_decl_inet_pton+set}" = set; then
33242
echo $ECHO_N "(cached) $ECHO_C" >&6
33244
cat >conftest.$ac_ext <<_ACEOF
33247
cat confdefs.h >>conftest.$ac_ext
33248
cat >>conftest.$ac_ext <<_ACEOF
33249
/* end confdefs.h. */
33251
#ifdef HAVE_ARPA_INET_H
33252
#include <arpa/inet.h>
33261
char *p = (char *) inet_pton;
33268
rm -f conftest.$ac_objext
33269
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33270
(eval $ac_compile) 2>conftest.er1
33272
grep -v '^ *+' conftest.er1 >conftest.err
33274
cat conftest.err >&5
33275
echo "$as_me:$LINENO: \$? = $ac_status" >&5
33276
(exit $ac_status); } &&
33277
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33278
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33279
(eval $ac_try) 2>&5
33281
echo "$as_me:$LINENO: \$? = $ac_status" >&5
33282
(exit $ac_status); }; } &&
33283
{ ac_try='test -s conftest.$ac_objext'
33284
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33285
(eval $ac_try) 2>&5
33287
echo "$as_me:$LINENO: \$? = $ac_status" >&5
33288
(exit $ac_status); }; }; then
33289
ac_cv_have_decl_inet_pton=yes
33291
echo "$as_me: failed program was:" >&5
33292
sed 's/^/| /' conftest.$ac_ext >&5
33294
ac_cv_have_decl_inet_pton=no
33296
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33298
echo "$as_me:$LINENO: result: $ac_cv_have_decl_inet_pton" >&5
33299
echo "${ECHO_T}$ac_cv_have_decl_inet_pton" >&6
33300
if test $ac_cv_have_decl_inet_pton = yes; then
33304
cat >>confdefs.h <<\_ACEOF
33305
#define HAVE_NO_INET_PTON_PROTO 1
32505
33311
echo "$as_me:$LINENO: checking if we are Mac OS X (to disable poll)" >&5
32506
33312
echo $ECHO_N "checking if we are Mac OS X (to disable poll)... $ECHO_C" >&6
32507
33313
disable_poll=no
33908
34722
s,@CURL_CA_BUNDLE@,$CURL_CA_BUNDLE,;t t
33909
34723
s,@CABUNDLE_TRUE@,$CABUNDLE_TRUE,;t t
33910
34724
s,@CABUNDLE_FALSE@,$CABUNDLE_FALSE,;t t
34725
s,@VERSIONED_FLAVOUR@,$VERSIONED_FLAVOUR,;t t
34726
s,@VERSIONED_SYMBOLS_TRUE@,$VERSIONED_SYMBOLS_TRUE,;t t
34727
s,@VERSIONED_SYMBOLS_FALSE@,$VERSIONED_SYMBOLS_FALSE,;t t
33911
34728
s,@HAVE_LIBZ@,$HAVE_LIBZ,;t t
33912
34729
s,@HAVE_LIBZ_TRUE@,$HAVE_LIBZ_TRUE,;t t
33913
34730
s,@HAVE_LIBZ_FALSE@,$HAVE_LIBZ_FALSE,;t t