5161
# Check whether --enable-libtool-lock was given.
5162
if test "${enable_libtool_lock+set}" = set; then
5163
enableval=$enable_libtool_lock;
5166
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5168
# Some flags need to be propagated to the compiler or linker for good
5172
# Find out which ABI we are using.
5173
echo 'int i;' > conftest.$ac_ext
5174
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5175
(eval $ac_compile) 2>&5
5177
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5178
(exit $ac_status); }; then
5179
case `/usr/bin/file conftest.$ac_objext` in
5191
# Find out which ABI we are using.
5192
echo '#line 5192 "configure"' > conftest.$ac_ext
5193
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5194
(eval $ac_compile) 2>&5
5196
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197
(exit $ac_status); }; then
5198
if test "$lt_cv_prog_gnu_ld" = yes; then
5199
case `/usr/bin/file conftest.$ac_objext` in
5201
LD="${LD-ld} -melf32bsmip"
5204
LD="${LD-ld} -melf32bmipn32"
5207
LD="${LD-ld} -melf64bmip"
5211
case `/usr/bin/file conftest.$ac_objext` in
5227
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5228
s390*-*linux*|sparc*-*linux*)
5229
# Find out which ABI we are using.
5230
echo 'int i;' > conftest.$ac_ext
5231
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5232
(eval $ac_compile) 2>&5
5234
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235
(exit $ac_status); }; then
5236
case `/usr/bin/file conftest.o` in
5239
x86_64-*kfreebsd*-gnu)
5240
LD="${LD-ld} -m elf_i386_fbsd"
5243
LD="${LD-ld} -m elf_i386"
5245
ppc64-*linux*|powerpc64-*linux*)
5246
LD="${LD-ld} -m elf32ppclinux"
5249
LD="${LD-ld} -m elf_s390"
5252
LD="${LD-ld} -m elf32_sparc"
5258
x86_64-*kfreebsd*-gnu)
5259
LD="${LD-ld} -m elf_x86_64_fbsd"
5262
LD="${LD-ld} -m elf_x86_64"
5264
ppc*-*linux*|powerpc*-*linux*)
5265
LD="${LD-ld} -m elf64ppc"
5268
LD="${LD-ld} -m elf64_s390"
5271
LD="${LD-ld} -m elf64_sparc"
5281
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
5282
SAVE_CFLAGS="$CFLAGS"
5283
CFLAGS="$CFLAGS -belf"
5284
{ echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5285
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5286
if test "${lt_cv_cc_needs_belf+set}" = set; then
5287
echo $ECHO_N "(cached) $ECHO_C" >&6
5290
ac_cpp='$CPP $CPPFLAGS'
5291
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5292
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5293
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5295
cat >conftest.$ac_ext <<_ACEOF
5298
cat confdefs.h >>conftest.$ac_ext
5299
cat >>conftest.$ac_ext <<_ACEOF
5300
/* end confdefs.h. */
5310
rm -f conftest.$ac_objext conftest$ac_exeext
5311
if { (ac_try="$ac_link"
5313
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5314
*) ac_try_echo=$ac_try;;
5316
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5317
(eval "$ac_link") 2>conftest.er1
5319
grep -v '^ *+' conftest.er1 >conftest.err
5321
cat conftest.err >&5
5322
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323
(exit $ac_status); } && {
5324
test -z "$ac_c_werror_flag" ||
5325
test ! -s conftest.err
5326
} && test -s conftest$ac_exeext &&
5327
$as_test_x conftest$ac_exeext; then
5328
lt_cv_cc_needs_belf=yes
5330
echo "$as_me: failed program was:" >&5
5331
sed 's/^/| /' conftest.$ac_ext >&5
5333
lt_cv_cc_needs_belf=no
5336
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5337
conftest$ac_exeext conftest.$ac_ext
5339
ac_cpp='$CPP $CPPFLAGS'
5340
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5341
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5342
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5345
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5346
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5347
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5348
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5349
CFLAGS="$SAVE_CFLAGS"
5353
# Find out which ABI we are using.
5354
echo 'int i;' > conftest.$ac_ext
5355
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5356
(eval $ac_compile) 2>&5
5358
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359
(exit $ac_status); }; then
5360
case `/usr/bin/file conftest.o` in
5362
case $lt_cv_prog_gnu_ld in
5363
yes*) LD="${LD-ld} -m elf64_sparc" ;;
5365
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5376
*-*-cygwin* | *-*-mingw* | *-*-pw32*)
5377
if test -n "$ac_tool_prefix"; then
5378
# Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5379
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5380
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5381
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5382
if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5383
echo $ECHO_N "(cached) $ECHO_C" >&6
5385
if test -n "$DLLTOOL"; then
5386
ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5388
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5392
test -z "$as_dir" && as_dir=.
5393
for ac_exec_ext in '' $ac_executable_extensions; do
5394
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5395
ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5396
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5405
DLLTOOL=$ac_cv_prog_DLLTOOL
5406
if test -n "$DLLTOOL"; then
5407
{ echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5408
echo "${ECHO_T}$DLLTOOL" >&6; }
5410
{ echo "$as_me:$LINENO: result: no" >&5
5411
echo "${ECHO_T}no" >&6; }
5416
if test -z "$ac_cv_prog_DLLTOOL"; then
5417
ac_ct_DLLTOOL=$DLLTOOL
5418
# Extract the first word of "dlltool", so it can be a program name with args.
5419
set dummy dlltool; ac_word=$2
5420
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5421
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5422
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5423
echo $ECHO_N "(cached) $ECHO_C" >&6
5425
if test -n "$ac_ct_DLLTOOL"; then
5426
ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5428
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5432
test -z "$as_dir" && as_dir=.
5433
for ac_exec_ext in '' $ac_executable_extensions; do
5434
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5435
ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5436
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5445
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5446
if test -n "$ac_ct_DLLTOOL"; then
5447
{ echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5448
echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
5450
{ echo "$as_me:$LINENO: result: no" >&5
5451
echo "${ECHO_T}no" >&6; }
5454
if test "x$ac_ct_DLLTOOL" = x; then
5457
case $cross_compiling:$ac_tool_warned in
5459
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5460
whose name does not start with the host triplet. If you think this
5461
configuration is useful to you, please write to autoconf@gnu.org." >&5
5462
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5463
whose name does not start with the host triplet. If you think this
5464
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5465
ac_tool_warned=yes ;;
5467
DLLTOOL=$ac_ct_DLLTOOL
5470
DLLTOOL="$ac_cv_prog_DLLTOOL"
5473
if test -n "$ac_tool_prefix"; then
5474
# Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5475
set dummy ${ac_tool_prefix}as; ac_word=$2
5476
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5477
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5478
if test "${ac_cv_prog_AS+set}" = set; then
5479
echo $ECHO_N "(cached) $ECHO_C" >&6
5481
if test -n "$AS"; then
5482
ac_cv_prog_AS="$AS" # Let the user override the test.
5484
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5488
test -z "$as_dir" && as_dir=.
5489
for ac_exec_ext in '' $ac_executable_extensions; do
5490
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5491
ac_cv_prog_AS="${ac_tool_prefix}as"
5492
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5502
if test -n "$AS"; then
5503
{ echo "$as_me:$LINENO: result: $AS" >&5
5504
echo "${ECHO_T}$AS" >&6; }
5506
{ echo "$as_me:$LINENO: result: no" >&5
5507
echo "${ECHO_T}no" >&6; }
5512
if test -z "$ac_cv_prog_AS"; then
5514
# Extract the first word of "as", so it can be a program name with args.
5515
set dummy as; ac_word=$2
5516
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5517
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5518
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5519
echo $ECHO_N "(cached) $ECHO_C" >&6
5521
if test -n "$ac_ct_AS"; then
5522
ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5524
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5528
test -z "$as_dir" && as_dir=.
5529
for ac_exec_ext in '' $ac_executable_extensions; do
5530
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5531
ac_cv_prog_ac_ct_AS="as"
5532
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5541
ac_ct_AS=$ac_cv_prog_ac_ct_AS
5542
if test -n "$ac_ct_AS"; then
5543
{ echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5544
echo "${ECHO_T}$ac_ct_AS" >&6; }
5546
{ echo "$as_me:$LINENO: result: no" >&5
5547
echo "${ECHO_T}no" >&6; }
5550
if test "x$ac_ct_AS" = x; then
5553
case $cross_compiling:$ac_tool_warned in
5555
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5556
whose name does not start with the host triplet. If you think this
5557
configuration is useful to you, please write to autoconf@gnu.org." >&5
5558
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5559
whose name does not start with the host triplet. If you think this
5560
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5561
ac_tool_warned=yes ;;
5569
if test -n "$ac_tool_prefix"; then
5570
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5571
set dummy ${ac_tool_prefix}objdump; ac_word=$2
5572
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5573
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5574
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5575
echo $ECHO_N "(cached) $ECHO_C" >&6
5577
if test -n "$OBJDUMP"; then
5578
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5580
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5584
test -z "$as_dir" && as_dir=.
5585
for ac_exec_ext in '' $ac_executable_extensions; do
5586
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5587
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5588
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5597
OBJDUMP=$ac_cv_prog_OBJDUMP
5598
if test -n "$OBJDUMP"; then
5599
{ echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5600
echo "${ECHO_T}$OBJDUMP" >&6; }
5602
{ echo "$as_me:$LINENO: result: no" >&5
5603
echo "${ECHO_T}no" >&6; }
5608
if test -z "$ac_cv_prog_OBJDUMP"; then
5609
ac_ct_OBJDUMP=$OBJDUMP
5610
# Extract the first word of "objdump", so it can be a program name with args.
5611
set dummy objdump; ac_word=$2
5612
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5613
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5614
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5615
echo $ECHO_N "(cached) $ECHO_C" >&6
5617
if test -n "$ac_ct_OBJDUMP"; then
5618
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5620
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5624
test -z "$as_dir" && as_dir=.
5625
for ac_exec_ext in '' $ac_executable_extensions; do
5626
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5627
ac_cv_prog_ac_ct_OBJDUMP="objdump"
5628
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5637
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5638
if test -n "$ac_ct_OBJDUMP"; then
5639
{ echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5640
echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
5642
{ echo "$as_me:$LINENO: result: no" >&5
5643
echo "${ECHO_T}no" >&6; }
5646
if test "x$ac_ct_OBJDUMP" = x; then
5649
case $cross_compiling:$ac_tool_warned in
5651
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5652
whose name does not start with the host triplet. If you think this
5653
configuration is useful to you, please write to autoconf@gnu.org." >&5
5654
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5655
whose name does not start with the host triplet. If you think this
5656
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5657
ac_tool_warned=yes ;;
5659
OBJDUMP=$ac_ct_OBJDUMP
5662
OBJDUMP="$ac_cv_prog_OBJDUMP"
5669
need_locks="$enable_libtool_lock"
5673
ac_cpp='$CPP $CPPFLAGS'
5674
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5675
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5676
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5677
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5678
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5679
# On Suns, sometimes $CPP names a directory.
5680
if test -n "$CPP" && test -d "$CPP"; then
5683
if test -z "$CPP"; then
5684
if test "${ac_cv_prog_CPP+set}" = set; then
5685
echo $ECHO_N "(cached) $ECHO_C" >&6
5687
# Double quotes because CPP needs to be expanded
5688
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5691
for ac_c_preproc_warn_flag in '' yes
5693
# Use a header file that comes with gcc, so configuring glibc
5694
# with a fresh cross-compiler works.
5695
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5696
# <limits.h> exists even on freestanding compilers.
5697
# On the NeXT, cc -E runs the code through the compiler's parser,
5698
# not just through cpp. "Syntax error" is here to catch this case.
5699
cat >conftest.$ac_ext <<_ACEOF
5702
cat confdefs.h >>conftest.$ac_ext
5703
cat >>conftest.$ac_ext <<_ACEOF
5704
/* end confdefs.h. */
5706
# include <limits.h>
5708
# include <assert.h>
5712
if { (ac_try="$ac_cpp conftest.$ac_ext"
5714
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5715
*) ac_try_echo=$ac_try;;
5717
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5718
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5720
grep -v '^ *+' conftest.er1 >conftest.err
5722
cat conftest.err >&5
5723
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5724
(exit $ac_status); } >/dev/null && {
5725
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5726
test ! -s conftest.err
5730
echo "$as_me: failed program was:" >&5
5731
sed 's/^/| /' conftest.$ac_ext >&5
5733
# Broken: fails on valid input.
5737
rm -f conftest.err conftest.$ac_ext
5739
# OK, works on sane cases. Now check whether nonexistent headers
5740
# can be detected and how.
5741
cat >conftest.$ac_ext <<_ACEOF
5744
cat confdefs.h >>conftest.$ac_ext
5745
cat >>conftest.$ac_ext <<_ACEOF
5746
/* end confdefs.h. */
5747
#include <ac_nonexistent.h>
5749
if { (ac_try="$ac_cpp conftest.$ac_ext"
5751
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5752
*) ac_try_echo=$ac_try;;
5754
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5755
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5757
grep -v '^ *+' conftest.er1 >conftest.err
5759
cat conftest.err >&5
5760
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761
(exit $ac_status); } >/dev/null && {
5762
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5763
test ! -s conftest.err
5765
# Broken: success on invalid input.
5768
echo "$as_me: failed program was:" >&5
5769
sed 's/^/| /' conftest.$ac_ext >&5
5771
# Passes both tests.
5776
rm -f conftest.err conftest.$ac_ext
5779
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5780
rm -f conftest.err conftest.$ac_ext
5781
if $ac_preproc_ok; then
5793
{ echo "$as_me:$LINENO: result: $CPP" >&5
5794
echo "${ECHO_T}$CPP" >&6; }
5796
for ac_c_preproc_warn_flag in '' yes
5798
# Use a header file that comes with gcc, so configuring glibc
5799
# with a fresh cross-compiler works.
5800
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5801
# <limits.h> exists even on freestanding compilers.
5802
# On the NeXT, cc -E runs the code through the compiler's parser,
5803
# not just through cpp. "Syntax error" is here to catch this case.
5804
cat >conftest.$ac_ext <<_ACEOF
5807
cat confdefs.h >>conftest.$ac_ext
5808
cat >>conftest.$ac_ext <<_ACEOF
5809
/* end confdefs.h. */
5811
# include <limits.h>
5813
# include <assert.h>
5817
if { (ac_try="$ac_cpp conftest.$ac_ext"
5819
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5820
*) ac_try_echo=$ac_try;;
5822
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5823
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5825
grep -v '^ *+' conftest.er1 >conftest.err
5827
cat conftest.err >&5
5828
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829
(exit $ac_status); } >/dev/null && {
5830
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5831
test ! -s conftest.err
5835
echo "$as_me: failed program was:" >&5
5836
sed 's/^/| /' conftest.$ac_ext >&5
5838
# Broken: fails on valid input.
5842
rm -f conftest.err conftest.$ac_ext
5844
# OK, works on sane cases. Now check whether nonexistent headers
5845
# can be detected and how.
5846
cat >conftest.$ac_ext <<_ACEOF
5849
cat confdefs.h >>conftest.$ac_ext
5850
cat >>conftest.$ac_ext <<_ACEOF
5851
/* end confdefs.h. */
5852
#include <ac_nonexistent.h>
5854
if { (ac_try="$ac_cpp conftest.$ac_ext"
5856
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5857
*) ac_try_echo=$ac_try;;
5859
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5860
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5862
grep -v '^ *+' conftest.er1 >conftest.err
5864
cat conftest.err >&5
5865
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866
(exit $ac_status); } >/dev/null && {
5867
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5868
test ! -s conftest.err
5870
# Broken: success on invalid input.
5873
echo "$as_me: failed program was:" >&5
5874
sed 's/^/| /' conftest.$ac_ext >&5
5876
# Passes both tests.
5881
rm -f conftest.err conftest.$ac_ext
5884
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5885
rm -f conftest.err conftest.$ac_ext
5886
if $ac_preproc_ok; then
5889
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5890
See \`config.log' for more details." >&5
5891
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5892
See \`config.log' for more details." >&2;}
5893
{ (exit 1); exit 1; }; }
5897
ac_cpp='$CPP $CPPFLAGS'
5898
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5899
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5900
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5903
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5904
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5905
if test "${ac_cv_header_stdc+set}" = set; then
5906
echo $ECHO_N "(cached) $ECHO_C" >&6
5908
cat >conftest.$ac_ext <<_ACEOF
5911
cat confdefs.h >>conftest.$ac_ext
5912
cat >>conftest.$ac_ext <<_ACEOF
5913
/* end confdefs.h. */
5927
rm -f conftest.$ac_objext
5928
if { (ac_try="$ac_compile"
5930
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5931
*) ac_try_echo=$ac_try;;
5933
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5934
(eval "$ac_compile") 2>conftest.er1
5936
grep -v '^ *+' conftest.er1 >conftest.err
5938
cat conftest.err >&5
5939
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940
(exit $ac_status); } && {
5941
test -z "$ac_c_werror_flag" ||
5942
test ! -s conftest.err
5943
} && test -s conftest.$ac_objext; then
5944
ac_cv_header_stdc=yes
5946
echo "$as_me: failed program was:" >&5
5947
sed 's/^/| /' conftest.$ac_ext >&5
5949
ac_cv_header_stdc=no
5952
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5954
if test $ac_cv_header_stdc = yes; then
5955
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5956
cat >conftest.$ac_ext <<_ACEOF
5959
cat confdefs.h >>conftest.$ac_ext
5960
cat >>conftest.$ac_ext <<_ACEOF
5961
/* end confdefs.h. */
5965
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5966
$EGREP "memchr" >/dev/null 2>&1; then
5969
ac_cv_header_stdc=no
5975
if test $ac_cv_header_stdc = yes; then
5976
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5977
cat >conftest.$ac_ext <<_ACEOF
5980
cat confdefs.h >>conftest.$ac_ext
5981
cat >>conftest.$ac_ext <<_ACEOF
5982
/* end confdefs.h. */
5986
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5987
$EGREP "free" >/dev/null 2>&1; then
5990
ac_cv_header_stdc=no
5996
if test $ac_cv_header_stdc = yes; then
5997
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5998
if test "$cross_compiling" = yes; then
6001
cat >conftest.$ac_ext <<_ACEOF
6004
cat confdefs.h >>conftest.$ac_ext
6005
cat >>conftest.$ac_ext <<_ACEOF
6006
/* end confdefs.h. */
6009
#if ((' ' & 0x0FF) == 0x020)
6010
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6011
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6013
# define ISLOWER(c) \
6014
(('a' <= (c) && (c) <= 'i') \
6015
|| ('j' <= (c) && (c) <= 'r') \
6016
|| ('s' <= (c) && (c) <= 'z'))
6017
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6020
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6025
for (i = 0; i < 256; i++)
6026
if (XOR (islower (i), ISLOWER (i))
6027
|| toupper (i) != TOUPPER (i))
6032
rm -f conftest$ac_exeext
6033
if { (ac_try="$ac_link"
6035
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6036
*) ac_try_echo=$ac_try;;
6038
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6039
(eval "$ac_link") 2>&5
6041
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6043
{ (case "(($ac_try" in
6044
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6045
*) ac_try_echo=$ac_try;;
6047
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6048
(eval "$ac_try") 2>&5
6050
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051
(exit $ac_status); }; }; then
6054
echo "$as_me: program exited with status $ac_status" >&5
6055
echo "$as_me: failed program was:" >&5
6056
sed 's/^/| /' conftest.$ac_ext >&5
6059
ac_cv_header_stdc=no
6061
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6067
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6068
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6069
if test $ac_cv_header_stdc = yes; then
6071
cat >>confdefs.h <<\_ACEOF
6072
#define STDC_HEADERS 1
6077
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6087
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6088
inttypes.h stdint.h unistd.h
6090
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6091
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6092
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6093
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6094
echo $ECHO_N "(cached) $ECHO_C" >&6
6096
cat >conftest.$ac_ext <<_ACEOF
6099
cat confdefs.h >>conftest.$ac_ext
6100
cat >>conftest.$ac_ext <<_ACEOF
6101
/* end confdefs.h. */
6102
$ac_includes_default
6104
#include <$ac_header>
6106
rm -f conftest.$ac_objext
6107
if { (ac_try="$ac_compile"
6109
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6110
*) ac_try_echo=$ac_try;;
6112
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6113
(eval "$ac_compile") 2>conftest.er1
6115
grep -v '^ *+' conftest.er1 >conftest.err
6117
cat conftest.err >&5
6118
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119
(exit $ac_status); } && {
6120
test -z "$ac_c_werror_flag" ||
6121
test ! -s conftest.err
6122
} && test -s conftest.$ac_objext; then
6123
eval "$as_ac_Header=yes"
6125
echo "$as_me: failed program was:" >&5
6126
sed 's/^/| /' conftest.$ac_ext >&5
6128
eval "$as_ac_Header=no"
6131
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6133
ac_res=`eval echo '${'$as_ac_Header'}'`
6134
{ echo "$as_me:$LINENO: result: $ac_res" >&5
6135
echo "${ECHO_T}$ac_res" >&6; }
6136
if test `eval echo '${'$as_ac_Header'}'` = yes; then
6137
cat >>confdefs.h <<_ACEOF
6138
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6147
for ac_header in dlfcn.h
6149
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6150
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6151
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6152
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6153
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6154
echo $ECHO_N "(cached) $ECHO_C" >&6
6156
ac_res=`eval echo '${'$as_ac_Header'}'`
6157
{ echo "$as_me:$LINENO: result: $ac_res" >&5
6158
echo "${ECHO_T}$ac_res" >&6; }
6160
# Is the header compilable?
6161
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6162
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6163
cat >conftest.$ac_ext <<_ACEOF
6166
cat confdefs.h >>conftest.$ac_ext
6167
cat >>conftest.$ac_ext <<_ACEOF
6168
/* end confdefs.h. */
6169
$ac_includes_default
6170
#include <$ac_header>
6172
rm -f conftest.$ac_objext
6173
if { (ac_try="$ac_compile"
6175
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6176
*) ac_try_echo=$ac_try;;
6178
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6179
(eval "$ac_compile") 2>conftest.er1
6181
grep -v '^ *+' conftest.er1 >conftest.err
6183
cat conftest.err >&5
6184
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185
(exit $ac_status); } && {
6186
test -z "$ac_c_werror_flag" ||
6187
test ! -s conftest.err
6188
} && test -s conftest.$ac_objext; then
6189
ac_header_compiler=yes
6191
echo "$as_me: failed program was:" >&5
6192
sed 's/^/| /' conftest.$ac_ext >&5
6194
ac_header_compiler=no
6197
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6198
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6199
echo "${ECHO_T}$ac_header_compiler" >&6; }
6201
# Is the header present?
6202
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6203
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6204
cat >conftest.$ac_ext <<_ACEOF
6207
cat confdefs.h >>conftest.$ac_ext
6208
cat >>conftest.$ac_ext <<_ACEOF
6209
/* end confdefs.h. */
6210
#include <$ac_header>
6212
if { (ac_try="$ac_cpp conftest.$ac_ext"
6214
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6215
*) ac_try_echo=$ac_try;;
6217
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6218
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6220
grep -v '^ *+' conftest.er1 >conftest.err
6222
cat conftest.err >&5
6223
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224
(exit $ac_status); } >/dev/null && {
6225
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6226
test ! -s conftest.err
6228
ac_header_preproc=yes
6230
echo "$as_me: failed program was:" >&5
6231
sed 's/^/| /' conftest.$ac_ext >&5
6233
ac_header_preproc=no
6236
rm -f conftest.err conftest.$ac_ext
6237
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6238
echo "${ECHO_T}$ac_header_preproc" >&6; }
6240
# So? What about this header?
6241
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6243
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6244
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6245
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6246
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6247
ac_header_preproc=yes
6250
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6251
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6252
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6253
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6254
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6255
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6256
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6257
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6258
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6259
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6260
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6261
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6263
## -------------------------------- ##
6264
## Report this to bug-guile@gnu.org ##
6265
## -------------------------------- ##
6267
) | sed "s/^/$as_me: WARNING: /" >&2
6270
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6271
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6272
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6273
echo $ECHO_N "(cached) $ECHO_C" >&6
6275
eval "$as_ac_Header=\$ac_header_preproc"
6277
ac_res=`eval echo '${'$as_ac_Header'}'`
6278
{ echo "$as_me:$LINENO: result: $ac_res" >&5
6279
echo "${ECHO_T}$ac_res" >&6; }
6282
if test `eval echo '${'$as_ac_Header'}'` = yes; then
6283
cat >>confdefs.h <<_ACEOF
6284
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6292
ac_cpp='$CXXCPP $CPPFLAGS'
6293
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6294
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6295
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6296
if test -z "$CXX"; then
6297
if test -n "$CCC"; then
6300
if test -n "$ac_tool_prefix"; then
6301
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6303
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6304
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6305
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6306
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6307
if test "${ac_cv_prog_CXX+set}" = set; then
6308
echo $ECHO_N "(cached) $ECHO_C" >&6
6310
if test -n "$CXX"; then
6311
ac_cv_prog_CXX="$CXX" # Let the user override the test.
6313
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6317
test -z "$as_dir" && as_dir=.
6318
for ac_exec_ext in '' $ac_executable_extensions; do
6319
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6320
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6321
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6331
if test -n "$CXX"; then
6332
{ echo "$as_me:$LINENO: result: $CXX" >&5
6333
echo "${ECHO_T}$CXX" >&6; }
6335
{ echo "$as_me:$LINENO: result: no" >&5
6336
echo "${ECHO_T}no" >&6; }
6340
test -n "$CXX" && break
6343
if test -z "$CXX"; then
6345
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6347
# Extract the first word of "$ac_prog", so it can be a program name with args.
6348
set dummy $ac_prog; ac_word=$2
6349
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6350
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6351
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6352
echo $ECHO_N "(cached) $ECHO_C" >&6
6354
if test -n "$ac_ct_CXX"; then
6355
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6357
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6361
test -z "$as_dir" && as_dir=.
6362
for ac_exec_ext in '' $ac_executable_extensions; do
6363
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6364
ac_cv_prog_ac_ct_CXX="$ac_prog"
6365
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6374
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6375
if test -n "$ac_ct_CXX"; then
6376
{ echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6377
echo "${ECHO_T}$ac_ct_CXX" >&6; }
6379
{ echo "$as_me:$LINENO: result: no" >&5
6380
echo "${ECHO_T}no" >&6; }
6384
test -n "$ac_ct_CXX" && break
6387
if test "x$ac_ct_CXX" = x; then
6390
case $cross_compiling:$ac_tool_warned in
6392
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6393
whose name does not start with the host triplet. If you think this
6394
configuration is useful to you, please write to autoconf@gnu.org." >&5
6395
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6396
whose name does not start with the host triplet. If you think this
6397
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6398
ac_tool_warned=yes ;;
6406
# Provide some information about the compiler.
6407
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6408
ac_compiler=`set X $ac_compile; echo $2`
6409
{ (ac_try="$ac_compiler --version >&5"
6411
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6412
*) ac_try_echo=$ac_try;;
6414
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6415
(eval "$ac_compiler --version >&5") 2>&5
6417
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418
(exit $ac_status); }
6419
{ (ac_try="$ac_compiler -v >&5"
6421
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6422
*) ac_try_echo=$ac_try;;
6424
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6425
(eval "$ac_compiler -v >&5") 2>&5
6427
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428
(exit $ac_status); }
6429
{ (ac_try="$ac_compiler -V >&5"
6431
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6432
*) ac_try_echo=$ac_try;;
6434
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6435
(eval "$ac_compiler -V >&5") 2>&5
6437
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438
(exit $ac_status); }
6440
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6441
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6442
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6443
echo $ECHO_N "(cached) $ECHO_C" >&6
6445
cat >conftest.$ac_ext <<_ACEOF
6448
cat confdefs.h >>conftest.$ac_ext
6449
cat >>conftest.$ac_ext <<_ACEOF
6450
/* end confdefs.h. */
6463
rm -f conftest.$ac_objext
6464
if { (ac_try="$ac_compile"
6466
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6467
*) ac_try_echo=$ac_try;;
6469
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6470
(eval "$ac_compile") 2>conftest.er1
6472
grep -v '^ *+' conftest.er1 >conftest.err
6474
cat conftest.err >&5
6475
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476
(exit $ac_status); } && {
6477
test -z "$ac_cxx_werror_flag" ||
6478
test ! -s conftest.err
6479
} && test -s conftest.$ac_objext; then
6482
echo "$as_me: failed program was:" >&5
6483
sed 's/^/| /' conftest.$ac_ext >&5
6488
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6489
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6492
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6493
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6494
GXX=`test $ac_compiler_gnu = yes && echo yes`
6495
ac_test_CXXFLAGS=${CXXFLAGS+set}
6496
ac_save_CXXFLAGS=$CXXFLAGS
6497
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6498
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6499
if test "${ac_cv_prog_cxx_g+set}" = set; then
6500
echo $ECHO_N "(cached) $ECHO_C" >&6
6502
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6503
ac_cxx_werror_flag=yes
6506
cat >conftest.$ac_ext <<_ACEOF
6509
cat confdefs.h >>conftest.$ac_ext
6510
cat >>conftest.$ac_ext <<_ACEOF
6511
/* end confdefs.h. */
6521
rm -f conftest.$ac_objext
6522
if { (ac_try="$ac_compile"
6524
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6525
*) ac_try_echo=$ac_try;;
6527
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6528
(eval "$ac_compile") 2>conftest.er1
6530
grep -v '^ *+' conftest.er1 >conftest.err
6532
cat conftest.err >&5
6533
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534
(exit $ac_status); } && {
6535
test -z "$ac_cxx_werror_flag" ||
6536
test ! -s conftest.err
6537
} && test -s conftest.$ac_objext; then
6538
ac_cv_prog_cxx_g=yes
6540
echo "$as_me: failed program was:" >&5
6541
sed 's/^/| /' conftest.$ac_ext >&5
6544
cat >conftest.$ac_ext <<_ACEOF
6547
cat confdefs.h >>conftest.$ac_ext
6548
cat >>conftest.$ac_ext <<_ACEOF
6549
/* end confdefs.h. */
6559
rm -f conftest.$ac_objext
6560
if { (ac_try="$ac_compile"
6562
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6563
*) ac_try_echo=$ac_try;;
6565
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6566
(eval "$ac_compile") 2>conftest.er1
6568
grep -v '^ *+' conftest.er1 >conftest.err
6570
cat conftest.err >&5
6571
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572
(exit $ac_status); } && {
6573
test -z "$ac_cxx_werror_flag" ||
6574
test ! -s conftest.err
6575
} && test -s conftest.$ac_objext; then
6578
echo "$as_me: failed program was:" >&5
6579
sed 's/^/| /' conftest.$ac_ext >&5
6581
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6583
cat >conftest.$ac_ext <<_ACEOF
6586
cat confdefs.h >>conftest.$ac_ext
6587
cat >>conftest.$ac_ext <<_ACEOF
6588
/* end confdefs.h. */
6598
rm -f conftest.$ac_objext
6599
if { (ac_try="$ac_compile"
6601
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6602
*) ac_try_echo=$ac_try;;
6604
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6605
(eval "$ac_compile") 2>conftest.er1
6607
grep -v '^ *+' conftest.er1 >conftest.err
6609
cat conftest.err >&5
6610
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611
(exit $ac_status); } && {
6612
test -z "$ac_cxx_werror_flag" ||
6613
test ! -s conftest.err
6614
} && test -s conftest.$ac_objext; then
6615
ac_cv_prog_cxx_g=yes
6617
echo "$as_me: failed program was:" >&5
6618
sed 's/^/| /' conftest.$ac_ext >&5
6623
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6626
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6629
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6630
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6632
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6633
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6634
if test "$ac_test_CXXFLAGS" = set; then
6635
CXXFLAGS=$ac_save_CXXFLAGS
6636
elif test $ac_cv_prog_cxx_g = yes; then
6637
if test "$GXX" = yes; then
6643
if test "$GXX" = yes; then
6650
ac_cpp='$CXXCPP $CPPFLAGS'
6651
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6652
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6653
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6655
depcc="$CXX" am_compiler_list=
6657
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6658
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6659
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6660
echo $ECHO_N "(cached) $ECHO_C" >&6
6662
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6663
# We make a subdir and do the tests there. Otherwise we can end up
6664
# making bogus files that we don't know about and never remove. For
6665
# instance it was reported that on HP-UX the gcc test will end up
6666
# making a dummy file named `D' -- because `-MD' means `put the output
6669
# Copy depcomp to subdir because otherwise we won't find it if we're
6670
# using a relative directory.
6671
cp "$am_depcomp" conftest.dir
6673
# We will build objects and dependencies in a subdirectory because
6674
# it helps to detect inapplicable dependency modes. For instance
6675
# both Tru64's cc and ICC support -MD to output dependencies as a
6676
# side effect of compilation, but ICC will put the dependencies in
6677
# the current directory while Tru64 will put them in the object
6681
am_cv_CXX_dependencies_compiler_type=none
6682
if test "$am_compiler_list" = ""; then
6683
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6685
for depmode in $am_compiler_list; do
6686
# Setup a source with many dependencies, because some compilers
6687
# like to wrap large dependency lists on column 80 (with \), and
6688
# we should not choose a depcomp mode which is confused by this.
6690
# We need to recreate these files for each test, as the compiler may
6691
# overwrite some of them when testing with obscure command lines.
6692
# This happens at least with the AIX C compiler.
6694
for i in 1 2 3 4 5 6; do
6695
echo '#include "conftst'$i'.h"' >> sub/conftest.c
6696
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6697
# Solaris 8's {/usr,}/bin/sh.
6698
touch sub/conftst$i.h
6700
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6704
# after this tag, mechanisms are not by side-effect, so they'll
6705
# only be used when explicitly requested
6706
if test "x$enable_dependency_tracking" = xyes; then
6714
# We check with `-c' and `-o' for the sake of the "dashmstdout"
6715
# mode. It turns out that the SunPro C++ compiler does not properly
6716
# handle `-M -o', and we need to detect this.
6717
if depmode=$depmode \
6718
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6719
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6720
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6721
>/dev/null 2>conftest.err &&
6722
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6723
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6724
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6725
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6726
# icc doesn't choke on unknown options, it will just issue warnings
6727
# or remarks (even with -Werror). So we grep stderr for any message
6728
# that says an option was ignored or not supported.
6729
# When given -MP, icc 7.0 and 7.1 complain thusly:
6730
# icc: Command line warning: ignoring option '-M'; no argument required
6731
# The diagnosis changed in icc 8.0:
6732
# icc: Command line remark: option '-MP' not supported
6733
if (grep 'ignoring option' conftest.err ||
6734
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6735
am_cv_CXX_dependencies_compiler_type=$depmode
6744
am_cv_CXX_dependencies_compiler_type=none
6748
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6749
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
6750
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6753
test "x$enable_dependency_tracking" != xno \
6754
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6755
am__fastdepCXX_TRUE=
6756
am__fastdepCXX_FALSE='#'
6758
am__fastdepCXX_TRUE='#'
6759
am__fastdepCXX_FALSE=
6765
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6766
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6767
(test "X$CXX" != "Xg++"))) ; then
6769
ac_cpp='$CXXCPP $CPPFLAGS'
6770
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6771
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6772
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6773
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6774
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6775
if test -z "$CXXCPP"; then
6776
if test "${ac_cv_prog_CXXCPP+set}" = set; then
6777
echo $ECHO_N "(cached) $ECHO_C" >&6
6779
# Double quotes because CXXCPP needs to be expanded
6780
for CXXCPP in "$CXX -E" "/lib/cpp"
6783
for ac_cxx_preproc_warn_flag in '' yes
6785
# Use a header file that comes with gcc, so configuring glibc
6786
# with a fresh cross-compiler works.
6787
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6788
# <limits.h> exists even on freestanding compilers.
6789
# On the NeXT, cc -E runs the code through the compiler's parser,
6790
# not just through cpp. "Syntax error" is here to catch this case.
6791
cat >conftest.$ac_ext <<_ACEOF
6794
cat confdefs.h >>conftest.$ac_ext
6795
cat >>conftest.$ac_ext <<_ACEOF
6796
/* end confdefs.h. */
6798
# include <limits.h>
6800
# include <assert.h>
6804
if { (ac_try="$ac_cpp conftest.$ac_ext"
6806
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6807
*) ac_try_echo=$ac_try;;
6809
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6810
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6812
grep -v '^ *+' conftest.er1 >conftest.err
6814
cat conftest.err >&5
6815
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6816
(exit $ac_status); } >/dev/null && {
6817
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6818
test ! -s conftest.err
6822
echo "$as_me: failed program was:" >&5
6823
sed 's/^/| /' conftest.$ac_ext >&5
6825
# Broken: fails on valid input.
6829
rm -f conftest.err conftest.$ac_ext
6831
# OK, works on sane cases. Now check whether nonexistent headers
6832
# can be detected and how.
6833
cat >conftest.$ac_ext <<_ACEOF
6836
cat confdefs.h >>conftest.$ac_ext
6837
cat >>conftest.$ac_ext <<_ACEOF
6838
/* end confdefs.h. */
6839
#include <ac_nonexistent.h>
6841
if { (ac_try="$ac_cpp conftest.$ac_ext"
6843
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6844
*) ac_try_echo=$ac_try;;
6846
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6847
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6849
grep -v '^ *+' conftest.er1 >conftest.err
6851
cat conftest.err >&5
6852
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6853
(exit $ac_status); } >/dev/null && {
6854
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6855
test ! -s conftest.err
6857
# Broken: success on invalid input.
6860
echo "$as_me: failed program was:" >&5
6861
sed 's/^/| /' conftest.$ac_ext >&5
6863
# Passes both tests.
6868
rm -f conftest.err conftest.$ac_ext
6871
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6872
rm -f conftest.err conftest.$ac_ext
6873
if $ac_preproc_ok; then
6878
ac_cv_prog_CXXCPP=$CXXCPP
6881
CXXCPP=$ac_cv_prog_CXXCPP
6883
ac_cv_prog_CXXCPP=$CXXCPP
6885
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
6886
echo "${ECHO_T}$CXXCPP" >&6; }
6888
for ac_cxx_preproc_warn_flag in '' yes
6890
# Use a header file that comes with gcc, so configuring glibc
6891
# with a fresh cross-compiler works.
6892
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6893
# <limits.h> exists even on freestanding compilers.
6894
# On the NeXT, cc -E runs the code through the compiler's parser,
6895
# not just through cpp. "Syntax error" is here to catch this case.
6896
cat >conftest.$ac_ext <<_ACEOF
6899
cat confdefs.h >>conftest.$ac_ext
6900
cat >>conftest.$ac_ext <<_ACEOF
6901
/* end confdefs.h. */
6903
# include <limits.h>
6905
# include <assert.h>
6909
if { (ac_try="$ac_cpp conftest.$ac_ext"
6911
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6912
*) ac_try_echo=$ac_try;;
6914
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6915
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6917
grep -v '^ *+' conftest.er1 >conftest.err
6919
cat conftest.err >&5
6920
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921
(exit $ac_status); } >/dev/null && {
6922
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6923
test ! -s conftest.err
6927
echo "$as_me: failed program was:" >&5
6928
sed 's/^/| /' conftest.$ac_ext >&5
6930
# Broken: fails on valid input.
6934
rm -f conftest.err conftest.$ac_ext
6936
# OK, works on sane cases. Now check whether nonexistent headers
6937
# can be detected and how.
6938
cat >conftest.$ac_ext <<_ACEOF
6941
cat confdefs.h >>conftest.$ac_ext
6942
cat >>conftest.$ac_ext <<_ACEOF
6943
/* end confdefs.h. */
6944
#include <ac_nonexistent.h>
6946
if { (ac_try="$ac_cpp conftest.$ac_ext"
6948
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6949
*) ac_try_echo=$ac_try;;
6951
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6952
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6954
grep -v '^ *+' conftest.er1 >conftest.err
6956
cat conftest.err >&5
6957
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6958
(exit $ac_status); } >/dev/null && {
6959
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6960
test ! -s conftest.err
6962
# Broken: success on invalid input.
6965
echo "$as_me: failed program was:" >&5
6966
sed 's/^/| /' conftest.$ac_ext >&5
6968
# Passes both tests.
6973
rm -f conftest.err conftest.$ac_ext
6976
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6977
rm -f conftest.err conftest.$ac_ext
6978
if $ac_preproc_ok; then
6981
{ { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6982
See \`config.log' for more details." >&5
6983
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6984
See \`config.log' for more details." >&2;}
6985
{ (exit 1); exit 1; }; }
6989
ac_cpp='$CXXCPP $CPPFLAGS'
6990
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6991
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6992
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6998
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6999
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7000
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7001
if test -n "$ac_tool_prefix"; then
7002
for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
7004
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7005
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7006
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7007
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7008
if test "${ac_cv_prog_F77+set}" = set; then
7009
echo $ECHO_N "(cached) $ECHO_C" >&6
7011
if test -n "$F77"; then
7012
ac_cv_prog_F77="$F77" # Let the user override the test.
7014
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7018
test -z "$as_dir" && as_dir=.
7019
for ac_exec_ext in '' $ac_executable_extensions; do
7020
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7021
ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7022
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7032
if test -n "$F77"; then
7033
{ echo "$as_me:$LINENO: result: $F77" >&5
7034
echo "${ECHO_T}$F77" >&6; }
7036
{ echo "$as_me:$LINENO: result: no" >&5
7037
echo "${ECHO_T}no" >&6; }
7041
test -n "$F77" && break
7044
if test -z "$F77"; then
7046
for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
7048
# Extract the first word of "$ac_prog", so it can be a program name with args.
7049
set dummy $ac_prog; ac_word=$2
7050
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7051
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7052
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7053
echo $ECHO_N "(cached) $ECHO_C" >&6
7055
if test -n "$ac_ct_F77"; then
7056
ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7058
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7062
test -z "$as_dir" && as_dir=.
7063
for ac_exec_ext in '' $ac_executable_extensions; do
7064
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7065
ac_cv_prog_ac_ct_F77="$ac_prog"
7066
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7075
ac_ct_F77=$ac_cv_prog_ac_ct_F77
7076
if test -n "$ac_ct_F77"; then
7077
{ echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7078
echo "${ECHO_T}$ac_ct_F77" >&6; }
7080
{ echo "$as_me:$LINENO: result: no" >&5
7081
echo "${ECHO_T}no" >&6; }
7085
test -n "$ac_ct_F77" && break
7088
if test "x$ac_ct_F77" = x; then
7091
case $cross_compiling:$ac_tool_warned in
7093
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7094
whose name does not start with the host triplet. If you think this
7095
configuration is useful to you, please write to autoconf@gnu.org." >&5
7096
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7097
whose name does not start with the host triplet. If you think this
7098
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7099
ac_tool_warned=yes ;;
7106
# Provide some information about the compiler.
7107
echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7108
ac_compiler=`set X $ac_compile; echo $2`
7109
{ (ac_try="$ac_compiler --version >&5"
7111
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7112
*) ac_try_echo=$ac_try;;
7114
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7115
(eval "$ac_compiler --version >&5") 2>&5
7117
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7118
(exit $ac_status); }
7119
{ (ac_try="$ac_compiler -v >&5"
7121
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7122
*) ac_try_echo=$ac_try;;
7124
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7125
(eval "$ac_compiler -v >&5") 2>&5
7127
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128
(exit $ac_status); }
7129
{ (ac_try="$ac_compiler -V >&5"
7131
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7132
*) ac_try_echo=$ac_try;;
7134
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7135
(eval "$ac_compiler -V >&5") 2>&5
7137
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7138
(exit $ac_status); }
7141
# If we don't use `.F' as extension, the preprocessor is not run on the
7142
# input file. (Note that this only needs to work for GNU compilers.)
7145
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7146
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7147
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7148
echo $ECHO_N "(cached) $ECHO_C" >&6
7150
cat >conftest.$ac_ext <<_ACEOF
7158
rm -f conftest.$ac_objext
7159
if { (ac_try="$ac_compile"
7161
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7162
*) ac_try_echo=$ac_try;;
7164
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7165
(eval "$ac_compile") 2>conftest.er1
7167
grep -v '^ *+' conftest.er1 >conftest.err
7169
cat conftest.err >&5
7170
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171
(exit $ac_status); } && {
7172
test -z "$ac_f77_werror_flag" ||
7173
test ! -s conftest.err
7174
} && test -s conftest.$ac_objext; then
7177
echo "$as_me: failed program was:" >&5
7178
sed 's/^/| /' conftest.$ac_ext >&5
7183
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7184
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7187
{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7188
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7190
ac_test_FFLAGS=${FFLAGS+set}
7191
ac_save_FFLAGS=$FFLAGS
7193
{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7194
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7195
if test "${ac_cv_prog_f77_g+set}" = set; then
7196
echo $ECHO_N "(cached) $ECHO_C" >&6
7199
cat >conftest.$ac_ext <<_ACEOF
7204
rm -f conftest.$ac_objext
7205
if { (ac_try="$ac_compile"
7207
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7208
*) ac_try_echo=$ac_try;;
7210
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7211
(eval "$ac_compile") 2>conftest.er1
7213
grep -v '^ *+' conftest.er1 >conftest.err
7215
cat conftest.err >&5
7216
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7217
(exit $ac_status); } && {
7218
test -z "$ac_f77_werror_flag" ||
7219
test ! -s conftest.err
7220
} && test -s conftest.$ac_objext; then
7221
ac_cv_prog_f77_g=yes
7223
echo "$as_me: failed program was:" >&5
7224
sed 's/^/| /' conftest.$ac_ext >&5
7229
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7232
{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7233
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7234
if test "$ac_test_FFLAGS" = set; then
7235
FFLAGS=$ac_save_FFLAGS
7236
elif test $ac_cv_prog_f77_g = yes; then
7237
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7243
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7250
G77=`test $ac_compiler_gnu = yes && echo yes`
7252
ac_cpp='$CPP $CPPFLAGS'
7253
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7254
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7255
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7259
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7260
# find the maximum length of command line arguments
7261
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7262
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7263
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7264
echo $ECHO_N "(cached) $ECHO_C" >&6
7271
# On DJGPP, this test can blow up pretty badly due to problems in libc
7272
# (any single argument exceeding 2000 bytes causes a buffer overrun
7273
# during glob expansion). Even if it were fixed, the result of this
7274
# check would be larger than it should be.
7275
lt_cv_sys_max_cmd_len=12288; # 12K is about right
7279
# Under GNU Hurd, this test is not required because there is
7280
# no limit to the length of command line arguments.
7281
# Libtool will interpret -1 as no limit whatsoever
7282
lt_cv_sys_max_cmd_len=-1;
7286
# On Win9x/ME, this test blows up -- it succeeds, but takes
7287
# about 5 minutes as the teststring grows exponentially.
7288
# Worse, since 9x/ME are not pre-emptively multitasking,
7289
# you end up with a "frozen" computer, even though with patience
7290
# the test eventually succeeds (with a max line length of 256k).
7291
# Instead, let's just punt: use the minimum linelength reported by
7292
# all of the supported platforms: 8192 (on NT/2K/XP).
7293
lt_cv_sys_max_cmd_len=8192;
7297
# On AmigaOS with pdksh, this test takes hours, literally.
7298
# So we just punt and use a minimum line length of 8192.
7299
lt_cv_sys_max_cmd_len=8192;
7302
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7303
# This has been around since 386BSD, at least. Likely further.
7304
if test -x /sbin/sysctl; then
7305
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7306
elif test -x /usr/sbin/sysctl; then
7307
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7309
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7311
# And add a safety zone
7312
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7313
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7317
# We know the value 262144 and hardcode it with a safety zone (like BSD)
7318
lt_cv_sys_max_cmd_len=196608
7322
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7323
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7324
# nice to cause kernel panics so lets avoid the loop below.
7325
# First set a reasonable default.
7326
lt_cv_sys_max_cmd_len=16384
7328
if test -x /sbin/sysconfig; then
7329
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7330
*1*) lt_cv_sys_max_cmd_len=-1 ;;
7335
lt_cv_sys_max_cmd_len=102400
7337
sysv5* | sco5v6* | sysv4.2uw2*)
7338
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7339
if test -n "$kargmax"; then
7340
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7342
lt_cv_sys_max_cmd_len=32768
7346
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7347
if test -n "$lt_cv_sys_max_cmd_len"; then
7348
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7349
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7351
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7352
while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7353
= "XX$teststring") >/dev/null 2>&1 &&
7354
new_result=`expr "X$teststring" : ".*" 2>&1` &&
7355
lt_cv_sys_max_cmd_len=$new_result &&
7356
test $i != 17 # 1/2 MB should be enough
7359
teststring=$teststring$teststring
7362
# Add a significant safety factor because C++ compilers can tack on massive
7363
# amounts of additional arguments before passing them to the linker.
7364
# It appears as though 1/2 is a usable value.
7365
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7372
if test -n $lt_cv_sys_max_cmd_len ; then
7373
{ echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7374
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7376
{ echo "$as_me:$LINENO: result: none" >&5
7377
echo "${ECHO_T}none" >&6; }
7384
6438
# Check for command to grab the raw symbol name followed by C symbol from nm.
7385
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7386
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6439
{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6440
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7387
6441
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7388
echo $ECHO_N "(cached) $ECHO_C" >&6
6442
$as_echo_n "(cached) " >&6
7391
6445
# These are sane defaults that work on at least a few old systems.
11503
# Report which library types will actually be built
11504
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11505
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11506
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
11507
echo "${ECHO_T}$can_build_shared" >&6; }
11509
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11510
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11511
test "$can_build_shared" = "no" && enable_shared=no
11513
# On AIX, shared libraries and static libraries use the same namespace, and
11514
# are all built from PIC.
11517
test "$enable_shared" = yes && enable_static=no
11518
if test -n "$RANLIB"; then
11519
archive_cmds="$archive_cmds~\$RANLIB \$lib"
11520
postinstall_cmds='$RANLIB $lib'
11525
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11526
test "$enable_shared" = yes && enable_static=no
11530
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
11531
echo "${ECHO_T}$enable_shared" >&6; }
11533
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11534
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11535
# Make sure either enable_shared or enable_static is yes.
11536
test "$enable_shared" = yes || enable_static=yes
11537
{ echo "$as_me:$LINENO: result: $enable_static" >&5
11538
echo "${ECHO_T}$enable_static" >&6; }
11540
# The else clause should only fire when bootstrapping the
11541
# libtool distribution, otherwise you forgot to ship ltmain.sh
11542
# with your package, and you will get complaints that there are
11543
# no rules to generate ltmain.sh.
11544
if test -f "$ltmain"; then
11545
# See if we are running on zsh, and set the options which allow our commands through
11546
# without removal of \ escapes.
11547
if test -n "${ZSH_VERSION+set}" ; then
11548
setopt NO_GLOB_SUBST
11550
# Now quote all the things that may contain metacharacters while being
11551
# careful not to overquote the AC_SUBSTed values. We take copies of the
11552
# variables and quote the copies for generation of the libtool script.
11553
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11555
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11556
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11557
deplibs_check_method reload_flag reload_cmds need_locks \
11558
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11559
lt_cv_sys_global_symbol_to_c_name_address \
11560
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11561
old_postinstall_cmds old_postuninstall_cmds \
11565
lt_prog_compiler_wl \
11566
lt_prog_compiler_pic \
11567
lt_prog_compiler_static \
11568
lt_prog_compiler_no_builtin_flag \
11569
export_dynamic_flag_spec \
11570
thread_safe_flag_spec \
11571
whole_archive_flag_spec \
11572
enable_shared_with_static_runtimes \
11574
old_archive_from_new_cmds \
11579
compiler_lib_search_path \
11580
compiler_lib_search_dirs \
11582
archive_expsym_cmds \
11584
postuninstall_cmds \
11585
old_archive_from_expsyms_cmds \
11586
allow_undefined_flag \
11587
no_undefined_flag \
11588
export_symbols_cmds \
11589
hardcode_libdir_flag_spec \
11590
hardcode_libdir_flag_spec_ld \
11591
hardcode_libdir_separator \
11592
hardcode_automatic \
11594
module_expsym_cmds \
11595
lt_cv_prog_compiler_c_o \
11598
include_expsyms; do
11601
old_archive_cmds | \
11602
old_archive_from_new_cmds | \
11604
archive_expsym_cmds | \
11606
module_expsym_cmds | \
11607
old_archive_from_expsyms_cmds | \
11608
export_symbols_cmds | \
11609
extract_expsyms_cmds | reload_cmds | finish_cmds | \
11610
postinstall_cmds | postuninstall_cmds | \
11611
old_postinstall_cmds | old_postuninstall_cmds | \
11612
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11613
# Double-quote double-evaled strings.
11614
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11617
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11623
*'\$0 --fallback-echo"')
11624
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11628
cfgfile="${ofile}T"
11629
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11631
{ echo "$as_me:$LINENO: creating $ofile" >&5
11632
echo "$as_me: creating $ofile" >&6;}
11634
cat <<__EOF__ >> "$cfgfile"
11637
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11638
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11639
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
11641
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
11642
# Free Software Foundation, Inc.
11644
# This file is part of GNU Libtool:
11645
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11647
# This program is free software; you can redistribute it and/or modify
11648
# it under the terms of the GNU General Public License as published by
11649
# the Free Software Foundation; either version 2 of the License, or
11650
# (at your option) any later version.
11652
# This program is distributed in the hope that it will be useful, but
11653
# WITHOUT ANY WARRANTY; without even the implied warranty of
11654
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11655
# General Public License for more details.
11657
# You should have received a copy of the GNU General Public License
11658
# along with this program; if not, write to the Free Software
11659
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11661
# As a special exception to the GNU General Public License, if you
11662
# distribute this file as part of a program that contains a
11663
# configuration script generated by Autoconf, you may include it under
11664
# the same distribution terms that you use for the rest of that program.
11666
# A sed program that does not truncate output.
11669
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
11670
Xsed="$SED -e 1s/^X//"
11672
# The HP-UX ksh and POSIX shell print the target directory to stdout
11673
# if CDPATH is set.
11674
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11676
# The names of the tagged configurations supported by this script.
11679
# ### BEGIN LIBTOOL CONFIG
11681
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11683
# Shell to use when invoking shell scripts.
11686
# Whether or not to build shared libraries.
11687
build_libtool_libs=$enable_shared
11689
# Whether or not to build static libraries.
11690
build_old_libs=$enable_static
11692
# Whether or not to add -lc for building shared libraries.
11693
build_libtool_need_lc=$archive_cmds_need_lc
11695
# Whether or not to disallow shared libs when runtime libs are static
11696
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11698
# Whether or not to optimize for fast installation.
11699
fast_install=$enable_fast_install
11702
host_alias=$host_alias
11706
# The build system.
11707
build_alias=$build_alias
11711
# An echo program that does not interpret backslashes.
11716
AR_FLAGS=$lt_AR_FLAGS
11721
# LTCC compiler flags.
11722
LTCFLAGS=$lt_LTCFLAGS
11724
# A language-specific compiler.
11727
# Is the compiler the GNU C compiler?
11733
# The linker used to build libraries.
11736
# Whether we need hard or soft links.
11739
# A BSD-compatible nm program.
11742
# A symbol stripping program
11745
# Used to examine libraries when file_magic_cmd begins "file"
11746
MAGIC_CMD=$MAGIC_CMD
11748
# Used on cygwin: DLL creation program.
11751
# Used on cygwin: object dumper.
11754
# Used on cygwin: assembler.
11757
# The name of the directory that contains temporary libtool files.
11760
# How to create reloadable object files.
11761
reload_flag=$lt_reload_flag
11762
reload_cmds=$lt_reload_cmds
11764
# How to pass a linker flag through the compiler.
11765
wl=$lt_lt_prog_compiler_wl
11767
# Object file suffix (normally "o").
11768
objext="$ac_objext"
11770
# Old archive suffix (normally "a").
11773
# Shared library suffix (normally ".so").
11774
shrext_cmds='$shrext_cmds'
11776
# Executable file suffix (normally "").
11779
# Additional compiler flags for building library objects.
11780
pic_flag=$lt_lt_prog_compiler_pic
11783
# What is the maximum length of a command?
11784
max_cmd_len=$lt_cv_sys_max_cmd_len
11786
# Does compiler simultaneously support -c and -o options?
11787
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11789
# Must we lock files when doing compilation?
11790
need_locks=$lt_need_locks
11792
# Do we need the lib prefix for modules?
11793
need_lib_prefix=$need_lib_prefix
11795
# Do we need a version for libraries?
11796
need_version=$need_version
11798
# Whether dlopen is supported.
11799
dlopen_support=$enable_dlopen
11801
# Whether dlopen of programs is supported.
11802
dlopen_self=$enable_dlopen_self
11804
# Whether dlopen of statically linked programs is supported.
11805
dlopen_self_static=$enable_dlopen_self_static
11807
# Compiler flag to prevent dynamic linking.
11808
link_static_flag=$lt_lt_prog_compiler_static
11810
# Compiler flag to turn off builtin functions.
11811
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11813
# Compiler flag to allow reflexive dlopens.
11814
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11816
# Compiler flag to generate shared objects directly from archives.
11817
whole_archive_flag_spec=$lt_whole_archive_flag_spec
11819
# Compiler flag to generate thread-safe objects.
11820
thread_safe_flag_spec=$lt_thread_safe_flag_spec
11822
# Library versioning type.
11823
version_type=$version_type
11825
# Format of library name prefix.
11826
libname_spec=$lt_libname_spec
11828
# List of archive names. First name is the real one, the rest are links.
11829
# The last name is the one that the linker finds with -lNAME.
11830
library_names_spec=$lt_library_names_spec
11832
# The coded name of the library, if different from the real name.
11833
soname_spec=$lt_soname_spec
11835
# Commands used to build and install an old-style archive.
11837
old_archive_cmds=$lt_old_archive_cmds
11838
old_postinstall_cmds=$lt_old_postinstall_cmds
11839
old_postuninstall_cmds=$lt_old_postuninstall_cmds
11841
# Create an old-style archive from a shared archive.
11842
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11844
# Create a temporary old-style archive to link instead of a shared archive.
11845
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11847
# Commands used to build and install a shared archive.
11848
archive_cmds=$lt_archive_cmds
11849
archive_expsym_cmds=$lt_archive_expsym_cmds
11850
postinstall_cmds=$lt_postinstall_cmds
11851
postuninstall_cmds=$lt_postuninstall_cmds
11853
# Commands used to build a loadable module (assumed same as above if empty)
11854
module_cmds=$lt_module_cmds
11855
module_expsym_cmds=$lt_module_expsym_cmds
11857
# Commands to strip libraries.
11858
old_striplib=$lt_old_striplib
11859
striplib=$lt_striplib
11861
# Dependencies to place before the objects being linked to create a
11863
predep_objects=$lt_predep_objects
11865
# Dependencies to place after the objects being linked to create a
11867
postdep_objects=$lt_postdep_objects
11869
# Dependencies to place before the objects being linked to create a
11871
predeps=$lt_predeps
11873
# Dependencies to place after the objects being linked to create a
11875
postdeps=$lt_postdeps
11877
# The directories searched by this compiler when creating a shared
11879
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11881
# The library search path used internally by the compiler when linking
11882
# a shared library.
11883
compiler_lib_search_path=$lt_compiler_lib_search_path
11885
# Method to check whether dependent libraries are shared objects.
11886
deplibs_check_method=$lt_deplibs_check_method
11888
# Command to use when deplibs_check_method == file_magic.
11889
file_magic_cmd=$lt_file_magic_cmd
11891
# Flag that allows shared libraries with undefined symbols to be built.
11892
allow_undefined_flag=$lt_allow_undefined_flag
11894
# Flag that forces no undefined symbols.
11895
no_undefined_flag=$lt_no_undefined_flag
11897
# Commands used to finish a libtool library installation in a directory.
11898
finish_cmds=$lt_finish_cmds
11900
# Same as above, but a single script fragment to be evaled but not shown.
11901
finish_eval=$lt_finish_eval
11903
# Take the output of nm and produce a listing of raw symbols and C names.
11904
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11906
# Transform the output of nm in a proper C declaration
11907
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11909
# Transform the output of nm in a C name address pair
11910
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11912
# This is the shared library runtime path variable.
11913
runpath_var=$runpath_var
11915
# This is the shared library path variable.
11916
shlibpath_var=$shlibpath_var
11918
# Is shlibpath searched before the hard-coded library search path?
11919
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11921
# How to hardcode a shared library path into an executable.
11922
hardcode_action=$hardcode_action
11924
# Whether we should hardcode library paths into libraries.
11925
hardcode_into_libs=$hardcode_into_libs
11927
# Flag to hardcode \$libdir into a binary during linking.
11928
# This must work even if \$libdir does not exist.
11929
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11931
# If ld is used when linking, flag to hardcode \$libdir into
11932
# a binary during linking. This must work even if \$libdir does
11934
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11936
# Whether we need a single -rpath flag with a separated argument.
11937
hardcode_libdir_separator=$lt_hardcode_libdir_separator
11939
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11940
# resulting binary.
11941
hardcode_direct=$hardcode_direct
11943
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11944
# resulting binary.
11945
hardcode_minus_L=$hardcode_minus_L
11947
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11948
# the resulting binary.
11949
hardcode_shlibpath_var=$hardcode_shlibpath_var
11951
# Set to yes if building a shared library automatically hardcodes DIR into the library
11952
# and all subsequent libraries and executables linked against it.
11953
hardcode_automatic=$hardcode_automatic
11955
# Variables whose values should be saved in libtool wrapper scripts and
11956
# restored at relink time.
11957
variables_saved_for_relink="$variables_saved_for_relink"
11959
# Whether libtool must link a program against all its dependency libraries.
11960
link_all_deplibs=$link_all_deplibs
11962
# Compile-time system search path for libraries
11963
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11965
# Run-time system search path for libraries
11966
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11968
# Fix the shell variable \$srcfile for the compiler.
11969
fix_srcfile_path=$lt_fix_srcfile_path
11971
# Set to yes if exported symbols are required.
11972
always_export_symbols=$always_export_symbols
11974
# The commands to list exported symbols.
11975
export_symbols_cmds=$lt_export_symbols_cmds
11977
# The commands to extract the exported symbol list from a shared archive.
11978
extract_expsyms_cmds=$lt_extract_expsyms_cmds
11980
# Symbols that should not be listed in the preloaded symbols.
11981
exclude_expsyms=$lt_exclude_expsyms
11983
# Symbols that must always be exported.
11984
include_expsyms=$lt_include_expsyms
11986
# ### END LIBTOOL CONFIG
11993
cat <<\EOF >> "$cfgfile"
11995
# AIX sometimes has problems with the GCC collect2 program. For some
11996
# reason, if we set the COLLECT_NAMES environment variable, the problems
11997
# vanish in a puff of smoke.
11998
if test "X${COLLECT_NAMES+set}" != Xset; then
12000
export COLLECT_NAMES
12006
# We use sed instead of cat because bash on DJGPP gets confused if
12007
# if finds mixed CR/LF and LF-only lines. Since sed operates in
12008
# text mode, it properly converts lines to CR/LF. This bash problem
12009
# is reportedly fixed, but why not run on old versions too?
12010
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12012
mv -f "$cfgfile" "$ofile" || \
12013
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12017
# If there is no Makefile yet, we rely on a make rule to execute
12018
# `config.status --recheck' to rerun these tests and create the
12019
# libtool script then.
12020
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12021
if test -f "$ltmain_in"; then
12022
test -f Makefile && make "$ltmain"
12028
ac_cpp='$CPP $CPPFLAGS'
12029
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12030
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12031
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12036
# Check whether --with-tags was given.
12037
if test "${with_tags+set}" = set; then
12038
withval=$with_tags; tagnames="$withval"
12042
if test -f "$ltmain" && test -n "$tagnames"; then
12043
if test ! -f "${ofile}"; then
12044
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12045
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12048
if test -z "$LTCC"; then
12049
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12050
if test -z "$LTCC"; then
12051
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12052
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12054
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12055
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12058
if test -z "$LTCFLAGS"; then
12059
eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
12062
# Extract list of available tagged configurations in $ofile.
12063
# Note that this assumes the entire list is on one line.
12064
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12066
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12067
for tagname in $tagnames; do
12069
# Check whether tagname contains only valid characters
12070
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12072
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12073
echo "$as_me: error: invalid tag name: $tagname" >&2;}
12074
{ (exit 1); exit 1; }; }
12078
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12080
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12081
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12082
{ (exit 1); exit 1; }; }
12085
# Update the list of available tags.
12086
if test -n "$tagname"; then
12087
echo appending configuration tag \"$tagname\" to $ofile
12091
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12092
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12093
(test "X$CXX" != "Xg++"))) ; then
12095
ac_cpp='$CXXCPP $CPPFLAGS'
12096
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12097
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12098
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12103
archive_cmds_need_lc_CXX=no
12104
allow_undefined_flag_CXX=
12105
always_export_symbols_CXX=no
12106
archive_expsym_cmds_CXX=
12107
export_dynamic_flag_spec_CXX=
12108
hardcode_direct_CXX=no
12109
hardcode_libdir_flag_spec_CXX=
12110
hardcode_libdir_flag_spec_ld_CXX=
12111
hardcode_libdir_separator_CXX=
12112
hardcode_minus_L_CXX=no
12113
hardcode_shlibpath_var_CXX=unsupported
12114
hardcode_automatic_CXX=no
12116
module_expsym_cmds_CXX=
12117
link_all_deplibs_CXX=unknown
12118
old_archive_cmds_CXX=$old_archive_cmds
12119
no_undefined_flag_CXX=
12120
whole_archive_flag_spec_CXX=
12121
enable_shared_with_static_runtimes_CXX=no
12123
# Dependencies to place before and after the object being linked:
12124
predep_objects_CXX=
12125
postdep_objects_CXX=
12128
compiler_lib_search_path_CXX=
12129
compiler_lib_search_dirs_CXX=
12131
# Source file extension for C++ test sources.
12134
# Object file extension for compiled C++ test sources.
12138
# Code to be used in simple compile tests
12139
lt_simple_compile_test_code="int some_variable = 0;"
12141
# Code to be used in simple link tests
12142
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12144
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12146
# If no C compiler was specified, use CC.
12149
# If no C compiler flags were specified, use CFLAGS.
12150
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12152
# Allow CC to be a program name with arguments.
12156
# save warnings/boilerplate of simple test code
12157
ac_outfile=conftest.$ac_objext
12158
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12159
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12160
_lt_compiler_boilerplate=`cat conftest.err`
12163
ac_outfile=conftest.$ac_objext
12164
echo "$lt_simple_link_test_code" >conftest.$ac_ext
12165
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12166
_lt_linker_boilerplate=`cat conftest.err`
12170
# Allow CC to be a program name with arguments.
12175
lt_save_with_gnu_ld=$with_gnu_ld
12176
lt_save_path_LD=$lt_cv_path_LD
12177
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12178
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12180
$as_unset lt_cv_prog_gnu_ld
12182
if test -n "${lt_cv_path_LDCXX+set}"; then
12183
lt_cv_path_LD=$lt_cv_path_LDCXX
12185
$as_unset lt_cv_path_LD
12187
test -z "${LDCXX+set}" || LD=$LDCXX
12191
for cc_temp in $compiler""; do
12193
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12194
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12199
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12202
# We don't want -fno-exception wen compiling C++ code, so set the
12203
# no_builtin_flag separately
12204
if test "$GXX" = yes; then
12205
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12207
lt_prog_compiler_no_builtin_flag_CXX=
12210
if test "$GXX" = yes; then
12211
# Set up default GNU C++ configuration
12214
# Check whether --with-gnu-ld was given.
12215
if test "${with_gnu_ld+set}" = set; then
12216
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12222
if test "$GCC" = yes; then
12223
# Check if gcc -print-prog-name=ld gives a path.
12224
{ echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12225
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12228
# gcc leaves a trailing carriage return which upsets mingw
12229
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12231
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12234
# Accept absolute paths.
12236
re_direlt='/[^/][^/]*/\.\./'
12237
# Canonicalize the pathname of ld
12238
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12239
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12240
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12242
test -z "$LD" && LD="$ac_prog"
12245
# If it fails, then pretend we aren't using GCC.
12249
# If it is relative, then search for the first ld in PATH.
12250
with_gnu_ld=unknown
12253
elif test "$with_gnu_ld" = yes; then
12254
{ echo "$as_me:$LINENO: checking for GNU ld" >&5
12255
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12257
{ echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12258
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12260
if test "${lt_cv_path_LD+set}" = set; then
12261
echo $ECHO_N "(cached) $ECHO_C" >&6
12263
if test -z "$LD"; then
12264
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12265
for ac_dir in $PATH; do
12267
test -z "$ac_dir" && ac_dir=.
12268
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12269
lt_cv_path_LD="$ac_dir/$ac_prog"
12270
# Check to see if the program is GNU ld. I'd rather use --version,
12271
# but apparently some variants of GNU ld only accept -v.
12272
# Break only if it was the GNU/non-GNU ld that we prefer.
12273
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12274
*GNU* | *'with BFD'*)
12275
test "$with_gnu_ld" != no && break
12278
test "$with_gnu_ld" != yes && break
12285
lt_cv_path_LD="$LD" # Let the user override the test with a path.
12289
LD="$lt_cv_path_LD"
12290
if test -n "$LD"; then
12291
{ echo "$as_me:$LINENO: result: $LD" >&5
12292
echo "${ECHO_T}$LD" >&6; }
12294
{ echo "$as_me:$LINENO: result: no" >&5
12295
echo "${ECHO_T}no" >&6; }
12297
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12298
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12299
{ (exit 1); exit 1; }; }
12300
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12301
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12302
if test "${lt_cv_prog_gnu_ld+set}" = set; then
12303
echo $ECHO_N "(cached) $ECHO_C" >&6
12305
# I'd rather use --version here, but apparently some GNU lds only accept -v.
12306
case `$LD -v 2>&1 </dev/null` in
12307
*GNU* | *'with BFD'*)
12308
lt_cv_prog_gnu_ld=yes
12311
lt_cv_prog_gnu_ld=no
12315
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12316
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12317
with_gnu_ld=$lt_cv_prog_gnu_ld
12321
# Check if GNU C++ uses GNU ld as the underlying linker, since the
12322
# archiving commands below assume that GNU ld is being used.
12323
if test "$with_gnu_ld" = yes; then
12324
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12325
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'
12327
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12328
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12330
# If archive_cmds runs LD, not CC, wlarc should be empty
12331
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12332
# investigate it a little bit more. (MM)
12335
# ancient GNU ld didn't support --whole-archive et. al.
12336
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12337
grep 'no-whole-archive' > /dev/null; then
12338
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12340
whole_archive_flag_spec_CXX=
12346
# A generic and very simple default shared library creation
12347
# command for GNU C++ for the case where it uses the native
12348
# linker, instead of GNU ld. If possible, this setting should
12349
# overridden to take advantage of the native linker features on
12350
# the platform it is being used on.
12351
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12354
# Commands to make compiler produce verbose output that lists
12355
# what "hidden" libraries, object files and flags are used when
12356
# linking a shared library.
12357
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12365
# PORTME: fill in a description of your system's C++ link characteristics
12366
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12367
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12371
# FIXME: insert proper C++ library support
12375
if test "$host_cpu" = ia64; then
12376
# On IA64, the linker does run time linking by default, so we don't
12377
# have to do anything special.
12378
aix_use_runtimelinking=no
12379
exp_sym_flag='-Bexport'
12382
aix_use_runtimelinking=no
12384
# Test if we are trying to use run time linking or normal
12385
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
12386
# need to do runtime linking.
12387
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12388
for ld_flag in $LDFLAGS; do
12391
aix_use_runtimelinking=yes
12399
exp_sym_flag='-bexport'
12400
no_entry_flag='-bnoentry'
12403
# When large executables or shared objects are built, AIX ld can
12404
# have problems creating the table of contents. If linking a library
12405
# or program results in "error TOC overflow" add -mminimal-toc to
12406
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12407
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12409
archive_cmds_CXX=''
12410
hardcode_direct_CXX=yes
12411
hardcode_libdir_separator_CXX=':'
12412
link_all_deplibs_CXX=yes
12414
if test "$GXX" = yes; then
12415
case $host_os in aix4.[012]|aix4.[012].*)
12416
# We only want to do this on AIX 4.2 and lower, the check
12417
# below for broken collect2 doesn't work under 4.3+
12418
collect2name=`${CC} -print-prog-name=collect2`
12419
if test -f "$collect2name" && \
12420
strings "$collect2name" | grep resolve_lib_name >/dev/null
12422
# We have reworked collect2
12425
# We have old collect2
12426
hardcode_direct_CXX=unsupported
12427
# It fails to find uninstalled libraries when the uninstalled
12428
# path is not listed in the libpath. Setting hardcode_minus_L
12429
# to unsupported forces relinking
12430
hardcode_minus_L_CXX=yes
12431
hardcode_libdir_flag_spec_CXX='-L$libdir'
12432
hardcode_libdir_separator_CXX=
12436
shared_flag='-shared'
12437
if test "$aix_use_runtimelinking" = yes; then
12438
shared_flag="$shared_flag "'${wl}-G'
12442
if test "$host_cpu" = ia64; then
12443
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12444
# chokes on -Wl,-G. The following line is correct:
12447
if test "$aix_use_runtimelinking" = yes; then
12448
shared_flag='${wl}-G'
12450
shared_flag='${wl}-bM:SRE'
12455
# It seems that -bexpall does not export symbols beginning with
12456
# underscore (_), so it is better to generate a list of symbols to export.
12457
always_export_symbols_CXX=yes
12458
if test "$aix_use_runtimelinking" = yes; then
12459
# Warning - without using the other runtime loading flags (-brtl),
12460
# -berok will link without error, but may produce a broken library.
12461
allow_undefined_flag_CXX='-berok'
12462
# Determine the default libpath from the value encoded in an empty executable.
12463
cat >conftest.$ac_ext <<_ACEOF
12466
cat confdefs.h >>conftest.$ac_ext
12467
cat >>conftest.$ac_ext <<_ACEOF
12468
/* end confdefs.h. */
12478
rm -f conftest.$ac_objext conftest$ac_exeext
12479
if { (ac_try="$ac_link"
12480
case "(($ac_try" in
12481
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12482
*) ac_try_echo=$ac_try;;
12484
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12485
(eval "$ac_link") 2>conftest.er1
12487
grep -v '^ *+' conftest.er1 >conftest.err
12489
cat conftest.err >&5
12490
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12491
(exit $ac_status); } && {
12492
test -z "$ac_cxx_werror_flag" ||
12493
test ! -s conftest.err
12494
} && test -s conftest$ac_exeext &&
12495
$as_test_x conftest$ac_exeext; then
12497
lt_aix_libpath_sed='
12498
/Import File Strings/,/^$/ {
12504
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12505
# Check for a 64-bit object if we didn't find anything.
12506
if test -z "$aix_libpath"; then
12507
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12510
echo "$as_me: failed program was:" >&5
12511
sed 's/^/| /' conftest.$ac_ext >&5
12516
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12517
conftest$ac_exeext conftest.$ac_ext
12518
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12520
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12522
archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12524
if test "$host_cpu" = ia64; then
12525
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12526
allow_undefined_flag_CXX="-z nodefs"
12527
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
12529
# Determine the default libpath from the value encoded in an empty executable.
12530
cat >conftest.$ac_ext <<_ACEOF
12533
cat confdefs.h >>conftest.$ac_ext
12534
cat >>conftest.$ac_ext <<_ACEOF
12535
/* end confdefs.h. */
12545
rm -f conftest.$ac_objext conftest$ac_exeext
12546
if { (ac_try="$ac_link"
12547
case "(($ac_try" in
12548
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12549
*) ac_try_echo=$ac_try;;
12551
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12552
(eval "$ac_link") 2>conftest.er1
12554
grep -v '^ *+' conftest.er1 >conftest.err
12556
cat conftest.err >&5
12557
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558
(exit $ac_status); } && {
12559
test -z "$ac_cxx_werror_flag" ||
12560
test ! -s conftest.err
12561
} && test -s conftest$ac_exeext &&
12562
$as_test_x conftest$ac_exeext; then
12564
lt_aix_libpath_sed='
12565
/Import File Strings/,/^$/ {
12571
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12572
# Check for a 64-bit object if we didn't find anything.
12573
if test -z "$aix_libpath"; then
12574
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12577
echo "$as_me: failed program was:" >&5
12578
sed 's/^/| /' conftest.$ac_ext >&5
12583
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12584
conftest$ac_exeext conftest.$ac_ext
12585
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12587
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12588
# Warning - without using the other run time loading flags,
12589
# -berok will link without error, but may produce a broken library.
12590
no_undefined_flag_CXX=' ${wl}-bernotok'
12591
allow_undefined_flag_CXX=' ${wl}-berok'
12592
# Exported symbols can be pulled into shared objects from archives
12593
whole_archive_flag_spec_CXX='$convenience'
12594
archive_cmds_need_lc_CXX=yes
12595
# This is similar to how AIX traditionally builds its shared libraries.
12596
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12602
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12603
allow_undefined_flag_CXX=unsupported
12604
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12605
# support --undefined. This deserves some investigation. FIXME
12606
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12613
case $cc_basename in
12615
# FIXME: insert proper C++ library support
12621
cygwin* | mingw* | pw32*)
12622
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12623
# as there is no search path for DLLs.
12624
hardcode_libdir_flag_spec_CXX='-L$libdir'
12625
allow_undefined_flag_CXX=unsupported
12626
always_export_symbols_CXX=no
12627
enable_shared_with_static_runtimes_CXX=yes
12629
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12630
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12631
# If the export-symbols file already is a .def file (1st line
12632
# is EXPORTS), use it as is; otherwise, prepend...
12633
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12634
cp $export_symbols $output_objdir/$soname.def;
12636
echo EXPORTS > $output_objdir/$soname.def;
12637
cat $export_symbols >> $output_objdir/$soname.def;
12639
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12644
darwin* | rhapsody*)
12645
archive_cmds_need_lc_CXX=no
12646
hardcode_direct_CXX=no
12647
hardcode_automatic_CXX=yes
12648
hardcode_shlibpath_var_CXX=unsupported
12649
whole_archive_flag_spec_CXX=''
12650
link_all_deplibs_CXX=yes
12651
allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12652
if test "$GXX" = yes ; then
12653
output_verbose_link_cmd='echo'
12654
archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12655
module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12656
archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
12657
module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
12658
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12659
archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
12660
archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
12663
case $cc_basename in
12665
output_verbose_link_cmd='echo'
12666
archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
12667
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12668
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12669
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12670
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}'
12680
case $cc_basename in
12682
# FIXME: insert proper C++ library support
12686
# Green Hills C++ Compiler
12687
# FIXME: insert proper C++ library support
12691
# FIXME: insert proper C++ library support
12697
# C++ shared libraries reported to be fairly broken before switch to ELF
12701
archive_cmds_need_lc_CXX=no
12703
freebsd* | dragonfly*)
12704
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12711
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12712
hardcode_libdir_separator_CXX=:
12713
export_dynamic_flag_spec_CXX='${wl}-E'
12714
hardcode_direct_CXX=yes
12715
hardcode_minus_L_CXX=yes # Not in the search PATH,
12716
# but as the default
12717
# location of the library.
12719
case $cc_basename in
12721
# FIXME: insert proper C++ library support
12725
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'
12726
# Commands to make compiler produce verbose output that lists
12727
# what "hidden" libraries, object files and flags are used when
12728
# linking a shared library.
12730
# There doesn't appear to be a way to prevent this compiler from
12731
# explicitly linking system object files so we need to strip them
12732
# from the output so that they don't get included in the library
12734
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'
12737
if test "$GXX" = yes; then
12738
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'
12740
# FIXME: insert proper C++ library support
12747
if test $with_gnu_ld = no; then
12748
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12749
hardcode_libdir_separator_CXX=:
12754
export_dynamic_flag_spec_CXX='${wl}-E'
12760
hardcode_direct_CXX=no
12761
hardcode_shlibpath_var_CXX=no
12764
hardcode_direct_CXX=yes
12765
hardcode_minus_L_CXX=yes # Not in the search PATH,
12766
# but as the default
12767
# location of the library.
12771
case $cc_basename in
12773
# FIXME: insert proper C++ library support
12779
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12782
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12785
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12788
# Commands to make compiler produce verbose output that lists
12789
# what "hidden" libraries, object files and flags are used when
12790
# linking a shared library.
12792
# There doesn't appear to be a way to prevent this compiler from
12793
# explicitly linking system object files so we need to strip them
12794
# from the output so that they don't get included in the library
12796
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'
12799
if test "$GXX" = yes; then
12800
if test $with_gnu_ld = no; then
12803
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12806
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12809
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'
12814
# FIXME: insert proper C++ library support
12821
hardcode_direct_CXX=no
12822
hardcode_shlibpath_var_CXX=no
12823
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12824
export_dynamic_flag_spec_CXX='${wl}-E'
12825
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12826
# Instead, shared libraries are loaded at an image base (0x10000000 by
12827
# default) and relocated if they conflict, which is a slow very memory
12828
# consuming and fragmenting process. To avoid this, we pick a random,
12829
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12830
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
12831
archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12832
archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12835
case $cc_basename in
12838
archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12840
# Archives containing C++ object files must be created using
12841
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
12842
# necessary to make sure instantiated templates are included
12844
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12847
if test "$GXX" = yes; then
12848
if test "$with_gnu_ld" = no; then
12849
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12851
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'
12854
link_all_deplibs_CXX=yes
12857
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12858
hardcode_libdir_separator_CXX=:
12860
linux* | k*bsd*-gnu)
12861
case $cc_basename in
12863
# Kuck and Associates, Inc. (KAI) C++ Compiler
12865
# KCC will only create a shared library if the output file
12866
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12867
# to its proper name (with version) after linking.
12868
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'
12869
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'
12870
# Commands to make compiler produce verbose output that lists
12871
# what "hidden" libraries, object files and flags are used when
12872
# linking a shared library.
12874
# There doesn't appear to be a way to prevent this compiler from
12875
# explicitly linking system object files so we need to strip them
12876
# from the output so that they don't get included in the library
12878
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'
12880
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12881
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12883
# Archives containing C++ object files must be created using
12884
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12885
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12890
# version 8.0 and above of icpc choke on multiply defined symbols
12891
# if we add $predep_objects and $postdep_objects, however 7.1 and
12892
# earlier do not add the objects themselves.
12893
case `$CC -V 2>&1` in
12895
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12896
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'
12898
*) # Version 8.0 or newer
12901
ia64*) tmp_idyn=' -i_dynamic';;
12903
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12904
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'
12907
archive_cmds_need_lc_CXX=no
12908
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12909
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12910
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12913
# Portland Group C++ compiler
12914
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12915
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'
12917
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12918
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12919
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'
12923
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12924
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'
12926
runpath_var=LD_RUN_PATH
12927
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12928
hardcode_libdir_separator_CXX=:
12930
# Commands to make compiler produce verbose output that lists
12931
# what "hidden" libraries, object files and flags are used when
12932
# linking a shared library.
12934
# There doesn't appear to be a way to prevent this compiler from
12935
# explicitly linking system object files so we need to strip them
12936
# from the output so that they don't get included in the library
12938
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'
12941
case `$CC -V 2>&1 | sed 5q` in
12944
no_undefined_flag_CXX=' -zdefs'
12945
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12946
archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12947
hardcode_libdir_flag_spec_CXX='-R$libdir'
12948
whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12950
# Not sure whether something based on
12951
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12953
output_verbose_link_cmd='echo'
12955
# Archives containing C++ object files must be created using
12956
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12957
# necessary to make sure instantiated templates are included
12959
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12966
# FIXME: insert proper C++ library support
12970
# FIXME: insert proper C++ library support
12974
case $cc_basename in
12976
# FIXME: insert proper C++ library support
12980
# FIXME: insert proper C++ library support
12986
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12987
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12989
hardcode_libdir_flag_spec_CXX='-R$libdir'
12990
hardcode_direct_CXX=yes
12991
hardcode_shlibpath_var_CXX=no
12993
# Workaround some broken pre-1.5 toolchains
12994
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12997
# C++ shared libraries are fairly broken
13001
if test -f /usr/libexec/ld.so; then
13002
hardcode_direct_CXX=yes
13003
hardcode_shlibpath_var_CXX=no
13004
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13005
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13006
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13007
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13008
export_dynamic_flag_spec_CXX='${wl}-E'
13009
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13011
output_verbose_link_cmd='echo'
13017
case $cc_basename in
13019
# Kuck and Associates, Inc. (KAI) C++ Compiler
13021
# KCC will only create a shared library if the output file
13022
# ends with ".so" (or ".sl" for HP-UX), so rename the library
13023
# to its proper name (with version) after linking.
13024
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'
13026
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13027
hardcode_libdir_separator_CXX=:
13029
# Archives containing C++ object files must be created using
13030
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
13031
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13035
# Rational C++ 2.4.1
13036
# FIXME: insert proper C++ library support
13040
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13041
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13043
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13044
hardcode_libdir_separator_CXX=:
13046
# Commands to make compiler produce verbose output that lists
13047
# what "hidden" libraries, object files and flags are used when
13048
# linking a shared library.
13050
# There doesn't appear to be a way to prevent this compiler from
13051
# explicitly linking system object files so we need to strip them
13052
# from the output so that they don't get included in the library
13054
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'
13057
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13058
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13059
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13061
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13062
hardcode_libdir_separator_CXX=:
13064
# Commands to make compiler produce verbose output that lists
13065
# what "hidden" libraries, object files and flags are used when
13066
# linking a shared library.
13067
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13070
# FIXME: insert proper C++ library support
13077
case $cc_basename in
13079
# Kuck and Associates, Inc. (KAI) C++ Compiler
13081
# KCC will only create a shared library if the output file
13082
# ends with ".so" (or ".sl" for HP-UX), so rename the library
13083
# to its proper name (with version) after linking.
13084
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'
13086
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13087
hardcode_libdir_separator_CXX=:
13089
# Archives containing C++ object files must be created using
13090
# the KAI C++ compiler.
13091
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13094
# Rational C++ 2.4.1
13095
# FIXME: insert proper C++ library support
13099
allow_undefined_flag_CXX=' -expect_unresolved \*'
13100
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13101
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13102
echo "-hidden">> $lib.exp~
13103
$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
13106
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13107
hardcode_libdir_separator_CXX=:
13109
# Commands to make compiler produce verbose output that lists
13110
# what "hidden" libraries, object files and flags are used when
13111
# linking a shared library.
13113
# There doesn't appear to be a way to prevent this compiler from
13114
# explicitly linking system object files so we need to strip them
13115
# from the output so that they don't get included in the library
13117
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'
13120
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13121
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13122
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13124
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13125
hardcode_libdir_separator_CXX=:
13127
# Commands to make compiler produce verbose output that lists
13128
# what "hidden" libraries, object files and flags are used when
13129
# linking a shared library.
13130
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13133
# FIXME: insert proper C++ library support
13140
# FIXME: insert proper C++ library support
13144
case $cc_basename in
13147
# FIXME: insert proper C++ library support
13152
# FIXME: insert proper C++ library support
13156
# FIXME: insert proper C++ library support
13162
case $cc_basename in
13164
# Sun C++ 4.2, 5.x and Centerline C++
13165
archive_cmds_need_lc_CXX=yes
13166
no_undefined_flag_CXX=' -zdefs'
13167
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13168
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13169
$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'
13171
hardcode_libdir_flag_spec_CXX='-R$libdir'
13172
hardcode_shlibpath_var_CXX=no
13174
solaris2.[0-5] | solaris2.[0-5].*) ;;
13176
# The compiler driver will combine and reorder linker options,
13177
# but understands `-z linker_flag'.
13178
# Supported since Solaris 2.6 (maybe 2.5.1?)
13179
whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13182
link_all_deplibs_CXX=yes
13184
output_verbose_link_cmd='echo'
13186
# Archives containing C++ object files must be created using
13187
# "CC -xar", where "CC" is the Sun C++ compiler. This is
13188
# necessary to make sure instantiated templates are included
13190
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13193
# Green Hills C++ Compiler
13194
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13196
# The C++ compiler must be used to create the archive.
13197
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13200
# GNU C++ compiler with Solaris linker
13201
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13202
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13203
if $CC --version | grep -v '^2\.7' > /dev/null; then
13204
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13205
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13206
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13208
# Commands to make compiler produce verbose output that lists
13209
# what "hidden" libraries, object files and flags are used when
13210
# linking a shared library.
13211
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13213
# g++ 2.7 appears to require `-G' NOT `-shared' on this
13215
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13216
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13217
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13219
# Commands to make compiler produce verbose output that lists
13220
# what "hidden" libraries, object files and flags are used when
13221
# linking a shared library.
13222
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13225
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13227
solaris2.[0-5] | solaris2.[0-5].*) ;;
13229
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13236
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13237
no_undefined_flag_CXX='${wl}-z,text'
13238
archive_cmds_need_lc_CXX=no
13239
hardcode_shlibpath_var_CXX=no
13240
runpath_var='LD_RUN_PATH'
13242
case $cc_basename in
13244
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13245
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13248
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13249
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13253
sysv5* | sco3.2v5* | sco5v6*)
13254
# Note: We can NOT use -z defs as we might desire, because we do not
13255
# link with -lc, and that would cause any symbols used from libc to
13256
# always be unresolved, which means just about no library would
13257
# ever link correctly. If we're not using GNU ld we use -z text
13258
# though, which does catch some bad symbols but isn't as heavy-handed
13260
# For security reasons, it is highly recommended that you always
13261
# use absolute paths for naming shared libraries, and exclude the
13262
# DT_RUNPATH tag from executables and libraries. But doing so
13263
# requires that you compile everything twice, which is a pain.
13264
# So that behaviour is only enabled if SCOABSPATH is set to a
13265
# non-empty value in the environment. Most likely only useful for
13266
# creating official distributions of packages.
13267
# This is a hack until libtool officially supports absolute path
13268
# names for shared libraries.
13269
no_undefined_flag_CXX='${wl}-z,text'
13270
allow_undefined_flag_CXX='${wl}-z,nodefs'
13271
archive_cmds_need_lc_CXX=no
13272
hardcode_shlibpath_var_CXX=no
13273
hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13274
hardcode_libdir_separator_CXX=':'
13275
link_all_deplibs_CXX=yes
13276
export_dynamic_flag_spec_CXX='${wl}-Bexport'
13277
runpath_var='LD_RUN_PATH'
13279
case $cc_basename in
13281
archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13282
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13285
archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13286
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13291
case $cc_basename in
13293
# NonStop-UX NCC 3.20
13294
# FIXME: insert proper C++ library support
13298
# FIXME: insert proper C++ library support
13304
# FIXME: insert proper C++ library support
13308
# FIXME: insert proper C++ library support
13312
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13313
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13314
test "$ld_shlibs_CXX" = no && can_build_shared=no
13319
cat > conftest.$ac_ext <<EOF
13323
Foo (void) { a = 0; }
13329
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13330
(eval $ac_compile) 2>&5
13332
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13333
(exit $ac_status); }; then
13334
# Parse the compiler output and extract the necessary
13335
# objects, libraries and library flags.
13337
# Sentinel used to keep track of whether or not we are before
13338
# the conftest object file.
13339
pre_test_object_deps_done=no
13341
# The `*' in the case matches for architectures that use `case' in
13342
# $output_verbose_cmd can trigger glob expansion during the loop
13343
# eval without this substitution.
13344
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13346
for p in `eval $output_verbose_link_cmd`; do
13350
# Some compilers place space between "-{L,R}" and the path.
13351
# Remove the space.
13352
if test $p = "-L" \
13353
|| test $p = "-R"; then
13360
if test "$pre_test_object_deps_done" = no; then
13363
# Internal compiler library paths should come after those
13364
# provided the user. The postdeps already come after the
13365
# user supplied libs so there is no need to process them.
13366
if test -z "$compiler_lib_search_path_CXX"; then
13367
compiler_lib_search_path_CXX="${prev}${p}"
13369
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13372
# The "-l" case would never come before the object being
13373
# linked, so don't bother handling this case.
13376
if test -z "$postdeps_CXX"; then
13377
postdeps_CXX="${prev}${p}"
13379
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13385
# This assumes that the test object file only shows up
13386
# once in the compiler output.
13387
if test "$p" = "conftest.$objext"; then
13388
pre_test_object_deps_done=yes
13392
if test "$pre_test_object_deps_done" = no; then
13393
if test -z "$predep_objects_CXX"; then
13394
predep_objects_CXX="$p"
13396
predep_objects_CXX="$predep_objects_CXX $p"
13399
if test -z "$postdep_objects_CXX"; then
13400
postdep_objects_CXX="$p"
13402
postdep_objects_CXX="$postdep_objects_CXX $p"
13407
*) ;; # Ignore the rest.
13415
echo "libtool.m4: error: problem compiling CXX test program"
13418
$rm -f confest.$objext
13420
compiler_lib_search_dirs_CXX=
13421
if test -n "$compiler_lib_search_path_CXX"; then
13422
compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13425
# PORTME: override above test on systems where it is broken
13428
# Interix 3.5 installs completely hosed .la files for C++, so rather than
13429
# hack all around it, let's just trust "g++" to DTRT.
13430
predep_objects_CXX=
13431
postdep_objects_CXX=
13436
case `$CC -V 2>&1 | sed 5q` in
13440
# The more standards-conforming stlport4 library is
13441
# incompatible with the Cstd library. Avoid specifying
13442
# it if it's in CXXFLAGS. Ignore libCrun as
13443
# -library=stlport4 depends on it.
13444
case " $CXX $CXXFLAGS " in
13445
*" -library=stlport4 "*)
13446
solaris_use_stlport4=yes
13449
if test "$solaris_use_stlport4" != yes; then
13450
postdeps_CXX='-library=Cstd -library=Crun'
13457
case $cc_basename in
13459
# The more standards-conforming stlport4 library is
13460
# incompatible with the Cstd library. Avoid specifying
13461
# it if it's in CXXFLAGS. Ignore libCrun as
13462
# -library=stlport4 depends on it.
13463
case " $CXX $CXXFLAGS " in
13464
*" -library=stlport4 "*)
13465
solaris_use_stlport4=yes
13469
# Adding this requires a known-good setup of shared libraries for
13470
# Sun compiler versions before 5.6, else PIC objects from an old
13471
# archive will be linked into the output, leading to subtle bugs.
13472
if test "$solaris_use_stlport4" != yes; then
13473
postdeps_CXX='-library=Cstd -library=Crun'
13480
case " $postdeps_CXX " in
13481
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13484
lt_prog_compiler_wl_CXX=
13485
lt_prog_compiler_pic_CXX=
13486
lt_prog_compiler_static_CXX=
13488
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13489
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13491
# C++ specific cases for pic, static, wl, etc.
13492
if test "$GXX" = yes; then
13493
lt_prog_compiler_wl_CXX='-Wl,'
13494
lt_prog_compiler_static_CXX='-static'
13498
# All AIX code is PIC.
13499
if test "$host_cpu" = ia64; then
13500
# AIX 5 now supports IA64 processor
13501
lt_prog_compiler_static_CXX='-Bstatic'
13505
# FIXME: we need at least 68020 code to build shared libraries, but
13506
# adding the `-m68020' flag to GCC prevents building anything better,
13508
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13510
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13511
# PIC is the default for these OSes.
13513
mingw* | cygwin* | os2* | pw32*)
13514
# This hack is so that the source file can tell whether it is being
13515
# built for inclusion in a dll (and should export symbols for example).
13516
# Although the cygwin gcc ignores -fPIC, still need this for old-style
13517
# (--disable-auto-import) libraries
13518
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13520
darwin* | rhapsody*)
13521
# PIC is the default on this platform
13522
# Common symbols not allowed in MH_DYLIB files
13523
lt_prog_compiler_pic_CXX='-fno-common'
13526
# DJGPP does not support shared libraries at all
13527
lt_prog_compiler_pic_CXX=
13530
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
13531
# Instead, we relocate shared libraries at runtime.
13534
if test -d /usr/nec; then
13535
lt_prog_compiler_pic_CXX=-Kconform_pic
13539
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13540
# not for PA HP-UX.
13545
lt_prog_compiler_pic_CXX='-fPIC'
13550
lt_prog_compiler_pic_CXX='-fPIC'
13556
# All AIX code is PIC.
13557
if test "$host_cpu" = ia64; then
13558
# AIX 5 now supports IA64 processor
13559
lt_prog_compiler_static_CXX='-Bstatic'
13561
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13565
case $cc_basename in
13567
# Green Hills C++ Compiler
13568
# _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"
13573
# PIC is the default on this platform
13574
# Common symbols not allowed in MH_DYLIB files
13575
case $cc_basename in
13577
lt_prog_compiler_pic_CXX='-qnocommon'
13578
lt_prog_compiler_wl_CXX='-Wl,'
13583
case $cc_basename in
13585
lt_prog_compiler_pic_CXX='-KPIC'
13588
# Green Hills C++ Compiler
13589
lt_prog_compiler_pic_CXX='-pic'
13595
freebsd* | dragonfly*)
13596
# FreeBSD uses GNU C++
13598
hpux9* | hpux10* | hpux11*)
13599
case $cc_basename in
13601
lt_prog_compiler_wl_CXX='-Wl,'
13602
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13603
if test "$host_cpu" != ia64; then
13604
lt_prog_compiler_pic_CXX='+Z'
13608
lt_prog_compiler_wl_CXX='-Wl,'
13609
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13615
lt_prog_compiler_pic_CXX='+Z'
13624
# This is c89, which is MS Visual C++ (no shared libs)
13625
# Anyone wants to do a port?
13627
irix5* | irix6* | nonstopux*)
13628
case $cc_basename in
13630
lt_prog_compiler_wl_CXX='-Wl,'
13631
lt_prog_compiler_static_CXX='-non_shared'
13632
# CC pic flag -KPIC is the default.
13638
linux* | k*bsd*-gnu)
13639
case $cc_basename in
13642
lt_prog_compiler_wl_CXX='--backend -Wl,'
13643
lt_prog_compiler_pic_CXX='-fPIC'
13647
lt_prog_compiler_wl_CXX='-Wl,'
13648
lt_prog_compiler_pic_CXX='-KPIC'
13649
lt_prog_compiler_static_CXX='-static'
13652
# Portland Group C++ compiler.
13653
lt_prog_compiler_wl_CXX='-Wl,'
13654
lt_prog_compiler_pic_CXX='-fpic'
13655
lt_prog_compiler_static_CXX='-Bstatic'
13659
# Make sure the PIC flag is empty. It appears that all Alpha
13660
# Linux and Compaq Tru64 Unix objects are PIC.
13661
lt_prog_compiler_pic_CXX=
13662
lt_prog_compiler_static_CXX='-non_shared'
13665
case `$CC -V 2>&1 | sed 5q` in
13668
lt_prog_compiler_pic_CXX='-KPIC'
13669
lt_prog_compiler_static_CXX='-Bstatic'
13670
lt_prog_compiler_wl_CXX='-Qoption ld '
13681
case $cc_basename in
13683
lt_prog_compiler_pic_CXX='-W c,exportall'
13691
osf3* | osf4* | osf5*)
13692
case $cc_basename in
13694
lt_prog_compiler_wl_CXX='--backend -Wl,'
13697
# Rational C++ 2.4.1
13698
lt_prog_compiler_pic_CXX='-pic'
13701
# Digital/Compaq C++
13702
lt_prog_compiler_wl_CXX='-Wl,'
13703
# Make sure the PIC flag is empty. It appears that all Alpha
13704
# Linux and Compaq Tru64 Unix objects are PIC.
13705
lt_prog_compiler_pic_CXX=
13706
lt_prog_compiler_static_CXX='-non_shared'
13715
case $cc_basename in
13717
# Sun C++ 4.2, 5.x and Centerline C++
13718
lt_prog_compiler_pic_CXX='-KPIC'
13719
lt_prog_compiler_static_CXX='-Bstatic'
13720
lt_prog_compiler_wl_CXX='-Qoption ld '
13723
# Green Hills C++ Compiler
13724
lt_prog_compiler_pic_CXX='-PIC'
13731
case $cc_basename in
13734
lt_prog_compiler_pic_CXX='-pic'
13735
lt_prog_compiler_static_CXX='-Bstatic'
13739
lt_prog_compiler_pic_CXX='-pic'
13746
case $cc_basename in
13748
# NonStop-UX NCC 3.20
13749
lt_prog_compiler_pic_CXX='-KPIC'
13755
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13756
case $cc_basename in
13758
lt_prog_compiler_wl_CXX='-Wl,'
13759
lt_prog_compiler_pic_CXX='-KPIC'
13760
lt_prog_compiler_static_CXX='-Bstatic'
13767
lt_prog_compiler_can_build_shared_CXX=no
13772
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13773
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13776
# Check to make sure the PIC flag actually works.
13778
if test -n "$lt_prog_compiler_pic_CXX"; then
13780
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13781
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13782
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
13783
echo $ECHO_N "(cached) $ECHO_C" >&6
13785
lt_cv_prog_compiler_pic_works_CXX=no
13786
ac_outfile=conftest.$ac_objext
13787
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13788
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13789
# Insert the option either (1) after the last *FLAGS variable, or
13790
# (2) before a word containing "conftest.", or (3) at the end.
13791
# Note that $ac_compile itself does not contain backslashes and begins
13792
# with a dollar sign (not a hyphen), so the echo should work correctly.
13793
# The option is referenced via a variable to avoid confusing sed.
13794
lt_compile=`echo "$ac_compile" | $SED \
13795
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13796
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13797
-e 's:$: $lt_compiler_flag:'`
13798
(eval echo "\"\$as_me:13798: $lt_compile\"" >&5)
13799
(eval "$lt_compile" 2>conftest.err)
13801
cat conftest.err >&5
13802
echo "$as_me:13802: \$? = $ac_status" >&5
13803
if (exit $ac_status) && test -s "$ac_outfile"; then
13804
# The compiler can only warn and ignore the option if not recognized
13805
# So say no if there are warnings other than the usual output.
13806
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13807
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13808
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13809
lt_cv_prog_compiler_pic_works_CXX=yes
13815
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13816
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13818
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13819
case $lt_prog_compiler_pic_CXX in
13821
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13824
lt_prog_compiler_pic_CXX=
13825
lt_prog_compiler_can_build_shared_CXX=no
13830
# For platforms which do not support PIC, -DPIC is meaningless:
13832
lt_prog_compiler_pic_CXX=
13835
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13840
# Check to make sure the static flag actually works.
13842
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13843
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13844
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13845
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
13846
echo $ECHO_N "(cached) $ECHO_C" >&6
13848
lt_cv_prog_compiler_static_works_CXX=no
13849
save_LDFLAGS="$LDFLAGS"
13850
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13851
echo "$lt_simple_link_test_code" > conftest.$ac_ext
13852
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13853
# The linker can only warn and ignore the option if not recognized
13854
# So say no if there are warnings
13855
if test -s conftest.err; then
13856
# Append any errors to the config.log.
13857
cat conftest.err 1>&5
13858
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13859
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13860
if diff conftest.exp conftest.er2 >/dev/null; then
13861
lt_cv_prog_compiler_static_works_CXX=yes
13864
lt_cv_prog_compiler_static_works_CXX=yes
13868
LDFLAGS="$save_LDFLAGS"
13871
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13872
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
13874
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13877
lt_prog_compiler_static_CXX=
13881
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13882
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13883
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13884
echo $ECHO_N "(cached) $ECHO_C" >&6
13886
lt_cv_prog_compiler_c_o_CXX=no
13887
$rm -r conftest 2>/dev/null
13891
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13893
lt_compiler_flag="-o out/conftest2.$ac_objext"
13894
# Insert the option either (1) after the last *FLAGS variable, or
13895
# (2) before a word containing "conftest.", or (3) at the end.
13896
# Note that $ac_compile itself does not contain backslashes and begins
13897
# with a dollar sign (not a hyphen), so the echo should work correctly.
13898
lt_compile=`echo "$ac_compile" | $SED \
13899
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13900
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13901
-e 's:$: $lt_compiler_flag:'`
13902
(eval echo "\"\$as_me:13902: $lt_compile\"" >&5)
13903
(eval "$lt_compile" 2>out/conftest.err)
13905
cat out/conftest.err >&5
13906
echo "$as_me:13906: \$? = $ac_status" >&5
13907
if (exit $ac_status) && test -s out/conftest2.$ac_objext
13909
# The compiler can only warn and ignore the option if not recognized
13910
# So say no if there are warnings
13911
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13912
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13913
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13914
lt_cv_prog_compiler_c_o_CXX=yes
13919
# SGI C++ compiler will create directory out/ii_files/ for
13920
# template instantiation
13921
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13922
$rm out/* && rmdir out
13928
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13929
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13932
hard_links="nottested"
13933
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13934
# do not overwrite the value of need_locks provided by the user
13935
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13936
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13939
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13941
ln conftest.a conftest.b 2>&5 || hard_links=no
13942
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13943
{ echo "$as_me:$LINENO: result: $hard_links" >&5
13944
echo "${ECHO_T}$hard_links" >&6; }
13945
if test "$hard_links" = no; then
13946
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13947
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13954
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13955
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13957
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13960
# If we're using GNU nm, then we don't want the "-C" option.
13961
# -C means demangle to AIX nm, but means don't demangle with GNU nm
13962
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13963
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'
13965
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'
13969
export_symbols_cmds_CXX="$ltdll_cmds"
13972
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13975
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13978
exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13980
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13981
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13982
test "$ld_shlibs_CXX" = no && can_build_shared=no
13985
# Do we need to explicitly link libc?
13987
case "x$archive_cmds_need_lc_CXX" in
13989
# Assume -lc should be added
13990
archive_cmds_need_lc_CXX=yes
13992
if test "$enable_shared" = yes && test "$GCC" = yes; then
13993
case $archive_cmds_CXX in
13995
# FIXME: we may have to deal with multi-command sequences.
13998
# Test whether the compiler implicitly links with -lc since on some
13999
# systems, -lgcc has to come before -lc. If gcc already passes -lc
14000
# to ld, don't add -lc before -lgcc.
14001
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14002
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14004
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14006
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14007
(eval $ac_compile) 2>&5
14009
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14010
(exit $ac_status); } 2>conftest.err; then
14013
libobjs=conftest.$ac_objext
14015
wl=$lt_prog_compiler_wl_CXX
14016
pic_flag=$lt_prog_compiler_pic_CXX
14022
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14023
allow_undefined_flag_CXX=
14024
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14025
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14027
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14028
(exit $ac_status); }
14030
archive_cmds_need_lc_CXX=no
14032
archive_cmds_need_lc_CXX=yes
14034
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14036
cat conftest.err 1>&5
14039
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14040
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
14047
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14048
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14049
library_names_spec=
14050
libname_spec='lib$name'
14054
postuninstall_cmds=
14058
shlibpath_overrides_runpath=unknown
14060
dynamic_linker="$host_os ld.so"
14061
sys_lib_dlsearch_path_spec="/lib /usr/lib"
14063
need_lib_prefix=unknown
14064
hardcode_into_libs=no
14066
# when you set need_version to no, make sure it does not cause -set_version
14067
# flags to be left without arguments
14068
need_version=unknown
14073
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14074
shlibpath_var=LIBPATH
14076
# AIX 3 has no versioning support, so we append a major version to the name.
14077
soname_spec='${libname}${release}${shared_ext}$major'
14084
hardcode_into_libs=yes
14085
if test "$host_cpu" = ia64; then
14086
# AIX 5 supports IA64
14087
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14088
shlibpath_var=LD_LIBRARY_PATH
14090
# With GCC up to 2.95.x, collect2 would create an import file
14091
# for dependence libraries. The import file would start with
14092
# the line `#! .'. This would cause the generated library to
14093
# depend on `.', always an invalid library. This was fixed in
14094
# development snapshots of GCC prior to 3.0.
14096
aix4 | aix4.[01] | aix4.[01].*)
14097
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14099
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14102
can_build_shared=no
14106
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14107
# soname into executable. Probably we can add versioning support to
14108
# collect2, so additional links can be useful in future.
14109
if test "$aix_use_runtimelinking" = yes; then
14110
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
14111
# instead of lib<name>.a to let people know that these are not
14112
# typical AIX shared libraries.
14113
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14115
# We preserve .a as extension for shared libraries through AIX4.2
14116
# and later when we are not doing run time linking.
14117
library_names_spec='${libname}${release}.a $libname.a'
14118
soname_spec='${libname}${release}${shared_ext}$major'
14120
shlibpath_var=LIBPATH
14125
library_names_spec='$libname.ixlibrary $libname.a'
14126
# Create ${libname}_ixlibrary.a entries in /sys/libs.
14127
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'
14131
library_names_spec='${libname}${shared_ext}'
14132
dynamic_linker="$host_os ld.so"
14133
shlibpath_var=LIBRARY_PATH
14139
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14140
soname_spec='${libname}${release}${shared_ext}$major'
14141
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14142
shlibpath_var=LD_LIBRARY_PATH
14143
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14144
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14145
# the default ld.so.conf also contains /usr/contrib/lib and
14146
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14147
# libtool to hard-code these into programs
14150
cygwin* | mingw* | pw32*)
14151
version_type=windows
14156
case $GCC,$host_os in
14157
yes,cygwin* | yes,mingw* | yes,pw32*)
14158
library_names_spec='$libname.dll.a'
14159
# DLL is installed to $(libdir)/../bin by postinstall_cmds
14160
postinstall_cmds='base_file=`basename \${file}`~
14161
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14162
dldir=$destdir/`dirname \$dlpath`~
14163
test -d \$dldir || mkdir -p \$dldir~
14164
$install_prog $dir/$dlname \$dldir/$dlname~
14165
chmod a+x \$dldir/$dlname'
14166
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14167
dlpath=$dir/\$dldll~
14169
shlibpath_overrides_runpath=yes
14173
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
14174
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14175
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14178
# MinGW DLLs use traditional 'lib' prefix
14179
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14180
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14181
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14182
# It is most probably a Windows format PATH printed by
14183
# mingw gcc, but we are running on Cygwin. Gcc prints its search
14184
# path with ; separators, and with drive letters. We can handle the
14185
# drive letters (cygwin fileutils understands them), so leave them,
14186
# especially as we might pass files found there to a mingw objdump,
14187
# which wouldn't understand a cygwinified path. Ahh.
14188
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14190
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14194
# pw32 DLLs use 'pw' prefix rather than 'lib'
14195
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14201
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14204
dynamic_linker='Win32 ld.exe'
14205
# FIXME: first we should search . and the directory the executable is in
14209
darwin* | rhapsody*)
14210
dynamic_linker="$host_os dyld"
14211
version_type=darwin
14214
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14215
soname_spec='${libname}${release}${major}$shared_ext'
14216
shlibpath_overrides_runpath=yes
14217
shlibpath_var=DYLD_LIBRARY_PATH
14218
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14220
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14227
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14228
soname_spec='${libname}${release}${shared_ext}$major'
14229
shlibpath_var=LD_LIBRARY_PATH
14236
freebsd* | dragonfly*)
14237
# DragonFly does not have aout. When/if they implement a new
14238
# versioning mechanism, adjust this.
14239
if test -x /usr/bin/objformat; then
14240
objformat=`/usr/bin/objformat`
14243
freebsd[123]*) objformat=aout ;;
14244
*) objformat=elf ;;
14247
version_type=freebsd-$objformat
14248
case $version_type in
14250
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14255
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14259
shlibpath_var=LD_LIBRARY_PATH
14262
shlibpath_overrides_runpath=yes
14264
freebsd3.[01]* | freebsdelf3.[01]*)
14265
shlibpath_overrides_runpath=yes
14266
hardcode_into_libs=yes
14268
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14269
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14270
shlibpath_overrides_runpath=no
14271
hardcode_into_libs=yes
14273
*) # from 4.6 on, and DragonFly
14274
shlibpath_overrides_runpath=yes
14275
hardcode_into_libs=yes
14284
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14285
soname_spec='${libname}${release}${shared_ext}$major'
14286
shlibpath_var=LD_LIBRARY_PATH
14287
hardcode_into_libs=yes
14290
hpux9* | hpux10* | hpux11*)
14291
# Give a soname corresponding to the major version so that dld.sl refuses to
14292
# link against other versions.
14299
hardcode_into_libs=yes
14300
dynamic_linker="$host_os dld.so"
14301
shlibpath_var=LD_LIBRARY_PATH
14302
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14303
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14304
soname_spec='${libname}${release}${shared_ext}$major'
14305
if test "X$HPUX_IA64_MODE" = X32; then
14306
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14308
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14310
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14314
hardcode_into_libs=yes
14315
dynamic_linker="$host_os dld.sl"
14316
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14317
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14318
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14319
soname_spec='${libname}${release}${shared_ext}$major'
14320
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14321
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14325
dynamic_linker="$host_os dld.sl"
14326
shlibpath_var=SHLIB_PATH
14327
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14328
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14329
soname_spec='${libname}${release}${shared_ext}$major'
14332
# HP-UX runs *really* slowly unless shared libraries are mode 555.
14333
postinstall_cmds='chmod 555 $lib'
14340
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14341
soname_spec='${libname}${release}${shared_ext}$major'
14342
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14343
shlibpath_var=LD_LIBRARY_PATH
14344
shlibpath_overrides_runpath=no
14345
hardcode_into_libs=yes
14348
irix5* | irix6* | nonstopux*)
14350
nonstopux*) version_type=nonstopux ;;
14352
if test "$lt_cv_prog_gnu_ld" = yes; then
14360
soname_spec='${libname}${release}${shared_ext}$major'
14361
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14363
irix5* | nonstopux*)
14364
libsuff= shlibsuff=
14367
case $LD in # libtool.m4 will add one of these switches to LD
14368
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14369
libsuff= shlibsuff= libmagic=32-bit;;
14370
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14371
libsuff=32 shlibsuff=N32 libmagic=N32;;
14372
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14373
libsuff=64 shlibsuff=64 libmagic=64-bit;;
14374
*) libsuff= shlibsuff= libmagic=never-match;;
14378
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14379
shlibpath_overrides_runpath=no
14380
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14381
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14382
hardcode_into_libs=yes
14385
# No shared lib support for Linux oldld, aout, or coff.
14386
linux*oldld* | linux*aout* | linux*coff*)
14390
# This must be Linux ELF.
14391
linux* | k*bsd*-gnu)
14395
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14396
soname_spec='${libname}${release}${shared_ext}$major'
14397
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14398
shlibpath_var=LD_LIBRARY_PATH
14399
shlibpath_overrides_runpath=no
14400
# This implies no fast_install, which is unacceptable.
14401
# Some rework will be needed to allow for fast_install
14402
# before this can be enabled.
14403
hardcode_into_libs=yes
14405
# Append ld.so.conf contents to the search path
14406
if test -f /etc/ld.so.conf; then
14407
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14408
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14411
# We used to test for /lib/ld.so.1 and disable shared libraries on
14412
# powerpc, because MkLinux only supported shared libraries with the
14413
# GNU dynamic linker. Since this was broken with cross compilers,
14414
# most powerpc-linux boxes support dynamic linking these days and
14415
# people can always --disable-shared, the test was removed, and we
14416
# assume the GNU/Linux dynamic linker is in use.
14417
dynamic_linker='GNU/Linux ld.so'
14424
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14425
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14426
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14427
dynamic_linker='NetBSD (a.out) ld.so'
14429
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14430
soname_spec='${libname}${release}${shared_ext}$major'
14431
dynamic_linker='NetBSD ld.elf_so'
14433
shlibpath_var=LD_LIBRARY_PATH
14434
shlibpath_overrides_runpath=yes
14435
hardcode_into_libs=yes
14440
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14441
shlibpath_var=LD_LIBRARY_PATH
14442
shlibpath_overrides_runpath=yes
14449
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14450
soname_spec='${libname}${release}${shared_ext}$major'
14451
shlibpath_var=LD_LIBRARY_PATH
14452
shlibpath_overrides_runpath=yes
14457
sys_lib_dlsearch_path_spec="/usr/lib"
14459
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14461
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14462
*) need_version=no ;;
14464
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14465
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14466
shlibpath_var=LD_LIBRARY_PATH
14467
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14469
openbsd2.[89] | openbsd2.[89].*)
14470
shlibpath_overrides_runpath=no
14473
shlibpath_overrides_runpath=yes
14477
shlibpath_overrides_runpath=yes
14482
libname_spec='$name'
14485
library_names_spec='$libname${shared_ext} $libname.a'
14486
dynamic_linker='OS/2 ld.exe'
14487
shlibpath_var=LIBPATH
14490
osf3* | osf4* | osf5*)
14494
soname_spec='${libname}${release}${shared_ext}$major'
14495
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14496
shlibpath_var=LD_LIBRARY_PATH
14497
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14498
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14509
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14510
soname_spec='${libname}${release}${shared_ext}$major'
14511
shlibpath_var=LD_LIBRARY_PATH
14512
shlibpath_overrides_runpath=yes
14513
hardcode_into_libs=yes
14514
# ldd complains unless libraries are executable
14515
postinstall_cmds='chmod +x $lib'
14520
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14521
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14522
shlibpath_var=LD_LIBRARY_PATH
14523
shlibpath_overrides_runpath=yes
14524
if test "$with_gnu_ld" = yes; then
14532
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14533
soname_spec='${libname}${release}${shared_ext}$major'
14534
shlibpath_var=LD_LIBRARY_PATH
14535
case $host_vendor in
14537
shlibpath_overrides_runpath=no
14539
export_dynamic_flag_spec='${wl}-Blargedynsym'
14540
runpath_var=LD_RUN_PATH
14548
shlibpath_overrides_runpath=no
14549
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14555
if test -d /usr/nec ;then
14557
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14558
soname_spec='$libname${shared_ext}.$major'
14559
shlibpath_var=LD_LIBRARY_PATH
14563
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14564
version_type=freebsd-elf
14567
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14568
soname_spec='${libname}${release}${shared_ext}$major'
14569
shlibpath_var=LD_LIBRARY_PATH
14570
hardcode_into_libs=yes
14571
if test "$with_gnu_ld" = yes; then
14572
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14573
shlibpath_overrides_runpath=no
14575
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14576
shlibpath_overrides_runpath=yes
14579
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14583
sys_lib_dlsearch_path_spec='/usr/lib'
14588
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14589
soname_spec='${libname}${release}${shared_ext}$major'
14590
shlibpath_var=LD_LIBRARY_PATH
14597
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14598
echo "${ECHO_T}$dynamic_linker" >&6; }
14599
test "$dynamic_linker" = no && can_build_shared=no
14601
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14602
echo $ECHO_N "(cached) $ECHO_C" >&6
14604
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
14607
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14608
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14609
echo $ECHO_N "(cached) $ECHO_C" >&6
14611
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
14614
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14616
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14617
if test "$GCC" = yes; then
14618
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14621
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14622
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14623
hardcode_action_CXX=
14624
if test -n "$hardcode_libdir_flag_spec_CXX" || \
14625
test -n "$runpath_var_CXX" || \
14626
test "X$hardcode_automatic_CXX" = "Xyes" ; then
14628
# We can hardcode non-existant directories.
14629
if test "$hardcode_direct_CXX" != no &&
14630
# If the only mechanism to avoid hardcoding is shlibpath_var, we
14631
# have to relink, otherwise we might link with an installed library
14632
# when we should be linking with a yet-to-be-installed one
14633
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14634
test "$hardcode_minus_L_CXX" != no; then
14635
# Linking always hardcodes the temporary library directory.
14636
hardcode_action_CXX=relink
14638
# We can link without hardcoding, and we can hardcode nonexisting dirs.
14639
hardcode_action_CXX=immediate
14642
# We cannot hardcode anything, or else we can only hardcode existing
14644
hardcode_action_CXX=unsupported
14646
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14647
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14649
if test "$hardcode_action_CXX" = relink; then
14650
# Fast installation is not supported
14651
enable_fast_install=no
14652
elif test "$shlibpath_overrides_runpath" = yes ||
14653
test "$enable_shared" = no; then
14654
# Fast installation is not necessary
14655
enable_fast_install=needless
14659
# The else clause should only fire when bootstrapping the
14660
# libtool distribution, otherwise you forgot to ship ltmain.sh
14661
# with your package, and you will get complaints that there are
14662
# no rules to generate ltmain.sh.
14663
if test -f "$ltmain"; then
14664
# See if we are running on zsh, and set the options which allow our commands through
14665
# without removal of \ escapes.
14666
if test -n "${ZSH_VERSION+set}" ; then
14667
setopt NO_GLOB_SUBST
14669
# Now quote all the things that may contain metacharacters while being
14670
# careful not to overquote the AC_SUBSTed values. We take copies of the
14671
# variables and quote the copies for generation of the libtool script.
14672
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14674
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14675
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14676
deplibs_check_method reload_flag reload_cmds need_locks \
14677
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14678
lt_cv_sys_global_symbol_to_c_name_address \
14679
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14680
old_postinstall_cmds old_postuninstall_cmds \
14684
lt_prog_compiler_wl_CXX \
14685
lt_prog_compiler_pic_CXX \
14686
lt_prog_compiler_static_CXX \
14687
lt_prog_compiler_no_builtin_flag_CXX \
14688
export_dynamic_flag_spec_CXX \
14689
thread_safe_flag_spec_CXX \
14690
whole_archive_flag_spec_CXX \
14691
enable_shared_with_static_runtimes_CXX \
14692
old_archive_cmds_CXX \
14693
old_archive_from_new_cmds_CXX \
14694
predep_objects_CXX \
14695
postdep_objects_CXX \
14698
compiler_lib_search_path_CXX \
14699
compiler_lib_search_dirs_CXX \
14701
archive_expsym_cmds_CXX \
14702
postinstall_cmds_CXX \
14703
postuninstall_cmds_CXX \
14704
old_archive_from_expsyms_cmds_CXX \
14705
allow_undefined_flag_CXX \
14706
no_undefined_flag_CXX \
14707
export_symbols_cmds_CXX \
14708
hardcode_libdir_flag_spec_CXX \
14709
hardcode_libdir_flag_spec_ld_CXX \
14710
hardcode_libdir_separator_CXX \
14711
hardcode_automatic_CXX \
14713
module_expsym_cmds_CXX \
14714
lt_cv_prog_compiler_c_o_CXX \
14715
fix_srcfile_path_CXX \
14716
exclude_expsyms_CXX \
14717
include_expsyms_CXX; do
14720
old_archive_cmds_CXX | \
14721
old_archive_from_new_cmds_CXX | \
14722
archive_cmds_CXX | \
14723
archive_expsym_cmds_CXX | \
14724
module_cmds_CXX | \
14725
module_expsym_cmds_CXX | \
14726
old_archive_from_expsyms_cmds_CXX | \
14727
export_symbols_cmds_CXX | \
14728
extract_expsyms_cmds | reload_cmds | finish_cmds | \
14729
postinstall_cmds | postuninstall_cmds | \
14730
old_postinstall_cmds | old_postuninstall_cmds | \
14731
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14732
# Double-quote double-evaled strings.
14733
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14736
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14742
*'\$0 --fallback-echo"')
14743
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14749
cat <<__EOF__ >> "$cfgfile"
14750
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14752
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14754
# Shell to use when invoking shell scripts.
14757
# Whether or not to build shared libraries.
14758
build_libtool_libs=$enable_shared
14760
# Whether or not to build static libraries.
14761
build_old_libs=$enable_static
14763
# Whether or not to add -lc for building shared libraries.
14764
build_libtool_need_lc=$archive_cmds_need_lc_CXX
14766
# Whether or not to disallow shared libs when runtime libs are static
14767
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14769
# Whether or not to optimize for fast installation.
14770
fast_install=$enable_fast_install
14773
host_alias=$host_alias
14777
# The build system.
14778
build_alias=$build_alias
14782
# An echo program that does not interpret backslashes.
14787
AR_FLAGS=$lt_AR_FLAGS
14792
# LTCC compiler flags.
14793
LTCFLAGS=$lt_LTCFLAGS
14795
# A language-specific compiler.
14796
CC=$lt_compiler_CXX
14798
# Is the compiler the GNU C compiler?
14804
# The linker used to build libraries.
14807
# Whether we need hard or soft links.
14810
# A BSD-compatible nm program.
14813
# A symbol stripping program
14816
# Used to examine libraries when file_magic_cmd begins "file"
14817
MAGIC_CMD=$MAGIC_CMD
14819
# Used on cygwin: DLL creation program.
14822
# Used on cygwin: object dumper.
14825
# Used on cygwin: assembler.
14828
# The name of the directory that contains temporary libtool files.
14831
# How to create reloadable object files.
14832
reload_flag=$lt_reload_flag
14833
reload_cmds=$lt_reload_cmds
14835
# How to pass a linker flag through the compiler.
14836
wl=$lt_lt_prog_compiler_wl_CXX
14838
# Object file suffix (normally "o").
14839
objext="$ac_objext"
14841
# Old archive suffix (normally "a").
14844
# Shared library suffix (normally ".so").
14845
shrext_cmds='$shrext_cmds'
14847
# Executable file suffix (normally "").
14850
# Additional compiler flags for building library objects.
14851
pic_flag=$lt_lt_prog_compiler_pic_CXX
14854
# What is the maximum length of a command?
14855
max_cmd_len=$lt_cv_sys_max_cmd_len
14857
# Does compiler simultaneously support -c and -o options?
14858
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14860
# Must we lock files when doing compilation?
14861
need_locks=$lt_need_locks
14863
# Do we need the lib prefix for modules?
14864
need_lib_prefix=$need_lib_prefix
14866
# Do we need a version for libraries?
14867
need_version=$need_version
14869
# Whether dlopen is supported.
14870
dlopen_support=$enable_dlopen
14872
# Whether dlopen of programs is supported.
14873
dlopen_self=$enable_dlopen_self
14875
# Whether dlopen of statically linked programs is supported.
14876
dlopen_self_static=$enable_dlopen_self_static
14878
# Compiler flag to prevent dynamic linking.
14879
link_static_flag=$lt_lt_prog_compiler_static_CXX
14881
# Compiler flag to turn off builtin functions.
14882
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14884
# Compiler flag to allow reflexive dlopens.
14885
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14887
# Compiler flag to generate shared objects directly from archives.
14888
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14890
# Compiler flag to generate thread-safe objects.
14891
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14893
# Library versioning type.
14894
version_type=$version_type
14896
# Format of library name prefix.
14897
libname_spec=$lt_libname_spec
14899
# List of archive names. First name is the real one, the rest are links.
14900
# The last name is the one that the linker finds with -lNAME.
14901
library_names_spec=$lt_library_names_spec
14903
# The coded name of the library, if different from the real name.
14904
soname_spec=$lt_soname_spec
14906
# Commands used to build and install an old-style archive.
14908
old_archive_cmds=$lt_old_archive_cmds_CXX
14909
old_postinstall_cmds=$lt_old_postinstall_cmds
14910
old_postuninstall_cmds=$lt_old_postuninstall_cmds
14912
# Create an old-style archive from a shared archive.
14913
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14915
# Create a temporary old-style archive to link instead of a shared archive.
14916
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14918
# Commands used to build and install a shared archive.
14919
archive_cmds=$lt_archive_cmds_CXX
14920
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14921
postinstall_cmds=$lt_postinstall_cmds
14922
postuninstall_cmds=$lt_postuninstall_cmds
14924
# Commands used to build a loadable module (assumed same as above if empty)
14925
module_cmds=$lt_module_cmds_CXX
14926
module_expsym_cmds=$lt_module_expsym_cmds_CXX
14928
# Commands to strip libraries.
14929
old_striplib=$lt_old_striplib
14930
striplib=$lt_striplib
14932
# Dependencies to place before the objects being linked to create a
14934
predep_objects=$lt_predep_objects_CXX
14936
# Dependencies to place after the objects being linked to create a
14938
postdep_objects=$lt_postdep_objects_CXX
14940
# Dependencies to place before the objects being linked to create a
14942
predeps=$lt_predeps_CXX
14944
# Dependencies to place after the objects being linked to create a
14946
postdeps=$lt_postdeps_CXX
14948
# The directories searched by this compiler when creating a shared
14950
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14952
# The library search path used internally by the compiler when linking
14953
# a shared library.
14954
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14956
# Method to check whether dependent libraries are shared objects.
14957
deplibs_check_method=$lt_deplibs_check_method
14959
# Command to use when deplibs_check_method == file_magic.
14960
file_magic_cmd=$lt_file_magic_cmd
14962
# Flag that allows shared libraries with undefined symbols to be built.
14963
allow_undefined_flag=$lt_allow_undefined_flag_CXX
14965
# Flag that forces no undefined symbols.
14966
no_undefined_flag=$lt_no_undefined_flag_CXX
14968
# Commands used to finish a libtool library installation in a directory.
14969
finish_cmds=$lt_finish_cmds
14971
# Same as above, but a single script fragment to be evaled but not shown.
14972
finish_eval=$lt_finish_eval
14974
# Take the output of nm and produce a listing of raw symbols and C names.
14975
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14977
# Transform the output of nm in a proper C declaration
14978
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14980
# Transform the output of nm in a C name address pair
14981
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14983
# This is the shared library runtime path variable.
14984
runpath_var=$runpath_var
14986
# This is the shared library path variable.
14987
shlibpath_var=$shlibpath_var
14989
# Is shlibpath searched before the hard-coded library search path?
14990
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14992
# How to hardcode a shared library path into an executable.
14993
hardcode_action=$hardcode_action_CXX
14995
# Whether we should hardcode library paths into libraries.
14996
hardcode_into_libs=$hardcode_into_libs
14998
# Flag to hardcode \$libdir into a binary during linking.
14999
# This must work even if \$libdir does not exist.
15000
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15002
# If ld is used when linking, flag to hardcode \$libdir into
15003
# a binary during linking. This must work even if \$libdir does
15005
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15007
# Whether we need a single -rpath flag with a separated argument.
15008
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15010
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15011
# resulting binary.
15012
hardcode_direct=$hardcode_direct_CXX
15014
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15015
# resulting binary.
15016
hardcode_minus_L=$hardcode_minus_L_CXX
15018
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15019
# the resulting binary.
15020
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15022
# Set to yes if building a shared library automatically hardcodes DIR into the library
15023
# and all subsequent libraries and executables linked against it.
15024
hardcode_automatic=$hardcode_automatic_CXX
15026
# Variables whose values should be saved in libtool wrapper scripts and
15027
# restored at relink time.
15028
variables_saved_for_relink="$variables_saved_for_relink"
15030
# Whether libtool must link a program against all its dependency libraries.
15031
link_all_deplibs=$link_all_deplibs_CXX
15033
# Compile-time system search path for libraries
15034
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15036
# Run-time system search path for libraries
15037
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15039
# Fix the shell variable \$srcfile for the compiler.
15040
fix_srcfile_path=$lt_fix_srcfile_path
15042
# Set to yes if exported symbols are required.
15043
always_export_symbols=$always_export_symbols_CXX
15045
# The commands to list exported symbols.
15046
export_symbols_cmds=$lt_export_symbols_cmds_CXX
15048
# The commands to extract the exported symbol list from a shared archive.
15049
extract_expsyms_cmds=$lt_extract_expsyms_cmds
15051
# Symbols that should not be listed in the preloaded symbols.
15052
exclude_expsyms=$lt_exclude_expsyms_CXX
15054
# Symbols that must always be exported.
15055
include_expsyms=$lt_include_expsyms_CXX
15057
# ### END LIBTOOL TAG CONFIG: $tagname
15063
# If there is no Makefile yet, we rely on a make rule to execute
15064
# `config.status --recheck' to rerun these tests and create the
15065
# libtool script then.
15066
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15067
if test -f "$ltmain_in"; then
15068
test -f Makefile && make "$ltmain"
15074
ac_cpp='$CPP $CPPFLAGS'
15075
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15076
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15077
ac_compiler_gnu=$ac_cv_c_compiler_gnu
15083
with_gnu_ldcxx=$with_gnu_ld
15084
with_gnu_ld=$lt_save_with_gnu_ld
15085
lt_cv_path_LDCXX=$lt_cv_path_LD
15086
lt_cv_path_LD=$lt_save_path_LD
15087
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15088
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15096
if test -n "$F77" && test "X$F77" != "Xno"; then
15099
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15100
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15101
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15104
archive_cmds_need_lc_F77=no
15105
allow_undefined_flag_F77=
15106
always_export_symbols_F77=no
15107
archive_expsym_cmds_F77=
15108
export_dynamic_flag_spec_F77=
15109
hardcode_direct_F77=no
15110
hardcode_libdir_flag_spec_F77=
15111
hardcode_libdir_flag_spec_ld_F77=
15112
hardcode_libdir_separator_F77=
15113
hardcode_minus_L_F77=no
15114
hardcode_automatic_F77=no
15116
module_expsym_cmds_F77=
15117
link_all_deplibs_F77=unknown
15118
old_archive_cmds_F77=$old_archive_cmds
15119
no_undefined_flag_F77=
15120
whole_archive_flag_spec_F77=
15121
enable_shared_with_static_runtimes_F77=no
15123
# Source file extension for f77 test sources.
15126
# Object file extension for compiled f77 test sources.
15130
# Code to be used in simple compile tests
15131
lt_simple_compile_test_code="\
15137
# Code to be used in simple link tests
15138
lt_simple_link_test_code="\
15143
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15145
# If no C compiler was specified, use CC.
15148
# If no C compiler flags were specified, use CFLAGS.
15149
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15151
# Allow CC to be a program name with arguments.
15155
# save warnings/boilerplate of simple test code
15156
ac_outfile=conftest.$ac_objext
15157
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15158
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15159
_lt_compiler_boilerplate=`cat conftest.err`
15162
ac_outfile=conftest.$ac_objext
15163
echo "$lt_simple_link_test_code" >conftest.$ac_ext
15164
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15165
_lt_linker_boilerplate=`cat conftest.err`
15169
# Allow CC to be a program name with arguments.
15174
for cc_temp in $compiler""; do
15176
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15177
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15182
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15185
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15186
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
15187
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
15188
echo "${ECHO_T}$can_build_shared" >&6; }
15190
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15191
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
15192
test "$can_build_shared" = "no" && enable_shared=no
15194
# On AIX, shared libraries and static libraries use the same namespace, and
15195
# are all built from PIC.
15198
test "$enable_shared" = yes && enable_static=no
15199
if test -n "$RANLIB"; then
15200
archive_cmds="$archive_cmds~\$RANLIB \$lib"
15201
postinstall_cmds='$RANLIB $lib'
15205
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15206
test "$enable_shared" = yes && enable_static=no
15210
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
15211
echo "${ECHO_T}$enable_shared" >&6; }
15213
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15214
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
15215
# Make sure either enable_shared or enable_static is yes.
15216
test "$enable_shared" = yes || enable_static=yes
15217
{ echo "$as_me:$LINENO: result: $enable_static" >&5
15218
echo "${ECHO_T}$enable_static" >&6; }
15223
lt_prog_compiler_wl_F77=
15224
lt_prog_compiler_pic_F77=
15225
lt_prog_compiler_static_F77=
15227
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15228
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15230
if test "$GCC" = yes; then
15231
lt_prog_compiler_wl_F77='-Wl,'
15232
lt_prog_compiler_static_F77='-static'
15236
# All AIX code is PIC.
15237
if test "$host_cpu" = ia64; then
15238
# AIX 5 now supports IA64 processor
15239
lt_prog_compiler_static_F77='-Bstatic'
15244
# FIXME: we need at least 68020 code to build shared libraries, but
15245
# adding the `-m68020' flag to GCC prevents building anything better,
15247
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15250
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15251
# PIC is the default for these OSes.
15254
mingw* | cygwin* | pw32* | os2*)
15255
# This hack is so that the source file can tell whether it is being
15256
# built for inclusion in a dll (and should export symbols for example).
15257
# Although the cygwin gcc ignores -fPIC, still need this for old-style
15258
# (--disable-auto-import) libraries
15259
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15262
darwin* | rhapsody*)
15263
# PIC is the default on this platform
15264
# Common symbols not allowed in MH_DYLIB files
15265
lt_prog_compiler_pic_F77='-fno-common'
15269
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
15270
# Instead, we relocate shared libraries at runtime.
15274
# Just because we use GCC doesn't mean we suddenly get shared libraries
15275
# on systems that don't support them.
15276
lt_prog_compiler_can_build_shared_F77=no
15281
if test -d /usr/nec; then
15282
lt_prog_compiler_pic_F77=-Kconform_pic
15287
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15288
# not for PA HP-UX.
15294
lt_prog_compiler_pic_F77='-fPIC'
15300
lt_prog_compiler_pic_F77='-fPIC'
15304
# PORTME Check for flag to pass linker flags through the system compiler.
15307
lt_prog_compiler_wl_F77='-Wl,'
15308
if test "$host_cpu" = ia64; then
15309
# AIX 5 now supports IA64 processor
15310
lt_prog_compiler_static_F77='-Bstatic'
15312
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15316
# PIC is the default on this platform
15317
# Common symbols not allowed in MH_DYLIB files
15318
case $cc_basename in
15320
lt_prog_compiler_pic_F77='-qnocommon'
15321
lt_prog_compiler_wl_F77='-Wl,'
15326
mingw* | cygwin* | pw32* | os2*)
15327
# This hack is so that the source file can tell whether it is being
15328
# built for inclusion in a dll (and should export symbols for example).
15329
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15332
hpux9* | hpux10* | hpux11*)
15333
lt_prog_compiler_wl_F77='-Wl,'
15334
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15335
# not for PA HP-UX.
15341
lt_prog_compiler_pic_F77='+Z'
15344
# Is there a better lt_prog_compiler_static that works with the bundled CC?
15345
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15348
irix5* | irix6* | nonstopux*)
15349
lt_prog_compiler_wl_F77='-Wl,'
15350
# PIC (with -KPIC) is the default.
15351
lt_prog_compiler_static_F77='-non_shared'
15355
lt_prog_compiler_pic_F77='-KPIC'
15356
lt_prog_compiler_static_F77='-Bstatic'
15359
linux* | k*bsd*-gnu)
15360
case $cc_basename in
15362
lt_prog_compiler_wl_F77='-Wl,'
15363
lt_prog_compiler_pic_F77='-KPIC'
15364
lt_prog_compiler_static_F77='-static'
15366
pgcc* | pgf77* | pgf90* | pgf95*)
15367
# Portland Group compilers (*not* the Pentium gcc compiler,
15368
# which looks to be a dead project)
15369
lt_prog_compiler_wl_F77='-Wl,'
15370
lt_prog_compiler_pic_F77='-fpic'
15371
lt_prog_compiler_static_F77='-Bstatic'
15374
lt_prog_compiler_wl_F77='-Wl,'
15375
# All Alpha code is PIC.
15376
lt_prog_compiler_static_F77='-non_shared'
15379
case `$CC -V 2>&1 | sed 5q` in
15382
lt_prog_compiler_pic_F77='-KPIC'
15383
lt_prog_compiler_static_F77='-Bstatic'
15384
lt_prog_compiler_wl_F77='-Wl,'
15387
# Sun Fortran 8.3 passes all unrecognized flags to the linker
15388
lt_prog_compiler_pic_F77='-KPIC'
15389
lt_prog_compiler_static_F77='-Bstatic'
15390
lt_prog_compiler_wl_F77=''
15397
osf3* | osf4* | osf5*)
15398
lt_prog_compiler_wl_F77='-Wl,'
15399
# All OSF/1 code is PIC.
15400
lt_prog_compiler_static_F77='-non_shared'
15404
lt_prog_compiler_static_F77='-non_shared'
15408
lt_prog_compiler_pic_F77='-KPIC'
15409
lt_prog_compiler_static_F77='-Bstatic'
15410
case $cc_basename in
15411
f77* | f90* | f95*)
15412
lt_prog_compiler_wl_F77='-Qoption ld ';;
15414
lt_prog_compiler_wl_F77='-Wl,';;
15419
lt_prog_compiler_wl_F77='-Qoption ld '
15420
lt_prog_compiler_pic_F77='-PIC'
15421
lt_prog_compiler_static_F77='-Bstatic'
15424
sysv4 | sysv4.2uw2* | sysv4.3*)
15425
lt_prog_compiler_wl_F77='-Wl,'
15426
lt_prog_compiler_pic_F77='-KPIC'
15427
lt_prog_compiler_static_F77='-Bstatic'
15431
if test -d /usr/nec ;then
15432
lt_prog_compiler_pic_F77='-Kconform_pic'
15433
lt_prog_compiler_static_F77='-Bstatic'
15437
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15438
lt_prog_compiler_wl_F77='-Wl,'
15439
lt_prog_compiler_pic_F77='-KPIC'
15440
lt_prog_compiler_static_F77='-Bstatic'
15444
lt_prog_compiler_wl_F77='-Wl,'
15445
lt_prog_compiler_can_build_shared_F77=no
15449
lt_prog_compiler_pic_F77='-pic'
15450
lt_prog_compiler_static_F77='-Bstatic'
15454
lt_prog_compiler_can_build_shared_F77=no
15459
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15460
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15463
# Check to make sure the PIC flag actually works.
15465
if test -n "$lt_prog_compiler_pic_F77"; then
15467
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15468
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15469
if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
15470
echo $ECHO_N "(cached) $ECHO_C" >&6
15472
lt_cv_prog_compiler_pic_works_F77=no
15473
ac_outfile=conftest.$ac_objext
15474
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15475
lt_compiler_flag="$lt_prog_compiler_pic_F77"
15476
# Insert the option either (1) after the last *FLAGS variable, or
15477
# (2) before a word containing "conftest.", or (3) at the end.
15478
# Note that $ac_compile itself does not contain backslashes and begins
15479
# with a dollar sign (not a hyphen), so the echo should work correctly.
15480
# The option is referenced via a variable to avoid confusing sed.
15481
lt_compile=`echo "$ac_compile" | $SED \
15482
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15483
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15484
-e 's:$: $lt_compiler_flag:'`
15485
(eval echo "\"\$as_me:15485: $lt_compile\"" >&5)
15486
(eval "$lt_compile" 2>conftest.err)
15488
cat conftest.err >&5
15489
echo "$as_me:15489: \$? = $ac_status" >&5
15490
if (exit $ac_status) && test -s "$ac_outfile"; then
15491
# The compiler can only warn and ignore the option if not recognized
15492
# So say no if there are warnings other than the usual output.
15493
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15494
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15495
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15496
lt_cv_prog_compiler_pic_works_F77=yes
15502
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
15503
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
15505
if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
15506
case $lt_prog_compiler_pic_F77 in
15508
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15511
lt_prog_compiler_pic_F77=
15512
lt_prog_compiler_can_build_shared_F77=no
15517
# For platforms which do not support PIC, -DPIC is meaningless:
15519
lt_prog_compiler_pic_F77=
15522
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15527
# Check to make sure the static flag actually works.
15529
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15530
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15531
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15532
if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
15533
echo $ECHO_N "(cached) $ECHO_C" >&6
15535
lt_cv_prog_compiler_static_works_F77=no
15536
save_LDFLAGS="$LDFLAGS"
15537
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15538
echo "$lt_simple_link_test_code" > conftest.$ac_ext
15539
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15540
# The linker can only warn and ignore the option if not recognized
15541
# So say no if there are warnings
15542
if test -s conftest.err; then
15543
# Append any errors to the config.log.
15544
cat conftest.err 1>&5
15545
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15546
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15547
if diff conftest.exp conftest.er2 >/dev/null; then
15548
lt_cv_prog_compiler_static_works_F77=yes
15551
lt_cv_prog_compiler_static_works_F77=yes
15555
LDFLAGS="$save_LDFLAGS"
15558
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
15559
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
15561
if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
15564
lt_prog_compiler_static_F77=
15568
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15569
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15570
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15571
echo $ECHO_N "(cached) $ECHO_C" >&6
15573
lt_cv_prog_compiler_c_o_F77=no
15574
$rm -r conftest 2>/dev/null
15578
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15580
lt_compiler_flag="-o out/conftest2.$ac_objext"
15581
# Insert the option either (1) after the last *FLAGS variable, or
15582
# (2) before a word containing "conftest.", or (3) at the end.
15583
# Note that $ac_compile itself does not contain backslashes and begins
15584
# with a dollar sign (not a hyphen), so the echo should work correctly.
15585
lt_compile=`echo "$ac_compile" | $SED \
15586
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15587
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15588
-e 's:$: $lt_compiler_flag:'`
15589
(eval echo "\"\$as_me:15589: $lt_compile\"" >&5)
15590
(eval "$lt_compile" 2>out/conftest.err)
15592
cat out/conftest.err >&5
15593
echo "$as_me:15593: \$? = $ac_status" >&5
15594
if (exit $ac_status) && test -s out/conftest2.$ac_objext
15596
# The compiler can only warn and ignore the option if not recognized
15597
# So say no if there are warnings
15598
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15599
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15600
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15601
lt_cv_prog_compiler_c_o_F77=yes
15606
# SGI C++ compiler will create directory out/ii_files/ for
15607
# template instantiation
15608
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15609
$rm out/* && rmdir out
15615
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15616
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15619
hard_links="nottested"
15620
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15621
# do not overwrite the value of need_locks provided by the user
15622
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15623
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15626
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15628
ln conftest.a conftest.b 2>&5 || hard_links=no
15629
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15630
{ echo "$as_me:$LINENO: result: $hard_links" >&5
15631
echo "${ECHO_T}$hard_links" >&6; }
15632
if test "$hard_links" = no; then
15633
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15634
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15641
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15642
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15645
allow_undefined_flag_F77=
15646
enable_shared_with_static_runtimes_F77=no
15648
archive_expsym_cmds_F77=
15649
old_archive_From_new_cmds_F77=
15650
old_archive_from_expsyms_cmds_F77=
15651
export_dynamic_flag_spec_F77=
15652
whole_archive_flag_spec_F77=
15653
thread_safe_flag_spec_F77=
15654
hardcode_libdir_flag_spec_F77=
15655
hardcode_libdir_flag_spec_ld_F77=
15656
hardcode_libdir_separator_F77=
15657
hardcode_direct_F77=no
15658
hardcode_minus_L_F77=no
15659
hardcode_shlibpath_var_F77=unsupported
15660
link_all_deplibs_F77=unknown
15661
hardcode_automatic_F77=no
15663
module_expsym_cmds_F77=
15664
always_export_symbols_F77=no
15665
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15666
# include_expsyms should be a list of space-separated symbols to be *always*
15667
# included in the symbol list
15668
include_expsyms_F77=
15669
# exclude_expsyms can be an extended regexp of symbols to exclude
15670
# it will be wrapped by ` (' and `)$', so one must not match beginning or
15671
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15672
# as well as any symbol that contains `d'.
15673
exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15674
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15675
# platforms (ab)use it in PIC code, but their linkers get confused if
15676
# the symbol is explicitly referenced. Since portable code cannot
15677
# rely on this symbol name, it's probably fine to never include it in
15678
# preloaded symbol tables.
15679
# Exclude shared library initialization/finalization symbols.
15680
extract_expsyms_cmds=
15681
# Just being paranoid about ensuring that cc_basename is set.
15682
for cc_temp in $compiler""; do
15684
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15685
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15690
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15693
cygwin* | mingw* | pw32*)
15694
# FIXME: the MSVC++ port hasn't been tested in a loooong time
15695
# When not using gcc, we currently assume that we are using
15696
# Microsoft Visual C++.
15697
if test "$GCC" != yes; then
15702
# we just hope/assume this is gcc and not c89 (= MSVC++)
15711
if test "$with_gnu_ld" = yes; then
15712
# If archive_cmds runs LD, not CC, wlarc should be empty
15715
# Set some defaults for GNU ld with shared library support. These
15716
# are reset later if shared libraries are not supported. Putting them
15717
# here allows them to be overridden if necessary.
15718
runpath_var=LD_RUN_PATH
15719
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15720
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15721
# ancient GNU ld didn't support --whole-archive et. al.
15722
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15723
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15725
whole_archive_flag_spec_F77=
15727
supports_anon_versioning=no
15728
case `$LD -v 2>/dev/null` in
15729
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15730
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15731
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15732
*\ 2.11.*) ;; # other 2.11 versions
15733
*) supports_anon_versioning=yes ;;
15736
# See if GNU ld supports shared libraries.
15739
# On AIX/PPC, the GNU linker is very broken
15740
if test "$host_cpu" != ia64; then
15744
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15745
*** to be unable to reliably create shared libraries on AIX.
15746
*** Therefore, libtool is disabling shared libraries support. If you
15747
*** really care for shared libraries, you may want to modify your PATH
15748
*** so that a non-GNU linker is found, and then restart.
15755
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)'
15756
hardcode_libdir_flag_spec_F77='-L$libdir'
15757
hardcode_minus_L_F77=yes
15759
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15760
# that the semantics of dynamic libraries on AmigaOS, at least up
15761
# to version 4, is to share data among multiple programs linked
15762
# with the same dynamic library. Since this doesn't match the
15763
# behavior of shared libraries on other platforms, we can't use
15769
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15770
allow_undefined_flag_F77=unsupported
15771
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15772
# support --undefined. This deserves some investigation. FIXME
15773
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15779
cygwin* | mingw* | pw32*)
15780
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15781
# as there is no search path for DLLs.
15782
hardcode_libdir_flag_spec_F77='-L$libdir'
15783
allow_undefined_flag_F77=unsupported
15784
always_export_symbols_F77=no
15785
enable_shared_with_static_runtimes_F77=yes
15786
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15788
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15789
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15790
# If the export-symbols file already is a .def file (1st line
15791
# is EXPORTS), use it as is; otherwise, prepend...
15792
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15793
cp $export_symbols $output_objdir/$soname.def;
15795
echo EXPORTS > $output_objdir/$soname.def;
15796
cat $export_symbols >> $output_objdir/$soname.def;
15798
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15805
hardcode_direct_F77=no
15806
hardcode_shlibpath_var_F77=no
15807
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15808
export_dynamic_flag_spec_F77='${wl}-E'
15809
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15810
# Instead, shared libraries are loaded at an image base (0x10000000 by
15811
# default) and relocated if they conflict, which is a slow very memory
15812
# consuming and fragmenting process. To avoid this, we pick a random,
15813
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15814
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
15815
archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15816
archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15819
gnu* | linux* | k*bsd*-gnu)
15820
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15822
case $cc_basename,$host_cpu in
15823
pgcc*) # Portland Group C compiler
15824
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'
15825
tmp_addflag=' $pic_flag'
15827
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15828
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'
15829
tmp_addflag=' $pic_flag -Mnomain' ;;
15830
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15831
tmp_addflag=' -i_dynamic' ;;
15832
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15833
tmp_addflag=' -i_dynamic -nofor_main' ;;
15834
ifc* | ifort*) # Intel Fortran compiler
15835
tmp_addflag=' -nofor_main' ;;
15837
case `$CC -V 2>&1 | sed 5q` in
15838
*Sun\ C*) # Sun C 5.9
15839
whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15840
tmp_sharedflag='-G' ;;
15841
*Sun\ F*) # Sun Fortran 8.3
15842
tmp_sharedflag='-G' ;;
15844
tmp_sharedflag='-shared' ;;
15846
archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15848
if test $supports_anon_versioning = yes; then
15849
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15850
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15851
$echo "local: *; };" >> $output_objdir/$libname.ver~
15852
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15860
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15861
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15864
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15865
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15870
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15874
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15875
*** create shared libraries on Solaris systems. Therefore, libtool
15876
*** is disabling shared libraries support. We urge you to upgrade GNU
15877
*** binutils to release 2.9.1 or newer. Another option is to modify
15878
*** your PATH or compiler configuration so that the native linker is
15879
*** used, and then restart.
15882
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15883
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15884
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15890
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15891
case `$LD -v 2>&1` in
15892
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15896
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15897
*** reliably create shared libraries on SCO systems. Therefore, libtool
15898
*** is disabling shared libraries support. We urge you to upgrade GNU
15899
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15900
*** your PATH or compiler configuration so that the native linker is
15901
*** used, and then restart.
15906
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15907
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15908
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15909
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15918
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15920
hardcode_direct_F77=yes
15921
hardcode_shlibpath_var_F77=no
15925
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15926
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15927
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15934
if test "$ld_shlibs_F77" = no; then
15936
hardcode_libdir_flag_spec_F77=
15937
export_dynamic_flag_spec_F77=
15938
whole_archive_flag_spec_F77=
15941
# PORTME fill in a description of your system's linker (not GNU ld)
15944
allow_undefined_flag_F77=unsupported
15945
always_export_symbols_F77=yes
15946
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'
15947
# Note: this linker hardcodes the directories in LIBPATH if there
15948
# are no directories specified by -L.
15949
hardcode_minus_L_F77=yes
15950
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15951
# Neither direct hardcoding nor static linking is supported with a
15953
hardcode_direct_F77=unsupported
15958
if test "$host_cpu" = ia64; then
15959
# On IA64, the linker does run time linking by default, so we don't
15960
# have to do anything special.
15961
aix_use_runtimelinking=no
15962
exp_sym_flag='-Bexport'
15965
# If we're using GNU nm, then we don't want the "-C" option.
15966
# -C means demangle to AIX nm, but means don't demangle with GNU nm
15967
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15968
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'
15970
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'
15972
aix_use_runtimelinking=no
15974
# Test if we are trying to use run time linking or normal
15975
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15976
# need to do runtime linking.
15977
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15978
for ld_flag in $LDFLAGS; do
15979
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15980
aix_use_runtimelinking=yes
15987
exp_sym_flag='-bexport'
15988
no_entry_flag='-bnoentry'
15991
# When large executables or shared objects are built, AIX ld can
15992
# have problems creating the table of contents. If linking a library
15993
# or program results in "error TOC overflow" add -mminimal-toc to
15994
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15995
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15997
archive_cmds_F77=''
15998
hardcode_direct_F77=yes
15999
hardcode_libdir_separator_F77=':'
16000
link_all_deplibs_F77=yes
16002
if test "$GCC" = yes; then
16003
case $host_os in aix4.[012]|aix4.[012].*)
16004
# We only want to do this on AIX 4.2 and lower, the check
16005
# below for broken collect2 doesn't work under 4.3+
16006
collect2name=`${CC} -print-prog-name=collect2`
16007
if test -f "$collect2name" && \
16008
strings "$collect2name" | grep resolve_lib_name >/dev/null
16010
# We have reworked collect2
16013
# We have old collect2
16014
hardcode_direct_F77=unsupported
16015
# It fails to find uninstalled libraries when the uninstalled
16016
# path is not listed in the libpath. Setting hardcode_minus_L
16017
# to unsupported forces relinking
16018
hardcode_minus_L_F77=yes
16019
hardcode_libdir_flag_spec_F77='-L$libdir'
16020
hardcode_libdir_separator_F77=
16024
shared_flag='-shared'
16025
if test "$aix_use_runtimelinking" = yes; then
16026
shared_flag="$shared_flag "'${wl}-G'
16030
if test "$host_cpu" = ia64; then
16031
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16032
# chokes on -Wl,-G. The following line is correct:
16035
if test "$aix_use_runtimelinking" = yes; then
16036
shared_flag='${wl}-G'
16038
shared_flag='${wl}-bM:SRE'
16043
# It seems that -bexpall does not export symbols beginning with
16044
# underscore (_), so it is better to generate a list of symbols to export.
16045
always_export_symbols_F77=yes
16046
if test "$aix_use_runtimelinking" = yes; then
16047
# Warning - without using the other runtime loading flags (-brtl),
16048
# -berok will link without error, but may produce a broken library.
16049
allow_undefined_flag_F77='-berok'
16050
# Determine the default libpath from the value encoded in an empty executable.
16051
cat >conftest.$ac_ext <<_ACEOF
16056
rm -f conftest.$ac_objext conftest$ac_exeext
16057
if { (ac_try="$ac_link"
16058
case "(($ac_try" in
16059
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16060
*) ac_try_echo=$ac_try;;
16062
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16063
(eval "$ac_link") 2>conftest.er1
16065
grep -v '^ *+' conftest.er1 >conftest.err
16067
cat conftest.err >&5
16068
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16069
(exit $ac_status); } && {
16070
test -z "$ac_f77_werror_flag" ||
16071
test ! -s conftest.err
16072
} && test -s conftest$ac_exeext &&
16073
$as_test_x conftest$ac_exeext; then
16075
lt_aix_libpath_sed='
16076
/Import File Strings/,/^$/ {
16082
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16083
# Check for a 64-bit object if we didn't find anything.
16084
if test -z "$aix_libpath"; then
16085
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16088
echo "$as_me: failed program was:" >&5
16089
sed 's/^/| /' conftest.$ac_ext >&5
16094
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16095
conftest$ac_exeext conftest.$ac_ext
16096
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16098
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16099
archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16101
if test "$host_cpu" = ia64; then
16102
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16103
allow_undefined_flag_F77="-z nodefs"
16104
archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16106
# Determine the default libpath from the value encoded in an empty executable.
16107
cat >conftest.$ac_ext <<_ACEOF
16112
rm -f conftest.$ac_objext conftest$ac_exeext
16113
if { (ac_try="$ac_link"
16114
case "(($ac_try" in
16115
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16116
*) ac_try_echo=$ac_try;;
16118
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16119
(eval "$ac_link") 2>conftest.er1
16121
grep -v '^ *+' conftest.er1 >conftest.err
16123
cat conftest.err >&5
16124
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16125
(exit $ac_status); } && {
16126
test -z "$ac_f77_werror_flag" ||
16127
test ! -s conftest.err
16128
} && test -s conftest$ac_exeext &&
16129
$as_test_x conftest$ac_exeext; then
16131
lt_aix_libpath_sed='
16132
/Import File Strings/,/^$/ {
16138
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16139
# Check for a 64-bit object if we didn't find anything.
16140
if test -z "$aix_libpath"; then
16141
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16144
echo "$as_me: failed program was:" >&5
16145
sed 's/^/| /' conftest.$ac_ext >&5
16150
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16151
conftest$ac_exeext conftest.$ac_ext
16152
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16154
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16155
# Warning - without using the other run time loading flags,
16156
# -berok will link without error, but may produce a broken library.
16157
no_undefined_flag_F77=' ${wl}-bernotok'
16158
allow_undefined_flag_F77=' ${wl}-berok'
16159
# Exported symbols can be pulled into shared objects from archives
16160
whole_archive_flag_spec_F77='$convenience'
16161
archive_cmds_need_lc_F77=yes
16162
# This is similar to how AIX traditionally builds its shared libraries.
16163
archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16169
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)'
16170
hardcode_libdir_flag_spec_F77='-L$libdir'
16171
hardcode_minus_L_F77=yes
16172
# see comment about different semantics on the GNU ld section
16177
export_dynamic_flag_spec_F77=-rdynamic
16180
cygwin* | mingw* | pw32*)
16181
# When not using gcc, we currently assume that we are using
16182
# Microsoft Visual C++.
16183
# hardcode_libdir_flag_spec is actually meaningless, as there is
16184
# no search path for DLLs.
16185
hardcode_libdir_flag_spec_F77=' '
16186
allow_undefined_flag_F77=unsupported
16187
# Tell ltmain to make .lib files, not .a files.
16189
# Tell ltmain to make .dll files, not .so files.
16191
# FIXME: Setting linknames here is a bad hack.
16192
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16193
# The linker will automatically build a .lib file if we build a DLL.
16194
old_archive_From_new_cmds_F77='true'
16195
# FIXME: Should let the user specify the lib program.
16196
old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
16197
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16198
enable_shared_with_static_runtimes_F77=yes
16201
darwin* | rhapsody*)
16203
rhapsody* | darwin1.[012])
16204
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16207
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16208
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16210
case ${MACOSX_DEPLOYMENT_TARGET} in
16212
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16215
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16221
archive_cmds_need_lc_F77=no
16222
hardcode_direct_F77=no
16223
hardcode_automatic_F77=yes
16224
hardcode_shlibpath_var_F77=unsupported
16225
whole_archive_flag_spec_F77=''
16226
link_all_deplibs_F77=yes
16227
if test "$GCC" = yes ; then
16228
output_verbose_link_cmd='echo'
16229
archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16230
module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16231
archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
16232
module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
16234
case $cc_basename in
16236
output_verbose_link_cmd='echo'
16237
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
16238
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16239
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16240
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16241
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}'
16251
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16252
hardcode_libdir_flag_spec_F77='-L$libdir'
16253
hardcode_shlibpath_var_F77=no
16260
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16261
# support. Future versions do this automatically, but an explicit c++rt0.o
16262
# does not break anything, and helps significantly (at the cost of a little
16265
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16266
hardcode_libdir_flag_spec_F77='-R$libdir'
16267
hardcode_direct_F77=yes
16268
hardcode_shlibpath_var_F77=no
16271
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
16273
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16274
hardcode_direct_F77=yes
16275
hardcode_minus_L_F77=yes
16276
hardcode_shlibpath_var_F77=no
16279
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16280
freebsd* | dragonfly*)
16281
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16282
hardcode_libdir_flag_spec_F77='-R$libdir'
16283
hardcode_direct_F77=yes
16284
hardcode_shlibpath_var_F77=no
16288
if test "$GCC" = yes; then
16289
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'
16291
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'
16293
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16294
hardcode_libdir_separator_F77=:
16295
hardcode_direct_F77=yes
16297
# hardcode_minus_L: Not really in the search PATH,
16298
# but as the default location of the library.
16299
hardcode_minus_L_F77=yes
16300
export_dynamic_flag_spec_F77='${wl}-E'
16304
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16305
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16307
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16309
if test "$with_gnu_ld" = no; then
16310
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16311
hardcode_libdir_separator_F77=:
16313
hardcode_direct_F77=yes
16314
export_dynamic_flag_spec_F77='${wl}-E'
16316
# hardcode_minus_L: Not really in the search PATH,
16317
# but as the default location of the library.
16318
hardcode_minus_L_F77=yes
16323
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16326
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16329
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16332
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16338
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16341
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16344
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16348
if test "$with_gnu_ld" = no; then
16349
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16350
hardcode_libdir_separator_F77=:
16354
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16355
hardcode_direct_F77=no
16356
hardcode_shlibpath_var_F77=no
16359
hardcode_direct_F77=yes
16360
export_dynamic_flag_spec_F77='${wl}-E'
16362
# hardcode_minus_L: Not really in the search PATH,
16363
# but as the default location of the library.
16364
hardcode_minus_L_F77=yes
16370
irix5* | irix6* | nonstopux*)
16371
if test "$GCC" = yes; then
16372
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'
16374
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'
16375
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16377
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16378
hardcode_libdir_separator_F77=:
16379
link_all_deplibs_F77=yes
16383
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16384
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16386
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16388
hardcode_libdir_flag_spec_F77='-R$libdir'
16389
hardcode_direct_F77=yes
16390
hardcode_shlibpath_var_F77=no
16394
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16395
hardcode_direct_F77=yes
16396
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16397
hardcode_libdir_separator_F77=:
16398
hardcode_shlibpath_var_F77=no
16402
if test -f /usr/libexec/ld.so; then
16403
hardcode_direct_F77=yes
16404
hardcode_shlibpath_var_F77=no
16405
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16406
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16407
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16408
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16409
export_dynamic_flag_spec_F77='${wl}-E'
16412
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16413
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16414
hardcode_libdir_flag_spec_F77='-R$libdir'
16417
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16418
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16428
hardcode_libdir_flag_spec_F77='-L$libdir'
16429
hardcode_minus_L_F77=yes
16430
allow_undefined_flag_F77=unsupported
16431
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'
16432
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16436
if test "$GCC" = yes; then
16437
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16438
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'
16440
allow_undefined_flag_F77=' -expect_unresolved \*'
16441
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'
16443
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16444
hardcode_libdir_separator_F77=:
16447
osf4* | osf5*) # as osf3* with the addition of -msym flag
16448
if test "$GCC" = yes; then
16449
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16450
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'
16451
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16453
allow_undefined_flag_F77=' -expect_unresolved \*'
16454
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'
16455
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~
16456
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
16458
# Both c and cxx compiler support -rpath directly
16459
hardcode_libdir_flag_spec_F77='-rpath $libdir'
16461
hardcode_libdir_separator_F77=:
16465
no_undefined_flag_F77=' -z text'
16466
if test "$GCC" = yes; then
16468
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16469
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16470
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16473
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16474
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16475
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16477
hardcode_libdir_flag_spec_F77='-R$libdir'
16478
hardcode_shlibpath_var_F77=no
16480
solaris2.[0-5] | solaris2.[0-5].*) ;;
16482
# The compiler driver will combine and reorder linker options,
16483
# but understands `-z linker_flag'. GCC discards it without `$wl',
16484
# but is careful enough not to reorder.
16485
# Supported since Solaris 2.6 (maybe 2.5.1?)
16486
if test "$GCC" = yes; then
16487
whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16489
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
16493
link_all_deplibs_F77=yes
16497
if test "x$host_vendor" = xsequent; then
16498
# Use $CC to link under sequent, because it throws in some extra .o
16499
# files that make .init and .fini sections work.
16500
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16502
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16504
hardcode_libdir_flag_spec_F77='-L$libdir'
16505
hardcode_direct_F77=yes
16506
hardcode_minus_L_F77=yes
16507
hardcode_shlibpath_var_F77=no
16511
case $host_vendor in
16513
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16514
hardcode_direct_F77=yes # is this really true???
16517
## LD is ld it makes a PLAMLIB
16518
## CC just makes a GrossModule.
16519
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16520
reload_cmds_F77='$CC -r -o $output$reload_objs'
16521
hardcode_direct_F77=no
16524
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16525
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16528
runpath_var='LD_RUN_PATH'
16529
hardcode_shlibpath_var_F77=no
16533
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16534
hardcode_shlibpath_var_F77=no
16535
export_dynamic_flag_spec_F77='-Bexport'
16539
if test -d /usr/nec; then
16540
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16541
hardcode_shlibpath_var_F77=no
16542
runpath_var=LD_RUN_PATH
16543
hardcode_runpath_var=yes
16548
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16549
no_undefined_flag_F77='${wl}-z,text'
16550
archive_cmds_need_lc_F77=no
16551
hardcode_shlibpath_var_F77=no
16552
runpath_var='LD_RUN_PATH'
16554
if test "$GCC" = yes; then
16555
archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16556
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16558
archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16559
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16563
sysv5* | sco3.2v5* | sco5v6*)
16564
# Note: We can NOT use -z defs as we might desire, because we do not
16565
# link with -lc, and that would cause any symbols used from libc to
16566
# always be unresolved, which means just about no library would
16567
# ever link correctly. If we're not using GNU ld we use -z text
16568
# though, which does catch some bad symbols but isn't as heavy-handed
16570
no_undefined_flag_F77='${wl}-z,text'
16571
allow_undefined_flag_F77='${wl}-z,nodefs'
16572
archive_cmds_need_lc_F77=no
16573
hardcode_shlibpath_var_F77=no
16574
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16575
hardcode_libdir_separator_F77=':'
16576
link_all_deplibs_F77=yes
16577
export_dynamic_flag_spec_F77='${wl}-Bexport'
16578
runpath_var='LD_RUN_PATH'
16580
if test "$GCC" = yes; then
16581
archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16582
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16584
archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16585
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16590
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16591
hardcode_libdir_flag_spec_F77='-L$libdir'
16592
hardcode_shlibpath_var_F77=no
16601
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16602
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16603
test "$ld_shlibs_F77" = no && can_build_shared=no
16606
# Do we need to explicitly link libc?
16608
case "x$archive_cmds_need_lc_F77" in
16610
# Assume -lc should be added
16611
archive_cmds_need_lc_F77=yes
16613
if test "$enable_shared" = yes && test "$GCC" = yes; then
16614
case $archive_cmds_F77 in
16616
# FIXME: we may have to deal with multi-command sequences.
16619
# Test whether the compiler implicitly links with -lc since on some
16620
# systems, -lgcc has to come before -lc. If gcc already passes -lc
16621
# to ld, don't add -lc before -lgcc.
16622
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16623
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16625
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16627
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16628
(eval $ac_compile) 2>&5
16630
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16631
(exit $ac_status); } 2>conftest.err; then
16634
libobjs=conftest.$ac_objext
16636
wl=$lt_prog_compiler_wl_F77
16637
pic_flag=$lt_prog_compiler_pic_F77
16643
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16644
allow_undefined_flag_F77=
16645
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16646
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16648
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16649
(exit $ac_status); }
16651
archive_cmds_need_lc_F77=no
16653
archive_cmds_need_lc_F77=yes
16655
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16657
cat conftest.err 1>&5
16660
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16661
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16668
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16669
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16670
library_names_spec=
16671
libname_spec='lib$name'
16675
postuninstall_cmds=
16679
shlibpath_overrides_runpath=unknown
16681
dynamic_linker="$host_os ld.so"
16682
sys_lib_dlsearch_path_spec="/lib /usr/lib"
16684
need_lib_prefix=unknown
16685
hardcode_into_libs=no
16687
# when you set need_version to no, make sure it does not cause -set_version
16688
# flags to be left without arguments
16689
need_version=unknown
16694
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16695
shlibpath_var=LIBPATH
16697
# AIX 3 has no versioning support, so we append a major version to the name.
16698
soname_spec='${libname}${release}${shared_ext}$major'
16705
hardcode_into_libs=yes
16706
if test "$host_cpu" = ia64; then
16707
# AIX 5 supports IA64
16708
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16709
shlibpath_var=LD_LIBRARY_PATH
16711
# With GCC up to 2.95.x, collect2 would create an import file
16712
# for dependence libraries. The import file would start with
16713
# the line `#! .'. This would cause the generated library to
16714
# depend on `.', always an invalid library. This was fixed in
16715
# development snapshots of GCC prior to 3.0.
16717
aix4 | aix4.[01] | aix4.[01].*)
16718
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16720
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16723
can_build_shared=no
16727
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16728
# soname into executable. Probably we can add versioning support to
16729
# collect2, so additional links can be useful in future.
16730
if test "$aix_use_runtimelinking" = yes; then
16731
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
16732
# instead of lib<name>.a to let people know that these are not
16733
# typical AIX shared libraries.
16734
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16736
# We preserve .a as extension for shared libraries through AIX4.2
16737
# and later when we are not doing run time linking.
16738
library_names_spec='${libname}${release}.a $libname.a'
16739
soname_spec='${libname}${release}${shared_ext}$major'
16741
shlibpath_var=LIBPATH
16746
library_names_spec='$libname.ixlibrary $libname.a'
16747
# Create ${libname}_ixlibrary.a entries in /sys/libs.
16748
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'
16752
library_names_spec='${libname}${shared_ext}'
16753
dynamic_linker="$host_os ld.so"
16754
shlibpath_var=LIBRARY_PATH
16760
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16761
soname_spec='${libname}${release}${shared_ext}$major'
16762
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16763
shlibpath_var=LD_LIBRARY_PATH
16764
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16765
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16766
# the default ld.so.conf also contains /usr/contrib/lib and
16767
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16768
# libtool to hard-code these into programs
16771
cygwin* | mingw* | pw32*)
16772
version_type=windows
16777
case $GCC,$host_os in
16778
yes,cygwin* | yes,mingw* | yes,pw32*)
16779
library_names_spec='$libname.dll.a'
16780
# DLL is installed to $(libdir)/../bin by postinstall_cmds
16781
postinstall_cmds='base_file=`basename \${file}`~
16782
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16783
dldir=$destdir/`dirname \$dlpath`~
16784
test -d \$dldir || mkdir -p \$dldir~
16785
$install_prog $dir/$dlname \$dldir/$dlname~
16786
chmod a+x \$dldir/$dlname'
16787
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16788
dlpath=$dir/\$dldll~
16790
shlibpath_overrides_runpath=yes
16794
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
16795
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16796
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16799
# MinGW DLLs use traditional 'lib' prefix
16800
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16801
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16802
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16803
# It is most probably a Windows format PATH printed by
16804
# mingw gcc, but we are running on Cygwin. Gcc prints its search
16805
# path with ; separators, and with drive letters. We can handle the
16806
# drive letters (cygwin fileutils understands them), so leave them,
16807
# especially as we might pass files found there to a mingw objdump,
16808
# which wouldn't understand a cygwinified path. Ahh.
16809
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16811
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16815
# pw32 DLLs use 'pw' prefix rather than 'lib'
16816
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16822
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16825
dynamic_linker='Win32 ld.exe'
16826
# FIXME: first we should search . and the directory the executable is in
16830
darwin* | rhapsody*)
16831
dynamic_linker="$host_os dyld"
16832
version_type=darwin
16835
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16836
soname_spec='${libname}${release}${major}$shared_ext'
16837
shlibpath_overrides_runpath=yes
16838
shlibpath_var=DYLD_LIBRARY_PATH
16839
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16841
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16848
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16849
soname_spec='${libname}${release}${shared_ext}$major'
16850
shlibpath_var=LD_LIBRARY_PATH
16857
freebsd* | dragonfly*)
16858
# DragonFly does not have aout. When/if they implement a new
16859
# versioning mechanism, adjust this.
16860
if test -x /usr/bin/objformat; then
16861
objformat=`/usr/bin/objformat`
16864
freebsd[123]*) objformat=aout ;;
16865
*) objformat=elf ;;
16868
version_type=freebsd-$objformat
16869
case $version_type in
16871
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16876
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16880
shlibpath_var=LD_LIBRARY_PATH
16883
shlibpath_overrides_runpath=yes
16885
freebsd3.[01]* | freebsdelf3.[01]*)
16886
shlibpath_overrides_runpath=yes
16887
hardcode_into_libs=yes
16889
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16890
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16891
shlibpath_overrides_runpath=no
16892
hardcode_into_libs=yes
16894
*) # from 4.6 on, and DragonFly
16895
shlibpath_overrides_runpath=yes
16896
hardcode_into_libs=yes
16905
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16906
soname_spec='${libname}${release}${shared_ext}$major'
16907
shlibpath_var=LD_LIBRARY_PATH
16908
hardcode_into_libs=yes
16911
hpux9* | hpux10* | hpux11*)
16912
# Give a soname corresponding to the major version so that dld.sl refuses to
16913
# link against other versions.
16920
hardcode_into_libs=yes
16921
dynamic_linker="$host_os dld.so"
16922
shlibpath_var=LD_LIBRARY_PATH
16923
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16924
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16925
soname_spec='${libname}${release}${shared_ext}$major'
16926
if test "X$HPUX_IA64_MODE" = X32; then
16927
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16929
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16931
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16935
hardcode_into_libs=yes
16936
dynamic_linker="$host_os dld.sl"
16937
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16938
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16939
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16940
soname_spec='${libname}${release}${shared_ext}$major'
16941
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16942
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16946
dynamic_linker="$host_os dld.sl"
16947
shlibpath_var=SHLIB_PATH
16948
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16949
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16950
soname_spec='${libname}${release}${shared_ext}$major'
16953
# HP-UX runs *really* slowly unless shared libraries are mode 555.
16954
postinstall_cmds='chmod 555 $lib'
16961
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16962
soname_spec='${libname}${release}${shared_ext}$major'
16963
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16964
shlibpath_var=LD_LIBRARY_PATH
16965
shlibpath_overrides_runpath=no
16966
hardcode_into_libs=yes
16969
irix5* | irix6* | nonstopux*)
16971
nonstopux*) version_type=nonstopux ;;
16973
if test "$lt_cv_prog_gnu_ld" = yes; then
16981
soname_spec='${libname}${release}${shared_ext}$major'
16982
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16984
irix5* | nonstopux*)
16985
libsuff= shlibsuff=
16988
case $LD in # libtool.m4 will add one of these switches to LD
16989
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16990
libsuff= shlibsuff= libmagic=32-bit;;
16991
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16992
libsuff=32 shlibsuff=N32 libmagic=N32;;
16993
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16994
libsuff=64 shlibsuff=64 libmagic=64-bit;;
16995
*) libsuff= shlibsuff= libmagic=never-match;;
16999
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17000
shlibpath_overrides_runpath=no
17001
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17002
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17003
hardcode_into_libs=yes
17006
# No shared lib support for Linux oldld, aout, or coff.
17007
linux*oldld* | linux*aout* | linux*coff*)
17011
# This must be Linux ELF.
17012
linux* | k*bsd*-gnu)
17016
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17017
soname_spec='${libname}${release}${shared_ext}$major'
17018
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17019
shlibpath_var=LD_LIBRARY_PATH
17020
shlibpath_overrides_runpath=no
17021
# This implies no fast_install, which is unacceptable.
17022
# Some rework will be needed to allow for fast_install
17023
# before this can be enabled.
17024
hardcode_into_libs=yes
17026
# Append ld.so.conf contents to the search path
17027
if test -f /etc/ld.so.conf; then
17028
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17029
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17032
# We used to test for /lib/ld.so.1 and disable shared libraries on
17033
# powerpc, because MkLinux only supported shared libraries with the
17034
# GNU dynamic linker. Since this was broken with cross compilers,
17035
# most powerpc-linux boxes support dynamic linking these days and
17036
# people can always --disable-shared, the test was removed, and we
17037
# assume the GNU/Linux dynamic linker is in use.
17038
dynamic_linker='GNU/Linux ld.so'
17045
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17046
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17047
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17048
dynamic_linker='NetBSD (a.out) ld.so'
17050
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17051
soname_spec='${libname}${release}${shared_ext}$major'
17052
dynamic_linker='NetBSD ld.elf_so'
17054
shlibpath_var=LD_LIBRARY_PATH
17055
shlibpath_overrides_runpath=yes
17056
hardcode_into_libs=yes
17061
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17062
shlibpath_var=LD_LIBRARY_PATH
17063
shlibpath_overrides_runpath=yes
17070
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17071
soname_spec='${libname}${release}${shared_ext}$major'
17072
shlibpath_var=LD_LIBRARY_PATH
17073
shlibpath_overrides_runpath=yes
17078
sys_lib_dlsearch_path_spec="/usr/lib"
17080
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17082
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17083
*) need_version=no ;;
17085
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17086
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17087
shlibpath_var=LD_LIBRARY_PATH
17088
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17090
openbsd2.[89] | openbsd2.[89].*)
17091
shlibpath_overrides_runpath=no
17094
shlibpath_overrides_runpath=yes
17098
shlibpath_overrides_runpath=yes
17103
libname_spec='$name'
17106
library_names_spec='$libname${shared_ext} $libname.a'
17107
dynamic_linker='OS/2 ld.exe'
17108
shlibpath_var=LIBPATH
17111
osf3* | osf4* | osf5*)
17115
soname_spec='${libname}${release}${shared_ext}$major'
17116
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17117
shlibpath_var=LD_LIBRARY_PATH
17118
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17119
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17130
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17131
soname_spec='${libname}${release}${shared_ext}$major'
17132
shlibpath_var=LD_LIBRARY_PATH
17133
shlibpath_overrides_runpath=yes
17134
hardcode_into_libs=yes
17135
# ldd complains unless libraries are executable
17136
postinstall_cmds='chmod +x $lib'
17141
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17142
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17143
shlibpath_var=LD_LIBRARY_PATH
17144
shlibpath_overrides_runpath=yes
17145
if test "$with_gnu_ld" = yes; then
17153
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17154
soname_spec='${libname}${release}${shared_ext}$major'
17155
shlibpath_var=LD_LIBRARY_PATH
17156
case $host_vendor in
17158
shlibpath_overrides_runpath=no
17160
export_dynamic_flag_spec='${wl}-Blargedynsym'
17161
runpath_var=LD_RUN_PATH
17169
shlibpath_overrides_runpath=no
17170
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17176
if test -d /usr/nec ;then
17178
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17179
soname_spec='$libname${shared_ext}.$major'
17180
shlibpath_var=LD_LIBRARY_PATH
17184
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17185
version_type=freebsd-elf
17188
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17189
soname_spec='${libname}${release}${shared_ext}$major'
17190
shlibpath_var=LD_LIBRARY_PATH
17191
hardcode_into_libs=yes
17192
if test "$with_gnu_ld" = yes; then
17193
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17194
shlibpath_overrides_runpath=no
17196
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17197
shlibpath_overrides_runpath=yes
17200
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17204
sys_lib_dlsearch_path_spec='/usr/lib'
17209
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17210
soname_spec='${libname}${release}${shared_ext}$major'
17211
shlibpath_var=LD_LIBRARY_PATH
17218
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17219
echo "${ECHO_T}$dynamic_linker" >&6; }
17220
test "$dynamic_linker" = no && can_build_shared=no
17222
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17223
echo $ECHO_N "(cached) $ECHO_C" >&6
17225
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
17228
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17229
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17230
echo $ECHO_N "(cached) $ECHO_C" >&6
17232
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
17235
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17237
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17238
if test "$GCC" = yes; then
17239
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17242
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17243
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17244
hardcode_action_F77=
17245
if test -n "$hardcode_libdir_flag_spec_F77" || \
17246
test -n "$runpath_var_F77" || \
17247
test "X$hardcode_automatic_F77" = "Xyes" ; then
17249
# We can hardcode non-existant directories.
17250
if test "$hardcode_direct_F77" != no &&
17251
# If the only mechanism to avoid hardcoding is shlibpath_var, we
17252
# have to relink, otherwise we might link with an installed library
17253
# when we should be linking with a yet-to-be-installed one
17254
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17255
test "$hardcode_minus_L_F77" != no; then
17256
# Linking always hardcodes the temporary library directory.
17257
hardcode_action_F77=relink
17259
# We can link without hardcoding, and we can hardcode nonexisting dirs.
17260
hardcode_action_F77=immediate
17263
# We cannot hardcode anything, or else we can only hardcode existing
17265
hardcode_action_F77=unsupported
17267
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17268
echo "${ECHO_T}$hardcode_action_F77" >&6; }
17270
if test "$hardcode_action_F77" = relink; then
17271
# Fast installation is not supported
17272
enable_fast_install=no
17273
elif test "$shlibpath_overrides_runpath" = yes ||
17274
test "$enable_shared" = no; then
17275
# Fast installation is not necessary
17276
enable_fast_install=needless
17280
# The else clause should only fire when bootstrapping the
17281
# libtool distribution, otherwise you forgot to ship ltmain.sh
17282
# with your package, and you will get complaints that there are
17283
# no rules to generate ltmain.sh.
17284
if test -f "$ltmain"; then
17285
# See if we are running on zsh, and set the options which allow our commands through
17286
# without removal of \ escapes.
17287
if test -n "${ZSH_VERSION+set}" ; then
17288
setopt NO_GLOB_SUBST
17290
# Now quote all the things that may contain metacharacters while being
17291
# careful not to overquote the AC_SUBSTed values. We take copies of the
17292
# variables and quote the copies for generation of the libtool script.
17293
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17295
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17296
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17297
deplibs_check_method reload_flag reload_cmds need_locks \
17298
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17299
lt_cv_sys_global_symbol_to_c_name_address \
17300
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17301
old_postinstall_cmds old_postuninstall_cmds \
17305
lt_prog_compiler_wl_F77 \
17306
lt_prog_compiler_pic_F77 \
17307
lt_prog_compiler_static_F77 \
17308
lt_prog_compiler_no_builtin_flag_F77 \
17309
export_dynamic_flag_spec_F77 \
17310
thread_safe_flag_spec_F77 \
17311
whole_archive_flag_spec_F77 \
17312
enable_shared_with_static_runtimes_F77 \
17313
old_archive_cmds_F77 \
17314
old_archive_from_new_cmds_F77 \
17315
predep_objects_F77 \
17316
postdep_objects_F77 \
17319
compiler_lib_search_path_F77 \
17320
compiler_lib_search_dirs_F77 \
17322
archive_expsym_cmds_F77 \
17323
postinstall_cmds_F77 \
17324
postuninstall_cmds_F77 \
17325
old_archive_from_expsyms_cmds_F77 \
17326
allow_undefined_flag_F77 \
17327
no_undefined_flag_F77 \
17328
export_symbols_cmds_F77 \
17329
hardcode_libdir_flag_spec_F77 \
17330
hardcode_libdir_flag_spec_ld_F77 \
17331
hardcode_libdir_separator_F77 \
17332
hardcode_automatic_F77 \
17334
module_expsym_cmds_F77 \
17335
lt_cv_prog_compiler_c_o_F77 \
17336
fix_srcfile_path_F77 \
17337
exclude_expsyms_F77 \
17338
include_expsyms_F77; do
17341
old_archive_cmds_F77 | \
17342
old_archive_from_new_cmds_F77 | \
17343
archive_cmds_F77 | \
17344
archive_expsym_cmds_F77 | \
17345
module_cmds_F77 | \
17346
module_expsym_cmds_F77 | \
17347
old_archive_from_expsyms_cmds_F77 | \
17348
export_symbols_cmds_F77 | \
17349
extract_expsyms_cmds | reload_cmds | finish_cmds | \
17350
postinstall_cmds | postuninstall_cmds | \
17351
old_postinstall_cmds | old_postuninstall_cmds | \
17352
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17353
# Double-quote double-evaled strings.
17354
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17357
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17363
*'\$0 --fallback-echo"')
17364
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17370
cat <<__EOF__ >> "$cfgfile"
17371
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17373
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17375
# Shell to use when invoking shell scripts.
17378
# Whether or not to build shared libraries.
17379
build_libtool_libs=$enable_shared
17381
# Whether or not to build static libraries.
17382
build_old_libs=$enable_static
17384
# Whether or not to add -lc for building shared libraries.
17385
build_libtool_need_lc=$archive_cmds_need_lc_F77
17387
# Whether or not to disallow shared libs when runtime libs are static
17388
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17390
# Whether or not to optimize for fast installation.
17391
fast_install=$enable_fast_install
17394
host_alias=$host_alias
17398
# The build system.
17399
build_alias=$build_alias
17403
# An echo program that does not interpret backslashes.
17408
AR_FLAGS=$lt_AR_FLAGS
17413
# LTCC compiler flags.
17414
LTCFLAGS=$lt_LTCFLAGS
17416
# A language-specific compiler.
17417
CC=$lt_compiler_F77
17419
# Is the compiler the GNU C compiler?
17425
# The linker used to build libraries.
17428
# Whether we need hard or soft links.
17431
# A BSD-compatible nm program.
17434
# A symbol stripping program
17437
# Used to examine libraries when file_magic_cmd begins "file"
17438
MAGIC_CMD=$MAGIC_CMD
17440
# Used on cygwin: DLL creation program.
17443
# Used on cygwin: object dumper.
17446
# Used on cygwin: assembler.
17449
# The name of the directory that contains temporary libtool files.
17452
# How to create reloadable object files.
17453
reload_flag=$lt_reload_flag
17454
reload_cmds=$lt_reload_cmds
17456
# How to pass a linker flag through the compiler.
17457
wl=$lt_lt_prog_compiler_wl_F77
17459
# Object file suffix (normally "o").
17460
objext="$ac_objext"
17462
# Old archive suffix (normally "a").
17465
# Shared library suffix (normally ".so").
17466
shrext_cmds='$shrext_cmds'
17468
# Executable file suffix (normally "").
17471
# Additional compiler flags for building library objects.
17472
pic_flag=$lt_lt_prog_compiler_pic_F77
17475
# What is the maximum length of a command?
17476
max_cmd_len=$lt_cv_sys_max_cmd_len
17478
# Does compiler simultaneously support -c and -o options?
17479
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17481
# Must we lock files when doing compilation?
17482
need_locks=$lt_need_locks
17484
# Do we need the lib prefix for modules?
17485
need_lib_prefix=$need_lib_prefix
17487
# Do we need a version for libraries?
17488
need_version=$need_version
17490
# Whether dlopen is supported.
17491
dlopen_support=$enable_dlopen
17493
# Whether dlopen of programs is supported.
17494
dlopen_self=$enable_dlopen_self
17496
# Whether dlopen of statically linked programs is supported.
17497
dlopen_self_static=$enable_dlopen_self_static
17499
# Compiler flag to prevent dynamic linking.
17500
link_static_flag=$lt_lt_prog_compiler_static_F77
17502
# Compiler flag to turn off builtin functions.
17503
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17505
# Compiler flag to allow reflexive dlopens.
17506
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17508
# Compiler flag to generate shared objects directly from archives.
17509
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17511
# Compiler flag to generate thread-safe objects.
17512
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17514
# Library versioning type.
17515
version_type=$version_type
17517
# Format of library name prefix.
17518
libname_spec=$lt_libname_spec
17520
# List of archive names. First name is the real one, the rest are links.
17521
# The last name is the one that the linker finds with -lNAME.
17522
library_names_spec=$lt_library_names_spec
17524
# The coded name of the library, if different from the real name.
17525
soname_spec=$lt_soname_spec
17527
# Commands used to build and install an old-style archive.
17529
old_archive_cmds=$lt_old_archive_cmds_F77
17530
old_postinstall_cmds=$lt_old_postinstall_cmds
17531
old_postuninstall_cmds=$lt_old_postuninstall_cmds
17533
# Create an old-style archive from a shared archive.
17534
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17536
# Create a temporary old-style archive to link instead of a shared archive.
17537
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17539
# Commands used to build and install a shared archive.
17540
archive_cmds=$lt_archive_cmds_F77
17541
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17542
postinstall_cmds=$lt_postinstall_cmds
17543
postuninstall_cmds=$lt_postuninstall_cmds
17545
# Commands used to build a loadable module (assumed same as above if empty)
17546
module_cmds=$lt_module_cmds_F77
17547
module_expsym_cmds=$lt_module_expsym_cmds_F77
17549
# Commands to strip libraries.
17550
old_striplib=$lt_old_striplib
17551
striplib=$lt_striplib
17553
# Dependencies to place before the objects being linked to create a
17555
predep_objects=$lt_predep_objects_F77
17557
# Dependencies to place after the objects being linked to create a
17559
postdep_objects=$lt_postdep_objects_F77
17561
# Dependencies to place before the objects being linked to create a
17563
predeps=$lt_predeps_F77
17565
# Dependencies to place after the objects being linked to create a
17567
postdeps=$lt_postdeps_F77
17569
# The directories searched by this compiler when creating a shared
17571
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
17573
# The library search path used internally by the compiler when linking
17574
# a shared library.
17575
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17577
# Method to check whether dependent libraries are shared objects.
17578
deplibs_check_method=$lt_deplibs_check_method
17580
# Command to use when deplibs_check_method == file_magic.
17581
file_magic_cmd=$lt_file_magic_cmd
17583
# Flag that allows shared libraries with undefined symbols to be built.
17584
allow_undefined_flag=$lt_allow_undefined_flag_F77
17586
# Flag that forces no undefined symbols.
17587
no_undefined_flag=$lt_no_undefined_flag_F77
17589
# Commands used to finish a libtool library installation in a directory.
17590
finish_cmds=$lt_finish_cmds
17592
# Same as above, but a single script fragment to be evaled but not shown.
17593
finish_eval=$lt_finish_eval
17595
# Take the output of nm and produce a listing of raw symbols and C names.
17596
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17598
# Transform the output of nm in a proper C declaration
17599
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17601
# Transform the output of nm in a C name address pair
17602
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17604
# This is the shared library runtime path variable.
17605
runpath_var=$runpath_var
17607
# This is the shared library path variable.
17608
shlibpath_var=$shlibpath_var
17610
# Is shlibpath searched before the hard-coded library search path?
17611
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17613
# How to hardcode a shared library path into an executable.
17614
hardcode_action=$hardcode_action_F77
17616
# Whether we should hardcode library paths into libraries.
17617
hardcode_into_libs=$hardcode_into_libs
17619
# Flag to hardcode \$libdir into a binary during linking.
17620
# This must work even if \$libdir does not exist.
17621
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17623
# If ld is used when linking, flag to hardcode \$libdir into
17624
# a binary during linking. This must work even if \$libdir does
17626
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17628
# Whether we need a single -rpath flag with a separated argument.
17629
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17631
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17632
# resulting binary.
17633
hardcode_direct=$hardcode_direct_F77
17635
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17636
# resulting binary.
17637
hardcode_minus_L=$hardcode_minus_L_F77
17639
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17640
# the resulting binary.
17641
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17643
# Set to yes if building a shared library automatically hardcodes DIR into the library
17644
# and all subsequent libraries and executables linked against it.
17645
hardcode_automatic=$hardcode_automatic_F77
17647
# Variables whose values should be saved in libtool wrapper scripts and
17648
# restored at relink time.
17649
variables_saved_for_relink="$variables_saved_for_relink"
17651
# Whether libtool must link a program against all its dependency libraries.
17652
link_all_deplibs=$link_all_deplibs_F77
17654
# Compile-time system search path for libraries
17655
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17657
# Run-time system search path for libraries
17658
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17660
# Fix the shell variable \$srcfile for the compiler.
17661
fix_srcfile_path=$lt_fix_srcfile_path
17663
# Set to yes if exported symbols are required.
17664
always_export_symbols=$always_export_symbols_F77
17666
# The commands to list exported symbols.
17667
export_symbols_cmds=$lt_export_symbols_cmds_F77
17669
# The commands to extract the exported symbol list from a shared archive.
17670
extract_expsyms_cmds=$lt_extract_expsyms_cmds
17672
# Symbols that should not be listed in the preloaded symbols.
17673
exclude_expsyms=$lt_exclude_expsyms_F77
17675
# Symbols that must always be exported.
17676
include_expsyms=$lt_include_expsyms_F77
17678
# ### END LIBTOOL TAG CONFIG: $tagname
17684
# If there is no Makefile yet, we rely on a make rule to execute
17685
# `config.status --recheck' to rerun these tests and create the
17686
# libtool script then.
17687
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17688
if test -f "$ltmain_in"; then
17689
test -f Makefile && make "$ltmain"
17695
ac_cpp='$CPP $CPPFLAGS'
17696
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17697
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17698
ac_compiler_gnu=$ac_cv_c_compiler_gnu
17708
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17711
# Source file extension for Java test sources.
17714
# Object file extension for compiled Java test sources.
17718
# Code to be used in simple compile tests
17719
lt_simple_compile_test_code="class foo {}"
17721
# Code to be used in simple link tests
17722
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
17724
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17726
# If no C compiler was specified, use CC.
17729
# If no C compiler flags were specified, use CFLAGS.
17730
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17732
# Allow CC to be a program name with arguments.
17736
# save warnings/boilerplate of simple test code
17737
ac_outfile=conftest.$ac_objext
17738
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17739
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17740
_lt_compiler_boilerplate=`cat conftest.err`
17743
ac_outfile=conftest.$ac_objext
17744
echo "$lt_simple_link_test_code" >conftest.$ac_ext
17745
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17746
_lt_linker_boilerplate=`cat conftest.err`
17750
# Allow CC to be a program name with arguments.
17755
for cc_temp in $compiler""; do
17757
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17758
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17763
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17766
# GCJ did not exist at the time GCC didn't implicitly link libc in.
17767
archive_cmds_need_lc_GCJ=no
17769
old_archive_cmds_GCJ=$old_archive_cmds
17772
lt_prog_compiler_no_builtin_flag_GCJ=
17774
if test "$GCC" = yes; then
17775
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17778
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17779
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17780
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17781
echo $ECHO_N "(cached) $ECHO_C" >&6
17783
lt_cv_prog_compiler_rtti_exceptions=no
17784
ac_outfile=conftest.$ac_objext
17785
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17786
lt_compiler_flag="-fno-rtti -fno-exceptions"
17787
# Insert the option either (1) after the last *FLAGS variable, or
17788
# (2) before a word containing "conftest.", or (3) at the end.
17789
# Note that $ac_compile itself does not contain backslashes and begins
17790
# with a dollar sign (not a hyphen), so the echo should work correctly.
17791
# The option is referenced via a variable to avoid confusing sed.
17792
lt_compile=`echo "$ac_compile" | $SED \
17793
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17794
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17795
-e 's:$: $lt_compiler_flag:'`
17796
(eval echo "\"\$as_me:17796: $lt_compile\"" >&5)
17797
(eval "$lt_compile" 2>conftest.err)
17799
cat conftest.err >&5
17800
echo "$as_me:17800: \$? = $ac_status" >&5
17801
if (exit $ac_status) && test -s "$ac_outfile"; then
17802
# The compiler can only warn and ignore the option if not recognized
17803
# So say no if there are warnings other than the usual output.
17804
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17805
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17806
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17807
lt_cv_prog_compiler_rtti_exceptions=yes
17813
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17814
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17816
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17817
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17824
lt_prog_compiler_wl_GCJ=
17825
lt_prog_compiler_pic_GCJ=
17826
lt_prog_compiler_static_GCJ=
17828
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17829
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17831
if test "$GCC" = yes; then
17832
lt_prog_compiler_wl_GCJ='-Wl,'
17833
lt_prog_compiler_static_GCJ='-static'
17837
# All AIX code is PIC.
17838
if test "$host_cpu" = ia64; then
17839
# AIX 5 now supports IA64 processor
17840
lt_prog_compiler_static_GCJ='-Bstatic'
17845
# FIXME: we need at least 68020 code to build shared libraries, but
17846
# adding the `-m68020' flag to GCC prevents building anything better,
17848
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17851
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17852
# PIC is the default for these OSes.
17855
mingw* | cygwin* | pw32* | os2*)
17856
# This hack is so that the source file can tell whether it is being
17857
# built for inclusion in a dll (and should export symbols for example).
17858
# Although the cygwin gcc ignores -fPIC, still need this for old-style
17859
# (--disable-auto-import) libraries
17863
darwin* | rhapsody*)
17864
# PIC is the default on this platform
17865
# Common symbols not allowed in MH_DYLIB files
17866
lt_prog_compiler_pic_GCJ='-fno-common'
17870
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
17871
# Instead, we relocate shared libraries at runtime.
17875
# Just because we use GCC doesn't mean we suddenly get shared libraries
17876
# on systems that don't support them.
17877
lt_prog_compiler_can_build_shared_GCJ=no
17882
if test -d /usr/nec; then
17883
lt_prog_compiler_pic_GCJ=-Kconform_pic
17888
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17889
# not for PA HP-UX.
17895
lt_prog_compiler_pic_GCJ='-fPIC'
17901
lt_prog_compiler_pic_GCJ='-fPIC'
17905
# PORTME Check for flag to pass linker flags through the system compiler.
17908
lt_prog_compiler_wl_GCJ='-Wl,'
17909
if test "$host_cpu" = ia64; then
17910
# AIX 5 now supports IA64 processor
17911
lt_prog_compiler_static_GCJ='-Bstatic'
17913
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17917
# PIC is the default on this platform
17918
# Common symbols not allowed in MH_DYLIB files
17919
case $cc_basename in
17921
lt_prog_compiler_pic_GCJ='-qnocommon'
17922
lt_prog_compiler_wl_GCJ='-Wl,'
17927
mingw* | cygwin* | pw32* | os2*)
17928
# This hack is so that the source file can tell whether it is being
17929
# built for inclusion in a dll (and should export symbols for example).
17933
hpux9* | hpux10* | hpux11*)
17934
lt_prog_compiler_wl_GCJ='-Wl,'
17935
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17936
# not for PA HP-UX.
17942
lt_prog_compiler_pic_GCJ='+Z'
17945
# Is there a better lt_prog_compiler_static that works with the bundled CC?
17946
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17949
irix5* | irix6* | nonstopux*)
17950
lt_prog_compiler_wl_GCJ='-Wl,'
17951
# PIC (with -KPIC) is the default.
17952
lt_prog_compiler_static_GCJ='-non_shared'
17956
lt_prog_compiler_pic_GCJ='-KPIC'
17957
lt_prog_compiler_static_GCJ='-Bstatic'
17960
linux* | k*bsd*-gnu)
17961
case $cc_basename in
17963
lt_prog_compiler_wl_GCJ='-Wl,'
17964
lt_prog_compiler_pic_GCJ='-KPIC'
17965
lt_prog_compiler_static_GCJ='-static'
17967
pgcc* | pgf77* | pgf90* | pgf95*)
17968
# Portland Group compilers (*not* the Pentium gcc compiler,
17969
# which looks to be a dead project)
17970
lt_prog_compiler_wl_GCJ='-Wl,'
17971
lt_prog_compiler_pic_GCJ='-fpic'
17972
lt_prog_compiler_static_GCJ='-Bstatic'
17975
lt_prog_compiler_wl_GCJ='-Wl,'
17976
# All Alpha code is PIC.
17977
lt_prog_compiler_static_GCJ='-non_shared'
17980
case `$CC -V 2>&1 | sed 5q` in
17983
lt_prog_compiler_pic_GCJ='-KPIC'
17984
lt_prog_compiler_static_GCJ='-Bstatic'
17985
lt_prog_compiler_wl_GCJ='-Wl,'
17988
# Sun Fortran 8.3 passes all unrecognized flags to the linker
17989
lt_prog_compiler_pic_GCJ='-KPIC'
17990
lt_prog_compiler_static_GCJ='-Bstatic'
17991
lt_prog_compiler_wl_GCJ=''
17998
osf3* | osf4* | osf5*)
17999
lt_prog_compiler_wl_GCJ='-Wl,'
18000
# All OSF/1 code is PIC.
18001
lt_prog_compiler_static_GCJ='-non_shared'
18005
lt_prog_compiler_static_GCJ='-non_shared'
18009
lt_prog_compiler_pic_GCJ='-KPIC'
18010
lt_prog_compiler_static_GCJ='-Bstatic'
18011
case $cc_basename in
18012
f77* | f90* | f95*)
18013
lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18015
lt_prog_compiler_wl_GCJ='-Wl,';;
18020
lt_prog_compiler_wl_GCJ='-Qoption ld '
18021
lt_prog_compiler_pic_GCJ='-PIC'
18022
lt_prog_compiler_static_GCJ='-Bstatic'
18025
sysv4 | sysv4.2uw2* | sysv4.3*)
18026
lt_prog_compiler_wl_GCJ='-Wl,'
18027
lt_prog_compiler_pic_GCJ='-KPIC'
18028
lt_prog_compiler_static_GCJ='-Bstatic'
18032
if test -d /usr/nec ;then
18033
lt_prog_compiler_pic_GCJ='-Kconform_pic'
18034
lt_prog_compiler_static_GCJ='-Bstatic'
18038
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18039
lt_prog_compiler_wl_GCJ='-Wl,'
18040
lt_prog_compiler_pic_GCJ='-KPIC'
18041
lt_prog_compiler_static_GCJ='-Bstatic'
18045
lt_prog_compiler_wl_GCJ='-Wl,'
18046
lt_prog_compiler_can_build_shared_GCJ=no
18050
lt_prog_compiler_pic_GCJ='-pic'
18051
lt_prog_compiler_static_GCJ='-Bstatic'
18055
lt_prog_compiler_can_build_shared_GCJ=no
18060
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18061
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
18064
# Check to make sure the PIC flag actually works.
18066
if test -n "$lt_prog_compiler_pic_GCJ"; then
18068
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18069
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
18070
if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
18071
echo $ECHO_N "(cached) $ECHO_C" >&6
18073
lt_cv_prog_compiler_pic_works_GCJ=no
18074
ac_outfile=conftest.$ac_objext
18075
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18076
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18077
# Insert the option either (1) after the last *FLAGS variable, or
18078
# (2) before a word containing "conftest.", or (3) at the end.
18079
# Note that $ac_compile itself does not contain backslashes and begins
18080
# with a dollar sign (not a hyphen), so the echo should work correctly.
18081
# The option is referenced via a variable to avoid confusing sed.
18082
lt_compile=`echo "$ac_compile" | $SED \
18083
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18084
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18085
-e 's:$: $lt_compiler_flag:'`
18086
(eval echo "\"\$as_me:18086: $lt_compile\"" >&5)
18087
(eval "$lt_compile" 2>conftest.err)
18089
cat conftest.err >&5
18090
echo "$as_me:18090: \$? = $ac_status" >&5
18091
if (exit $ac_status) && test -s "$ac_outfile"; then
18092
# The compiler can only warn and ignore the option if not recognized
18093
# So say no if there are warnings other than the usual output.
18094
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18095
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18096
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18097
lt_cv_prog_compiler_pic_works_GCJ=yes
18103
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
18104
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
18106
if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
18107
case $lt_prog_compiler_pic_GCJ in
18109
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18112
lt_prog_compiler_pic_GCJ=
18113
lt_prog_compiler_can_build_shared_GCJ=no
18118
# For platforms which do not support PIC, -DPIC is meaningless:
18120
lt_prog_compiler_pic_GCJ=
18123
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18128
# Check to make sure the static flag actually works.
18130
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
18131
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18132
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18133
if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
18134
echo $ECHO_N "(cached) $ECHO_C" >&6
18136
lt_cv_prog_compiler_static_works_GCJ=no
18137
save_LDFLAGS="$LDFLAGS"
18138
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18139
echo "$lt_simple_link_test_code" > conftest.$ac_ext
18140
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18141
# The linker can only warn and ignore the option if not recognized
18142
# So say no if there are warnings
18143
if test -s conftest.err; then
18144
# Append any errors to the config.log.
18145
cat conftest.err 1>&5
18146
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18147
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18148
if diff conftest.exp conftest.er2 >/dev/null; then
18149
lt_cv_prog_compiler_static_works_GCJ=yes
18152
lt_cv_prog_compiler_static_works_GCJ=yes
18156
LDFLAGS="$save_LDFLAGS"
18159
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
18160
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
18162
if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
18165
lt_prog_compiler_static_GCJ=
18169
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18170
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18171
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18172
echo $ECHO_N "(cached) $ECHO_C" >&6
18174
lt_cv_prog_compiler_c_o_GCJ=no
18175
$rm -r conftest 2>/dev/null
18179
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18181
lt_compiler_flag="-o out/conftest2.$ac_objext"
18182
# Insert the option either (1) after the last *FLAGS variable, or
18183
# (2) before a word containing "conftest.", or (3) at the end.
18184
# Note that $ac_compile itself does not contain backslashes and begins
18185
# with a dollar sign (not a hyphen), so the echo should work correctly.
18186
lt_compile=`echo "$ac_compile" | $SED \
18187
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18188
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18189
-e 's:$: $lt_compiler_flag:'`
18190
(eval echo "\"\$as_me:18190: $lt_compile\"" >&5)
18191
(eval "$lt_compile" 2>out/conftest.err)
18193
cat out/conftest.err >&5
18194
echo "$as_me:18194: \$? = $ac_status" >&5
18195
if (exit $ac_status) && test -s out/conftest2.$ac_objext
18197
# The compiler can only warn and ignore the option if not recognized
18198
# So say no if there are warnings
18199
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18200
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18201
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18202
lt_cv_prog_compiler_c_o_GCJ=yes
18207
# SGI C++ compiler will create directory out/ii_files/ for
18208
# template instantiation
18209
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18210
$rm out/* && rmdir out
18216
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18217
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
18220
hard_links="nottested"
18221
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18222
# do not overwrite the value of need_locks provided by the user
18223
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18224
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18227
ln conftest.a conftest.b 2>/dev/null && hard_links=no
18229
ln conftest.a conftest.b 2>&5 || hard_links=no
18230
ln conftest.a conftest.b 2>/dev/null && hard_links=no
18231
{ echo "$as_me:$LINENO: result: $hard_links" >&5
18232
echo "${ECHO_T}$hard_links" >&6; }
18233
if test "$hard_links" = no; then
18234
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18235
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18242
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18243
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18246
allow_undefined_flag_GCJ=
18247
enable_shared_with_static_runtimes_GCJ=no
18249
archive_expsym_cmds_GCJ=
18250
old_archive_From_new_cmds_GCJ=
18251
old_archive_from_expsyms_cmds_GCJ=
18252
export_dynamic_flag_spec_GCJ=
18253
whole_archive_flag_spec_GCJ=
18254
thread_safe_flag_spec_GCJ=
18255
hardcode_libdir_flag_spec_GCJ=
18256
hardcode_libdir_flag_spec_ld_GCJ=
18257
hardcode_libdir_separator_GCJ=
18258
hardcode_direct_GCJ=no
18259
hardcode_minus_L_GCJ=no
18260
hardcode_shlibpath_var_GCJ=unsupported
18261
link_all_deplibs_GCJ=unknown
18262
hardcode_automatic_GCJ=no
18264
module_expsym_cmds_GCJ=
18265
always_export_symbols_GCJ=no
18266
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18267
# include_expsyms should be a list of space-separated symbols to be *always*
18268
# included in the symbol list
18269
include_expsyms_GCJ=
18270
# exclude_expsyms can be an extended regexp of symbols to exclude
18271
# it will be wrapped by ` (' and `)$', so one must not match beginning or
18272
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18273
# as well as any symbol that contains `d'.
18274
exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18275
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18276
# platforms (ab)use it in PIC code, but their linkers get confused if
18277
# the symbol is explicitly referenced. Since portable code cannot
18278
# rely on this symbol name, it's probably fine to never include it in
18279
# preloaded symbol tables.
18280
# Exclude shared library initialization/finalization symbols.
18281
extract_expsyms_cmds=
18282
# Just being paranoid about ensuring that cc_basename is set.
18283
for cc_temp in $compiler""; do
18285
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18286
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18291
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18294
cygwin* | mingw* | pw32*)
18295
# FIXME: the MSVC++ port hasn't been tested in a loooong time
18296
# When not using gcc, we currently assume that we are using
18297
# Microsoft Visual C++.
18298
if test "$GCC" != yes; then
18303
# we just hope/assume this is gcc and not c89 (= MSVC++)
18312
if test "$with_gnu_ld" = yes; then
18313
# If archive_cmds runs LD, not CC, wlarc should be empty
18316
# Set some defaults for GNU ld with shared library support. These
18317
# are reset later if shared libraries are not supported. Putting them
18318
# here allows them to be overridden if necessary.
18319
runpath_var=LD_RUN_PATH
18320
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18321
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18322
# ancient GNU ld didn't support --whole-archive et. al.
18323
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18324
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18326
whole_archive_flag_spec_GCJ=
18328
supports_anon_versioning=no
18329
case `$LD -v 2>/dev/null` in
18330
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18331
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18332
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18333
*\ 2.11.*) ;; # other 2.11 versions
18334
*) supports_anon_versioning=yes ;;
18337
# See if GNU ld supports shared libraries.
18340
# On AIX/PPC, the GNU linker is very broken
18341
if test "$host_cpu" != ia64; then
18345
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
18346
*** to be unable to reliably create shared libraries on AIX.
18347
*** Therefore, libtool is disabling shared libraries support. If you
18348
*** really care for shared libraries, you may want to modify your PATH
18349
*** so that a non-GNU linker is found, and then restart.
18356
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)'
18357
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18358
hardcode_minus_L_GCJ=yes
18360
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18361
# that the semantics of dynamic libraries on AmigaOS, at least up
18362
# to version 4, is to share data among multiple programs linked
18363
# with the same dynamic library. Since this doesn't match the
18364
# behavior of shared libraries on other platforms, we can't use
18370
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18371
allow_undefined_flag_GCJ=unsupported
18372
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18373
# support --undefined. This deserves some investigation. FIXME
18374
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18380
cygwin* | mingw* | pw32*)
18381
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18382
# as there is no search path for DLLs.
18383
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18384
allow_undefined_flag_GCJ=unsupported
18385
always_export_symbols_GCJ=no
18386
enable_shared_with_static_runtimes_GCJ=yes
18387
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
18389
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18390
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18391
# If the export-symbols file already is a .def file (1st line
18392
# is EXPORTS), use it as is; otherwise, prepend...
18393
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18394
cp $export_symbols $output_objdir/$soname.def;
18396
echo EXPORTS > $output_objdir/$soname.def;
18397
cat $export_symbols >> $output_objdir/$soname.def;
18399
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18406
hardcode_direct_GCJ=no
18407
hardcode_shlibpath_var_GCJ=no
18408
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18409
export_dynamic_flag_spec_GCJ='${wl}-E'
18410
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18411
# Instead, shared libraries are loaded at an image base (0x10000000 by
18412
# default) and relocated if they conflict, which is a slow very memory
18413
# consuming and fragmenting process. To avoid this, we pick a random,
18414
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18415
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
18416
archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
18417
archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
18420
gnu* | linux* | k*bsd*-gnu)
18421
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18423
case $cc_basename,$host_cpu in
18424
pgcc*) # Portland Group C compiler
18425
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'
18426
tmp_addflag=' $pic_flag'
18428
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
18429
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'
18430
tmp_addflag=' $pic_flag -Mnomain' ;;
18431
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18432
tmp_addflag=' -i_dynamic' ;;
18433
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18434
tmp_addflag=' -i_dynamic -nofor_main' ;;
18435
ifc* | ifort*) # Intel Fortran compiler
18436
tmp_addflag=' -nofor_main' ;;
18438
case `$CC -V 2>&1 | sed 5q` in
18439
*Sun\ C*) # Sun C 5.9
18440
whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18441
tmp_sharedflag='-G' ;;
18442
*Sun\ F*) # Sun Fortran 8.3
18443
tmp_sharedflag='-G' ;;
18445
tmp_sharedflag='-shared' ;;
18447
archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18449
if test $supports_anon_versioning = yes; then
18450
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18451
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18452
$echo "local: *; };" >> $output_objdir/$libname.ver~
18453
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18461
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18462
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18465
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18466
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18471
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18475
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
18476
*** create shared libraries on Solaris systems. Therefore, libtool
18477
*** is disabling shared libraries support. We urge you to upgrade GNU
18478
*** binutils to release 2.9.1 or newer. Another option is to modify
18479
*** your PATH or compiler configuration so that the native linker is
18480
*** used, and then restart.
18483
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18484
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18485
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18491
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18492
case `$LD -v 2>&1` in
18493
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18497
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18498
*** reliably create shared libraries on SCO systems. Therefore, libtool
18499
*** is disabling shared libraries support. We urge you to upgrade GNU
18500
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18501
*** your PATH or compiler configuration so that the native linker is
18502
*** used, and then restart.
18507
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18508
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18509
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18510
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18519
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18521
hardcode_direct_GCJ=yes
18522
hardcode_shlibpath_var_GCJ=no
18526
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18527
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18528
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18535
if test "$ld_shlibs_GCJ" = no; then
18537
hardcode_libdir_flag_spec_GCJ=
18538
export_dynamic_flag_spec_GCJ=
18539
whole_archive_flag_spec_GCJ=
18542
# PORTME fill in a description of your system's linker (not GNU ld)
18545
allow_undefined_flag_GCJ=unsupported
18546
always_export_symbols_GCJ=yes
18547
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'
18548
# Note: this linker hardcodes the directories in LIBPATH if there
18549
# are no directories specified by -L.
18550
hardcode_minus_L_GCJ=yes
18551
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18552
# Neither direct hardcoding nor static linking is supported with a
18554
hardcode_direct_GCJ=unsupported
18559
if test "$host_cpu" = ia64; then
18560
# On IA64, the linker does run time linking by default, so we don't
18561
# have to do anything special.
18562
aix_use_runtimelinking=no
18563
exp_sym_flag='-Bexport'
18566
# If we're using GNU nm, then we don't want the "-C" option.
18567
# -C means demangle to AIX nm, but means don't demangle with GNU nm
18568
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18569
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'
18571
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'
18573
aix_use_runtimelinking=no
18575
# Test if we are trying to use run time linking or normal
18576
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
18577
# need to do runtime linking.
18578
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18579
for ld_flag in $LDFLAGS; do
18580
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18581
aix_use_runtimelinking=yes
18588
exp_sym_flag='-bexport'
18589
no_entry_flag='-bnoentry'
18592
# When large executables or shared objects are built, AIX ld can
18593
# have problems creating the table of contents. If linking a library
18594
# or program results in "error TOC overflow" add -mminimal-toc to
18595
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18596
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18598
archive_cmds_GCJ=''
18599
hardcode_direct_GCJ=yes
18600
hardcode_libdir_separator_GCJ=':'
18601
link_all_deplibs_GCJ=yes
18603
if test "$GCC" = yes; then
18604
case $host_os in aix4.[012]|aix4.[012].*)
18605
# We only want to do this on AIX 4.2 and lower, the check
18606
# below for broken collect2 doesn't work under 4.3+
18607
collect2name=`${CC} -print-prog-name=collect2`
18608
if test -f "$collect2name" && \
18609
strings "$collect2name" | grep resolve_lib_name >/dev/null
18611
# We have reworked collect2
18614
# We have old collect2
18615
hardcode_direct_GCJ=unsupported
18616
# It fails to find uninstalled libraries when the uninstalled
18617
# path is not listed in the libpath. Setting hardcode_minus_L
18618
# to unsupported forces relinking
18619
hardcode_minus_L_GCJ=yes
18620
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18621
hardcode_libdir_separator_GCJ=
18625
shared_flag='-shared'
18626
if test "$aix_use_runtimelinking" = yes; then
18627
shared_flag="$shared_flag "'${wl}-G'
18631
if test "$host_cpu" = ia64; then
18632
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18633
# chokes on -Wl,-G. The following line is correct:
18636
if test "$aix_use_runtimelinking" = yes; then
18637
shared_flag='${wl}-G'
18639
shared_flag='${wl}-bM:SRE'
18644
# It seems that -bexpall does not export symbols beginning with
18645
# underscore (_), so it is better to generate a list of symbols to export.
18646
always_export_symbols_GCJ=yes
18647
if test "$aix_use_runtimelinking" = yes; then
18648
# Warning - without using the other runtime loading flags (-brtl),
18649
# -berok will link without error, but may produce a broken library.
18650
allow_undefined_flag_GCJ='-berok'
18651
# Determine the default libpath from the value encoded in an empty executable.
18652
cat >conftest.$ac_ext <<_ACEOF
18655
cat confdefs.h >>conftest.$ac_ext
18656
cat >>conftest.$ac_ext <<_ACEOF
18657
/* end confdefs.h. */
18667
rm -f conftest.$ac_objext conftest$ac_exeext
18668
if { (ac_try="$ac_link"
18669
case "(($ac_try" in
18670
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18671
*) ac_try_echo=$ac_try;;
18673
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18674
(eval "$ac_link") 2>conftest.er1
18676
grep -v '^ *+' conftest.er1 >conftest.err
18678
cat conftest.err >&5
18679
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18680
(exit $ac_status); } && {
18681
test -z "$ac_c_werror_flag" ||
18682
test ! -s conftest.err
18683
} && test -s conftest$ac_exeext &&
18684
$as_test_x conftest$ac_exeext; then
18686
lt_aix_libpath_sed='
18687
/Import File Strings/,/^$/ {
18693
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18694
# Check for a 64-bit object if we didn't find anything.
18695
if test -z "$aix_libpath"; then
18696
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18699
echo "$as_me: failed program was:" >&5
18700
sed 's/^/| /' conftest.$ac_ext >&5
18705
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18706
conftest$ac_exeext conftest.$ac_ext
18707
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18709
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18710
archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
18712
if test "$host_cpu" = ia64; then
18713
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18714
allow_undefined_flag_GCJ="-z nodefs"
18715
archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
18717
# Determine the default libpath from the value encoded in an empty executable.
18718
cat >conftest.$ac_ext <<_ACEOF
18721
cat confdefs.h >>conftest.$ac_ext
18722
cat >>conftest.$ac_ext <<_ACEOF
18723
/* end confdefs.h. */
18733
rm -f conftest.$ac_objext conftest$ac_exeext
18734
if { (ac_try="$ac_link"
18735
case "(($ac_try" in
18736
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18737
*) ac_try_echo=$ac_try;;
18739
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18740
(eval "$ac_link") 2>conftest.er1
18742
grep -v '^ *+' conftest.er1 >conftest.err
18744
cat conftest.err >&5
18745
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18746
(exit $ac_status); } && {
18747
test -z "$ac_c_werror_flag" ||
18748
test ! -s conftest.err
18749
} && test -s conftest$ac_exeext &&
18750
$as_test_x conftest$ac_exeext; then
18752
lt_aix_libpath_sed='
18753
/Import File Strings/,/^$/ {
18759
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18760
# Check for a 64-bit object if we didn't find anything.
18761
if test -z "$aix_libpath"; then
18762
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18765
echo "$as_me: failed program was:" >&5
18766
sed 's/^/| /' conftest.$ac_ext >&5
18771
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18772
conftest$ac_exeext conftest.$ac_ext
18773
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18775
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18776
# Warning - without using the other run time loading flags,
18777
# -berok will link without error, but may produce a broken library.
18778
no_undefined_flag_GCJ=' ${wl}-bernotok'
18779
allow_undefined_flag_GCJ=' ${wl}-berok'
18780
# Exported symbols can be pulled into shared objects from archives
18781
whole_archive_flag_spec_GCJ='$convenience'
18782
archive_cmds_need_lc_GCJ=yes
18783
# This is similar to how AIX traditionally builds its shared libraries.
18784
archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
18790
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)'
18791
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18792
hardcode_minus_L_GCJ=yes
18793
# see comment about different semantics on the GNU ld section
18798
export_dynamic_flag_spec_GCJ=-rdynamic
18801
cygwin* | mingw* | pw32*)
18802
# When not using gcc, we currently assume that we are using
18803
# Microsoft Visual C++.
18804
# hardcode_libdir_flag_spec is actually meaningless, as there is
18805
# no search path for DLLs.
18806
hardcode_libdir_flag_spec_GCJ=' '
18807
allow_undefined_flag_GCJ=unsupported
18808
# Tell ltmain to make .lib files, not .a files.
18810
# Tell ltmain to make .dll files, not .so files.
18812
# FIXME: Setting linknames here is a bad hack.
18813
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18814
# The linker will automatically build a .lib file if we build a DLL.
18815
old_archive_From_new_cmds_GCJ='true'
18816
# FIXME: Should let the user specify the lib program.
18817
old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18818
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18819
enable_shared_with_static_runtimes_GCJ=yes
18822
darwin* | rhapsody*)
18824
rhapsody* | darwin1.[012])
18825
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18828
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18829
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18831
case ${MACOSX_DEPLOYMENT_TARGET} in
18833
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18836
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18842
archive_cmds_need_lc_GCJ=no
18843
hardcode_direct_GCJ=no
18844
hardcode_automatic_GCJ=yes
18845
hardcode_shlibpath_var_GCJ=unsupported
18846
whole_archive_flag_spec_GCJ=''
18847
link_all_deplibs_GCJ=yes
18848
if test "$GCC" = yes ; then
18849
output_verbose_link_cmd='echo'
18850
archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18851
module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18852
archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
18853
module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
18855
case $cc_basename in
18857
output_verbose_link_cmd='echo'
18858
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18859
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18860
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18861
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18862
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}'
18872
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18873
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18874
hardcode_shlibpath_var_GCJ=no
18881
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18882
# support. Future versions do this automatically, but an explicit c++rt0.o
18883
# does not break anything, and helps significantly (at the cost of a little
18886
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18887
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18888
hardcode_direct_GCJ=yes
18889
hardcode_shlibpath_var_GCJ=no
18892
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
18894
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18895
hardcode_direct_GCJ=yes
18896
hardcode_minus_L_GCJ=yes
18897
hardcode_shlibpath_var_GCJ=no
18900
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18901
freebsd* | dragonfly*)
18902
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18903
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18904
hardcode_direct_GCJ=yes
18905
hardcode_shlibpath_var_GCJ=no
18909
if test "$GCC" = yes; then
18910
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'
18912
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'
18914
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18915
hardcode_libdir_separator_GCJ=:
18916
hardcode_direct_GCJ=yes
18918
# hardcode_minus_L: Not really in the search PATH,
18919
# but as the default location of the library.
18920
hardcode_minus_L_GCJ=yes
18921
export_dynamic_flag_spec_GCJ='${wl}-E'
18925
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18926
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18928
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18930
if test "$with_gnu_ld" = no; then
18931
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18932
hardcode_libdir_separator_GCJ=:
18934
hardcode_direct_GCJ=yes
18935
export_dynamic_flag_spec_GCJ='${wl}-E'
18937
# hardcode_minus_L: Not really in the search PATH,
18938
# but as the default location of the library.
18939
hardcode_minus_L_GCJ=yes
18944
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18947
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18950
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18953
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18959
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18962
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18965
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18969
if test "$with_gnu_ld" = no; then
18970
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18971
hardcode_libdir_separator_GCJ=:
18975
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18976
hardcode_direct_GCJ=no
18977
hardcode_shlibpath_var_GCJ=no
18980
hardcode_direct_GCJ=yes
18981
export_dynamic_flag_spec_GCJ='${wl}-E'
18983
# hardcode_minus_L: Not really in the search PATH,
18984
# but as the default location of the library.
18985
hardcode_minus_L_GCJ=yes
18991
irix5* | irix6* | nonstopux*)
18992
if test "$GCC" = yes; then
18993
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'
18995
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'
18996
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18998
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18999
hardcode_libdir_separator_GCJ=:
19000
link_all_deplibs_GCJ=yes
19004
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19005
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19007
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19009
hardcode_libdir_flag_spec_GCJ='-R$libdir'
19010
hardcode_direct_GCJ=yes
19011
hardcode_shlibpath_var_GCJ=no
19015
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19016
hardcode_direct_GCJ=yes
19017
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19018
hardcode_libdir_separator_GCJ=:
19019
hardcode_shlibpath_var_GCJ=no
19023
if test -f /usr/libexec/ld.so; then
19024
hardcode_direct_GCJ=yes
19025
hardcode_shlibpath_var_GCJ=no
19026
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19027
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19028
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19029
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19030
export_dynamic_flag_spec_GCJ='${wl}-E'
19033
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19034
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19035
hardcode_libdir_flag_spec_GCJ='-R$libdir'
19038
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19039
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19049
hardcode_libdir_flag_spec_GCJ='-L$libdir'
19050
hardcode_minus_L_GCJ=yes
19051
allow_undefined_flag_GCJ=unsupported
19052
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'
19053
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19057
if test "$GCC" = yes; then
19058
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19059
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'
19061
allow_undefined_flag_GCJ=' -expect_unresolved \*'
19062
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'
19064
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19065
hardcode_libdir_separator_GCJ=:
19068
osf4* | osf5*) # as osf3* with the addition of -msym flag
19069
if test "$GCC" = yes; then
19070
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19071
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'
19072
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19074
allow_undefined_flag_GCJ=' -expect_unresolved \*'
19075
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'
19076
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~
19077
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
19079
# Both c and cxx compiler support -rpath directly
19080
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19082
hardcode_libdir_separator_GCJ=:
19086
no_undefined_flag_GCJ=' -z text'
19087
if test "$GCC" = yes; then
19089
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19090
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19091
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19094
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19095
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19096
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19098
hardcode_libdir_flag_spec_GCJ='-R$libdir'
19099
hardcode_shlibpath_var_GCJ=no
19101
solaris2.[0-5] | solaris2.[0-5].*) ;;
19103
# The compiler driver will combine and reorder linker options,
19104
# but understands `-z linker_flag'. GCC discards it without `$wl',
19105
# but is careful enough not to reorder.
19106
# Supported since Solaris 2.6 (maybe 2.5.1?)
19107
if test "$GCC" = yes; then
19108
whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19110
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
19114
link_all_deplibs_GCJ=yes
19118
if test "x$host_vendor" = xsequent; then
19119
# Use $CC to link under sequent, because it throws in some extra .o
19120
# files that make .init and .fini sections work.
19121
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19123
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19125
hardcode_libdir_flag_spec_GCJ='-L$libdir'
19126
hardcode_direct_GCJ=yes
19127
hardcode_minus_L_GCJ=yes
19128
hardcode_shlibpath_var_GCJ=no
19132
case $host_vendor in
19134
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19135
hardcode_direct_GCJ=yes # is this really true???
19138
## LD is ld it makes a PLAMLIB
19139
## CC just makes a GrossModule.
19140
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19141
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19142
hardcode_direct_GCJ=no
19145
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19146
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19149
runpath_var='LD_RUN_PATH'
19150
hardcode_shlibpath_var_GCJ=no
19154
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19155
hardcode_shlibpath_var_GCJ=no
19156
export_dynamic_flag_spec_GCJ='-Bexport'
19160
if test -d /usr/nec; then
19161
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19162
hardcode_shlibpath_var_GCJ=no
19163
runpath_var=LD_RUN_PATH
19164
hardcode_runpath_var=yes
19169
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19170
no_undefined_flag_GCJ='${wl}-z,text'
19171
archive_cmds_need_lc_GCJ=no
19172
hardcode_shlibpath_var_GCJ=no
19173
runpath_var='LD_RUN_PATH'
19175
if test "$GCC" = yes; then
19176
archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19177
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19179
archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19180
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19184
sysv5* | sco3.2v5* | sco5v6*)
19185
# Note: We can NOT use -z defs as we might desire, because we do not
19186
# link with -lc, and that would cause any symbols used from libc to
19187
# always be unresolved, which means just about no library would
19188
# ever link correctly. If we're not using GNU ld we use -z text
19189
# though, which does catch some bad symbols but isn't as heavy-handed
19191
no_undefined_flag_GCJ='${wl}-z,text'
19192
allow_undefined_flag_GCJ='${wl}-z,nodefs'
19193
archive_cmds_need_lc_GCJ=no
19194
hardcode_shlibpath_var_GCJ=no
19195
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19196
hardcode_libdir_separator_GCJ=':'
19197
link_all_deplibs_GCJ=yes
19198
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19199
runpath_var='LD_RUN_PATH'
19201
if test "$GCC" = yes; then
19202
archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19203
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19205
archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19206
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19211
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19212
hardcode_libdir_flag_spec_GCJ='-L$libdir'
19213
hardcode_shlibpath_var_GCJ=no
19222
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19223
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
19224
test "$ld_shlibs_GCJ" = no && can_build_shared=no
19227
# Do we need to explicitly link libc?
19229
case "x$archive_cmds_need_lc_GCJ" in
19231
# Assume -lc should be added
19232
archive_cmds_need_lc_GCJ=yes
19234
if test "$enable_shared" = yes && test "$GCC" = yes; then
19235
case $archive_cmds_GCJ in
19237
# FIXME: we may have to deal with multi-command sequences.
19240
# Test whether the compiler implicitly links with -lc since on some
19241
# systems, -lgcc has to come before -lc. If gcc already passes -lc
19242
# to ld, don't add -lc before -lgcc.
19243
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19244
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19246
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19248
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19249
(eval $ac_compile) 2>&5
19251
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19252
(exit $ac_status); } 2>conftest.err; then
19255
libobjs=conftest.$ac_objext
19257
wl=$lt_prog_compiler_wl_GCJ
19258
pic_flag=$lt_prog_compiler_pic_GCJ
19264
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19265
allow_undefined_flag_GCJ=
19266
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19267
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19269
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19270
(exit $ac_status); }
19272
archive_cmds_need_lc_GCJ=no
19274
archive_cmds_need_lc_GCJ=yes
19276
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19278
cat conftest.err 1>&5
19281
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19282
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
19289
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19290
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19291
library_names_spec=
19292
libname_spec='lib$name'
19296
postuninstall_cmds=
19300
shlibpath_overrides_runpath=unknown
19302
dynamic_linker="$host_os ld.so"
19303
sys_lib_dlsearch_path_spec="/lib /usr/lib"
19305
need_lib_prefix=unknown
19306
hardcode_into_libs=no
19308
# when you set need_version to no, make sure it does not cause -set_version
19309
# flags to be left without arguments
19310
need_version=unknown
19315
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19316
shlibpath_var=LIBPATH
19318
# AIX 3 has no versioning support, so we append a major version to the name.
19319
soname_spec='${libname}${release}${shared_ext}$major'
19326
hardcode_into_libs=yes
19327
if test "$host_cpu" = ia64; then
19328
# AIX 5 supports IA64
19329
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19330
shlibpath_var=LD_LIBRARY_PATH
19332
# With GCC up to 2.95.x, collect2 would create an import file
19333
# for dependence libraries. The import file would start with
19334
# the line `#! .'. This would cause the generated library to
19335
# depend on `.', always an invalid library. This was fixed in
19336
# development snapshots of GCC prior to 3.0.
19338
aix4 | aix4.[01] | aix4.[01].*)
19339
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19341
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19344
can_build_shared=no
19348
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19349
# soname into executable. Probably we can add versioning support to
19350
# collect2, so additional links can be useful in future.
19351
if test "$aix_use_runtimelinking" = yes; then
19352
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
19353
# instead of lib<name>.a to let people know that these are not
19354
# typical AIX shared libraries.
19355
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19357
# We preserve .a as extension for shared libraries through AIX4.2
19358
# and later when we are not doing run time linking.
19359
library_names_spec='${libname}${release}.a $libname.a'
19360
soname_spec='${libname}${release}${shared_ext}$major'
19362
shlibpath_var=LIBPATH
19367
library_names_spec='$libname.ixlibrary $libname.a'
19368
# Create ${libname}_ixlibrary.a entries in /sys/libs.
19369
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'
19373
library_names_spec='${libname}${shared_ext}'
19374
dynamic_linker="$host_os ld.so"
19375
shlibpath_var=LIBRARY_PATH
19381
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19382
soname_spec='${libname}${release}${shared_ext}$major'
19383
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19384
shlibpath_var=LD_LIBRARY_PATH
19385
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19386
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19387
# the default ld.so.conf also contains /usr/contrib/lib and
19388
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19389
# libtool to hard-code these into programs
19392
cygwin* | mingw* | pw32*)
19393
version_type=windows
19398
case $GCC,$host_os in
19399
yes,cygwin* | yes,mingw* | yes,pw32*)
19400
library_names_spec='$libname.dll.a'
19401
# DLL is installed to $(libdir)/../bin by postinstall_cmds
19402
postinstall_cmds='base_file=`basename \${file}`~
19403
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19404
dldir=$destdir/`dirname \$dlpath`~
19405
test -d \$dldir || mkdir -p \$dldir~
19406
$install_prog $dir/$dlname \$dldir/$dlname~
19407
chmod a+x \$dldir/$dlname'
19408
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19409
dlpath=$dir/\$dldll~
19411
shlibpath_overrides_runpath=yes
19415
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
19416
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19417
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19420
# MinGW DLLs use traditional 'lib' prefix
19421
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19422
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19423
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19424
# It is most probably a Windows format PATH printed by
19425
# mingw gcc, but we are running on Cygwin. Gcc prints its search
19426
# path with ; separators, and with drive letters. We can handle the
19427
# drive letters (cygwin fileutils understands them), so leave them,
19428
# especially as we might pass files found there to a mingw objdump,
19429
# which wouldn't understand a cygwinified path. Ahh.
19430
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19432
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19436
# pw32 DLLs use 'pw' prefix rather than 'lib'
19437
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19443
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19446
dynamic_linker='Win32 ld.exe'
19447
# FIXME: first we should search . and the directory the executable is in
19451
darwin* | rhapsody*)
19452
dynamic_linker="$host_os dyld"
19453
version_type=darwin
19456
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19457
soname_spec='${libname}${release}${major}$shared_ext'
19458
shlibpath_overrides_runpath=yes
19459
shlibpath_var=DYLD_LIBRARY_PATH
19460
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19462
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19469
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19470
soname_spec='${libname}${release}${shared_ext}$major'
19471
shlibpath_var=LD_LIBRARY_PATH
19478
freebsd* | dragonfly*)
19479
# DragonFly does not have aout. When/if they implement a new
19480
# versioning mechanism, adjust this.
19481
if test -x /usr/bin/objformat; then
19482
objformat=`/usr/bin/objformat`
19485
freebsd[123]*) objformat=aout ;;
19486
*) objformat=elf ;;
19489
version_type=freebsd-$objformat
19490
case $version_type in
19492
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19497
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19501
shlibpath_var=LD_LIBRARY_PATH
19504
shlibpath_overrides_runpath=yes
19506
freebsd3.[01]* | freebsdelf3.[01]*)
19507
shlibpath_overrides_runpath=yes
19508
hardcode_into_libs=yes
19510
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19511
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19512
shlibpath_overrides_runpath=no
19513
hardcode_into_libs=yes
19515
*) # from 4.6 on, and DragonFly
19516
shlibpath_overrides_runpath=yes
19517
hardcode_into_libs=yes
19526
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19527
soname_spec='${libname}${release}${shared_ext}$major'
19528
shlibpath_var=LD_LIBRARY_PATH
19529
hardcode_into_libs=yes
19532
hpux9* | hpux10* | hpux11*)
19533
# Give a soname corresponding to the major version so that dld.sl refuses to
19534
# link against other versions.
19541
hardcode_into_libs=yes
19542
dynamic_linker="$host_os dld.so"
19543
shlibpath_var=LD_LIBRARY_PATH
19544
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19545
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19546
soname_spec='${libname}${release}${shared_ext}$major'
19547
if test "X$HPUX_IA64_MODE" = X32; then
19548
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19550
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19552
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19556
hardcode_into_libs=yes
19557
dynamic_linker="$host_os dld.sl"
19558
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19559
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19560
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19561
soname_spec='${libname}${release}${shared_ext}$major'
19562
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19563
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19567
dynamic_linker="$host_os dld.sl"
19568
shlibpath_var=SHLIB_PATH
19569
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19570
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19571
soname_spec='${libname}${release}${shared_ext}$major'
19574
# HP-UX runs *really* slowly unless shared libraries are mode 555.
19575
postinstall_cmds='chmod 555 $lib'
19582
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19583
soname_spec='${libname}${release}${shared_ext}$major'
19584
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19585
shlibpath_var=LD_LIBRARY_PATH
19586
shlibpath_overrides_runpath=no
19587
hardcode_into_libs=yes
19590
irix5* | irix6* | nonstopux*)
19592
nonstopux*) version_type=nonstopux ;;
19594
if test "$lt_cv_prog_gnu_ld" = yes; then
19602
soname_spec='${libname}${release}${shared_ext}$major'
19603
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19605
irix5* | nonstopux*)
19606
libsuff= shlibsuff=
19609
case $LD in # libtool.m4 will add one of these switches to LD
19610
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19611
libsuff= shlibsuff= libmagic=32-bit;;
19612
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19613
libsuff=32 shlibsuff=N32 libmagic=N32;;
19614
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19615
libsuff=64 shlibsuff=64 libmagic=64-bit;;
19616
*) libsuff= shlibsuff= libmagic=never-match;;
19620
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19621
shlibpath_overrides_runpath=no
19622
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19623
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19624
hardcode_into_libs=yes
19627
# No shared lib support for Linux oldld, aout, or coff.
19628
linux*oldld* | linux*aout* | linux*coff*)
19632
# This must be Linux ELF.
19633
linux* | k*bsd*-gnu)
19637
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19638
soname_spec='${libname}${release}${shared_ext}$major'
19639
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19640
shlibpath_var=LD_LIBRARY_PATH
19641
shlibpath_overrides_runpath=no
19642
# This implies no fast_install, which is unacceptable.
19643
# Some rework will be needed to allow for fast_install
19644
# before this can be enabled.
19645
hardcode_into_libs=yes
19647
# Append ld.so.conf contents to the search path
19648
if test -f /etc/ld.so.conf; then
19649
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
19650
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19653
# We used to test for /lib/ld.so.1 and disable shared libraries on
19654
# powerpc, because MkLinux only supported shared libraries with the
19655
# GNU dynamic linker. Since this was broken with cross compilers,
19656
# most powerpc-linux boxes support dynamic linking these days and
19657
# people can always --disable-shared, the test was removed, and we
19658
# assume the GNU/Linux dynamic linker is in use.
19659
dynamic_linker='GNU/Linux ld.so'
19666
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19667
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19668
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19669
dynamic_linker='NetBSD (a.out) ld.so'
19671
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19672
soname_spec='${libname}${release}${shared_ext}$major'
19673
dynamic_linker='NetBSD ld.elf_so'
19675
shlibpath_var=LD_LIBRARY_PATH
19676
shlibpath_overrides_runpath=yes
19677
hardcode_into_libs=yes
19682
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19683
shlibpath_var=LD_LIBRARY_PATH
19684
shlibpath_overrides_runpath=yes
19691
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19692
soname_spec='${libname}${release}${shared_ext}$major'
19693
shlibpath_var=LD_LIBRARY_PATH
19694
shlibpath_overrides_runpath=yes
19699
sys_lib_dlsearch_path_spec="/usr/lib"
19701
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19703
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19704
*) need_version=no ;;
19706
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19707
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19708
shlibpath_var=LD_LIBRARY_PATH
19709
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19711
openbsd2.[89] | openbsd2.[89].*)
19712
shlibpath_overrides_runpath=no
19715
shlibpath_overrides_runpath=yes
19719
shlibpath_overrides_runpath=yes
19724
libname_spec='$name'
19727
library_names_spec='$libname${shared_ext} $libname.a'
19728
dynamic_linker='OS/2 ld.exe'
19729
shlibpath_var=LIBPATH
19732
osf3* | osf4* | osf5*)
19736
soname_spec='${libname}${release}${shared_ext}$major'
19737
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19738
shlibpath_var=LD_LIBRARY_PATH
19739
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19740
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19751
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19752
soname_spec='${libname}${release}${shared_ext}$major'
19753
shlibpath_var=LD_LIBRARY_PATH
19754
shlibpath_overrides_runpath=yes
19755
hardcode_into_libs=yes
19756
# ldd complains unless libraries are executable
19757
postinstall_cmds='chmod +x $lib'
19762
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19763
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19764
shlibpath_var=LD_LIBRARY_PATH
19765
shlibpath_overrides_runpath=yes
19766
if test "$with_gnu_ld" = yes; then
19774
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19775
soname_spec='${libname}${release}${shared_ext}$major'
19776
shlibpath_var=LD_LIBRARY_PATH
19777
case $host_vendor in
19779
shlibpath_overrides_runpath=no
19781
export_dynamic_flag_spec='${wl}-Blargedynsym'
19782
runpath_var=LD_RUN_PATH
19790
shlibpath_overrides_runpath=no
19791
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19797
if test -d /usr/nec ;then
19799
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19800
soname_spec='$libname${shared_ext}.$major'
19801
shlibpath_var=LD_LIBRARY_PATH
19805
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19806
version_type=freebsd-elf
19809
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19810
soname_spec='${libname}${release}${shared_ext}$major'
19811
shlibpath_var=LD_LIBRARY_PATH
19812
hardcode_into_libs=yes
19813
if test "$with_gnu_ld" = yes; then
19814
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19815
shlibpath_overrides_runpath=no
19817
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19818
shlibpath_overrides_runpath=yes
19821
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19825
sys_lib_dlsearch_path_spec='/usr/lib'
19830
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19831
soname_spec='${libname}${release}${shared_ext}$major'
19832
shlibpath_var=LD_LIBRARY_PATH
19839
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19840
echo "${ECHO_T}$dynamic_linker" >&6; }
19841
test "$dynamic_linker" = no && can_build_shared=no
19843
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19844
echo $ECHO_N "(cached) $ECHO_C" >&6
19846
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19849
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19850
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19851
echo $ECHO_N "(cached) $ECHO_C" >&6
19853
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19856
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19858
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19859
if test "$GCC" = yes; then
19860
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19863
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19864
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19865
hardcode_action_GCJ=
19866
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19867
test -n "$runpath_var_GCJ" || \
19868
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19870
# We can hardcode non-existant directories.
19871
if test "$hardcode_direct_GCJ" != no &&
19872
# If the only mechanism to avoid hardcoding is shlibpath_var, we
19873
# have to relink, otherwise we might link with an installed library
19874
# when we should be linking with a yet-to-be-installed one
19875
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19876
test "$hardcode_minus_L_GCJ" != no; then
19877
# Linking always hardcodes the temporary library directory.
19878
hardcode_action_GCJ=relink
19880
# We can link without hardcoding, and we can hardcode nonexisting dirs.
19881
hardcode_action_GCJ=immediate
19884
# We cannot hardcode anything, or else we can only hardcode existing
19886
hardcode_action_GCJ=unsupported
19888
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19889
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19891
if test "$hardcode_action_GCJ" = relink; then
19892
# Fast installation is not supported
19893
enable_fast_install=no
19894
elif test "$shlibpath_overrides_runpath" = yes ||
19895
test "$enable_shared" = no; then
19896
# Fast installation is not necessary
19897
enable_fast_install=needless
19901
# The else clause should only fire when bootstrapping the
19902
# libtool distribution, otherwise you forgot to ship ltmain.sh
19903
# with your package, and you will get complaints that there are
19904
# no rules to generate ltmain.sh.
19905
if test -f "$ltmain"; then
19906
# See if we are running on zsh, and set the options which allow our commands through
19907
# without removal of \ escapes.
19908
if test -n "${ZSH_VERSION+set}" ; then
19909
setopt NO_GLOB_SUBST
19911
# Now quote all the things that may contain metacharacters while being
19912
# careful not to overquote the AC_SUBSTed values. We take copies of the
19913
# variables and quote the copies for generation of the libtool script.
19914
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19916
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19917
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19918
deplibs_check_method reload_flag reload_cmds need_locks \
19919
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19920
lt_cv_sys_global_symbol_to_c_name_address \
19921
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19922
old_postinstall_cmds old_postuninstall_cmds \
19926
lt_prog_compiler_wl_GCJ \
19927
lt_prog_compiler_pic_GCJ \
19928
lt_prog_compiler_static_GCJ \
19929
lt_prog_compiler_no_builtin_flag_GCJ \
19930
export_dynamic_flag_spec_GCJ \
19931
thread_safe_flag_spec_GCJ \
19932
whole_archive_flag_spec_GCJ \
19933
enable_shared_with_static_runtimes_GCJ \
19934
old_archive_cmds_GCJ \
19935
old_archive_from_new_cmds_GCJ \
19936
predep_objects_GCJ \
19937
postdep_objects_GCJ \
19940
compiler_lib_search_path_GCJ \
19941
compiler_lib_search_dirs_GCJ \
19943
archive_expsym_cmds_GCJ \
19944
postinstall_cmds_GCJ \
19945
postuninstall_cmds_GCJ \
19946
old_archive_from_expsyms_cmds_GCJ \
19947
allow_undefined_flag_GCJ \
19948
no_undefined_flag_GCJ \
19949
export_symbols_cmds_GCJ \
19950
hardcode_libdir_flag_spec_GCJ \
19951
hardcode_libdir_flag_spec_ld_GCJ \
19952
hardcode_libdir_separator_GCJ \
19953
hardcode_automatic_GCJ \
19955
module_expsym_cmds_GCJ \
19956
lt_cv_prog_compiler_c_o_GCJ \
19957
fix_srcfile_path_GCJ \
19958
exclude_expsyms_GCJ \
19959
include_expsyms_GCJ; do
19962
old_archive_cmds_GCJ | \
19963
old_archive_from_new_cmds_GCJ | \
19964
archive_cmds_GCJ | \
19965
archive_expsym_cmds_GCJ | \
19966
module_cmds_GCJ | \
19967
module_expsym_cmds_GCJ | \
19968
old_archive_from_expsyms_cmds_GCJ | \
19969
export_symbols_cmds_GCJ | \
19970
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19971
postinstall_cmds | postuninstall_cmds | \
19972
old_postinstall_cmds | old_postuninstall_cmds | \
19973
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19974
# Double-quote double-evaled strings.
19975
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19978
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19984
*'\$0 --fallback-echo"')
19985
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19991
cat <<__EOF__ >> "$cfgfile"
19992
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19994
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19996
# Shell to use when invoking shell scripts.
19999
# Whether or not to build shared libraries.
20000
build_libtool_libs=$enable_shared
20002
# Whether or not to build static libraries.
20003
build_old_libs=$enable_static
20005
# Whether or not to add -lc for building shared libraries.
20006
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20008
# Whether or not to disallow shared libs when runtime libs are static
20009
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20011
# Whether or not to optimize for fast installation.
20012
fast_install=$enable_fast_install
20015
host_alias=$host_alias
20019
# The build system.
20020
build_alias=$build_alias
20024
# An echo program that does not interpret backslashes.
20029
AR_FLAGS=$lt_AR_FLAGS
20034
# LTCC compiler flags.
20035
LTCFLAGS=$lt_LTCFLAGS
20037
# A language-specific compiler.
20038
CC=$lt_compiler_GCJ
20040
# Is the compiler the GNU C compiler?
20046
# The linker used to build libraries.
20049
# Whether we need hard or soft links.
20052
# A BSD-compatible nm program.
20055
# A symbol stripping program
20058
# Used to examine libraries when file_magic_cmd begins "file"
20059
MAGIC_CMD=$MAGIC_CMD
20061
# Used on cygwin: DLL creation program.
20064
# Used on cygwin: object dumper.
20067
# Used on cygwin: assembler.
20070
# The name of the directory that contains temporary libtool files.
20073
# How to create reloadable object files.
20074
reload_flag=$lt_reload_flag
20075
reload_cmds=$lt_reload_cmds
20077
# How to pass a linker flag through the compiler.
20078
wl=$lt_lt_prog_compiler_wl_GCJ
20080
# Object file suffix (normally "o").
20081
objext="$ac_objext"
20083
# Old archive suffix (normally "a").
20086
# Shared library suffix (normally ".so").
20087
shrext_cmds='$shrext_cmds'
20089
# Executable file suffix (normally "").
20092
# Additional compiler flags for building library objects.
20093
pic_flag=$lt_lt_prog_compiler_pic_GCJ
20096
# What is the maximum length of a command?
20097
max_cmd_len=$lt_cv_sys_max_cmd_len
20099
# Does compiler simultaneously support -c and -o options?
20100
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20102
# Must we lock files when doing compilation?
20103
need_locks=$lt_need_locks
20105
# Do we need the lib prefix for modules?
20106
need_lib_prefix=$need_lib_prefix
20108
# Do we need a version for libraries?
20109
need_version=$need_version
20111
# Whether dlopen is supported.
20112
dlopen_support=$enable_dlopen
20114
# Whether dlopen of programs is supported.
20115
dlopen_self=$enable_dlopen_self
20117
# Whether dlopen of statically linked programs is supported.
20118
dlopen_self_static=$enable_dlopen_self_static
20120
# Compiler flag to prevent dynamic linking.
20121
link_static_flag=$lt_lt_prog_compiler_static_GCJ
20123
# Compiler flag to turn off builtin functions.
20124
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20126
# Compiler flag to allow reflexive dlopens.
20127
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20129
# Compiler flag to generate shared objects directly from archives.
20130
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20132
# Compiler flag to generate thread-safe objects.
20133
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20135
# Library versioning type.
20136
version_type=$version_type
20138
# Format of library name prefix.
20139
libname_spec=$lt_libname_spec
20141
# List of archive names. First name is the real one, the rest are links.
20142
# The last name is the one that the linker finds with -lNAME.
20143
library_names_spec=$lt_library_names_spec
20145
# The coded name of the library, if different from the real name.
20146
soname_spec=$lt_soname_spec
20148
# Commands used to build and install an old-style archive.
20150
old_archive_cmds=$lt_old_archive_cmds_GCJ
20151
old_postinstall_cmds=$lt_old_postinstall_cmds
20152
old_postuninstall_cmds=$lt_old_postuninstall_cmds
20154
# Create an old-style archive from a shared archive.
20155
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20157
# Create a temporary old-style archive to link instead of a shared archive.
20158
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20160
# Commands used to build and install a shared archive.
20161
archive_cmds=$lt_archive_cmds_GCJ
20162
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20163
postinstall_cmds=$lt_postinstall_cmds
20164
postuninstall_cmds=$lt_postuninstall_cmds
20166
# Commands used to build a loadable module (assumed same as above if empty)
20167
module_cmds=$lt_module_cmds_GCJ
20168
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20170
# Commands to strip libraries.
20171
old_striplib=$lt_old_striplib
20172
striplib=$lt_striplib
20174
# Dependencies to place before the objects being linked to create a
20176
predep_objects=$lt_predep_objects_GCJ
20178
# Dependencies to place after the objects being linked to create a
20180
postdep_objects=$lt_postdep_objects_GCJ
20182
# Dependencies to place before the objects being linked to create a
20184
predeps=$lt_predeps_GCJ
20186
# Dependencies to place after the objects being linked to create a
20188
postdeps=$lt_postdeps_GCJ
20190
# The directories searched by this compiler when creating a shared
20192
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
20194
# The library search path used internally by the compiler when linking
20195
# a shared library.
20196
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20198
# Method to check whether dependent libraries are shared objects.
20199
deplibs_check_method=$lt_deplibs_check_method
20201
# Command to use when deplibs_check_method == file_magic.
20202
file_magic_cmd=$lt_file_magic_cmd
20204
# Flag that allows shared libraries with undefined symbols to be built.
20205
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20207
# Flag that forces no undefined symbols.
20208
no_undefined_flag=$lt_no_undefined_flag_GCJ
20210
# Commands used to finish a libtool library installation in a directory.
20211
finish_cmds=$lt_finish_cmds
20213
# Same as above, but a single script fragment to be evaled but not shown.
20214
finish_eval=$lt_finish_eval
20216
# Take the output of nm and produce a listing of raw symbols and C names.
20217
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20219
# Transform the output of nm in a proper C declaration
20220
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20222
# Transform the output of nm in a C name address pair
20223
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20225
# This is the shared library runtime path variable.
20226
runpath_var=$runpath_var
20228
# This is the shared library path variable.
20229
shlibpath_var=$shlibpath_var
20231
# Is shlibpath searched before the hard-coded library search path?
20232
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20234
# How to hardcode a shared library path into an executable.
20235
hardcode_action=$hardcode_action_GCJ
20237
# Whether we should hardcode library paths into libraries.
20238
hardcode_into_libs=$hardcode_into_libs
20240
# Flag to hardcode \$libdir into a binary during linking.
20241
# This must work even if \$libdir does not exist.
20242
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20244
# If ld is used when linking, flag to hardcode \$libdir into
20245
# a binary during linking. This must work even if \$libdir does
20247
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20249
# Whether we need a single -rpath flag with a separated argument.
20250
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20252
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20253
# resulting binary.
20254
hardcode_direct=$hardcode_direct_GCJ
20256
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20257
# resulting binary.
20258
hardcode_minus_L=$hardcode_minus_L_GCJ
20260
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20261
# the resulting binary.
20262
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20264
# Set to yes if building a shared library automatically hardcodes DIR into the library
20265
# and all subsequent libraries and executables linked against it.
20266
hardcode_automatic=$hardcode_automatic_GCJ
20268
# Variables whose values should be saved in libtool wrapper scripts and
20269
# restored at relink time.
20270
variables_saved_for_relink="$variables_saved_for_relink"
20272
# Whether libtool must link a program against all its dependency libraries.
20273
link_all_deplibs=$link_all_deplibs_GCJ
20275
# Compile-time system search path for libraries
20276
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20278
# Run-time system search path for libraries
20279
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20281
# Fix the shell variable \$srcfile for the compiler.
20282
fix_srcfile_path=$lt_fix_srcfile_path
20284
# Set to yes if exported symbols are required.
20285
always_export_symbols=$always_export_symbols_GCJ
20287
# The commands to list exported symbols.
20288
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20290
# The commands to extract the exported symbol list from a shared archive.
20291
extract_expsyms_cmds=$lt_extract_expsyms_cmds
20293
# Symbols that should not be listed in the preloaded symbols.
20294
exclude_expsyms=$lt_exclude_expsyms_GCJ
20296
# Symbols that must always be exported.
20297
include_expsyms=$lt_include_expsyms_GCJ
20299
# ### END LIBTOOL TAG CONFIG: $tagname
20305
# If there is no Makefile yet, we rely on a make rule to execute
20306
# `config.status --recheck' to rerun these tests and create the
20307
# libtool script then.
20308
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20309
if test -f "$ltmain_in"; then
20310
test -f Makefile && make "$ltmain"
20316
ac_cpp='$CPP $CPPFLAGS'
20317
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20318
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20319
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20331
# Source file extension for RC test sources.
20334
# Object file extension for compiled RC test sources.
20338
# Code to be used in simple compile tests
20339
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
20341
# Code to be used in simple link tests
20342
lt_simple_link_test_code="$lt_simple_compile_test_code"
20344
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20346
# If no C compiler was specified, use CC.
20349
# If no C compiler flags were specified, use CFLAGS.
20350
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20352
# Allow CC to be a program name with arguments.
20356
# save warnings/boilerplate of simple test code
20357
ac_outfile=conftest.$ac_objext
20358
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
20359
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20360
_lt_compiler_boilerplate=`cat conftest.err`
20363
ac_outfile=conftest.$ac_objext
20364
echo "$lt_simple_link_test_code" >conftest.$ac_ext
20365
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20366
_lt_linker_boilerplate=`cat conftest.err`
20370
# Allow CC to be a program name with arguments.
20375
for cc_temp in $compiler""; do
20377
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20378
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20383
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20385
lt_cv_prog_compiler_c_o_RC=yes
20387
# The else clause should only fire when bootstrapping the
20388
# libtool distribution, otherwise you forgot to ship ltmain.sh
20389
# with your package, and you will get complaints that there are
20390
# no rules to generate ltmain.sh.
20391
if test -f "$ltmain"; then
20392
# See if we are running on zsh, and set the options which allow our commands through
20393
# without removal of \ escapes.
20394
if test -n "${ZSH_VERSION+set}" ; then
20395
setopt NO_GLOB_SUBST
20397
# Now quote all the things that may contain metacharacters while being
20398
# careful not to overquote the AC_SUBSTed values. We take copies of the
20399
# variables and quote the copies for generation of the libtool script.
20400
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20402
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20403
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20404
deplibs_check_method reload_flag reload_cmds need_locks \
20405
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20406
lt_cv_sys_global_symbol_to_c_name_address \
20407
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20408
old_postinstall_cmds old_postuninstall_cmds \
20412
lt_prog_compiler_wl_RC \
20413
lt_prog_compiler_pic_RC \
20414
lt_prog_compiler_static_RC \
20415
lt_prog_compiler_no_builtin_flag_RC \
20416
export_dynamic_flag_spec_RC \
20417
thread_safe_flag_spec_RC \
20418
whole_archive_flag_spec_RC \
20419
enable_shared_with_static_runtimes_RC \
20420
old_archive_cmds_RC \
20421
old_archive_from_new_cmds_RC \
20422
predep_objects_RC \
20423
postdep_objects_RC \
20426
compiler_lib_search_path_RC \
20427
compiler_lib_search_dirs_RC \
20429
archive_expsym_cmds_RC \
20430
postinstall_cmds_RC \
20431
postuninstall_cmds_RC \
20432
old_archive_from_expsyms_cmds_RC \
20433
allow_undefined_flag_RC \
20434
no_undefined_flag_RC \
20435
export_symbols_cmds_RC \
20436
hardcode_libdir_flag_spec_RC \
20437
hardcode_libdir_flag_spec_ld_RC \
20438
hardcode_libdir_separator_RC \
20439
hardcode_automatic_RC \
20441
module_expsym_cmds_RC \
20442
lt_cv_prog_compiler_c_o_RC \
20443
fix_srcfile_path_RC \
20444
exclude_expsyms_RC \
20445
include_expsyms_RC; do
20448
old_archive_cmds_RC | \
20449
old_archive_from_new_cmds_RC | \
20450
archive_cmds_RC | \
20451
archive_expsym_cmds_RC | \
20453
module_expsym_cmds_RC | \
20454
old_archive_from_expsyms_cmds_RC | \
20455
export_symbols_cmds_RC | \
20456
extract_expsyms_cmds | reload_cmds | finish_cmds | \
20457
postinstall_cmds | postuninstall_cmds | \
20458
old_postinstall_cmds | old_postuninstall_cmds | \
20459
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20460
# Double-quote double-evaled strings.
20461
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20464
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20470
*'\$0 --fallback-echo"')
20471
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20477
cat <<__EOF__ >> "$cfgfile"
20478
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20480
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20482
# Shell to use when invoking shell scripts.
20485
# Whether or not to build shared libraries.
20486
build_libtool_libs=$enable_shared
20488
# Whether or not to build static libraries.
20489
build_old_libs=$enable_static
20491
# Whether or not to add -lc for building shared libraries.
20492
build_libtool_need_lc=$archive_cmds_need_lc_RC
20494
# Whether or not to disallow shared libs when runtime libs are static
20495
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20497
# Whether or not to optimize for fast installation.
20498
fast_install=$enable_fast_install
20501
host_alias=$host_alias
20505
# The build system.
20506
build_alias=$build_alias
20510
# An echo program that does not interpret backslashes.
20515
AR_FLAGS=$lt_AR_FLAGS
20520
# LTCC compiler flags.
20521
LTCFLAGS=$lt_LTCFLAGS
20523
# A language-specific compiler.
20526
# Is the compiler the GNU C compiler?
20532
# The linker used to build libraries.
20535
# Whether we need hard or soft links.
20538
# A BSD-compatible nm program.
20541
# A symbol stripping program
20544
# Used to examine libraries when file_magic_cmd begins "file"
20545
MAGIC_CMD=$MAGIC_CMD
20547
# Used on cygwin: DLL creation program.
20550
# Used on cygwin: object dumper.
20553
# Used on cygwin: assembler.
20556
# The name of the directory that contains temporary libtool files.
20559
# How to create reloadable object files.
20560
reload_flag=$lt_reload_flag
20561
reload_cmds=$lt_reload_cmds
20563
# How to pass a linker flag through the compiler.
20564
wl=$lt_lt_prog_compiler_wl_RC
20566
# Object file suffix (normally "o").
20567
objext="$ac_objext"
20569
# Old archive suffix (normally "a").
20572
# Shared library suffix (normally ".so").
20573
shrext_cmds='$shrext_cmds'
20575
# Executable file suffix (normally "").
20578
# Additional compiler flags for building library objects.
20579
pic_flag=$lt_lt_prog_compiler_pic_RC
20582
# What is the maximum length of a command?
20583
max_cmd_len=$lt_cv_sys_max_cmd_len
20585
# Does compiler simultaneously support -c and -o options?
20586
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20588
# Must we lock files when doing compilation?
20589
need_locks=$lt_need_locks
20591
# Do we need the lib prefix for modules?
20592
need_lib_prefix=$need_lib_prefix
20594
# Do we need a version for libraries?
20595
need_version=$need_version
20597
# Whether dlopen is supported.
20598
dlopen_support=$enable_dlopen
20600
# Whether dlopen of programs is supported.
20601
dlopen_self=$enable_dlopen_self
20603
# Whether dlopen of statically linked programs is supported.
20604
dlopen_self_static=$enable_dlopen_self_static
20606
# Compiler flag to prevent dynamic linking.
20607
link_static_flag=$lt_lt_prog_compiler_static_RC
20609
# Compiler flag to turn off builtin functions.
20610
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20612
# Compiler flag to allow reflexive dlopens.
20613
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20615
# Compiler flag to generate shared objects directly from archives.
20616
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20618
# Compiler flag to generate thread-safe objects.
20619
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20621
# Library versioning type.
20622
version_type=$version_type
20624
# Format of library name prefix.
20625
libname_spec=$lt_libname_spec
20627
# List of archive names. First name is the real one, the rest are links.
20628
# The last name is the one that the linker finds with -lNAME.
20629
library_names_spec=$lt_library_names_spec
20631
# The coded name of the library, if different from the real name.
20632
soname_spec=$lt_soname_spec
20634
# Commands used to build and install an old-style archive.
20636
old_archive_cmds=$lt_old_archive_cmds_RC
20637
old_postinstall_cmds=$lt_old_postinstall_cmds
20638
old_postuninstall_cmds=$lt_old_postuninstall_cmds
20640
# Create an old-style archive from a shared archive.
20641
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20643
# Create a temporary old-style archive to link instead of a shared archive.
20644
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20646
# Commands used to build and install a shared archive.
20647
archive_cmds=$lt_archive_cmds_RC
20648
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20649
postinstall_cmds=$lt_postinstall_cmds
20650
postuninstall_cmds=$lt_postuninstall_cmds
20652
# Commands used to build a loadable module (assumed same as above if empty)
20653
module_cmds=$lt_module_cmds_RC
20654
module_expsym_cmds=$lt_module_expsym_cmds_RC
20656
# Commands to strip libraries.
20657
old_striplib=$lt_old_striplib
20658
striplib=$lt_striplib
20660
# Dependencies to place before the objects being linked to create a
20662
predep_objects=$lt_predep_objects_RC
20664
# Dependencies to place after the objects being linked to create a
20666
postdep_objects=$lt_postdep_objects_RC
20668
# Dependencies to place before the objects being linked to create a
20670
predeps=$lt_predeps_RC
20672
# Dependencies to place after the objects being linked to create a
20674
postdeps=$lt_postdeps_RC
20676
# The directories searched by this compiler when creating a shared
20678
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
20680
# The library search path used internally by the compiler when linking
20681
# a shared library.
20682
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20684
# Method to check whether dependent libraries are shared objects.
20685
deplibs_check_method=$lt_deplibs_check_method
20687
# Command to use when deplibs_check_method == file_magic.
20688
file_magic_cmd=$lt_file_magic_cmd
20690
# Flag that allows shared libraries with undefined symbols to be built.
20691
allow_undefined_flag=$lt_allow_undefined_flag_RC
20693
# Flag that forces no undefined symbols.
20694
no_undefined_flag=$lt_no_undefined_flag_RC
20696
# Commands used to finish a libtool library installation in a directory.
20697
finish_cmds=$lt_finish_cmds
20699
# Same as above, but a single script fragment to be evaled but not shown.
20700
finish_eval=$lt_finish_eval
20702
# Take the output of nm and produce a listing of raw symbols and C names.
20703
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20705
# Transform the output of nm in a proper C declaration
20706
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20708
# Transform the output of nm in a C name address pair
20709
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20711
# This is the shared library runtime path variable.
20712
runpath_var=$runpath_var
20714
# This is the shared library path variable.
20715
shlibpath_var=$shlibpath_var
20717
# Is shlibpath searched before the hard-coded library search path?
20718
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20720
# How to hardcode a shared library path into an executable.
20721
hardcode_action=$hardcode_action_RC
20723
# Whether we should hardcode library paths into libraries.
20724
hardcode_into_libs=$hardcode_into_libs
20726
# Flag to hardcode \$libdir into a binary during linking.
20727
# This must work even if \$libdir does not exist.
20728
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20730
# If ld is used when linking, flag to hardcode \$libdir into
20731
# a binary during linking. This must work even if \$libdir does
20733
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20735
# Whether we need a single -rpath flag with a separated argument.
20736
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20738
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20739
# resulting binary.
20740
hardcode_direct=$hardcode_direct_RC
20742
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20743
# resulting binary.
20744
hardcode_minus_L=$hardcode_minus_L_RC
20746
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20747
# the resulting binary.
20748
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20750
# Set to yes if building a shared library automatically hardcodes DIR into the library
20751
# and all subsequent libraries and executables linked against it.
20752
hardcode_automatic=$hardcode_automatic_RC
20754
# Variables whose values should be saved in libtool wrapper scripts and
20755
# restored at relink time.
20756
variables_saved_for_relink="$variables_saved_for_relink"
20758
# Whether libtool must link a program against all its dependency libraries.
20759
link_all_deplibs=$link_all_deplibs_RC
20761
# Compile-time system search path for libraries
20762
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20764
# Run-time system search path for libraries
20765
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20767
# Fix the shell variable \$srcfile for the compiler.
20768
fix_srcfile_path=$lt_fix_srcfile_path
20770
# Set to yes if exported symbols are required.
20771
always_export_symbols=$always_export_symbols_RC
20773
# The commands to list exported symbols.
20774
export_symbols_cmds=$lt_export_symbols_cmds_RC
20776
# The commands to extract the exported symbol list from a shared archive.
20777
extract_expsyms_cmds=$lt_extract_expsyms_cmds
20779
# Symbols that should not be listed in the preloaded symbols.
20780
exclude_expsyms=$lt_exclude_expsyms_RC
20782
# Symbols that must always be exported.
20783
include_expsyms=$lt_include_expsyms_RC
20785
# ### END LIBTOOL TAG CONFIG: $tagname
20791
# If there is no Makefile yet, we rely on a make rule to execute
20792
# `config.status --recheck' to rerun these tests and create the
20793
# libtool script then.
20794
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20795
if test -f "$ltmain_in"; then
20796
test -f Makefile && make "$ltmain"
20802
ac_cpp='$CPP $CPPFLAGS'
20803
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20804
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20805
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20812
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20813
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20814
{ (exit 1); exit 1; }; }
20818
# Append the new tag name to the list of available tags.
20819
if test -n "$tagname" ; then
20820
available_tags="$available_tags $tagname"
20826
# Now substitute the updated list of available tags.
20827
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20828
mv "${ofile}T" "$ofile"
20832
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20833
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20834
{ (exit 1); exit 1; }; }
20840
# This can be used to rebuild libtool when needed
20841
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20843
# Always use our own libtool.
20844
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20846
# Prevent multiple expansion
20868
{ echo "$as_me:$LINENO: checking host system type" >&5
20869
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
12084
{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12085
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12086
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12087
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12088
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12089
{ $as_echo "$as_me:$LINENO: result: yes" >&5
12090
$as_echo "yes" >&6; }
12092
# FIXME - insert some real tests, host_os isn't really good enough
12095
if test -n "$STRIP" ; then
12096
striplib="$STRIP -x"
12097
old_striplib="$STRIP -S"
12098
{ $as_echo "$as_me:$LINENO: result: yes" >&5
12099
$as_echo "yes" >&6; }
12101
{ $as_echo "$as_me:$LINENO: result: no" >&5
12102
$as_echo "no" >&6; }
12106
{ $as_echo "$as_me:$LINENO: result: no" >&5
12107
$as_echo "no" >&6; }
12123
# Report which library types will actually be built
12124
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12125
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12126
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
12127
$as_echo "$can_build_shared" >&6; }
12129
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12130
$as_echo_n "checking whether to build shared libraries... " >&6; }
12131
test "$can_build_shared" = "no" && enable_shared=no
12133
# On AIX, shared libraries and static libraries use the same namespace, and
12134
# are all built from PIC.
12137
test "$enable_shared" = yes && enable_static=no
12138
if test -n "$RANLIB"; then
12139
archive_cmds="$archive_cmds~\$RANLIB \$lib"
12140
postinstall_cmds='$RANLIB $lib'
12145
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12146
test "$enable_shared" = yes && enable_static=no
12150
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
12151
$as_echo "$enable_shared" >&6; }
12153
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12154
$as_echo_n "checking whether to build static libraries... " >&6; }
12155
# Make sure either enable_shared or enable_static is yes.
12156
test "$enable_shared" = yes || enable_static=yes
12157
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
12158
$as_echo "$enable_static" >&6; }
12165
ac_cpp='$CPP $CPPFLAGS'
12166
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12167
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12168
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12184
ac_config_commands="$ac_config_commands libtool"
12189
# Only expand once:
12193
{ $as_echo "$as_me:$LINENO: checking host system type" >&5
12194
$as_echo_n "checking host system type... " >&6; }
20870
12195
if test "${ac_cv_host+set}" = set; then
20871
echo $ECHO_N "(cached) $ECHO_C" >&6
12196
$as_echo_n "(cached) " >&6
20873
12198
if test "x$host_alias" = x; then
20874
12199
ac_cv_host=$ac_cv_build
20876
12201
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
20877
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
20878
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
12202
{ { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
12203
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
20879
12204
{ (exit 1); exit 1; }; }
20883
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
20884
echo "${ECHO_T}$ac_cv_host" >&6; }
12208
{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
12209
$as_echo "$ac_cv_host" >&6; }
20885
12210
case $ac_cv_host in
20887
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
20888
echo "$as_me: error: invalid value of canonical host" >&2;}
12212
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
12213
$as_echo "$as_me: error: invalid value of canonical host" >&2;}
20889
12214
{ (exit 1); exit 1; }; };;
20891
12216
host=$ac_cv_host