4902
6386
# Allow CC to be a program name with arguments.
4905
# Check whether --enable-libtool-lock was given.
4906
if test "${enable_libtool_lock+set}" = set; then
4907
enableval=$enable_libtool_lock;
4910
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4912
# Some flags need to be propagated to the compiler or linker for good
4916
# Find out which ABI we are using.
4917
echo 'int i;' > conftest.$ac_ext
4918
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4919
(eval $ac_compile) 2>&5
4921
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922
(exit $ac_status); }; then
4923
case `/usr/bin/file conftest.$ac_objext` in
4935
# Find out which ABI we are using.
4936
echo '#line 4936 "configure"' > conftest.$ac_ext
4937
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4938
(eval $ac_compile) 2>&5
4940
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941
(exit $ac_status); }; then
4942
if test "$lt_cv_prog_gnu_ld" = yes; then
4943
case `/usr/bin/file conftest.$ac_objext` in
4945
LD="${LD-ld} -melf32bsmip"
4948
LD="${LD-ld} -melf32bmipn32"
4951
LD="${LD-ld} -melf64bmip"
4955
case `/usr/bin/file conftest.$ac_objext` in
4971
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4972
s390*-*linux*|sparc*-*linux*)
4973
# Find out which ABI we are using.
4974
echo 'int i;' > conftest.$ac_ext
4975
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4976
(eval $ac_compile) 2>&5
4978
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979
(exit $ac_status); }; then
4980
case `/usr/bin/file conftest.o` in
4983
x86_64-*kfreebsd*-gnu)
4984
LD="${LD-ld} -m elf_i386_fbsd"
4987
LD="${LD-ld} -m elf_i386"
4989
ppc64-*linux*|powerpc64-*linux*)
4990
LD="${LD-ld} -m elf32ppclinux"
4993
LD="${LD-ld} -m elf_s390"
4996
LD="${LD-ld} -m elf32_sparc"
5002
x86_64-*kfreebsd*-gnu)
5003
LD="${LD-ld} -m elf_x86_64_fbsd"
5006
LD="${LD-ld} -m elf_x86_64"
5008
ppc*-*linux*|powerpc*-*linux*)
5009
LD="${LD-ld} -m elf64ppc"
5012
LD="${LD-ld} -m elf64_s390"
5015
LD="${LD-ld} -m elf64_sparc"
5025
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
5026
SAVE_CFLAGS="$CFLAGS"
5027
CFLAGS="$CFLAGS -belf"
5028
{ echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5029
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5030
if test "${lt_cv_cc_needs_belf+set}" = set; then
5031
echo $ECHO_N "(cached) $ECHO_C" >&6
5034
ac_cpp='$CPP $CPPFLAGS'
5035
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5036
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5037
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5039
cat >conftest.$ac_ext <<_ACEOF
5042
cat confdefs.h >>conftest.$ac_ext
5043
cat >>conftest.$ac_ext <<_ACEOF
5044
/* end confdefs.h. */
5054
rm -f conftest.$ac_objext conftest$ac_exeext
5055
if { (ac_try="$ac_link"
5057
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5058
*) ac_try_echo=$ac_try;;
5060
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5061
(eval "$ac_link") 2>conftest.er1
5063
grep -v '^ *+' conftest.er1 >conftest.err
5065
cat conftest.err >&5
5066
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067
(exit $ac_status); } && {
5068
test -z "$ac_c_werror_flag" ||
5069
test ! -s conftest.err
5070
} && test -s conftest$ac_exeext &&
5071
$as_test_x conftest$ac_exeext; then
5072
lt_cv_cc_needs_belf=yes
5074
echo "$as_me: failed program was:" >&5
5075
sed 's/^/| /' conftest.$ac_ext >&5
5077
lt_cv_cc_needs_belf=no
5080
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5081
conftest$ac_exeext conftest.$ac_ext
5083
ac_cpp='$CPP $CPPFLAGS'
5084
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5085
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5086
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5089
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5090
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5091
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5092
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5093
CFLAGS="$SAVE_CFLAGS"
5097
# Find out which ABI we are using.
5098
echo 'int i;' > conftest.$ac_ext
5099
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5100
(eval $ac_compile) 2>&5
5102
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103
(exit $ac_status); }; then
5104
case `/usr/bin/file conftest.o` in
5106
case $lt_cv_prog_gnu_ld in
5107
yes*) LD="${LD-ld} -m elf64_sparc" ;;
5108
*) LD="${LD-ld} -64" ;;
5116
*-*-cygwin* | *-*-mingw* | *-*-pw32*)
5117
if test -n "$ac_tool_prefix"; then
5118
# Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5119
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5120
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5121
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5122
if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5123
echo $ECHO_N "(cached) $ECHO_C" >&6
5125
if test -n "$DLLTOOL"; then
5126
ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5128
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5132
test -z "$as_dir" && as_dir=.
5133
for ac_exec_ext in '' $ac_executable_extensions; do
5134
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5135
ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5136
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5145
DLLTOOL=$ac_cv_prog_DLLTOOL
5146
if test -n "$DLLTOOL"; then
5147
{ echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5148
echo "${ECHO_T}$DLLTOOL" >&6; }
5150
{ echo "$as_me:$LINENO: result: no" >&5
5151
echo "${ECHO_T}no" >&6; }
5156
if test -z "$ac_cv_prog_DLLTOOL"; then
5157
ac_ct_DLLTOOL=$DLLTOOL
5158
# Extract the first word of "dlltool", so it can be a program name with args.
5159
set dummy dlltool; ac_word=$2
5160
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5161
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5162
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5163
echo $ECHO_N "(cached) $ECHO_C" >&6
5165
if test -n "$ac_ct_DLLTOOL"; then
5166
ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5168
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5172
test -z "$as_dir" && as_dir=.
5173
for ac_exec_ext in '' $ac_executable_extensions; do
5174
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5175
ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5176
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5185
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5186
if test -n "$ac_ct_DLLTOOL"; then
5187
{ echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5188
echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
5190
{ echo "$as_me:$LINENO: result: no" >&5
5191
echo "${ECHO_T}no" >&6; }
5194
if test "x$ac_ct_DLLTOOL" = x; then
5197
case $cross_compiling:$ac_tool_warned in
5199
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5200
whose name does not start with the host triplet. If you think this
5201
configuration is useful to you, please write to autoconf@gnu.org." >&5
5202
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5203
whose name does not start with the host triplet. If you think this
5204
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5205
ac_tool_warned=yes ;;
5207
DLLTOOL=$ac_ct_DLLTOOL
5210
DLLTOOL="$ac_cv_prog_DLLTOOL"
5213
if test -n "$ac_tool_prefix"; then
5214
# Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5215
set dummy ${ac_tool_prefix}as; ac_word=$2
5216
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5217
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5218
if test "${ac_cv_prog_AS+set}" = set; then
5219
echo $ECHO_N "(cached) $ECHO_C" >&6
5221
if test -n "$AS"; then
5222
ac_cv_prog_AS="$AS" # Let the user override the test.
5224
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5228
test -z "$as_dir" && as_dir=.
5229
for ac_exec_ext in '' $ac_executable_extensions; do
5230
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5231
ac_cv_prog_AS="${ac_tool_prefix}as"
5232
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5242
if test -n "$AS"; then
5243
{ echo "$as_me:$LINENO: result: $AS" >&5
5244
echo "${ECHO_T}$AS" >&6; }
5246
{ echo "$as_me:$LINENO: result: no" >&5
5247
echo "${ECHO_T}no" >&6; }
5252
if test -z "$ac_cv_prog_AS"; then
5254
# Extract the first word of "as", so it can be a program name with args.
5255
set dummy as; ac_word=$2
5256
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5257
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5258
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5259
echo $ECHO_N "(cached) $ECHO_C" >&6
5261
if test -n "$ac_ct_AS"; then
5262
ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5264
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5268
test -z "$as_dir" && as_dir=.
5269
for ac_exec_ext in '' $ac_executable_extensions; do
5270
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5271
ac_cv_prog_ac_ct_AS="as"
5272
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5281
ac_ct_AS=$ac_cv_prog_ac_ct_AS
5282
if test -n "$ac_ct_AS"; then
5283
{ echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5284
echo "${ECHO_T}$ac_ct_AS" >&6; }
5286
{ echo "$as_me:$LINENO: result: no" >&5
5287
echo "${ECHO_T}no" >&6; }
5290
if test "x$ac_ct_AS" = x; then
5293
case $cross_compiling:$ac_tool_warned in
5295
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5296
whose name does not start with the host triplet. If you think this
5297
configuration is useful to you, please write to autoconf@gnu.org." >&5
5298
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5299
whose name does not start with the host triplet. If you think this
5300
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5301
ac_tool_warned=yes ;;
5309
if test -n "$ac_tool_prefix"; then
5310
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5311
set dummy ${ac_tool_prefix}objdump; ac_word=$2
5312
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5313
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5314
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5315
echo $ECHO_N "(cached) $ECHO_C" >&6
5317
if test -n "$OBJDUMP"; then
5318
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5320
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5324
test -z "$as_dir" && as_dir=.
5325
for ac_exec_ext in '' $ac_executable_extensions; do
5326
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5327
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5328
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5337
OBJDUMP=$ac_cv_prog_OBJDUMP
5338
if test -n "$OBJDUMP"; then
5339
{ echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5340
echo "${ECHO_T}$OBJDUMP" >&6; }
5342
{ echo "$as_me:$LINENO: result: no" >&5
5343
echo "${ECHO_T}no" >&6; }
5348
if test -z "$ac_cv_prog_OBJDUMP"; then
5349
ac_ct_OBJDUMP=$OBJDUMP
5350
# Extract the first word of "objdump", so it can be a program name with args.
5351
set dummy objdump; ac_word=$2
5352
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5353
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5354
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5355
echo $ECHO_N "(cached) $ECHO_C" >&6
5357
if test -n "$ac_ct_OBJDUMP"; then
5358
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5360
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5364
test -z "$as_dir" && as_dir=.
5365
for ac_exec_ext in '' $ac_executable_extensions; do
5366
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5367
ac_cv_prog_ac_ct_OBJDUMP="objdump"
5368
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5377
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5378
if test -n "$ac_ct_OBJDUMP"; then
5379
{ echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5380
echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
5382
{ echo "$as_me:$LINENO: result: no" >&5
5383
echo "${ECHO_T}no" >&6; }
5386
if test "x$ac_ct_OBJDUMP" = x; then
5389
case $cross_compiling:$ac_tool_warned in
5391
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5392
whose name does not start with the host triplet. If you think this
5393
configuration is useful to you, please write to autoconf@gnu.org." >&5
5394
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5395
whose name does not start with the host triplet. If you think this
5396
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5397
ac_tool_warned=yes ;;
5399
OBJDUMP=$ac_ct_OBJDUMP
5402
OBJDUMP="$ac_cv_prog_OBJDUMP"
5409
need_locks="$enable_libtool_lock"
5413
ac_cpp='$CPP $CPPFLAGS'
5414
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5415
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5416
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5417
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5418
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5419
# On Suns, sometimes $CPP names a directory.
5420
if test -n "$CPP" && test -d "$CPP"; then
5423
if test -z "$CPP"; then
5424
if test "${ac_cv_prog_CPP+set}" = set; then
5425
echo $ECHO_N "(cached) $ECHO_C" >&6
5427
# Double quotes because CPP needs to be expanded
5428
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5431
for ac_c_preproc_warn_flag in '' yes
5433
# Use a header file that comes with gcc, so configuring glibc
5434
# with a fresh cross-compiler works.
5435
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5436
# <limits.h> exists even on freestanding compilers.
5437
# On the NeXT, cc -E runs the code through the compiler's parser,
5438
# not just through cpp. "Syntax error" is here to catch this case.
5439
cat >conftest.$ac_ext <<_ACEOF
5442
cat confdefs.h >>conftest.$ac_ext
5443
cat >>conftest.$ac_ext <<_ACEOF
5444
/* end confdefs.h. */
5446
# include <limits.h>
5448
# include <assert.h>
5452
if { (ac_try="$ac_cpp conftest.$ac_ext"
5454
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5455
*) ac_try_echo=$ac_try;;
5457
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5458
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5460
grep -v '^ *+' conftest.er1 >conftest.err
5462
cat conftest.err >&5
5463
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464
(exit $ac_status); } >/dev/null && {
5465
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5466
test ! -s conftest.err
5470
echo "$as_me: failed program was:" >&5
5471
sed 's/^/| /' conftest.$ac_ext >&5
5473
# Broken: fails on valid input.
5477
rm -f conftest.err conftest.$ac_ext
5479
# OK, works on sane cases. Now check whether nonexistent headers
5480
# can be detected and how.
5481
cat >conftest.$ac_ext <<_ACEOF
5484
cat confdefs.h >>conftest.$ac_ext
5485
cat >>conftest.$ac_ext <<_ACEOF
5486
/* end confdefs.h. */
5487
#include <ac_nonexistent.h>
5489
if { (ac_try="$ac_cpp conftest.$ac_ext"
5491
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5492
*) ac_try_echo=$ac_try;;
5494
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5495
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5497
grep -v '^ *+' conftest.er1 >conftest.err
5499
cat conftest.err >&5
5500
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501
(exit $ac_status); } >/dev/null && {
5502
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5503
test ! -s conftest.err
5505
# Broken: success on invalid input.
5508
echo "$as_me: failed program was:" >&5
5509
sed 's/^/| /' conftest.$ac_ext >&5
5511
# Passes both tests.
5516
rm -f conftest.err conftest.$ac_ext
5519
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5520
rm -f conftest.err conftest.$ac_ext
5521
if $ac_preproc_ok; then
5533
{ echo "$as_me:$LINENO: result: $CPP" >&5
5534
echo "${ECHO_T}$CPP" >&6; }
5536
for ac_c_preproc_warn_flag in '' yes
5538
# Use a header file that comes with gcc, so configuring glibc
5539
# with a fresh cross-compiler works.
5540
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5541
# <limits.h> exists even on freestanding compilers.
5542
# On the NeXT, cc -E runs the code through the compiler's parser,
5543
# not just through cpp. "Syntax error" is here to catch this case.
5544
cat >conftest.$ac_ext <<_ACEOF
5547
cat confdefs.h >>conftest.$ac_ext
5548
cat >>conftest.$ac_ext <<_ACEOF
5549
/* end confdefs.h. */
5551
# include <limits.h>
5553
# include <assert.h>
5557
if { (ac_try="$ac_cpp conftest.$ac_ext"
5559
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5560
*) ac_try_echo=$ac_try;;
5562
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5563
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5565
grep -v '^ *+' conftest.er1 >conftest.err
5567
cat conftest.err >&5
5568
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569
(exit $ac_status); } >/dev/null && {
5570
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5571
test ! -s conftest.err
5575
echo "$as_me: failed program was:" >&5
5576
sed 's/^/| /' conftest.$ac_ext >&5
5578
# Broken: fails on valid input.
5582
rm -f conftest.err conftest.$ac_ext
5584
# OK, works on sane cases. Now check whether nonexistent headers
5585
# can be detected and how.
5586
cat >conftest.$ac_ext <<_ACEOF
5589
cat confdefs.h >>conftest.$ac_ext
5590
cat >>conftest.$ac_ext <<_ACEOF
5591
/* end confdefs.h. */
5592
#include <ac_nonexistent.h>
5594
if { (ac_try="$ac_cpp conftest.$ac_ext"
5596
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5597
*) ac_try_echo=$ac_try;;
5599
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5600
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5602
grep -v '^ *+' conftest.er1 >conftest.err
5604
cat conftest.err >&5
5605
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606
(exit $ac_status); } >/dev/null && {
5607
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5608
test ! -s conftest.err
5610
# Broken: success on invalid input.
5613
echo "$as_me: failed program was:" >&5
5614
sed 's/^/| /' conftest.$ac_ext >&5
5616
# Passes both tests.
5621
rm -f conftest.err conftest.$ac_ext
5624
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5625
rm -f conftest.err conftest.$ac_ext
5626
if $ac_preproc_ok; then
5629
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5630
See \`config.log' for more details." >&5
5631
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5632
See \`config.log' for more details." >&2;}
5633
{ (exit 1); exit 1; }; }
5637
ac_cpp='$CPP $CPPFLAGS'
5638
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5639
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5640
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5643
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5644
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5645
if test "${ac_cv_header_stdc+set}" = set; then
5646
echo $ECHO_N "(cached) $ECHO_C" >&6
5648
cat >conftest.$ac_ext <<_ACEOF
5651
cat confdefs.h >>conftest.$ac_ext
5652
cat >>conftest.$ac_ext <<_ACEOF
5653
/* end confdefs.h. */
5667
rm -f conftest.$ac_objext
5668
if { (ac_try="$ac_compile"
5670
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5671
*) ac_try_echo=$ac_try;;
5673
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5674
(eval "$ac_compile") 2>conftest.er1
5676
grep -v '^ *+' conftest.er1 >conftest.err
5678
cat conftest.err >&5
5679
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680
(exit $ac_status); } && {
5681
test -z "$ac_c_werror_flag" ||
5682
test ! -s conftest.err
5683
} && test -s conftest.$ac_objext; then
5684
ac_cv_header_stdc=yes
5686
echo "$as_me: failed program was:" >&5
5687
sed 's/^/| /' conftest.$ac_ext >&5
5689
ac_cv_header_stdc=no
5692
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5694
if test $ac_cv_header_stdc = yes; then
5695
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5696
cat >conftest.$ac_ext <<_ACEOF
5699
cat confdefs.h >>conftest.$ac_ext
5700
cat >>conftest.$ac_ext <<_ACEOF
5701
/* end confdefs.h. */
5705
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5706
$EGREP "memchr" >/dev/null 2>&1; then
5709
ac_cv_header_stdc=no
5715
if test $ac_cv_header_stdc = yes; then
5716
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5717
cat >conftest.$ac_ext <<_ACEOF
5720
cat confdefs.h >>conftest.$ac_ext
5721
cat >>conftest.$ac_ext <<_ACEOF
5722
/* end confdefs.h. */
5726
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5727
$EGREP "free" >/dev/null 2>&1; then
5730
ac_cv_header_stdc=no
5736
if test $ac_cv_header_stdc = yes; then
5737
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5738
if test "$cross_compiling" = yes; then
5741
cat >conftest.$ac_ext <<_ACEOF
5744
cat confdefs.h >>conftest.$ac_ext
5745
cat >>conftest.$ac_ext <<_ACEOF
5746
/* end confdefs.h. */
5749
#if ((' ' & 0x0FF) == 0x020)
5750
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5751
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5753
# define ISLOWER(c) \
5754
(('a' <= (c) && (c) <= 'i') \
5755
|| ('j' <= (c) && (c) <= 'r') \
5756
|| ('s' <= (c) && (c) <= 'z'))
5757
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5760
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5765
for (i = 0; i < 256; i++)
5766
if (XOR (islower (i), ISLOWER (i))
5767
|| toupper (i) != TOUPPER (i))
5772
rm -f conftest$ac_exeext
5773
if { (ac_try="$ac_link"
5775
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5776
*) ac_try_echo=$ac_try;;
5778
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5779
(eval "$ac_link") 2>&5
5781
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5783
{ (case "(($ac_try" in
5784
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5785
*) ac_try_echo=$ac_try;;
5787
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5788
(eval "$ac_try") 2>&5
5790
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791
(exit $ac_status); }; }; then
5794
echo "$as_me: program exited with status $ac_status" >&5
5795
echo "$as_me: failed program was:" >&5
5796
sed 's/^/| /' conftest.$ac_ext >&5
5799
ac_cv_header_stdc=no
5801
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5807
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5808
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5809
if test $ac_cv_header_stdc = yes; then
5811
cat >>confdefs.h <<\_ACEOF
5812
#define STDC_HEADERS 1
5817
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5827
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5828
inttypes.h stdint.h unistd.h
5830
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5831
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5832
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5833
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5834
echo $ECHO_N "(cached) $ECHO_C" >&6
5836
cat >conftest.$ac_ext <<_ACEOF
5839
cat confdefs.h >>conftest.$ac_ext
5840
cat >>conftest.$ac_ext <<_ACEOF
5841
/* end confdefs.h. */
5842
$ac_includes_default
5844
#include <$ac_header>
5846
rm -f conftest.$ac_objext
5847
if { (ac_try="$ac_compile"
5849
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5850
*) ac_try_echo=$ac_try;;
5852
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5853
(eval "$ac_compile") 2>conftest.er1
5855
grep -v '^ *+' conftest.er1 >conftest.err
5857
cat conftest.err >&5
5858
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859
(exit $ac_status); } && {
5860
test -z "$ac_c_werror_flag" ||
5861
test ! -s conftest.err
5862
} && test -s conftest.$ac_objext; then
5863
eval "$as_ac_Header=yes"
5865
echo "$as_me: failed program was:" >&5
5866
sed 's/^/| /' conftest.$ac_ext >&5
5868
eval "$as_ac_Header=no"
5871
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5873
ac_res=`eval echo '${'$as_ac_Header'}'`
5874
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5875
echo "${ECHO_T}$ac_res" >&6; }
5876
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5877
cat >>confdefs.h <<_ACEOF
5878
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5887
for ac_header in dlfcn.h
5889
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5890
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5891
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5892
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5893
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5894
echo $ECHO_N "(cached) $ECHO_C" >&6
5896
ac_res=`eval echo '${'$as_ac_Header'}'`
5897
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5898
echo "${ECHO_T}$ac_res" >&6; }
5900
# Is the header compilable?
5901
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5902
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5903
cat >conftest.$ac_ext <<_ACEOF
5906
cat confdefs.h >>conftest.$ac_ext
5907
cat >>conftest.$ac_ext <<_ACEOF
5908
/* end confdefs.h. */
5909
$ac_includes_default
5910
#include <$ac_header>
5912
rm -f conftest.$ac_objext
5913
if { (ac_try="$ac_compile"
5915
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5916
*) ac_try_echo=$ac_try;;
5918
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5919
(eval "$ac_compile") 2>conftest.er1
5921
grep -v '^ *+' conftest.er1 >conftest.err
5923
cat conftest.err >&5
5924
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925
(exit $ac_status); } && {
5926
test -z "$ac_c_werror_flag" ||
5927
test ! -s conftest.err
5928
} && test -s conftest.$ac_objext; then
5929
ac_header_compiler=yes
5931
echo "$as_me: failed program was:" >&5
5932
sed 's/^/| /' conftest.$ac_ext >&5
5934
ac_header_compiler=no
5937
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5938
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5939
echo "${ECHO_T}$ac_header_compiler" >&6; }
5941
# Is the header present?
5942
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5943
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5944
cat >conftest.$ac_ext <<_ACEOF
5947
cat confdefs.h >>conftest.$ac_ext
5948
cat >>conftest.$ac_ext <<_ACEOF
5949
/* end confdefs.h. */
5950
#include <$ac_header>
5952
if { (ac_try="$ac_cpp conftest.$ac_ext"
5954
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5955
*) ac_try_echo=$ac_try;;
5957
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5958
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5960
grep -v '^ *+' conftest.er1 >conftest.err
5962
cat conftest.err >&5
5963
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5964
(exit $ac_status); } >/dev/null && {
5965
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5966
test ! -s conftest.err
5968
ac_header_preproc=yes
5970
echo "$as_me: failed program was:" >&5
5971
sed 's/^/| /' conftest.$ac_ext >&5
5973
ac_header_preproc=no
5976
rm -f conftest.err conftest.$ac_ext
5977
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5978
echo "${ECHO_T}$ac_header_preproc" >&6; }
5980
# So? What about this header?
5981
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5983
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5984
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5985
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5986
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5987
ac_header_preproc=yes
5990
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5991
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5992
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5993
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5994
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5995
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5996
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5997
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5998
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5999
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6000
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6001
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6005
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6006
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6007
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6008
echo $ECHO_N "(cached) $ECHO_C" >&6
6010
eval "$as_ac_Header=\$ac_header_preproc"
6012
ac_res=`eval echo '${'$as_ac_Header'}'`
6013
{ echo "$as_me:$LINENO: result: $ac_res" >&5
6014
echo "${ECHO_T}$ac_res" >&6; }
6017
if test `eval echo '${'$as_ac_Header'}'` = yes; then
6018
cat >>confdefs.h <<_ACEOF
6019
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6028
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6029
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6030
(test "X$CXX" != "Xg++"))) ; then
6032
ac_cpp='$CXXCPP $CPPFLAGS'
6033
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6034
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6035
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6036
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6037
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6038
if test -z "$CXXCPP"; then
6039
if test "${ac_cv_prog_CXXCPP+set}" = set; then
6040
echo $ECHO_N "(cached) $ECHO_C" >&6
6042
# Double quotes because CXXCPP needs to be expanded
6043
for CXXCPP in "$CXX -E" "/lib/cpp"
6046
for ac_cxx_preproc_warn_flag in '' yes
6048
# Use a header file that comes with gcc, so configuring glibc
6049
# with a fresh cross-compiler works.
6050
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6051
# <limits.h> exists even on freestanding compilers.
6052
# On the NeXT, cc -E runs the code through the compiler's parser,
6053
# not just through cpp. "Syntax error" is here to catch this case.
6054
cat >conftest.$ac_ext <<_ACEOF
6057
cat confdefs.h >>conftest.$ac_ext
6058
cat >>conftest.$ac_ext <<_ACEOF
6059
/* end confdefs.h. */
6061
# include <limits.h>
6063
# include <assert.h>
6067
if { (ac_try="$ac_cpp conftest.$ac_ext"
6069
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6070
*) ac_try_echo=$ac_try;;
6072
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6073
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6075
grep -v '^ *+' conftest.er1 >conftest.err
6077
cat conftest.err >&5
6078
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6079
(exit $ac_status); } >/dev/null && {
6080
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6081
test ! -s conftest.err
6085
echo "$as_me: failed program was:" >&5
6086
sed 's/^/| /' conftest.$ac_ext >&5
6088
# Broken: fails on valid input.
6092
rm -f conftest.err conftest.$ac_ext
6094
# OK, works on sane cases. Now check whether nonexistent headers
6095
# can be detected and how.
6096
cat >conftest.$ac_ext <<_ACEOF
6099
cat confdefs.h >>conftest.$ac_ext
6100
cat >>conftest.$ac_ext <<_ACEOF
6101
/* end confdefs.h. */
6102
#include <ac_nonexistent.h>
6104
if { (ac_try="$ac_cpp conftest.$ac_ext"
6106
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6107
*) ac_try_echo=$ac_try;;
6109
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6110
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6112
grep -v '^ *+' conftest.er1 >conftest.err
6114
cat conftest.err >&5
6115
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116
(exit $ac_status); } >/dev/null && {
6117
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6118
test ! -s conftest.err
6120
# Broken: success on invalid input.
6123
echo "$as_me: failed program was:" >&5
6124
sed 's/^/| /' conftest.$ac_ext >&5
6126
# Passes both tests.
6131
rm -f conftest.err conftest.$ac_ext
6134
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6135
rm -f conftest.err conftest.$ac_ext
6136
if $ac_preproc_ok; then
6141
ac_cv_prog_CXXCPP=$CXXCPP
6144
CXXCPP=$ac_cv_prog_CXXCPP
6146
ac_cv_prog_CXXCPP=$CXXCPP
6148
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
6149
echo "${ECHO_T}$CXXCPP" >&6; }
6151
for ac_cxx_preproc_warn_flag in '' yes
6153
# Use a header file that comes with gcc, so configuring glibc
6154
# with a fresh cross-compiler works.
6155
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6156
# <limits.h> exists even on freestanding compilers.
6157
# On the NeXT, cc -E runs the code through the compiler's parser,
6158
# not just through cpp. "Syntax error" is here to catch this case.
6159
cat >conftest.$ac_ext <<_ACEOF
6162
cat confdefs.h >>conftest.$ac_ext
6163
cat >>conftest.$ac_ext <<_ACEOF
6164
/* end confdefs.h. */
6166
# include <limits.h>
6168
# include <assert.h>
6172
if { (ac_try="$ac_cpp conftest.$ac_ext"
6174
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6175
*) ac_try_echo=$ac_try;;
6177
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6178
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6180
grep -v '^ *+' conftest.er1 >conftest.err
6182
cat conftest.err >&5
6183
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184
(exit $ac_status); } >/dev/null && {
6185
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6186
test ! -s conftest.err
6190
echo "$as_me: failed program was:" >&5
6191
sed 's/^/| /' conftest.$ac_ext >&5
6193
# Broken: fails on valid input.
6197
rm -f conftest.err conftest.$ac_ext
6199
# OK, works on sane cases. Now check whether nonexistent headers
6200
# can be detected and how.
6201
cat >conftest.$ac_ext <<_ACEOF
6204
cat confdefs.h >>conftest.$ac_ext
6205
cat >>conftest.$ac_ext <<_ACEOF
6206
/* end confdefs.h. */
6207
#include <ac_nonexistent.h>
6209
if { (ac_try="$ac_cpp conftest.$ac_ext"
6211
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6212
*) ac_try_echo=$ac_try;;
6214
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6215
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6217
grep -v '^ *+' conftest.er1 >conftest.err
6219
cat conftest.err >&5
6220
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221
(exit $ac_status); } >/dev/null && {
6222
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6223
test ! -s conftest.err
6225
# Broken: success on invalid input.
6228
echo "$as_me: failed program was:" >&5
6229
sed 's/^/| /' conftest.$ac_ext >&5
6231
# Passes both tests.
6236
rm -f conftest.err conftest.$ac_ext
6239
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6240
rm -f conftest.err conftest.$ac_ext
6241
if $ac_preproc_ok; then
6244
{ { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6245
See \`config.log' for more details." >&5
6246
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6247
See \`config.log' for more details." >&2;}
6248
{ (exit 1); exit 1; }; }
6252
ac_cpp='$CXXCPP $CPPFLAGS'
6253
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6254
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6255
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6261
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6262
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6263
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6264
if test -n "$ac_tool_prefix"; then
6265
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
6267
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6268
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6269
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6270
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6271
if test "${ac_cv_prog_F77+set}" = set; then
6272
echo $ECHO_N "(cached) $ECHO_C" >&6
6274
if test -n "$F77"; then
6275
ac_cv_prog_F77="$F77" # Let the user override the test.
6277
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6281
test -z "$as_dir" && as_dir=.
6282
for ac_exec_ext in '' $ac_executable_extensions; do
6283
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6284
ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6285
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6295
if test -n "$F77"; then
6296
{ echo "$as_me:$LINENO: result: $F77" >&5
6297
echo "${ECHO_T}$F77" >&6; }
6299
{ echo "$as_me:$LINENO: result: no" >&5
6300
echo "${ECHO_T}no" >&6; }
6304
test -n "$F77" && break
6307
if test -z "$F77"; then
6309
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
6311
# Extract the first word of "$ac_prog", so it can be a program name with args.
6312
set dummy $ac_prog; ac_word=$2
6313
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6314
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6315
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6316
echo $ECHO_N "(cached) $ECHO_C" >&6
6318
if test -n "$ac_ct_F77"; then
6319
ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6321
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6325
test -z "$as_dir" && as_dir=.
6326
for ac_exec_ext in '' $ac_executable_extensions; do
6327
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6328
ac_cv_prog_ac_ct_F77="$ac_prog"
6329
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6338
ac_ct_F77=$ac_cv_prog_ac_ct_F77
6339
if test -n "$ac_ct_F77"; then
6340
{ echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6341
echo "${ECHO_T}$ac_ct_F77" >&6; }
6343
{ echo "$as_me:$LINENO: result: no" >&5
6344
echo "${ECHO_T}no" >&6; }
6348
test -n "$ac_ct_F77" && break
6351
if test "x$ac_ct_F77" = x; then
6354
case $cross_compiling:$ac_tool_warned in
6356
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6357
whose name does not start with the host triplet. If you think this
6358
configuration is useful to you, please write to autoconf@gnu.org." >&5
6359
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6360
whose name does not start with the host triplet. If you think this
6361
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6362
ac_tool_warned=yes ;;
6369
# Provide some information about the compiler.
6370
echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6371
ac_compiler=`set X $ac_compile; echo $2`
6372
{ (ac_try="$ac_compiler --version >&5"
6374
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6375
*) ac_try_echo=$ac_try;;
6377
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6378
(eval "$ac_compiler --version >&5") 2>&5
6380
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381
(exit $ac_status); }
6382
{ (ac_try="$ac_compiler -v >&5"
6384
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6385
*) ac_try_echo=$ac_try;;
6387
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6388
(eval "$ac_compiler -v >&5") 2>&5
6390
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391
(exit $ac_status); }
6392
{ (ac_try="$ac_compiler -V >&5"
6394
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6395
*) ac_try_echo=$ac_try;;
6397
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6398
(eval "$ac_compiler -V >&5") 2>&5
6400
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401
(exit $ac_status); }
6404
# If we don't use `.F' as extension, the preprocessor is not run on the
6405
# input file. (Note that this only needs to work for GNU compilers.)
6408
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6409
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6410
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6411
echo $ECHO_N "(cached) $ECHO_C" >&6
6413
cat >conftest.$ac_ext <<_ACEOF
6421
rm -f conftest.$ac_objext
6422
if { (ac_try="$ac_compile"
6424
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6425
*) ac_try_echo=$ac_try;;
6427
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6428
(eval "$ac_compile") 2>conftest.er1
6430
grep -v '^ *+' conftest.er1 >conftest.err
6432
cat conftest.err >&5
6433
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434
(exit $ac_status); } && {
6435
test -z "$ac_f77_werror_flag" ||
6436
test ! -s conftest.err
6437
} && test -s conftest.$ac_objext; then
6440
echo "$as_me: failed program was:" >&5
6441
sed 's/^/| /' conftest.$ac_ext >&5
6446
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6447
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6450
{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6451
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6453
ac_test_FFLAGS=${FFLAGS+set}
6454
ac_save_FFLAGS=$FFLAGS
6456
{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6457
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6458
if test "${ac_cv_prog_f77_g+set}" = set; then
6459
echo $ECHO_N "(cached) $ECHO_C" >&6
6462
cat >conftest.$ac_ext <<_ACEOF
6467
rm -f conftest.$ac_objext
6468
if { (ac_try="$ac_compile"
6470
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6471
*) ac_try_echo=$ac_try;;
6473
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6474
(eval "$ac_compile") 2>conftest.er1
6476
grep -v '^ *+' conftest.er1 >conftest.err
6478
cat conftest.err >&5
6479
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480
(exit $ac_status); } && {
6481
test -z "$ac_f77_werror_flag" ||
6482
test ! -s conftest.err
6483
} && test -s conftest.$ac_objext; then
6484
ac_cv_prog_f77_g=yes
6486
echo "$as_me: failed program was:" >&5
6487
sed 's/^/| /' conftest.$ac_ext >&5
6492
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6495
{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6496
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6497
if test "$ac_test_FFLAGS" = set; then
6498
FFLAGS=$ac_save_FFLAGS
6499
elif test $ac_cv_prog_f77_g = yes; then
6500
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6506
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6513
G77=`test $ac_compiler_gnu = yes && echo yes`
6515
ac_cpp='$CPP $CPPFLAGS'
6516
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6517
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6518
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6522
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6524
# find the maximum length of command line arguments
6525
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6526
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6527
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6528
echo $ECHO_N "(cached) $ECHO_C" >&6
6535
# On DJGPP, this test can blow up pretty badly due to problems in libc
6536
# (any single argument exceeding 2000 bytes causes a buffer overrun
6537
# during glob expansion). Even if it were fixed, the result of this
6538
# check would be larger than it should be.
6539
lt_cv_sys_max_cmd_len=12288; # 12K is about right
6543
# Under GNU Hurd, this test is not required because there is
6544
# no limit to the length of command line arguments.
6545
# Libtool will interpret -1 as no limit whatsoever
6546
lt_cv_sys_max_cmd_len=-1;
6550
# On Win9x/ME, this test blows up -- it succeeds, but takes
6551
# about 5 minutes as the teststring grows exponentially.
6552
# Worse, since 9x/ME are not pre-emptively multitasking,
6553
# you end up with a "frozen" computer, even though with patience
6554
# the test eventually succeeds (with a max line length of 256k).
6555
# Instead, let's just punt: use the minimum linelength reported by
6556
# all of the supported platforms: 8192 (on NT/2K/XP).
6557
lt_cv_sys_max_cmd_len=8192;
6561
# On AmigaOS with pdksh, this test takes hours, literally.
6562
# So we just punt and use a minimum line length of 8192.
6563
lt_cv_sys_max_cmd_len=8192;
6566
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6567
# This has been around since 386BSD, at least. Likely further.
6568
if test -x /sbin/sysctl; then
6569
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6570
elif test -x /usr/sbin/sysctl; then
6571
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6573
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6575
# And add a safety zone
6576
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6577
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6581
# We know the value 262144 and hardcode it with a safety zone (like BSD)
6582
lt_cv_sys_max_cmd_len=196608
6586
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6587
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6588
# nice to cause kernel panics so lets avoid the loop below.
6589
# First set a reasonable default.
6590
lt_cv_sys_max_cmd_len=16384
6592
if test -x /sbin/sysconfig; then
6593
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6594
*1*) lt_cv_sys_max_cmd_len=-1 ;;
6599
lt_cv_sys_max_cmd_len=102400
6601
sysv5* | sco5v6* | sysv4.2uw2*)
6602
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6603
if test -n "$kargmax"; then
6604
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6606
lt_cv_sys_max_cmd_len=32768
6610
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6611
if test -n "$lt_cv_sys_max_cmd_len"; then
6612
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6613
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6615
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6616
while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6617
= "XX$teststring") >/dev/null 2>&1 &&
6618
new_result=`expr "X$teststring" : ".*" 2>&1` &&
6619
lt_cv_sys_max_cmd_len=$new_result &&
6620
test $i != 17 # 1/2 MB should be enough
6623
teststring=$teststring$teststring
6626
# Add a significant safety factor because C++ compilers can tack on massive
6627
# amounts of additional arguments before passing them to the linker.
6628
# It appears as though 1/2 is a usable value.
6629
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6636
if test -n $lt_cv_sys_max_cmd_len ; then
6637
{ echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6638
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6640
{ echo "$as_me:$LINENO: result: none" >&5
6641
echo "${ECHO_T}none" >&6; }
6648
6390
# Check for command to grab the raw symbol name followed by C symbol from nm.
6649
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6650
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6651
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6652
echo $ECHO_N "(cached) $ECHO_C" >&6
6391
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6392
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6393
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6394
$as_echo_n "(cached) " >&6
6655
6397
# These are sane defaults that work on at least a few old systems.
6851
6608
lt_cv_sys_global_symbol_to_cdecl=
6853
6610
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6854
{ echo "$as_me:$LINENO: result: failed" >&5
6855
echo "${ECHO_T}failed" >&6; }
6857
{ echo "$as_me:$LINENO: result: ok" >&5
6858
echo "${ECHO_T}ok" >&6; }
6861
{ echo "$as_me:$LINENO: checking for objdir" >&5
6862
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6863
if test "${lt_cv_objdir+set}" = set; then
6864
echo $ECHO_N "(cached) $ECHO_C" >&6
6611
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6612
$as_echo "failed" >&6; }
6614
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6615
$as_echo "ok" >&6; }
6639
# Check whether --enable-libtool-lock was given.
6640
if test "${enable_libtool_lock+set}" = set; then :
6641
enableval=$enable_libtool_lock;
6644
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6646
# Some flags need to be propagated to the compiler or linker for good
6650
# Find out which ABI we are using.
6651
echo 'int i;' > conftest.$ac_ext
6652
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6653
(eval $ac_compile) 2>&5
6655
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6656
test $ac_status = 0; }; then
6657
case `/usr/bin/file conftest.$ac_objext` in
6669
# Find out which ABI we are using.
6670
echo '#line 6670 "configure"' > conftest.$ac_ext
6671
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6672
(eval $ac_compile) 2>&5
6674
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6675
test $ac_status = 0; }; then
6676
if test "$lt_cv_prog_gnu_ld" = yes; then
6677
case `/usr/bin/file conftest.$ac_objext` in
6679
LD="${LD-ld} -melf32bsmip"
6682
LD="${LD-ld} -melf32bmipn32"
6685
LD="${LD-ld} -melf64bmip"
6689
case `/usr/bin/file conftest.$ac_objext` in
6705
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6706
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6707
# Find out which ABI we are using.
6708
echo 'int i;' > conftest.$ac_ext
6709
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6710
(eval $ac_compile) 2>&5
6712
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6713
test $ac_status = 0; }; then
6714
case `/usr/bin/file conftest.o` in
6717
x86_64-*kfreebsd*-gnu)
6718
LD="${LD-ld} -m elf_i386_fbsd"
6721
LD="${LD-ld} -m elf_i386"
6723
ppc64-*linux*|powerpc64-*linux*)
6724
LD="${LD-ld} -m elf32ppclinux"
6727
LD="${LD-ld} -m elf_s390"
6730
LD="${LD-ld} -m elf32_sparc"
6736
x86_64-*kfreebsd*-gnu)
6737
LD="${LD-ld} -m elf_x86_64_fbsd"
6740
LD="${LD-ld} -m elf_x86_64"
6742
ppc*-*linux*|powerpc*-*linux*)
6743
LD="${LD-ld} -m elf64ppc"
6745
s390*-*linux*|s390*-*tpf*)
6746
LD="${LD-ld} -m elf64_s390"
6749
LD="${LD-ld} -m elf64_sparc"
6759
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
6760
SAVE_CFLAGS="$CFLAGS"
6761
CFLAGS="$CFLAGS -belf"
6762
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6763
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6764
if test "${lt_cv_cc_needs_belf+set}" = set; then :
6765
$as_echo_n "(cached) " >&6
6768
ac_cpp='$CPP $CPPFLAGS'
6769
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6770
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6771
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6773
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6774
/* end confdefs.h. */
6784
if ac_fn_c_try_link "$LINENO"; then :
6785
lt_cv_cc_needs_belf=yes
6787
lt_cv_cc_needs_belf=no
6789
rm -f core conftest.err conftest.$ac_objext \
6790
conftest$ac_exeext conftest.$ac_ext
6792
ac_cpp='$CPP $CPPFLAGS'
6793
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6794
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6795
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6798
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6799
$as_echo "$lt_cv_cc_needs_belf" >&6; }
6800
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6801
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6802
CFLAGS="$SAVE_CFLAGS"
6806
# Find out which ABI we are using.
6807
echo 'int i;' > conftest.$ac_ext
6808
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6809
(eval $ac_compile) 2>&5
6811
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6812
test $ac_status = 0; }; then
6813
case `/usr/bin/file conftest.o` in
6815
case $lt_cv_prog_gnu_ld in
6816
yes*) LD="${LD-ld} -m elf64_sparc" ;;
6818
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6830
need_locks="$enable_libtool_lock"
6834
rhapsody* | darwin*)
6835
if test -n "$ac_tool_prefix"; then
6836
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6837
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6838
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6839
$as_echo_n "checking for $ac_word... " >&6; }
6840
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6841
$as_echo_n "(cached) " >&6
6843
if test -n "$DSYMUTIL"; then
6844
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6846
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6850
test -z "$as_dir" && as_dir=.
6851
for ac_exec_ext in '' $ac_executable_extensions; do
6852
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6853
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6854
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6863
DSYMUTIL=$ac_cv_prog_DSYMUTIL
6864
if test -n "$DSYMUTIL"; then
6865
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6866
$as_echo "$DSYMUTIL" >&6; }
6868
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6869
$as_echo "no" >&6; }
6874
if test -z "$ac_cv_prog_DSYMUTIL"; then
6875
ac_ct_DSYMUTIL=$DSYMUTIL
6876
# Extract the first word of "dsymutil", so it can be a program name with args.
6877
set dummy dsymutil; ac_word=$2
6878
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6879
$as_echo_n "checking for $ac_word... " >&6; }
6880
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6881
$as_echo_n "(cached) " >&6
6883
if test -n "$ac_ct_DSYMUTIL"; then
6884
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6886
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6890
test -z "$as_dir" && as_dir=.
6891
for ac_exec_ext in '' $ac_executable_extensions; do
6892
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6893
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6894
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6903
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6904
if test -n "$ac_ct_DSYMUTIL"; then
6905
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6906
$as_echo "$ac_ct_DSYMUTIL" >&6; }
6908
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6909
$as_echo "no" >&6; }
6912
if test "x$ac_ct_DSYMUTIL" = x; then
6915
case $cross_compiling:$ac_tool_warned in
6917
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6918
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6919
ac_tool_warned=yes ;;
6921
DSYMUTIL=$ac_ct_DSYMUTIL
6924
DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6927
if test -n "$ac_tool_prefix"; then
6928
# Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6929
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6930
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6931
$as_echo_n "checking for $ac_word... " >&6; }
6932
if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6933
$as_echo_n "(cached) " >&6
6935
if test -n "$NMEDIT"; then
6936
ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6938
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6942
test -z "$as_dir" && as_dir=.
6943
for ac_exec_ext in '' $ac_executable_extensions; do
6944
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6945
ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6946
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6955
NMEDIT=$ac_cv_prog_NMEDIT
6956
if test -n "$NMEDIT"; then
6957
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6958
$as_echo "$NMEDIT" >&6; }
6960
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6961
$as_echo "no" >&6; }
6966
if test -z "$ac_cv_prog_NMEDIT"; then
6967
ac_ct_NMEDIT=$NMEDIT
6968
# Extract the first word of "nmedit", so it can be a program name with args.
6969
set dummy nmedit; ac_word=$2
6970
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6971
$as_echo_n "checking for $ac_word... " >&6; }
6972
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6973
$as_echo_n "(cached) " >&6
6975
if test -n "$ac_ct_NMEDIT"; then
6976
ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6978
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6982
test -z "$as_dir" && as_dir=.
6983
for ac_exec_ext in '' $ac_executable_extensions; do
6984
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6985
ac_cv_prog_ac_ct_NMEDIT="nmedit"
6986
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6995
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6996
if test -n "$ac_ct_NMEDIT"; then
6997
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6998
$as_echo "$ac_ct_NMEDIT" >&6; }
7000
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7001
$as_echo "no" >&6; }
7004
if test "x$ac_ct_NMEDIT" = x; then
7007
case $cross_compiling:$ac_tool_warned in
7009
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7010
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7011
ac_tool_warned=yes ;;
7013
NMEDIT=$ac_ct_NMEDIT
7016
NMEDIT="$ac_cv_prog_NMEDIT"
7019
if test -n "$ac_tool_prefix"; then
7020
# Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7021
set dummy ${ac_tool_prefix}lipo; ac_word=$2
7022
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7023
$as_echo_n "checking for $ac_word... " >&6; }
7024
if test "${ac_cv_prog_LIPO+set}" = set; then :
7025
$as_echo_n "(cached) " >&6
7027
if test -n "$LIPO"; then
7028
ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7030
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7034
test -z "$as_dir" && as_dir=.
7035
for ac_exec_ext in '' $ac_executable_extensions; do
7036
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7037
ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7038
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7047
LIPO=$ac_cv_prog_LIPO
7048
if test -n "$LIPO"; then
7049
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7050
$as_echo "$LIPO" >&6; }
7052
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7053
$as_echo "no" >&6; }
7058
if test -z "$ac_cv_prog_LIPO"; then
7060
# Extract the first word of "lipo", so it can be a program name with args.
7061
set dummy lipo; ac_word=$2
7062
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7063
$as_echo_n "checking for $ac_word... " >&6; }
7064
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7065
$as_echo_n "(cached) " >&6
7067
if test -n "$ac_ct_LIPO"; then
7068
ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7070
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7074
test -z "$as_dir" && as_dir=.
7075
for ac_exec_ext in '' $ac_executable_extensions; do
7076
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7077
ac_cv_prog_ac_ct_LIPO="lipo"
7078
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7087
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7088
if test -n "$ac_ct_LIPO"; then
7089
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7090
$as_echo "$ac_ct_LIPO" >&6; }
7092
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7093
$as_echo "no" >&6; }
7096
if test "x$ac_ct_LIPO" = x; then
7099
case $cross_compiling:$ac_tool_warned in
7101
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7102
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7103
ac_tool_warned=yes ;;
7108
LIPO="$ac_cv_prog_LIPO"
7111
if test -n "$ac_tool_prefix"; then
7112
# Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7113
set dummy ${ac_tool_prefix}otool; ac_word=$2
7114
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7115
$as_echo_n "checking for $ac_word... " >&6; }
7116
if test "${ac_cv_prog_OTOOL+set}" = set; then :
7117
$as_echo_n "(cached) " >&6
7119
if test -n "$OTOOL"; then
7120
ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7122
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7126
test -z "$as_dir" && as_dir=.
7127
for ac_exec_ext in '' $ac_executable_extensions; do
7128
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7129
ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7130
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7139
OTOOL=$ac_cv_prog_OTOOL
7140
if test -n "$OTOOL"; then
7141
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7142
$as_echo "$OTOOL" >&6; }
7144
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7145
$as_echo "no" >&6; }
7150
if test -z "$ac_cv_prog_OTOOL"; then
7152
# Extract the first word of "otool", so it can be a program name with args.
7153
set dummy otool; ac_word=$2
7154
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7155
$as_echo_n "checking for $ac_word... " >&6; }
7156
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7157
$as_echo_n "(cached) " >&6
7159
if test -n "$ac_ct_OTOOL"; then
7160
ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7162
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7166
test -z "$as_dir" && as_dir=.
7167
for ac_exec_ext in '' $ac_executable_extensions; do
7168
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7169
ac_cv_prog_ac_ct_OTOOL="otool"
7170
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7179
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7180
if test -n "$ac_ct_OTOOL"; then
7181
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7182
$as_echo "$ac_ct_OTOOL" >&6; }
7184
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7185
$as_echo "no" >&6; }
7188
if test "x$ac_ct_OTOOL" = x; then
7191
case $cross_compiling:$ac_tool_warned in
7193
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7194
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7195
ac_tool_warned=yes ;;
7200
OTOOL="$ac_cv_prog_OTOOL"
7203
if test -n "$ac_tool_prefix"; then
7204
# Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7205
set dummy ${ac_tool_prefix}otool64; ac_word=$2
7206
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7207
$as_echo_n "checking for $ac_word... " >&6; }
7208
if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7209
$as_echo_n "(cached) " >&6
7211
if test -n "$OTOOL64"; then
7212
ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7214
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7218
test -z "$as_dir" && as_dir=.
7219
for ac_exec_ext in '' $ac_executable_extensions; do
7220
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7221
ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7222
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7231
OTOOL64=$ac_cv_prog_OTOOL64
7232
if test -n "$OTOOL64"; then
7233
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7234
$as_echo "$OTOOL64" >&6; }
7236
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7237
$as_echo "no" >&6; }
7242
if test -z "$ac_cv_prog_OTOOL64"; then
7243
ac_ct_OTOOL64=$OTOOL64
7244
# Extract the first word of "otool64", so it can be a program name with args.
7245
set dummy otool64; ac_word=$2
7246
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7247
$as_echo_n "checking for $ac_word... " >&6; }
7248
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7249
$as_echo_n "(cached) " >&6
7251
if test -n "$ac_ct_OTOOL64"; then
7252
ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7254
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7258
test -z "$as_dir" && as_dir=.
7259
for ac_exec_ext in '' $ac_executable_extensions; do
7260
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7261
ac_cv_prog_ac_ct_OTOOL64="otool64"
7262
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7271
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7272
if test -n "$ac_ct_OTOOL64"; then
7273
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7274
$as_echo "$ac_ct_OTOOL64" >&6; }
7276
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7277
$as_echo "no" >&6; }
7280
if test "x$ac_ct_OTOOL64" = x; then
7283
case $cross_compiling:$ac_tool_warned in
7285
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7286
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7287
ac_tool_warned=yes ;;
7289
OTOOL64=$ac_ct_OTOOL64
7292
OTOOL64="$ac_cv_prog_OTOOL64"
7321
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7322
$as_echo_n "checking for -single_module linker flag... " >&6; }
7323
if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7324
$as_echo_n "(cached) " >&6
7326
lt_cv_apple_cc_single_mod=no
7327
if test -z "${LT_MULTI_MODULE}"; then
7328
# By default we will add the -single_module flag. You can override
7329
# by either setting the environment variable LT_MULTI_MODULE
7330
# non-empty at configure time, or by adding -multi_module to the
7332
rm -rf libconftest.dylib*
7333
echo "int foo(void){return 1;}" > conftest.c
7334
echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7335
-dynamiclib -Wl,-single_module conftest.c" >&5
7336
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7337
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7339
if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7340
lt_cv_apple_cc_single_mod=yes
7342
cat conftest.err >&5
7344
rm -rf libconftest.dylib*
7348
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7349
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7350
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7351
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7352
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7353
$as_echo_n "(cached) " >&6
7355
lt_cv_ld_exported_symbols_list=no
7356
save_LDFLAGS=$LDFLAGS
7357
echo "_main" > conftest.sym
7358
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7359
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7360
/* end confdefs.h. */
7370
if ac_fn_c_try_link "$LINENO"; then :
7371
lt_cv_ld_exported_symbols_list=yes
7373
lt_cv_ld_exported_symbols_list=no
7375
rm -f core conftest.err conftest.$ac_objext \
7376
conftest$ac_exeext conftest.$ac_ext
7377
LDFLAGS="$save_LDFLAGS"
7380
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7381
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7383
rhapsody* | darwin1.[012])
7384
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7386
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7387
darwin*) # darwin 5.x on
7388
# if running on 10.5 or later, the deployment target defaults
7389
# to the OS version, if on x86, and 10.4, the deployment
7390
# target defaults to 10.4. Don't you love it?
7391
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7392
10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7393
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7395
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7397
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7401
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7402
_lt_dar_single_mod='$single_module'
7404
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7405
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7407
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7409
if test "$DSYMUTIL" != ":"; then
7410
_lt_dsymutil='~$DSYMUTIL $lib || :'
7418
ac_cpp='$CPP $CPPFLAGS'
7419
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7420
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7421
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7422
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7423
$as_echo_n "checking how to run the C preprocessor... " >&6; }
7424
# On Suns, sometimes $CPP names a directory.
7425
if test -n "$CPP" && test -d "$CPP"; then
7428
if test -z "$CPP"; then
7429
if test "${ac_cv_prog_CPP+set}" = set; then :
7430
$as_echo_n "(cached) " >&6
7432
# Double quotes because CPP needs to be expanded
7433
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7436
for ac_c_preproc_warn_flag in '' yes
7438
# Use a header file that comes with gcc, so configuring glibc
7439
# with a fresh cross-compiler works.
7440
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7441
# <limits.h> exists even on freestanding compilers.
7442
# On the NeXT, cc -E runs the code through the compiler's parser,
7443
# not just through cpp. "Syntax error" is here to catch this case.
7444
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7445
/* end confdefs.h. */
7447
# include <limits.h>
7449
# include <assert.h>
7453
if ac_fn_c_try_cpp "$LINENO"; then :
7456
# Broken: fails on valid input.
7459
rm -f conftest.err conftest.$ac_ext
7461
# OK, works on sane cases. Now check whether nonexistent headers
7462
# can be detected and how.
7463
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7464
/* end confdefs.h. */
7465
#include <ac_nonexistent.h>
7467
if ac_fn_c_try_cpp "$LINENO"; then :
7468
# Broken: success on invalid input.
7471
# Passes both tests.
7475
rm -f conftest.err conftest.$ac_ext
7478
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7479
rm -f conftest.err conftest.$ac_ext
7480
if $ac_preproc_ok; then :
7492
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7493
$as_echo "$CPP" >&6; }
7495
for ac_c_preproc_warn_flag in '' yes
7497
# Use a header file that comes with gcc, so configuring glibc
7498
# with a fresh cross-compiler works.
7499
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7500
# <limits.h> exists even on freestanding compilers.
7501
# On the NeXT, cc -E runs the code through the compiler's parser,
7502
# not just through cpp. "Syntax error" is here to catch this case.
7503
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7504
/* end confdefs.h. */
7506
# include <limits.h>
7508
# include <assert.h>
7512
if ac_fn_c_try_cpp "$LINENO"; then :
7515
# Broken: fails on valid input.
7518
rm -f conftest.err conftest.$ac_ext
7520
# OK, works on sane cases. Now check whether nonexistent headers
7521
# can be detected and how.
7522
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7523
/* end confdefs.h. */
7524
#include <ac_nonexistent.h>
7526
if ac_fn_c_try_cpp "$LINENO"; then :
7527
# Broken: success on invalid input.
7530
# Passes both tests.
7534
rm -f conftest.err conftest.$ac_ext
7537
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7538
rm -f conftest.err conftest.$ac_ext
7539
if $ac_preproc_ok; then :
7542
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7543
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7544
as_fn_error "C preprocessor \"$CPP\" fails sanity check
7545
See \`config.log' for more details." "$LINENO" 5; }
7549
ac_cpp='$CPP $CPPFLAGS'
7550
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7551
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7552
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7555
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7556
$as_echo_n "checking for ANSI C header files... " >&6; }
7557
if test "${ac_cv_header_stdc+set}" = set; then :
7558
$as_echo_n "(cached) " >&6
7560
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7561
/* end confdefs.h. */
7575
if ac_fn_c_try_compile "$LINENO"; then :
7576
ac_cv_header_stdc=yes
7578
ac_cv_header_stdc=no
7580
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7582
if test $ac_cv_header_stdc = yes; then
7583
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7584
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7585
/* end confdefs.h. */
7589
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7590
$EGREP "memchr" >/dev/null 2>&1; then :
7593
ac_cv_header_stdc=no
7599
if test $ac_cv_header_stdc = yes; then
7600
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7601
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7602
/* end confdefs.h. */
7606
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7607
$EGREP "free" >/dev/null 2>&1; then :
7610
ac_cv_header_stdc=no
7616
if test $ac_cv_header_stdc = yes; then
7617
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7618
if test "$cross_compiling" = yes; then :
7621
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7622
/* end confdefs.h. */
7625
#if ((' ' & 0x0FF) == 0x020)
7626
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7627
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7629
# define ISLOWER(c) \
7630
(('a' <= (c) && (c) <= 'i') \
7631
|| ('j' <= (c) && (c) <= 'r') \
7632
|| ('s' <= (c) && (c) <= 'z'))
7633
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7636
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7641
for (i = 0; i < 256; i++)
7642
if (XOR (islower (i), ISLOWER (i))
7643
|| toupper (i) != TOUPPER (i))
7648
if ac_fn_c_try_run "$LINENO"; then :
7651
ac_cv_header_stdc=no
7653
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7654
conftest.$ac_objext conftest.beam conftest.$ac_ext
7659
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7660
$as_echo "$ac_cv_header_stdc" >&6; }
7661
if test $ac_cv_header_stdc = yes; then
7663
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7667
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7668
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7669
inttypes.h stdint.h unistd.h
7671
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7672
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7674
eval as_val=\$$as_ac_Header
7675
if test "x$as_val" = x""yes; then :
7676
cat >>confdefs.h <<_ACEOF
7677
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7685
for ac_header in dlfcn.h
7687
ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7689
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7690
cat >>confdefs.h <<_ACEOF
7691
#define HAVE_DLFCN_H 1
7701
ac_cpp='$CXXCPP $CPPFLAGS'
7702
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7703
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7704
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7705
if test -z "$CXX"; then
7706
if test -n "$CCC"; then
7709
if test -n "$ac_tool_prefix"; then
7710
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7712
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7713
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7714
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7715
$as_echo_n "checking for $ac_word... " >&6; }
7716
if test "${ac_cv_prog_CXX+set}" = set; then :
7717
$as_echo_n "(cached) " >&6
7719
if test -n "$CXX"; then
7720
ac_cv_prog_CXX="$CXX" # Let the user override the test.
7722
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7726
test -z "$as_dir" && as_dir=.
7727
for ac_exec_ext in '' $ac_executable_extensions; do
7728
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7729
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7730
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7740
if test -n "$CXX"; then
7741
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7742
$as_echo "$CXX" >&6; }
7744
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7745
$as_echo "no" >&6; }
7749
test -n "$CXX" && break
7752
if test -z "$CXX"; then
7754
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7756
# Extract the first word of "$ac_prog", so it can be a program name with args.
7757
set dummy $ac_prog; ac_word=$2
7758
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7759
$as_echo_n "checking for $ac_word... " >&6; }
7760
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
7761
$as_echo_n "(cached) " >&6
7763
if test -n "$ac_ct_CXX"; then
7764
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7766
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7770
test -z "$as_dir" && as_dir=.
7771
for ac_exec_ext in '' $ac_executable_extensions; do
7772
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7773
ac_cv_prog_ac_ct_CXX="$ac_prog"
7774
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7783
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7784
if test -n "$ac_ct_CXX"; then
7785
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7786
$as_echo "$ac_ct_CXX" >&6; }
7788
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7789
$as_echo "no" >&6; }
7793
test -n "$ac_ct_CXX" && break
7796
if test "x$ac_ct_CXX" = x; then
7799
case $cross_compiling:$ac_tool_warned in
7801
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7802
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7803
ac_tool_warned=yes ;;
7811
# Provide some information about the compiler.
7812
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7815
for ac_option in --version -v -V -qversion; do
7816
{ { ac_try="$ac_compiler $ac_option >&5"
7818
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7819
*) ac_try_echo=$ac_try;;
7821
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7822
$as_echo "$ac_try_echo"; } >&5
7823
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
7825
if test -s conftest.err; then
7827
... rest of stderr output deleted ...
7828
10q' conftest.err >conftest.er1
7829
cat conftest.er1 >&5
7831
rm -f conftest.er1 conftest.err
7832
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7833
test $ac_status = 0; }
7836
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7837
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7838
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
7839
$as_echo_n "(cached) " >&6
7841
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7842
/* end confdefs.h. */
7855
if ac_fn_cxx_try_compile "$LINENO"; then :
7860
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7861
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7864
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7865
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7866
if test $ac_compiler_gnu = yes; then
7871
ac_test_CXXFLAGS=${CXXFLAGS+set}
7872
ac_save_CXXFLAGS=$CXXFLAGS
7873
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7874
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
7875
if test "${ac_cv_prog_cxx_g+set}" = set; then :
7876
$as_echo_n "(cached) " >&6
7878
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7879
ac_cxx_werror_flag=yes
7882
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7883
/* end confdefs.h. */
7893
if ac_fn_cxx_try_compile "$LINENO"; then :
7894
ac_cv_prog_cxx_g=yes
7897
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7898
/* end confdefs.h. */
7908
if ac_fn_cxx_try_compile "$LINENO"; then :
7911
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7913
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7914
/* end confdefs.h. */
7924
if ac_fn_cxx_try_compile "$LINENO"; then :
7925
ac_cv_prog_cxx_g=yes
7927
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7929
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7931
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7932
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7934
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7935
$as_echo "$ac_cv_prog_cxx_g" >&6; }
7936
if test "$ac_test_CXXFLAGS" = set; then
7937
CXXFLAGS=$ac_save_CXXFLAGS
7938
elif test $ac_cv_prog_cxx_g = yes; then
7939
if test "$GXX" = yes; then
7945
if test "$GXX" = yes; then
7952
ac_cpp='$CPP $CPPFLAGS'
7953
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7954
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7955
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7957
depcc="$CXX" am_compiler_list=
7959
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7960
$as_echo_n "checking dependency style of $depcc... " >&6; }
7961
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
7962
$as_echo_n "(cached) " >&6
7964
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7965
# We make a subdir and do the tests there. Otherwise we can end up
7966
# making bogus files that we don't know about and never remove. For
7967
# instance it was reported that on HP-UX the gcc test will end up
7968
# making a dummy file named `D' -- because `-MD' means `put the output
7971
# Copy depcomp to subdir because otherwise we won't find it if we're
7972
# using a relative directory.
7973
cp "$am_depcomp" conftest.dir
7975
# We will build objects and dependencies in a subdirectory because
7976
# it helps to detect inapplicable dependency modes. For instance
7977
# both Tru64's cc and ICC support -MD to output dependencies as a
7978
# side effect of compilation, but ICC will put the dependencies in
7979
# the current directory while Tru64 will put them in the object
7983
am_cv_CXX_dependencies_compiler_type=none
7984
if test "$am_compiler_list" = ""; then
7985
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7988
case " $depcc " in #(
7989
*\ -arch\ *\ -arch\ *) am__universal=true ;;
7992
for depmode in $am_compiler_list; do
7993
# Setup a source with many dependencies, because some compilers
7994
# like to wrap large dependency lists on column 80 (with \), and
7995
# we should not choose a depcomp mode which is confused by this.
7997
# We need to recreate these files for each test, as the compiler may
7998
# overwrite some of them when testing with obscure command lines.
7999
# This happens at least with the AIX C compiler.
8001
for i in 1 2 3 4 5 6; do
8002
echo '#include "conftst'$i'.h"' >> sub/conftest.c
8003
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8004
# Solaris 8's {/usr,}/bin/sh.
8005
touch sub/conftst$i.h
8007
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8009
# We check with `-c' and `-o' for the sake of the "dashmstdout"
8010
# mode. It turns out that the SunPro C++ compiler does not properly
8011
# handle `-M -o', and we need to detect this. Also, some Intel
8012
# versions had trouble with output in subdirs
8013
am__obj=sub/conftest.${OBJEXT-o}
8014
am__minus_obj="-o $am__obj"
8017
# This depmode causes a compiler race in universal mode.
8018
test "$am__universal" = false || continue
8021
# after this tag, mechanisms are not by side-effect, so they'll
8022
# only be used when explicitly requested
8023
if test "x$enable_dependency_tracking" = xyes; then
8029
msvisualcpp | msvcmsys)
8030
# This compiler won't grok `-c -o', but also, the minuso test has
8031
# not run yet. These depmodes are late enough in the game, and
8032
# so weak that their functioning should not be impacted.
8033
am__obj=conftest.${OBJEXT-o}
8038
if depmode=$depmode \
8039
source=sub/conftest.c object=$am__obj \
8040
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8041
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
8042
>/dev/null 2>conftest.err &&
8043
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
8044
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8045
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
8046
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8047
# icc doesn't choke on unknown options, it will just issue warnings
8048
# or remarks (even with -Werror). So we grep stderr for any message
8049
# that says an option was ignored or not supported.
8050
# When given -MP, icc 7.0 and 7.1 complain thusly:
8051
# icc: Command line warning: ignoring option '-M'; no argument required
8052
# The diagnosis changed in icc 8.0:
8053
# icc: Command line remark: option '-MP' not supported
8054
if (grep 'ignoring option' conftest.err ||
8055
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8056
am_cv_CXX_dependencies_compiler_type=$depmode
8065
am_cv_CXX_dependencies_compiler_type=none
8069
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
8070
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
8071
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8074
test "x$enable_dependency_tracking" != xno \
8075
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8076
am__fastdepCXX_TRUE=
8077
am__fastdepCXX_FALSE='#'
8079
am__fastdepCXX_TRUE='#'
8080
am__fastdepCXX_FALSE=
8084
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8085
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8086
(test "X$CXX" != "Xg++"))) ; then
8088
ac_cpp='$CXXCPP $CPPFLAGS'
8089
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8090
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8091
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8092
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8093
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8094
if test -z "$CXXCPP"; then
8095
if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8096
$as_echo_n "(cached) " >&6
8098
# Double quotes because CXXCPP needs to be expanded
8099
for CXXCPP in "$CXX -E" "/lib/cpp"
8102
for ac_cxx_preproc_warn_flag in '' yes
8104
# Use a header file that comes with gcc, so configuring glibc
8105
# with a fresh cross-compiler works.
8106
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8107
# <limits.h> exists even on freestanding compilers.
8108
# On the NeXT, cc -E runs the code through the compiler's parser,
8109
# not just through cpp. "Syntax error" is here to catch this case.
8110
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8111
/* end confdefs.h. */
8113
# include <limits.h>
8115
# include <assert.h>
8119
if ac_fn_cxx_try_cpp "$LINENO"; then :
8122
# Broken: fails on valid input.
8125
rm -f conftest.err conftest.$ac_ext
8127
# OK, works on sane cases. Now check whether nonexistent headers
8128
# can be detected and how.
8129
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8130
/* end confdefs.h. */
8131
#include <ac_nonexistent.h>
8133
if ac_fn_cxx_try_cpp "$LINENO"; then :
8134
# Broken: success on invalid input.
8137
# Passes both tests.
8141
rm -f conftest.err conftest.$ac_ext
8144
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8145
rm -f conftest.err conftest.$ac_ext
8146
if $ac_preproc_ok; then :
8151
ac_cv_prog_CXXCPP=$CXXCPP
8154
CXXCPP=$ac_cv_prog_CXXCPP
8156
ac_cv_prog_CXXCPP=$CXXCPP
8158
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8159
$as_echo "$CXXCPP" >&6; }
8161
for ac_cxx_preproc_warn_flag in '' yes
8163
# Use a header file that comes with gcc, so configuring glibc
8164
# with a fresh cross-compiler works.
8165
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8166
# <limits.h> exists even on freestanding compilers.
8167
# On the NeXT, cc -E runs the code through the compiler's parser,
8168
# not just through cpp. "Syntax error" is here to catch this case.
8169
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8170
/* end confdefs.h. */
8172
# include <limits.h>
8174
# include <assert.h>
8178
if ac_fn_cxx_try_cpp "$LINENO"; then :
8181
# Broken: fails on valid input.
8184
rm -f conftest.err conftest.$ac_ext
8186
# OK, works on sane cases. Now check whether nonexistent headers
8187
# can be detected and how.
8188
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8189
/* end confdefs.h. */
8190
#include <ac_nonexistent.h>
8192
if ac_fn_cxx_try_cpp "$LINENO"; then :
8193
# Broken: success on invalid input.
8196
# Passes both tests.
8200
rm -f conftest.err conftest.$ac_ext
8203
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8204
rm -f conftest.err conftest.$ac_ext
8205
if $ac_preproc_ok; then :
8208
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8209
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8210
_lt_caught_CXX_error=yes; }
8214
ac_cpp='$CPP $CPPFLAGS'
8215
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8216
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8217
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8220
_lt_caught_CXX_error=yes
8228
enable_win32_dll=yes
8231
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
8232
if test -n "$ac_tool_prefix"; then
8233
# Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8234
set dummy ${ac_tool_prefix}as; ac_word=$2
8235
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8236
$as_echo_n "checking for $ac_word... " >&6; }
8237
if test "${ac_cv_prog_AS+set}" = set; then :
8238
$as_echo_n "(cached) " >&6
8240
if test -n "$AS"; then
8241
ac_cv_prog_AS="$AS" # Let the user override the test.
8243
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8247
test -z "$as_dir" && as_dir=.
8248
for ac_exec_ext in '' $ac_executable_extensions; do
8249
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8250
ac_cv_prog_AS="${ac_tool_prefix}as"
8251
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8261
if test -n "$AS"; then
8262
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8263
$as_echo "$AS" >&6; }
8265
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8266
$as_echo "no" >&6; }
8271
if test -z "$ac_cv_prog_AS"; then
8273
# Extract the first word of "as", so it can be a program name with args.
8274
set dummy as; ac_word=$2
8275
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8276
$as_echo_n "checking for $ac_word... " >&6; }
8277
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
8278
$as_echo_n "(cached) " >&6
8280
if test -n "$ac_ct_AS"; then
8281
ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8283
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8287
test -z "$as_dir" && as_dir=.
8288
for ac_exec_ext in '' $ac_executable_extensions; do
8289
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8290
ac_cv_prog_ac_ct_AS="as"
8291
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8300
ac_ct_AS=$ac_cv_prog_ac_ct_AS
8301
if test -n "$ac_ct_AS"; then
8302
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8303
$as_echo "$ac_ct_AS" >&6; }
8305
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8306
$as_echo "no" >&6; }
8309
if test "x$ac_ct_AS" = x; then
8312
case $cross_compiling:$ac_tool_warned in
8314
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8315
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8316
ac_tool_warned=yes ;;
8324
if test -n "$ac_tool_prefix"; then
8325
# Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8326
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8327
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8328
$as_echo_n "checking for $ac_word... " >&6; }
8329
if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8330
$as_echo_n "(cached) " >&6
8332
if test -n "$DLLTOOL"; then
8333
ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8335
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8339
test -z "$as_dir" && as_dir=.
8340
for ac_exec_ext in '' $ac_executable_extensions; do
8341
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8342
ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8343
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8352
DLLTOOL=$ac_cv_prog_DLLTOOL
8353
if test -n "$DLLTOOL"; then
8354
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8355
$as_echo "$DLLTOOL" >&6; }
8357
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8358
$as_echo "no" >&6; }
8363
if test -z "$ac_cv_prog_DLLTOOL"; then
8364
ac_ct_DLLTOOL=$DLLTOOL
8365
# Extract the first word of "dlltool", so it can be a program name with args.
8366
set dummy dlltool; ac_word=$2
8367
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8368
$as_echo_n "checking for $ac_word... " >&6; }
8369
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
8370
$as_echo_n "(cached) " >&6
8372
if test -n "$ac_ct_DLLTOOL"; then
8373
ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8375
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8379
test -z "$as_dir" && as_dir=.
8380
for ac_exec_ext in '' $ac_executable_extensions; do
8381
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8382
ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8383
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8392
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8393
if test -n "$ac_ct_DLLTOOL"; then
8394
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8395
$as_echo "$ac_ct_DLLTOOL" >&6; }
8397
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8398
$as_echo "no" >&6; }
8401
if test "x$ac_ct_DLLTOOL" = x; then
8404
case $cross_compiling:$ac_tool_warned in
8406
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8407
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8408
ac_tool_warned=yes ;;
8410
DLLTOOL=$ac_ct_DLLTOOL
8413
DLLTOOL="$ac_cv_prog_DLLTOOL"
8416
if test -n "$ac_tool_prefix"; then
8417
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8418
set dummy ${ac_tool_prefix}objdump; ac_word=$2
8419
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8420
$as_echo_n "checking for $ac_word... " >&6; }
8421
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
8422
$as_echo_n "(cached) " >&6
8424
if test -n "$OBJDUMP"; then
8425
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8427
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8431
test -z "$as_dir" && as_dir=.
8432
for ac_exec_ext in '' $ac_executable_extensions; do
8433
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8434
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8435
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8444
OBJDUMP=$ac_cv_prog_OBJDUMP
8445
if test -n "$OBJDUMP"; then
8446
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8447
$as_echo "$OBJDUMP" >&6; }
8449
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8450
$as_echo "no" >&6; }
8455
if test -z "$ac_cv_prog_OBJDUMP"; then
8456
ac_ct_OBJDUMP=$OBJDUMP
8457
# Extract the first word of "objdump", so it can be a program name with args.
8458
set dummy objdump; ac_word=$2
8459
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8460
$as_echo_n "checking for $ac_word... " >&6; }
8461
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
8462
$as_echo_n "(cached) " >&6
8464
if test -n "$ac_ct_OBJDUMP"; then
8465
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8467
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8471
test -z "$as_dir" && as_dir=.
8472
for ac_exec_ext in '' $ac_executable_extensions; do
8473
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8474
ac_cv_prog_ac_ct_OBJDUMP="objdump"
8475
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8484
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8485
if test -n "$ac_ct_OBJDUMP"; then
8486
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8487
$as_echo "$ac_ct_OBJDUMP" >&6; }
8489
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8490
$as_echo "no" >&6; }
8493
if test "x$ac_ct_OBJDUMP" = x; then
8496
case $cross_compiling:$ac_tool_warned in
8498
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8499
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8500
ac_tool_warned=yes ;;
8502
OBJDUMP=$ac_ct_OBJDUMP
8505
OBJDUMP="$ac_cv_prog_OBJDUMP"
8511
test -z "$AS" && AS=as
8517
test -z "$DLLTOOL" && DLLTOOL=dlltool
8523
test -z "$OBJDUMP" && OBJDUMP=objdump
8535
# Check whether --enable-shared was given.
8536
if test "${enable_shared+set}" = set; then :
8537
enableval=$enable_shared; p=${PACKAGE-default}
8539
yes) enable_shared=yes ;;
8540
no) enable_shared=no ;;
8543
# Look at the argument we got. We use all the common list separators.
8544
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8545
for pkg in $enableval; do
8547
if test "X$pkg" = "X$p"; then
8566
# Check whether --enable-static was given.
8567
if test "${enable_static+set}" = set; then :
8568
enableval=$enable_static; p=${PACKAGE-default}
8570
yes) enable_static=yes ;;
8571
no) enable_static=no ;;
8574
# Look at the argument we got. We use all the common list separators.
8575
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8576
for pkg in $enableval; do
8578
if test "X$pkg" = "X$p"; then
8598
# Check whether --with-pic was given.
8599
if test "${with_pic+set}" = set; then :
8600
withval=$with_pic; pic_mode="$withval"
8606
test -z "$pic_mode" && pic_mode=default
8614
# Check whether --enable-fast-install was given.
8615
if test "${enable_fast_install+set}" = set; then :
8616
enableval=$enable_fast_install; p=${PACKAGE-default}
8618
yes) enable_fast_install=yes ;;
8619
no) enable_fast_install=no ;;
8621
enable_fast_install=no
8622
# Look at the argument we got. We use all the common list separators.
8623
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8624
for pkg in $enableval; do
8626
if test "X$pkg" = "X$p"; then
8627
enable_fast_install=yes
8634
enable_fast_install=yes
8647
# This can be used to rebuild libtool when needed
8648
LIBTOOL_DEPS="$ltmain"
8650
# Always use our own libtool.
8651
LIBTOOL="${CONFIG_SHELL-$SHELL} "'$(top_builddir)/libtool'
8677
test -z "$LN_S" && LN_S="ln -s"
8692
if test -n "${ZSH_VERSION+set}" ; then
8693
setopt NO_GLOB_SUBST
8696
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8697
$as_echo_n "checking for objdir... " >&6; }
8698
if test "${lt_cv_objdir+set}" = set; then :
8699
$as_echo_n "(cached) " >&6
6866
8701
rm -f .libs 2>/dev/null
6867
8702
mkdir .libs 2>/dev/null
11253
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11254
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12425
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12426
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11255
12427
with_gnu_ld=$lt_cv_prog_gnu_ld
11259
# Check if GNU C++ uses GNU ld as the underlying linker, since the
11260
# archiving commands below assume that GNU ld is being used.
11261
if test "$with_gnu_ld" = yes; then
11262
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11263
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'
11265
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11266
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11268
# If archive_cmds runs LD, not CC, wlarc should be empty
11269
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11270
# investigate it a little bit more. (MM)
11273
# ancient GNU ld didn't support --whole-archive et. al.
11274
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11275
grep 'no-whole-archive' > /dev/null; then
11276
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11278
whole_archive_flag_spec_CXX=
11284
# A generic and very simple default shared library creation
11285
# command for GNU C++ for the case where it uses the native
11286
# linker, instead of GNU ld. If possible, this setting should
11287
# overridden to take advantage of the native linker features on
11288
# the platform it is being used on.
11289
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11292
# Commands to make compiler produce verbose output that lists
11293
# what "hidden" libraries, object files and flags are used when
11294
# linking a shared library.
11295
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11303
# PORTME: fill in a description of your system's C++ link characteristics
11304
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11305
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11309
# FIXME: insert proper C++ library support
11313
if test "$host_cpu" = ia64; then
11314
# On IA64, the linker does run time linking by default, so we don't
11315
# have to do anything special.
11316
aix_use_runtimelinking=no
11317
exp_sym_flag='-Bexport'
11320
aix_use_runtimelinking=no
11322
# Test if we are trying to use run time linking or normal
11323
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11324
# need to do runtime linking.
11325
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11326
for ld_flag in $LDFLAGS; do
11329
aix_use_runtimelinking=yes
11337
exp_sym_flag='-bexport'
11338
no_entry_flag='-bnoentry'
11341
# When large executables or shared objects are built, AIX ld can
11342
# have problems creating the table of contents. If linking a library
11343
# or program results in "error TOC overflow" add -mminimal-toc to
11344
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11345
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11347
archive_cmds_CXX=''
11348
hardcode_direct_CXX=yes
11349
hardcode_libdir_separator_CXX=':'
11350
link_all_deplibs_CXX=yes
11352
if test "$GXX" = yes; then
11353
case $host_os in aix4.[012]|aix4.[012].*)
11354
# We only want to do this on AIX 4.2 and lower, the check
11355
# below for broken collect2 doesn't work under 4.3+
11356
collect2name=`${CC} -print-prog-name=collect2`
11357
if test -f "$collect2name" && \
11358
strings "$collect2name" | grep resolve_lib_name >/dev/null
11360
# We have reworked collect2
11363
# We have old collect2
11364
hardcode_direct_CXX=unsupported
11365
# It fails to find uninstalled libraries when the uninstalled
11366
# path is not listed in the libpath. Setting hardcode_minus_L
11367
# to unsupported forces relinking
11368
hardcode_minus_L_CXX=yes
11369
hardcode_libdir_flag_spec_CXX='-L$libdir'
11370
hardcode_libdir_separator_CXX=
11374
shared_flag='-shared'
11375
if test "$aix_use_runtimelinking" = yes; then
11376
shared_flag="$shared_flag "'${wl}-G'
11380
if test "$host_cpu" = ia64; then
11381
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11382
# chokes on -Wl,-G. The following line is correct:
11385
if test "$aix_use_runtimelinking" = yes; then
11386
shared_flag='${wl}-G'
11388
shared_flag='${wl}-bM:SRE'
11393
# It seems that -bexpall does not export symbols beginning with
11394
# underscore (_), so it is better to generate a list of symbols to export.
11395
always_export_symbols_CXX=yes
11396
if test "$aix_use_runtimelinking" = yes; then
11397
# Warning - without using the other runtime loading flags (-brtl),
11398
# -berok will link without error, but may produce a broken library.
11399
allow_undefined_flag_CXX='-berok'
11400
# Determine the default libpath from the value encoded in an empty executable.
11401
cat >conftest.$ac_ext <<_ACEOF
11404
cat confdefs.h >>conftest.$ac_ext
11405
cat >>conftest.$ac_ext <<_ACEOF
11406
/* end confdefs.h. */
11416
rm -f conftest.$ac_objext conftest$ac_exeext
11417
if { (ac_try="$ac_link"
11418
case "(($ac_try" in
11419
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11420
*) ac_try_echo=$ac_try;;
11422
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11423
(eval "$ac_link") 2>conftest.er1
11425
grep -v '^ *+' conftest.er1 >conftest.err
11427
cat conftest.err >&5
11428
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429
(exit $ac_status); } && {
11430
test -z "$ac_cxx_werror_flag" ||
11431
test ! -s conftest.err
11432
} && test -s conftest$ac_exeext &&
11433
$as_test_x conftest$ac_exeext; then
11435
lt_aix_libpath_sed='
11436
/Import File Strings/,/^$/ {
11442
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11443
# Check for a 64-bit object if we didn't find anything.
11444
if test -z "$aix_libpath"; then
11445
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11448
echo "$as_me: failed program was:" >&5
11449
sed 's/^/| /' conftest.$ac_ext >&5
11454
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11455
conftest$ac_exeext conftest.$ac_ext
11456
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11458
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11460
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"
11462
if test "$host_cpu" = ia64; then
11463
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11464
allow_undefined_flag_CXX="-z nodefs"
11465
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"
11467
# Determine the default libpath from the value encoded in an empty executable.
11468
cat >conftest.$ac_ext <<_ACEOF
11471
cat confdefs.h >>conftest.$ac_ext
11472
cat >>conftest.$ac_ext <<_ACEOF
11473
/* end confdefs.h. */
11483
rm -f conftest.$ac_objext conftest$ac_exeext
11484
if { (ac_try="$ac_link"
11485
case "(($ac_try" in
11486
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11487
*) ac_try_echo=$ac_try;;
11489
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11490
(eval "$ac_link") 2>conftest.er1
11492
grep -v '^ *+' conftest.er1 >conftest.err
11494
cat conftest.err >&5
11495
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496
(exit $ac_status); } && {
11497
test -z "$ac_cxx_werror_flag" ||
11498
test ! -s conftest.err
11499
} && test -s conftest$ac_exeext &&
11500
$as_test_x conftest$ac_exeext; then
11502
lt_aix_libpath_sed='
11503
/Import File Strings/,/^$/ {
11509
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11510
# Check for a 64-bit object if we didn't find anything.
11511
if test -z "$aix_libpath"; then
11512
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11515
echo "$as_me: failed program was:" >&5
11516
sed 's/^/| /' conftest.$ac_ext >&5
11521
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11522
conftest$ac_exeext conftest.$ac_ext
11523
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11525
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11526
# Warning - without using the other run time loading flags,
11527
# -berok will link without error, but may produce a broken library.
11528
no_undefined_flag_CXX=' ${wl}-bernotok'
11529
allow_undefined_flag_CXX=' ${wl}-berok'
11530
# Exported symbols can be pulled into shared objects from archives
11531
whole_archive_flag_spec_CXX='$convenience'
11532
archive_cmds_need_lc_CXX=yes
11533
# This is similar to how AIX traditionally builds its shared libraries.
11534
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'
11540
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11541
allow_undefined_flag_CXX=unsupported
11542
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11543
# support --undefined. This deserves some investigation. FIXME
11544
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11551
case $cc_basename in
11553
# FIXME: insert proper C++ library support
11559
cygwin* | mingw* | pw32*)
11560
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11561
# as there is no search path for DLLs.
11562
hardcode_libdir_flag_spec_CXX='-L$libdir'
11563
allow_undefined_flag_CXX=unsupported
11564
always_export_symbols_CXX=no
11565
enable_shared_with_static_runtimes_CXX=yes
11567
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11568
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'
11569
# If the export-symbols file already is a .def file (1st line
11570
# is EXPORTS), use it as is; otherwise, prepend...
11571
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11572
cp $export_symbols $output_objdir/$soname.def;
11574
echo EXPORTS > $output_objdir/$soname.def;
11575
cat $export_symbols >> $output_objdir/$soname.def;
11577
$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'
11582
darwin* | rhapsody*)
11584
rhapsody* | darwin1.[012])
11585
allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11588
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11589
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11591
case ${MACOSX_DEPLOYMENT_TARGET} in
11593
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11596
allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11602
archive_cmds_need_lc_CXX=no
11603
hardcode_direct_CXX=no
11604
hardcode_automatic_CXX=yes
11605
hardcode_shlibpath_var_CXX=unsupported
11606
whole_archive_flag_spec_CXX=''
11607
link_all_deplibs_CXX=yes
11609
if test "$GXX" = yes ; then
11610
lt_int_apple_cc_single_mod=no
11611
output_verbose_link_cmd='echo'
11612
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11613
lt_int_apple_cc_single_mod=yes
11615
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11616
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11618
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'
12435
# Check if GNU C++ uses GNU ld as the underlying linker, since the
12436
# archiving commands below assume that GNU ld is being used.
12437
if test "$with_gnu_ld" = yes; then
12438
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12439
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'
12441
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12442
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12444
# If archive_cmds runs LD, not CC, wlarc should be empty
12445
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12446
# investigate it a little bit more. (MM)
12449
# ancient GNU ld didn't support --whole-archive et. al.
12450
if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12451
$GREP 'no-whole-archive' > /dev/null; then
12452
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12454
whole_archive_flag_spec_CXX=
11620
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11621
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11622
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11623
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11625
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11627
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}'
11629
case $cc_basename in
11631
output_verbose_link_cmd='echo'
11632
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'
11633
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11634
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11635
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}'
11636
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}'
12460
# A generic and very simple default shared library creation
12461
# command for GNU C++ for the case where it uses the native
12462
# linker, instead of GNU ld. If possible, this setting should
12463
# overridden to take advantage of the native linker features on
12464
# the platform it is being used on.
12465
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11646
case $cc_basename in
11648
# FIXME: insert proper C++ library support
11652
# Green Hills C++ Compiler
11653
# FIXME: insert proper C++ library support
11657
# FIXME: insert proper C++ library support
11663
# C++ shared libraries reported to be fairly broken before switch to ELF
11667
archive_cmds_need_lc_CXX=no
11669
freebsd* | dragonfly*)
11670
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11677
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11678
hardcode_libdir_separator_CXX=:
11679
export_dynamic_flag_spec_CXX='${wl}-E'
11680
hardcode_direct_CXX=yes
11681
hardcode_minus_L_CXX=yes # Not in the search PATH,
11682
# but as the default
11683
# location of the library.
11685
case $cc_basename in
11687
# FIXME: insert proper C++ library support
11691
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'
11692
12468
# Commands to make compiler produce verbose output that lists
11693
12469
# what "hidden" libraries, object files and flags are used when
11694
12470
# linking a shared library.
11696
# There doesn't appear to be a way to prevent this compiler from
11697
# explicitly linking system object files so we need to strip them
11698
# from the output so that they don't get included in the library
11700
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'
11703
if test "$GXX" = yes; then
11704
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'
12471
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12479
# PORTME: fill in a description of your system's C++ link characteristics
12480
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12481
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11706
12485
# FIXME: insert proper C++ library support
11707
12486
ld_shlibs_CXX=no
11713
if test $with_gnu_ld = no; then
11714
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11715
hardcode_libdir_separator_CXX=:
12489
if test "$host_cpu" = ia64; then
12490
# On IA64, the linker does run time linking by default, so we don't
12491
# have to do anything special.
12492
aix_use_runtimelinking=no
12493
exp_sym_flag='-Bexport'
12496
aix_use_runtimelinking=no
12498
# Test if we are trying to use run time linking or normal
12499
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
12500
# need to do runtime linking.
12501
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12502
for ld_flag in $LDFLAGS; do
12505
aix_use_runtimelinking=yes
12513
exp_sym_flag='-bexport'
12514
no_entry_flag='-bnoentry'
12517
# When large executables or shared objects are built, AIX ld can
12518
# have problems creating the table of contents. If linking a library
12519
# or program results in "error TOC overflow" add -mminimal-toc to
12520
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12521
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12523
archive_cmds_CXX=''
12524
hardcode_direct_CXX=yes
12525
hardcode_direct_absolute_CXX=yes
12526
hardcode_libdir_separator_CXX=':'
12527
link_all_deplibs_CXX=yes
12528
file_list_spec_CXX='${wl}-f,'
12530
if test "$GXX" = yes; then
12531
case $host_os in aix4.[012]|aix4.[012].*)
12532
# We only want to do this on AIX 4.2 and lower, the check
12533
# below for broken collect2 doesn't work under 4.3+
12534
collect2name=`${CC} -print-prog-name=collect2`
12535
if test -f "$collect2name" &&
12536
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12538
# We have reworked collect2
12541
# We have old collect2
12542
hardcode_direct_CXX=unsupported
12543
# It fails to find uninstalled libraries when the uninstalled
12544
# path is not listed in the libpath. Setting hardcode_minus_L
12545
# to unsupported forces relinking
12546
hardcode_minus_L_CXX=yes
12547
hardcode_libdir_flag_spec_CXX='-L$libdir'
12548
hardcode_libdir_separator_CXX=
12551
shared_flag='-shared'
12552
if test "$aix_use_runtimelinking" = yes; then
12553
shared_flag="$shared_flag "'${wl}-G'
12557
if test "$host_cpu" = ia64; then
12558
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12559
# chokes on -Wl,-G. The following line is correct:
12562
if test "$aix_use_runtimelinking" = yes; then
12563
shared_flag='${wl}-G'
12565
shared_flag='${wl}-bM:SRE'
12570
export_dynamic_flag_spec_CXX='${wl}-bexpall'
12571
# It seems that -bexpall does not export symbols beginning with
12572
# underscore (_), so it is better to generate a list of symbols to
12574
always_export_symbols_CXX=yes
12575
if test "$aix_use_runtimelinking" = yes; then
12576
# Warning - without using the other runtime loading flags (-brtl),
12577
# -berok will link without error, but may produce a broken library.
12578
allow_undefined_flag_CXX='-berok'
12579
# Determine the default libpath from the value encoded in an empty
12581
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12582
/* end confdefs.h. */
12592
if ac_fn_cxx_try_link "$LINENO"; then :
12594
lt_aix_libpath_sed='
12595
/Import File Strings/,/^$/ {
12601
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12602
# Check for a 64-bit object if we didn't find anything.
12603
if test -z "$aix_libpath"; then
12604
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12607
rm -f core conftest.err conftest.$ac_objext \
12608
conftest$ac_exeext conftest.$ac_ext
12609
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12611
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12613
archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12615
if test "$host_cpu" = ia64; then
12616
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12617
allow_undefined_flag_CXX="-z nodefs"
12618
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"
12620
# Determine the default libpath from the value encoded in an
12621
# empty executable.
12622
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12623
/* end confdefs.h. */
12633
if ac_fn_cxx_try_link "$LINENO"; then :
12635
lt_aix_libpath_sed='
12636
/Import File Strings/,/^$/ {
12642
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12643
# Check for a 64-bit object if we didn't find anything.
12644
if test -z "$aix_libpath"; then
12645
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12648
rm -f core conftest.err conftest.$ac_objext \
12649
conftest$ac_exeext conftest.$ac_ext
12650
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12652
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12653
# Warning - without using the other run time loading flags,
12654
# -berok will link without error, but may produce a broken library.
12655
no_undefined_flag_CXX=' ${wl}-bernotok'
12656
allow_undefined_flag_CXX=' ${wl}-berok'
12657
# Exported symbols can be pulled into shared objects from archives
12658
whole_archive_flag_spec_CXX='$convenience'
12659
archive_cmds_need_lc_CXX=yes
12660
# This is similar to how AIX traditionally builds its shared
12662
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'
12668
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12669
allow_undefined_flag_CXX=unsupported
12670
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12671
# support --undefined. This deserves some investigation. FIXME
12672
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12679
case $cc_basename in
12681
# FIXME: insert proper C++ library support
12687
cygwin* | mingw* | pw32* | cegcc*)
12688
# _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12689
# as there is no search path for DLLs.
12690
hardcode_libdir_flag_spec_CXX='-L$libdir'
12691
allow_undefined_flag_CXX=unsupported
12692
always_export_symbols_CXX=no
12693
enable_shared_with_static_runtimes_CXX=yes
12695
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12696
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'
12697
# If the export-symbols file already is a .def file (1st line
12698
# is EXPORTS), use it as is; otherwise, prepend...
12699
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12700
cp $export_symbols $output_objdir/$soname.def;
12702
echo EXPORTS > $output_objdir/$soname.def;
12703
cat $export_symbols >> $output_objdir/$soname.def;
12705
$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'
12710
darwin* | rhapsody*)
12713
archive_cmds_need_lc_CXX=no
12714
hardcode_direct_CXX=no
12715
hardcode_automatic_CXX=yes
12716
hardcode_shlibpath_var_CXX=unsupported
12717
whole_archive_flag_spec_CXX=''
12718
link_all_deplibs_CXX=yes
12719
allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12720
case $cc_basename in
12721
ifort*) _lt_dar_can_shared=yes ;;
12722
*) _lt_dar_can_shared=$GCC ;;
12724
if test "$_lt_dar_can_shared" = "yes"; then
12725
output_verbose_link_cmd=echo
12726
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}"
12727
module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12728
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}"
12729
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}"
12730
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12731
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}"
12732
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}"
12742
case $cc_basename in
12744
# FIXME: insert proper C++ library support
12748
# Green Hills C++ Compiler
12749
# FIXME: insert proper C++ library support
12753
# FIXME: insert proper C++ library support
12760
# C++ shared libraries reported to be fairly broken before
12766
archive_cmds_need_lc_CXX=no
12769
freebsd* | dragonfly*)
12770
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12779
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12780
hardcode_libdir_separator_CXX=:
12781
export_dynamic_flag_spec_CXX='${wl}-E'
12782
hardcode_direct_CXX=yes
12783
hardcode_minus_L_CXX=yes # Not in the search PATH,
12784
# but as the default
12785
# location of the library.
12787
case $cc_basename in
12789
# FIXME: insert proper C++ library support
12793
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'
12794
# Commands to make compiler produce verbose output that lists
12795
# what "hidden" libraries, object files and flags are used when
12796
# linking a shared library.
12798
# There doesn't appear to be a way to prevent this compiler from
12799
# explicitly linking system object files so we need to strip them
12800
# from the output so that they don't get included in the library
12802
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12805
if test "$GXX" = yes; then
12806
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'
12808
# FIXME: insert proper C++ library support
12816
if test $with_gnu_ld = no; then
12817
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12818
hardcode_libdir_separator_CXX=:
12824
export_dynamic_flag_spec_CXX='${wl}-E'
12830
hardcode_direct_CXX=no
12831
hardcode_shlibpath_var_CXX=no
12834
hardcode_direct_CXX=yes
12835
hardcode_direct_absolute_CXX=yes
12836
hardcode_minus_L_CXX=yes # Not in the search PATH,
12837
# but as the default
12838
# location of the library.
12842
case $cc_basename in
12844
# FIXME: insert proper C++ library support
12850
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12853
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12856
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12859
# Commands to make compiler produce verbose output that lists
12860
# what "hidden" libraries, object files and flags are used when
12861
# linking a shared library.
12863
# There doesn't appear to be a way to prevent this compiler from
12864
# explicitly linking system object files so we need to strip them
12865
# from the output so that they don't get included in the library
12867
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12870
if test "$GXX" = yes; then
12871
if test $with_gnu_ld = no; then
12874
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12877
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12880
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'
12885
# FIXME: insert proper C++ library support
12893
hardcode_direct_CXX=no
12894
hardcode_shlibpath_var_CXX=no
12895
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11720
12896
export_dynamic_flag_spec_CXX='${wl}-E'
11726
hardcode_direct_CXX=no
12897
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12898
# Instead, shared libraries are loaded at an image base (0x10000000 by
12899
# default) and relocated if they conflict, which is a slow very memory
12900
# consuming and fragmenting process. To avoid this, we pick a random,
12901
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12902
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
12903
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'
12904
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'
12907
case $cc_basename in
12910
archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12912
# Archives containing C++ object files must be created using
12913
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
12914
# necessary to make sure instantiated templates are included
12916
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12919
if test "$GXX" = yes; then
12920
if test "$with_gnu_ld" = no; then
12921
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12923
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
12926
link_all_deplibs_CXX=yes
12929
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12930
hardcode_libdir_separator_CXX=:
12931
inherit_rpath_CXX=yes
12934
linux* | k*bsd*-gnu)
12935
case $cc_basename in
12937
# Kuck and Associates, Inc. (KAI) C++ Compiler
12939
# KCC will only create a shared library if the output file
12940
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12941
# to its proper name (with version) after linking.
12942
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'
12943
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'
12944
# Commands to make compiler produce verbose output that lists
12945
# what "hidden" libraries, object files and flags are used when
12946
# linking a shared library.
12948
# There doesn't appear to be a way to prevent this compiler from
12949
# explicitly linking system object files so we need to strip them
12950
# from the output so that they don't get included in the library
12952
output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12954
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12955
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12957
# Archives containing C++ object files must be created using
12958
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12959
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12964
# version 8.0 and above of icpc choke on multiply defined symbols
12965
# if we add $predep_objects and $postdep_objects, however 7.1 and
12966
# earlier do not add the objects themselves.
12967
case `$CC -V 2>&1` in
12969
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12970
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'
12972
*) # Version 8.0 or newer
12975
ia64*) tmp_idyn=' -i_dynamic';;
12977
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12978
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'
12981
archive_cmds_need_lc_CXX=no
12982
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12983
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12984
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12987
# Portland Group C++ compiler
12989
*pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12990
prelink_cmds_CXX='tpldir=Template.dir~
12992
$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12993
compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12994
old_archive_cmds_CXX='tpldir=Template.dir~
12996
$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12997
$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12999
archive_cmds_CXX='tpldir=Template.dir~
13001
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13002
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13003
archive_expsym_cmds_CXX='tpldir=Template.dir~
13005
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13006
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13008
*) # Version 6 will use weak symbols
13009
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13010
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'
13014
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13015
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13016
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'
13020
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13021
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'
13023
runpath_var=LD_RUN_PATH
13024
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13025
hardcode_libdir_separator_CXX=:
13027
# Commands to make compiler produce verbose output that lists
13028
# what "hidden" libraries, object files and flags are used when
13029
# linking a shared library.
13031
# There doesn't appear to be a way to prevent this compiler from
13032
# explicitly linking system object files so we need to strip them
13033
# from the output so that they don't get included in the library
13035
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13038
# IBM XL 8.0 on PPC, with GNU ld
13039
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13040
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13041
archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13042
if test "x$supports_anon_versioning" = xyes; then
13043
archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13044
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13045
echo "local: *; };" >> $output_objdir/$libname.ver~
13046
$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13050
case `$CC -V 2>&1 | sed 5q` in
13053
no_undefined_flag_CXX=' -zdefs'
13054
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13055
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'
13056
hardcode_libdir_flag_spec_CXX='-R$libdir'
13057
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'
13058
compiler_needs_object_CXX=yes
13060
# Not sure whether something based on
13061
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13063
output_verbose_link_cmd='echo'
13065
# Archives containing C++ object files must be created using
13066
# "CC -xar", where "CC" is the Sun C++ compiler. This is
13067
# necessary to make sure instantiated templates are included
13069
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13077
# FIXME: insert proper C++ library support
13082
# FIXME: insert proper C++ library support
13087
case $cc_basename in
13089
# FIXME: insert proper C++ library support
13093
# FIXME: insert proper C++ library support
13100
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13101
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13103
hardcode_libdir_flag_spec_CXX='-R$libdir'
13104
hardcode_direct_CXX=yes
13105
hardcode_shlibpath_var_CXX=no
13107
# Workaround some broken pre-1.5 toolchains
13108
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13116
# C++ shared libraries are fairly broken
13121
if test -f /usr/libexec/ld.so; then
13122
hardcode_direct_CXX=yes
13123
hardcode_shlibpath_var_CXX=no
13124
hardcode_direct_absolute_CXX=yes
13125
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13126
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13127
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13128
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13129
export_dynamic_flag_spec_CXX='${wl}-E'
13130
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13132
output_verbose_link_cmd=echo
13138
osf3* | osf4* | osf5*)
13139
case $cc_basename in
13141
# Kuck and Associates, Inc. (KAI) C++ Compiler
13143
# KCC will only create a shared library if the output file
13144
# ends with ".so" (or ".sl" for HP-UX), so rename the library
13145
# to its proper name (with version) after linking.
13146
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'
13148
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13149
hardcode_libdir_separator_CXX=:
13151
# Archives containing C++ object files must be created using
13152
# the KAI C++ compiler.
13154
osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13155
*) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13159
# Rational C++ 2.4.1
13160
# FIXME: insert proper C++ library support
13166
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13167
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13168
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13171
allow_undefined_flag_CXX=' -expect_unresolved \*'
13172
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13173
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13174
echo "-hidden">> $lib.exp~
13175
$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
13177
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13181
hardcode_libdir_separator_CXX=:
13183
# Commands to make compiler produce verbose output that lists
13184
# what "hidden" libraries, object files and flags are used when
13185
# linking a shared library.
13187
# There doesn't appear to be a way to prevent this compiler from
13188
# explicitly linking system object files so we need to strip them
13189
# from the output so that they don't get included in the library
13191
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13194
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13195
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13198
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13201
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13205
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13206
hardcode_libdir_separator_CXX=:
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"'
13214
# FIXME: insert proper C++ library support
13222
# FIXME: insert proper C++ library support
13227
case $cc_basename in
13230
# FIXME: insert proper C++ library support
13235
# FIXME: insert proper C++ library support
13239
# FIXME: insert proper C++ library support
13246
case $cc_basename in
13248
# Sun C++ 4.2, 5.x and Centerline C++
13249
archive_cmds_need_lc_CXX=yes
13250
no_undefined_flag_CXX=' -zdefs'
13251
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13252
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13253
$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'
13255
hardcode_libdir_flag_spec_CXX='-R$libdir'
13256
hardcode_shlibpath_var_CXX=no
13258
solaris2.[0-5] | solaris2.[0-5].*) ;;
13260
# The compiler driver will combine and reorder linker options,
13261
# but understands `-z linker_flag'.
13262
# Supported since Solaris 2.6 (maybe 2.5.1?)
13263
whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13266
link_all_deplibs_CXX=yes
13268
output_verbose_link_cmd='echo'
13270
# Archives containing C++ object files must be created using
13271
# "CC -xar", where "CC" is the Sun C++ compiler. This is
13272
# necessary to make sure instantiated templates are included
13274
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13277
# Green Hills C++ Compiler
13278
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13280
# The C++ compiler must be used to create the archive.
13281
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13284
# GNU C++ compiler with Solaris linker
13285
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13286
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13287
if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13288
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13289
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13290
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13292
# Commands to make compiler produce verbose output that lists
13293
# what "hidden" libraries, object files and flags are used when
13294
# linking a shared library.
13295
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13297
# g++ 2.7 appears to require `-G' NOT `-shared' on this
13299
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13300
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13301
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13303
# Commands to make compiler produce verbose output that lists
13304
# what "hidden" libraries, object files and flags are used when
13305
# linking a shared library.
13306
output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13309
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13311
solaris2.[0-5] | solaris2.[0-5].*) ;;
13313
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13321
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13322
no_undefined_flag_CXX='${wl}-z,text'
13323
archive_cmds_need_lc_CXX=no
11727
13324
hardcode_shlibpath_var_CXX=no
11730
hardcode_direct_CXX=yes
11731
hardcode_minus_L_CXX=yes # Not in the search PATH,
11732
# but as the default
11733
# location of the library.
13325
runpath_var='LD_RUN_PATH'
11737
case $cc_basename in
11739
# FIXME: insert proper C++ library support
11745
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11748
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13327
case $cc_basename in
13329
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13330
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11751
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11754
# Commands to make compiler produce verbose output that lists
11755
# what "hidden" libraries, object files and flags are used when
11756
# linking a shared library.
11758
# There doesn't appear to be a way to prevent this compiler from
11759
# explicitly linking system object files so we need to strip them
11760
# from the output so that they don't get included in the library
11762
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'
11765
if test "$GXX" = yes; then
11766
if test $with_gnu_ld = no; then
11769
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11772
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11775
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'
11780
# FIXME: insert proper C++ library support
11787
hardcode_direct_CXX=no
11788
hardcode_shlibpath_var_CXX=no
11789
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11790
export_dynamic_flag_spec_CXX='${wl}-E'
11791
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11792
# Instead, shared libraries are loaded at an image base (0x10000000 by
11793
# default) and relocated if they conflict, which is a slow very memory
11794
# consuming and fragmenting process. To avoid this, we pick a random,
11795
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11796
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
11797
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'
11798
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'
11801
case $cc_basename in
11804
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'
11806
# Archives containing C++ object files must be created using
11807
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
11808
# necessary to make sure instantiated templates are included
11810
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11813
if test "$GXX" = yes; then
11814
if test "$with_gnu_ld" = no; then
11815
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'
11817
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'
11820
link_all_deplibs_CXX=yes
11823
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11824
hardcode_libdir_separator_CXX=:
11826
linux* | k*bsd*-gnu)
11827
case $cc_basename in
11829
# Kuck and Associates, Inc. (KAI) C++ Compiler
11831
# KCC will only create a shared library if the output file
11832
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11833
# to its proper name (with version) after linking.
11834
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'
11835
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'
11836
# Commands to make compiler produce verbose output that lists
11837
# what "hidden" libraries, object files and flags are used when
11838
# linking a shared library.
11840
# There doesn't appear to be a way to prevent this compiler from
11841
# explicitly linking system object files so we need to strip them
11842
# from the output so that they don't get included in the library
11844
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'
11846
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11847
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11849
# Archives containing C++ object files must be created using
11850
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11851
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11856
# version 8.0 and above of icpc choke on multiply defined symbols
11857
# if we add $predep_objects and $postdep_objects, however 7.1 and
11858
# earlier do not add the objects themselves.
11859
case `$CC -V 2>&1` in
11861
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11862
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'
11864
*) # Version 8.0 or newer
11867
ia64*) tmp_idyn=' -i_dynamic';;
11869
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11870
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'
13333
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13334
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13339
sysv5* | sco3.2v5* | sco5v6*)
13340
# Note: We can NOT use -z defs as we might desire, because we do not
13341
# link with -lc, and that would cause any symbols used from libc to
13342
# always be unresolved, which means just about no library would
13343
# ever link correctly. If we're not using GNU ld we use -z text
13344
# though, which does catch some bad symbols but isn't as heavy-handed
13346
no_undefined_flag_CXX='${wl}-z,text'
13347
allow_undefined_flag_CXX='${wl}-z,nodefs'
11873
13348
archive_cmds_need_lc_CXX=no
11874
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11875
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11876
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11879
# Portland Group C++ compiler
11880
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11881
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'
11883
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11884
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11885
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'
11889
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11890
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'
11892
runpath_var=LD_RUN_PATH
11893
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11894
hardcode_libdir_separator_CXX=:
11896
# Commands to make compiler produce verbose output that lists
11897
# what "hidden" libraries, object files and flags are used when
11898
# linking a shared library.
11900
# There doesn't appear to be a way to prevent this compiler from
11901
# explicitly linking system object files so we need to strip them
11902
# from the output so that they don't get included in the library
11904
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'
11907
case `$CC -V 2>&1 | sed 5q` in
11910
no_undefined_flag_CXX=' -zdefs'
11911
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11912
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'
11913
hardcode_libdir_flag_spec_CXX='-R$libdir'
11914
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'
11916
# Not sure whether something based on
11917
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11919
output_verbose_link_cmd='echo'
11921
# Archives containing C++ object files must be created using
11922
# "CC -xar", where "CC" is the Sun C++ compiler. This is
11923
# necessary to make sure instantiated templates are included
11925
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11932
# FIXME: insert proper C++ library support
11936
# FIXME: insert proper C++ library support
11940
case $cc_basename in
11942
# FIXME: insert proper C++ library support
11946
# FIXME: insert proper C++ library support
11952
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11953
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11955
hardcode_libdir_flag_spec_CXX='-R$libdir'
11956
hardcode_direct_CXX=yes
11957
hardcode_shlibpath_var_CXX=no
11959
# Workaround some broken pre-1.5 toolchains
11960
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11963
# C++ shared libraries are fairly broken
11967
if test -f /usr/libexec/ld.so; then
11968
hardcode_direct_CXX=yes
11969
hardcode_shlibpath_var_CXX=no
11970
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11971
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11972
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11973
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11974
export_dynamic_flag_spec_CXX='${wl}-E'
11975
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11977
output_verbose_link_cmd='echo'
11983
case $cc_basename in
11985
# Kuck and Associates, Inc. (KAI) C++ Compiler
11987
# KCC will only create a shared library if the output file
11988
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11989
# to its proper name (with version) after linking.
11990
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'
11992
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11993
hardcode_libdir_separator_CXX=:
11995
# Archives containing C++ object files must be created using
11996
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11997
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12001
# Rational C++ 2.4.1
12002
# FIXME: insert proper C++ library support
12006
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12007
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'
12009
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12010
hardcode_libdir_separator_CXX=:
12012
# Commands to make compiler produce verbose output that lists
12013
# what "hidden" libraries, object files and flags are used when
12014
# linking a shared library.
12016
# There doesn't appear to be a way to prevent this compiler from
12017
# explicitly linking system object files so we need to strip them
12018
# from the output so that they don't get included in the library
12020
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'
12023
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12024
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12025
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'
12027
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12028
hardcode_libdir_separator_CXX=:
12030
# Commands to make compiler produce verbose output that lists
12031
# what "hidden" libraries, object files and flags are used when
12032
# linking a shared library.
12033
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12036
# FIXME: insert proper C++ library support
12043
case $cc_basename in
12045
# Kuck and Associates, Inc. (KAI) C++ Compiler
12047
# KCC will only create a shared library if the output file
12048
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12049
# to its proper name (with version) after linking.
12050
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'
12052
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12053
hardcode_libdir_separator_CXX=:
12055
# Archives containing C++ object files must be created using
12056
# the KAI C++ compiler.
12057
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12060
# Rational C++ 2.4.1
12061
# FIXME: insert proper C++ library support
12065
allow_undefined_flag_CXX=' -expect_unresolved \*'
12066
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'
12067
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12068
echo "-hidden">> $lib.exp~
12069
$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~
12072
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12073
hardcode_libdir_separator_CXX=:
12075
# Commands to make compiler produce verbose output that lists
12076
# what "hidden" libraries, object files and flags are used when
12077
# linking a shared library.
12079
# There doesn't appear to be a way to prevent this compiler from
12080
# explicitly linking system object files so we need to strip them
12081
# from the output so that they don't get included in the library
12083
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'
12086
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12087
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12088
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'
12090
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12091
hardcode_libdir_separator_CXX=:
12093
# Commands to make compiler produce verbose output that lists
12094
# what "hidden" libraries, object files and flags are used when
12095
# linking a shared library.
12096
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12099
# FIXME: insert proper C++ library support
12106
# FIXME: insert proper C++ library support
12110
case $cc_basename in
12113
# FIXME: insert proper C++ library support
12118
# FIXME: insert proper C++ library support
12122
# FIXME: insert proper C++ library support
12128
case $cc_basename in
12130
# Sun C++ 4.2, 5.x and Centerline C++
12131
archive_cmds_need_lc_CXX=yes
12132
no_undefined_flag_CXX=' -zdefs'
12133
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12134
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12135
$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'
12137
hardcode_libdir_flag_spec_CXX='-R$libdir'
12138
13349
hardcode_shlibpath_var_CXX=no
12140
solaris2.[0-5] | solaris2.[0-5].*) ;;
12142
# The compiler driver will combine and reorder linker options,
12143
# but understands `-z linker_flag'.
12144
# Supported since Solaris 2.6 (maybe 2.5.1?)
12145
whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13350
hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13351
hardcode_libdir_separator_CXX=':'
12148
13352
link_all_deplibs_CXX=yes
12150
output_verbose_link_cmd='echo'
12152
# Archives containing C++ object files must be created using
12153
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12154
# necessary to make sure instantiated templates are included
12156
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12159
# Green Hills C++ Compiler
12160
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12162
# The C++ compiler must be used to create the archive.
12163
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12166
# GNU C++ compiler with Solaris linker
12167
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12168
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12169
if $CC --version | grep -v '^2\.7' > /dev/null; then
12170
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12171
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12172
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12174
# Commands to make compiler produce verbose output that lists
12175
# what "hidden" libraries, object files and flags are used when
12176
# linking a shared library.
12177
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12179
# g++ 2.7 appears to require `-G' NOT `-shared' on this
12181
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12182
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12183
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12185
# Commands to make compiler produce verbose output that lists
12186
# what "hidden" libraries, object files and flags are used when
12187
# linking a shared library.
12188
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12191
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12193
solaris2.[0-5] | solaris2.[0-5].*) ;;
13353
export_dynamic_flag_spec_CXX='${wl}-Bexport'
13354
runpath_var='LD_RUN_PATH'
13356
case $cc_basename in
13358
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13359
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12195
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12202
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12203
no_undefined_flag_CXX='${wl}-z,text'
12204
archive_cmds_need_lc_CXX=no
12205
hardcode_shlibpath_var_CXX=no
12206
runpath_var='LD_RUN_PATH'
12208
case $cc_basename in
12210
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12211
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12214
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12215
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12219
sysv5* | sco3.2v5* | sco5v6*)
12220
# Note: We can NOT use -z defs as we might desire, because we do not
12221
# link with -lc, and that would cause any symbols used from libc to
12222
# always be unresolved, which means just about no library would
12223
# ever link correctly. If we're not using GNU ld we use -z text
12224
# though, which does catch some bad symbols but isn't as heavy-handed
12226
# For security reasons, it is highly recommended that you always
12227
# use absolute paths for naming shared libraries, and exclude the
12228
# DT_RUNPATH tag from executables and libraries. But doing so
12229
# requires that you compile everything twice, which is a pain.
12230
# So that behaviour is only enabled if SCOABSPATH is set to a
12231
# non-empty value in the environment. Most likely only useful for
12232
# creating official distributions of packages.
12233
# This is a hack until libtool officially supports absolute path
12234
# names for shared libraries.
12235
no_undefined_flag_CXX='${wl}-z,text'
12236
allow_undefined_flag_CXX='${wl}-z,nodefs'
12237
archive_cmds_need_lc_CXX=no
12238
hardcode_shlibpath_var_CXX=no
12239
hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12240
hardcode_libdir_separator_CXX=':'
12241
link_all_deplibs_CXX=yes
12242
export_dynamic_flag_spec_CXX='${wl}-Bexport'
12243
runpath_var='LD_RUN_PATH'
12245
case $cc_basename in
12247
archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12248
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12251
archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12252
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12257
case $cc_basename in
12259
# NonStop-UX NCC 3.20
12260
# FIXME: insert proper C++ library support
12264
# FIXME: insert proper C++ library support
12270
# FIXME: insert proper C++ library support
12274
# FIXME: insert proper C++ library support
12278
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12279
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12280
test "$ld_shlibs_CXX" = no && can_build_shared=no
12286
## There is no encapsulation within the following macros, do not change
12287
## the running order or otherwise move them around unless you know exactly
12288
## what you are doing...
12290
cat > conftest.$ac_ext <<EOF
13362
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13363
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13369
case $cc_basename in
13371
# NonStop-UX NCC 3.20
13372
# FIXME: insert proper C++ library support
13376
# FIXME: insert proper C++ library support
13383
# FIXME: insert proper C++ library support
13388
# FIXME: insert proper C++ library support
13393
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13394
$as_echo "$ld_shlibs_CXX" >&6; }
13395
test "$ld_shlibs_CXX" = no && can_build_shared=no
13401
## There is no encapsulation within the following macros, do not change
13402
## the running order or otherwise move them around unless you know exactly
13403
## what you are doing...
13404
# Dependencies to place before and after the object being linked:
13405
predep_objects_CXX=
13406
postdep_objects_CXX=
13409
compiler_lib_search_path_CXX=
13411
cat > conftest.$ac_ext <<_LT_EOF
13594
14996
# directories.
13595
14997
hardcode_action_CXX=unsupported
13597
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13598
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13600
if test "$hardcode_action_CXX" = relink; then
13601
# Fast installation is not supported
13602
enable_fast_install=no
13603
elif test "$shlibpath_overrides_runpath" = yes ||
13604
test "$enable_shared" = no; then
13605
# Fast installation is not necessary
13606
enable_fast_install=needless
13610
# The else clause should only fire when bootstrapping the
13611
# libtool distribution, otherwise you forgot to ship ltmain.sh
13612
# with your package, and you will get complaints that there are
13613
# no rules to generate ltmain.sh.
13614
if test -f "$ltmain"; then
13615
# See if we are running on zsh, and set the options which allow our commands through
13616
# without removal of \ escapes.
13617
if test -n "${ZSH_VERSION+set}" ; then
13618
setopt NO_GLOB_SUBST
13620
# Now quote all the things that may contain metacharacters while being
13621
# careful not to overquote the AC_SUBSTed values. We take copies of the
13622
# variables and quote the copies for generation of the libtool script.
13623
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13625
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13626
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13627
deplibs_check_method reload_flag reload_cmds need_locks \
13628
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13629
lt_cv_sys_global_symbol_to_c_name_address \
13630
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13631
old_postinstall_cmds old_postuninstall_cmds \
13635
lt_prog_compiler_wl_CXX \
13636
lt_prog_compiler_pic_CXX \
13637
lt_prog_compiler_static_CXX \
13638
lt_prog_compiler_no_builtin_flag_CXX \
13639
export_dynamic_flag_spec_CXX \
13640
thread_safe_flag_spec_CXX \
13641
whole_archive_flag_spec_CXX \
13642
enable_shared_with_static_runtimes_CXX \
13643
old_archive_cmds_CXX \
13644
old_archive_from_new_cmds_CXX \
13645
predep_objects_CXX \
13646
postdep_objects_CXX \
13649
compiler_lib_search_path_CXX \
13651
archive_expsym_cmds_CXX \
13652
postinstall_cmds_CXX \
13653
postuninstall_cmds_CXX \
13654
old_archive_from_expsyms_cmds_CXX \
13655
allow_undefined_flag_CXX \
13656
no_undefined_flag_CXX \
13657
export_symbols_cmds_CXX \
13658
hardcode_libdir_flag_spec_CXX \
13659
hardcode_libdir_flag_spec_ld_CXX \
13660
hardcode_libdir_separator_CXX \
13661
hardcode_automatic_CXX \
13663
module_expsym_cmds_CXX \
13664
lt_cv_prog_compiler_c_o_CXX \
13665
fix_srcfile_path_CXX \
13666
exclude_expsyms_CXX \
13667
include_expsyms_CXX; do
13670
old_archive_cmds_CXX | \
13671
old_archive_from_new_cmds_CXX | \
13672
archive_cmds_CXX | \
13673
archive_expsym_cmds_CXX | \
13674
module_cmds_CXX | \
13675
module_expsym_cmds_CXX | \
13676
old_archive_from_expsyms_cmds_CXX | \
13677
export_symbols_cmds_CXX | \
13678
extract_expsyms_cmds | reload_cmds | finish_cmds | \
13679
postinstall_cmds | postuninstall_cmds | \
13680
old_postinstall_cmds | old_postuninstall_cmds | \
13681
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13682
# Double-quote double-evaled strings.
13683
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13686
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13692
*'\$0 --fallback-echo"')
13693
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13699
cat <<__EOF__ >> "$cfgfile"
13700
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13702
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13704
# Shell to use when invoking shell scripts.
13707
# Whether or not to build shared libraries.
13708
build_libtool_libs=$enable_shared
13710
# Whether or not to build static libraries.
13711
build_old_libs=$enable_static
13713
# Whether or not to add -lc for building shared libraries.
13714
build_libtool_need_lc=$archive_cmds_need_lc_CXX
13716
# Whether or not to disallow shared libs when runtime libs are static
13717
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13719
# Whether or not to optimize for fast installation.
13720
fast_install=$enable_fast_install
13723
host_alias=$host_alias
13727
# The build system.
13728
build_alias=$build_alias
13732
# An echo program that does not interpret backslashes.
13737
AR_FLAGS=$lt_AR_FLAGS
13742
# LTCC compiler flags.
13743
LTCFLAGS=$lt_LTCFLAGS
13745
# A language-specific compiler.
13746
CC=$lt_compiler_CXX
13748
# Is the compiler the GNU C compiler?
13754
# The linker used to build libraries.
13757
# Whether we need hard or soft links.
13760
# A BSD-compatible nm program.
13763
# A symbol stripping program
13766
# Used to examine libraries when file_magic_cmd begins "file"
13767
MAGIC_CMD=$MAGIC_CMD
13769
# Used on cygwin: DLL creation program.
13772
# Used on cygwin: object dumper.
13775
# Used on cygwin: assembler.
13778
# The name of the directory that contains temporary libtool files.
13781
# How to create reloadable object files.
13782
reload_flag=$lt_reload_flag
13783
reload_cmds=$lt_reload_cmds
13785
# How to pass a linker flag through the compiler.
13786
wl=$lt_lt_prog_compiler_wl_CXX
13788
# Object file suffix (normally "o").
13789
objext="$ac_objext"
13791
# Old archive suffix (normally "a").
13794
# Shared library suffix (normally ".so").
13795
shrext_cmds='$shrext_cmds'
13797
# Executable file suffix (normally "").
13800
# Additional compiler flags for building library objects.
13801
pic_flag=$lt_lt_prog_compiler_pic_CXX
13804
# What is the maximum length of a command?
13805
max_cmd_len=$lt_cv_sys_max_cmd_len
13807
# Does compiler simultaneously support -c and -o options?
13808
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13810
# Must we lock files when doing compilation?
13811
need_locks=$lt_need_locks
13813
# Do we need the lib prefix for modules?
13814
need_lib_prefix=$need_lib_prefix
13816
# Do we need a version for libraries?
13817
need_version=$need_version
13819
# Whether dlopen is supported.
13820
dlopen_support=$enable_dlopen
13822
# Whether dlopen of programs is supported.
13823
dlopen_self=$enable_dlopen_self
13825
# Whether dlopen of statically linked programs is supported.
13826
dlopen_self_static=$enable_dlopen_self_static
13828
# Compiler flag to prevent dynamic linking.
13829
link_static_flag=$lt_lt_prog_compiler_static_CXX
13831
# Compiler flag to turn off builtin functions.
13832
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13834
# Compiler flag to allow reflexive dlopens.
13835
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13837
# Compiler flag to generate shared objects directly from archives.
13838
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13840
# Compiler flag to generate thread-safe objects.
13841
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13843
# Library versioning type.
13844
version_type=$version_type
13846
# Format of library name prefix.
13847
libname_spec=$lt_libname_spec
13849
# List of archive names. First name is the real one, the rest are links.
13850
# The last name is the one that the linker finds with -lNAME.
13851
library_names_spec=$lt_library_names_spec
13853
# The coded name of the library, if different from the real name.
13854
soname_spec=$lt_soname_spec
13856
# Commands used to build and install an old-style archive.
13858
old_archive_cmds=$lt_old_archive_cmds_CXX
13859
old_postinstall_cmds=$lt_old_postinstall_cmds
13860
old_postuninstall_cmds=$lt_old_postuninstall_cmds
13862
# Create an old-style archive from a shared archive.
13863
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13865
# Create a temporary old-style archive to link instead of a shared archive.
13866
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13868
# Commands used to build and install a shared archive.
13869
archive_cmds=$lt_archive_cmds_CXX
13870
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13871
postinstall_cmds=$lt_postinstall_cmds
13872
postuninstall_cmds=$lt_postuninstall_cmds
13874
# Commands used to build a loadable module (assumed same as above if empty)
13875
module_cmds=$lt_module_cmds_CXX
13876
module_expsym_cmds=$lt_module_expsym_cmds_CXX
13878
# Commands to strip libraries.
13879
old_striplib=$lt_old_striplib
13880
striplib=$lt_striplib
13882
# Dependencies to place before the objects being linked to create a
13884
predep_objects=$lt_predep_objects_CXX
13886
# Dependencies to place after the objects being linked to create a
13888
postdep_objects=$lt_postdep_objects_CXX
13890
# Dependencies to place before the objects being linked to create a
13892
predeps=$lt_predeps_CXX
13894
# Dependencies to place after the objects being linked to create a
13896
postdeps=$lt_postdeps_CXX
13898
# The library search path used internally by the compiler when linking
13899
# a shared library.
13900
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13902
# Method to check whether dependent libraries are shared objects.
13903
deplibs_check_method=$lt_deplibs_check_method
13905
# Command to use when deplibs_check_method == file_magic.
13906
file_magic_cmd=$lt_file_magic_cmd
13908
# Flag that allows shared libraries with undefined symbols to be built.
13909
allow_undefined_flag=$lt_allow_undefined_flag_CXX
13911
# Flag that forces no undefined symbols.
13912
no_undefined_flag=$lt_no_undefined_flag_CXX
13914
# Commands used to finish a libtool library installation in a directory.
13915
finish_cmds=$lt_finish_cmds
13917
# Same as above, but a single script fragment to be evaled but not shown.
13918
finish_eval=$lt_finish_eval
13920
# Take the output of nm and produce a listing of raw symbols and C names.
13921
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13923
# Transform the output of nm in a proper C declaration
13924
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13926
# Transform the output of nm in a C name address pair
13927
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13929
# This is the shared library runtime path variable.
13930
runpath_var=$runpath_var
13932
# This is the shared library path variable.
13933
shlibpath_var=$shlibpath_var
13935
# Is shlibpath searched before the hard-coded library search path?
13936
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13938
# How to hardcode a shared library path into an executable.
13939
hardcode_action=$hardcode_action_CXX
13941
# Whether we should hardcode library paths into libraries.
13942
hardcode_into_libs=$hardcode_into_libs
13944
# Flag to hardcode \$libdir into a binary during linking.
13945
# This must work even if \$libdir does not exist.
13946
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13948
# If ld is used when linking, flag to hardcode \$libdir into
13949
# a binary during linking. This must work even if \$libdir does
13951
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13953
# Whether we need a single -rpath flag with a separated argument.
13954
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13956
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13957
# resulting binary.
13958
hardcode_direct=$hardcode_direct_CXX
13960
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13961
# resulting binary.
13962
hardcode_minus_L=$hardcode_minus_L_CXX
13964
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13965
# the resulting binary.
13966
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13968
# Set to yes if building a shared library automatically hardcodes DIR into the library
13969
# and all subsequent libraries and executables linked against it.
13970
hardcode_automatic=$hardcode_automatic_CXX
13972
# Variables whose values should be saved in libtool wrapper scripts and
13973
# restored at relink time.
13974
variables_saved_for_relink="$variables_saved_for_relink"
13976
# Whether libtool must link a program against all its dependency libraries.
13977
link_all_deplibs=$link_all_deplibs_CXX
13979
# Compile-time system search path for libraries
13980
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13982
# Run-time system search path for libraries
13983
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13985
# Fix the shell variable \$srcfile for the compiler.
13986
fix_srcfile_path=$lt_fix_srcfile_path
13988
# Set to yes if exported symbols are required.
13989
always_export_symbols=$always_export_symbols_CXX
13991
# The commands to list exported symbols.
13992
export_symbols_cmds=$lt_export_symbols_cmds_CXX
13994
# The commands to extract the exported symbol list from a shared archive.
13995
extract_expsyms_cmds=$lt_extract_expsyms_cmds
13997
# Symbols that should not be listed in the preloaded symbols.
13998
exclude_expsyms=$lt_exclude_expsyms_CXX
14000
# Symbols that must always be exported.
14001
include_expsyms=$lt_include_expsyms_CXX
14003
# ### END LIBTOOL TAG CONFIG: $tagname
14009
# If there is no Makefile yet, we rely on a make rule to execute
14010
# `config.status --recheck' to rerun these tests and create the
14011
# libtool script then.
14012
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14013
if test -f "$ltmain_in"; then
14014
test -f Makefile && make "$ltmain"
14020
ac_cpp='$CPP $CPPFLAGS'
14021
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14022
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14023
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14029
with_gnu_ldcxx=$with_gnu_ld
14030
with_gnu_ld=$lt_save_with_gnu_ld
14031
lt_cv_path_LDCXX=$lt_cv_path_LD
14032
lt_cv_path_LD=$lt_save_path_LD
14033
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14034
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14042
if test -n "$F77" && test "X$F77" != "Xno"; then
14045
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14046
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14047
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14050
archive_cmds_need_lc_F77=no
14051
allow_undefined_flag_F77=
14052
always_export_symbols_F77=no
14053
archive_expsym_cmds_F77=
14054
export_dynamic_flag_spec_F77=
14055
hardcode_direct_F77=no
14056
hardcode_libdir_flag_spec_F77=
14057
hardcode_libdir_flag_spec_ld_F77=
14058
hardcode_libdir_separator_F77=
14059
hardcode_minus_L_F77=no
14060
hardcode_automatic_F77=no
14062
module_expsym_cmds_F77=
14063
link_all_deplibs_F77=unknown
14064
old_archive_cmds_F77=$old_archive_cmds
14065
no_undefined_flag_F77=
14066
whole_archive_flag_spec_F77=
14067
enable_shared_with_static_runtimes_F77=no
14069
# Source file extension for f77 test sources.
14072
# Object file extension for compiled f77 test sources.
14076
# Code to be used in simple compile tests
14077
lt_simple_compile_test_code="\
14083
# Code to be used in simple link tests
14084
lt_simple_link_test_code="\
14089
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14091
# If no C compiler was specified, use CC.
14094
# If no C compiler flags were specified, use CFLAGS.
14095
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14097
# Allow CC to be a program name with arguments.
14101
# save warnings/boilerplate of simple test code
14102
ac_outfile=conftest.$ac_objext
14103
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14104
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14105
_lt_compiler_boilerplate=`cat conftest.err`
14108
ac_outfile=conftest.$ac_objext
14109
echo "$lt_simple_link_test_code" >conftest.$ac_ext
14110
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14111
_lt_linker_boilerplate=`cat conftest.err`
14115
# Allow CC to be a program name with arguments.
14120
for cc_temp in $compiler""; do
14122
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14123
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14128
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14131
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14132
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14133
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14134
echo "${ECHO_T}$can_build_shared" >&6; }
14136
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14137
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14138
test "$can_build_shared" = "no" && enable_shared=no
14140
# On AIX, shared libraries and static libraries use the same namespace, and
14141
# are all built from PIC.
14144
test "$enable_shared" = yes && enable_static=no
14145
if test -n "$RANLIB"; then
14146
archive_cmds="$archive_cmds~\$RANLIB \$lib"
14147
postinstall_cmds='$RANLIB $lib'
14151
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14152
test "$enable_shared" = yes && enable_static=no
14156
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14157
echo "${ECHO_T}$enable_shared" >&6; }
14159
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14160
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14161
# Make sure either enable_shared or enable_static is yes.
14162
test "$enable_shared" = yes || enable_static=yes
14163
{ echo "$as_me:$LINENO: result: $enable_static" >&5
14164
echo "${ECHO_T}$enable_static" >&6; }
14169
lt_prog_compiler_wl_F77=
14170
lt_prog_compiler_pic_F77=
14171
lt_prog_compiler_static_F77=
14173
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14174
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14176
if test "$GCC" = yes; then
14177
lt_prog_compiler_wl_F77='-Wl,'
14178
lt_prog_compiler_static_F77='-static'
14182
# All AIX code is PIC.
14183
if test "$host_cpu" = ia64; then
14184
# AIX 5 now supports IA64 processor
14185
lt_prog_compiler_static_F77='-Bstatic'
14190
# FIXME: we need at least 68020 code to build shared libraries, but
14191
# adding the `-m68020' flag to GCC prevents building anything better,
14193
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14196
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14197
# PIC is the default for these OSes.
14200
mingw* | cygwin* | pw32* | os2*)
14201
# This hack is so that the source file can tell whether it is being
14202
# built for inclusion in a dll (and should export symbols for example).
14203
# Although the cygwin gcc ignores -fPIC, still need this for old-style
14204
# (--disable-auto-import) libraries
14205
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14208
darwin* | rhapsody*)
14209
# PIC is the default on this platform
14210
# Common symbols not allowed in MH_DYLIB files
14211
lt_prog_compiler_pic_F77='-fno-common'
14215
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
14216
# Instead, we relocate shared libraries at runtime.
14220
# Just because we use GCC doesn't mean we suddenly get shared libraries
14221
# on systems that don't support them.
14222
lt_prog_compiler_can_build_shared_F77=no
14227
if test -d /usr/nec; then
14228
lt_prog_compiler_pic_F77=-Kconform_pic
14233
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14234
# not for PA HP-UX.
14240
lt_prog_compiler_pic_F77='-fPIC'
14246
lt_prog_compiler_pic_F77='-fPIC'
14250
# PORTME Check for flag to pass linker flags through the system compiler.
14253
lt_prog_compiler_wl_F77='-Wl,'
14254
if test "$host_cpu" = ia64; then
14255
# AIX 5 now supports IA64 processor
14256
lt_prog_compiler_static_F77='-Bstatic'
14258
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14262
# PIC is the default on this platform
14263
# Common symbols not allowed in MH_DYLIB files
14264
case $cc_basename in
14266
lt_prog_compiler_pic_F77='-qnocommon'
14267
lt_prog_compiler_wl_F77='-Wl,'
14272
mingw* | cygwin* | pw32* | os2*)
14273
# This hack is so that the source file can tell whether it is being
14274
# built for inclusion in a dll (and should export symbols for example).
14275
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14278
hpux9* | hpux10* | hpux11*)
14279
lt_prog_compiler_wl_F77='-Wl,'
14280
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14281
# not for PA HP-UX.
14287
lt_prog_compiler_pic_F77='+Z'
14290
# Is there a better lt_prog_compiler_static that works with the bundled CC?
14291
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14294
irix5* | irix6* | nonstopux*)
14295
lt_prog_compiler_wl_F77='-Wl,'
14296
# PIC (with -KPIC) is the default.
14297
lt_prog_compiler_static_F77='-non_shared'
14301
lt_prog_compiler_pic_F77='-KPIC'
14302
lt_prog_compiler_static_F77='-Bstatic'
14305
linux* | k*bsd*-gnu)
14306
case $cc_basename in
14308
lt_prog_compiler_wl_F77='-Wl,'
14309
lt_prog_compiler_pic_F77='-KPIC'
14310
lt_prog_compiler_static_F77='-static'
14312
pgcc* | pgf77* | pgf90* | pgf95*)
14313
# Portland Group compilers (*not* the Pentium gcc compiler,
14314
# which looks to be a dead project)
14315
lt_prog_compiler_wl_F77='-Wl,'
14316
lt_prog_compiler_pic_F77='-fpic'
14317
lt_prog_compiler_static_F77='-Bstatic'
14320
lt_prog_compiler_wl_F77='-Wl,'
14321
# All Alpha code is PIC.
14322
lt_prog_compiler_static_F77='-non_shared'
14325
lt_prog_compiler_wl_F77='-lopt='
14328
case `$CC -V 2>&1 | sed 5q` in
14331
lt_prog_compiler_pic_F77='-KPIC'
14332
lt_prog_compiler_static_F77='-Bstatic'
14333
lt_prog_compiler_wl_F77='-Wl,'
14336
# Sun Fortran 8.3 passes all unrecognized flags to the linker
14337
lt_prog_compiler_pic_F77='-KPIC'
14338
lt_prog_compiler_static_F77='-Bstatic'
14339
lt_prog_compiler_wl_F77=''
14346
osf3* | osf4* | osf5*)
14347
lt_prog_compiler_wl_F77='-Wl,'
14348
# All OSF/1 code is PIC.
14349
lt_prog_compiler_static_F77='-non_shared'
14353
lt_prog_compiler_static_F77='-non_shared'
14357
lt_prog_compiler_pic_F77='-KPIC'
14358
lt_prog_compiler_static_F77='-Bstatic'
14359
case $cc_basename in
14360
f77* | f90* | f95*)
14361
lt_prog_compiler_wl_F77='-Qoption ld ';;
14363
lt_prog_compiler_wl_F77='-Wl,';;
14368
lt_prog_compiler_wl_F77='-Qoption ld '
14369
lt_prog_compiler_pic_F77='-PIC'
14370
lt_prog_compiler_static_F77='-Bstatic'
14373
sysv4 | sysv4.2uw2* | sysv4.3*)
14374
lt_prog_compiler_wl_F77='-Wl,'
14375
lt_prog_compiler_pic_F77='-KPIC'
14376
lt_prog_compiler_static_F77='-Bstatic'
14380
if test -d /usr/nec ;then
14381
lt_prog_compiler_pic_F77='-Kconform_pic'
14382
lt_prog_compiler_static_F77='-Bstatic'
14386
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14387
lt_prog_compiler_wl_F77='-Wl,'
14388
lt_prog_compiler_pic_F77='-KPIC'
14389
lt_prog_compiler_static_F77='-Bstatic'
14393
lt_prog_compiler_wl_F77='-Wl,'
14394
lt_prog_compiler_can_build_shared_F77=no
14398
lt_prog_compiler_pic_F77='-pic'
14399
lt_prog_compiler_static_F77='-Bstatic'
14403
lt_prog_compiler_can_build_shared_F77=no
14408
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14409
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14412
# Check to make sure the PIC flag actually works.
14414
if test -n "$lt_prog_compiler_pic_F77"; then
14416
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14417
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14418
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14419
echo $ECHO_N "(cached) $ECHO_C" >&6
14421
lt_prog_compiler_pic_works_F77=no
14422
ac_outfile=conftest.$ac_objext
14423
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14424
lt_compiler_flag="$lt_prog_compiler_pic_F77"
14425
# Insert the option either (1) after the last *FLAGS variable, or
14426
# (2) before a word containing "conftest.", or (3) at the end.
14427
# Note that $ac_compile itself does not contain backslashes and begins
14428
# with a dollar sign (not a hyphen), so the echo should work correctly.
14429
# The option is referenced via a variable to avoid confusing sed.
14430
lt_compile=`echo "$ac_compile" | $SED \
14431
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14432
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14433
-e 's:$: $lt_compiler_flag:'`
14434
(eval echo "\"\$as_me:14434: $lt_compile\"" >&5)
14435
(eval "$lt_compile" 2>conftest.err)
14437
cat conftest.err >&5
14438
echo "$as_me:14438: \$? = $ac_status" >&5
14439
if (exit $ac_status) && test -s "$ac_outfile"; then
14440
# The compiler can only warn and ignore the option if not recognized
14441
# So say no if there are warnings other than the usual output.
14442
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14443
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14444
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14445
lt_prog_compiler_pic_works_F77=yes
14451
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14452
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14454
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14455
case $lt_prog_compiler_pic_F77 in
14457
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14460
lt_prog_compiler_pic_F77=
14461
lt_prog_compiler_can_build_shared_F77=no
14466
# For platforms which do not support PIC, -DPIC is meaningless:
14468
lt_prog_compiler_pic_F77=
14471
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14476
# Check to make sure the static flag actually works.
14478
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14479
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14480
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14481
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14482
echo $ECHO_N "(cached) $ECHO_C" >&6
14484
lt_prog_compiler_static_works_F77=no
14485
save_LDFLAGS="$LDFLAGS"
14486
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14487
echo "$lt_simple_link_test_code" > conftest.$ac_ext
14488
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14489
# The linker can only warn and ignore the option if not recognized
14490
# So say no if there are warnings
14491
if test -s conftest.err; then
14492
# Append any errors to the config.log.
14493
cat conftest.err 1>&5
14494
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14495
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14496
if diff conftest.exp conftest.er2 >/dev/null; then
14497
lt_prog_compiler_static_works_F77=yes
14500
lt_prog_compiler_static_works_F77=yes
14504
LDFLAGS="$save_LDFLAGS"
14507
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14508
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14510
if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14513
lt_prog_compiler_static_F77=
14517
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14518
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14519
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14520
echo $ECHO_N "(cached) $ECHO_C" >&6
14522
lt_cv_prog_compiler_c_o_F77=no
14523
$rm -r conftest 2>/dev/null
14527
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14529
lt_compiler_flag="-o out/conftest2.$ac_objext"
14530
# Insert the option either (1) after the last *FLAGS variable, or
14531
# (2) before a word containing "conftest.", or (3) at the end.
14532
# Note that $ac_compile itself does not contain backslashes and begins
14533
# with a dollar sign (not a hyphen), so the echo should work correctly.
14534
lt_compile=`echo "$ac_compile" | $SED \
14535
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14536
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14537
-e 's:$: $lt_compiler_flag:'`
14538
(eval echo "\"\$as_me:14538: $lt_compile\"" >&5)
14539
(eval "$lt_compile" 2>out/conftest.err)
14541
cat out/conftest.err >&5
14542
echo "$as_me:14542: \$? = $ac_status" >&5
14543
if (exit $ac_status) && test -s out/conftest2.$ac_objext
14545
# The compiler can only warn and ignore the option if not recognized
14546
# So say no if there are warnings
14547
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14548
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14549
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14550
lt_cv_prog_compiler_c_o_F77=yes
14555
# SGI C++ compiler will create directory out/ii_files/ for
14556
# template instantiation
14557
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14558
$rm out/* && rmdir out
14564
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14565
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14568
hard_links="nottested"
14569
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14570
# do not overwrite the value of need_locks provided by the user
14571
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14572
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14575
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14577
ln conftest.a conftest.b 2>&5 || hard_links=no
14578
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14579
{ echo "$as_me:$LINENO: result: $hard_links" >&5
14580
echo "${ECHO_T}$hard_links" >&6; }
14581
if test "$hard_links" = no; then
14582
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14583
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14590
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14591
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14594
allow_undefined_flag_F77=
14595
enable_shared_with_static_runtimes_F77=no
14597
archive_expsym_cmds_F77=
14598
old_archive_From_new_cmds_F77=
14599
old_archive_from_expsyms_cmds_F77=
14600
export_dynamic_flag_spec_F77=
14601
whole_archive_flag_spec_F77=
14602
thread_safe_flag_spec_F77=
14603
hardcode_libdir_flag_spec_F77=
14604
hardcode_libdir_flag_spec_ld_F77=
14605
hardcode_libdir_separator_F77=
14606
hardcode_direct_F77=no
14607
hardcode_minus_L_F77=no
14608
hardcode_shlibpath_var_F77=unsupported
14609
link_all_deplibs_F77=unknown
14610
hardcode_automatic_F77=no
14612
module_expsym_cmds_F77=
14613
always_export_symbols_F77=no
14614
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14615
# include_expsyms should be a list of space-separated symbols to be *always*
14616
# included in the symbol list
14617
include_expsyms_F77=
14618
# exclude_expsyms can be an extended regexp of symbols to exclude
14619
# it will be wrapped by ` (' and `)$', so one must not match beginning or
14620
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14621
# as well as any symbol that contains `d'.
14622
exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14623
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14624
# platforms (ab)use it in PIC code, but their linkers get confused if
14625
# the symbol is explicitly referenced. Since portable code cannot
14626
# rely on this symbol name, it's probably fine to never include it in
14627
# preloaded symbol tables.
14628
extract_expsyms_cmds=
14629
# Just being paranoid about ensuring that cc_basename is set.
14630
for cc_temp in $compiler""; do
14632
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14633
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14638
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14641
cygwin* | mingw* | pw32*)
14642
# FIXME: the MSVC++ port hasn't been tested in a loooong time
14643
# When not using gcc, we currently assume that we are using
14644
# Microsoft Visual C++.
14645
if test "$GCC" != yes; then
14650
# we just hope/assume this is gcc and not c89 (= MSVC++)
14659
if test "$with_gnu_ld" = yes; then
14660
# If archive_cmds runs LD, not CC, wlarc should be empty
14663
# Set some defaults for GNU ld with shared library support. These
14664
# are reset later if shared libraries are not supported. Putting them
14665
# here allows them to be overridden if necessary.
14666
runpath_var=LD_RUN_PATH
14667
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14668
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14669
# ancient GNU ld didn't support --whole-archive et. al.
14670
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14671
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14673
whole_archive_flag_spec_F77=
14675
supports_anon_versioning=no
14676
case `$LD -v 2>/dev/null` in
14677
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14678
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14679
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14680
*\ 2.11.*) ;; # other 2.11 versions
14681
*) supports_anon_versioning=yes ;;
14684
# See if GNU ld supports shared libraries.
14686
aix3* | aix4* | aix5*)
14687
# On AIX/PPC, the GNU linker is very broken
14688
if test "$host_cpu" != ia64; then
14692
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14693
*** to be unable to reliably create shared libraries on AIX.
14694
*** Therefore, libtool is disabling shared libraries support. If you
14695
*** really care for shared libraries, you may want to modify your PATH
14696
*** so that a non-GNU linker is found, and then restart.
14703
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)'
14704
hardcode_libdir_flag_spec_F77='-L$libdir'
14705
hardcode_minus_L_F77=yes
14707
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14708
# that the semantics of dynamic libraries on AmigaOS, at least up
14709
# to version 4, is to share data among multiple programs linked
14710
# with the same dynamic library. Since this doesn't match the
14711
# behavior of shared libraries on other platforms, we can't use
14717
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14718
allow_undefined_flag_F77=unsupported
14719
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14720
# support --undefined. This deserves some investigation. FIXME
14721
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14727
cygwin* | mingw* | pw32*)
14728
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14729
# as there is no search path for DLLs.
14730
hardcode_libdir_flag_spec_F77='-L$libdir'
14731
allow_undefined_flag_F77=unsupported
14732
always_export_symbols_F77=no
14733
enable_shared_with_static_runtimes_F77=yes
14734
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14736
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14737
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14738
# If the export-symbols file already is a .def file (1st line
14739
# is EXPORTS), use it as is; otherwise, prepend...
14740
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14741
cp $export_symbols $output_objdir/$soname.def;
14743
echo EXPORTS > $output_objdir/$soname.def;
14744
cat $export_symbols >> $output_objdir/$soname.def;
14746
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14753
hardcode_direct_F77=no
14754
hardcode_shlibpath_var_F77=no
14755
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14756
export_dynamic_flag_spec_F77='${wl}-E'
14757
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14758
# Instead, shared libraries are loaded at an image base (0x10000000 by
14759
# default) and relocated if they conflict, which is a slow very memory
14760
# consuming and fragmenting process. To avoid this, we pick a random,
14761
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14762
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
14763
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'
14764
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'
14767
gnu* | linux* | k*bsd*-gnu)
14768
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14770
case $cc_basename,$host_cpu in
14771
pgcc*) # Portland Group C compiler
14772
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'
14773
tmp_addflag=' $pic_flag'
14775
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14776
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'
14777
tmp_addflag=' $pic_flag -Mnomain' ;;
14778
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14779
tmp_addflag=' -i_dynamic' ;;
14780
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14781
tmp_addflag=' -i_dynamic -nofor_main' ;;
14782
ifc* | ifort*) # Intel Fortran compiler
14783
tmp_addflag=' -nofor_main' ;;
14785
case `$CC -V 2>&1 | sed 5q` in
14786
*Sun\ C*) # Sun C 5.9
14787
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'
14788
tmp_sharedflag='-G' ;;
14789
*Sun\ F*) # Sun Fortran 8.3
14790
tmp_sharedflag='-G' ;;
14792
tmp_sharedflag='-shared' ;;
14794
archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14796
if test $supports_anon_versioning = yes; then
14797
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14798
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14799
$echo "local: *; };" >> $output_objdir/$libname.ver~
14800
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14808
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14809
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14812
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14813
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14818
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14822
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14823
*** create shared libraries on Solaris systems. Therefore, libtool
14824
*** is disabling shared libraries support. We urge you to upgrade GNU
14825
*** binutils to release 2.9.1 or newer. Another option is to modify
14826
*** your PATH or compiler configuration so that the native linker is
14827
*** used, and then restart.
14830
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14831
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14832
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14838
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14839
case `$LD -v 2>&1` in
14840
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14844
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14845
*** reliably create shared libraries on SCO systems. Therefore, libtool
14846
*** is disabling shared libraries support. We urge you to upgrade GNU
14847
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14848
*** your PATH or compiler configuration so that the native linker is
14849
*** used, and then restart.
14854
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14855
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14856
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14857
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14866
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14868
hardcode_direct_F77=yes
14869
hardcode_shlibpath_var_F77=no
14873
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14874
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14875
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14882
if test "$ld_shlibs_F77" = no; then
14884
hardcode_libdir_flag_spec_F77=
14885
export_dynamic_flag_spec_F77=
14886
whole_archive_flag_spec_F77=
14889
# PORTME fill in a description of your system's linker (not GNU ld)
14892
allow_undefined_flag_F77=unsupported
14893
always_export_symbols_F77=yes
14894
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'
14895
# Note: this linker hardcodes the directories in LIBPATH if there
14896
# are no directories specified by -L.
14897
hardcode_minus_L_F77=yes
14898
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14899
# Neither direct hardcoding nor static linking is supported with a
14901
hardcode_direct_F77=unsupported
14906
if test "$host_cpu" = ia64; then
14907
# On IA64, the linker does run time linking by default, so we don't
14908
# have to do anything special.
14909
aix_use_runtimelinking=no
14910
exp_sym_flag='-Bexport'
14913
# If we're using GNU nm, then we don't want the "-C" option.
14914
# -C means demangle to AIX nm, but means don't demangle with GNU nm
14915
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14916
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'
14918
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'
14920
aix_use_runtimelinking=no
14922
# Test if we are trying to use run time linking or normal
14923
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14924
# need to do runtime linking.
14925
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14926
for ld_flag in $LDFLAGS; do
14927
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14928
aix_use_runtimelinking=yes
14935
exp_sym_flag='-bexport'
14936
no_entry_flag='-bnoentry'
14939
# When large executables or shared objects are built, AIX ld can
14940
# have problems creating the table of contents. If linking a library
14941
# or program results in "error TOC overflow" add -mminimal-toc to
14942
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14943
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14945
archive_cmds_F77=''
14946
hardcode_direct_F77=yes
14947
hardcode_libdir_separator_F77=':'
14948
link_all_deplibs_F77=yes
14950
if test "$GCC" = yes; then
14951
case $host_os in aix4.[012]|aix4.[012].*)
14952
# We only want to do this on AIX 4.2 and lower, the check
14953
# below for broken collect2 doesn't work under 4.3+
14954
collect2name=`${CC} -print-prog-name=collect2`
14955
if test -f "$collect2name" && \
14956
strings "$collect2name" | grep resolve_lib_name >/dev/null
14958
# We have reworked collect2
14961
# We have old collect2
14962
hardcode_direct_F77=unsupported
14963
# It fails to find uninstalled libraries when the uninstalled
14964
# path is not listed in the libpath. Setting hardcode_minus_L
14965
# to unsupported forces relinking
14966
hardcode_minus_L_F77=yes
14967
hardcode_libdir_flag_spec_F77='-L$libdir'
14968
hardcode_libdir_separator_F77=
14972
shared_flag='-shared'
14973
if test "$aix_use_runtimelinking" = yes; then
14974
shared_flag="$shared_flag "'${wl}-G'
14978
if test "$host_cpu" = ia64; then
14979
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14980
# chokes on -Wl,-G. The following line is correct:
14983
if test "$aix_use_runtimelinking" = yes; then
14984
shared_flag='${wl}-G'
14986
shared_flag='${wl}-bM:SRE'
14991
# It seems that -bexpall does not export symbols beginning with
14992
# underscore (_), so it is better to generate a list of symbols to export.
14993
always_export_symbols_F77=yes
14994
if test "$aix_use_runtimelinking" = yes; then
14995
# Warning - without using the other runtime loading flags (-brtl),
14996
# -berok will link without error, but may produce a broken library.
14997
allow_undefined_flag_F77='-berok'
14998
# Determine the default libpath from the value encoded in an empty executable.
14999
cat >conftest.$ac_ext <<_ACEOF
15004
rm -f conftest.$ac_objext conftest$ac_exeext
15005
if { (ac_try="$ac_link"
15006
case "(($ac_try" in
15007
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15008
*) ac_try_echo=$ac_try;;
15010
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15011
(eval "$ac_link") 2>conftest.er1
15013
grep -v '^ *+' conftest.er1 >conftest.err
15015
cat conftest.err >&5
15016
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15017
(exit $ac_status); } && {
15018
test -z "$ac_f77_werror_flag" ||
15019
test ! -s conftest.err
15020
} && test -s conftest$ac_exeext &&
15021
$as_test_x conftest$ac_exeext; then
15023
lt_aix_libpath_sed='
15024
/Import File Strings/,/^$/ {
15030
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15031
# Check for a 64-bit object if we didn't find anything.
15032
if test -z "$aix_libpath"; then
15033
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15036
echo "$as_me: failed program was:" >&5
15037
sed 's/^/| /' conftest.$ac_ext >&5
15042
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15043
conftest$ac_exeext conftest.$ac_ext
15044
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15046
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15047
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"
15049
if test "$host_cpu" = ia64; then
15050
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15051
allow_undefined_flag_F77="-z nodefs"
15052
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"
15054
# Determine the default libpath from the value encoded in an empty executable.
15055
cat >conftest.$ac_ext <<_ACEOF
15060
rm -f conftest.$ac_objext conftest$ac_exeext
15061
if { (ac_try="$ac_link"
15062
case "(($ac_try" in
15063
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15064
*) ac_try_echo=$ac_try;;
15066
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15067
(eval "$ac_link") 2>conftest.er1
15069
grep -v '^ *+' conftest.er1 >conftest.err
15071
cat conftest.err >&5
15072
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15073
(exit $ac_status); } && {
15074
test -z "$ac_f77_werror_flag" ||
15075
test ! -s conftest.err
15076
} && test -s conftest$ac_exeext &&
15077
$as_test_x conftest$ac_exeext; then
15079
lt_aix_libpath_sed='
15080
/Import File Strings/,/^$/ {
15086
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15087
# Check for a 64-bit object if we didn't find anything.
15088
if test -z "$aix_libpath"; then
15089
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15092
echo "$as_me: failed program was:" >&5
15093
sed 's/^/| /' conftest.$ac_ext >&5
15098
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15099
conftest$ac_exeext conftest.$ac_ext
15100
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15102
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15103
# Warning - without using the other run time loading flags,
15104
# -berok will link without error, but may produce a broken library.
15105
no_undefined_flag_F77=' ${wl}-bernotok'
15106
allow_undefined_flag_F77=' ${wl}-berok'
15107
# Exported symbols can be pulled into shared objects from archives
15108
whole_archive_flag_spec_F77='$convenience'
15109
archive_cmds_need_lc_F77=yes
15110
# This is similar to how AIX traditionally builds its shared libraries.
15111
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'
15117
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)'
15118
hardcode_libdir_flag_spec_F77='-L$libdir'
15119
hardcode_minus_L_F77=yes
15120
# see comment about different semantics on the GNU ld section
15125
export_dynamic_flag_spec_F77=-rdynamic
15128
cygwin* | mingw* | pw32*)
15129
# When not using gcc, we currently assume that we are using
15130
# Microsoft Visual C++.
15131
# hardcode_libdir_flag_spec is actually meaningless, as there is
15132
# no search path for DLLs.
15133
hardcode_libdir_flag_spec_F77=' '
15134
allow_undefined_flag_F77=unsupported
15135
# Tell ltmain to make .lib files, not .a files.
15137
# Tell ltmain to make .dll files, not .so files.
15139
# FIXME: Setting linknames here is a bad hack.
15140
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15141
# The linker will automatically build a .lib file if we build a DLL.
15142
old_archive_From_new_cmds_F77='true'
15143
# FIXME: Should let the user specify the lib program.
15144
old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15145
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15146
enable_shared_with_static_runtimes_F77=yes
15149
darwin* | rhapsody*)
15151
rhapsody* | darwin1.[012])
15152
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15155
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15156
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15158
case ${MACOSX_DEPLOYMENT_TARGET} in
15160
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15163
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15169
archive_cmds_need_lc_F77=no
15170
hardcode_direct_F77=no
15171
hardcode_automatic_F77=yes
15172
hardcode_shlibpath_var_F77=unsupported
15173
whole_archive_flag_spec_F77=''
15174
link_all_deplibs_F77=yes
15175
if test "$GCC" = yes ; then
15176
output_verbose_link_cmd='echo'
15177
archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15178
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15179
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15180
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15181
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}'
15183
case $cc_basename in
15185
output_verbose_link_cmd='echo'
15186
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15187
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15188
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15189
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}'
15190
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}'
15200
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15201
hardcode_libdir_flag_spec_F77='-L$libdir'
15202
hardcode_shlibpath_var_F77=no
15209
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15210
# support. Future versions do this automatically, but an explicit c++rt0.o
15211
# does not break anything, and helps significantly (at the cost of a little
15214
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15215
hardcode_libdir_flag_spec_F77='-R$libdir'
15216
hardcode_direct_F77=yes
15217
hardcode_shlibpath_var_F77=no
15220
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
15222
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15223
hardcode_direct_F77=yes
15224
hardcode_minus_L_F77=yes
15225
hardcode_shlibpath_var_F77=no
15228
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15229
freebsd* | dragonfly*)
15230
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15231
hardcode_libdir_flag_spec_F77='-R$libdir'
15232
hardcode_direct_F77=yes
15233
hardcode_shlibpath_var_F77=no
15237
if test "$GCC" = yes; then
15238
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'
15240
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'
15242
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15243
hardcode_libdir_separator_F77=:
15244
hardcode_direct_F77=yes
15246
# hardcode_minus_L: Not really in the search PATH,
15247
# but as the default location of the library.
15248
hardcode_minus_L_F77=yes
15249
export_dynamic_flag_spec_F77='${wl}-E'
15253
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15254
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15256
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15258
if test "$with_gnu_ld" = no; then
15259
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15260
hardcode_libdir_separator_F77=:
15262
hardcode_direct_F77=yes
15263
export_dynamic_flag_spec_F77='${wl}-E'
15265
# hardcode_minus_L: Not really in the search PATH,
15266
# but as the default location of the library.
15267
hardcode_minus_L_F77=yes
15272
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15275
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15278
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15281
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15287
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15290
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15293
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15297
if test "$with_gnu_ld" = no; then
15298
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15299
hardcode_libdir_separator_F77=:
15303
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15304
hardcode_direct_F77=no
15305
hardcode_shlibpath_var_F77=no
15308
hardcode_direct_F77=yes
15309
export_dynamic_flag_spec_F77='${wl}-E'
15311
# hardcode_minus_L: Not really in the search PATH,
15312
# but as the default location of the library.
15313
hardcode_minus_L_F77=yes
15319
irix5* | irix6* | nonstopux*)
15320
if test "$GCC" = yes; then
15321
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'
15323
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'
15324
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15326
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15327
hardcode_libdir_separator_F77=:
15328
link_all_deplibs_F77=yes
15332
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15333
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15335
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15337
hardcode_libdir_flag_spec_F77='-R$libdir'
15338
hardcode_direct_F77=yes
15339
hardcode_shlibpath_var_F77=no
15343
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15344
hardcode_direct_F77=yes
15345
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15346
hardcode_libdir_separator_F77=:
15347
hardcode_shlibpath_var_F77=no
15351
if test -f /usr/libexec/ld.so; then
15352
hardcode_direct_F77=yes
15353
hardcode_shlibpath_var_F77=no
15354
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15355
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15356
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15357
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15358
export_dynamic_flag_spec_F77='${wl}-E'
15361
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15362
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15363
hardcode_libdir_flag_spec_F77='-R$libdir'
15366
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15367
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15377
hardcode_libdir_flag_spec_F77='-L$libdir'
15378
hardcode_minus_L_F77=yes
15379
allow_undefined_flag_F77=unsupported
15380
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'
15381
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15385
if test "$GCC" = yes; then
15386
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15387
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'
15389
allow_undefined_flag_F77=' -expect_unresolved \*'
15390
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'
15392
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15393
hardcode_libdir_separator_F77=:
15396
osf4* | osf5*) # as osf3* with the addition of -msym flag
15397
if test "$GCC" = yes; then
15398
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15399
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'
15400
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15402
allow_undefined_flag_F77=' -expect_unresolved \*'
15403
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'
15404
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~
15405
$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'
15407
# Both c and cxx compiler support -rpath directly
15408
hardcode_libdir_flag_spec_F77='-rpath $libdir'
15410
hardcode_libdir_separator_F77=:
15414
no_undefined_flag_F77=' -z text'
15415
if test "$GCC" = yes; then
15417
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15418
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15419
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15422
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15423
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15424
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15426
hardcode_libdir_flag_spec_F77='-R$libdir'
15427
hardcode_shlibpath_var_F77=no
15429
solaris2.[0-5] | solaris2.[0-5].*) ;;
15431
# The compiler driver will combine and reorder linker options,
15432
# but understands `-z linker_flag'. GCC discards it without `$wl',
15433
# but is careful enough not to reorder.
15434
# Supported since Solaris 2.6 (maybe 2.5.1?)
15435
if test "$GCC" = yes; then
15436
whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15438
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15442
link_all_deplibs_F77=yes
15446
if test "x$host_vendor" = xsequent; then
15447
# Use $CC to link under sequent, because it throws in some extra .o
15448
# files that make .init and .fini sections work.
15449
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15451
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15453
hardcode_libdir_flag_spec_F77='-L$libdir'
15454
hardcode_direct_F77=yes
15455
hardcode_minus_L_F77=yes
15456
hardcode_shlibpath_var_F77=no
15460
case $host_vendor in
15462
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15463
hardcode_direct_F77=yes # is this really true???
15466
## LD is ld it makes a PLAMLIB
15467
## CC just makes a GrossModule.
15468
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15469
reload_cmds_F77='$CC -r -o $output$reload_objs'
15470
hardcode_direct_F77=no
15473
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15474
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15477
runpath_var='LD_RUN_PATH'
15478
hardcode_shlibpath_var_F77=no
15482
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15483
hardcode_shlibpath_var_F77=no
15484
export_dynamic_flag_spec_F77='-Bexport'
15488
if test -d /usr/nec; then
15489
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15490
hardcode_shlibpath_var_F77=no
15491
runpath_var=LD_RUN_PATH
15492
hardcode_runpath_var=yes
15497
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15498
no_undefined_flag_F77='${wl}-z,text'
15499
archive_cmds_need_lc_F77=no
15500
hardcode_shlibpath_var_F77=no
15501
runpath_var='LD_RUN_PATH'
15503
if test "$GCC" = yes; then
15504
archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15505
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15507
archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15508
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15512
sysv5* | sco3.2v5* | sco5v6*)
15513
# Note: We can NOT use -z defs as we might desire, because we do not
15514
# link with -lc, and that would cause any symbols used from libc to
15515
# always be unresolved, which means just about no library would
15516
# ever link correctly. If we're not using GNU ld we use -z text
15517
# though, which does catch some bad symbols but isn't as heavy-handed
15519
no_undefined_flag_F77='${wl}-z,text'
15520
allow_undefined_flag_F77='${wl}-z,nodefs'
15521
archive_cmds_need_lc_F77=no
15522
hardcode_shlibpath_var_F77=no
15523
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15524
hardcode_libdir_separator_F77=':'
15525
link_all_deplibs_F77=yes
15526
export_dynamic_flag_spec_F77='${wl}-Bexport'
15527
runpath_var='LD_RUN_PATH'
15529
if test "$GCC" = yes; then
15530
archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15531
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15533
archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15534
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15539
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15540
hardcode_libdir_flag_spec_F77='-L$libdir'
15541
hardcode_shlibpath_var_F77=no
15550
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15551
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15552
test "$ld_shlibs_F77" = no && can_build_shared=no
15555
# Do we need to explicitly link libc?
15557
case "x$archive_cmds_need_lc_F77" in
15559
# Assume -lc should be added
15560
archive_cmds_need_lc_F77=yes
15562
if test "$enable_shared" = yes && test "$GCC" = yes; then
15563
case $archive_cmds_F77 in
15565
# FIXME: we may have to deal with multi-command sequences.
15568
# Test whether the compiler implicitly links with -lc since on some
15569
# systems, -lgcc has to come before -lc. If gcc already passes -lc
15570
# to ld, don't add -lc before -lgcc.
15571
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15572
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15574
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15576
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15577
(eval $ac_compile) 2>&5
15579
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15580
(exit $ac_status); } 2>conftest.err; then
15583
libobjs=conftest.$ac_objext
15585
wl=$lt_prog_compiler_wl_F77
15586
pic_flag=$lt_prog_compiler_pic_F77
15592
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15593
allow_undefined_flag_F77=
15594
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15595
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15597
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15598
(exit $ac_status); }
15600
archive_cmds_need_lc_F77=no
15602
archive_cmds_need_lc_F77=yes
15604
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15606
cat conftest.err 1>&5
15609
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15610
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15617
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15618
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15619
library_names_spec=
15620
libname_spec='lib$name'
15624
postuninstall_cmds=
15628
shlibpath_overrides_runpath=unknown
15630
dynamic_linker="$host_os ld.so"
15631
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15633
need_lib_prefix=unknown
15634
hardcode_into_libs=no
15636
# when you set need_version to no, make sure it does not cause -set_version
15637
# flags to be left without arguments
15638
need_version=unknown
15643
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15644
shlibpath_var=LIBPATH
15646
# AIX 3 has no versioning support, so we append a major version to the name.
15647
soname_spec='${libname}${release}${shared_ext}$major'
15654
hardcode_into_libs=yes
15655
if test "$host_cpu" = ia64; then
15656
# AIX 5 supports IA64
15657
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15658
shlibpath_var=LD_LIBRARY_PATH
15660
# With GCC up to 2.95.x, collect2 would create an import file
15661
# for dependence libraries. The import file would start with
15662
# the line `#! .'. This would cause the generated library to
15663
# depend on `.', always an invalid library. This was fixed in
15664
# development snapshots of GCC prior to 3.0.
15666
aix4 | aix4.[01] | aix4.[01].*)
15667
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15669
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15672
can_build_shared=no
15676
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15677
# soname into executable. Probably we can add versioning support to
15678
# collect2, so additional links can be useful in future.
15679
if test "$aix_use_runtimelinking" = yes; then
15680
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
15681
# instead of lib<name>.a to let people know that these are not
15682
# typical AIX shared libraries.
15683
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15685
# We preserve .a as extension for shared libraries through AIX4.2
15686
# and later when we are not doing run time linking.
15687
library_names_spec='${libname}${release}.a $libname.a'
15688
soname_spec='${libname}${release}${shared_ext}$major'
15690
shlibpath_var=LIBPATH
15695
library_names_spec='$libname.ixlibrary $libname.a'
15696
# Create ${libname}_ixlibrary.a entries in /sys/libs.
15697
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'
15701
library_names_spec='${libname}${shared_ext}'
15702
dynamic_linker="$host_os ld.so"
15703
shlibpath_var=LIBRARY_PATH
15709
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15710
soname_spec='${libname}${release}${shared_ext}$major'
15711
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15712
shlibpath_var=LD_LIBRARY_PATH
15713
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15714
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15715
# the default ld.so.conf also contains /usr/contrib/lib and
15716
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15717
# libtool to hard-code these into programs
15720
cygwin* | mingw* | pw32*)
15721
version_type=windows
15726
case $GCC,$host_os in
15727
yes,cygwin* | yes,mingw* | yes,pw32*)
15728
library_names_spec='$libname.dll.a'
15729
# DLL is installed to $(libdir)/../bin by postinstall_cmds
15730
postinstall_cmds='base_file=`basename \${file}`~
15731
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15732
dldir=$destdir/`dirname \$dlpath`~
15733
test -d \$dldir || mkdir -p \$dldir~
15734
$install_prog $dir/$dlname \$dldir/$dlname~
15735
chmod a+x \$dldir/$dlname'
15736
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15737
dlpath=$dir/\$dldll~
15739
shlibpath_overrides_runpath=yes
15743
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
15744
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15745
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15748
# MinGW DLLs use traditional 'lib' prefix
15749
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15750
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15751
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15752
# It is most probably a Windows format PATH printed by
15753
# mingw gcc, but we are running on Cygwin. Gcc prints its search
15754
# path with ; separators, and with drive letters. We can handle the
15755
# drive letters (cygwin fileutils understands them), so leave them,
15756
# especially as we might pass files found there to a mingw objdump,
15757
# which wouldn't understand a cygwinified path. Ahh.
15758
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15760
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15764
# pw32 DLLs use 'pw' prefix rather than 'lib'
15765
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15771
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15774
dynamic_linker='Win32 ld.exe'
15775
# FIXME: first we should search . and the directory the executable is in
15779
darwin* | rhapsody*)
15780
dynamic_linker="$host_os dyld"
15781
version_type=darwin
15784
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15785
soname_spec='${libname}${release}${major}$shared_ext'
15786
shlibpath_overrides_runpath=yes
15787
shlibpath_var=DYLD_LIBRARY_PATH
15788
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15790
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15797
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15798
soname_spec='${libname}${release}${shared_ext}$major'
15799
shlibpath_var=LD_LIBRARY_PATH
15806
freebsd* | dragonfly*)
15807
# DragonFly does not have aout. When/if they implement a new
15808
# versioning mechanism, adjust this.
15809
if test -x /usr/bin/objformat; then
15810
objformat=`/usr/bin/objformat`
15813
freebsd[123]*) objformat=aout ;;
15814
*) objformat=elf ;;
15817
version_type=freebsd-$objformat
15818
case $version_type in
15820
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15825
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15829
shlibpath_var=LD_LIBRARY_PATH
15832
shlibpath_overrides_runpath=yes
15834
freebsd3.[01]* | freebsdelf3.[01]*)
15835
shlibpath_overrides_runpath=yes
15836
hardcode_into_libs=yes
15838
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15839
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15840
shlibpath_overrides_runpath=no
15841
hardcode_into_libs=yes
15843
*) # from 4.6 on, and DragonFly
15844
shlibpath_overrides_runpath=yes
15845
hardcode_into_libs=yes
15854
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15855
soname_spec='${libname}${release}${shared_ext}$major'
15856
shlibpath_var=LD_LIBRARY_PATH
15857
hardcode_into_libs=yes
15860
hpux9* | hpux10* | hpux11*)
15861
# Give a soname corresponding to the major version so that dld.sl refuses to
15862
# link against other versions.
15869
hardcode_into_libs=yes
15870
dynamic_linker="$host_os dld.so"
15871
shlibpath_var=LD_LIBRARY_PATH
15872
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15873
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15874
soname_spec='${libname}${release}${shared_ext}$major'
15875
if test "X$HPUX_IA64_MODE" = X32; then
15876
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15878
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15880
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15884
hardcode_into_libs=yes
15885
dynamic_linker="$host_os dld.sl"
15886
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15887
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15888
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15889
soname_spec='${libname}${release}${shared_ext}$major'
15890
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15891
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15895
dynamic_linker="$host_os dld.sl"
15896
shlibpath_var=SHLIB_PATH
15897
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15898
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15899
soname_spec='${libname}${release}${shared_ext}$major'
15902
# HP-UX runs *really* slowly unless shared libraries are mode 555.
15903
postinstall_cmds='chmod 555 $lib'
15910
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15911
soname_spec='${libname}${release}${shared_ext}$major'
15912
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15913
shlibpath_var=LD_LIBRARY_PATH
15914
shlibpath_overrides_runpath=no
15915
hardcode_into_libs=yes
15918
irix5* | irix6* | nonstopux*)
15920
nonstopux*) version_type=nonstopux ;;
15922
if test "$lt_cv_prog_gnu_ld" = yes; then
15930
soname_spec='${libname}${release}${shared_ext}$major'
15931
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15933
irix5* | nonstopux*)
15934
libsuff= shlibsuff=
15937
case $LD in # libtool.m4 will add one of these switches to LD
15938
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15939
libsuff= shlibsuff= libmagic=32-bit;;
15940
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15941
libsuff=32 shlibsuff=N32 libmagic=N32;;
15942
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15943
libsuff=64 shlibsuff=64 libmagic=64-bit;;
15944
*) libsuff= shlibsuff= libmagic=never-match;;
15948
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15949
shlibpath_overrides_runpath=no
15950
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15951
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15952
hardcode_into_libs=yes
15955
# No shared lib support for Linux oldld, aout, or coff.
15956
linux*oldld* | linux*aout* | linux*coff*)
15960
# This must be Linux ELF.
15961
linux* | k*bsd*-gnu)
15965
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15966
soname_spec='${libname}${release}${shared_ext}$major'
15967
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15968
shlibpath_var=LD_LIBRARY_PATH
15969
shlibpath_overrides_runpath=no
15970
# This implies no fast_install, which is unacceptable.
15971
# Some rework will be needed to allow for fast_install
15972
# before this can be enabled.
15973
hardcode_into_libs=yes
15975
# Append ld.so.conf contents to the search path
15976
if test -f /etc/ld.so.conf; then
15977
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' ' '`
15978
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15981
# We used to test for /lib/ld.so.1 and disable shared libraries on
15982
# powerpc, because MkLinux only supported shared libraries with the
15983
# GNU dynamic linker. Since this was broken with cross compilers,
15984
# most powerpc-linux boxes support dynamic linking these days and
15985
# people can always --disable-shared, the test was removed, and we
15986
# assume the GNU/Linux dynamic linker is in use.
15987
dynamic_linker='GNU/Linux ld.so'
15994
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15995
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15996
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15997
dynamic_linker='NetBSD (a.out) ld.so'
15999
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16000
soname_spec='${libname}${release}${shared_ext}$major'
16001
dynamic_linker='NetBSD ld.elf_so'
16003
shlibpath_var=LD_LIBRARY_PATH
16004
shlibpath_overrides_runpath=yes
16005
hardcode_into_libs=yes
16010
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16011
shlibpath_var=LD_LIBRARY_PATH
16012
shlibpath_overrides_runpath=yes
16019
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16020
soname_spec='${libname}${release}${shared_ext}$major'
16021
shlibpath_var=LD_LIBRARY_PATH
16022
shlibpath_overrides_runpath=yes
16027
sys_lib_dlsearch_path_spec="/usr/lib"
16029
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16031
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16032
*) need_version=no ;;
16034
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16035
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16036
shlibpath_var=LD_LIBRARY_PATH
16037
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16039
openbsd2.[89] | openbsd2.[89].*)
16040
shlibpath_overrides_runpath=no
16043
shlibpath_overrides_runpath=yes
16047
shlibpath_overrides_runpath=yes
16052
libname_spec='$name'
16055
library_names_spec='$libname${shared_ext} $libname.a'
16056
dynamic_linker='OS/2 ld.exe'
16057
shlibpath_var=LIBPATH
16060
osf3* | osf4* | osf5*)
16064
soname_spec='${libname}${release}${shared_ext}$major'
16065
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16066
shlibpath_var=LD_LIBRARY_PATH
16067
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16068
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16079
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16080
soname_spec='${libname}${release}${shared_ext}$major'
16081
shlibpath_var=LD_LIBRARY_PATH
16082
shlibpath_overrides_runpath=yes
16083
hardcode_into_libs=yes
16084
# ldd complains unless libraries are executable
16085
postinstall_cmds='chmod +x $lib'
16090
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16091
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16092
shlibpath_var=LD_LIBRARY_PATH
16093
shlibpath_overrides_runpath=yes
16094
if test "$with_gnu_ld" = yes; then
16102
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16103
soname_spec='${libname}${release}${shared_ext}$major'
16104
shlibpath_var=LD_LIBRARY_PATH
16105
case $host_vendor in
16107
shlibpath_overrides_runpath=no
16109
export_dynamic_flag_spec='${wl}-Blargedynsym'
16110
runpath_var=LD_RUN_PATH
16118
shlibpath_overrides_runpath=no
16119
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16125
if test -d /usr/nec ;then
16127
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16128
soname_spec='$libname${shared_ext}.$major'
16129
shlibpath_var=LD_LIBRARY_PATH
16133
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16134
version_type=freebsd-elf
16137
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16138
soname_spec='${libname}${release}${shared_ext}$major'
16139
shlibpath_var=LD_LIBRARY_PATH
16140
hardcode_into_libs=yes
16141
if test "$with_gnu_ld" = yes; then
16142
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16143
shlibpath_overrides_runpath=no
16145
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16146
shlibpath_overrides_runpath=yes
16149
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16153
sys_lib_dlsearch_path_spec='/usr/lib'
16158
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16159
soname_spec='${libname}${release}${shared_ext}$major'
16160
shlibpath_var=LD_LIBRARY_PATH
16167
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16168
echo "${ECHO_T}$dynamic_linker" >&6; }
16169
test "$dynamic_linker" = no && can_build_shared=no
16171
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16172
if test "$GCC" = yes; then
16173
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16176
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16177
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16178
hardcode_action_F77=
16179
if test -n "$hardcode_libdir_flag_spec_F77" || \
16180
test -n "$runpath_var_F77" || \
16181
test "X$hardcode_automatic_F77" = "Xyes" ; then
16183
# We can hardcode non-existant directories.
16184
if test "$hardcode_direct_F77" != no &&
16185
# If the only mechanism to avoid hardcoding is shlibpath_var, we
16186
# have to relink, otherwise we might link with an installed library
16187
# when we should be linking with a yet-to-be-installed one
16188
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16189
test "$hardcode_minus_L_F77" != no; then
16190
# Linking always hardcodes the temporary library directory.
16191
hardcode_action_F77=relink
16193
# We can link without hardcoding, and we can hardcode nonexisting dirs.
16194
hardcode_action_F77=immediate
16197
# We cannot hardcode anything, or else we can only hardcode existing
16199
hardcode_action_F77=unsupported
16201
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16202
echo "${ECHO_T}$hardcode_action_F77" >&6; }
16204
if test "$hardcode_action_F77" = relink; then
16205
# Fast installation is not supported
16206
enable_fast_install=no
16207
elif test "$shlibpath_overrides_runpath" = yes ||
16208
test "$enable_shared" = no; then
16209
# Fast installation is not necessary
16210
enable_fast_install=needless
16214
# The else clause should only fire when bootstrapping the
16215
# libtool distribution, otherwise you forgot to ship ltmain.sh
16216
# with your package, and you will get complaints that there are
16217
# no rules to generate ltmain.sh.
16218
if test -f "$ltmain"; then
16219
# See if we are running on zsh, and set the options which allow our commands through
16220
# without removal of \ escapes.
16221
if test -n "${ZSH_VERSION+set}" ; then
16222
setopt NO_GLOB_SUBST
16224
# Now quote all the things that may contain metacharacters while being
16225
# careful not to overquote the AC_SUBSTed values. We take copies of the
16226
# variables and quote the copies for generation of the libtool script.
16227
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16229
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16230
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16231
deplibs_check_method reload_flag reload_cmds need_locks \
16232
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16233
lt_cv_sys_global_symbol_to_c_name_address \
16234
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16235
old_postinstall_cmds old_postuninstall_cmds \
16239
lt_prog_compiler_wl_F77 \
16240
lt_prog_compiler_pic_F77 \
16241
lt_prog_compiler_static_F77 \
16242
lt_prog_compiler_no_builtin_flag_F77 \
16243
export_dynamic_flag_spec_F77 \
16244
thread_safe_flag_spec_F77 \
16245
whole_archive_flag_spec_F77 \
16246
enable_shared_with_static_runtimes_F77 \
16247
old_archive_cmds_F77 \
16248
old_archive_from_new_cmds_F77 \
16249
predep_objects_F77 \
16250
postdep_objects_F77 \
16253
compiler_lib_search_path_F77 \
16255
archive_expsym_cmds_F77 \
16256
postinstall_cmds_F77 \
16257
postuninstall_cmds_F77 \
16258
old_archive_from_expsyms_cmds_F77 \
16259
allow_undefined_flag_F77 \
16260
no_undefined_flag_F77 \
16261
export_symbols_cmds_F77 \
16262
hardcode_libdir_flag_spec_F77 \
16263
hardcode_libdir_flag_spec_ld_F77 \
16264
hardcode_libdir_separator_F77 \
16265
hardcode_automatic_F77 \
16267
module_expsym_cmds_F77 \
16268
lt_cv_prog_compiler_c_o_F77 \
16269
fix_srcfile_path_F77 \
16270
exclude_expsyms_F77 \
16271
include_expsyms_F77; do
16274
old_archive_cmds_F77 | \
16275
old_archive_from_new_cmds_F77 | \
16276
archive_cmds_F77 | \
16277
archive_expsym_cmds_F77 | \
16278
module_cmds_F77 | \
16279
module_expsym_cmds_F77 | \
16280
old_archive_from_expsyms_cmds_F77 | \
16281
export_symbols_cmds_F77 | \
16282
extract_expsyms_cmds | reload_cmds | finish_cmds | \
16283
postinstall_cmds | postuninstall_cmds | \
16284
old_postinstall_cmds | old_postuninstall_cmds | \
16285
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16286
# Double-quote double-evaled strings.
16287
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16290
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16296
*'\$0 --fallback-echo"')
16297
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16303
cat <<__EOF__ >> "$cfgfile"
16304
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16306
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16308
# Shell to use when invoking shell scripts.
16311
# Whether or not to build shared libraries.
16312
build_libtool_libs=$enable_shared
16314
# Whether or not to build static libraries.
16315
build_old_libs=$enable_static
16317
# Whether or not to add -lc for building shared libraries.
16318
build_libtool_need_lc=$archive_cmds_need_lc_F77
16320
# Whether or not to disallow shared libs when runtime libs are static
16321
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16323
# Whether or not to optimize for fast installation.
16324
fast_install=$enable_fast_install
16327
host_alias=$host_alias
16331
# The build system.
16332
build_alias=$build_alias
16336
# An echo program that does not interpret backslashes.
16341
AR_FLAGS=$lt_AR_FLAGS
16346
# LTCC compiler flags.
16347
LTCFLAGS=$lt_LTCFLAGS
16349
# A language-specific compiler.
16350
CC=$lt_compiler_F77
16352
# Is the compiler the GNU C compiler?
16358
# The linker used to build libraries.
16361
# Whether we need hard or soft links.
16364
# A BSD-compatible nm program.
16367
# A symbol stripping program
16370
# Used to examine libraries when file_magic_cmd begins "file"
16371
MAGIC_CMD=$MAGIC_CMD
16373
# Used on cygwin: DLL creation program.
16376
# Used on cygwin: object dumper.
16379
# Used on cygwin: assembler.
16382
# The name of the directory that contains temporary libtool files.
16385
# How to create reloadable object files.
16386
reload_flag=$lt_reload_flag
16387
reload_cmds=$lt_reload_cmds
16389
# How to pass a linker flag through the compiler.
16390
wl=$lt_lt_prog_compiler_wl_F77
16392
# Object file suffix (normally "o").
16393
objext="$ac_objext"
16395
# Old archive suffix (normally "a").
16398
# Shared library suffix (normally ".so").
16399
shrext_cmds='$shrext_cmds'
16401
# Executable file suffix (normally "").
16404
# Additional compiler flags for building library objects.
16405
pic_flag=$lt_lt_prog_compiler_pic_F77
16408
# What is the maximum length of a command?
16409
max_cmd_len=$lt_cv_sys_max_cmd_len
16411
# Does compiler simultaneously support -c and -o options?
16412
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16414
# Must we lock files when doing compilation?
16415
need_locks=$lt_need_locks
16417
# Do we need the lib prefix for modules?
16418
need_lib_prefix=$need_lib_prefix
16420
# Do we need a version for libraries?
16421
need_version=$need_version
16423
# Whether dlopen is supported.
16424
dlopen_support=$enable_dlopen
16426
# Whether dlopen of programs is supported.
16427
dlopen_self=$enable_dlopen_self
16429
# Whether dlopen of statically linked programs is supported.
16430
dlopen_self_static=$enable_dlopen_self_static
16432
# Compiler flag to prevent dynamic linking.
16433
link_static_flag=$lt_lt_prog_compiler_static_F77
16435
# Compiler flag to turn off builtin functions.
16436
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16438
# Compiler flag to allow reflexive dlopens.
16439
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16441
# Compiler flag to generate shared objects directly from archives.
16442
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16444
# Compiler flag to generate thread-safe objects.
16445
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16447
# Library versioning type.
16448
version_type=$version_type
16450
# Format of library name prefix.
16451
libname_spec=$lt_libname_spec
16453
# List of archive names. First name is the real one, the rest are links.
16454
# The last name is the one that the linker finds with -lNAME.
16455
library_names_spec=$lt_library_names_spec
16457
# The coded name of the library, if different from the real name.
16458
soname_spec=$lt_soname_spec
16460
# Commands used to build and install an old-style archive.
16462
old_archive_cmds=$lt_old_archive_cmds_F77
16463
old_postinstall_cmds=$lt_old_postinstall_cmds
16464
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16466
# Create an old-style archive from a shared archive.
16467
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16469
# Create a temporary old-style archive to link instead of a shared archive.
16470
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16472
# Commands used to build and install a shared archive.
16473
archive_cmds=$lt_archive_cmds_F77
16474
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16475
postinstall_cmds=$lt_postinstall_cmds
16476
postuninstall_cmds=$lt_postuninstall_cmds
16478
# Commands used to build a loadable module (assumed same as above if empty)
16479
module_cmds=$lt_module_cmds_F77
16480
module_expsym_cmds=$lt_module_expsym_cmds_F77
16482
# Commands to strip libraries.
16483
old_striplib=$lt_old_striplib
16484
striplib=$lt_striplib
16486
# Dependencies to place before the objects being linked to create a
16488
predep_objects=$lt_predep_objects_F77
16490
# Dependencies to place after the objects being linked to create a
16492
postdep_objects=$lt_postdep_objects_F77
16494
# Dependencies to place before the objects being linked to create a
16496
predeps=$lt_predeps_F77
16498
# Dependencies to place after the objects being linked to create a
16500
postdeps=$lt_postdeps_F77
16502
# The library search path used internally by the compiler when linking
16503
# a shared library.
16504
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16506
# Method to check whether dependent libraries are shared objects.
16507
deplibs_check_method=$lt_deplibs_check_method
16509
# Command to use when deplibs_check_method == file_magic.
16510
file_magic_cmd=$lt_file_magic_cmd
16512
# Flag that allows shared libraries with undefined symbols to be built.
16513
allow_undefined_flag=$lt_allow_undefined_flag_F77
16515
# Flag that forces no undefined symbols.
16516
no_undefined_flag=$lt_no_undefined_flag_F77
16518
# Commands used to finish a libtool library installation in a directory.
16519
finish_cmds=$lt_finish_cmds
16521
# Same as above, but a single script fragment to be evaled but not shown.
16522
finish_eval=$lt_finish_eval
16524
# Take the output of nm and produce a listing of raw symbols and C names.
16525
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16527
# Transform the output of nm in a proper C declaration
16528
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16530
# Transform the output of nm in a C name address pair
16531
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16533
# This is the shared library runtime path variable.
16534
runpath_var=$runpath_var
16536
# This is the shared library path variable.
16537
shlibpath_var=$shlibpath_var
16539
# Is shlibpath searched before the hard-coded library search path?
16540
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16542
# How to hardcode a shared library path into an executable.
16543
hardcode_action=$hardcode_action_F77
16545
# Whether we should hardcode library paths into libraries.
16546
hardcode_into_libs=$hardcode_into_libs
16548
# Flag to hardcode \$libdir into a binary during linking.
16549
# This must work even if \$libdir does not exist.
16550
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16552
# If ld is used when linking, flag to hardcode \$libdir into
16553
# a binary during linking. This must work even if \$libdir does
16555
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16557
# Whether we need a single -rpath flag with a separated argument.
16558
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16560
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16561
# resulting binary.
16562
hardcode_direct=$hardcode_direct_F77
16564
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16565
# resulting binary.
16566
hardcode_minus_L=$hardcode_minus_L_F77
16568
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16569
# the resulting binary.
16570
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16572
# Set to yes if building a shared library automatically hardcodes DIR into the library
16573
# and all subsequent libraries and executables linked against it.
16574
hardcode_automatic=$hardcode_automatic_F77
16576
# Variables whose values should be saved in libtool wrapper scripts and
16577
# restored at relink time.
16578
variables_saved_for_relink="$variables_saved_for_relink"
16580
# Whether libtool must link a program against all its dependency libraries.
16581
link_all_deplibs=$link_all_deplibs_F77
16583
# Compile-time system search path for libraries
16584
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16586
# Run-time system search path for libraries
16587
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16589
# Fix the shell variable \$srcfile for the compiler.
16590
fix_srcfile_path=$lt_fix_srcfile_path
16592
# Set to yes if exported symbols are required.
16593
always_export_symbols=$always_export_symbols_F77
16595
# The commands to list exported symbols.
16596
export_symbols_cmds=$lt_export_symbols_cmds_F77
16598
# The commands to extract the exported symbol list from a shared archive.
16599
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16601
# Symbols that should not be listed in the preloaded symbols.
16602
exclude_expsyms=$lt_exclude_expsyms_F77
16604
# Symbols that must always be exported.
16605
include_expsyms=$lt_include_expsyms_F77
16607
# ### END LIBTOOL TAG CONFIG: $tagname
16613
# If there is no Makefile yet, we rely on a make rule to execute
16614
# `config.status --recheck' to rerun these tests and create the
16615
# libtool script then.
16616
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16617
if test -f "$ltmain_in"; then
16618
test -f Makefile && make "$ltmain"
16624
ac_cpp='$CPP $CPPFLAGS'
16625
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16626
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16627
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16637
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16640
# Source file extension for Java test sources.
16643
# Object file extension for compiled Java test sources.
16647
# Code to be used in simple compile tests
16648
lt_simple_compile_test_code="class foo {}"
16650
# Code to be used in simple link tests
16651
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16653
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16655
# If no C compiler was specified, use CC.
16658
# If no C compiler flags were specified, use CFLAGS.
16659
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16661
# Allow CC to be a program name with arguments.
16665
# save warnings/boilerplate of simple test code
16666
ac_outfile=conftest.$ac_objext
16667
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16668
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16669
_lt_compiler_boilerplate=`cat conftest.err`
16672
ac_outfile=conftest.$ac_objext
16673
echo "$lt_simple_link_test_code" >conftest.$ac_ext
16674
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16675
_lt_linker_boilerplate=`cat conftest.err`
16679
# Allow CC to be a program name with arguments.
16684
for cc_temp in $compiler""; do
16686
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16687
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16692
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16695
# GCJ did not exist at the time GCC didn't implicitly link libc in.
16696
archive_cmds_need_lc_GCJ=no
16698
old_archive_cmds_GCJ=$old_archive_cmds
16701
## There is no encapsulation within the following macros, do not change
16702
## the running order or otherwise move them around unless you know exactly
16703
## what you are doing...
16705
lt_prog_compiler_no_builtin_flag_GCJ=
16707
if test "$GCC" = yes; then
16708
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16711
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16712
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16713
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16714
echo $ECHO_N "(cached) $ECHO_C" >&6
16716
lt_cv_prog_compiler_rtti_exceptions=no
16717
ac_outfile=conftest.$ac_objext
16718
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16719
lt_compiler_flag="-fno-rtti -fno-exceptions"
16720
# Insert the option either (1) after the last *FLAGS variable, or
16721
# (2) before a word containing "conftest.", or (3) at the end.
16722
# Note that $ac_compile itself does not contain backslashes and begins
16723
# with a dollar sign (not a hyphen), so the echo should work correctly.
16724
# The option is referenced via a variable to avoid confusing sed.
16725
lt_compile=`echo "$ac_compile" | $SED \
16726
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16727
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16728
-e 's:$: $lt_compiler_flag:'`
16729
(eval echo "\"\$as_me:16729: $lt_compile\"" >&5)
16730
(eval "$lt_compile" 2>conftest.err)
16732
cat conftest.err >&5
16733
echo "$as_me:16733: \$? = $ac_status" >&5
16734
if (exit $ac_status) && test -s "$ac_outfile"; then
16735
# The compiler can only warn and ignore the option if not recognized
16736
# So say no if there are warnings other than the usual output.
16737
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16738
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16739
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16740
lt_cv_prog_compiler_rtti_exceptions=yes
16746
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16747
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16749
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16750
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16757
lt_prog_compiler_wl_GCJ=
16758
lt_prog_compiler_pic_GCJ=
16759
lt_prog_compiler_static_GCJ=
16761
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16762
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16764
if test "$GCC" = yes; then
16765
lt_prog_compiler_wl_GCJ='-Wl,'
16766
lt_prog_compiler_static_GCJ='-static'
16770
# All AIX code is PIC.
16771
if test "$host_cpu" = ia64; then
16772
# AIX 5 now supports IA64 processor
16773
lt_prog_compiler_static_GCJ='-Bstatic'
16778
# FIXME: we need at least 68020 code to build shared libraries, but
16779
# adding the `-m68020' flag to GCC prevents building anything better,
16781
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16784
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16785
# PIC is the default for these OSes.
16788
mingw* | cygwin* | pw32* | os2*)
16789
# This hack is so that the source file can tell whether it is being
16790
# built for inclusion in a dll (and should export symbols for example).
16791
# Although the cygwin gcc ignores -fPIC, still need this for old-style
16792
# (--disable-auto-import) libraries
16793
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16796
darwin* | rhapsody*)
16797
# PIC is the default on this platform
16798
# Common symbols not allowed in MH_DYLIB files
16799
lt_prog_compiler_pic_GCJ='-fno-common'
16803
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
16804
# Instead, we relocate shared libraries at runtime.
16808
# Just because we use GCC doesn't mean we suddenly get shared libraries
16809
# on systems that don't support them.
16810
lt_prog_compiler_can_build_shared_GCJ=no
16815
if test -d /usr/nec; then
16816
lt_prog_compiler_pic_GCJ=-Kconform_pic
16821
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16822
# not for PA HP-UX.
16828
lt_prog_compiler_pic_GCJ='-fPIC'
16834
lt_prog_compiler_pic_GCJ='-fPIC'
16838
# PORTME Check for flag to pass linker flags through the system compiler.
16841
lt_prog_compiler_wl_GCJ='-Wl,'
16842
if test "$host_cpu" = ia64; then
16843
# AIX 5 now supports IA64 processor
16844
lt_prog_compiler_static_GCJ='-Bstatic'
16846
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16850
# PIC is the default on this platform
16851
# Common symbols not allowed in MH_DYLIB files
16852
case $cc_basename in
16854
lt_prog_compiler_pic_GCJ='-qnocommon'
16855
lt_prog_compiler_wl_GCJ='-Wl,'
16860
mingw* | cygwin* | pw32* | os2*)
16861
# This hack is so that the source file can tell whether it is being
16862
# built for inclusion in a dll (and should export symbols for example).
16863
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16866
hpux9* | hpux10* | hpux11*)
16867
lt_prog_compiler_wl_GCJ='-Wl,'
16868
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16869
# not for PA HP-UX.
16875
lt_prog_compiler_pic_GCJ='+Z'
16878
# Is there a better lt_prog_compiler_static that works with the bundled CC?
16879
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16882
irix5* | irix6* | nonstopux*)
16883
lt_prog_compiler_wl_GCJ='-Wl,'
16884
# PIC (with -KPIC) is the default.
16885
lt_prog_compiler_static_GCJ='-non_shared'
16889
lt_prog_compiler_pic_GCJ='-KPIC'
16890
lt_prog_compiler_static_GCJ='-Bstatic'
16893
linux* | k*bsd*-gnu)
16894
case $cc_basename in
16896
lt_prog_compiler_wl_GCJ='-Wl,'
16897
lt_prog_compiler_pic_GCJ='-KPIC'
16898
lt_prog_compiler_static_GCJ='-static'
16900
pgcc* | pgf77* | pgf90* | pgf95*)
16901
# Portland Group compilers (*not* the Pentium gcc compiler,
16902
# which looks to be a dead project)
16903
lt_prog_compiler_wl_GCJ='-Wl,'
16904
lt_prog_compiler_pic_GCJ='-fpic'
16905
lt_prog_compiler_static_GCJ='-Bstatic'
16908
lt_prog_compiler_wl_GCJ='-Wl,'
16909
# All Alpha code is PIC.
16910
lt_prog_compiler_static_GCJ='-non_shared'
16913
lt_prog_compiler_wl_GCJ='-lopt='
16916
case `$CC -V 2>&1 | sed 5q` in
16919
lt_prog_compiler_pic_GCJ='-KPIC'
16920
lt_prog_compiler_static_GCJ='-Bstatic'
16921
lt_prog_compiler_wl_GCJ='-Wl,'
16924
# Sun Fortran 8.3 passes all unrecognized flags to the linker
16925
lt_prog_compiler_pic_GCJ='-KPIC'
16926
lt_prog_compiler_static_GCJ='-Bstatic'
16927
lt_prog_compiler_wl_GCJ=''
16934
osf3* | osf4* | osf5*)
16935
lt_prog_compiler_wl_GCJ='-Wl,'
16936
# All OSF/1 code is PIC.
16937
lt_prog_compiler_static_GCJ='-non_shared'
16941
lt_prog_compiler_static_GCJ='-non_shared'
16945
lt_prog_compiler_pic_GCJ='-KPIC'
16946
lt_prog_compiler_static_GCJ='-Bstatic'
16947
case $cc_basename in
16948
f77* | f90* | f95*)
16949
lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16951
lt_prog_compiler_wl_GCJ='-Wl,';;
16956
lt_prog_compiler_wl_GCJ='-Qoption ld '
16957
lt_prog_compiler_pic_GCJ='-PIC'
16958
lt_prog_compiler_static_GCJ='-Bstatic'
16961
sysv4 | sysv4.2uw2* | sysv4.3*)
16962
lt_prog_compiler_wl_GCJ='-Wl,'
16963
lt_prog_compiler_pic_GCJ='-KPIC'
16964
lt_prog_compiler_static_GCJ='-Bstatic'
16968
if test -d /usr/nec ;then
16969
lt_prog_compiler_pic_GCJ='-Kconform_pic'
16970
lt_prog_compiler_static_GCJ='-Bstatic'
16974
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16975
lt_prog_compiler_wl_GCJ='-Wl,'
16976
lt_prog_compiler_pic_GCJ='-KPIC'
16977
lt_prog_compiler_static_GCJ='-Bstatic'
16981
lt_prog_compiler_wl_GCJ='-Wl,'
16982
lt_prog_compiler_can_build_shared_GCJ=no
16986
lt_prog_compiler_pic_GCJ='-pic'
16987
lt_prog_compiler_static_GCJ='-Bstatic'
16991
lt_prog_compiler_can_build_shared_GCJ=no
16996
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16997
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17000
# Check to make sure the PIC flag actually works.
17002
if test -n "$lt_prog_compiler_pic_GCJ"; then
17004
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17005
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17006
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17007
echo $ECHO_N "(cached) $ECHO_C" >&6
17009
lt_prog_compiler_pic_works_GCJ=no
17010
ac_outfile=conftest.$ac_objext
17011
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17012
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17013
# Insert the option either (1) after the last *FLAGS variable, or
17014
# (2) before a word containing "conftest.", or (3) at the end.
17015
# Note that $ac_compile itself does not contain backslashes and begins
17016
# with a dollar sign (not a hyphen), so the echo should work correctly.
17017
# The option is referenced via a variable to avoid confusing sed.
17018
lt_compile=`echo "$ac_compile" | $SED \
17019
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17020
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17021
-e 's:$: $lt_compiler_flag:'`
17022
(eval echo "\"\$as_me:17022: $lt_compile\"" >&5)
17023
(eval "$lt_compile" 2>conftest.err)
17025
cat conftest.err >&5
17026
echo "$as_me:17026: \$? = $ac_status" >&5
17027
if (exit $ac_status) && test -s "$ac_outfile"; then
17028
# The compiler can only warn and ignore the option if not recognized
17029
# So say no if there are warnings other than the usual output.
17030
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17031
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17032
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17033
lt_prog_compiler_pic_works_GCJ=yes
17039
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17040
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17042
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17043
case $lt_prog_compiler_pic_GCJ in
17045
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17048
lt_prog_compiler_pic_GCJ=
17049
lt_prog_compiler_can_build_shared_GCJ=no
17054
# For platforms which do not support PIC, -DPIC is meaningless:
17056
lt_prog_compiler_pic_GCJ=
17059
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17064
# Check to make sure the static flag actually works.
17066
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17067
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17068
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17069
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17070
echo $ECHO_N "(cached) $ECHO_C" >&6
17072
lt_prog_compiler_static_works_GCJ=no
17073
save_LDFLAGS="$LDFLAGS"
17074
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17075
echo "$lt_simple_link_test_code" > conftest.$ac_ext
17076
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17077
# The linker can only warn and ignore the option if not recognized
17078
# So say no if there are warnings
17079
if test -s conftest.err; then
17080
# Append any errors to the config.log.
17081
cat conftest.err 1>&5
17082
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17083
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17084
if diff conftest.exp conftest.er2 >/dev/null; then
17085
lt_prog_compiler_static_works_GCJ=yes
17088
lt_prog_compiler_static_works_GCJ=yes
17092
LDFLAGS="$save_LDFLAGS"
17095
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17096
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17098
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17101
lt_prog_compiler_static_GCJ=
17105
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17106
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17107
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17108
echo $ECHO_N "(cached) $ECHO_C" >&6
17110
lt_cv_prog_compiler_c_o_GCJ=no
17111
$rm -r conftest 2>/dev/null
17115
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17117
lt_compiler_flag="-o out/conftest2.$ac_objext"
17118
# Insert the option either (1) after the last *FLAGS variable, or
17119
# (2) before a word containing "conftest.", or (3) at the end.
17120
# Note that $ac_compile itself does not contain backslashes and begins
17121
# with a dollar sign (not a hyphen), so the echo should work correctly.
17122
lt_compile=`echo "$ac_compile" | $SED \
17123
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17124
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17125
-e 's:$: $lt_compiler_flag:'`
17126
(eval echo "\"\$as_me:17126: $lt_compile\"" >&5)
17127
(eval "$lt_compile" 2>out/conftest.err)
17129
cat out/conftest.err >&5
17130
echo "$as_me:17130: \$? = $ac_status" >&5
17131
if (exit $ac_status) && test -s out/conftest2.$ac_objext
17133
# The compiler can only warn and ignore the option if not recognized
17134
# So say no if there are warnings
17135
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17136
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17137
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17138
lt_cv_prog_compiler_c_o_GCJ=yes
17143
# SGI C++ compiler will create directory out/ii_files/ for
17144
# template instantiation
17145
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17146
$rm out/* && rmdir out
17152
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17153
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17156
hard_links="nottested"
17157
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17158
# do not overwrite the value of need_locks provided by the user
17159
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17160
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17163
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17165
ln conftest.a conftest.b 2>&5 || hard_links=no
17166
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17167
{ echo "$as_me:$LINENO: result: $hard_links" >&5
17168
echo "${ECHO_T}$hard_links" >&6; }
17169
if test "$hard_links" = no; then
17170
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17171
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17178
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17179
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17182
allow_undefined_flag_GCJ=
17183
enable_shared_with_static_runtimes_GCJ=no
17185
archive_expsym_cmds_GCJ=
17186
old_archive_From_new_cmds_GCJ=
17187
old_archive_from_expsyms_cmds_GCJ=
17188
export_dynamic_flag_spec_GCJ=
17189
whole_archive_flag_spec_GCJ=
17190
thread_safe_flag_spec_GCJ=
17191
hardcode_libdir_flag_spec_GCJ=
17192
hardcode_libdir_flag_spec_ld_GCJ=
17193
hardcode_libdir_separator_GCJ=
17194
hardcode_direct_GCJ=no
17195
hardcode_minus_L_GCJ=no
17196
hardcode_shlibpath_var_GCJ=unsupported
17197
link_all_deplibs_GCJ=unknown
17198
hardcode_automatic_GCJ=no
17200
module_expsym_cmds_GCJ=
17201
always_export_symbols_GCJ=no
17202
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17203
# include_expsyms should be a list of space-separated symbols to be *always*
17204
# included in the symbol list
17205
include_expsyms_GCJ=
17206
# exclude_expsyms can be an extended regexp of symbols to exclude
17207
# it will be wrapped by ` (' and `)$', so one must not match beginning or
17208
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17209
# as well as any symbol that contains `d'.
17210
exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17211
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17212
# platforms (ab)use it in PIC code, but their linkers get confused if
17213
# the symbol is explicitly referenced. Since portable code cannot
17214
# rely on this symbol name, it's probably fine to never include it in
17215
# preloaded symbol tables.
17216
extract_expsyms_cmds=
17217
# Just being paranoid about ensuring that cc_basename is set.
17218
for cc_temp in $compiler""; do
17220
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17221
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17226
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17229
cygwin* | mingw* | pw32*)
17230
# FIXME: the MSVC++ port hasn't been tested in a loooong time
17231
# When not using gcc, we currently assume that we are using
17232
# Microsoft Visual C++.
17233
if test "$GCC" != yes; then
17238
# we just hope/assume this is gcc and not c89 (= MSVC++)
17247
if test "$with_gnu_ld" = yes; then
17248
# If archive_cmds runs LD, not CC, wlarc should be empty
17251
# Set some defaults for GNU ld with shared library support. These
17252
# are reset later if shared libraries are not supported. Putting them
17253
# here allows them to be overridden if necessary.
17254
runpath_var=LD_RUN_PATH
17255
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17256
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17257
# ancient GNU ld didn't support --whole-archive et. al.
17258
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17259
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17261
whole_archive_flag_spec_GCJ=
17263
supports_anon_versioning=no
17264
case `$LD -v 2>/dev/null` in
17265
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17266
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17267
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17268
*\ 2.11.*) ;; # other 2.11 versions
17269
*) supports_anon_versioning=yes ;;
17272
# See if GNU ld supports shared libraries.
17274
aix3* | aix4* | aix5*)
17275
# On AIX/PPC, the GNU linker is very broken
17276
if test "$host_cpu" != ia64; then
17280
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17281
*** to be unable to reliably create shared libraries on AIX.
17282
*** Therefore, libtool is disabling shared libraries support. If you
17283
*** really care for shared libraries, you may want to modify your PATH
17284
*** so that a non-GNU linker is found, and then restart.
17291
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)'
17292
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17293
hardcode_minus_L_GCJ=yes
17295
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17296
# that the semantics of dynamic libraries on AmigaOS, at least up
17297
# to version 4, is to share data among multiple programs linked
17298
# with the same dynamic library. Since this doesn't match the
17299
# behavior of shared libraries on other platforms, we can't use
17305
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17306
allow_undefined_flag_GCJ=unsupported
17307
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17308
# support --undefined. This deserves some investigation. FIXME
17309
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17315
cygwin* | mingw* | pw32*)
17316
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17317
# as there is no search path for DLLs.
17318
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17319
allow_undefined_flag_GCJ=unsupported
17320
always_export_symbols_GCJ=no
17321
enable_shared_with_static_runtimes_GCJ=yes
17322
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17324
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17325
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17326
# If the export-symbols file already is a .def file (1st line
17327
# is EXPORTS), use it as is; otherwise, prepend...
17328
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17329
cp $export_symbols $output_objdir/$soname.def;
17331
echo EXPORTS > $output_objdir/$soname.def;
17332
cat $export_symbols >> $output_objdir/$soname.def;
17334
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17341
hardcode_direct_GCJ=no
17342
hardcode_shlibpath_var_GCJ=no
17343
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17344
export_dynamic_flag_spec_GCJ='${wl}-E'
17345
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17346
# Instead, shared libraries are loaded at an image base (0x10000000 by
17347
# default) and relocated if they conflict, which is a slow very memory
17348
# consuming and fragmenting process. To avoid this, we pick a random,
17349
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17350
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
17351
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'
17352
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'
17355
gnu* | linux* | k*bsd*-gnu)
17356
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17358
case $cc_basename,$host_cpu in
17359
pgcc*) # Portland Group C compiler
17360
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'
17361
tmp_addflag=' $pic_flag'
17363
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17364
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'
17365
tmp_addflag=' $pic_flag -Mnomain' ;;
17366
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17367
tmp_addflag=' -i_dynamic' ;;
17368
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17369
tmp_addflag=' -i_dynamic -nofor_main' ;;
17370
ifc* | ifort*) # Intel Fortran compiler
17371
tmp_addflag=' -nofor_main' ;;
17373
case `$CC -V 2>&1 | sed 5q` in
17374
*Sun\ C*) # Sun C 5.9
17375
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'
17376
tmp_sharedflag='-G' ;;
17377
*Sun\ F*) # Sun Fortran 8.3
17378
tmp_sharedflag='-G' ;;
17380
tmp_sharedflag='-shared' ;;
17382
archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17384
if test $supports_anon_versioning = yes; then
17385
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17386
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17387
$echo "local: *; };" >> $output_objdir/$libname.ver~
17388
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17396
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17397
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17400
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17401
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17406
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17410
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17411
*** create shared libraries on Solaris systems. Therefore, libtool
17412
*** is disabling shared libraries support. We urge you to upgrade GNU
17413
*** binutils to release 2.9.1 or newer. Another option is to modify
17414
*** your PATH or compiler configuration so that the native linker is
17415
*** used, and then restart.
17418
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17419
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17420
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17426
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17427
case `$LD -v 2>&1` in
17428
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17432
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17433
*** reliably create shared libraries on SCO systems. Therefore, libtool
17434
*** is disabling shared libraries support. We urge you to upgrade GNU
17435
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17436
*** your PATH or compiler configuration so that the native linker is
17437
*** used, and then restart.
17442
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17443
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17444
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17445
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17454
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17456
hardcode_direct_GCJ=yes
17457
hardcode_shlibpath_var_GCJ=no
17461
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17462
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17463
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17470
if test "$ld_shlibs_GCJ" = no; then
17472
hardcode_libdir_flag_spec_GCJ=
17473
export_dynamic_flag_spec_GCJ=
17474
whole_archive_flag_spec_GCJ=
17477
# PORTME fill in a description of your system's linker (not GNU ld)
17480
allow_undefined_flag_GCJ=unsupported
17481
always_export_symbols_GCJ=yes
17482
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'
17483
# Note: this linker hardcodes the directories in LIBPATH if there
17484
# are no directories specified by -L.
17485
hardcode_minus_L_GCJ=yes
17486
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17487
# Neither direct hardcoding nor static linking is supported with a
17489
hardcode_direct_GCJ=unsupported
17494
if test "$host_cpu" = ia64; then
17495
# On IA64, the linker does run time linking by default, so we don't
17496
# have to do anything special.
17497
aix_use_runtimelinking=no
17498
exp_sym_flag='-Bexport'
17501
# If we're using GNU nm, then we don't want the "-C" option.
17502
# -C means demangle to AIX nm, but means don't demangle with GNU nm
17503
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17504
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'
17506
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'
17508
aix_use_runtimelinking=no
17510
# Test if we are trying to use run time linking or normal
17511
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17512
# need to do runtime linking.
17513
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17514
for ld_flag in $LDFLAGS; do
17515
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17516
aix_use_runtimelinking=yes
17523
exp_sym_flag='-bexport'
17524
no_entry_flag='-bnoentry'
17527
# When large executables or shared objects are built, AIX ld can
17528
# have problems creating the table of contents. If linking a library
17529
# or program results in "error TOC overflow" add -mminimal-toc to
17530
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17531
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17533
archive_cmds_GCJ=''
17534
hardcode_direct_GCJ=yes
17535
hardcode_libdir_separator_GCJ=':'
17536
link_all_deplibs_GCJ=yes
17538
if test "$GCC" = yes; then
17539
case $host_os in aix4.[012]|aix4.[012].*)
17540
# We only want to do this on AIX 4.2 and lower, the check
17541
# below for broken collect2 doesn't work under 4.3+
17542
collect2name=`${CC} -print-prog-name=collect2`
17543
if test -f "$collect2name" && \
17544
strings "$collect2name" | grep resolve_lib_name >/dev/null
17546
# We have reworked collect2
17549
# We have old collect2
17550
hardcode_direct_GCJ=unsupported
17551
# It fails to find uninstalled libraries when the uninstalled
17552
# path is not listed in the libpath. Setting hardcode_minus_L
17553
# to unsupported forces relinking
17554
hardcode_minus_L_GCJ=yes
17555
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17556
hardcode_libdir_separator_GCJ=
17560
shared_flag='-shared'
17561
if test "$aix_use_runtimelinking" = yes; then
17562
shared_flag="$shared_flag "'${wl}-G'
17566
if test "$host_cpu" = ia64; then
17567
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17568
# chokes on -Wl,-G. The following line is correct:
17571
if test "$aix_use_runtimelinking" = yes; then
17572
shared_flag='${wl}-G'
17574
shared_flag='${wl}-bM:SRE'
17579
# It seems that -bexpall does not export symbols beginning with
17580
# underscore (_), so it is better to generate a list of symbols to export.
17581
always_export_symbols_GCJ=yes
17582
if test "$aix_use_runtimelinking" = yes; then
17583
# Warning - without using the other runtime loading flags (-brtl),
17584
# -berok will link without error, but may produce a broken library.
17585
allow_undefined_flag_GCJ='-berok'
17586
# Determine the default libpath from the value encoded in an empty executable.
17587
cat >conftest.$ac_ext <<_ACEOF
17590
cat confdefs.h >>conftest.$ac_ext
17591
cat >>conftest.$ac_ext <<_ACEOF
17592
/* end confdefs.h. */
17602
rm -f conftest.$ac_objext conftest$ac_exeext
17603
if { (ac_try="$ac_link"
17604
case "(($ac_try" in
17605
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17606
*) ac_try_echo=$ac_try;;
17608
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17609
(eval "$ac_link") 2>conftest.er1
17611
grep -v '^ *+' conftest.er1 >conftest.err
17613
cat conftest.err >&5
17614
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615
(exit $ac_status); } && {
17616
test -z "$ac_c_werror_flag" ||
17617
test ! -s conftest.err
17618
} && test -s conftest$ac_exeext &&
17619
$as_test_x conftest$ac_exeext; then
17621
lt_aix_libpath_sed='
17622
/Import File Strings/,/^$/ {
17628
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17629
# Check for a 64-bit object if we didn't find anything.
17630
if test -z "$aix_libpath"; then
17631
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17634
echo "$as_me: failed program was:" >&5
17635
sed 's/^/| /' conftest.$ac_ext >&5
17640
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17641
conftest$ac_exeext conftest.$ac_ext
17642
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17644
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17645
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"
17647
if test "$host_cpu" = ia64; then
17648
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17649
allow_undefined_flag_GCJ="-z nodefs"
17650
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"
17652
# Determine the default libpath from the value encoded in an empty executable.
17653
cat >conftest.$ac_ext <<_ACEOF
17656
cat confdefs.h >>conftest.$ac_ext
17657
cat >>conftest.$ac_ext <<_ACEOF
17658
/* end confdefs.h. */
17668
rm -f conftest.$ac_objext conftest$ac_exeext
17669
if { (ac_try="$ac_link"
17670
case "(($ac_try" in
17671
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17672
*) ac_try_echo=$ac_try;;
17674
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17675
(eval "$ac_link") 2>conftest.er1
17677
grep -v '^ *+' conftest.er1 >conftest.err
17679
cat conftest.err >&5
17680
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17681
(exit $ac_status); } && {
17682
test -z "$ac_c_werror_flag" ||
17683
test ! -s conftest.err
17684
} && test -s conftest$ac_exeext &&
17685
$as_test_x conftest$ac_exeext; then
17687
lt_aix_libpath_sed='
17688
/Import File Strings/,/^$/ {
17694
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17695
# Check for a 64-bit object if we didn't find anything.
17696
if test -z "$aix_libpath"; then
17697
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17700
echo "$as_me: failed program was:" >&5
17701
sed 's/^/| /' conftest.$ac_ext >&5
17706
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17707
conftest$ac_exeext conftest.$ac_ext
17708
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17710
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17711
# Warning - without using the other run time loading flags,
17712
# -berok will link without error, but may produce a broken library.
17713
no_undefined_flag_GCJ=' ${wl}-bernotok'
17714
allow_undefined_flag_GCJ=' ${wl}-berok'
17715
# Exported symbols can be pulled into shared objects from archives
17716
whole_archive_flag_spec_GCJ='$convenience'
17717
archive_cmds_need_lc_GCJ=yes
17718
# This is similar to how AIX traditionally builds its shared libraries.
17719
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'
17725
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)'
17726
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17727
hardcode_minus_L_GCJ=yes
17728
# see comment about different semantics on the GNU ld section
17733
export_dynamic_flag_spec_GCJ=-rdynamic
17736
cygwin* | mingw* | pw32*)
17737
# When not using gcc, we currently assume that we are using
17738
# Microsoft Visual C++.
17739
# hardcode_libdir_flag_spec is actually meaningless, as there is
17740
# no search path for DLLs.
17741
hardcode_libdir_flag_spec_GCJ=' '
17742
allow_undefined_flag_GCJ=unsupported
17743
# Tell ltmain to make .lib files, not .a files.
17745
# Tell ltmain to make .dll files, not .so files.
17747
# FIXME: Setting linknames here is a bad hack.
17748
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17749
# The linker will automatically build a .lib file if we build a DLL.
17750
old_archive_From_new_cmds_GCJ='true'
17751
# FIXME: Should let the user specify the lib program.
17752
old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17753
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17754
enable_shared_with_static_runtimes_GCJ=yes
17757
darwin* | rhapsody*)
17759
rhapsody* | darwin1.[012])
17760
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17763
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17764
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17766
case ${MACOSX_DEPLOYMENT_TARGET} in
17768
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17771
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17777
archive_cmds_need_lc_GCJ=no
17778
hardcode_direct_GCJ=no
17779
hardcode_automatic_GCJ=yes
17780
hardcode_shlibpath_var_GCJ=unsupported
17781
whole_archive_flag_spec_GCJ=''
17782
link_all_deplibs_GCJ=yes
17783
if test "$GCC" = yes ; then
17784
output_verbose_link_cmd='echo'
17785
archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17786
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17787
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17788
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17789
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}'
17791
case $cc_basename in
17793
output_verbose_link_cmd='echo'
17794
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17795
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17796
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17797
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}'
17798
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}'
17808
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17809
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17810
hardcode_shlibpath_var_GCJ=no
17817
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17818
# support. Future versions do this automatically, but an explicit c++rt0.o
17819
# does not break anything, and helps significantly (at the cost of a little
17822
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17823
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17824
hardcode_direct_GCJ=yes
17825
hardcode_shlibpath_var_GCJ=no
17828
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
17830
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17831
hardcode_direct_GCJ=yes
17832
hardcode_minus_L_GCJ=yes
17833
hardcode_shlibpath_var_GCJ=no
17836
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17837
freebsd* | dragonfly*)
17838
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17839
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17840
hardcode_direct_GCJ=yes
17841
hardcode_shlibpath_var_GCJ=no
17845
if test "$GCC" = yes; then
17846
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'
17848
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'
17850
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17851
hardcode_libdir_separator_GCJ=:
17852
hardcode_direct_GCJ=yes
17854
# hardcode_minus_L: Not really in the search PATH,
17855
# but as the default location of the library.
17856
hardcode_minus_L_GCJ=yes
17857
export_dynamic_flag_spec_GCJ='${wl}-E'
17861
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17862
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17864
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17866
if test "$with_gnu_ld" = no; then
17867
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17868
hardcode_libdir_separator_GCJ=:
17870
hardcode_direct_GCJ=yes
17871
export_dynamic_flag_spec_GCJ='${wl}-E'
17873
# hardcode_minus_L: Not really in the search PATH,
17874
# but as the default location of the library.
17875
hardcode_minus_L_GCJ=yes
17880
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17883
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17886
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17889
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17895
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17898
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17901
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17905
if test "$with_gnu_ld" = no; then
17906
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17907
hardcode_libdir_separator_GCJ=:
17911
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17912
hardcode_direct_GCJ=no
17913
hardcode_shlibpath_var_GCJ=no
17916
hardcode_direct_GCJ=yes
17917
export_dynamic_flag_spec_GCJ='${wl}-E'
17919
# hardcode_minus_L: Not really in the search PATH,
17920
# but as the default location of the library.
17921
hardcode_minus_L_GCJ=yes
17927
irix5* | irix6* | nonstopux*)
17928
if test "$GCC" = yes; then
17929
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'
17931
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'
17932
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17934
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17935
hardcode_libdir_separator_GCJ=:
17936
link_all_deplibs_GCJ=yes
17940
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17941
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17943
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17945
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17946
hardcode_direct_GCJ=yes
17947
hardcode_shlibpath_var_GCJ=no
17951
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17952
hardcode_direct_GCJ=yes
17953
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17954
hardcode_libdir_separator_GCJ=:
17955
hardcode_shlibpath_var_GCJ=no
17959
if test -f /usr/libexec/ld.so; then
17960
hardcode_direct_GCJ=yes
17961
hardcode_shlibpath_var_GCJ=no
17962
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17963
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17964
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17965
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17966
export_dynamic_flag_spec_GCJ='${wl}-E'
17969
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17970
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17971
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17974
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17975
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17985
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17986
hardcode_minus_L_GCJ=yes
17987
allow_undefined_flag_GCJ=unsupported
17988
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'
17989
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17993
if test "$GCC" = yes; then
17994
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17995
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'
17997
allow_undefined_flag_GCJ=' -expect_unresolved \*'
17998
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'
18000
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18001
hardcode_libdir_separator_GCJ=:
18004
osf4* | osf5*) # as osf3* with the addition of -msym flag
18005
if test "$GCC" = yes; then
18006
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18007
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'
18008
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18010
allow_undefined_flag_GCJ=' -expect_unresolved \*'
18011
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'
18012
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~
18013
$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'
18015
# Both c and cxx compiler support -rpath directly
18016
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18018
hardcode_libdir_separator_GCJ=:
18022
no_undefined_flag_GCJ=' -z text'
18023
if test "$GCC" = yes; then
18025
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18026
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18027
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18030
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18031
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18032
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18034
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18035
hardcode_shlibpath_var_GCJ=no
18037
solaris2.[0-5] | solaris2.[0-5].*) ;;
18039
# The compiler driver will combine and reorder linker options,
18040
# but understands `-z linker_flag'. GCC discards it without `$wl',
18041
# but is careful enough not to reorder.
18042
# Supported since Solaris 2.6 (maybe 2.5.1?)
18043
if test "$GCC" = yes; then
18044
whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18046
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18050
link_all_deplibs_GCJ=yes
18054
if test "x$host_vendor" = xsequent; then
18055
# Use $CC to link under sequent, because it throws in some extra .o
18056
# files that make .init and .fini sections work.
18057
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18059
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18061
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18062
hardcode_direct_GCJ=yes
18063
hardcode_minus_L_GCJ=yes
18064
hardcode_shlibpath_var_GCJ=no
18068
case $host_vendor in
18070
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18071
hardcode_direct_GCJ=yes # is this really true???
18074
## LD is ld it makes a PLAMLIB
18075
## CC just makes a GrossModule.
18076
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18077
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18078
hardcode_direct_GCJ=no
18081
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18082
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18085
runpath_var='LD_RUN_PATH'
18086
hardcode_shlibpath_var_GCJ=no
18090
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18091
hardcode_shlibpath_var_GCJ=no
18092
export_dynamic_flag_spec_GCJ='-Bexport'
18096
if test -d /usr/nec; then
18097
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18098
hardcode_shlibpath_var_GCJ=no
18099
runpath_var=LD_RUN_PATH
18100
hardcode_runpath_var=yes
18105
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18106
no_undefined_flag_GCJ='${wl}-z,text'
18107
archive_cmds_need_lc_GCJ=no
18108
hardcode_shlibpath_var_GCJ=no
18109
runpath_var='LD_RUN_PATH'
18111
if test "$GCC" = yes; then
18112
archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18113
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18115
archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18116
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18120
sysv5* | sco3.2v5* | sco5v6*)
18121
# Note: We can NOT use -z defs as we might desire, because we do not
18122
# link with -lc, and that would cause any symbols used from libc to
18123
# always be unresolved, which means just about no library would
18124
# ever link correctly. If we're not using GNU ld we use -z text
18125
# though, which does catch some bad symbols but isn't as heavy-handed
18127
no_undefined_flag_GCJ='${wl}-z,text'
18128
allow_undefined_flag_GCJ='${wl}-z,nodefs'
18129
archive_cmds_need_lc_GCJ=no
18130
hardcode_shlibpath_var_GCJ=no
18131
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18132
hardcode_libdir_separator_GCJ=':'
18133
link_all_deplibs_GCJ=yes
18134
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18135
runpath_var='LD_RUN_PATH'
18137
if test "$GCC" = yes; then
18138
archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18139
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18141
archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18142
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18147
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18148
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18149
hardcode_shlibpath_var_GCJ=no
18158
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18159
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18160
test "$ld_shlibs_GCJ" = no && can_build_shared=no
18163
# Do we need to explicitly link libc?
18165
case "x$archive_cmds_need_lc_GCJ" in
18167
# Assume -lc should be added
18168
archive_cmds_need_lc_GCJ=yes
18170
if test "$enable_shared" = yes && test "$GCC" = yes; then
18171
case $archive_cmds_GCJ in
18173
# FIXME: we may have to deal with multi-command sequences.
18176
# Test whether the compiler implicitly links with -lc since on some
18177
# systems, -lgcc has to come before -lc. If gcc already passes -lc
18178
# to ld, don't add -lc before -lgcc.
18179
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18180
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18182
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18184
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18185
(eval $ac_compile) 2>&5
18187
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18188
(exit $ac_status); } 2>conftest.err; then
18191
libobjs=conftest.$ac_objext
18193
wl=$lt_prog_compiler_wl_GCJ
18194
pic_flag=$lt_prog_compiler_pic_GCJ
18200
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18201
allow_undefined_flag_GCJ=
18202
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18203
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18205
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18206
(exit $ac_status); }
18208
archive_cmds_need_lc_GCJ=no
18210
archive_cmds_need_lc_GCJ=yes
18212
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18214
cat conftest.err 1>&5
18217
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18218
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18225
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18226
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18227
library_names_spec=
18228
libname_spec='lib$name'
18232
postuninstall_cmds=
18236
shlibpath_overrides_runpath=unknown
18238
dynamic_linker="$host_os ld.so"
18239
sys_lib_dlsearch_path_spec="/lib /usr/lib"
18241
need_lib_prefix=unknown
18242
hardcode_into_libs=no
18244
# when you set need_version to no, make sure it does not cause -set_version
18245
# flags to be left without arguments
18246
need_version=unknown
18251
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18252
shlibpath_var=LIBPATH
18254
# AIX 3 has no versioning support, so we append a major version to the name.
18255
soname_spec='${libname}${release}${shared_ext}$major'
18262
hardcode_into_libs=yes
18263
if test "$host_cpu" = ia64; then
18264
# AIX 5 supports IA64
18265
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18266
shlibpath_var=LD_LIBRARY_PATH
18268
# With GCC up to 2.95.x, collect2 would create an import file
18269
# for dependence libraries. The import file would start with
18270
# the line `#! .'. This would cause the generated library to
18271
# depend on `.', always an invalid library. This was fixed in
18272
# development snapshots of GCC prior to 3.0.
18274
aix4 | aix4.[01] | aix4.[01].*)
18275
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18277
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18280
can_build_shared=no
18284
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18285
# soname into executable. Probably we can add versioning support to
18286
# collect2, so additional links can be useful in future.
18287
if test "$aix_use_runtimelinking" = yes; then
18288
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
18289
# instead of lib<name>.a to let people know that these are not
18290
# typical AIX shared libraries.
18291
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18293
# We preserve .a as extension for shared libraries through AIX4.2
18294
# and later when we are not doing run time linking.
18295
library_names_spec='${libname}${release}.a $libname.a'
18296
soname_spec='${libname}${release}${shared_ext}$major'
18298
shlibpath_var=LIBPATH
18303
library_names_spec='$libname.ixlibrary $libname.a'
18304
# Create ${libname}_ixlibrary.a entries in /sys/libs.
18305
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'
18309
library_names_spec='${libname}${shared_ext}'
18310
dynamic_linker="$host_os ld.so"
18311
shlibpath_var=LIBRARY_PATH
18317
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18318
soname_spec='${libname}${release}${shared_ext}$major'
18319
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18320
shlibpath_var=LD_LIBRARY_PATH
18321
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18322
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18323
# the default ld.so.conf also contains /usr/contrib/lib and
18324
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18325
# libtool to hard-code these into programs
18328
cygwin* | mingw* | pw32*)
18329
version_type=windows
18334
case $GCC,$host_os in
18335
yes,cygwin* | yes,mingw* | yes,pw32*)
18336
library_names_spec='$libname.dll.a'
18337
# DLL is installed to $(libdir)/../bin by postinstall_cmds
18338
postinstall_cmds='base_file=`basename \${file}`~
18339
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18340
dldir=$destdir/`dirname \$dlpath`~
18341
test -d \$dldir || mkdir -p \$dldir~
18342
$install_prog $dir/$dlname \$dldir/$dlname~
18343
chmod a+x \$dldir/$dlname'
18344
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18345
dlpath=$dir/\$dldll~
18347
shlibpath_overrides_runpath=yes
18351
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
18352
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18353
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18356
# MinGW DLLs use traditional 'lib' prefix
18357
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18358
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18359
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18360
# It is most probably a Windows format PATH printed by
18361
# mingw gcc, but we are running on Cygwin. Gcc prints its search
18362
# path with ; separators, and with drive letters. We can handle the
18363
# drive letters (cygwin fileutils understands them), so leave them,
18364
# especially as we might pass files found there to a mingw objdump,
18365
# which wouldn't understand a cygwinified path. Ahh.
18366
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18368
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18372
# pw32 DLLs use 'pw' prefix rather than 'lib'
18373
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18379
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18382
dynamic_linker='Win32 ld.exe'
18383
# FIXME: first we should search . and the directory the executable is in
18387
darwin* | rhapsody*)
18388
dynamic_linker="$host_os dyld"
18389
version_type=darwin
18392
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18393
soname_spec='${libname}${release}${major}$shared_ext'
18394
shlibpath_overrides_runpath=yes
18395
shlibpath_var=DYLD_LIBRARY_PATH
18396
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18398
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18405
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18406
soname_spec='${libname}${release}${shared_ext}$major'
18407
shlibpath_var=LD_LIBRARY_PATH
18414
freebsd* | dragonfly*)
18415
# DragonFly does not have aout. When/if they implement a new
18416
# versioning mechanism, adjust this.
18417
if test -x /usr/bin/objformat; then
18418
objformat=`/usr/bin/objformat`
18421
freebsd[123]*) objformat=aout ;;
18422
*) objformat=elf ;;
18425
version_type=freebsd-$objformat
18426
case $version_type in
18428
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18433
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18437
shlibpath_var=LD_LIBRARY_PATH
18440
shlibpath_overrides_runpath=yes
18442
freebsd3.[01]* | freebsdelf3.[01]*)
18443
shlibpath_overrides_runpath=yes
18444
hardcode_into_libs=yes
18446
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18447
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18448
shlibpath_overrides_runpath=no
18449
hardcode_into_libs=yes
18451
*) # from 4.6 on, and DragonFly
18452
shlibpath_overrides_runpath=yes
18453
hardcode_into_libs=yes
18462
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18463
soname_spec='${libname}${release}${shared_ext}$major'
18464
shlibpath_var=LD_LIBRARY_PATH
18465
hardcode_into_libs=yes
18468
hpux9* | hpux10* | hpux11*)
18469
# Give a soname corresponding to the major version so that dld.sl refuses to
18470
# link against other versions.
18477
hardcode_into_libs=yes
18478
dynamic_linker="$host_os dld.so"
18479
shlibpath_var=LD_LIBRARY_PATH
18480
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18481
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18482
soname_spec='${libname}${release}${shared_ext}$major'
18483
if test "X$HPUX_IA64_MODE" = X32; then
18484
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18486
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18488
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18492
hardcode_into_libs=yes
18493
dynamic_linker="$host_os dld.sl"
18494
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18495
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18496
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18497
soname_spec='${libname}${release}${shared_ext}$major'
18498
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18499
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18503
dynamic_linker="$host_os dld.sl"
18504
shlibpath_var=SHLIB_PATH
18505
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18506
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18507
soname_spec='${libname}${release}${shared_ext}$major'
18510
# HP-UX runs *really* slowly unless shared libraries are mode 555.
18511
postinstall_cmds='chmod 555 $lib'
18518
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18519
soname_spec='${libname}${release}${shared_ext}$major'
18520
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18521
shlibpath_var=LD_LIBRARY_PATH
18522
shlibpath_overrides_runpath=no
18523
hardcode_into_libs=yes
18526
irix5* | irix6* | nonstopux*)
18528
nonstopux*) version_type=nonstopux ;;
18530
if test "$lt_cv_prog_gnu_ld" = yes; then
18538
soname_spec='${libname}${release}${shared_ext}$major'
18539
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18541
irix5* | nonstopux*)
18542
libsuff= shlibsuff=
18545
case $LD in # libtool.m4 will add one of these switches to LD
18546
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18547
libsuff= shlibsuff= libmagic=32-bit;;
18548
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18549
libsuff=32 shlibsuff=N32 libmagic=N32;;
18550
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18551
libsuff=64 shlibsuff=64 libmagic=64-bit;;
18552
*) libsuff= shlibsuff= libmagic=never-match;;
18556
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18557
shlibpath_overrides_runpath=no
18558
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18559
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18560
hardcode_into_libs=yes
18563
# No shared lib support for Linux oldld, aout, or coff.
18564
linux*oldld* | linux*aout* | linux*coff*)
18568
# This must be Linux ELF.
18569
linux* | k*bsd*-gnu)
18573
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18574
soname_spec='${libname}${release}${shared_ext}$major'
18575
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18576
shlibpath_var=LD_LIBRARY_PATH
18577
shlibpath_overrides_runpath=no
18578
# This implies no fast_install, which is unacceptable.
18579
# Some rework will be needed to allow for fast_install
18580
# before this can be enabled.
18581
hardcode_into_libs=yes
18583
# Append ld.so.conf contents to the search path
18584
if test -f /etc/ld.so.conf; then
18585
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' ' '`
18586
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18589
# We used to test for /lib/ld.so.1 and disable shared libraries on
18590
# powerpc, because MkLinux only supported shared libraries with the
18591
# GNU dynamic linker. Since this was broken with cross compilers,
18592
# most powerpc-linux boxes support dynamic linking these days and
18593
# people can always --disable-shared, the test was removed, and we
18594
# assume the GNU/Linux dynamic linker is in use.
18595
dynamic_linker='GNU/Linux ld.so'
18602
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18603
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18604
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18605
dynamic_linker='NetBSD (a.out) ld.so'
18607
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18608
soname_spec='${libname}${release}${shared_ext}$major'
18609
dynamic_linker='NetBSD ld.elf_so'
18611
shlibpath_var=LD_LIBRARY_PATH
18612
shlibpath_overrides_runpath=yes
18613
hardcode_into_libs=yes
18618
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18619
shlibpath_var=LD_LIBRARY_PATH
18620
shlibpath_overrides_runpath=yes
18627
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18628
soname_spec='${libname}${release}${shared_ext}$major'
18629
shlibpath_var=LD_LIBRARY_PATH
18630
shlibpath_overrides_runpath=yes
18635
sys_lib_dlsearch_path_spec="/usr/lib"
18637
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18639
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18640
*) need_version=no ;;
18642
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18643
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18644
shlibpath_var=LD_LIBRARY_PATH
18645
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18647
openbsd2.[89] | openbsd2.[89].*)
18648
shlibpath_overrides_runpath=no
18651
shlibpath_overrides_runpath=yes
18655
shlibpath_overrides_runpath=yes
18660
libname_spec='$name'
18663
library_names_spec='$libname${shared_ext} $libname.a'
18664
dynamic_linker='OS/2 ld.exe'
18665
shlibpath_var=LIBPATH
18668
osf3* | osf4* | osf5*)
18672
soname_spec='${libname}${release}${shared_ext}$major'
18673
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18674
shlibpath_var=LD_LIBRARY_PATH
18675
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18676
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18687
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18688
soname_spec='${libname}${release}${shared_ext}$major'
18689
shlibpath_var=LD_LIBRARY_PATH
18690
shlibpath_overrides_runpath=yes
18691
hardcode_into_libs=yes
18692
# ldd complains unless libraries are executable
18693
postinstall_cmds='chmod +x $lib'
18698
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18699
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18700
shlibpath_var=LD_LIBRARY_PATH
18701
shlibpath_overrides_runpath=yes
18702
if test "$with_gnu_ld" = yes; then
18710
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18711
soname_spec='${libname}${release}${shared_ext}$major'
18712
shlibpath_var=LD_LIBRARY_PATH
18713
case $host_vendor in
18715
shlibpath_overrides_runpath=no
18717
export_dynamic_flag_spec='${wl}-Blargedynsym'
18718
runpath_var=LD_RUN_PATH
18726
shlibpath_overrides_runpath=no
18727
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18733
if test -d /usr/nec ;then
18735
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18736
soname_spec='$libname${shared_ext}.$major'
18737
shlibpath_var=LD_LIBRARY_PATH
18741
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18742
version_type=freebsd-elf
18745
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18746
soname_spec='${libname}${release}${shared_ext}$major'
18747
shlibpath_var=LD_LIBRARY_PATH
18748
hardcode_into_libs=yes
18749
if test "$with_gnu_ld" = yes; then
18750
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18751
shlibpath_overrides_runpath=no
18753
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18754
shlibpath_overrides_runpath=yes
18757
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18761
sys_lib_dlsearch_path_spec='/usr/lib'
18766
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18767
soname_spec='${libname}${release}${shared_ext}$major'
18768
shlibpath_var=LD_LIBRARY_PATH
18775
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18776
echo "${ECHO_T}$dynamic_linker" >&6; }
18777
test "$dynamic_linker" = no && can_build_shared=no
18779
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18780
if test "$GCC" = yes; then
18781
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18784
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18785
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18786
hardcode_action_GCJ=
18787
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18788
test -n "$runpath_var_GCJ" || \
18789
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18791
# We can hardcode non-existant directories.
18792
if test "$hardcode_direct_GCJ" != no &&
18793
# If the only mechanism to avoid hardcoding is shlibpath_var, we
18794
# have to relink, otherwise we might link with an installed library
18795
# when we should be linking with a yet-to-be-installed one
18796
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18797
test "$hardcode_minus_L_GCJ" != no; then
18798
# Linking always hardcodes the temporary library directory.
18799
hardcode_action_GCJ=relink
18801
# We can link without hardcoding, and we can hardcode nonexisting dirs.
18802
hardcode_action_GCJ=immediate
18805
# We cannot hardcode anything, or else we can only hardcode existing
18807
hardcode_action_GCJ=unsupported
18809
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18810
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18812
if test "$hardcode_action_GCJ" = relink; then
18813
# Fast installation is not supported
18814
enable_fast_install=no
18815
elif test "$shlibpath_overrides_runpath" = yes ||
18816
test "$enable_shared" = no; then
18817
# Fast installation is not necessary
18818
enable_fast_install=needless
18822
# The else clause should only fire when bootstrapping the
18823
# libtool distribution, otherwise you forgot to ship ltmain.sh
18824
# with your package, and you will get complaints that there are
18825
# no rules to generate ltmain.sh.
18826
if test -f "$ltmain"; then
18827
# See if we are running on zsh, and set the options which allow our commands through
18828
# without removal of \ escapes.
18829
if test -n "${ZSH_VERSION+set}" ; then
18830
setopt NO_GLOB_SUBST
18832
# Now quote all the things that may contain metacharacters while being
18833
# careful not to overquote the AC_SUBSTed values. We take copies of the
18834
# variables and quote the copies for generation of the libtool script.
18835
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18837
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18838
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18839
deplibs_check_method reload_flag reload_cmds need_locks \
18840
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18841
lt_cv_sys_global_symbol_to_c_name_address \
18842
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18843
old_postinstall_cmds old_postuninstall_cmds \
18847
lt_prog_compiler_wl_GCJ \
18848
lt_prog_compiler_pic_GCJ \
18849
lt_prog_compiler_static_GCJ \
18850
lt_prog_compiler_no_builtin_flag_GCJ \
18851
export_dynamic_flag_spec_GCJ \
18852
thread_safe_flag_spec_GCJ \
18853
whole_archive_flag_spec_GCJ \
18854
enable_shared_with_static_runtimes_GCJ \
18855
old_archive_cmds_GCJ \
18856
old_archive_from_new_cmds_GCJ \
18857
predep_objects_GCJ \
18858
postdep_objects_GCJ \
18861
compiler_lib_search_path_GCJ \
18863
archive_expsym_cmds_GCJ \
18864
postinstall_cmds_GCJ \
18865
postuninstall_cmds_GCJ \
18866
old_archive_from_expsyms_cmds_GCJ \
18867
allow_undefined_flag_GCJ \
18868
no_undefined_flag_GCJ \
18869
export_symbols_cmds_GCJ \
18870
hardcode_libdir_flag_spec_GCJ \
18871
hardcode_libdir_flag_spec_ld_GCJ \
18872
hardcode_libdir_separator_GCJ \
18873
hardcode_automatic_GCJ \
18875
module_expsym_cmds_GCJ \
18876
lt_cv_prog_compiler_c_o_GCJ \
18877
fix_srcfile_path_GCJ \
18878
exclude_expsyms_GCJ \
18879
include_expsyms_GCJ; do
18882
old_archive_cmds_GCJ | \
18883
old_archive_from_new_cmds_GCJ | \
18884
archive_cmds_GCJ | \
18885
archive_expsym_cmds_GCJ | \
18886
module_cmds_GCJ | \
18887
module_expsym_cmds_GCJ | \
18888
old_archive_from_expsyms_cmds_GCJ | \
18889
export_symbols_cmds_GCJ | \
18890
extract_expsyms_cmds | reload_cmds | finish_cmds | \
18891
postinstall_cmds | postuninstall_cmds | \
18892
old_postinstall_cmds | old_postuninstall_cmds | \
18893
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18894
# Double-quote double-evaled strings.
18895
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18898
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18904
*'\$0 --fallback-echo"')
18905
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18911
cat <<__EOF__ >> "$cfgfile"
18912
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18914
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18916
# Shell to use when invoking shell scripts.
18919
# Whether or not to build shared libraries.
18920
build_libtool_libs=$enable_shared
18922
# Whether or not to build static libraries.
18923
build_old_libs=$enable_static
18925
# Whether or not to add -lc for building shared libraries.
18926
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18928
# Whether or not to disallow shared libs when runtime libs are static
18929
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18931
# Whether or not to optimize for fast installation.
18932
fast_install=$enable_fast_install
18935
host_alias=$host_alias
18939
# The build system.
18940
build_alias=$build_alias
18944
# An echo program that does not interpret backslashes.
18949
AR_FLAGS=$lt_AR_FLAGS
18954
# LTCC compiler flags.
18955
LTCFLAGS=$lt_LTCFLAGS
18957
# A language-specific compiler.
18958
CC=$lt_compiler_GCJ
18960
# Is the compiler the GNU C compiler?
18966
# The linker used to build libraries.
18969
# Whether we need hard or soft links.
18972
# A BSD-compatible nm program.
18975
# A symbol stripping program
18978
# Used to examine libraries when file_magic_cmd begins "file"
18979
MAGIC_CMD=$MAGIC_CMD
18981
# Used on cygwin: DLL creation program.
18984
# Used on cygwin: object dumper.
18987
# Used on cygwin: assembler.
18990
# The name of the directory that contains temporary libtool files.
18993
# How to create reloadable object files.
18994
reload_flag=$lt_reload_flag
18995
reload_cmds=$lt_reload_cmds
18997
# How to pass a linker flag through the compiler.
18998
wl=$lt_lt_prog_compiler_wl_GCJ
19000
# Object file suffix (normally "o").
19001
objext="$ac_objext"
19003
# Old archive suffix (normally "a").
19006
# Shared library suffix (normally ".so").
19007
shrext_cmds='$shrext_cmds'
19009
# Executable file suffix (normally "").
19012
# Additional compiler flags for building library objects.
19013
pic_flag=$lt_lt_prog_compiler_pic_GCJ
19016
# What is the maximum length of a command?
19017
max_cmd_len=$lt_cv_sys_max_cmd_len
19019
# Does compiler simultaneously support -c and -o options?
19020
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19022
# Must we lock files when doing compilation?
19023
need_locks=$lt_need_locks
19025
# Do we need the lib prefix for modules?
19026
need_lib_prefix=$need_lib_prefix
19028
# Do we need a version for libraries?
19029
need_version=$need_version
19031
# Whether dlopen is supported.
19032
dlopen_support=$enable_dlopen
19034
# Whether dlopen of programs is supported.
19035
dlopen_self=$enable_dlopen_self
19037
# Whether dlopen of statically linked programs is supported.
19038
dlopen_self_static=$enable_dlopen_self_static
19040
# Compiler flag to prevent dynamic linking.
19041
link_static_flag=$lt_lt_prog_compiler_static_GCJ
19043
# Compiler flag to turn off builtin functions.
19044
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19046
# Compiler flag to allow reflexive dlopens.
19047
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19049
# Compiler flag to generate shared objects directly from archives.
19050
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19052
# Compiler flag to generate thread-safe objects.
19053
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19055
# Library versioning type.
19056
version_type=$version_type
19058
# Format of library name prefix.
19059
libname_spec=$lt_libname_spec
19061
# List of archive names. First name is the real one, the rest are links.
19062
# The last name is the one that the linker finds with -lNAME.
19063
library_names_spec=$lt_library_names_spec
19065
# The coded name of the library, if different from the real name.
19066
soname_spec=$lt_soname_spec
19068
# Commands used to build and install an old-style archive.
19070
old_archive_cmds=$lt_old_archive_cmds_GCJ
19071
old_postinstall_cmds=$lt_old_postinstall_cmds
19072
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19074
# Create an old-style archive from a shared archive.
19075
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19077
# Create a temporary old-style archive to link instead of a shared archive.
19078
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19080
# Commands used to build and install a shared archive.
19081
archive_cmds=$lt_archive_cmds_GCJ
19082
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19083
postinstall_cmds=$lt_postinstall_cmds
19084
postuninstall_cmds=$lt_postuninstall_cmds
19086
# Commands used to build a loadable module (assumed same as above if empty)
19087
module_cmds=$lt_module_cmds_GCJ
19088
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19090
# Commands to strip libraries.
19091
old_striplib=$lt_old_striplib
19092
striplib=$lt_striplib
19094
# Dependencies to place before the objects being linked to create a
19096
predep_objects=$lt_predep_objects_GCJ
19098
# Dependencies to place after the objects being linked to create a
19100
postdep_objects=$lt_postdep_objects_GCJ
19102
# Dependencies to place before the objects being linked to create a
19104
predeps=$lt_predeps_GCJ
19106
# Dependencies to place after the objects being linked to create a
19108
postdeps=$lt_postdeps_GCJ
19110
# The library search path used internally by the compiler when linking
19111
# a shared library.
19112
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19114
# Method to check whether dependent libraries are shared objects.
19115
deplibs_check_method=$lt_deplibs_check_method
19117
# Command to use when deplibs_check_method == file_magic.
19118
file_magic_cmd=$lt_file_magic_cmd
19120
# Flag that allows shared libraries with undefined symbols to be built.
19121
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19123
# Flag that forces no undefined symbols.
19124
no_undefined_flag=$lt_no_undefined_flag_GCJ
19126
# Commands used to finish a libtool library installation in a directory.
19127
finish_cmds=$lt_finish_cmds
19129
# Same as above, but a single script fragment to be evaled but not shown.
19130
finish_eval=$lt_finish_eval
19132
# Take the output of nm and produce a listing of raw symbols and C names.
19133
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19135
# Transform the output of nm in a proper C declaration
19136
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19138
# Transform the output of nm in a C name address pair
19139
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19141
# This is the shared library runtime path variable.
19142
runpath_var=$runpath_var
19144
# This is the shared library path variable.
19145
shlibpath_var=$shlibpath_var
19147
# Is shlibpath searched before the hard-coded library search path?
19148
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19150
# How to hardcode a shared library path into an executable.
19151
hardcode_action=$hardcode_action_GCJ
19153
# Whether we should hardcode library paths into libraries.
19154
hardcode_into_libs=$hardcode_into_libs
19156
# Flag to hardcode \$libdir into a binary during linking.
19157
# This must work even if \$libdir does not exist.
19158
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19160
# If ld is used when linking, flag to hardcode \$libdir into
19161
# a binary during linking. This must work even if \$libdir does
19163
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19165
# Whether we need a single -rpath flag with a separated argument.
19166
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19168
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19169
# resulting binary.
19170
hardcode_direct=$hardcode_direct_GCJ
19172
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19173
# resulting binary.
19174
hardcode_minus_L=$hardcode_minus_L_GCJ
19176
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19177
# the resulting binary.
19178
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19180
# Set to yes if building a shared library automatically hardcodes DIR into the library
19181
# and all subsequent libraries and executables linked against it.
19182
hardcode_automatic=$hardcode_automatic_GCJ
19184
# Variables whose values should be saved in libtool wrapper scripts and
19185
# restored at relink time.
19186
variables_saved_for_relink="$variables_saved_for_relink"
19188
# Whether libtool must link a program against all its dependency libraries.
19189
link_all_deplibs=$link_all_deplibs_GCJ
19191
# Compile-time system search path for libraries
19192
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19194
# Run-time system search path for libraries
19195
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19197
# Fix the shell variable \$srcfile for the compiler.
19198
fix_srcfile_path=$lt_fix_srcfile_path
19200
# Set to yes if exported symbols are required.
19201
always_export_symbols=$always_export_symbols_GCJ
19203
# The commands to list exported symbols.
19204
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19206
# The commands to extract the exported symbol list from a shared archive.
19207
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19209
# Symbols that should not be listed in the preloaded symbols.
19210
exclude_expsyms=$lt_exclude_expsyms_GCJ
19212
# Symbols that must always be exported.
19213
include_expsyms=$lt_include_expsyms_GCJ
19215
# ### END LIBTOOL TAG CONFIG: $tagname
19221
# If there is no Makefile yet, we rely on a make rule to execute
19222
# `config.status --recheck' to rerun these tests and create the
19223
# libtool script then.
19224
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19225
if test -f "$ltmain_in"; then
19226
test -f Makefile && make "$ltmain"
19232
ac_cpp='$CPP $CPPFLAGS'
19233
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19234
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19235
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19247
# Source file extension for RC test sources.
19250
# Object file extension for compiled RC test sources.
19254
# Code to be used in simple compile tests
19255
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19257
# Code to be used in simple link tests
19258
lt_simple_link_test_code="$lt_simple_compile_test_code"
19260
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19262
# If no C compiler was specified, use CC.
19265
# If no C compiler flags were specified, use CFLAGS.
19266
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19268
# Allow CC to be a program name with arguments.
19272
# save warnings/boilerplate of simple test code
19273
ac_outfile=conftest.$ac_objext
19274
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19275
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19276
_lt_compiler_boilerplate=`cat conftest.err`
19279
ac_outfile=conftest.$ac_objext
19280
echo "$lt_simple_link_test_code" >conftest.$ac_ext
19281
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19282
_lt_linker_boilerplate=`cat conftest.err`
19286
# Allow CC to be a program name with arguments.
19291
for cc_temp in $compiler""; do
19293
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19294
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19299
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19301
lt_cv_prog_compiler_c_o_RC=yes
19303
# The else clause should only fire when bootstrapping the
19304
# libtool distribution, otherwise you forgot to ship ltmain.sh
19305
# with your package, and you will get complaints that there are
19306
# no rules to generate ltmain.sh.
19307
if test -f "$ltmain"; then
19308
# See if we are running on zsh, and set the options which allow our commands through
19309
# without removal of \ escapes.
19310
if test -n "${ZSH_VERSION+set}" ; then
19311
setopt NO_GLOB_SUBST
19313
# Now quote all the things that may contain metacharacters while being
19314
# careful not to overquote the AC_SUBSTed values. We take copies of the
19315
# variables and quote the copies for generation of the libtool script.
19316
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19318
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19319
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19320
deplibs_check_method reload_flag reload_cmds need_locks \
19321
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19322
lt_cv_sys_global_symbol_to_c_name_address \
19323
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19324
old_postinstall_cmds old_postuninstall_cmds \
19328
lt_prog_compiler_wl_RC \
19329
lt_prog_compiler_pic_RC \
19330
lt_prog_compiler_static_RC \
19331
lt_prog_compiler_no_builtin_flag_RC \
19332
export_dynamic_flag_spec_RC \
19333
thread_safe_flag_spec_RC \
19334
whole_archive_flag_spec_RC \
19335
enable_shared_with_static_runtimes_RC \
19336
old_archive_cmds_RC \
19337
old_archive_from_new_cmds_RC \
19338
predep_objects_RC \
19339
postdep_objects_RC \
19342
compiler_lib_search_path_RC \
19344
archive_expsym_cmds_RC \
19345
postinstall_cmds_RC \
19346
postuninstall_cmds_RC \
19347
old_archive_from_expsyms_cmds_RC \
19348
allow_undefined_flag_RC \
19349
no_undefined_flag_RC \
19350
export_symbols_cmds_RC \
19351
hardcode_libdir_flag_spec_RC \
19352
hardcode_libdir_flag_spec_ld_RC \
19353
hardcode_libdir_separator_RC \
19354
hardcode_automatic_RC \
19356
module_expsym_cmds_RC \
19357
lt_cv_prog_compiler_c_o_RC \
19358
fix_srcfile_path_RC \
19359
exclude_expsyms_RC \
19360
include_expsyms_RC; do
19363
old_archive_cmds_RC | \
19364
old_archive_from_new_cmds_RC | \
19365
archive_cmds_RC | \
19366
archive_expsym_cmds_RC | \
19368
module_expsym_cmds_RC | \
19369
old_archive_from_expsyms_cmds_RC | \
19370
export_symbols_cmds_RC | \
19371
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19372
postinstall_cmds | postuninstall_cmds | \
19373
old_postinstall_cmds | old_postuninstall_cmds | \
19374
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19375
# Double-quote double-evaled strings.
19376
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19379
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19385
*'\$0 --fallback-echo"')
19386
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19392
cat <<__EOF__ >> "$cfgfile"
19393
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19395
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19397
# Shell to use when invoking shell scripts.
19400
# Whether or not to build shared libraries.
19401
build_libtool_libs=$enable_shared
19403
# Whether or not to build static libraries.
19404
build_old_libs=$enable_static
19406
# Whether or not to add -lc for building shared libraries.
19407
build_libtool_need_lc=$archive_cmds_need_lc_RC
19409
# Whether or not to disallow shared libs when runtime libs are static
19410
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19412
# Whether or not to optimize for fast installation.
19413
fast_install=$enable_fast_install
19416
host_alias=$host_alias
19420
# The build system.
19421
build_alias=$build_alias
19425
# An echo program that does not interpret backslashes.
19430
AR_FLAGS=$lt_AR_FLAGS
19435
# LTCC compiler flags.
19436
LTCFLAGS=$lt_LTCFLAGS
19438
# A language-specific compiler.
19441
# Is the compiler the GNU C compiler?
19447
# The linker used to build libraries.
19450
# Whether we need hard or soft links.
19453
# A BSD-compatible nm program.
19456
# A symbol stripping program
19459
# Used to examine libraries when file_magic_cmd begins "file"
19460
MAGIC_CMD=$MAGIC_CMD
19462
# Used on cygwin: DLL creation program.
19465
# Used on cygwin: object dumper.
19468
# Used on cygwin: assembler.
19471
# The name of the directory that contains temporary libtool files.
19474
# How to create reloadable object files.
19475
reload_flag=$lt_reload_flag
19476
reload_cmds=$lt_reload_cmds
19478
# How to pass a linker flag through the compiler.
19479
wl=$lt_lt_prog_compiler_wl_RC
19481
# Object file suffix (normally "o").
19482
objext="$ac_objext"
19484
# Old archive suffix (normally "a").
19487
# Shared library suffix (normally ".so").
19488
shrext_cmds='$shrext_cmds'
19490
# Executable file suffix (normally "").
19493
# Additional compiler flags for building library objects.
19494
pic_flag=$lt_lt_prog_compiler_pic_RC
19497
# What is the maximum length of a command?
19498
max_cmd_len=$lt_cv_sys_max_cmd_len
19500
# Does compiler simultaneously support -c and -o options?
19501
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19503
# Must we lock files when doing compilation?
19504
need_locks=$lt_need_locks
19506
# Do we need the lib prefix for modules?
19507
need_lib_prefix=$need_lib_prefix
19509
# Do we need a version for libraries?
19510
need_version=$need_version
19512
# Whether dlopen is supported.
19513
dlopen_support=$enable_dlopen
19515
# Whether dlopen of programs is supported.
19516
dlopen_self=$enable_dlopen_self
19518
# Whether dlopen of statically linked programs is supported.
19519
dlopen_self_static=$enable_dlopen_self_static
19521
# Compiler flag to prevent dynamic linking.
19522
link_static_flag=$lt_lt_prog_compiler_static_RC
19524
# Compiler flag to turn off builtin functions.
19525
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19527
# Compiler flag to allow reflexive dlopens.
19528
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19530
# Compiler flag to generate shared objects directly from archives.
19531
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19533
# Compiler flag to generate thread-safe objects.
19534
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19536
# Library versioning type.
19537
version_type=$version_type
19539
# Format of library name prefix.
19540
libname_spec=$lt_libname_spec
19542
# List of archive names. First name is the real one, the rest are links.
19543
# The last name is the one that the linker finds with -lNAME.
19544
library_names_spec=$lt_library_names_spec
19546
# The coded name of the library, if different from the real name.
19547
soname_spec=$lt_soname_spec
19549
# Commands used to build and install an old-style archive.
19551
old_archive_cmds=$lt_old_archive_cmds_RC
19552
old_postinstall_cmds=$lt_old_postinstall_cmds
19553
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19555
# Create an old-style archive from a shared archive.
19556
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19558
# Create a temporary old-style archive to link instead of a shared archive.
19559
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19561
# Commands used to build and install a shared archive.
19562
archive_cmds=$lt_archive_cmds_RC
19563
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19564
postinstall_cmds=$lt_postinstall_cmds
19565
postuninstall_cmds=$lt_postuninstall_cmds
19567
# Commands used to build a loadable module (assumed same as above if empty)
19568
module_cmds=$lt_module_cmds_RC
19569
module_expsym_cmds=$lt_module_expsym_cmds_RC
19571
# Commands to strip libraries.
19572
old_striplib=$lt_old_striplib
19573
striplib=$lt_striplib
19575
# Dependencies to place before the objects being linked to create a
19577
predep_objects=$lt_predep_objects_RC
19579
# Dependencies to place after the objects being linked to create a
19581
postdep_objects=$lt_postdep_objects_RC
19583
# Dependencies to place before the objects being linked to create a
19585
predeps=$lt_predeps_RC
19587
# Dependencies to place after the objects being linked to create a
19589
postdeps=$lt_postdeps_RC
19591
# The library search path used internally by the compiler when linking
19592
# a shared library.
19593
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19595
# Method to check whether dependent libraries are shared objects.
19596
deplibs_check_method=$lt_deplibs_check_method
19598
# Command to use when deplibs_check_method == file_magic.
19599
file_magic_cmd=$lt_file_magic_cmd
19601
# Flag that allows shared libraries with undefined symbols to be built.
19602
allow_undefined_flag=$lt_allow_undefined_flag_RC
19604
# Flag that forces no undefined symbols.
19605
no_undefined_flag=$lt_no_undefined_flag_RC
19607
# Commands used to finish a libtool library installation in a directory.
19608
finish_cmds=$lt_finish_cmds
19610
# Same as above, but a single script fragment to be evaled but not shown.
19611
finish_eval=$lt_finish_eval
19613
# Take the output of nm and produce a listing of raw symbols and C names.
19614
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19616
# Transform the output of nm in a proper C declaration
19617
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19619
# Transform the output of nm in a C name address pair
19620
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19622
# This is the shared library runtime path variable.
19623
runpath_var=$runpath_var
19625
# This is the shared library path variable.
19626
shlibpath_var=$shlibpath_var
19628
# Is shlibpath searched before the hard-coded library search path?
19629
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19631
# How to hardcode a shared library path into an executable.
19632
hardcode_action=$hardcode_action_RC
19634
# Whether we should hardcode library paths into libraries.
19635
hardcode_into_libs=$hardcode_into_libs
19637
# Flag to hardcode \$libdir into a binary during linking.
19638
# This must work even if \$libdir does not exist.
19639
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19641
# If ld is used when linking, flag to hardcode \$libdir into
19642
# a binary during linking. This must work even if \$libdir does
19644
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19646
# Whether we need a single -rpath flag with a separated argument.
19647
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19649
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19650
# resulting binary.
19651
hardcode_direct=$hardcode_direct_RC
19653
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19654
# resulting binary.
19655
hardcode_minus_L=$hardcode_minus_L_RC
19657
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19658
# the resulting binary.
19659
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19661
# Set to yes if building a shared library automatically hardcodes DIR into the library
19662
# and all subsequent libraries and executables linked against it.
19663
hardcode_automatic=$hardcode_automatic_RC
19665
# Variables whose values should be saved in libtool wrapper scripts and
19666
# restored at relink time.
19667
variables_saved_for_relink="$variables_saved_for_relink"
19669
# Whether libtool must link a program against all its dependency libraries.
19670
link_all_deplibs=$link_all_deplibs_RC
19672
# Compile-time system search path for libraries
19673
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19675
# Run-time system search path for libraries
19676
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19678
# Fix the shell variable \$srcfile for the compiler.
19679
fix_srcfile_path=$lt_fix_srcfile_path
19681
# Set to yes if exported symbols are required.
19682
always_export_symbols=$always_export_symbols_RC
19684
# The commands to list exported symbols.
19685
export_symbols_cmds=$lt_export_symbols_cmds_RC
19687
# The commands to extract the exported symbol list from a shared archive.
19688
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19690
# Symbols that should not be listed in the preloaded symbols.
19691
exclude_expsyms=$lt_exclude_expsyms_RC
19693
# Symbols that must always be exported.
19694
include_expsyms=$lt_include_expsyms_RC
19696
# ### END LIBTOOL TAG CONFIG: $tagname
19702
# If there is no Makefile yet, we rely on a make rule to execute
19703
# `config.status --recheck' to rerun these tests and create the
19704
# libtool script then.
19705
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19706
if test -f "$ltmain_in"; then
19707
test -f Makefile && make "$ltmain"
19713
ac_cpp='$CPP $CPPFLAGS'
19714
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19715
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19716
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19723
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19724
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19725
{ (exit 1); exit 1; }; }
19729
# Append the new tag name to the list of available tags.
19730
if test -n "$tagname" ; then
19731
available_tags="$available_tags $tagname"
19737
# Now substitute the updated list of available tags.
19738
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19739
mv "${ofile}T" "$ofile"
19743
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19744
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19745
{ (exit 1); exit 1; }; }
19751
# This can be used to rebuild libtool when needed
19752
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19754
# Always use our own libtool.
19755
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19757
# Prevent multiple expansion
14999
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15000
$as_echo "$hardcode_action_CXX" >&6; }
15002
if test "$hardcode_action_CXX" = relink ||
15003
test "$inherit_rpath_CXX" = yes; then
15004
# Fast installation is not supported
15005
enable_fast_install=no
15006
elif test "$shlibpath_overrides_runpath" = yes ||
15007
test "$enable_shared" = no; then
15008
# Fast installation is not necessary
15009
enable_fast_install=needless
15018
fi # test -n "$compiler"
15024
with_gnu_ld=$lt_save_with_gnu_ld
15025
lt_cv_path_LDCXX=$lt_cv_path_LD
15026
lt_cv_path_LD=$lt_save_path_LD
15027
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15028
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15029
fi # test "$_lt_caught_CXX_error" != yes
15032
ac_cpp='$CPP $CPPFLAGS'
15033
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15034
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15035
ac_compiler_gnu=$ac_cv_c_compiler_gnu
15049
ac_config_commands="$ac_config_commands libtool"
15054
# Only expand once:
19778
15057
case "$host_os" in