6545
6346
lt_cv_sys_global_symbol_to_cdecl=
6547
6348
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6548
{ echo "$as_me:$LINENO: result: failed" >&5
6549
echo "${ECHO_T}failed" >&6; }
6551
{ echo "$as_me:$LINENO: result: ok" >&5
6552
echo "${ECHO_T}ok" >&6; }
6555
{ echo "$as_me:$LINENO: checking for objdir" >&5
6556
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6557
if test "${lt_cv_objdir+set}" = set; then
6558
echo $ECHO_N "(cached) $ECHO_C" >&6
6349
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6350
$as_echo "failed" >&6; }
6352
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6353
$as_echo "ok" >&6; }
6378
# Check whether --enable-libtool-lock was given.
6379
if test "${enable_libtool_lock+set}" = set; then :
6380
enableval=$enable_libtool_lock;
6383
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6385
# Some flags need to be propagated to the compiler or linker for good
6389
# Find out which ABI we are using.
6390
echo 'int i;' > conftest.$ac_ext
6391
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6392
(eval $ac_compile) 2>&5
6394
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6395
test $ac_status = 0; }; then
6396
case `/usr/bin/file conftest.$ac_objext` in
6408
# Find out which ABI we are using.
6409
echo '#line 6409 "configure"' > conftest.$ac_ext
6410
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6411
(eval $ac_compile) 2>&5
6413
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6414
test $ac_status = 0; }; then
6415
if test "$lt_cv_prog_gnu_ld" = yes; then
6416
case `/usr/bin/file conftest.$ac_objext` in
6418
LD="${LD-ld} -melf32bsmip"
6421
LD="${LD-ld} -melf32bmipn32"
6424
LD="${LD-ld} -melf64bmip"
6428
case `/usr/bin/file conftest.$ac_objext` in
6444
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6445
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6446
# Find out which ABI we are using.
6447
echo 'int i;' > conftest.$ac_ext
6448
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6449
(eval $ac_compile) 2>&5
6451
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6452
test $ac_status = 0; }; then
6453
case `/usr/bin/file conftest.o` in
6456
x86_64-*kfreebsd*-gnu)
6457
LD="${LD-ld} -m elf_i386_fbsd"
6460
LD="${LD-ld} -m elf_i386"
6462
ppc64-*linux*|powerpc64-*linux*)
6463
LD="${LD-ld} -m elf32ppclinux"
6466
LD="${LD-ld} -m elf_s390"
6469
LD="${LD-ld} -m elf32_sparc"
6475
x86_64-*kfreebsd*-gnu)
6476
LD="${LD-ld} -m elf_x86_64_fbsd"
6479
LD="${LD-ld} -m elf_x86_64"
6481
ppc*-*linux*|powerpc*-*linux*)
6482
LD="${LD-ld} -m elf64ppc"
6484
s390*-*linux*|s390*-*tpf*)
6485
LD="${LD-ld} -m elf64_s390"
6488
LD="${LD-ld} -m elf64_sparc"
6498
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
6499
SAVE_CFLAGS="$CFLAGS"
6500
CFLAGS="$CFLAGS -belf"
6501
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6502
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6503
if test "${lt_cv_cc_needs_belf+set}" = set; then :
6504
$as_echo_n "(cached) " >&6
6507
ac_cpp='$CPP $CPPFLAGS'
6508
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6509
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6510
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6512
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6513
/* end confdefs.h. */
6523
if ac_fn_c_try_link "$LINENO"; then :
6524
lt_cv_cc_needs_belf=yes
6526
lt_cv_cc_needs_belf=no
6528
rm -f core conftest.err conftest.$ac_objext \
6529
conftest$ac_exeext conftest.$ac_ext
6531
ac_cpp='$CPP $CPPFLAGS'
6532
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6533
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6534
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6537
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6538
$as_echo "$lt_cv_cc_needs_belf" >&6; }
6539
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6540
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6541
CFLAGS="$SAVE_CFLAGS"
6545
# Find out which ABI we are using.
6546
echo 'int i;' > conftest.$ac_ext
6547
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6548
(eval $ac_compile) 2>&5
6550
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6551
test $ac_status = 0; }; then
6552
case `/usr/bin/file conftest.o` in
6554
case $lt_cv_prog_gnu_ld in
6555
yes*) LD="${LD-ld} -m elf64_sparc" ;;
6557
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6569
need_locks="$enable_libtool_lock"
6573
rhapsody* | darwin*)
6574
if test -n "$ac_tool_prefix"; then
6575
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6576
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6577
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6578
$as_echo_n "checking for $ac_word... " >&6; }
6579
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6580
$as_echo_n "(cached) " >&6
6582
if test -n "$DSYMUTIL"; then
6583
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6585
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6589
test -z "$as_dir" && as_dir=.
6590
for ac_exec_ext in '' $ac_executable_extensions; do
6591
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6592
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6593
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6602
DSYMUTIL=$ac_cv_prog_DSYMUTIL
6603
if test -n "$DSYMUTIL"; then
6604
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6605
$as_echo "$DSYMUTIL" >&6; }
6607
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6608
$as_echo "no" >&6; }
6613
if test -z "$ac_cv_prog_DSYMUTIL"; then
6614
ac_ct_DSYMUTIL=$DSYMUTIL
6615
# Extract the first word of "dsymutil", so it can be a program name with args.
6616
set dummy dsymutil; ac_word=$2
6617
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6618
$as_echo_n "checking for $ac_word... " >&6; }
6619
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6620
$as_echo_n "(cached) " >&6
6622
if test -n "$ac_ct_DSYMUTIL"; then
6623
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6625
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6629
test -z "$as_dir" && as_dir=.
6630
for ac_exec_ext in '' $ac_executable_extensions; do
6631
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6632
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6633
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6642
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6643
if test -n "$ac_ct_DSYMUTIL"; then
6644
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6645
$as_echo "$ac_ct_DSYMUTIL" >&6; }
6647
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6648
$as_echo "no" >&6; }
6651
if test "x$ac_ct_DSYMUTIL" = x; then
6654
case $cross_compiling:$ac_tool_warned in
6656
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6657
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6658
ac_tool_warned=yes ;;
6660
DSYMUTIL=$ac_ct_DSYMUTIL
6663
DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6666
if test -n "$ac_tool_prefix"; then
6667
# Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6668
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6669
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6670
$as_echo_n "checking for $ac_word... " >&6; }
6671
if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6672
$as_echo_n "(cached) " >&6
6674
if test -n "$NMEDIT"; then
6675
ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6677
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6681
test -z "$as_dir" && as_dir=.
6682
for ac_exec_ext in '' $ac_executable_extensions; do
6683
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6684
ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6685
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6694
NMEDIT=$ac_cv_prog_NMEDIT
6695
if test -n "$NMEDIT"; then
6696
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6697
$as_echo "$NMEDIT" >&6; }
6699
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6700
$as_echo "no" >&6; }
6705
if test -z "$ac_cv_prog_NMEDIT"; then
6706
ac_ct_NMEDIT=$NMEDIT
6707
# Extract the first word of "nmedit", so it can be a program name with args.
6708
set dummy nmedit; ac_word=$2
6709
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6710
$as_echo_n "checking for $ac_word... " >&6; }
6711
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6712
$as_echo_n "(cached) " >&6
6714
if test -n "$ac_ct_NMEDIT"; then
6715
ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6717
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6721
test -z "$as_dir" && as_dir=.
6722
for ac_exec_ext in '' $ac_executable_extensions; do
6723
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6724
ac_cv_prog_ac_ct_NMEDIT="nmedit"
6725
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6734
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6735
if test -n "$ac_ct_NMEDIT"; then
6736
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6737
$as_echo "$ac_ct_NMEDIT" >&6; }
6739
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6740
$as_echo "no" >&6; }
6743
if test "x$ac_ct_NMEDIT" = x; then
6746
case $cross_compiling:$ac_tool_warned in
6748
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6749
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6750
ac_tool_warned=yes ;;
6752
NMEDIT=$ac_ct_NMEDIT
6755
NMEDIT="$ac_cv_prog_NMEDIT"
6758
if test -n "$ac_tool_prefix"; then
6759
# Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6760
set dummy ${ac_tool_prefix}lipo; ac_word=$2
6761
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6762
$as_echo_n "checking for $ac_word... " >&6; }
6763
if test "${ac_cv_prog_LIPO+set}" = set; then :
6764
$as_echo_n "(cached) " >&6
6766
if test -n "$LIPO"; then
6767
ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6769
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6773
test -z "$as_dir" && as_dir=.
6774
for ac_exec_ext in '' $ac_executable_extensions; do
6775
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6776
ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6777
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6786
LIPO=$ac_cv_prog_LIPO
6787
if test -n "$LIPO"; then
6788
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6789
$as_echo "$LIPO" >&6; }
6791
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6792
$as_echo "no" >&6; }
6797
if test -z "$ac_cv_prog_LIPO"; then
6799
# Extract the first word of "lipo", so it can be a program name with args.
6800
set dummy lipo; ac_word=$2
6801
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6802
$as_echo_n "checking for $ac_word... " >&6; }
6803
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6804
$as_echo_n "(cached) " >&6
6806
if test -n "$ac_ct_LIPO"; then
6807
ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6809
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6813
test -z "$as_dir" && as_dir=.
6814
for ac_exec_ext in '' $ac_executable_extensions; do
6815
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6816
ac_cv_prog_ac_ct_LIPO="lipo"
6817
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6826
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6827
if test -n "$ac_ct_LIPO"; then
6828
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6829
$as_echo "$ac_ct_LIPO" >&6; }
6831
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6832
$as_echo "no" >&6; }
6835
if test "x$ac_ct_LIPO" = x; then
6838
case $cross_compiling:$ac_tool_warned in
6840
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6841
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6842
ac_tool_warned=yes ;;
6847
LIPO="$ac_cv_prog_LIPO"
6850
if test -n "$ac_tool_prefix"; then
6851
# Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6852
set dummy ${ac_tool_prefix}otool; ac_word=$2
6853
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6854
$as_echo_n "checking for $ac_word... " >&6; }
6855
if test "${ac_cv_prog_OTOOL+set}" = set; then :
6856
$as_echo_n "(cached) " >&6
6858
if test -n "$OTOOL"; then
6859
ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6861
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6865
test -z "$as_dir" && as_dir=.
6866
for ac_exec_ext in '' $ac_executable_extensions; do
6867
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6868
ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6869
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6878
OTOOL=$ac_cv_prog_OTOOL
6879
if test -n "$OTOOL"; then
6880
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6881
$as_echo "$OTOOL" >&6; }
6883
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6884
$as_echo "no" >&6; }
6889
if test -z "$ac_cv_prog_OTOOL"; then
6891
# Extract the first word of "otool", so it can be a program name with args.
6892
set dummy otool; ac_word=$2
6893
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6894
$as_echo_n "checking for $ac_word... " >&6; }
6895
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6896
$as_echo_n "(cached) " >&6
6898
if test -n "$ac_ct_OTOOL"; then
6899
ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6901
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6905
test -z "$as_dir" && as_dir=.
6906
for ac_exec_ext in '' $ac_executable_extensions; do
6907
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6908
ac_cv_prog_ac_ct_OTOOL="otool"
6909
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6918
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6919
if test -n "$ac_ct_OTOOL"; then
6920
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6921
$as_echo "$ac_ct_OTOOL" >&6; }
6923
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6924
$as_echo "no" >&6; }
6927
if test "x$ac_ct_OTOOL" = x; then
6930
case $cross_compiling:$ac_tool_warned in
6932
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6933
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6934
ac_tool_warned=yes ;;
6939
OTOOL="$ac_cv_prog_OTOOL"
6942
if test -n "$ac_tool_prefix"; then
6943
# Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6944
set dummy ${ac_tool_prefix}otool64; ac_word=$2
6945
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6946
$as_echo_n "checking for $ac_word... " >&6; }
6947
if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6948
$as_echo_n "(cached) " >&6
6950
if test -n "$OTOOL64"; then
6951
ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6953
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6957
test -z "$as_dir" && as_dir=.
6958
for ac_exec_ext in '' $ac_executable_extensions; do
6959
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6960
ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6961
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6970
OTOOL64=$ac_cv_prog_OTOOL64
6971
if test -n "$OTOOL64"; then
6972
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6973
$as_echo "$OTOOL64" >&6; }
6975
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6976
$as_echo "no" >&6; }
6981
if test -z "$ac_cv_prog_OTOOL64"; then
6982
ac_ct_OTOOL64=$OTOOL64
6983
# Extract the first word of "otool64", so it can be a program name with args.
6984
set dummy otool64; ac_word=$2
6985
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6986
$as_echo_n "checking for $ac_word... " >&6; }
6987
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6988
$as_echo_n "(cached) " >&6
6990
if test -n "$ac_ct_OTOOL64"; then
6991
ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6993
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6997
test -z "$as_dir" && as_dir=.
6998
for ac_exec_ext in '' $ac_executable_extensions; do
6999
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7000
ac_cv_prog_ac_ct_OTOOL64="otool64"
7001
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7010
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7011
if test -n "$ac_ct_OTOOL64"; then
7012
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7013
$as_echo "$ac_ct_OTOOL64" >&6; }
7015
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7016
$as_echo "no" >&6; }
7019
if test "x$ac_ct_OTOOL64" = x; then
7022
case $cross_compiling:$ac_tool_warned in
7024
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7025
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7026
ac_tool_warned=yes ;;
7028
OTOOL64=$ac_ct_OTOOL64
7031
OTOOL64="$ac_cv_prog_OTOOL64"
7060
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7061
$as_echo_n "checking for -single_module linker flag... " >&6; }
7062
if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7063
$as_echo_n "(cached) " >&6
7065
lt_cv_apple_cc_single_mod=no
7066
if test -z "${LT_MULTI_MODULE}"; then
7067
# By default we will add the -single_module flag. You can override
7068
# by either setting the environment variable LT_MULTI_MODULE
7069
# non-empty at configure time, or by adding -multi_module to the
7071
rm -rf libconftest.dylib*
7072
echo "int foo(void){return 1;}" > conftest.c
7073
echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7074
-dynamiclib -Wl,-single_module conftest.c" >&5
7075
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7076
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7078
if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7079
lt_cv_apple_cc_single_mod=yes
7081
cat conftest.err >&5
7083
rm -rf libconftest.dylib*
7087
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7088
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7089
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7090
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7091
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7092
$as_echo_n "(cached) " >&6
7094
lt_cv_ld_exported_symbols_list=no
7095
save_LDFLAGS=$LDFLAGS
7096
echo "_main" > conftest.sym
7097
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7098
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7099
/* end confdefs.h. */
7109
if ac_fn_c_try_link "$LINENO"; then :
7110
lt_cv_ld_exported_symbols_list=yes
7112
lt_cv_ld_exported_symbols_list=no
7114
rm -f core conftest.err conftest.$ac_objext \
7115
conftest$ac_exeext conftest.$ac_ext
7116
LDFLAGS="$save_LDFLAGS"
7119
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7120
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7122
rhapsody* | darwin1.[012])
7123
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7125
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7126
darwin*) # darwin 5.x on
7127
# if running on 10.5 or later, the deployment target defaults
7128
# to the OS version, if on x86, and 10.4, the deployment
7129
# target defaults to 10.4. Don't you love it?
7130
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7131
10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7132
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7134
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7136
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7140
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7141
_lt_dar_single_mod='$single_module'
7143
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7144
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7146
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7148
if test "$DSYMUTIL" != ":"; then
7149
_lt_dsymutil='~$DSYMUTIL $lib || :'
7157
ac_cpp='$CPP $CPPFLAGS'
7158
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7159
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7160
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7161
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7162
$as_echo_n "checking how to run the C preprocessor... " >&6; }
7163
# On Suns, sometimes $CPP names a directory.
7164
if test -n "$CPP" && test -d "$CPP"; then
7167
if test -z "$CPP"; then
7168
if test "${ac_cv_prog_CPP+set}" = set; then :
7169
$as_echo_n "(cached) " >&6
7171
# Double quotes because CPP needs to be expanded
7172
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7175
for ac_c_preproc_warn_flag in '' yes
7177
# Use a header file that comes with gcc, so configuring glibc
7178
# with a fresh cross-compiler works.
7179
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7180
# <limits.h> exists even on freestanding compilers.
7181
# On the NeXT, cc -E runs the code through the compiler's parser,
7182
# not just through cpp. "Syntax error" is here to catch this case.
7183
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7184
/* end confdefs.h. */
7186
# include <limits.h>
7188
# include <assert.h>
7192
if ac_fn_c_try_cpp "$LINENO"; then :
7195
# Broken: fails on valid input.
7198
rm -f conftest.err conftest.$ac_ext
7200
# OK, works on sane cases. Now check whether nonexistent headers
7201
# can be detected and how.
7202
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7203
/* end confdefs.h. */
7204
#include <ac_nonexistent.h>
7206
if ac_fn_c_try_cpp "$LINENO"; then :
7207
# Broken: success on invalid input.
7210
# Passes both tests.
7214
rm -f conftest.err conftest.$ac_ext
7217
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7218
rm -f conftest.err conftest.$ac_ext
7219
if $ac_preproc_ok; then :
7231
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7232
$as_echo "$CPP" >&6; }
7234
for ac_c_preproc_warn_flag in '' yes
7236
# Use a header file that comes with gcc, so configuring glibc
7237
# with a fresh cross-compiler works.
7238
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7239
# <limits.h> exists even on freestanding compilers.
7240
# On the NeXT, cc -E runs the code through the compiler's parser,
7241
# not just through cpp. "Syntax error" is here to catch this case.
7242
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7243
/* end confdefs.h. */
7245
# include <limits.h>
7247
# include <assert.h>
7251
if ac_fn_c_try_cpp "$LINENO"; then :
7254
# Broken: fails on valid input.
7257
rm -f conftest.err conftest.$ac_ext
7259
# OK, works on sane cases. Now check whether nonexistent headers
7260
# can be detected and how.
7261
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7262
/* end confdefs.h. */
7263
#include <ac_nonexistent.h>
7265
if ac_fn_c_try_cpp "$LINENO"; then :
7266
# Broken: success on invalid input.
7269
# Passes both tests.
7273
rm -f conftest.err conftest.$ac_ext
7276
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7277
rm -f conftest.err conftest.$ac_ext
7278
if $ac_preproc_ok; then :
7281
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7282
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7283
as_fn_error "C preprocessor \"$CPP\" fails sanity check
7284
See \`config.log' for more details." "$LINENO" 5; }
7288
ac_cpp='$CPP $CPPFLAGS'
7289
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7290
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7291
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7294
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7295
$as_echo_n "checking for ANSI C header files... " >&6; }
7296
if test "${ac_cv_header_stdc+set}" = set; then :
7297
$as_echo_n "(cached) " >&6
7299
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7300
/* end confdefs.h. */
7314
if ac_fn_c_try_compile "$LINENO"; then :
7315
ac_cv_header_stdc=yes
7317
ac_cv_header_stdc=no
7319
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7321
if test $ac_cv_header_stdc = yes; then
7322
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7323
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7324
/* end confdefs.h. */
7328
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7329
$EGREP "memchr" >/dev/null 2>&1; then :
7332
ac_cv_header_stdc=no
7338
if test $ac_cv_header_stdc = yes; then
7339
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7340
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7341
/* end confdefs.h. */
7345
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7346
$EGREP "free" >/dev/null 2>&1; then :
7349
ac_cv_header_stdc=no
7355
if test $ac_cv_header_stdc = yes; then
7356
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7357
if test "$cross_compiling" = yes; then :
7360
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7361
/* end confdefs.h. */
7364
#if ((' ' & 0x0FF) == 0x020)
7365
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7366
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7368
# define ISLOWER(c) \
7369
(('a' <= (c) && (c) <= 'i') \
7370
|| ('j' <= (c) && (c) <= 'r') \
7371
|| ('s' <= (c) && (c) <= 'z'))
7372
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7375
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7380
for (i = 0; i < 256; i++)
7381
if (XOR (islower (i), ISLOWER (i))
7382
|| toupper (i) != TOUPPER (i))
7387
if ac_fn_c_try_run "$LINENO"; then :
7390
ac_cv_header_stdc=no
7392
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7393
conftest.$ac_objext conftest.beam conftest.$ac_ext
7398
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7399
$as_echo "$ac_cv_header_stdc" >&6; }
7400
if test $ac_cv_header_stdc = yes; then
7402
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7406
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7407
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7408
inttypes.h stdint.h unistd.h
7410
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7411
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7413
eval as_val=\$$as_ac_Header
7414
if test "x$as_val" = x""yes; then :
7415
cat >>confdefs.h <<_ACEOF
7416
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7424
for ac_header in dlfcn.h
7426
ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7428
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7429
cat >>confdefs.h <<_ACEOF
7430
#define HAVE_DLFCN_H 1
7440
ac_cpp='$CXXCPP $CPPFLAGS'
7441
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7442
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7443
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7444
if test -z "$CXX"; then
7445
if test -n "$CCC"; then
7448
if test -n "$ac_tool_prefix"; then
7449
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7451
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7452
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7453
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7454
$as_echo_n "checking for $ac_word... " >&6; }
7455
if test "${ac_cv_prog_CXX+set}" = set; then :
7456
$as_echo_n "(cached) " >&6
7458
if test -n "$CXX"; then
7459
ac_cv_prog_CXX="$CXX" # Let the user override the test.
7461
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7465
test -z "$as_dir" && as_dir=.
7466
for ac_exec_ext in '' $ac_executable_extensions; do
7467
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7468
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7469
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7479
if test -n "$CXX"; then
7480
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7481
$as_echo "$CXX" >&6; }
7483
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7484
$as_echo "no" >&6; }
7488
test -n "$CXX" && break
7491
if test -z "$CXX"; then
7493
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7495
# Extract the first word of "$ac_prog", so it can be a program name with args.
7496
set dummy $ac_prog; ac_word=$2
7497
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7498
$as_echo_n "checking for $ac_word... " >&6; }
7499
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
7500
$as_echo_n "(cached) " >&6
7502
if test -n "$ac_ct_CXX"; then
7503
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7505
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7509
test -z "$as_dir" && as_dir=.
7510
for ac_exec_ext in '' $ac_executable_extensions; do
7511
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7512
ac_cv_prog_ac_ct_CXX="$ac_prog"
7513
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7522
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7523
if test -n "$ac_ct_CXX"; then
7524
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7525
$as_echo "$ac_ct_CXX" >&6; }
7527
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7528
$as_echo "no" >&6; }
7532
test -n "$ac_ct_CXX" && break
7535
if test "x$ac_ct_CXX" = x; then
7538
case $cross_compiling:$ac_tool_warned in
7540
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7541
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7542
ac_tool_warned=yes ;;
7550
# Provide some information about the compiler.
7551
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7554
for ac_option in --version -v -V -qversion; do
7555
{ { ac_try="$ac_compiler $ac_option >&5"
7557
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7558
*) ac_try_echo=$ac_try;;
7560
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7561
$as_echo "$ac_try_echo"; } >&5
7562
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
7564
if test -s conftest.err; then
7566
... rest of stderr output deleted ...
7567
10q' conftest.err >conftest.er1
7568
cat conftest.er1 >&5
7569
rm -f conftest.er1 conftest.err
7571
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7572
test $ac_status = 0; }
7575
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7576
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7577
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
7578
$as_echo_n "(cached) " >&6
7580
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7581
/* end confdefs.h. */
7594
if ac_fn_cxx_try_compile "$LINENO"; then :
7599
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7600
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7603
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7604
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7605
if test $ac_compiler_gnu = yes; then
7610
ac_test_CXXFLAGS=${CXXFLAGS+set}
7611
ac_save_CXXFLAGS=$CXXFLAGS
7612
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7613
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
7614
if test "${ac_cv_prog_cxx_g+set}" = set; then :
7615
$as_echo_n "(cached) " >&6
7617
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7618
ac_cxx_werror_flag=yes
7621
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7622
/* end confdefs.h. */
7632
if ac_fn_cxx_try_compile "$LINENO"; then :
7633
ac_cv_prog_cxx_g=yes
7636
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7637
/* end confdefs.h. */
7647
if ac_fn_cxx_try_compile "$LINENO"; then :
7650
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7652
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7653
/* end confdefs.h. */
7663
if ac_fn_cxx_try_compile "$LINENO"; then :
7664
ac_cv_prog_cxx_g=yes
7666
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7668
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7670
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7671
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7673
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7674
$as_echo "$ac_cv_prog_cxx_g" >&6; }
7675
if test "$ac_test_CXXFLAGS" = set; then
7676
CXXFLAGS=$ac_save_CXXFLAGS
7677
elif test $ac_cv_prog_cxx_g = yes; then
7678
if test "$GXX" = yes; then
7684
if test "$GXX" = yes; then
7691
ac_cpp='$CPP $CPPFLAGS'
7692
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7693
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7694
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7696
depcc="$CXX" am_compiler_list=
7698
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7699
$as_echo_n "checking dependency style of $depcc... " >&6; }
7700
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
7701
$as_echo_n "(cached) " >&6
7703
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7704
# We make a subdir and do the tests there. Otherwise we can end up
7705
# making bogus files that we don't know about and never remove. For
7706
# instance it was reported that on HP-UX the gcc test will end up
7707
# making a dummy file named `D' -- because `-MD' means `put the output
7710
# Copy depcomp to subdir because otherwise we won't find it if we're
7711
# using a relative directory.
7712
cp "$am_depcomp" conftest.dir
7714
# We will build objects and dependencies in a subdirectory because
7715
# it helps to detect inapplicable dependency modes. For instance
7716
# both Tru64's cc and ICC support -MD to output dependencies as a
7717
# side effect of compilation, but ICC will put the dependencies in
7718
# the current directory while Tru64 will put them in the object
7722
am_cv_CXX_dependencies_compiler_type=none
7723
if test "$am_compiler_list" = ""; then
7724
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7727
case " $depcc " in #(
7728
*\ -arch\ *\ -arch\ *) am__universal=true ;;
7731
for depmode in $am_compiler_list; do
7732
# Setup a source with many dependencies, because some compilers
7733
# like to wrap large dependency lists on column 80 (with \), and
7734
# we should not choose a depcomp mode which is confused by this.
7736
# We need to recreate these files for each test, as the compiler may
7737
# overwrite some of them when testing with obscure command lines.
7738
# This happens at least with the AIX C compiler.
7740
for i in 1 2 3 4 5 6; do
7741
echo '#include "conftst'$i'.h"' >> sub/conftest.c
7742
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7743
# Solaris 8's {/usr,}/bin/sh.
7744
touch sub/conftst$i.h
7746
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7748
# We check with `-c' and `-o' for the sake of the "dashmstdout"
7749
# mode. It turns out that the SunPro C++ compiler does not properly
7750
# handle `-M -o', and we need to detect this. Also, some Intel
7751
# versions had trouble with output in subdirs
7752
am__obj=sub/conftest.${OBJEXT-o}
7753
am__minus_obj="-o $am__obj"
7756
# This depmode causes a compiler race in universal mode.
7757
test "$am__universal" = false || continue
7760
# after this tag, mechanisms are not by side-effect, so they'll
7761
# only be used when explicitly requested
7762
if test "x$enable_dependency_tracking" = xyes; then
7768
msvisualcpp | msvcmsys)
7769
# This compiler won't grok `-c -o', but also, the minuso test has
7770
# not run yet. These depmodes are late enough in the game, and
7771
# so weak that their functioning should not be impacted.
7772
am__obj=conftest.${OBJEXT-o}
7777
if depmode=$depmode \
7778
source=sub/conftest.c object=$am__obj \
7779
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7780
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7781
>/dev/null 2>conftest.err &&
7782
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7783
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7784
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7785
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7786
# icc doesn't choke on unknown options, it will just issue warnings
7787
# or remarks (even with -Werror). So we grep stderr for any message
7788
# that says an option was ignored or not supported.
7789
# When given -MP, icc 7.0 and 7.1 complain thusly:
7790
# icc: Command line warning: ignoring option '-M'; no argument required
7791
# The diagnosis changed in icc 8.0:
7792
# icc: Command line remark: option '-MP' not supported
7793
if (grep 'ignoring option' conftest.err ||
7794
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7795
am_cv_CXX_dependencies_compiler_type=$depmode
7804
am_cv_CXX_dependencies_compiler_type=none
7808
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7809
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7810
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7813
test "x$enable_dependency_tracking" != xno \
7814
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7815
am__fastdepCXX_TRUE=
7816
am__fastdepCXX_FALSE='#'
7818
am__fastdepCXX_TRUE='#'
7819
am__fastdepCXX_FALSE=
7823
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7824
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7825
(test "X$CXX" != "Xg++"))) ; then
7827
ac_cpp='$CXXCPP $CPPFLAGS'
7828
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7829
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7830
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7831
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
7832
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
7833
if test -z "$CXXCPP"; then
7834
if test "${ac_cv_prog_CXXCPP+set}" = set; then :
7835
$as_echo_n "(cached) " >&6
7837
# Double quotes because CXXCPP needs to be expanded
7838
for CXXCPP in "$CXX -E" "/lib/cpp"
7841
for ac_cxx_preproc_warn_flag in '' yes
7843
# Use a header file that comes with gcc, so configuring glibc
7844
# with a fresh cross-compiler works.
7845
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7846
# <limits.h> exists even on freestanding compilers.
7847
# On the NeXT, cc -E runs the code through the compiler's parser,
7848
# not just through cpp. "Syntax error" is here to catch this case.
7849
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7850
/* end confdefs.h. */
7852
# include <limits.h>
7854
# include <assert.h>
7858
if ac_fn_cxx_try_cpp "$LINENO"; then :
7861
# Broken: fails on valid input.
7864
rm -f conftest.err conftest.$ac_ext
7866
# OK, works on sane cases. Now check whether nonexistent headers
7867
# can be detected and how.
7868
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7869
/* end confdefs.h. */
7870
#include <ac_nonexistent.h>
7872
if ac_fn_cxx_try_cpp "$LINENO"; then :
7873
# Broken: success on invalid input.
7876
# Passes both tests.
7880
rm -f conftest.err conftest.$ac_ext
7883
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7884
rm -f conftest.err conftest.$ac_ext
7885
if $ac_preproc_ok; then :
7890
ac_cv_prog_CXXCPP=$CXXCPP
7893
CXXCPP=$ac_cv_prog_CXXCPP
7895
ac_cv_prog_CXXCPP=$CXXCPP
7897
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
7898
$as_echo "$CXXCPP" >&6; }
7900
for ac_cxx_preproc_warn_flag in '' yes
7902
# Use a header file that comes with gcc, so configuring glibc
7903
# with a fresh cross-compiler works.
7904
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7905
# <limits.h> exists even on freestanding compilers.
7906
# On the NeXT, cc -E runs the code through the compiler's parser,
7907
# not just through cpp. "Syntax error" is here to catch this case.
7908
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7909
/* end confdefs.h. */
7911
# include <limits.h>
7913
# include <assert.h>
7917
if ac_fn_cxx_try_cpp "$LINENO"; then :
7920
# Broken: fails on valid input.
7923
rm -f conftest.err conftest.$ac_ext
7925
# OK, works on sane cases. Now check whether nonexistent headers
7926
# can be detected and how.
7927
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7928
/* end confdefs.h. */
7929
#include <ac_nonexistent.h>
7931
if ac_fn_cxx_try_cpp "$LINENO"; then :
7932
# Broken: success on invalid input.
7935
# Passes both tests.
7939
rm -f conftest.err conftest.$ac_ext
7942
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7943
rm -f conftest.err conftest.$ac_ext
7944
if $ac_preproc_ok; then :
7947
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7948
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7949
_lt_caught_CXX_error=yes; }
7953
ac_cpp='$CPP $CPPFLAGS'
7954
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7955
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7956
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7959
_lt_caught_CXX_error=yes
7976
# Check whether --enable-shared was given.
7977
if test "${enable_shared+set}" = set; then :
7978
enableval=$enable_shared; p=${PACKAGE-default}
7980
yes) enable_shared=yes ;;
7981
no) enable_shared=no ;;
7984
# Look at the argument we got. We use all the common list separators.
7985
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7986
for pkg in $enableval; do
7988
if test "X$pkg" = "X$p"; then
8007
# Check whether --enable-static was given.
8008
if test "${enable_static+set}" = set; then :
8009
enableval=$enable_static; p=${PACKAGE-default}
8011
yes) enable_static=yes ;;
8012
no) enable_static=no ;;
8015
# Look at the argument we got. We use all the common list separators.
8016
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8017
for pkg in $enableval; do
8019
if test "X$pkg" = "X$p"; then
8039
# Check whether --with-pic was given.
8040
if test "${with_pic+set}" = set; then :
8041
withval=$with_pic; pic_mode="$withval"
8047
test -z "$pic_mode" && pic_mode=default
8055
# Check whether --enable-fast-install was given.
8056
if test "${enable_fast_install+set}" = set; then :
8057
enableval=$enable_fast_install; p=${PACKAGE-default}
8059
yes) enable_fast_install=yes ;;
8060
no) enable_fast_install=no ;;
8062
enable_fast_install=no
8063
# Look at the argument we got. We use all the common list separators.
8064
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8065
for pkg in $enableval; do
8067
if test "X$pkg" = "X$p"; then
8068
enable_fast_install=yes
8075
enable_fast_install=yes
8088
# This can be used to rebuild libtool when needed
8089
LIBTOOL_DEPS="$ltmain"
8091
# Always use our own libtool.
8092
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8118
test -z "$LN_S" && LN_S="ln -s"
8133
if test -n "${ZSH_VERSION+set}" ; then
8134
setopt NO_GLOB_SUBST
8137
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8138
$as_echo_n "checking for objdir... " >&6; }
8139
if test "${lt_cv_objdir+set}" = set; then :
8140
$as_echo_n "(cached) " >&6
6560
8142
rm -f .libs 2>/dev/null
6561
8143
mkdir .libs 2>/dev/null
10865
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10866
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11875
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11876
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
10867
11877
with_gnu_ld=$lt_cv_prog_gnu_ld
10871
# Check if GNU C++ uses GNU ld as the underlying linker, since the
10872
# archiving commands below assume that GNU ld is being used.
10873
if test "$with_gnu_ld" = yes; then
10874
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10875
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'
10877
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10878
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10880
# If archive_cmds runs LD, not CC, wlarc should be empty
10881
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10882
# investigate it a little bit more. (MM)
10885
# ancient GNU ld didn't support --whole-archive et. al.
10886
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10887
grep 'no-whole-archive' > /dev/null; then
10888
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10890
whole_archive_flag_spec_CXX=
10896
# A generic and very simple default shared library creation
10897
# command for GNU C++ for the case where it uses the native
10898
# linker, instead of GNU ld. If possible, this setting should
10899
# overridden to take advantage of the native linker features on
10900
# the platform it is being used on.
10901
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10904
# Commands to make compiler produce verbose output that lists
10905
# what "hidden" libraries, object files and flags are used when
10906
# linking a shared library.
10907
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10915
# PORTME: fill in a description of your system's C++ link characteristics
10916
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10917
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10921
# FIXME: insert proper C++ library support
10925
if test "$host_cpu" = ia64; then
10926
# On IA64, the linker does run time linking by default, so we don't
10927
# have to do anything special.
10928
aix_use_runtimelinking=no
10929
exp_sym_flag='-Bexport'
10932
aix_use_runtimelinking=no
10934
# Test if we are trying to use run time linking or normal
10935
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10936
# need to do runtime linking.
10937
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10938
for ld_flag in $LDFLAGS; do
10941
aix_use_runtimelinking=yes
10949
exp_sym_flag='-bexport'
10950
no_entry_flag='-bnoentry'
10953
# When large executables or shared objects are built, AIX ld can
10954
# have problems creating the table of contents. If linking a library
10955
# or program results in "error TOC overflow" add -mminimal-toc to
10956
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10957
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10959
archive_cmds_CXX=''
10960
hardcode_direct_CXX=yes
10961
hardcode_libdir_separator_CXX=':'
10962
link_all_deplibs_CXX=yes
10964
if test "$GXX" = yes; then
10965
case $host_os in aix4.[012]|aix4.[012].*)
10966
# We only want to do this on AIX 4.2 and lower, the check
10967
# below for broken collect2 doesn't work under 4.3+
10968
collect2name=`${CC} -print-prog-name=collect2`
10969
if test -f "$collect2name" && \
10970
strings "$collect2name" | grep resolve_lib_name >/dev/null
10972
# We have reworked collect2
10973
hardcode_direct_CXX=yes
10975
# We have old collect2
10976
hardcode_direct_CXX=unsupported
10977
# It fails to find uninstalled libraries when the uninstalled
10978
# path is not listed in the libpath. Setting hardcode_minus_L
10979
# to unsupported forces relinking
10980
hardcode_minus_L_CXX=yes
10981
hardcode_libdir_flag_spec_CXX='-L$libdir'
10982
hardcode_libdir_separator_CXX=
10986
shared_flag='-shared'
10987
if test "$aix_use_runtimelinking" = yes; then
10988
shared_flag="$shared_flag "'${wl}-G'
10992
if test "$host_cpu" = ia64; then
10993
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10994
# chokes on -Wl,-G. The following line is correct:
10997
if test "$aix_use_runtimelinking" = yes; then
10998
shared_flag='${wl}-G'
11000
shared_flag='${wl}-bM:SRE'
11005
# It seems that -bexpall does not export symbols beginning with
11006
# underscore (_), so it is better to generate a list of symbols to export.
11007
always_export_symbols_CXX=yes
11008
if test "$aix_use_runtimelinking" = yes; then
11009
# Warning - without using the other runtime loading flags (-brtl),
11010
# -berok will link without error, but may produce a broken library.
11011
allow_undefined_flag_CXX='-berok'
11012
# Determine the default libpath from the value encoded in an empty executable.
11013
cat >conftest.$ac_ext <<_ACEOF
11016
cat confdefs.h >>conftest.$ac_ext
11017
cat >>conftest.$ac_ext <<_ACEOF
11018
/* end confdefs.h. */
11028
rm -f conftest.$ac_objext conftest$ac_exeext
11029
if { (ac_try="$ac_link"
11030
case "(($ac_try" in
11031
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11032
*) ac_try_echo=$ac_try;;
11034
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11035
(eval "$ac_link") 2>conftest.er1
11037
grep -v '^ *+' conftest.er1 >conftest.err
11039
cat conftest.err >&5
11040
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041
(exit $ac_status); } && {
11042
test -z "$ac_cxx_werror_flag" ||
11043
test ! -s conftest.err
11044
} && test -s conftest$ac_exeext &&
11045
$as_test_x conftest$ac_exeext; then
11047
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11049
# Check for a 64-bit object if we didn't find anything.
11050
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11053
echo "$as_me: failed program was:" >&5
11054
sed 's/^/| /' conftest.$ac_ext >&5
11059
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11060
conftest$ac_exeext conftest.$ac_ext
11061
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11063
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11065
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"
11067
if test "$host_cpu" = ia64; then
11068
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11069
allow_undefined_flag_CXX="-z nodefs"
11070
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"
11072
# Determine the default libpath from the value encoded in an empty executable.
11073
cat >conftest.$ac_ext <<_ACEOF
11076
cat confdefs.h >>conftest.$ac_ext
11077
cat >>conftest.$ac_ext <<_ACEOF
11078
/* end confdefs.h. */
11088
rm -f conftest.$ac_objext conftest$ac_exeext
11089
if { (ac_try="$ac_link"
11090
case "(($ac_try" in
11091
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11092
*) ac_try_echo=$ac_try;;
11094
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11095
(eval "$ac_link") 2>conftest.er1
11097
grep -v '^ *+' conftest.er1 >conftest.err
11099
cat conftest.err >&5
11100
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11101
(exit $ac_status); } && {
11102
test -z "$ac_cxx_werror_flag" ||
11103
test ! -s conftest.err
11104
} && test -s conftest$ac_exeext &&
11105
$as_test_x conftest$ac_exeext; then
11107
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11109
# Check for a 64-bit object if we didn't find anything.
11110
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11113
echo "$as_me: failed program was:" >&5
11114
sed 's/^/| /' conftest.$ac_ext >&5
11119
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11120
conftest$ac_exeext conftest.$ac_ext
11121
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11123
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11124
# Warning - without using the other run time loading flags,
11125
# -berok will link without error, but may produce a broken library.
11126
no_undefined_flag_CXX=' ${wl}-bernotok'
11127
allow_undefined_flag_CXX=' ${wl}-berok'
11128
# Exported symbols can be pulled into shared objects from archives
11129
whole_archive_flag_spec_CXX='$convenience'
11130
archive_cmds_need_lc_CXX=yes
11131
# This is similar to how AIX traditionally builds its shared libraries.
11132
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'
11138
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11139
allow_undefined_flag_CXX=unsupported
11140
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11141
# support --undefined. This deserves some investigation. FIXME
11142
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11149
case $cc_basename in
11151
# FIXME: insert proper C++ library support
11157
cygwin* | mingw* | pw32*)
11158
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11159
# as there is no search path for DLLs.
11160
hardcode_libdir_flag_spec_CXX='-L$libdir'
11161
allow_undefined_flag_CXX=unsupported
11162
always_export_symbols_CXX=no
11163
enable_shared_with_static_runtimes_CXX=yes
11165
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11166
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'
11167
# If the export-symbols file already is a .def file (1st line
11168
# is EXPORTS), use it as is; otherwise, prepend...
11169
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11170
cp $export_symbols $output_objdir/$soname.def;
11172
echo EXPORTS > $output_objdir/$soname.def;
11173
cat $export_symbols >> $output_objdir/$soname.def;
11175
$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'
11180
darwin* | rhapsody*)
11182
rhapsody* | darwin1.[012])
11183
allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11186
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11187
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11189
case ${MACOSX_DEPLOYMENT_TARGET} in
11191
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11194
allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11200
archive_cmds_need_lc_CXX=no
11201
hardcode_direct_CXX=no
11202
hardcode_automatic_CXX=yes
11203
hardcode_shlibpath_var_CXX=unsupported
11204
whole_archive_flag_spec_CXX=''
11205
link_all_deplibs_CXX=yes
11207
if test "$GXX" = yes ; then
11208
lt_int_apple_cc_single_mod=no
11209
output_verbose_link_cmd='echo'
11210
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11211
lt_int_apple_cc_single_mod=yes
11213
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11214
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11216
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'
11885
# Check if GNU C++ uses GNU ld as the underlying linker, since the
11886
# archiving commands below assume that GNU ld is being used.
11887
if test "$with_gnu_ld" = yes; then
11888
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11889
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'
11891
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11892
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11894
# If archive_cmds runs LD, not CC, wlarc should be empty
11895
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11896
# investigate it a little bit more. (MM)
11899
# ancient GNU ld didn't support --whole-archive et. al.
11900
if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11901
$GREP 'no-whole-archive' > /dev/null; then
11902
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11904
whole_archive_flag_spec_CXX=
11218
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11219
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11220
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11221
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}'
11223
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}'
11225
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}'
11227
case $cc_basename in
11229
output_verbose_link_cmd='echo'
11230
archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11231
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11232
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11233
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11234
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}'
11910
# A generic and very simple default shared library creation
11911
# command for GNU C++ for the case where it uses the native
11912
# linker, instead of GNU ld. If possible, this setting should
11913
# overridden to take advantage of the native linker features on
11914
# the platform it is being used on.
11915
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11244
case $cc_basename in
11246
# FIXME: insert proper C++ library support
11250
# Green Hills C++ Compiler
11251
# FIXME: insert proper C++ library support
11255
# FIXME: insert proper C++ library support
11261
# C++ shared libraries reported to be fairly broken before switch to ELF
11265
archive_cmds_need_lc_CXX=no
11267
freebsd* | dragonfly*)
11268
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11275
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11276
hardcode_libdir_separator_CXX=:
11277
export_dynamic_flag_spec_CXX='${wl}-E'
11278
hardcode_direct_CXX=yes
11279
hardcode_minus_L_CXX=yes # Not in the search PATH,
11280
# but as the default
11281
# location of the library.
11283
case $cc_basename in
11285
# FIXME: insert proper C++ library support
11289
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'
11290
11918
# Commands to make compiler produce verbose output that lists
11291
11919
# what "hidden" libraries, object files and flags are used when
11292
11920
# linking a shared library.
11294
# There doesn't appear to be a way to prevent this compiler from
11295
# explicitly linking system object files so we need to strip them
11296
# from the output so that they don't get included in the library
11298
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'
11301
if test "$GXX" = yes; then
11302
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'
11921
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
11929
# PORTME: fill in a description of your system's C++ link characteristics
11930
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11931
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11304
11935
# FIXME: insert proper C++ library support
11305
11936
ld_shlibs_CXX=no
11311
if test $with_gnu_ld = no; then
11312
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11313
hardcode_libdir_separator_CXX=:
11317
hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11939
if test "$host_cpu" = ia64; then
11940
# On IA64, the linker does run time linking by default, so we don't
11941
# have to do anything special.
11942
aix_use_runtimelinking=no
11943
exp_sym_flag='-Bexport'
11946
aix_use_runtimelinking=no
11948
# Test if we are trying to use run time linking or normal
11949
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11950
# need to do runtime linking.
11951
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11952
for ld_flag in $LDFLAGS; do
11955
aix_use_runtimelinking=yes
11963
exp_sym_flag='-bexport'
11964
no_entry_flag='-bnoentry'
11967
# When large executables or shared objects are built, AIX ld can
11968
# have problems creating the table of contents. If linking a library
11969
# or program results in "error TOC overflow" add -mminimal-toc to
11970
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11971
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11973
archive_cmds_CXX=''
11974
hardcode_direct_CXX=yes
11975
hardcode_direct_absolute_CXX=yes
11976
hardcode_libdir_separator_CXX=':'
11977
link_all_deplibs_CXX=yes
11978
file_list_spec_CXX='${wl}-f,'
11980
if test "$GXX" = yes; then
11981
case $host_os in aix4.[012]|aix4.[012].*)
11982
# We only want to do this on AIX 4.2 and lower, the check
11983
# below for broken collect2 doesn't work under 4.3+
11984
collect2name=`${CC} -print-prog-name=collect2`
11985
if test -f "$collect2name" &&
11986
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11988
# We have reworked collect2
11991
# We have old collect2
11992
hardcode_direct_CXX=unsupported
11993
# It fails to find uninstalled libraries when the uninstalled
11994
# path is not listed in the libpath. Setting hardcode_minus_L
11995
# to unsupported forces relinking
11996
hardcode_minus_L_CXX=yes
11997
hardcode_libdir_flag_spec_CXX='-L$libdir'
11998
hardcode_libdir_separator_CXX=
12001
shared_flag='-shared'
12002
if test "$aix_use_runtimelinking" = yes; then
12003
shared_flag="$shared_flag "'${wl}-G'
12007
if test "$host_cpu" = ia64; then
12008
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12009
# chokes on -Wl,-G. The following line is correct:
12012
if test "$aix_use_runtimelinking" = yes; then
12013
shared_flag='${wl}-G'
12015
shared_flag='${wl}-bM:SRE'
12020
export_dynamic_flag_spec_CXX='${wl}-bexpall'
12021
# It seems that -bexpall does not export symbols beginning with
12022
# underscore (_), so it is better to generate a list of symbols to
12024
always_export_symbols_CXX=yes
12025
if test "$aix_use_runtimelinking" = yes; then
12026
# Warning - without using the other runtime loading flags (-brtl),
12027
# -berok will link without error, but may produce a broken library.
12028
allow_undefined_flag_CXX='-berok'
12029
# Determine the default libpath from the value encoded in an empty
12031
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12032
/* end confdefs.h. */
12042
if ac_fn_cxx_try_link "$LINENO"; then :
12044
lt_aix_libpath_sed='
12045
/Import File Strings/,/^$/ {
12051
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12052
# Check for a 64-bit object if we didn't find anything.
12053
if test -z "$aix_libpath"; then
12054
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12057
rm -f core conftest.err conftest.$ac_objext \
12058
conftest$ac_exeext conftest.$ac_ext
12059
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12061
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12063
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"
12065
if test "$host_cpu" = ia64; then
12066
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12067
allow_undefined_flag_CXX="-z nodefs"
12068
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"
12070
# Determine the default libpath from the value encoded in an
12071
# empty executable.
12072
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12073
/* end confdefs.h. */
12083
if ac_fn_cxx_try_link "$LINENO"; then :
12085
lt_aix_libpath_sed='
12086
/Import File Strings/,/^$/ {
12092
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12093
# Check for a 64-bit object if we didn't find anything.
12094
if test -z "$aix_libpath"; then
12095
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12098
rm -f core conftest.err conftest.$ac_objext \
12099
conftest$ac_exeext conftest.$ac_ext
12100
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12102
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12103
# Warning - without using the other run time loading flags,
12104
# -berok will link without error, but may produce a broken library.
12105
no_undefined_flag_CXX=' ${wl}-bernotok'
12106
allow_undefined_flag_CXX=' ${wl}-berok'
12107
# Exported symbols can be pulled into shared objects from archives
12108
whole_archive_flag_spec_CXX='$convenience'
12109
archive_cmds_need_lc_CXX=yes
12110
# This is similar to how AIX traditionally builds its shared
12112
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'
12118
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12119
allow_undefined_flag_CXX=unsupported
12120
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12121
# support --undefined. This deserves some investigation. FIXME
12122
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12129
case $cc_basename in
12131
# FIXME: insert proper C++ library support
12137
cygwin* | mingw* | pw32* | cegcc*)
12138
# _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12139
# as there is no search path for DLLs.
12140
hardcode_libdir_flag_spec_CXX='-L$libdir'
12141
allow_undefined_flag_CXX=unsupported
12142
always_export_symbols_CXX=no
12143
enable_shared_with_static_runtimes_CXX=yes
12145
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12146
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'
12147
# If the export-symbols file already is a .def file (1st line
12148
# is EXPORTS), use it as is; otherwise, prepend...
12149
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12150
cp $export_symbols $output_objdir/$soname.def;
12152
echo EXPORTS > $output_objdir/$soname.def;
12153
cat $export_symbols >> $output_objdir/$soname.def;
12155
$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'
12160
darwin* | rhapsody*)
12163
archive_cmds_need_lc_CXX=no
12164
hardcode_direct_CXX=no
12165
hardcode_automatic_CXX=yes
12166
hardcode_shlibpath_var_CXX=unsupported
12167
whole_archive_flag_spec_CXX=''
12168
link_all_deplibs_CXX=yes
12169
allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12170
case $cc_basename in
12171
ifort*) _lt_dar_can_shared=yes ;;
12172
*) _lt_dar_can_shared=$GCC ;;
12174
if test "$_lt_dar_can_shared" = "yes"; then
12175
output_verbose_link_cmd=echo
12176
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}"
12177
module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12178
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}"
12179
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}"
12180
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12181
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}"
12182
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}"
12192
case $cc_basename in
12194
# FIXME: insert proper C++ library support
12198
# Green Hills C++ Compiler
12199
# FIXME: insert proper C++ library support
12203
# FIXME: insert proper C++ library support
12210
# C++ shared libraries reported to be fairly broken before
12216
archive_cmds_need_lc_CXX=no
12219
freebsd* | dragonfly*)
12220
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12229
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12230
hardcode_libdir_separator_CXX=:
12231
export_dynamic_flag_spec_CXX='${wl}-E'
12232
hardcode_direct_CXX=yes
12233
hardcode_minus_L_CXX=yes # Not in the search PATH,
12234
# but as the default
12235
# location of the library.
12237
case $cc_basename in
12239
# FIXME: insert proper C++ library support
12243
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'
12244
# Commands to make compiler produce verbose output that lists
12245
# what "hidden" libraries, object files and flags are used when
12246
# linking a shared library.
12248
# There doesn't appear to be a way to prevent this compiler from
12249
# explicitly linking system object files so we need to strip them
12250
# from the output so that they don't get included in the library
12252
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'
12255
if test "$GXX" = yes; then
12256
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'
12258
# FIXME: insert proper C++ library support
12266
if test $with_gnu_ld = no; then
12267
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12268
hardcode_libdir_separator_CXX=:
12274
export_dynamic_flag_spec_CXX='${wl}-E'
12280
hardcode_direct_CXX=no
12281
hardcode_shlibpath_var_CXX=no
12284
hardcode_direct_CXX=yes
12285
hardcode_direct_absolute_CXX=yes
12286
hardcode_minus_L_CXX=yes # Not in the search PATH,
12287
# but as the default
12288
# location of the library.
12292
case $cc_basename in
12294
# FIXME: insert proper C++ library support
12300
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12303
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12306
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12309
# Commands to make compiler produce verbose output that lists
12310
# what "hidden" libraries, object files and flags are used when
12311
# linking a shared library.
12313
# There doesn't appear to be a way to prevent this compiler from
12314
# explicitly linking system object files so we need to strip them
12315
# from the output so that they don't get included in the library
12317
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'
12320
if test "$GXX" = yes; then
12321
if test $with_gnu_ld = no; then
12324
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12327
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12330
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'
12335
# FIXME: insert proper C++ library support
12343
hardcode_direct_CXX=no
12344
hardcode_shlibpath_var_CXX=no
12345
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11320
12346
export_dynamic_flag_spec_CXX='${wl}-E'
11326
hardcode_direct_CXX=no
12347
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12348
# Instead, shared libraries are loaded at an image base (0x10000000 by
12349
# default) and relocated if they conflict, which is a slow very memory
12350
# consuming and fragmenting process. To avoid this, we pick a random,
12351
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12352
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
12353
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'
12354
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'
12357
case $cc_basename in
12360
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'
12362
# Archives containing C++ object files must be created using
12363
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
12364
# necessary to make sure instantiated templates are included
12366
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12369
if test "$GXX" = yes; then
12370
if test "$with_gnu_ld" = no; then
12371
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'
12373
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'
12376
link_all_deplibs_CXX=yes
12379
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12380
hardcode_libdir_separator_CXX=:
12381
inherit_rpath_CXX=yes
12384
linux* | k*bsd*-gnu)
12385
case $cc_basename in
12387
# Kuck and Associates, Inc. (KAI) C++ Compiler
12389
# KCC will only create a shared library if the output file
12390
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12391
# to its proper name (with version) after linking.
12392
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'
12393
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'
12394
# Commands to make compiler produce verbose output that lists
12395
# what "hidden" libraries, object files and flags are used when
12396
# linking a shared library.
12398
# There doesn't appear to be a way to prevent this compiler from
12399
# explicitly linking system object files so we need to strip them
12400
# from the output so that they don't get included in the library
12402
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'
12404
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12405
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12407
# Archives containing C++ object files must be created using
12408
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12409
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12414
# version 8.0 and above of icpc choke on multiply defined symbols
12415
# if we add $predep_objects and $postdep_objects, however 7.1 and
12416
# earlier do not add the objects themselves.
12417
case `$CC -V 2>&1` in
12419
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12420
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'
12422
*) # Version 8.0 or newer
12425
ia64*) tmp_idyn=' -i_dynamic';;
12427
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12428
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'
12431
archive_cmds_need_lc_CXX=no
12432
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12433
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12434
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12437
# Portland Group C++ compiler
12439
*pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12440
prelink_cmds_CXX='tpldir=Template.dir~
12442
$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12443
compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12444
old_archive_cmds_CXX='tpldir=Template.dir~
12446
$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12447
$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12449
archive_cmds_CXX='tpldir=Template.dir~
12451
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12452
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12453
archive_expsym_cmds_CXX='tpldir=Template.dir~
12455
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12456
$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'
12458
*) # Version 6 will use weak symbols
12459
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12460
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'
12464
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12465
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12466
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'
12470
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12471
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'
12473
runpath_var=LD_RUN_PATH
12474
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12475
hardcode_libdir_separator_CXX=:
12477
# Commands to make compiler produce verbose output that lists
12478
# what "hidden" libraries, object files and flags are used when
12479
# linking a shared library.
12481
# There doesn't appear to be a way to prevent this compiler from
12482
# explicitly linking system object files so we need to strip them
12483
# from the output so that they don't get included in the library
12485
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'
12488
# IBM XL 8.0 on PPC, with GNU ld
12489
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12490
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12491
archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12492
if test "x$supports_anon_versioning" = xyes; then
12493
archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12494
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12495
echo "local: *; };" >> $output_objdir/$libname.ver~
12496
$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12500
case `$CC -V 2>&1 | sed 5q` in
12503
no_undefined_flag_CXX=' -zdefs'
12504
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12505
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'
12506
hardcode_libdir_flag_spec_CXX='-R$libdir'
12507
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'
12508
compiler_needs_object_CXX=yes
12510
# Not sure whether something based on
12511
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12513
output_verbose_link_cmd='echo'
12515
# Archives containing C++ object files must be created using
12516
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12517
# necessary to make sure instantiated templates are included
12519
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12527
# FIXME: insert proper C++ library support
12532
# FIXME: insert proper C++ library support
12537
case $cc_basename in
12539
# FIXME: insert proper C++ library support
12543
# FIXME: insert proper C++ library support
12550
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12551
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12553
hardcode_libdir_flag_spec_CXX='-R$libdir'
12554
hardcode_direct_CXX=yes
12555
hardcode_shlibpath_var_CXX=no
12557
# Workaround some broken pre-1.5 toolchains
12558
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12566
# C++ shared libraries are fairly broken
12571
if test -f /usr/libexec/ld.so; then
12572
hardcode_direct_CXX=yes
12573
hardcode_shlibpath_var_CXX=no
12574
hardcode_direct_absolute_CXX=yes
12575
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12576
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12577
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12578
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12579
export_dynamic_flag_spec_CXX='${wl}-E'
12580
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12582
output_verbose_link_cmd=echo
12588
osf3* | osf4* | osf5*)
12589
case $cc_basename in
12591
# Kuck and Associates, Inc. (KAI) C++ Compiler
12593
# KCC will only create a shared library if the output file
12594
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12595
# to its proper name (with version) after linking.
12596
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'
12598
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12599
hardcode_libdir_separator_CXX=:
12601
# Archives containing C++ object files must be created using
12602
# the KAI C++ compiler.
12604
osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12605
*) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12609
# Rational C++ 2.4.1
12610
# FIXME: insert proper C++ library support
12616
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12617
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'
12618
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12621
allow_undefined_flag_CXX=' -expect_unresolved \*'
12622
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'
12623
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12624
echo "-hidden">> $lib.exp~
12625
$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~
12627
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12631
hardcode_libdir_separator_CXX=:
12633
# Commands to make compiler produce verbose output that lists
12634
# what "hidden" libraries, object files and flags are used when
12635
# linking a shared library.
12637
# There doesn't appear to be a way to prevent this compiler from
12638
# explicitly linking system object files so we need to strip them
12639
# from the output so that they don't get included in the library
12641
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'
12644
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12645
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12648
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'
12651
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'
12655
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12656
hardcode_libdir_separator_CXX=:
12658
# Commands to make compiler produce verbose output that lists
12659
# what "hidden" libraries, object files and flags are used when
12660
# linking a shared library.
12661
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12664
# FIXME: insert proper C++ library support
12672
# FIXME: insert proper C++ library support
12677
case $cc_basename in
12680
# FIXME: insert proper C++ library support
12685
# FIXME: insert proper C++ library support
12689
# FIXME: insert proper C++ library support
12696
case $cc_basename in
12698
# Sun C++ 4.2, 5.x and Centerline C++
12699
archive_cmds_need_lc_CXX=yes
12700
no_undefined_flag_CXX=' -zdefs'
12701
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12702
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12703
$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'
12705
hardcode_libdir_flag_spec_CXX='-R$libdir'
12706
hardcode_shlibpath_var_CXX=no
12708
solaris2.[0-5] | solaris2.[0-5].*) ;;
12710
# The compiler driver will combine and reorder linker options,
12711
# but understands `-z linker_flag'.
12712
# Supported since Solaris 2.6 (maybe 2.5.1?)
12713
whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12716
link_all_deplibs_CXX=yes
12718
output_verbose_link_cmd='echo'
12720
# Archives containing C++ object files must be created using
12721
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12722
# necessary to make sure instantiated templates are included
12724
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12727
# Green Hills C++ Compiler
12728
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12730
# The C++ compiler must be used to create the archive.
12731
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12734
# GNU C++ compiler with Solaris linker
12735
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12736
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12737
if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12738
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12739
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12740
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12742
# Commands to make compiler produce verbose output that lists
12743
# what "hidden" libraries, object files and flags are used when
12744
# linking a shared library.
12745
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12747
# g++ 2.7 appears to require `-G' NOT `-shared' on this
12749
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12750
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12751
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12753
# Commands to make compiler produce verbose output that lists
12754
# what "hidden" libraries, object files and flags are used when
12755
# linking a shared library.
12756
output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12759
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12761
solaris2.[0-5] | solaris2.[0-5].*) ;;
12763
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12771
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12772
no_undefined_flag_CXX='${wl}-z,text'
12773
archive_cmds_need_lc_CXX=no
11327
12774
hardcode_shlibpath_var_CXX=no
11330
hardcode_direct_CXX=yes
11331
hardcode_minus_L_CXX=yes # Not in the search PATH,
11332
# but as the default
11333
# location of the library.
12775
runpath_var='LD_RUN_PATH'
11337
case $cc_basename in
11339
# FIXME: insert proper C++ library support
11345
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11348
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12777
case $cc_basename in
12779
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12780
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11351
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11354
# Commands to make compiler produce verbose output that lists
11355
# what "hidden" libraries, object files and flags are used when
11356
# linking a shared library.
11358
# There doesn't appear to be a way to prevent this compiler from
11359
# explicitly linking system object files so we need to strip them
11360
# from the output so that they don't get included in the library
11362
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'
11365
if test "$GXX" = yes; then
11366
if test $with_gnu_ld = no; then
11369
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11372
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11375
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'
11380
# FIXME: insert proper C++ library support
11387
hardcode_direct_CXX=no
11388
hardcode_shlibpath_var_CXX=no
11389
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11390
export_dynamic_flag_spec_CXX='${wl}-E'
11391
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11392
# Instead, shared libraries are loaded at an image base (0x10000000 by
11393
# default) and relocated if they conflict, which is a slow very memory
11394
# consuming and fragmenting process. To avoid this, we pick a random,
11395
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11396
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
11397
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'
11398
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'
11401
case $cc_basename in
11404
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'
11406
# Archives containing C++ object files must be created using
11407
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
11408
# necessary to make sure instantiated templates are included
11410
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11413
if test "$GXX" = yes; then
11414
if test "$with_gnu_ld" = no; then
11415
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'
11417
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'
11420
link_all_deplibs_CXX=yes
11423
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11424
hardcode_libdir_separator_CXX=:
11426
linux* | k*bsd*-gnu)
11427
case $cc_basename in
11429
# Kuck and Associates, Inc. (KAI) C++ Compiler
11431
# KCC will only create a shared library if the output file
11432
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11433
# to its proper name (with version) after linking.
11434
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'
11435
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'
11436
# Commands to make compiler produce verbose output that lists
11437
# what "hidden" libraries, object files and flags are used when
11438
# linking a shared library.
11440
# There doesn't appear to be a way to prevent this compiler from
11441
# explicitly linking system object files so we need to strip them
11442
# from the output so that they don't get included in the library
11444
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'
11446
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11447
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11449
# Archives containing C++ object files must be created using
11450
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11451
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11456
# version 8.0 and above of icpc choke on multiply defined symbols
11457
# if we add $predep_objects and $postdep_objects, however 7.1 and
11458
# earlier do not add the objects themselves.
11459
case `$CC -V 2>&1` in
11461
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11462
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'
11464
*) # Version 8.0 or newer
11467
ia64*) tmp_idyn=' -i_dynamic';;
11469
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11470
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'
12783
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12784
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12789
sysv5* | sco3.2v5* | sco5v6*)
12790
# Note: We can NOT use -z defs as we might desire, because we do not
12791
# link with -lc, and that would cause any symbols used from libc to
12792
# always be unresolved, which means just about no library would
12793
# ever link correctly. If we're not using GNU ld we use -z text
12794
# though, which does catch some bad symbols but isn't as heavy-handed
12796
no_undefined_flag_CXX='${wl}-z,text'
12797
allow_undefined_flag_CXX='${wl}-z,nodefs'
11473
12798
archive_cmds_need_lc_CXX=no
11474
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11475
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11476
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11479
# Portland Group C++ compiler
11480
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11481
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'
11483
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11484
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11485
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'
11489
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11490
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'
11492
runpath_var=LD_RUN_PATH
11493
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11494
hardcode_libdir_separator_CXX=:
11496
# Commands to make compiler produce verbose output that lists
11497
# what "hidden" libraries, object files and flags are used when
11498
# linking a shared library.
11500
# There doesn't appear to be a way to prevent this compiler from
11501
# explicitly linking system object files so we need to strip them
11502
# from the output so that they don't get included in the library
11504
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'
11509
# FIXME: insert proper C++ library support
11513
# FIXME: insert proper C++ library support
11517
case $cc_basename in
11519
# FIXME: insert proper C++ library support
11523
# FIXME: insert proper C++ library support
11528
netbsd* | netbsdelf*-gnu)
11529
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11530
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11532
hardcode_libdir_flag_spec_CXX='-R$libdir'
11533
hardcode_direct_CXX=yes
11534
hardcode_shlibpath_var_CXX=no
11536
# Workaround some broken pre-1.5 toolchains
11537
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11540
# C++ shared libraries are fairly broken
11544
hardcode_direct_CXX=yes
11545
hardcode_shlibpath_var_CXX=no
11546
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11547
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11548
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11549
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11550
export_dynamic_flag_spec_CXX='${wl}-E'
11551
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11553
output_verbose_link_cmd='echo'
11556
case $cc_basename in
11558
# Kuck and Associates, Inc. (KAI) C++ Compiler
11560
# KCC will only create a shared library if the output file
11561
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11562
# to its proper name (with version) after linking.
11563
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'
11565
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11566
hardcode_libdir_separator_CXX=:
11568
# Archives containing C++ object files must be created using
11569
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11570
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11574
# Rational C++ 2.4.1
11575
# FIXME: insert proper C++ library support
11579
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11580
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'
11582
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11583
hardcode_libdir_separator_CXX=:
11585
# Commands to make compiler produce verbose output that lists
11586
# what "hidden" libraries, object files and flags are used when
11587
# linking a shared library.
11589
# There doesn't appear to be a way to prevent this compiler from
11590
# explicitly linking system object files so we need to strip them
11591
# from the output so that they don't get included in the library
11593
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'
11596
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11597
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11598
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'
11600
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11601
hardcode_libdir_separator_CXX=:
11603
# Commands to make compiler produce verbose output that lists
11604
# what "hidden" libraries, object files and flags are used when
11605
# linking a shared library.
11606
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11609
# FIXME: insert proper C++ library support
11616
case $cc_basename in
11618
# Kuck and Associates, Inc. (KAI) C++ Compiler
11620
# KCC will only create a shared library if the output file
11621
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11622
# to its proper name (with version) after linking.
11623
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'
11625
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11626
hardcode_libdir_separator_CXX=:
11628
# Archives containing C++ object files must be created using
11629
# the KAI C++ compiler.
11630
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11633
# Rational C++ 2.4.1
11634
# FIXME: insert proper C++ library support
11638
allow_undefined_flag_CXX=' -expect_unresolved \*'
11639
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'
11640
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11641
echo "-hidden">> $lib.exp~
11642
$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~
11645
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11646
hardcode_libdir_separator_CXX=:
11648
# Commands to make compiler produce verbose output that lists
11649
# what "hidden" libraries, object files and flags are used when
11650
# linking a shared library.
11652
# There doesn't appear to be a way to prevent this compiler from
11653
# explicitly linking system object files so we need to strip them
11654
# from the output so that they don't get included in the library
11656
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'
11659
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11660
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11661
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'
11663
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11664
hardcode_libdir_separator_CXX=:
11666
# Commands to make compiler produce verbose output that lists
11667
# what "hidden" libraries, object files and flags are used when
11668
# linking a shared library.
11669
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11672
# FIXME: insert proper C++ library support
11679
# FIXME: insert proper C++ library support
11683
case $cc_basename in
11686
# FIXME: insert proper C++ library support
11691
# FIXME: insert proper C++ library support
11695
# FIXME: insert proper C++ library support
11701
case $cc_basename in
11703
# Sun C++ 4.2, 5.x and Centerline C++
11704
archive_cmds_need_lc_CXX=yes
11705
no_undefined_flag_CXX=' -zdefs'
11706
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11707
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11708
$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'
11710
hardcode_libdir_flag_spec_CXX='-R$libdir'
11711
12799
hardcode_shlibpath_var_CXX=no
11713
solaris2.[0-5] | solaris2.[0-5].*) ;;
12800
hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12801
hardcode_libdir_separator_CXX=':'
12802
link_all_deplibs_CXX=yes
12803
export_dynamic_flag_spec_CXX='${wl}-Bexport'
12804
runpath_var='LD_RUN_PATH'
12806
case $cc_basename in
12808
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12809
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11715
# The C++ compiler is used as linker so we must use $wl
11716
# flag to pass the commands to the underlying system
11717
# linker. We must also pass each convience library through
11718
# to the system linker between allextract/defaultextract.
11719
# The C++ compiler will combine linker options so we
11720
# cannot just pass the convience library names through
11722
# Supported since Solaris 2.6 (maybe 2.5.1?)
11723
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
12812
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12813
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11726
link_all_deplibs_CXX=yes
11728
output_verbose_link_cmd='echo'
11730
# Archives containing C++ object files must be created using
11731
# "CC -xar", where "CC" is the Sun C++ compiler. This is
11732
# necessary to make sure instantiated templates are included
11734
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11737
# Green Hills C++ Compiler
11738
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11740
# The C++ compiler must be used to create the archive.
11741
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11744
# GNU C++ compiler with Solaris linker
11745
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11746
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11747
if $CC --version | grep -v '^2\.7' > /dev/null; then
11748
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11749
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11750
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11752
# Commands to make compiler produce verbose output that lists
11753
# what "hidden" libraries, object files and flags are used when
11754
# linking a shared library.
11755
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11757
# g++ 2.7 appears to require `-G' NOT `-shared' on this
11759
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11760
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11761
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11763
# Commands to make compiler produce verbose output that lists
11764
# what "hidden" libraries, object files and flags are used when
11765
# linking a shared library.
11766
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11769
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11774
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11775
no_undefined_flag_CXX='${wl}-z,text'
11776
archive_cmds_need_lc_CXX=no
11777
hardcode_shlibpath_var_CXX=no
11778
runpath_var='LD_RUN_PATH'
11780
case $cc_basename in
11782
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11783
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11786
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11787
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11791
sysv5* | sco3.2v5* | sco5v6*)
11792
# Note: We can NOT use -z defs as we might desire, because we do not
11793
# link with -lc, and that would cause any symbols used from libc to
11794
# always be unresolved, which means just about no library would
11795
# ever link correctly. If we're not using GNU ld we use -z text
11796
# though, which does catch some bad symbols but isn't as heavy-handed
11798
# For security reasons, it is highly recommended that you always
11799
# use absolute paths for naming shared libraries, and exclude the
11800
# DT_RUNPATH tag from executables and libraries. But doing so
11801
# requires that you compile everything twice, which is a pain.
11802
# So that behaviour is only enabled if SCOABSPATH is set to a
11803
# non-empty value in the environment. Most likely only useful for
11804
# creating official distributions of packages.
11805
# This is a hack until libtool officially supports absolute path
11806
# names for shared libraries.
11807
no_undefined_flag_CXX='${wl}-z,text'
11808
allow_undefined_flag_CXX='${wl}-z,nodefs'
11809
archive_cmds_need_lc_CXX=no
11810
hardcode_shlibpath_var_CXX=no
11811
hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11812
hardcode_libdir_separator_CXX=':'
11813
link_all_deplibs_CXX=yes
11814
export_dynamic_flag_spec_CXX='${wl}-Bexport'
11815
runpath_var='LD_RUN_PATH'
11817
case $cc_basename in
11819
archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11820
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11823
archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11824
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11829
case $cc_basename in
11831
# NonStop-UX NCC 3.20
11832
# FIXME: insert proper C++ library support
11836
# FIXME: insert proper C++ library support
11842
# FIXME: insert proper C++ library support
11846
# FIXME: insert proper C++ library support
11850
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11851
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11852
test "$ld_shlibs_CXX" = no && can_build_shared=no
11858
cat > conftest.$ac_ext <<EOF
12819
case $cc_basename in
12821
# NonStop-UX NCC 3.20
12822
# FIXME: insert proper C++ library support
12826
# FIXME: insert proper C++ library support
12833
# FIXME: insert proper C++ library support
12838
# FIXME: insert proper C++ library support
12843
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12844
$as_echo "$ld_shlibs_CXX" >&6; }
12845
test "$ld_shlibs_CXX" = no && can_build_shared=no
12851
## There is no encapsulation within the following macros, do not change
12852
## the running order or otherwise move them around unless you know exactly
12853
## what you are doing...
12854
# Dependencies to place before and after the object being linked:
12855
predep_objects_CXX=
12856
postdep_objects_CXX=
12859
compiler_lib_search_path_CXX=
12861
cat > conftest.$ac_ext <<_LT_EOF
13148
14457
# directories.
13149
14458
hardcode_action_CXX=unsupported
13151
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13152
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13154
if test "$hardcode_action_CXX" = relink; then
13155
# Fast installation is not supported
13156
enable_fast_install=no
13157
elif test "$shlibpath_overrides_runpath" = yes ||
13158
test "$enable_shared" = no; then
13159
# Fast installation is not necessary
13160
enable_fast_install=needless
13164
# The else clause should only fire when bootstrapping the
13165
# libtool distribution, otherwise you forgot to ship ltmain.sh
13166
# with your package, and you will get complaints that there are
13167
# no rules to generate ltmain.sh.
13168
if test -f "$ltmain"; then
13169
# See if we are running on zsh, and set the options which allow our commands through
13170
# without removal of \ escapes.
13171
if test -n "${ZSH_VERSION+set}" ; then
13172
setopt NO_GLOB_SUBST
13174
# Now quote all the things that may contain metacharacters while being
13175
# careful not to overquote the AC_SUBSTed values. We take copies of the
13176
# variables and quote the copies for generation of the libtool script.
13177
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13179
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13180
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13181
deplibs_check_method reload_flag reload_cmds need_locks \
13182
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13183
lt_cv_sys_global_symbol_to_c_name_address \
13184
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13185
old_postinstall_cmds old_postuninstall_cmds \
13189
lt_prog_compiler_wl_CXX \
13190
lt_prog_compiler_pic_CXX \
13191
lt_prog_compiler_static_CXX \
13192
lt_prog_compiler_no_builtin_flag_CXX \
13193
export_dynamic_flag_spec_CXX \
13194
thread_safe_flag_spec_CXX \
13195
whole_archive_flag_spec_CXX \
13196
enable_shared_with_static_runtimes_CXX \
13197
old_archive_cmds_CXX \
13198
old_archive_from_new_cmds_CXX \
13199
predep_objects_CXX \
13200
postdep_objects_CXX \
13203
compiler_lib_search_path_CXX \
13205
archive_expsym_cmds_CXX \
13206
postinstall_cmds_CXX \
13207
postuninstall_cmds_CXX \
13208
old_archive_from_expsyms_cmds_CXX \
13209
allow_undefined_flag_CXX \
13210
no_undefined_flag_CXX \
13211
export_symbols_cmds_CXX \
13212
hardcode_libdir_flag_spec_CXX \
13213
hardcode_libdir_flag_spec_ld_CXX \
13214
hardcode_libdir_separator_CXX \
13215
hardcode_automatic_CXX \
13217
module_expsym_cmds_CXX \
13218
lt_cv_prog_compiler_c_o_CXX \
13219
exclude_expsyms_CXX \
13220
include_expsyms_CXX; do
13223
old_archive_cmds_CXX | \
13224
old_archive_from_new_cmds_CXX | \
13225
archive_cmds_CXX | \
13226
archive_expsym_cmds_CXX | \
13227
module_cmds_CXX | \
13228
module_expsym_cmds_CXX | \
13229
old_archive_from_expsyms_cmds_CXX | \
13230
export_symbols_cmds_CXX | \
13231
extract_expsyms_cmds | reload_cmds | finish_cmds | \
13232
postinstall_cmds | postuninstall_cmds | \
13233
old_postinstall_cmds | old_postuninstall_cmds | \
13234
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13235
# Double-quote double-evaled strings.
13236
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13239
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13245
*'\$0 --fallback-echo"')
13246
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13252
cat <<__EOF__ >> "$cfgfile"
13253
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13255
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13257
# Shell to use when invoking shell scripts.
13260
# Whether or not to build shared libraries.
13261
build_libtool_libs=$enable_shared
13263
# Whether or not to build static libraries.
13264
build_old_libs=$enable_static
13266
# Whether or not to add -lc for building shared libraries.
13267
build_libtool_need_lc=$archive_cmds_need_lc_CXX
13269
# Whether or not to disallow shared libs when runtime libs are static
13270
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13272
# Whether or not to optimize for fast installation.
13273
fast_install=$enable_fast_install
13276
host_alias=$host_alias
13280
# The build system.
13281
build_alias=$build_alias
13285
# An echo program that does not interpret backslashes.
13290
AR_FLAGS=$lt_AR_FLAGS
13295
# LTCC compiler flags.
13296
LTCFLAGS=$lt_LTCFLAGS
13298
# A language-specific compiler.
13299
CC=$lt_compiler_CXX
13301
# Is the compiler the GNU C compiler?
13307
# The linker used to build libraries.
13310
# Whether we need hard or soft links.
13313
# A BSD-compatible nm program.
13316
# A symbol stripping program
13319
# Used to examine libraries when file_magic_cmd begins "file"
13320
MAGIC_CMD=$MAGIC_CMD
13322
# Used on cygwin: DLL creation program.
13325
# Used on cygwin: object dumper.
13328
# Used on cygwin: assembler.
13331
# The name of the directory that contains temporary libtool files.
13334
# How to create reloadable object files.
13335
reload_flag=$lt_reload_flag
13336
reload_cmds=$lt_reload_cmds
13338
# How to pass a linker flag through the compiler.
13339
wl=$lt_lt_prog_compiler_wl_CXX
13341
# Object file suffix (normally "o").
13342
objext="$ac_objext"
13344
# Old archive suffix (normally "a").
13347
# Shared library suffix (normally ".so").
13348
shrext_cmds='$shrext_cmds'
13350
# Executable file suffix (normally "").
13353
# Additional compiler flags for building library objects.
13354
pic_flag=$lt_lt_prog_compiler_pic_CXX
13357
# What is the maximum length of a command?
13358
max_cmd_len=$lt_cv_sys_max_cmd_len
13360
# Does compiler simultaneously support -c and -o options?
13361
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13363
# Must we lock files when doing compilation?
13364
need_locks=$lt_need_locks
13366
# Do we need the lib prefix for modules?
13367
need_lib_prefix=$need_lib_prefix
13369
# Do we need a version for libraries?
13370
need_version=$need_version
13372
# Whether dlopen is supported.
13373
dlopen_support=$enable_dlopen
13375
# Whether dlopen of programs is supported.
13376
dlopen_self=$enable_dlopen_self
13378
# Whether dlopen of statically linked programs is supported.
13379
dlopen_self_static=$enable_dlopen_self_static
13381
# Compiler flag to prevent dynamic linking.
13382
link_static_flag=$lt_lt_prog_compiler_static_CXX
13384
# Compiler flag to turn off builtin functions.
13385
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13387
# Compiler flag to allow reflexive dlopens.
13388
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13390
# Compiler flag to generate shared objects directly from archives.
13391
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13393
# Compiler flag to generate thread-safe objects.
13394
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13396
# Library versioning type.
13397
version_type=$version_type
13399
# Format of library name prefix.
13400
libname_spec=$lt_libname_spec
13402
# List of archive names. First name is the real one, the rest are links.
13403
# The last name is the one that the linker finds with -lNAME.
13404
library_names_spec=$lt_library_names_spec
13406
# The coded name of the library, if different from the real name.
13407
soname_spec=$lt_soname_spec
13409
# Commands used to build and install an old-style archive.
13411
old_archive_cmds=$lt_old_archive_cmds_CXX
13412
old_postinstall_cmds=$lt_old_postinstall_cmds
13413
old_postuninstall_cmds=$lt_old_postuninstall_cmds
13415
# Create an old-style archive from a shared archive.
13416
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13418
# Create a temporary old-style archive to link instead of a shared archive.
13419
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13421
# Commands used to build and install a shared archive.
13422
archive_cmds=$lt_archive_cmds_CXX
13423
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13424
postinstall_cmds=$lt_postinstall_cmds
13425
postuninstall_cmds=$lt_postuninstall_cmds
13427
# Commands used to build a loadable module (assumed same as above if empty)
13428
module_cmds=$lt_module_cmds_CXX
13429
module_expsym_cmds=$lt_module_expsym_cmds_CXX
13431
# Commands to strip libraries.
13432
old_striplib=$lt_old_striplib
13433
striplib=$lt_striplib
13435
# Dependencies to place before the objects being linked to create a
13437
predep_objects=$lt_predep_objects_CXX
13439
# Dependencies to place after the objects being linked to create a
13441
postdep_objects=$lt_postdep_objects_CXX
13443
# Dependencies to place before the objects being linked to create a
13445
predeps=$lt_predeps_CXX
13447
# Dependencies to place after the objects being linked to create a
13449
postdeps=$lt_postdeps_CXX
13451
# The library search path used internally by the compiler when linking
13452
# a shared library.
13453
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13455
# Method to check whether dependent libraries are shared objects.
13456
deplibs_check_method=$lt_deplibs_check_method
13458
# Command to use when deplibs_check_method == file_magic.
13459
file_magic_cmd=$lt_file_magic_cmd
13461
# Flag that allows shared libraries with undefined symbols to be built.
13462
allow_undefined_flag=$lt_allow_undefined_flag_CXX
13464
# Flag that forces no undefined symbols.
13465
no_undefined_flag=$lt_no_undefined_flag_CXX
13467
# Commands used to finish a libtool library installation in a directory.
13468
finish_cmds=$lt_finish_cmds
13470
# Same as above, but a single script fragment to be evaled but not shown.
13471
finish_eval=$lt_finish_eval
13473
# Take the output of nm and produce a listing of raw symbols and C names.
13474
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13476
# Transform the output of nm in a proper C declaration
13477
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13479
# Transform the output of nm in a C name address pair
13480
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13482
# This is the shared library runtime path variable.
13483
runpath_var=$runpath_var
13485
# This is the shared library path variable.
13486
shlibpath_var=$shlibpath_var
13488
# Is shlibpath searched before the hard-coded library search path?
13489
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13491
# How to hardcode a shared library path into an executable.
13492
hardcode_action=$hardcode_action_CXX
13494
# Whether we should hardcode library paths into libraries.
13495
hardcode_into_libs=$hardcode_into_libs
13497
# Flag to hardcode \$libdir into a binary during linking.
13498
# This must work even if \$libdir does not exist.
13499
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13501
# If ld is used when linking, flag to hardcode \$libdir into
13502
# a binary during linking. This must work even if \$libdir does
13504
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13506
# Whether we need a single -rpath flag with a separated argument.
13507
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13509
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13510
# resulting binary.
13511
hardcode_direct=$hardcode_direct_CXX
13513
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13514
# resulting binary.
13515
hardcode_minus_L=$hardcode_minus_L_CXX
13517
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13518
# the resulting binary.
13519
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13521
# Set to yes if building a shared library automatically hardcodes DIR into the library
13522
# and all subsequent libraries and executables linked against it.
13523
hardcode_automatic=$hardcode_automatic_CXX
13525
# Variables whose values should be saved in libtool wrapper scripts and
13526
# restored at relink time.
13527
variables_saved_for_relink="$variables_saved_for_relink"
13529
# Whether libtool must link a program against all its dependency libraries.
13530
link_all_deplibs=$link_all_deplibs_CXX
13532
# Compile-time system search path for libraries
13533
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13535
# Run-time system search path for libraries
13536
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13538
# Fix the shell variable \$srcfile for the compiler.
13539
fix_srcfile_path="$fix_srcfile_path_CXX"
13541
# Set to yes if exported symbols are required.
13542
always_export_symbols=$always_export_symbols_CXX
13544
# The commands to list exported symbols.
13545
export_symbols_cmds=$lt_export_symbols_cmds_CXX
13547
# The commands to extract the exported symbol list from a shared archive.
13548
extract_expsyms_cmds=$lt_extract_expsyms_cmds
13550
# Symbols that should not be listed in the preloaded symbols.
13551
exclude_expsyms=$lt_exclude_expsyms_CXX
13553
# Symbols that must always be exported.
13554
include_expsyms=$lt_include_expsyms_CXX
13556
# ### END LIBTOOL TAG CONFIG: $tagname
13562
# If there is no Makefile yet, we rely on a make rule to execute
13563
# `config.status --recheck' to rerun these tests and create the
13564
# libtool script then.
13565
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13566
if test -f "$ltmain_in"; then
13567
test -f Makefile && make "$ltmain"
13573
ac_cpp='$CPP $CPPFLAGS'
13574
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13575
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13576
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13582
with_gnu_ldcxx=$with_gnu_ld
13583
with_gnu_ld=$lt_save_with_gnu_ld
13584
lt_cv_path_LDCXX=$lt_cv_path_LD
13585
lt_cv_path_LD=$lt_save_path_LD
13586
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13587
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13595
if test -n "$F77" && test "X$F77" != "Xno"; then
13598
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13599
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13600
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13603
archive_cmds_need_lc_F77=no
13604
allow_undefined_flag_F77=
13605
always_export_symbols_F77=no
13606
archive_expsym_cmds_F77=
13607
export_dynamic_flag_spec_F77=
13608
hardcode_direct_F77=no
13609
hardcode_libdir_flag_spec_F77=
13610
hardcode_libdir_flag_spec_ld_F77=
13611
hardcode_libdir_separator_F77=
13612
hardcode_minus_L_F77=no
13613
hardcode_automatic_F77=no
13615
module_expsym_cmds_F77=
13616
link_all_deplibs_F77=unknown
13617
old_archive_cmds_F77=$old_archive_cmds
13618
no_undefined_flag_F77=
13619
whole_archive_flag_spec_F77=
13620
enable_shared_with_static_runtimes_F77=no
13622
# Source file extension for f77 test sources.
13625
# Object file extension for compiled f77 test sources.
13629
# Code to be used in simple compile tests
13630
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13632
# Code to be used in simple link tests
13633
lt_simple_link_test_code=" program t\n end\n"
13635
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13637
# If no C compiler was specified, use CC.
13640
# If no C compiler flags were specified, use CFLAGS.
13641
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13643
# Allow CC to be a program name with arguments.
13647
# save warnings/boilerplate of simple test code
13648
ac_outfile=conftest.$ac_objext
13649
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13650
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13651
_lt_compiler_boilerplate=`cat conftest.err`
13654
ac_outfile=conftest.$ac_objext
13655
printf "$lt_simple_link_test_code" >conftest.$ac_ext
13656
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13657
_lt_linker_boilerplate=`cat conftest.err`
13661
# Allow CC to be a program name with arguments.
13666
for cc_temp in $compiler""; do
13668
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13669
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13674
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13677
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13678
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13679
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
13680
echo "${ECHO_T}$can_build_shared" >&6; }
13682
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13683
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13684
test "$can_build_shared" = "no" && enable_shared=no
13686
# On AIX, shared libraries and static libraries use the same namespace, and
13687
# are all built from PIC.
13690
test "$enable_shared" = yes && enable_static=no
13691
if test -n "$RANLIB"; then
13692
archive_cmds="$archive_cmds~\$RANLIB \$lib"
13693
postinstall_cmds='$RANLIB $lib'
13697
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13698
test "$enable_shared" = yes && enable_static=no
13702
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
13703
echo "${ECHO_T}$enable_shared" >&6; }
13705
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13706
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13707
# Make sure either enable_shared or enable_static is yes.
13708
test "$enable_shared" = yes || enable_static=yes
13709
{ echo "$as_me:$LINENO: result: $enable_static" >&5
13710
echo "${ECHO_T}$enable_static" >&6; }
13715
lt_prog_compiler_wl_F77=
13716
lt_prog_compiler_pic_F77=
13717
lt_prog_compiler_static_F77=
13719
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13720
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13722
if test "$GCC" = yes; then
13723
lt_prog_compiler_wl_F77='-Wl,'
13724
lt_prog_compiler_static_F77='-static'
13728
# All AIX code is PIC.
13729
if test "$host_cpu" = ia64; then
13730
# AIX 5 now supports IA64 processor
13731
lt_prog_compiler_static_F77='-Bstatic'
13736
# FIXME: we need at least 68020 code to build shared libraries, but
13737
# adding the `-m68020' flag to GCC prevents building anything better,
13739
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13742
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13743
# PIC is the default for these OSes.
13746
mingw* | pw32* | os2*)
13747
# This hack is so that the source file can tell whether it is being
13748
# built for inclusion in a dll (and should export symbols for example).
13749
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13752
darwin* | rhapsody*)
13753
# PIC is the default on this platform
13754
# Common symbols not allowed in MH_DYLIB files
13755
lt_prog_compiler_pic_F77='-fno-common'
13759
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
13760
# Instead, we relocate shared libraries at runtime.
13764
# Just because we use GCC doesn't mean we suddenly get shared libraries
13765
# on systems that don't support them.
13766
lt_prog_compiler_can_build_shared_F77=no
13771
if test -d /usr/nec; then
13772
lt_prog_compiler_pic_F77=-Kconform_pic
13777
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13778
# not for PA HP-UX.
13784
lt_prog_compiler_pic_F77='-fPIC'
13790
lt_prog_compiler_pic_F77='-fPIC'
13794
# PORTME Check for flag to pass linker flags through the system compiler.
13797
lt_prog_compiler_wl_F77='-Wl,'
13798
if test "$host_cpu" = ia64; then
13799
# AIX 5 now supports IA64 processor
13800
lt_prog_compiler_static_F77='-Bstatic'
13802
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13806
# PIC is the default on this platform
13807
# Common symbols not allowed in MH_DYLIB files
13808
case $cc_basename in
13810
lt_prog_compiler_pic_F77='-qnocommon'
13811
lt_prog_compiler_wl_F77='-Wl,'
13816
mingw* | pw32* | os2*)
13817
# This hack is so that the source file can tell whether it is being
13818
# built for inclusion in a dll (and should export symbols for example).
13819
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13822
hpux9* | hpux10* | hpux11*)
13823
lt_prog_compiler_wl_F77='-Wl,'
13824
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13825
# not for PA HP-UX.
13831
lt_prog_compiler_pic_F77='+Z'
13834
# Is there a better lt_prog_compiler_static that works with the bundled CC?
13835
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13838
irix5* | irix6* | nonstopux*)
13839
lt_prog_compiler_wl_F77='-Wl,'
13840
# PIC (with -KPIC) is the default.
13841
lt_prog_compiler_static_F77='-non_shared'
13845
lt_prog_compiler_pic_F77='-KPIC'
13846
lt_prog_compiler_static_F77='-Bstatic'
13849
linux* | k*bsd*-gnu)
13850
case $cc_basename in
13852
lt_prog_compiler_wl_F77='-Wl,'
13853
lt_prog_compiler_pic_F77='-KPIC'
13854
lt_prog_compiler_static_F77='-static'
13856
pgcc* | pgf77* | pgf90* | pgf95*)
13857
# Portland Group compilers (*not* the Pentium gcc compiler,
13858
# which looks to be a dead project)
13859
lt_prog_compiler_wl_F77='-Wl,'
13860
lt_prog_compiler_pic_F77='-fpic'
13861
lt_prog_compiler_static_F77='-Bstatic'
13864
lt_prog_compiler_wl_F77='-Wl,'
13865
# All Alpha code is PIC.
13866
lt_prog_compiler_static_F77='-non_shared'
13871
osf3* | osf4* | osf5*)
13872
lt_prog_compiler_wl_F77='-Wl,'
13873
# All OSF/1 code is PIC.
13874
lt_prog_compiler_static_F77='-non_shared'
13878
lt_prog_compiler_pic_F77='-KPIC'
13879
lt_prog_compiler_static_F77='-Bstatic'
13880
case $cc_basename in
13881
f77* | f90* | f95*)
13882
lt_prog_compiler_wl_F77='-Qoption ld ';;
13884
lt_prog_compiler_wl_F77='-Wl,';;
13889
lt_prog_compiler_wl_F77='-Qoption ld '
13890
lt_prog_compiler_pic_F77='-PIC'
13891
lt_prog_compiler_static_F77='-Bstatic'
13894
sysv4 | sysv4.2uw2* | sysv4.3*)
13895
lt_prog_compiler_wl_F77='-Wl,'
13896
lt_prog_compiler_pic_F77='-KPIC'
13897
lt_prog_compiler_static_F77='-Bstatic'
13901
if test -d /usr/nec ;then
13902
lt_prog_compiler_pic_F77='-Kconform_pic'
13903
lt_prog_compiler_static_F77='-Bstatic'
13907
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13908
lt_prog_compiler_wl_F77='-Wl,'
13909
lt_prog_compiler_pic_F77='-KPIC'
13910
lt_prog_compiler_static_F77='-Bstatic'
13914
lt_prog_compiler_wl_F77='-Wl,'
13915
lt_prog_compiler_can_build_shared_F77=no
13919
lt_prog_compiler_pic_F77='-pic'
13920
lt_prog_compiler_static_F77='-Bstatic'
13924
lt_prog_compiler_can_build_shared_F77=no
13929
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13930
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13933
# Check to make sure the PIC flag actually works.
13935
if test -n "$lt_prog_compiler_pic_F77"; then
13937
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13938
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13939
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13940
echo $ECHO_N "(cached) $ECHO_C" >&6
13942
lt_prog_compiler_pic_works_F77=no
13943
ac_outfile=conftest.$ac_objext
13944
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13945
lt_compiler_flag="$lt_prog_compiler_pic_F77"
13946
# Insert the option either (1) after the last *FLAGS variable, or
13947
# (2) before a word containing "conftest.", or (3) at the end.
13948
# Note that $ac_compile itself does not contain backslashes and begins
13949
# with a dollar sign (not a hyphen), so the echo should work correctly.
13950
# The option is referenced via a variable to avoid confusing sed.
13951
lt_compile=`echo "$ac_compile" | $SED \
13952
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13953
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13954
-e 's:$: $lt_compiler_flag:'`
13955
(eval echo "\"\$as_me:13955: $lt_compile\"" >&5)
13956
(eval "$lt_compile" 2>conftest.err)
13958
cat conftest.err >&5
13959
echo "$as_me:13959: \$? = $ac_status" >&5
13960
if (exit $ac_status) && test -s "$ac_outfile"; then
13961
# The compiler can only warn and ignore the option if not recognized
13962
# So say no if there are warnings other than the usual output.
13963
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13964
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13965
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13966
lt_prog_compiler_pic_works_F77=yes
13972
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13973
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13975
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13976
case $lt_prog_compiler_pic_F77 in
13978
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13981
lt_prog_compiler_pic_F77=
13982
lt_prog_compiler_can_build_shared_F77=no
13987
# For platforms which do not support PIC, -DPIC is meaningless:
13989
lt_prog_compiler_pic_F77=
13992
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13997
# Check to make sure the static flag actually works.
13999
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14000
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14001
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14002
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14003
echo $ECHO_N "(cached) $ECHO_C" >&6
14005
lt_prog_compiler_static_works_F77=no
14006
save_LDFLAGS="$LDFLAGS"
14007
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14008
printf "$lt_simple_link_test_code" > conftest.$ac_ext
14009
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14010
# The linker can only warn and ignore the option if not recognized
14011
# So say no if there are warnings
14012
if test -s conftest.err; then
14013
# Append any errors to the config.log.
14014
cat conftest.err 1>&5
14015
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14016
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14017
if diff conftest.exp conftest.er2 >/dev/null; then
14018
lt_prog_compiler_static_works_F77=yes
14021
lt_prog_compiler_static_works_F77=yes
14025
LDFLAGS="$save_LDFLAGS"
14028
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14029
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14031
if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14034
lt_prog_compiler_static_F77=
14038
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14039
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14040
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14041
echo $ECHO_N "(cached) $ECHO_C" >&6
14043
lt_cv_prog_compiler_c_o_F77=no
14044
$rm -r conftest 2>/dev/null
14048
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14050
lt_compiler_flag="-o out/conftest2.$ac_objext"
14051
# Insert the option either (1) after the last *FLAGS variable, or
14052
# (2) before a word containing "conftest.", or (3) at the end.
14053
# Note that $ac_compile itself does not contain backslashes and begins
14054
# with a dollar sign (not a hyphen), so the echo should work correctly.
14055
lt_compile=`echo "$ac_compile" | $SED \
14056
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14057
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14058
-e 's:$: $lt_compiler_flag:'`
14059
(eval echo "\"\$as_me:14059: $lt_compile\"" >&5)
14060
(eval "$lt_compile" 2>out/conftest.err)
14062
cat out/conftest.err >&5
14063
echo "$as_me:14063: \$? = $ac_status" >&5
14064
if (exit $ac_status) && test -s out/conftest2.$ac_objext
14066
# The compiler can only warn and ignore the option if not recognized
14067
# So say no if there are warnings
14068
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14069
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14070
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14071
lt_cv_prog_compiler_c_o_F77=yes
14076
# SGI C++ compiler will create directory out/ii_files/ for
14077
# template instantiation
14078
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14079
$rm out/* && rmdir out
14085
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14086
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14089
hard_links="nottested"
14090
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14091
# do not overwrite the value of need_locks provided by the user
14092
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14093
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14096
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14098
ln conftest.a conftest.b 2>&5 || hard_links=no
14099
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14100
{ echo "$as_me:$LINENO: result: $hard_links" >&5
14101
echo "${ECHO_T}$hard_links" >&6; }
14102
if test "$hard_links" = no; then
14103
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14104
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14111
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14112
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14115
allow_undefined_flag_F77=
14116
enable_shared_with_static_runtimes_F77=no
14118
archive_expsym_cmds_F77=
14119
old_archive_From_new_cmds_F77=
14120
old_archive_from_expsyms_cmds_F77=
14121
export_dynamic_flag_spec_F77=
14122
whole_archive_flag_spec_F77=
14123
thread_safe_flag_spec_F77=
14124
hardcode_libdir_flag_spec_F77=
14125
hardcode_libdir_flag_spec_ld_F77=
14126
hardcode_libdir_separator_F77=
14127
hardcode_direct_F77=no
14128
hardcode_minus_L_F77=no
14129
hardcode_shlibpath_var_F77=unsupported
14130
link_all_deplibs_F77=unknown
14131
hardcode_automatic_F77=no
14133
module_expsym_cmds_F77=
14134
always_export_symbols_F77=no
14135
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14136
# include_expsyms should be a list of space-separated symbols to be *always*
14137
# included in the symbol list
14138
include_expsyms_F77=
14139
# exclude_expsyms can be an extended regexp of symbols to exclude
14140
# it will be wrapped by ` (' and `)$', so one must not match beginning or
14141
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14142
# as well as any symbol that contains `d'.
14143
exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14144
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14145
# platforms (ab)use it in PIC code, but their linkers get confused if
14146
# the symbol is explicitly referenced. Since portable code cannot
14147
# rely on this symbol name, it's probably fine to never include it in
14148
# preloaded symbol tables.
14149
extract_expsyms_cmds=
14150
# Just being paranoid about ensuring that cc_basename is set.
14151
for cc_temp in $compiler""; do
14153
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14154
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14159
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14162
cygwin* | mingw* | pw32*)
14163
# FIXME: the MSVC++ port hasn't been tested in a loooong time
14164
# When not using gcc, we currently assume that we are using
14165
# Microsoft Visual C++.
14166
if test "$GCC" != yes; then
14171
# we just hope/assume this is gcc and not c89 (= MSVC++)
14180
if test "$with_gnu_ld" = yes; then
14181
# If archive_cmds runs LD, not CC, wlarc should be empty
14184
# Set some defaults for GNU ld with shared library support. These
14185
# are reset later if shared libraries are not supported. Putting them
14186
# here allows them to be overridden if necessary.
14187
runpath_var=LD_RUN_PATH
14188
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14189
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14190
# ancient GNU ld didn't support --whole-archive et. al.
14191
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14192
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14194
whole_archive_flag_spec_F77=
14196
supports_anon_versioning=no
14197
case `$LD -v 2>/dev/null` in
14198
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14199
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14200
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14201
*\ 2.11.*) ;; # other 2.11 versions
14202
*) supports_anon_versioning=yes ;;
14205
# See if GNU ld supports shared libraries.
14207
aix3* | aix4* | aix5*)
14208
# On AIX/PPC, the GNU linker is very broken
14209
if test "$host_cpu" != ia64; then
14213
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14214
*** to be unable to reliably create shared libraries on AIX.
14215
*** Therefore, libtool is disabling shared libraries support. If you
14216
*** really care for shared libraries, you may want to modify your PATH
14217
*** so that a non-GNU linker is found, and then restart.
14224
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)'
14225
hardcode_libdir_flag_spec_F77='-L$libdir'
14226
hardcode_minus_L_F77=yes
14228
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14229
# that the semantics of dynamic libraries on AmigaOS, at least up
14230
# to version 4, is to share data among multiple programs linked
14231
# with the same dynamic library. Since this doesn't match the
14232
# behavior of shared libraries on other platforms, we can't use
14238
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14239
allow_undefined_flag_F77=unsupported
14240
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14241
# support --undefined. This deserves some investigation. FIXME
14242
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14248
cygwin* | mingw* | pw32*)
14249
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14250
# as there is no search path for DLLs.
14251
hardcode_libdir_flag_spec_F77='-L$libdir'
14252
allow_undefined_flag_F77=unsupported
14253
always_export_symbols_F77=no
14254
enable_shared_with_static_runtimes_F77=yes
14255
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14257
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14258
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14259
# If the export-symbols file already is a .def file (1st line
14260
# is EXPORTS), use it as is; otherwise, prepend...
14261
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14262
cp $export_symbols $output_objdir/$soname.def;
14264
echo EXPORTS > $output_objdir/$soname.def;
14265
cat $export_symbols >> $output_objdir/$soname.def;
14267
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14274
hardcode_direct_F77=no
14275
hardcode_shlibpath_var_F77=no
14276
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14277
export_dynamic_flag_spec_F77='${wl}-E'
14278
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14279
# Instead, shared libraries are loaded at an image base (0x10000000 by
14280
# default) and relocated if they conflict, which is a slow very memory
14281
# consuming and fragmenting process. To avoid this, we pick a random,
14282
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14283
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
14284
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'
14285
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'
14288
linux* | k*bsd*-gnu)
14289
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14291
case $cc_basename,$host_cpu in
14292
pgcc*) # Portland Group C compiler
14293
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'
14294
tmp_addflag=' $pic_flag'
14296
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14297
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'
14298
tmp_addflag=' $pic_flag -Mnomain' ;;
14299
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14300
tmp_addflag=' -i_dynamic' ;;
14301
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14302
tmp_addflag=' -i_dynamic -nofor_main' ;;
14303
ifc* | ifort*) # Intel Fortran compiler
14304
tmp_addflag=' -nofor_main' ;;
14306
archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14308
if test $supports_anon_versioning = yes; then
14309
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14310
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14311
$echo "local: *; };" >> $output_objdir/$libname.ver~
14312
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14314
link_all_deplibs_F77=no
14320
netbsd* | netbsdelf*-gnu)
14321
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14322
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14325
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14326
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14331
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14335
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14336
*** create shared libraries on Solaris systems. Therefore, libtool
14337
*** is disabling shared libraries support. We urge you to upgrade GNU
14338
*** binutils to release 2.9.1 or newer. Another option is to modify
14339
*** your PATH or compiler configuration so that the native linker is
14340
*** used, and then restart.
14343
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14344
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14345
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14351
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14352
case `$LD -v 2>&1` in
14353
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14357
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14358
*** reliably create shared libraries on SCO systems. Therefore, libtool
14359
*** is disabling shared libraries support. We urge you to upgrade GNU
14360
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14361
*** your PATH or compiler configuration so that the native linker is
14362
*** used, and then restart.
14367
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14368
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14369
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14370
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14379
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14381
hardcode_direct_F77=yes
14382
hardcode_shlibpath_var_F77=no
14386
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14387
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14388
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14395
if test "$ld_shlibs_F77" = no; then
14397
hardcode_libdir_flag_spec_F77=
14398
export_dynamic_flag_spec_F77=
14399
whole_archive_flag_spec_F77=
14402
# PORTME fill in a description of your system's linker (not GNU ld)
14405
allow_undefined_flag_F77=unsupported
14406
always_export_symbols_F77=yes
14407
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'
14408
# Note: this linker hardcodes the directories in LIBPATH if there
14409
# are no directories specified by -L.
14410
hardcode_minus_L_F77=yes
14411
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14412
# Neither direct hardcoding nor static linking is supported with a
14414
hardcode_direct_F77=unsupported
14419
if test "$host_cpu" = ia64; then
14420
# On IA64, the linker does run time linking by default, so we don't
14421
# have to do anything special.
14422
aix_use_runtimelinking=no
14423
exp_sym_flag='-Bexport'
14426
# If we're using GNU nm, then we don't want the "-C" option.
14427
# -C means demangle to AIX nm, but means don't demangle with GNU nm
14428
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14429
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'
14431
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'
14433
aix_use_runtimelinking=no
14435
# Test if we are trying to use run time linking or normal
14436
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14437
# need to do runtime linking.
14438
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14439
for ld_flag in $LDFLAGS; do
14440
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14441
aix_use_runtimelinking=yes
14448
exp_sym_flag='-bexport'
14449
no_entry_flag='-bnoentry'
14452
# When large executables or shared objects are built, AIX ld can
14453
# have problems creating the table of contents. If linking a library
14454
# or program results in "error TOC overflow" add -mminimal-toc to
14455
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14456
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14458
archive_cmds_F77=''
14459
hardcode_direct_F77=yes
14460
hardcode_libdir_separator_F77=':'
14461
link_all_deplibs_F77=yes
14463
if test "$GCC" = yes; then
14464
case $host_os in aix4.[012]|aix4.[012].*)
14465
# We only want to do this on AIX 4.2 and lower, the check
14466
# below for broken collect2 doesn't work under 4.3+
14467
collect2name=`${CC} -print-prog-name=collect2`
14468
if test -f "$collect2name" && \
14469
strings "$collect2name" | grep resolve_lib_name >/dev/null
14471
# We have reworked collect2
14472
hardcode_direct_F77=yes
14474
# We have old collect2
14475
hardcode_direct_F77=unsupported
14476
# It fails to find uninstalled libraries when the uninstalled
14477
# path is not listed in the libpath. Setting hardcode_minus_L
14478
# to unsupported forces relinking
14479
hardcode_minus_L_F77=yes
14480
hardcode_libdir_flag_spec_F77='-L$libdir'
14481
hardcode_libdir_separator_F77=
14485
shared_flag='-shared'
14486
if test "$aix_use_runtimelinking" = yes; then
14487
shared_flag="$shared_flag "'${wl}-G'
14491
if test "$host_cpu" = ia64; then
14492
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14493
# chokes on -Wl,-G. The following line is correct:
14496
if test "$aix_use_runtimelinking" = yes; then
14497
shared_flag='${wl}-G'
14499
shared_flag='${wl}-bM:SRE'
14504
# It seems that -bexpall does not export symbols beginning with
14505
# underscore (_), so it is better to generate a list of symbols to export.
14506
always_export_symbols_F77=yes
14507
if test "$aix_use_runtimelinking" = yes; then
14508
# Warning - without using the other runtime loading flags (-brtl),
14509
# -berok will link without error, but may produce a broken library.
14510
allow_undefined_flag_F77='-berok'
14511
# Determine the default libpath from the value encoded in an empty executable.
14512
cat >conftest.$ac_ext <<_ACEOF
14517
rm -f conftest.$ac_objext conftest$ac_exeext
14518
if { (ac_try="$ac_link"
14519
case "(($ac_try" in
14520
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14521
*) ac_try_echo=$ac_try;;
14523
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14524
(eval "$ac_link") 2>conftest.er1
14526
grep -v '^ *+' conftest.er1 >conftest.err
14528
cat conftest.err >&5
14529
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14530
(exit $ac_status); } && {
14531
test -z "$ac_f77_werror_flag" ||
14532
test ! -s conftest.err
14533
} && test -s conftest$ac_exeext &&
14534
$as_test_x conftest$ac_exeext; then
14536
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14538
# Check for a 64-bit object if we didn't find anything.
14539
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14542
echo "$as_me: failed program was:" >&5
14543
sed 's/^/| /' conftest.$ac_ext >&5
14548
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14549
conftest$ac_exeext conftest.$ac_ext
14550
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14552
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14553
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"
14555
if test "$host_cpu" = ia64; then
14556
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14557
allow_undefined_flag_F77="-z nodefs"
14558
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"
14560
# Determine the default libpath from the value encoded in an empty executable.
14561
cat >conftest.$ac_ext <<_ACEOF
14566
rm -f conftest.$ac_objext conftest$ac_exeext
14567
if { (ac_try="$ac_link"
14568
case "(($ac_try" in
14569
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14570
*) ac_try_echo=$ac_try;;
14572
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14573
(eval "$ac_link") 2>conftest.er1
14575
grep -v '^ *+' conftest.er1 >conftest.err
14577
cat conftest.err >&5
14578
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14579
(exit $ac_status); } && {
14580
test -z "$ac_f77_werror_flag" ||
14581
test ! -s conftest.err
14582
} && test -s conftest$ac_exeext &&
14583
$as_test_x conftest$ac_exeext; then
14585
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14587
# Check for a 64-bit object if we didn't find anything.
14588
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14591
echo "$as_me: failed program was:" >&5
14592
sed 's/^/| /' conftest.$ac_ext >&5
14597
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14598
conftest$ac_exeext conftest.$ac_ext
14599
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14601
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14602
# Warning - without using the other run time loading flags,
14603
# -berok will link without error, but may produce a broken library.
14604
no_undefined_flag_F77=' ${wl}-bernotok'
14605
allow_undefined_flag_F77=' ${wl}-berok'
14606
# Exported symbols can be pulled into shared objects from archives
14607
whole_archive_flag_spec_F77='$convenience'
14608
archive_cmds_need_lc_F77=yes
14609
# This is similar to how AIX traditionally builds its shared libraries.
14610
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'
14616
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)'
14617
hardcode_libdir_flag_spec_F77='-L$libdir'
14618
hardcode_minus_L_F77=yes
14619
# see comment about different semantics on the GNU ld section
14624
export_dynamic_flag_spec_F77=-rdynamic
14627
cygwin* | mingw* | pw32*)
14628
# When not using gcc, we currently assume that we are using
14629
# Microsoft Visual C++.
14630
# hardcode_libdir_flag_spec is actually meaningless, as there is
14631
# no search path for DLLs.
14632
hardcode_libdir_flag_spec_F77=' '
14633
allow_undefined_flag_F77=unsupported
14634
# Tell ltmain to make .lib files, not .a files.
14636
# Tell ltmain to make .dll files, not .so files.
14638
# FIXME: Setting linknames here is a bad hack.
14639
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14640
# The linker will automatically build a .lib file if we build a DLL.
14641
old_archive_From_new_cmds_F77='true'
14642
# FIXME: Should let the user specify the lib program.
14643
old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14644
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14645
enable_shared_with_static_runtimes_F77=yes
14648
darwin* | rhapsody*)
14650
rhapsody* | darwin1.[012])
14651
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14654
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14655
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14657
case ${MACOSX_DEPLOYMENT_TARGET} in
14659
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14662
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14668
archive_cmds_need_lc_F77=no
14669
hardcode_direct_F77=no
14670
hardcode_automatic_F77=yes
14671
hardcode_shlibpath_var_F77=unsupported
14672
whole_archive_flag_spec_F77=''
14673
link_all_deplibs_F77=yes
14674
if test "$GCC" = yes ; then
14675
output_verbose_link_cmd='echo'
14676
archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14677
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14678
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14679
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}'
14680
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}'
14682
case $cc_basename in
14684
output_verbose_link_cmd='echo'
14685
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14686
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14687
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14688
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14689
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}'
14699
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14700
hardcode_libdir_flag_spec_F77='-L$libdir'
14701
hardcode_shlibpath_var_F77=no
14708
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14709
# support. Future versions do this automatically, but an explicit c++rt0.o
14710
# does not break anything, and helps significantly (at the cost of a little
14713
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14714
hardcode_libdir_flag_spec_F77='-R$libdir'
14715
hardcode_direct_F77=yes
14716
hardcode_shlibpath_var_F77=no
14719
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
14721
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14722
hardcode_direct_F77=yes
14723
hardcode_minus_L_F77=yes
14724
hardcode_shlibpath_var_F77=no
14727
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14728
freebsd* | dragonfly*)
14729
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14730
hardcode_libdir_flag_spec_F77='-R$libdir'
14731
hardcode_direct_F77=yes
14732
hardcode_shlibpath_var_F77=no
14736
if test "$GCC" = yes; then
14737
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'
14739
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'
14741
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14742
hardcode_libdir_separator_F77=:
14743
hardcode_direct_F77=yes
14745
# hardcode_minus_L: Not really in the search PATH,
14746
# but as the default location of the library.
14747
hardcode_minus_L_F77=yes
14748
export_dynamic_flag_spec_F77='${wl}-E'
14752
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14753
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14755
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14757
if test "$with_gnu_ld" = no; then
14758
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14759
hardcode_libdir_separator_F77=:
14761
hardcode_direct_F77=yes
14762
export_dynamic_flag_spec_F77='${wl}-E'
14764
# hardcode_minus_L: Not really in the search PATH,
14765
# but as the default location of the library.
14766
hardcode_minus_L_F77=yes
14771
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14774
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14777
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14780
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14786
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14789
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14792
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14796
if test "$with_gnu_ld" = no; then
14797
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14798
hardcode_libdir_separator_F77=:
14802
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14803
hardcode_direct_F77=no
14804
hardcode_shlibpath_var_F77=no
14807
hardcode_direct_F77=yes
14808
export_dynamic_flag_spec_F77='${wl}-E'
14810
# hardcode_minus_L: Not really in the search PATH,
14811
# but as the default location of the library.
14812
hardcode_minus_L_F77=yes
14818
irix5* | irix6* | nonstopux*)
14819
if test "$GCC" = yes; then
14820
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'
14822
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'
14823
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14825
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14826
hardcode_libdir_separator_F77=:
14827
link_all_deplibs_F77=yes
14830
netbsd* | netbsdelf*-gnu)
14831
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14832
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14834
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14836
hardcode_libdir_flag_spec_F77='-R$libdir'
14837
hardcode_direct_F77=yes
14838
hardcode_shlibpath_var_F77=no
14842
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14843
hardcode_direct_F77=yes
14844
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14845
hardcode_libdir_separator_F77=:
14846
hardcode_shlibpath_var_F77=no
14850
hardcode_direct_F77=yes
14851
hardcode_shlibpath_var_F77=no
14852
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14853
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14854
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14855
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14856
export_dynamic_flag_spec_F77='${wl}-E'
14859
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14860
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14861
hardcode_libdir_flag_spec_F77='-R$libdir'
14864
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14865
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14872
hardcode_libdir_flag_spec_F77='-L$libdir'
14873
hardcode_minus_L_F77=yes
14874
allow_undefined_flag_F77=unsupported
14875
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'
14876
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14880
if test "$GCC" = yes; then
14881
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14882
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'
14884
allow_undefined_flag_F77=' -expect_unresolved \*'
14885
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'
14887
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14888
hardcode_libdir_separator_F77=:
14891
osf4* | osf5*) # as osf3* with the addition of -msym flag
14892
if test "$GCC" = yes; then
14893
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14894
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'
14895
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14897
allow_undefined_flag_F77=' -expect_unresolved \*'
14898
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'
14899
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~
14900
$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'
14902
# Both c and cxx compiler support -rpath directly
14903
hardcode_libdir_flag_spec_F77='-rpath $libdir'
14905
hardcode_libdir_separator_F77=:
14909
no_undefined_flag_F77=' -z text'
14910
if test "$GCC" = yes; then
14912
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14913
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14914
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14917
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14918
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14919
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14921
hardcode_libdir_flag_spec_F77='-R$libdir'
14922
hardcode_shlibpath_var_F77=no
14924
solaris2.[0-5] | solaris2.[0-5].*) ;;
14926
# The compiler driver will combine linker options so we
14927
# cannot just pass the convience library names through
14928
# without $wl, iff we do not link with $LD.
14929
# Luckily, gcc supports the same syntax we need for Sun Studio.
14930
# Supported since Solaris 2.6 (maybe 2.5.1?)
14933
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14935
whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14938
link_all_deplibs_F77=yes
14942
if test "x$host_vendor" = xsequent; then
14943
# Use $CC to link under sequent, because it throws in some extra .o
14944
# files that make .init and .fini sections work.
14945
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14947
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14949
hardcode_libdir_flag_spec_F77='-L$libdir'
14950
hardcode_direct_F77=yes
14951
hardcode_minus_L_F77=yes
14952
hardcode_shlibpath_var_F77=no
14956
case $host_vendor in
14958
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14959
hardcode_direct_F77=yes # is this really true???
14962
## LD is ld it makes a PLAMLIB
14963
## CC just makes a GrossModule.
14964
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14965
reload_cmds_F77='$CC -r -o $output$reload_objs'
14966
hardcode_direct_F77=no
14969
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14970
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14973
runpath_var='LD_RUN_PATH'
14974
hardcode_shlibpath_var_F77=no
14978
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14979
hardcode_shlibpath_var_F77=no
14980
export_dynamic_flag_spec_F77='-Bexport'
14984
if test -d /usr/nec; then
14985
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14986
hardcode_shlibpath_var_F77=no
14987
runpath_var=LD_RUN_PATH
14988
hardcode_runpath_var=yes
14993
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14994
no_undefined_flag_F77='${wl}-z,text'
14995
archive_cmds_need_lc_F77=no
14996
hardcode_shlibpath_var_F77=no
14997
runpath_var='LD_RUN_PATH'
14999
if test "$GCC" = yes; then
15000
archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15001
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15003
archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15004
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15008
sysv5* | sco3.2v5* | sco5v6*)
15009
# Note: We can NOT use -z defs as we might desire, because we do not
15010
# link with -lc, and that would cause any symbols used from libc to
15011
# always be unresolved, which means just about no library would
15012
# ever link correctly. If we're not using GNU ld we use -z text
15013
# though, which does catch some bad symbols but isn't as heavy-handed
15015
no_undefined_flag_F77='${wl}-z,text'
15016
allow_undefined_flag_F77='${wl}-z,nodefs'
15017
archive_cmds_need_lc_F77=no
15018
hardcode_shlibpath_var_F77=no
15019
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15020
hardcode_libdir_separator_F77=':'
15021
link_all_deplibs_F77=yes
15022
export_dynamic_flag_spec_F77='${wl}-Bexport'
15023
runpath_var='LD_RUN_PATH'
15025
if test "$GCC" = yes; then
15026
archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15027
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15029
archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15030
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15035
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15036
hardcode_libdir_flag_spec_F77='-L$libdir'
15037
hardcode_shlibpath_var_F77=no
15046
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15047
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15048
test "$ld_shlibs_F77" = no && can_build_shared=no
15051
# Do we need to explicitly link libc?
15053
case "x$archive_cmds_need_lc_F77" in
15055
# Assume -lc should be added
15056
archive_cmds_need_lc_F77=yes
15058
if test "$enable_shared" = yes && test "$GCC" = yes; then
15059
case $archive_cmds_F77 in
15061
# FIXME: we may have to deal with multi-command sequences.
15064
# Test whether the compiler implicitly links with -lc since on some
15065
# systems, -lgcc has to come before -lc. If gcc already passes -lc
15066
# to ld, don't add -lc before -lgcc.
15067
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15068
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15070
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15072
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15073
(eval $ac_compile) 2>&5
15075
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15076
(exit $ac_status); } 2>conftest.err; then
15079
libobjs=conftest.$ac_objext
15081
wl=$lt_prog_compiler_wl_F77
15082
pic_flag=$lt_prog_compiler_pic_F77
15088
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15089
allow_undefined_flag_F77=
15090
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15091
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15093
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15094
(exit $ac_status); }
15096
archive_cmds_need_lc_F77=no
15098
archive_cmds_need_lc_F77=yes
15100
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15102
cat conftest.err 1>&5
15105
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15106
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15113
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15114
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15115
library_names_spec=
15116
libname_spec='lib$name'
15120
postuninstall_cmds=
15124
shlibpath_overrides_runpath=unknown
15126
dynamic_linker="$host_os ld.so"
15127
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15128
if test "$GCC" = yes; then
15129
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15130
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15131
# if the path contains ";" then we assume it to be the separator
15132
# otherwise default to the standard path separator (i.e. ":") - it is
15133
# assumed that no part of a normal pathname contains ";" but that should
15134
# okay in the real world where ";" in dirpaths is itself problematic.
15135
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15137
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15140
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15142
need_lib_prefix=unknown
15143
hardcode_into_libs=no
15145
# when you set need_version to no, make sure it does not cause -set_version
15146
# flags to be left without arguments
15147
need_version=unknown
15152
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15153
shlibpath_var=LIBPATH
15155
# AIX 3 has no versioning support, so we append a major version to the name.
15156
soname_spec='${libname}${release}${shared_ext}$major'
15163
hardcode_into_libs=yes
15164
if test "$host_cpu" = ia64; then
15165
# AIX 5 supports IA64
15166
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15167
shlibpath_var=LD_LIBRARY_PATH
15169
# With GCC up to 2.95.x, collect2 would create an import file
15170
# for dependence libraries. The import file would start with
15171
# the line `#! .'. This would cause the generated library to
15172
# depend on `.', always an invalid library. This was fixed in
15173
# development snapshots of GCC prior to 3.0.
15175
aix4 | aix4.[01] | aix4.[01].*)
15176
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15178
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15181
can_build_shared=no
15185
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15186
# soname into executable. Probably we can add versioning support to
15187
# collect2, so additional links can be useful in future.
15188
if test "$aix_use_runtimelinking" = yes; then
15189
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
15190
# instead of lib<name>.a to let people know that these are not
15191
# typical AIX shared libraries.
15192
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15194
# We preserve .a as extension for shared libraries through AIX4.2
15195
# and later when we are not doing run time linking.
15196
library_names_spec='${libname}${release}.a $libname.a'
15197
soname_spec='${libname}${release}${shared_ext}$major'
15199
shlibpath_var=LIBPATH
15204
library_names_spec='$libname.ixlibrary $libname.a'
15205
# Create ${libname}_ixlibrary.a entries in /sys/libs.
15206
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'
15210
library_names_spec='${libname}${shared_ext}'
15211
dynamic_linker="$host_os ld.so"
15212
shlibpath_var=LIBRARY_PATH
15218
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15219
soname_spec='${libname}${release}${shared_ext}$major'
15220
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15221
shlibpath_var=LD_LIBRARY_PATH
15222
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15223
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15224
# the default ld.so.conf also contains /usr/contrib/lib and
15225
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15226
# libtool to hard-code these into programs
15229
cygwin* | mingw* | pw32*)
15230
version_type=windows
15235
case $GCC,$host_os in
15236
yes,cygwin* | yes,mingw* | yes,pw32*)
15237
library_names_spec='$libname.dll.a'
15238
# DLL is installed to $(libdir)/../bin by postinstall_cmds
15239
postinstall_cmds='base_file=`basename \${file}`~
15240
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15241
dldir=$destdir/`dirname \$dlpath`~
15242
test -d \$dldir || mkdir -p \$dldir~
15243
$install_prog $dir/$dlname \$dldir/$dlname~
15244
chmod a+x \$dldir/$dlname'
15245
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15246
dlpath=$dir/\$dldll~
15248
shlibpath_overrides_runpath=yes
15252
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
15253
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15254
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15257
# MinGW DLLs use traditional 'lib' prefix
15258
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15259
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15260
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15261
# It is most probably a Windows format PATH printed by
15262
# mingw gcc, but we are running on Cygwin. Gcc prints its search
15263
# path with ; separators, and with drive letters. We can handle the
15264
# drive letters (cygwin fileutils understands them), so leave them,
15265
# especially as we might pass files found there to a mingw objdump,
15266
# which wouldn't understand a cygwinified path. Ahh.
15267
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15269
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15273
# pw32 DLLs use 'pw' prefix rather than 'lib'
15274
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15280
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15283
dynamic_linker='Win32 ld.exe'
15284
# FIXME: first we should search . and the directory the executable is in
15288
darwin* | rhapsody*)
15289
dynamic_linker="$host_os dyld"
15290
version_type=darwin
15293
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15294
soname_spec='${libname}${release}${major}$shared_ext'
15295
shlibpath_overrides_runpath=yes
15296
shlibpath_var=DYLD_LIBRARY_PATH
15297
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15298
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15299
if test "$GCC" = yes; then
15300
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15302
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15304
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15311
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15312
soname_spec='${libname}${release}${shared_ext}$major'
15313
shlibpath_var=LD_LIBRARY_PATH
15320
freebsd* | dragonfly*)
15321
# DragonFly does not have aout. When/if they implement a new
15322
# versioning mechanism, adjust this.
15323
if test -x /usr/bin/objformat; then
15324
objformat=`/usr/bin/objformat`
15327
freebsd[123]*) objformat=aout ;;
15328
*) objformat=elf ;;
15331
version_type=freebsd-$objformat
15332
case $version_type in
15334
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15339
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15343
shlibpath_var=LD_LIBRARY_PATH
15346
shlibpath_overrides_runpath=yes
15348
freebsd3.[01]* | freebsdelf3.[01]*)
15349
shlibpath_overrides_runpath=yes
15350
hardcode_into_libs=yes
15352
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15353
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15354
shlibpath_overrides_runpath=no
15355
hardcode_into_libs=yes
15357
freebsd*) # from 4.6 on
15358
shlibpath_overrides_runpath=yes
15359
hardcode_into_libs=yes
15368
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15369
soname_spec='${libname}${release}${shared_ext}$major'
15370
shlibpath_var=LD_LIBRARY_PATH
15371
hardcode_into_libs=yes
15374
hpux9* | hpux10* | hpux11*)
15375
# Give a soname corresponding to the major version so that dld.sl refuses to
15376
# link against other versions.
15383
hardcode_into_libs=yes
15384
dynamic_linker="$host_os dld.so"
15385
shlibpath_var=LD_LIBRARY_PATH
15386
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15387
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15388
soname_spec='${libname}${release}${shared_ext}$major'
15389
if test "X$HPUX_IA64_MODE" = X32; then
15390
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15392
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15394
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15398
hardcode_into_libs=yes
15399
dynamic_linker="$host_os dld.sl"
15400
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15401
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15402
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15403
soname_spec='${libname}${release}${shared_ext}$major'
15404
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15405
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15409
dynamic_linker="$host_os dld.sl"
15410
shlibpath_var=SHLIB_PATH
15411
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15412
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15413
soname_spec='${libname}${release}${shared_ext}$major'
15416
# HP-UX runs *really* slowly unless shared libraries are mode 555.
15417
postinstall_cmds='chmod 555 $lib'
15424
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15425
soname_spec='${libname}${release}${shared_ext}$major'
15426
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15427
shlibpath_var=LD_LIBRARY_PATH
15428
shlibpath_overrides_runpath=no
15429
hardcode_into_libs=yes
15432
irix5* | irix6* | nonstopux*)
15434
nonstopux*) version_type=nonstopux ;;
15436
if test "$lt_cv_prog_gnu_ld" = yes; then
15444
soname_spec='${libname}${release}${shared_ext}$major'
15445
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15447
irix5* | nonstopux*)
15448
libsuff= shlibsuff=
15451
case $LD in # libtool.m4 will add one of these switches to LD
15452
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15453
libsuff= shlibsuff= libmagic=32-bit;;
15454
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15455
libsuff=32 shlibsuff=N32 libmagic=N32;;
15456
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15457
libsuff=64 shlibsuff=64 libmagic=64-bit;;
15458
*) libsuff= shlibsuff= libmagic=never-match;;
15462
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15463
shlibpath_overrides_runpath=no
15464
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15465
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15466
hardcode_into_libs=yes
15469
# No shared lib support for Linux oldld, aout, or coff.
15470
linux*oldld* | linux*aout* | linux*coff*)
15474
# This must be Linux ELF.
15475
linux* | k*bsd*-gnu)
15479
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15480
soname_spec='${libname}${release}${shared_ext}$major'
15481
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15482
shlibpath_var=LD_LIBRARY_PATH
15483
shlibpath_overrides_runpath=no
15484
# This implies no fast_install, which is unacceptable.
15485
# Some rework will be needed to allow for fast_install
15486
# before this can be enabled.
15487
hardcode_into_libs=yes
15489
# Append ld.so.conf contents to the search path
15490
if test -f /etc/ld.so.conf; then
15491
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15492
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15495
# We used to test for /lib/ld.so.1 and disable shared libraries on
15496
# powerpc, because MkLinux only supported shared libraries with the
15497
# GNU dynamic linker. Since this was broken with cross compilers,
15498
# most powerpc-linux boxes support dynamic linking these days and
15499
# people can always --disable-shared, the test was removed, and we
15500
# assume the GNU/Linux dynamic linker is in use.
15501
dynamic_linker='GNU/Linux ld.so'
15508
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15509
soname_spec='${libname}${release}${shared_ext}$major'
15510
shlibpath_var=LD_LIBRARY_PATH
15511
shlibpath_overrides_runpath=no
15512
hardcode_into_libs=yes
15513
dynamic_linker='NetBSD ld.elf_so'
15520
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15521
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15522
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15523
dynamic_linker='NetBSD (a.out) ld.so'
15525
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15526
soname_spec='${libname}${release}${shared_ext}$major'
15527
dynamic_linker='NetBSD ld.elf_so'
15529
shlibpath_var=LD_LIBRARY_PATH
15530
shlibpath_overrides_runpath=yes
15531
hardcode_into_libs=yes
15536
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15537
shlibpath_var=LD_LIBRARY_PATH
15538
shlibpath_overrides_runpath=yes
15545
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15546
soname_spec='${libname}${release}${shared_ext}$major'
15547
shlibpath_var=LD_LIBRARY_PATH
15548
shlibpath_overrides_runpath=yes
15553
sys_lib_dlsearch_path_spec="/usr/lib"
15555
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15557
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15558
*) need_version=no ;;
15560
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15561
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15562
shlibpath_var=LD_LIBRARY_PATH
15563
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15565
openbsd2.[89] | openbsd2.[89].*)
15566
shlibpath_overrides_runpath=no
15569
shlibpath_overrides_runpath=yes
15573
shlibpath_overrides_runpath=yes
15578
libname_spec='$name'
15581
library_names_spec='$libname${shared_ext} $libname.a'
15582
dynamic_linker='OS/2 ld.exe'
15583
shlibpath_var=LIBPATH
15586
osf3* | osf4* | osf5*)
15590
soname_spec='${libname}${release}${shared_ext}$major'
15591
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15592
shlibpath_var=LD_LIBRARY_PATH
15593
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15594
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15601
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15602
soname_spec='${libname}${release}${shared_ext}$major'
15603
shlibpath_var=LD_LIBRARY_PATH
15604
shlibpath_overrides_runpath=yes
15605
hardcode_into_libs=yes
15606
# ldd complains unless libraries are executable
15607
postinstall_cmds='chmod +x $lib'
15612
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15613
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15614
shlibpath_var=LD_LIBRARY_PATH
15615
shlibpath_overrides_runpath=yes
15616
if test "$with_gnu_ld" = yes; then
15624
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15625
soname_spec='${libname}${release}${shared_ext}$major'
15626
shlibpath_var=LD_LIBRARY_PATH
15627
case $host_vendor in
15629
shlibpath_overrides_runpath=no
15631
export_dynamic_flag_spec='${wl}-Blargedynsym'
15632
runpath_var=LD_RUN_PATH
15640
shlibpath_overrides_runpath=no
15641
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15647
if test -d /usr/nec ;then
15649
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15650
soname_spec='$libname${shared_ext}.$major'
15651
shlibpath_var=LD_LIBRARY_PATH
15655
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15656
version_type=freebsd-elf
15659
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15660
soname_spec='${libname}${release}${shared_ext}$major'
15661
shlibpath_var=LD_LIBRARY_PATH
15662
hardcode_into_libs=yes
15663
if test "$with_gnu_ld" = yes; then
15664
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15665
shlibpath_overrides_runpath=no
15667
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15668
shlibpath_overrides_runpath=yes
15671
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15675
sys_lib_dlsearch_path_spec='/usr/lib'
15680
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15681
soname_spec='${libname}${release}${shared_ext}$major'
15682
shlibpath_var=LD_LIBRARY_PATH
15689
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15690
echo "${ECHO_T}$dynamic_linker" >&6; }
15691
test "$dynamic_linker" = no && can_build_shared=no
15693
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15694
if test "$GCC" = yes; then
15695
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15698
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15699
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15700
hardcode_action_F77=
15701
if test -n "$hardcode_libdir_flag_spec_F77" || \
15702
test -n "$runpath_var_F77" || \
15703
test "X$hardcode_automatic_F77" = "Xyes" ; then
15705
# We can hardcode non-existant directories.
15706
if test "$hardcode_direct_F77" != no &&
15707
# If the only mechanism to avoid hardcoding is shlibpath_var, we
15708
# have to relink, otherwise we might link with an installed library
15709
# when we should be linking with a yet-to-be-installed one
15710
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15711
test "$hardcode_minus_L_F77" != no; then
15712
# Linking always hardcodes the temporary library directory.
15713
hardcode_action_F77=relink
15715
# We can link without hardcoding, and we can hardcode nonexisting dirs.
15716
hardcode_action_F77=immediate
15719
# We cannot hardcode anything, or else we can only hardcode existing
15721
hardcode_action_F77=unsupported
15723
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15724
echo "${ECHO_T}$hardcode_action_F77" >&6; }
15726
if test "$hardcode_action_F77" = relink; then
15727
# Fast installation is not supported
15728
enable_fast_install=no
15729
elif test "$shlibpath_overrides_runpath" = yes ||
15730
test "$enable_shared" = no; then
15731
# Fast installation is not necessary
15732
enable_fast_install=needless
15736
# The else clause should only fire when bootstrapping the
15737
# libtool distribution, otherwise you forgot to ship ltmain.sh
15738
# with your package, and you will get complaints that there are
15739
# no rules to generate ltmain.sh.
15740
if test -f "$ltmain"; then
15741
# See if we are running on zsh, and set the options which allow our commands through
15742
# without removal of \ escapes.
15743
if test -n "${ZSH_VERSION+set}" ; then
15744
setopt NO_GLOB_SUBST
15746
# Now quote all the things that may contain metacharacters while being
15747
# careful not to overquote the AC_SUBSTed values. We take copies of the
15748
# variables and quote the copies for generation of the libtool script.
15749
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15751
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15752
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15753
deplibs_check_method reload_flag reload_cmds need_locks \
15754
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15755
lt_cv_sys_global_symbol_to_c_name_address \
15756
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15757
old_postinstall_cmds old_postuninstall_cmds \
15761
lt_prog_compiler_wl_F77 \
15762
lt_prog_compiler_pic_F77 \
15763
lt_prog_compiler_static_F77 \
15764
lt_prog_compiler_no_builtin_flag_F77 \
15765
export_dynamic_flag_spec_F77 \
15766
thread_safe_flag_spec_F77 \
15767
whole_archive_flag_spec_F77 \
15768
enable_shared_with_static_runtimes_F77 \
15769
old_archive_cmds_F77 \
15770
old_archive_from_new_cmds_F77 \
15771
predep_objects_F77 \
15772
postdep_objects_F77 \
15775
compiler_lib_search_path_F77 \
15777
archive_expsym_cmds_F77 \
15778
postinstall_cmds_F77 \
15779
postuninstall_cmds_F77 \
15780
old_archive_from_expsyms_cmds_F77 \
15781
allow_undefined_flag_F77 \
15782
no_undefined_flag_F77 \
15783
export_symbols_cmds_F77 \
15784
hardcode_libdir_flag_spec_F77 \
15785
hardcode_libdir_flag_spec_ld_F77 \
15786
hardcode_libdir_separator_F77 \
15787
hardcode_automatic_F77 \
15789
module_expsym_cmds_F77 \
15790
lt_cv_prog_compiler_c_o_F77 \
15791
exclude_expsyms_F77 \
15792
include_expsyms_F77; do
15795
old_archive_cmds_F77 | \
15796
old_archive_from_new_cmds_F77 | \
15797
archive_cmds_F77 | \
15798
archive_expsym_cmds_F77 | \
15799
module_cmds_F77 | \
15800
module_expsym_cmds_F77 | \
15801
old_archive_from_expsyms_cmds_F77 | \
15802
export_symbols_cmds_F77 | \
15803
extract_expsyms_cmds | reload_cmds | finish_cmds | \
15804
postinstall_cmds | postuninstall_cmds | \
15805
old_postinstall_cmds | old_postuninstall_cmds | \
15806
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15807
# Double-quote double-evaled strings.
15808
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15811
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15817
*'\$0 --fallback-echo"')
15818
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15824
cat <<__EOF__ >> "$cfgfile"
15825
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15827
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15829
# Shell to use when invoking shell scripts.
15832
# Whether or not to build shared libraries.
15833
build_libtool_libs=$enable_shared
15835
# Whether or not to build static libraries.
15836
build_old_libs=$enable_static
15838
# Whether or not to add -lc for building shared libraries.
15839
build_libtool_need_lc=$archive_cmds_need_lc_F77
15841
# Whether or not to disallow shared libs when runtime libs are static
15842
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15844
# Whether or not to optimize for fast installation.
15845
fast_install=$enable_fast_install
15848
host_alias=$host_alias
15852
# The build system.
15853
build_alias=$build_alias
15857
# An echo program that does not interpret backslashes.
15862
AR_FLAGS=$lt_AR_FLAGS
15867
# LTCC compiler flags.
15868
LTCFLAGS=$lt_LTCFLAGS
15870
# A language-specific compiler.
15871
CC=$lt_compiler_F77
15873
# Is the compiler the GNU C compiler?
15879
# The linker used to build libraries.
15882
# Whether we need hard or soft links.
15885
# A BSD-compatible nm program.
15888
# A symbol stripping program
15891
# Used to examine libraries when file_magic_cmd begins "file"
15892
MAGIC_CMD=$MAGIC_CMD
15894
# Used on cygwin: DLL creation program.
15897
# Used on cygwin: object dumper.
15900
# Used on cygwin: assembler.
15903
# The name of the directory that contains temporary libtool files.
15906
# How to create reloadable object files.
15907
reload_flag=$lt_reload_flag
15908
reload_cmds=$lt_reload_cmds
15910
# How to pass a linker flag through the compiler.
15911
wl=$lt_lt_prog_compiler_wl_F77
15913
# Object file suffix (normally "o").
15914
objext="$ac_objext"
15916
# Old archive suffix (normally "a").
15919
# Shared library suffix (normally ".so").
15920
shrext_cmds='$shrext_cmds'
15922
# Executable file suffix (normally "").
15925
# Additional compiler flags for building library objects.
15926
pic_flag=$lt_lt_prog_compiler_pic_F77
15929
# What is the maximum length of a command?
15930
max_cmd_len=$lt_cv_sys_max_cmd_len
15932
# Does compiler simultaneously support -c and -o options?
15933
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15935
# Must we lock files when doing compilation?
15936
need_locks=$lt_need_locks
15938
# Do we need the lib prefix for modules?
15939
need_lib_prefix=$need_lib_prefix
15941
# Do we need a version for libraries?
15942
need_version=$need_version
15944
# Whether dlopen is supported.
15945
dlopen_support=$enable_dlopen
15947
# Whether dlopen of programs is supported.
15948
dlopen_self=$enable_dlopen_self
15950
# Whether dlopen of statically linked programs is supported.
15951
dlopen_self_static=$enable_dlopen_self_static
15953
# Compiler flag to prevent dynamic linking.
15954
link_static_flag=$lt_lt_prog_compiler_static_F77
15956
# Compiler flag to turn off builtin functions.
15957
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15959
# Compiler flag to allow reflexive dlopens.
15960
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15962
# Compiler flag to generate shared objects directly from archives.
15963
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15965
# Compiler flag to generate thread-safe objects.
15966
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15968
# Library versioning type.
15969
version_type=$version_type
15971
# Format of library name prefix.
15972
libname_spec=$lt_libname_spec
15974
# List of archive names. First name is the real one, the rest are links.
15975
# The last name is the one that the linker finds with -lNAME.
15976
library_names_spec=$lt_library_names_spec
15978
# The coded name of the library, if different from the real name.
15979
soname_spec=$lt_soname_spec
15981
# Commands used to build and install an old-style archive.
15983
old_archive_cmds=$lt_old_archive_cmds_F77
15984
old_postinstall_cmds=$lt_old_postinstall_cmds
15985
old_postuninstall_cmds=$lt_old_postuninstall_cmds
15987
# Create an old-style archive from a shared archive.
15988
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15990
# Create a temporary old-style archive to link instead of a shared archive.
15991
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15993
# Commands used to build and install a shared archive.
15994
archive_cmds=$lt_archive_cmds_F77
15995
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15996
postinstall_cmds=$lt_postinstall_cmds
15997
postuninstall_cmds=$lt_postuninstall_cmds
15999
# Commands used to build a loadable module (assumed same as above if empty)
16000
module_cmds=$lt_module_cmds_F77
16001
module_expsym_cmds=$lt_module_expsym_cmds_F77
16003
# Commands to strip libraries.
16004
old_striplib=$lt_old_striplib
16005
striplib=$lt_striplib
16007
# Dependencies to place before the objects being linked to create a
16009
predep_objects=$lt_predep_objects_F77
16011
# Dependencies to place after the objects being linked to create a
16013
postdep_objects=$lt_postdep_objects_F77
16015
# Dependencies to place before the objects being linked to create a
16017
predeps=$lt_predeps_F77
16019
# Dependencies to place after the objects being linked to create a
16021
postdeps=$lt_postdeps_F77
16023
# The library search path used internally by the compiler when linking
16024
# a shared library.
16025
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16027
# Method to check whether dependent libraries are shared objects.
16028
deplibs_check_method=$lt_deplibs_check_method
16030
# Command to use when deplibs_check_method == file_magic.
16031
file_magic_cmd=$lt_file_magic_cmd
16033
# Flag that allows shared libraries with undefined symbols to be built.
16034
allow_undefined_flag=$lt_allow_undefined_flag_F77
16036
# Flag that forces no undefined symbols.
16037
no_undefined_flag=$lt_no_undefined_flag_F77
16039
# Commands used to finish a libtool library installation in a directory.
16040
finish_cmds=$lt_finish_cmds
16042
# Same as above, but a single script fragment to be evaled but not shown.
16043
finish_eval=$lt_finish_eval
16045
# Take the output of nm and produce a listing of raw symbols and C names.
16046
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16048
# Transform the output of nm in a proper C declaration
16049
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16051
# Transform the output of nm in a C name address pair
16052
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16054
# This is the shared library runtime path variable.
16055
runpath_var=$runpath_var
16057
# This is the shared library path variable.
16058
shlibpath_var=$shlibpath_var
16060
# Is shlibpath searched before the hard-coded library search path?
16061
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16063
# How to hardcode a shared library path into an executable.
16064
hardcode_action=$hardcode_action_F77
16066
# Whether we should hardcode library paths into libraries.
16067
hardcode_into_libs=$hardcode_into_libs
16069
# Flag to hardcode \$libdir into a binary during linking.
16070
# This must work even if \$libdir does not exist.
16071
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16073
# If ld is used when linking, flag to hardcode \$libdir into
16074
# a binary during linking. This must work even if \$libdir does
16076
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16078
# Whether we need a single -rpath flag with a separated argument.
16079
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16081
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16082
# resulting binary.
16083
hardcode_direct=$hardcode_direct_F77
16085
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16086
# resulting binary.
16087
hardcode_minus_L=$hardcode_minus_L_F77
16089
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16090
# the resulting binary.
16091
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16093
# Set to yes if building a shared library automatically hardcodes DIR into the library
16094
# and all subsequent libraries and executables linked against it.
16095
hardcode_automatic=$hardcode_automatic_F77
16097
# Variables whose values should be saved in libtool wrapper scripts and
16098
# restored at relink time.
16099
variables_saved_for_relink="$variables_saved_for_relink"
16101
# Whether libtool must link a program against all its dependency libraries.
16102
link_all_deplibs=$link_all_deplibs_F77
16104
# Compile-time system search path for libraries
16105
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16107
# Run-time system search path for libraries
16108
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16110
# Fix the shell variable \$srcfile for the compiler.
16111
fix_srcfile_path="$fix_srcfile_path_F77"
16113
# Set to yes if exported symbols are required.
16114
always_export_symbols=$always_export_symbols_F77
16116
# The commands to list exported symbols.
16117
export_symbols_cmds=$lt_export_symbols_cmds_F77
16119
# The commands to extract the exported symbol list from a shared archive.
16120
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16122
# Symbols that should not be listed in the preloaded symbols.
16123
exclude_expsyms=$lt_exclude_expsyms_F77
16125
# Symbols that must always be exported.
16126
include_expsyms=$lt_include_expsyms_F77
16128
# ### END LIBTOOL TAG CONFIG: $tagname
16134
# If there is no Makefile yet, we rely on a make rule to execute
16135
# `config.status --recheck' to rerun these tests and create the
16136
# libtool script then.
16137
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16138
if test -f "$ltmain_in"; then
16139
test -f Makefile && make "$ltmain"
16145
ac_cpp='$CPP $CPPFLAGS'
16146
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16147
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16148
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16158
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16161
# Source file extension for Java test sources.
16164
# Object file extension for compiled Java test sources.
16168
# Code to be used in simple compile tests
16169
lt_simple_compile_test_code="class foo {}\n"
16171
# Code to be used in simple link tests
16172
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16174
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16176
# If no C compiler was specified, use CC.
16179
# If no C compiler flags were specified, use CFLAGS.
16180
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16182
# Allow CC to be a program name with arguments.
16186
# save warnings/boilerplate of simple test code
16187
ac_outfile=conftest.$ac_objext
16188
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16189
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16190
_lt_compiler_boilerplate=`cat conftest.err`
16193
ac_outfile=conftest.$ac_objext
16194
printf "$lt_simple_link_test_code" >conftest.$ac_ext
16195
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16196
_lt_linker_boilerplate=`cat conftest.err`
16200
# Allow CC to be a program name with arguments.
16205
for cc_temp in $compiler""; do
16207
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16208
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16213
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16216
# GCJ did not exist at the time GCC didn't implicitly link libc in.
16217
archive_cmds_need_lc_GCJ=no
16219
old_archive_cmds_GCJ=$old_archive_cmds
16222
lt_prog_compiler_no_builtin_flag_GCJ=
16224
if test "$GCC" = yes; then
16225
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16228
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16229
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16230
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16231
echo $ECHO_N "(cached) $ECHO_C" >&6
16233
lt_cv_prog_compiler_rtti_exceptions=no
16234
ac_outfile=conftest.$ac_objext
16235
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16236
lt_compiler_flag="-fno-rtti -fno-exceptions"
16237
# Insert the option either (1) after the last *FLAGS variable, or
16238
# (2) before a word containing "conftest.", or (3) at the end.
16239
# Note that $ac_compile itself does not contain backslashes and begins
16240
# with a dollar sign (not a hyphen), so the echo should work correctly.
16241
# The option is referenced via a variable to avoid confusing sed.
16242
lt_compile=`echo "$ac_compile" | $SED \
16243
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16244
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16245
-e 's:$: $lt_compiler_flag:'`
16246
(eval echo "\"\$as_me:16246: $lt_compile\"" >&5)
16247
(eval "$lt_compile" 2>conftest.err)
16249
cat conftest.err >&5
16250
echo "$as_me:16250: \$? = $ac_status" >&5
16251
if (exit $ac_status) && test -s "$ac_outfile"; then
16252
# The compiler can only warn and ignore the option if not recognized
16253
# So say no if there are warnings other than the usual output.
16254
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16255
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16256
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16257
lt_cv_prog_compiler_rtti_exceptions=yes
16263
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16264
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16266
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16267
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16274
lt_prog_compiler_wl_GCJ=
16275
lt_prog_compiler_pic_GCJ=
16276
lt_prog_compiler_static_GCJ=
16278
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16279
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16281
if test "$GCC" = yes; then
16282
lt_prog_compiler_wl_GCJ='-Wl,'
16283
lt_prog_compiler_static_GCJ='-static'
16287
# All AIX code is PIC.
16288
if test "$host_cpu" = ia64; then
16289
# AIX 5 now supports IA64 processor
16290
lt_prog_compiler_static_GCJ='-Bstatic'
16295
# FIXME: we need at least 68020 code to build shared libraries, but
16296
# adding the `-m68020' flag to GCC prevents building anything better,
16298
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16301
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16302
# PIC is the default for these OSes.
16305
mingw* | pw32* | os2*)
16306
# This hack is so that the source file can tell whether it is being
16307
# built for inclusion in a dll (and should export symbols for example).
16308
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16311
darwin* | rhapsody*)
16312
# PIC is the default on this platform
16313
# Common symbols not allowed in MH_DYLIB files
16314
lt_prog_compiler_pic_GCJ='-fno-common'
16318
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
16319
# Instead, we relocate shared libraries at runtime.
16323
# Just because we use GCC doesn't mean we suddenly get shared libraries
16324
# on systems that don't support them.
16325
lt_prog_compiler_can_build_shared_GCJ=no
16330
if test -d /usr/nec; then
16331
lt_prog_compiler_pic_GCJ=-Kconform_pic
16336
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16337
# not for PA HP-UX.
16343
lt_prog_compiler_pic_GCJ='-fPIC'
16349
lt_prog_compiler_pic_GCJ='-fPIC'
16353
# PORTME Check for flag to pass linker flags through the system compiler.
16356
lt_prog_compiler_wl_GCJ='-Wl,'
16357
if test "$host_cpu" = ia64; then
16358
# AIX 5 now supports IA64 processor
16359
lt_prog_compiler_static_GCJ='-Bstatic'
16361
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16365
# PIC is the default on this platform
16366
# Common symbols not allowed in MH_DYLIB files
16367
case $cc_basename in
16369
lt_prog_compiler_pic_GCJ='-qnocommon'
16370
lt_prog_compiler_wl_GCJ='-Wl,'
16375
mingw* | pw32* | os2*)
16376
# This hack is so that the source file can tell whether it is being
16377
# built for inclusion in a dll (and should export symbols for example).
16378
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16381
hpux9* | hpux10* | hpux11*)
16382
lt_prog_compiler_wl_GCJ='-Wl,'
16383
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16384
# not for PA HP-UX.
16390
lt_prog_compiler_pic_GCJ='+Z'
16393
# Is there a better lt_prog_compiler_static that works with the bundled CC?
16394
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16397
irix5* | irix6* | nonstopux*)
16398
lt_prog_compiler_wl_GCJ='-Wl,'
16399
# PIC (with -KPIC) is the default.
16400
lt_prog_compiler_static_GCJ='-non_shared'
16404
lt_prog_compiler_pic_GCJ='-KPIC'
16405
lt_prog_compiler_static_GCJ='-Bstatic'
16408
linux* | k*bsd*-gnu)
16409
case $cc_basename in
16411
lt_prog_compiler_wl_GCJ='-Wl,'
16412
lt_prog_compiler_pic_GCJ='-KPIC'
16413
lt_prog_compiler_static_GCJ='-static'
16415
pgcc* | pgf77* | pgf90* | pgf95*)
16416
# Portland Group compilers (*not* the Pentium gcc compiler,
16417
# which looks to be a dead project)
16418
lt_prog_compiler_wl_GCJ='-Wl,'
16419
lt_prog_compiler_pic_GCJ='-fpic'
16420
lt_prog_compiler_static_GCJ='-Bstatic'
16423
lt_prog_compiler_wl_GCJ='-Wl,'
16424
# All Alpha code is PIC.
16425
lt_prog_compiler_static_GCJ='-non_shared'
16430
osf3* | osf4* | osf5*)
16431
lt_prog_compiler_wl_GCJ='-Wl,'
16432
# All OSF/1 code is PIC.
16433
lt_prog_compiler_static_GCJ='-non_shared'
16437
lt_prog_compiler_pic_GCJ='-KPIC'
16438
lt_prog_compiler_static_GCJ='-Bstatic'
16439
case $cc_basename in
16440
f77* | f90* | f95*)
16441
lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16443
lt_prog_compiler_wl_GCJ='-Wl,';;
16448
lt_prog_compiler_wl_GCJ='-Qoption ld '
16449
lt_prog_compiler_pic_GCJ='-PIC'
16450
lt_prog_compiler_static_GCJ='-Bstatic'
16453
sysv4 | sysv4.2uw2* | sysv4.3*)
16454
lt_prog_compiler_wl_GCJ='-Wl,'
16455
lt_prog_compiler_pic_GCJ='-KPIC'
16456
lt_prog_compiler_static_GCJ='-Bstatic'
16460
if test -d /usr/nec ;then
16461
lt_prog_compiler_pic_GCJ='-Kconform_pic'
16462
lt_prog_compiler_static_GCJ='-Bstatic'
16466
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16467
lt_prog_compiler_wl_GCJ='-Wl,'
16468
lt_prog_compiler_pic_GCJ='-KPIC'
16469
lt_prog_compiler_static_GCJ='-Bstatic'
16473
lt_prog_compiler_wl_GCJ='-Wl,'
16474
lt_prog_compiler_can_build_shared_GCJ=no
16478
lt_prog_compiler_pic_GCJ='-pic'
16479
lt_prog_compiler_static_GCJ='-Bstatic'
16483
lt_prog_compiler_can_build_shared_GCJ=no
16488
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16489
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16492
# Check to make sure the PIC flag actually works.
16494
if test -n "$lt_prog_compiler_pic_GCJ"; then
16496
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16497
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16498
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16499
echo $ECHO_N "(cached) $ECHO_C" >&6
16501
lt_prog_compiler_pic_works_GCJ=no
16502
ac_outfile=conftest.$ac_objext
16503
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16504
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16505
# Insert the option either (1) after the last *FLAGS variable, or
16506
# (2) before a word containing "conftest.", or (3) at the end.
16507
# Note that $ac_compile itself does not contain backslashes and begins
16508
# with a dollar sign (not a hyphen), so the echo should work correctly.
16509
# The option is referenced via a variable to avoid confusing sed.
16510
lt_compile=`echo "$ac_compile" | $SED \
16511
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16512
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16513
-e 's:$: $lt_compiler_flag:'`
16514
(eval echo "\"\$as_me:16514: $lt_compile\"" >&5)
16515
(eval "$lt_compile" 2>conftest.err)
16517
cat conftest.err >&5
16518
echo "$as_me:16518: \$? = $ac_status" >&5
16519
if (exit $ac_status) && test -s "$ac_outfile"; then
16520
# The compiler can only warn and ignore the option if not recognized
16521
# So say no if there are warnings other than the usual output.
16522
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16523
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16524
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16525
lt_prog_compiler_pic_works_GCJ=yes
16531
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16532
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16534
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16535
case $lt_prog_compiler_pic_GCJ in
16537
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16540
lt_prog_compiler_pic_GCJ=
16541
lt_prog_compiler_can_build_shared_GCJ=no
16546
# For platforms which do not support PIC, -DPIC is meaningless:
16548
lt_prog_compiler_pic_GCJ=
16551
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16556
# Check to make sure the static flag actually works.
16558
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16559
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16560
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16561
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16562
echo $ECHO_N "(cached) $ECHO_C" >&6
16564
lt_prog_compiler_static_works_GCJ=no
16565
save_LDFLAGS="$LDFLAGS"
16566
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16567
printf "$lt_simple_link_test_code" > conftest.$ac_ext
16568
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16569
# The linker can only warn and ignore the option if not recognized
16570
# So say no if there are warnings
16571
if test -s conftest.err; then
16572
# Append any errors to the config.log.
16573
cat conftest.err 1>&5
16574
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16575
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16576
if diff conftest.exp conftest.er2 >/dev/null; then
16577
lt_prog_compiler_static_works_GCJ=yes
16580
lt_prog_compiler_static_works_GCJ=yes
16584
LDFLAGS="$save_LDFLAGS"
16587
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16588
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16590
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16593
lt_prog_compiler_static_GCJ=
16597
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16598
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16599
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16600
echo $ECHO_N "(cached) $ECHO_C" >&6
16602
lt_cv_prog_compiler_c_o_GCJ=no
16603
$rm -r conftest 2>/dev/null
16607
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16609
lt_compiler_flag="-o out/conftest2.$ac_objext"
16610
# Insert the option either (1) after the last *FLAGS variable, or
16611
# (2) before a word containing "conftest.", or (3) at the end.
16612
# Note that $ac_compile itself does not contain backslashes and begins
16613
# with a dollar sign (not a hyphen), so the echo should work correctly.
16614
lt_compile=`echo "$ac_compile" | $SED \
16615
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16616
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16617
-e 's:$: $lt_compiler_flag:'`
16618
(eval echo "\"\$as_me:16618: $lt_compile\"" >&5)
16619
(eval "$lt_compile" 2>out/conftest.err)
16621
cat out/conftest.err >&5
16622
echo "$as_me:16622: \$? = $ac_status" >&5
16623
if (exit $ac_status) && test -s out/conftest2.$ac_objext
16625
# The compiler can only warn and ignore the option if not recognized
16626
# So say no if there are warnings
16627
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16628
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16629
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16630
lt_cv_prog_compiler_c_o_GCJ=yes
16635
# SGI C++ compiler will create directory out/ii_files/ for
16636
# template instantiation
16637
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16638
$rm out/* && rmdir out
16644
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16645
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16648
hard_links="nottested"
16649
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16650
# do not overwrite the value of need_locks provided by the user
16651
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16652
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16655
ln conftest.a conftest.b 2>/dev/null && hard_links=no
16657
ln conftest.a conftest.b 2>&5 || hard_links=no
16658
ln conftest.a conftest.b 2>/dev/null && hard_links=no
16659
{ echo "$as_me:$LINENO: result: $hard_links" >&5
16660
echo "${ECHO_T}$hard_links" >&6; }
16661
if test "$hard_links" = no; then
16662
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16663
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16670
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16671
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16674
allow_undefined_flag_GCJ=
16675
enable_shared_with_static_runtimes_GCJ=no
16677
archive_expsym_cmds_GCJ=
16678
old_archive_From_new_cmds_GCJ=
16679
old_archive_from_expsyms_cmds_GCJ=
16680
export_dynamic_flag_spec_GCJ=
16681
whole_archive_flag_spec_GCJ=
16682
thread_safe_flag_spec_GCJ=
16683
hardcode_libdir_flag_spec_GCJ=
16684
hardcode_libdir_flag_spec_ld_GCJ=
16685
hardcode_libdir_separator_GCJ=
16686
hardcode_direct_GCJ=no
16687
hardcode_minus_L_GCJ=no
16688
hardcode_shlibpath_var_GCJ=unsupported
16689
link_all_deplibs_GCJ=unknown
16690
hardcode_automatic_GCJ=no
16692
module_expsym_cmds_GCJ=
16693
always_export_symbols_GCJ=no
16694
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16695
# include_expsyms should be a list of space-separated symbols to be *always*
16696
# included in the symbol list
16697
include_expsyms_GCJ=
16698
# exclude_expsyms can be an extended regexp of symbols to exclude
16699
# it will be wrapped by ` (' and `)$', so one must not match beginning or
16700
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16701
# as well as any symbol that contains `d'.
16702
exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16703
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16704
# platforms (ab)use it in PIC code, but their linkers get confused if
16705
# the symbol is explicitly referenced. Since portable code cannot
16706
# rely on this symbol name, it's probably fine to never include it in
16707
# preloaded symbol tables.
16708
extract_expsyms_cmds=
16709
# Just being paranoid about ensuring that cc_basename is set.
16710
for cc_temp in $compiler""; do
16712
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16713
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16718
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16721
cygwin* | mingw* | pw32*)
16722
# FIXME: the MSVC++ port hasn't been tested in a loooong time
16723
# When not using gcc, we currently assume that we are using
16724
# Microsoft Visual C++.
16725
if test "$GCC" != yes; then
16730
# we just hope/assume this is gcc and not c89 (= MSVC++)
16739
if test "$with_gnu_ld" = yes; then
16740
# If archive_cmds runs LD, not CC, wlarc should be empty
16743
# Set some defaults for GNU ld with shared library support. These
16744
# are reset later if shared libraries are not supported. Putting them
16745
# here allows them to be overridden if necessary.
16746
runpath_var=LD_RUN_PATH
16747
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16748
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16749
# ancient GNU ld didn't support --whole-archive et. al.
16750
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16751
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16753
whole_archive_flag_spec_GCJ=
16755
supports_anon_versioning=no
16756
case `$LD -v 2>/dev/null` in
16757
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16758
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16759
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16760
*\ 2.11.*) ;; # other 2.11 versions
16761
*) supports_anon_versioning=yes ;;
16764
# See if GNU ld supports shared libraries.
16766
aix3* | aix4* | aix5*)
16767
# On AIX/PPC, the GNU linker is very broken
16768
if test "$host_cpu" != ia64; then
16772
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16773
*** to be unable to reliably create shared libraries on AIX.
16774
*** Therefore, libtool is disabling shared libraries support. If you
16775
*** really care for shared libraries, you may want to modify your PATH
16776
*** so that a non-GNU linker is found, and then restart.
16783
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)'
16784
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16785
hardcode_minus_L_GCJ=yes
16787
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16788
# that the semantics of dynamic libraries on AmigaOS, at least up
16789
# to version 4, is to share data among multiple programs linked
16790
# with the same dynamic library. Since this doesn't match the
16791
# behavior of shared libraries on other platforms, we can't use
16797
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16798
allow_undefined_flag_GCJ=unsupported
16799
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16800
# support --undefined. This deserves some investigation. FIXME
16801
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16807
cygwin* | mingw* | pw32*)
16808
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16809
# as there is no search path for DLLs.
16810
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16811
allow_undefined_flag_GCJ=unsupported
16812
always_export_symbols_GCJ=no
16813
enable_shared_with_static_runtimes_GCJ=yes
16814
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16816
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16817
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16818
# If the export-symbols file already is a .def file (1st line
16819
# is EXPORTS), use it as is; otherwise, prepend...
16820
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16821
cp $export_symbols $output_objdir/$soname.def;
16823
echo EXPORTS > $output_objdir/$soname.def;
16824
cat $export_symbols >> $output_objdir/$soname.def;
16826
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16833
hardcode_direct_GCJ=no
16834
hardcode_shlibpath_var_GCJ=no
16835
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16836
export_dynamic_flag_spec_GCJ='${wl}-E'
16837
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16838
# Instead, shared libraries are loaded at an image base (0x10000000 by
16839
# default) and relocated if they conflict, which is a slow very memory
16840
# consuming and fragmenting process. To avoid this, we pick a random,
16841
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16842
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
16843
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'
16844
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'
16847
linux* | k*bsd*-gnu)
16848
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16850
case $cc_basename,$host_cpu in
16851
pgcc*) # Portland Group C compiler
16852
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'
16853
tmp_addflag=' $pic_flag'
16855
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16856
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'
16857
tmp_addflag=' $pic_flag -Mnomain' ;;
16858
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16859
tmp_addflag=' -i_dynamic' ;;
16860
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16861
tmp_addflag=' -i_dynamic -nofor_main' ;;
16862
ifc* | ifort*) # Intel Fortran compiler
16863
tmp_addflag=' -nofor_main' ;;
16865
archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16867
if test $supports_anon_versioning = yes; then
16868
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16869
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16870
$echo "local: *; };" >> $output_objdir/$libname.ver~
16871
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16873
link_all_deplibs_GCJ=no
16879
netbsd* | netbsdelf*-gnu)
16880
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16881
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16884
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16885
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16890
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16894
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16895
*** create shared libraries on Solaris systems. Therefore, libtool
16896
*** is disabling shared libraries support. We urge you to upgrade GNU
16897
*** binutils to release 2.9.1 or newer. Another option is to modify
16898
*** your PATH or compiler configuration so that the native linker is
16899
*** used, and then restart.
16902
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16903
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16904
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16910
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16911
case `$LD -v 2>&1` in
16912
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16916
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16917
*** reliably create shared libraries on SCO systems. Therefore, libtool
16918
*** is disabling shared libraries support. We urge you to upgrade GNU
16919
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16920
*** your PATH or compiler configuration so that the native linker is
16921
*** used, and then restart.
16926
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16927
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16928
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16929
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16938
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16940
hardcode_direct_GCJ=yes
16941
hardcode_shlibpath_var_GCJ=no
16945
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16946
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16947
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16954
if test "$ld_shlibs_GCJ" = no; then
16956
hardcode_libdir_flag_spec_GCJ=
16957
export_dynamic_flag_spec_GCJ=
16958
whole_archive_flag_spec_GCJ=
16961
# PORTME fill in a description of your system's linker (not GNU ld)
16964
allow_undefined_flag_GCJ=unsupported
16965
always_export_symbols_GCJ=yes
16966
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'
16967
# Note: this linker hardcodes the directories in LIBPATH if there
16968
# are no directories specified by -L.
16969
hardcode_minus_L_GCJ=yes
16970
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16971
# Neither direct hardcoding nor static linking is supported with a
16973
hardcode_direct_GCJ=unsupported
16978
if test "$host_cpu" = ia64; then
16979
# On IA64, the linker does run time linking by default, so we don't
16980
# have to do anything special.
16981
aix_use_runtimelinking=no
16982
exp_sym_flag='-Bexport'
16985
# If we're using GNU nm, then we don't want the "-C" option.
16986
# -C means demangle to AIX nm, but means don't demangle with GNU nm
16987
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16988
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'
16990
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'
16992
aix_use_runtimelinking=no
16994
# Test if we are trying to use run time linking or normal
16995
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16996
# need to do runtime linking.
16997
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16998
for ld_flag in $LDFLAGS; do
16999
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17000
aix_use_runtimelinking=yes
17007
exp_sym_flag='-bexport'
17008
no_entry_flag='-bnoentry'
17011
# When large executables or shared objects are built, AIX ld can
17012
# have problems creating the table of contents. If linking a library
17013
# or program results in "error TOC overflow" add -mminimal-toc to
17014
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17015
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17017
archive_cmds_GCJ=''
17018
hardcode_direct_GCJ=yes
17019
hardcode_libdir_separator_GCJ=':'
17020
link_all_deplibs_GCJ=yes
17022
if test "$GCC" = yes; then
17023
case $host_os in aix4.[012]|aix4.[012].*)
17024
# We only want to do this on AIX 4.2 and lower, the check
17025
# below for broken collect2 doesn't work under 4.3+
17026
collect2name=`${CC} -print-prog-name=collect2`
17027
if test -f "$collect2name" && \
17028
strings "$collect2name" | grep resolve_lib_name >/dev/null
17030
# We have reworked collect2
17031
hardcode_direct_GCJ=yes
17033
# We have old collect2
17034
hardcode_direct_GCJ=unsupported
17035
# It fails to find uninstalled libraries when the uninstalled
17036
# path is not listed in the libpath. Setting hardcode_minus_L
17037
# to unsupported forces relinking
17038
hardcode_minus_L_GCJ=yes
17039
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17040
hardcode_libdir_separator_GCJ=
17044
shared_flag='-shared'
17045
if test "$aix_use_runtimelinking" = yes; then
17046
shared_flag="$shared_flag "'${wl}-G'
17050
if test "$host_cpu" = ia64; then
17051
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17052
# chokes on -Wl,-G. The following line is correct:
17055
if test "$aix_use_runtimelinking" = yes; then
17056
shared_flag='${wl}-G'
17058
shared_flag='${wl}-bM:SRE'
17063
# It seems that -bexpall does not export symbols beginning with
17064
# underscore (_), so it is better to generate a list of symbols to export.
17065
always_export_symbols_GCJ=yes
17066
if test "$aix_use_runtimelinking" = yes; then
17067
# Warning - without using the other runtime loading flags (-brtl),
17068
# -berok will link without error, but may produce a broken library.
17069
allow_undefined_flag_GCJ='-berok'
17070
# Determine the default libpath from the value encoded in an empty executable.
17071
cat >conftest.$ac_ext <<_ACEOF
17074
cat confdefs.h >>conftest.$ac_ext
17075
cat >>conftest.$ac_ext <<_ACEOF
17076
/* end confdefs.h. */
17086
rm -f conftest.$ac_objext conftest$ac_exeext
17087
if { (ac_try="$ac_link"
17088
case "(($ac_try" in
17089
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17090
*) ac_try_echo=$ac_try;;
17092
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17093
(eval "$ac_link") 2>conftest.er1
17095
grep -v '^ *+' conftest.er1 >conftest.err
17097
cat conftest.err >&5
17098
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17099
(exit $ac_status); } && {
17100
test -z "$ac_c_werror_flag" ||
17101
test ! -s conftest.err
17102
} && test -s conftest$ac_exeext &&
17103
$as_test_x conftest$ac_exeext; then
17105
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17107
# Check for a 64-bit object if we didn't find anything.
17108
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17111
echo "$as_me: failed program was:" >&5
17112
sed 's/^/| /' conftest.$ac_ext >&5
17117
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17118
conftest$ac_exeext conftest.$ac_ext
17119
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17121
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17122
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"
17124
if test "$host_cpu" = ia64; then
17125
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17126
allow_undefined_flag_GCJ="-z nodefs"
17127
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"
17129
# Determine the default libpath from the value encoded in an empty executable.
17130
cat >conftest.$ac_ext <<_ACEOF
17133
cat confdefs.h >>conftest.$ac_ext
17134
cat >>conftest.$ac_ext <<_ACEOF
17135
/* end confdefs.h. */
17145
rm -f conftest.$ac_objext conftest$ac_exeext
17146
if { (ac_try="$ac_link"
17147
case "(($ac_try" in
17148
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17149
*) ac_try_echo=$ac_try;;
17151
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17152
(eval "$ac_link") 2>conftest.er1
17154
grep -v '^ *+' conftest.er1 >conftest.err
17156
cat conftest.err >&5
17157
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17158
(exit $ac_status); } && {
17159
test -z "$ac_c_werror_flag" ||
17160
test ! -s conftest.err
17161
} && test -s conftest$ac_exeext &&
17162
$as_test_x conftest$ac_exeext; then
17164
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17166
# Check for a 64-bit object if we didn't find anything.
17167
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17170
echo "$as_me: failed program was:" >&5
17171
sed 's/^/| /' conftest.$ac_ext >&5
17176
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17177
conftest$ac_exeext conftest.$ac_ext
17178
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17180
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17181
# Warning - without using the other run time loading flags,
17182
# -berok will link without error, but may produce a broken library.
17183
no_undefined_flag_GCJ=' ${wl}-bernotok'
17184
allow_undefined_flag_GCJ=' ${wl}-berok'
17185
# Exported symbols can be pulled into shared objects from archives
17186
whole_archive_flag_spec_GCJ='$convenience'
17187
archive_cmds_need_lc_GCJ=yes
17188
# This is similar to how AIX traditionally builds its shared libraries.
17189
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'
17195
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)'
17196
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17197
hardcode_minus_L_GCJ=yes
17198
# see comment about different semantics on the GNU ld section
17203
export_dynamic_flag_spec_GCJ=-rdynamic
17206
cygwin* | mingw* | pw32*)
17207
# When not using gcc, we currently assume that we are using
17208
# Microsoft Visual C++.
17209
# hardcode_libdir_flag_spec is actually meaningless, as there is
17210
# no search path for DLLs.
17211
hardcode_libdir_flag_spec_GCJ=' '
17212
allow_undefined_flag_GCJ=unsupported
17213
# Tell ltmain to make .lib files, not .a files.
17215
# Tell ltmain to make .dll files, not .so files.
17217
# FIXME: Setting linknames here is a bad hack.
17218
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17219
# The linker will automatically build a .lib file if we build a DLL.
17220
old_archive_From_new_cmds_GCJ='true'
17221
# FIXME: Should let the user specify the lib program.
17222
old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17223
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17224
enable_shared_with_static_runtimes_GCJ=yes
17227
darwin* | rhapsody*)
17229
rhapsody* | darwin1.[012])
17230
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17233
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17234
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17236
case ${MACOSX_DEPLOYMENT_TARGET} in
17238
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17241
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17247
archive_cmds_need_lc_GCJ=no
17248
hardcode_direct_GCJ=no
17249
hardcode_automatic_GCJ=yes
17250
hardcode_shlibpath_var_GCJ=unsupported
17251
whole_archive_flag_spec_GCJ=''
17252
link_all_deplibs_GCJ=yes
17253
if test "$GCC" = yes ; then
17254
output_verbose_link_cmd='echo'
17255
archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17256
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17257
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17258
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}'
17259
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}'
17261
case $cc_basename in
17263
output_verbose_link_cmd='echo'
17264
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17265
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17266
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17267
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17268
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}'
17278
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17279
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17280
hardcode_shlibpath_var_GCJ=no
17287
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17288
# support. Future versions do this automatically, but an explicit c++rt0.o
17289
# does not break anything, and helps significantly (at the cost of a little
17292
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17293
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17294
hardcode_direct_GCJ=yes
17295
hardcode_shlibpath_var_GCJ=no
17298
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
17300
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17301
hardcode_direct_GCJ=yes
17302
hardcode_minus_L_GCJ=yes
17303
hardcode_shlibpath_var_GCJ=no
17306
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17307
freebsd* | dragonfly*)
17308
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17309
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17310
hardcode_direct_GCJ=yes
17311
hardcode_shlibpath_var_GCJ=no
17315
if test "$GCC" = yes; then
17316
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'
17318
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'
17320
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17321
hardcode_libdir_separator_GCJ=:
17322
hardcode_direct_GCJ=yes
17324
# hardcode_minus_L: Not really in the search PATH,
17325
# but as the default location of the library.
17326
hardcode_minus_L_GCJ=yes
17327
export_dynamic_flag_spec_GCJ='${wl}-E'
17331
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17332
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17334
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17336
if test "$with_gnu_ld" = no; then
17337
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17338
hardcode_libdir_separator_GCJ=:
17340
hardcode_direct_GCJ=yes
17341
export_dynamic_flag_spec_GCJ='${wl}-E'
17343
# hardcode_minus_L: Not really in the search PATH,
17344
# but as the default location of the library.
17345
hardcode_minus_L_GCJ=yes
17350
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17353
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17356
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17359
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17365
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17368
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17371
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17375
if test "$with_gnu_ld" = no; then
17376
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17377
hardcode_libdir_separator_GCJ=:
17381
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17382
hardcode_direct_GCJ=no
17383
hardcode_shlibpath_var_GCJ=no
17386
hardcode_direct_GCJ=yes
17387
export_dynamic_flag_spec_GCJ='${wl}-E'
17389
# hardcode_minus_L: Not really in the search PATH,
17390
# but as the default location of the library.
17391
hardcode_minus_L_GCJ=yes
17397
irix5* | irix6* | nonstopux*)
17398
if test "$GCC" = yes; then
17399
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'
17401
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'
17402
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17404
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17405
hardcode_libdir_separator_GCJ=:
17406
link_all_deplibs_GCJ=yes
17409
netbsd* | netbsdelf*-gnu)
17410
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17411
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17413
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17415
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17416
hardcode_direct_GCJ=yes
17417
hardcode_shlibpath_var_GCJ=no
17421
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17422
hardcode_direct_GCJ=yes
17423
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17424
hardcode_libdir_separator_GCJ=:
17425
hardcode_shlibpath_var_GCJ=no
17429
hardcode_direct_GCJ=yes
17430
hardcode_shlibpath_var_GCJ=no
17431
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17432
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17433
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17434
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17435
export_dynamic_flag_spec_GCJ='${wl}-E'
17438
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17439
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17440
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17443
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17444
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17451
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17452
hardcode_minus_L_GCJ=yes
17453
allow_undefined_flag_GCJ=unsupported
17454
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'
17455
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17459
if test "$GCC" = yes; then
17460
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17461
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'
17463
allow_undefined_flag_GCJ=' -expect_unresolved \*'
17464
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'
17466
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17467
hardcode_libdir_separator_GCJ=:
17470
osf4* | osf5*) # as osf3* with the addition of -msym flag
17471
if test "$GCC" = yes; then
17472
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17473
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'
17474
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17476
allow_undefined_flag_GCJ=' -expect_unresolved \*'
17477
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'
17478
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~
17479
$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'
17481
# Both c and cxx compiler support -rpath directly
17482
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17484
hardcode_libdir_separator_GCJ=:
17488
no_undefined_flag_GCJ=' -z text'
17489
if test "$GCC" = yes; then
17491
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17492
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17493
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17496
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17497
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17498
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17500
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17501
hardcode_shlibpath_var_GCJ=no
17503
solaris2.[0-5] | solaris2.[0-5].*) ;;
17505
# The compiler driver will combine linker options so we
17506
# cannot just pass the convience library names through
17507
# without $wl, iff we do not link with $LD.
17508
# Luckily, gcc supports the same syntax we need for Sun Studio.
17509
# Supported since Solaris 2.6 (maybe 2.5.1?)
17512
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17514
whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17517
link_all_deplibs_GCJ=yes
17521
if test "x$host_vendor" = xsequent; then
17522
# Use $CC to link under sequent, because it throws in some extra .o
17523
# files that make .init and .fini sections work.
17524
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17526
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17528
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17529
hardcode_direct_GCJ=yes
17530
hardcode_minus_L_GCJ=yes
17531
hardcode_shlibpath_var_GCJ=no
17535
case $host_vendor in
17537
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17538
hardcode_direct_GCJ=yes # is this really true???
17541
## LD is ld it makes a PLAMLIB
17542
## CC just makes a GrossModule.
17543
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17544
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17545
hardcode_direct_GCJ=no
17548
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17549
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17552
runpath_var='LD_RUN_PATH'
17553
hardcode_shlibpath_var_GCJ=no
17557
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17558
hardcode_shlibpath_var_GCJ=no
17559
export_dynamic_flag_spec_GCJ='-Bexport'
17563
if test -d /usr/nec; then
17564
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17565
hardcode_shlibpath_var_GCJ=no
17566
runpath_var=LD_RUN_PATH
17567
hardcode_runpath_var=yes
17572
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17573
no_undefined_flag_GCJ='${wl}-z,text'
17574
archive_cmds_need_lc_GCJ=no
17575
hardcode_shlibpath_var_GCJ=no
17576
runpath_var='LD_RUN_PATH'
17578
if test "$GCC" = yes; then
17579
archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17580
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17582
archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17583
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17587
sysv5* | sco3.2v5* | sco5v6*)
17588
# Note: We can NOT use -z defs as we might desire, because we do not
17589
# link with -lc, and that would cause any symbols used from libc to
17590
# always be unresolved, which means just about no library would
17591
# ever link correctly. If we're not using GNU ld we use -z text
17592
# though, which does catch some bad symbols but isn't as heavy-handed
17594
no_undefined_flag_GCJ='${wl}-z,text'
17595
allow_undefined_flag_GCJ='${wl}-z,nodefs'
17596
archive_cmds_need_lc_GCJ=no
17597
hardcode_shlibpath_var_GCJ=no
17598
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17599
hardcode_libdir_separator_GCJ=':'
17600
link_all_deplibs_GCJ=yes
17601
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17602
runpath_var='LD_RUN_PATH'
17604
if test "$GCC" = yes; then
17605
archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17606
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17608
archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17609
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17614
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17615
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17616
hardcode_shlibpath_var_GCJ=no
17625
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17626
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17627
test "$ld_shlibs_GCJ" = no && can_build_shared=no
17630
# Do we need to explicitly link libc?
17632
case "x$archive_cmds_need_lc_GCJ" in
17634
# Assume -lc should be added
17635
archive_cmds_need_lc_GCJ=yes
17637
if test "$enable_shared" = yes && test "$GCC" = yes; then
17638
case $archive_cmds_GCJ in
17640
# FIXME: we may have to deal with multi-command sequences.
17643
# Test whether the compiler implicitly links with -lc since on some
17644
# systems, -lgcc has to come before -lc. If gcc already passes -lc
17645
# to ld, don't add -lc before -lgcc.
17646
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17647
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17649
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17651
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17652
(eval $ac_compile) 2>&5
17654
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17655
(exit $ac_status); } 2>conftest.err; then
17658
libobjs=conftest.$ac_objext
17660
wl=$lt_prog_compiler_wl_GCJ
17661
pic_flag=$lt_prog_compiler_pic_GCJ
17667
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17668
allow_undefined_flag_GCJ=
17669
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17670
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17672
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17673
(exit $ac_status); }
17675
archive_cmds_need_lc_GCJ=no
17677
archive_cmds_need_lc_GCJ=yes
17679
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17681
cat conftest.err 1>&5
17684
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17685
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17692
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17693
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17694
library_names_spec=
17695
libname_spec='lib$name'
17699
postuninstall_cmds=
17703
shlibpath_overrides_runpath=unknown
17705
dynamic_linker="$host_os ld.so"
17706
sys_lib_dlsearch_path_spec="/lib /usr/lib"
17707
if test "$GCC" = yes; then
17708
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17709
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17710
# if the path contains ";" then we assume it to be the separator
17711
# otherwise default to the standard path separator (i.e. ":") - it is
17712
# assumed that no part of a normal pathname contains ";" but that should
17713
# okay in the real world where ";" in dirpaths is itself problematic.
17714
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17716
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17719
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17721
need_lib_prefix=unknown
17722
hardcode_into_libs=no
17724
# when you set need_version to no, make sure it does not cause -set_version
17725
# flags to be left without arguments
17726
need_version=unknown
17731
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17732
shlibpath_var=LIBPATH
17734
# AIX 3 has no versioning support, so we append a major version to the name.
17735
soname_spec='${libname}${release}${shared_ext}$major'
17742
hardcode_into_libs=yes
17743
if test "$host_cpu" = ia64; then
17744
# AIX 5 supports IA64
17745
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17746
shlibpath_var=LD_LIBRARY_PATH
17748
# With GCC up to 2.95.x, collect2 would create an import file
17749
# for dependence libraries. The import file would start with
17750
# the line `#! .'. This would cause the generated library to
17751
# depend on `.', always an invalid library. This was fixed in
17752
# development snapshots of GCC prior to 3.0.
17754
aix4 | aix4.[01] | aix4.[01].*)
17755
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17757
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17760
can_build_shared=no
17764
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17765
# soname into executable. Probably we can add versioning support to
17766
# collect2, so additional links can be useful in future.
17767
if test "$aix_use_runtimelinking" = yes; then
17768
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
17769
# instead of lib<name>.a to let people know that these are not
17770
# typical AIX shared libraries.
17771
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17773
# We preserve .a as extension for shared libraries through AIX4.2
17774
# and later when we are not doing run time linking.
17775
library_names_spec='${libname}${release}.a $libname.a'
17776
soname_spec='${libname}${release}${shared_ext}$major'
17778
shlibpath_var=LIBPATH
17783
library_names_spec='$libname.ixlibrary $libname.a'
17784
# Create ${libname}_ixlibrary.a entries in /sys/libs.
17785
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'
17789
library_names_spec='${libname}${shared_ext}'
17790
dynamic_linker="$host_os ld.so"
17791
shlibpath_var=LIBRARY_PATH
17797
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17798
soname_spec='${libname}${release}${shared_ext}$major'
17799
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17800
shlibpath_var=LD_LIBRARY_PATH
17801
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17802
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17803
# the default ld.so.conf also contains /usr/contrib/lib and
17804
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17805
# libtool to hard-code these into programs
17808
cygwin* | mingw* | pw32*)
17809
version_type=windows
17814
case $GCC,$host_os in
17815
yes,cygwin* | yes,mingw* | yes,pw32*)
17816
library_names_spec='$libname.dll.a'
17817
# DLL is installed to $(libdir)/../bin by postinstall_cmds
17818
postinstall_cmds='base_file=`basename \${file}`~
17819
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17820
dldir=$destdir/`dirname \$dlpath`~
17821
test -d \$dldir || mkdir -p \$dldir~
17822
$install_prog $dir/$dlname \$dldir/$dlname~
17823
chmod a+x \$dldir/$dlname'
17824
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17825
dlpath=$dir/\$dldll~
17827
shlibpath_overrides_runpath=yes
17831
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
17832
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17833
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17836
# MinGW DLLs use traditional 'lib' prefix
17837
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17838
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17839
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17840
# It is most probably a Windows format PATH printed by
17841
# mingw gcc, but we are running on Cygwin. Gcc prints its search
17842
# path with ; separators, and with drive letters. We can handle the
17843
# drive letters (cygwin fileutils understands them), so leave them,
17844
# especially as we might pass files found there to a mingw objdump,
17845
# which wouldn't understand a cygwinified path. Ahh.
17846
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17848
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17852
# pw32 DLLs use 'pw' prefix rather than 'lib'
17853
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17859
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17862
dynamic_linker='Win32 ld.exe'
17863
# FIXME: first we should search . and the directory the executable is in
17867
darwin* | rhapsody*)
17868
dynamic_linker="$host_os dyld"
17869
version_type=darwin
17872
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17873
soname_spec='${libname}${release}${major}$shared_ext'
17874
shlibpath_overrides_runpath=yes
17875
shlibpath_var=DYLD_LIBRARY_PATH
17876
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17877
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17878
if test "$GCC" = yes; then
17879
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17881
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17883
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17890
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17891
soname_spec='${libname}${release}${shared_ext}$major'
17892
shlibpath_var=LD_LIBRARY_PATH
17899
freebsd* | dragonfly*)
17900
# DragonFly does not have aout. When/if they implement a new
17901
# versioning mechanism, adjust this.
17902
if test -x /usr/bin/objformat; then
17903
objformat=`/usr/bin/objformat`
17906
freebsd[123]*) objformat=aout ;;
17907
*) objformat=elf ;;
17910
version_type=freebsd-$objformat
17911
case $version_type in
17913
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17918
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17922
shlibpath_var=LD_LIBRARY_PATH
17925
shlibpath_overrides_runpath=yes
17927
freebsd3.[01]* | freebsdelf3.[01]*)
17928
shlibpath_overrides_runpath=yes
17929
hardcode_into_libs=yes
17931
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17932
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17933
shlibpath_overrides_runpath=no
17934
hardcode_into_libs=yes
17936
freebsd*) # from 4.6 on
17937
shlibpath_overrides_runpath=yes
17938
hardcode_into_libs=yes
17947
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17948
soname_spec='${libname}${release}${shared_ext}$major'
17949
shlibpath_var=LD_LIBRARY_PATH
17950
hardcode_into_libs=yes
17953
hpux9* | hpux10* | hpux11*)
17954
# Give a soname corresponding to the major version so that dld.sl refuses to
17955
# link against other versions.
17962
hardcode_into_libs=yes
17963
dynamic_linker="$host_os dld.so"
17964
shlibpath_var=LD_LIBRARY_PATH
17965
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17966
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17967
soname_spec='${libname}${release}${shared_ext}$major'
17968
if test "X$HPUX_IA64_MODE" = X32; then
17969
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17971
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17973
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17977
hardcode_into_libs=yes
17978
dynamic_linker="$host_os dld.sl"
17979
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17980
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17981
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17982
soname_spec='${libname}${release}${shared_ext}$major'
17983
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17984
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17988
dynamic_linker="$host_os dld.sl"
17989
shlibpath_var=SHLIB_PATH
17990
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17991
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17992
soname_spec='${libname}${release}${shared_ext}$major'
17995
# HP-UX runs *really* slowly unless shared libraries are mode 555.
17996
postinstall_cmds='chmod 555 $lib'
18003
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18004
soname_spec='${libname}${release}${shared_ext}$major'
18005
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18006
shlibpath_var=LD_LIBRARY_PATH
18007
shlibpath_overrides_runpath=no
18008
hardcode_into_libs=yes
18011
irix5* | irix6* | nonstopux*)
18013
nonstopux*) version_type=nonstopux ;;
18015
if test "$lt_cv_prog_gnu_ld" = yes; then
18023
soname_spec='${libname}${release}${shared_ext}$major'
18024
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18026
irix5* | nonstopux*)
18027
libsuff= shlibsuff=
18030
case $LD in # libtool.m4 will add one of these switches to LD
18031
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18032
libsuff= shlibsuff= libmagic=32-bit;;
18033
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18034
libsuff=32 shlibsuff=N32 libmagic=N32;;
18035
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18036
libsuff=64 shlibsuff=64 libmagic=64-bit;;
18037
*) libsuff= shlibsuff= libmagic=never-match;;
18041
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18042
shlibpath_overrides_runpath=no
18043
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18044
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18045
hardcode_into_libs=yes
18048
# No shared lib support for Linux oldld, aout, or coff.
18049
linux*oldld* | linux*aout* | linux*coff*)
18053
# This must be Linux ELF.
18054
linux* | k*bsd*-gnu)
18058
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18059
soname_spec='${libname}${release}${shared_ext}$major'
18060
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18061
shlibpath_var=LD_LIBRARY_PATH
18062
shlibpath_overrides_runpath=no
18063
# This implies no fast_install, which is unacceptable.
18064
# Some rework will be needed to allow for fast_install
18065
# before this can be enabled.
18066
hardcode_into_libs=yes
18068
# Append ld.so.conf contents to the search path
18069
if test -f /etc/ld.so.conf; then
18070
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18071
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18074
# We used to test for /lib/ld.so.1 and disable shared libraries on
18075
# powerpc, because MkLinux only supported shared libraries with the
18076
# GNU dynamic linker. Since this was broken with cross compilers,
18077
# most powerpc-linux boxes support dynamic linking these days and
18078
# people can always --disable-shared, the test was removed, and we
18079
# assume the GNU/Linux dynamic linker is in use.
18080
dynamic_linker='GNU/Linux ld.so'
18087
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18088
soname_spec='${libname}${release}${shared_ext}$major'
18089
shlibpath_var=LD_LIBRARY_PATH
18090
shlibpath_overrides_runpath=no
18091
hardcode_into_libs=yes
18092
dynamic_linker='NetBSD ld.elf_so'
18099
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18100
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18101
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18102
dynamic_linker='NetBSD (a.out) ld.so'
18104
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18105
soname_spec='${libname}${release}${shared_ext}$major'
18106
dynamic_linker='NetBSD ld.elf_so'
18108
shlibpath_var=LD_LIBRARY_PATH
18109
shlibpath_overrides_runpath=yes
18110
hardcode_into_libs=yes
18115
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18116
shlibpath_var=LD_LIBRARY_PATH
18117
shlibpath_overrides_runpath=yes
18124
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18125
soname_spec='${libname}${release}${shared_ext}$major'
18126
shlibpath_var=LD_LIBRARY_PATH
18127
shlibpath_overrides_runpath=yes
18132
sys_lib_dlsearch_path_spec="/usr/lib"
18134
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18136
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18137
*) need_version=no ;;
18139
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18140
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18141
shlibpath_var=LD_LIBRARY_PATH
18142
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18144
openbsd2.[89] | openbsd2.[89].*)
18145
shlibpath_overrides_runpath=no
18148
shlibpath_overrides_runpath=yes
18152
shlibpath_overrides_runpath=yes
18157
libname_spec='$name'
18160
library_names_spec='$libname${shared_ext} $libname.a'
18161
dynamic_linker='OS/2 ld.exe'
18162
shlibpath_var=LIBPATH
18165
osf3* | osf4* | osf5*)
18169
soname_spec='${libname}${release}${shared_ext}$major'
18170
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18171
shlibpath_var=LD_LIBRARY_PATH
18172
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18173
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18180
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18181
soname_spec='${libname}${release}${shared_ext}$major'
18182
shlibpath_var=LD_LIBRARY_PATH
18183
shlibpath_overrides_runpath=yes
18184
hardcode_into_libs=yes
18185
# ldd complains unless libraries are executable
18186
postinstall_cmds='chmod +x $lib'
18191
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18192
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18193
shlibpath_var=LD_LIBRARY_PATH
18194
shlibpath_overrides_runpath=yes
18195
if test "$with_gnu_ld" = yes; then
18203
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18204
soname_spec='${libname}${release}${shared_ext}$major'
18205
shlibpath_var=LD_LIBRARY_PATH
18206
case $host_vendor in
18208
shlibpath_overrides_runpath=no
18210
export_dynamic_flag_spec='${wl}-Blargedynsym'
18211
runpath_var=LD_RUN_PATH
18219
shlibpath_overrides_runpath=no
18220
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18226
if test -d /usr/nec ;then
18228
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18229
soname_spec='$libname${shared_ext}.$major'
18230
shlibpath_var=LD_LIBRARY_PATH
18234
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18235
version_type=freebsd-elf
18238
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18239
soname_spec='${libname}${release}${shared_ext}$major'
18240
shlibpath_var=LD_LIBRARY_PATH
18241
hardcode_into_libs=yes
18242
if test "$with_gnu_ld" = yes; then
18243
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18244
shlibpath_overrides_runpath=no
18246
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18247
shlibpath_overrides_runpath=yes
18250
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18254
sys_lib_dlsearch_path_spec='/usr/lib'
18259
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18260
soname_spec='${libname}${release}${shared_ext}$major'
18261
shlibpath_var=LD_LIBRARY_PATH
18268
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18269
echo "${ECHO_T}$dynamic_linker" >&6; }
18270
test "$dynamic_linker" = no && can_build_shared=no
18272
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18273
if test "$GCC" = yes; then
18274
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18277
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18278
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18279
hardcode_action_GCJ=
18280
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18281
test -n "$runpath_var_GCJ" || \
18282
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18284
# We can hardcode non-existant directories.
18285
if test "$hardcode_direct_GCJ" != no &&
18286
# If the only mechanism to avoid hardcoding is shlibpath_var, we
18287
# have to relink, otherwise we might link with an installed library
18288
# when we should be linking with a yet-to-be-installed one
18289
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18290
test "$hardcode_minus_L_GCJ" != no; then
18291
# Linking always hardcodes the temporary library directory.
18292
hardcode_action_GCJ=relink
18294
# We can link without hardcoding, and we can hardcode nonexisting dirs.
18295
hardcode_action_GCJ=immediate
18298
# We cannot hardcode anything, or else we can only hardcode existing
18300
hardcode_action_GCJ=unsupported
18302
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18303
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18305
if test "$hardcode_action_GCJ" = relink; then
18306
# Fast installation is not supported
18307
enable_fast_install=no
18308
elif test "$shlibpath_overrides_runpath" = yes ||
18309
test "$enable_shared" = no; then
18310
# Fast installation is not necessary
18311
enable_fast_install=needless
18315
# The else clause should only fire when bootstrapping the
18316
# libtool distribution, otherwise you forgot to ship ltmain.sh
18317
# with your package, and you will get complaints that there are
18318
# no rules to generate ltmain.sh.
18319
if test -f "$ltmain"; then
18320
# See if we are running on zsh, and set the options which allow our commands through
18321
# without removal of \ escapes.
18322
if test -n "${ZSH_VERSION+set}" ; then
18323
setopt NO_GLOB_SUBST
18325
# Now quote all the things that may contain metacharacters while being
18326
# careful not to overquote the AC_SUBSTed values. We take copies of the
18327
# variables and quote the copies for generation of the libtool script.
18328
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18330
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18331
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18332
deplibs_check_method reload_flag reload_cmds need_locks \
18333
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18334
lt_cv_sys_global_symbol_to_c_name_address \
18335
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18336
old_postinstall_cmds old_postuninstall_cmds \
18340
lt_prog_compiler_wl_GCJ \
18341
lt_prog_compiler_pic_GCJ \
18342
lt_prog_compiler_static_GCJ \
18343
lt_prog_compiler_no_builtin_flag_GCJ \
18344
export_dynamic_flag_spec_GCJ \
18345
thread_safe_flag_spec_GCJ \
18346
whole_archive_flag_spec_GCJ \
18347
enable_shared_with_static_runtimes_GCJ \
18348
old_archive_cmds_GCJ \
18349
old_archive_from_new_cmds_GCJ \
18350
predep_objects_GCJ \
18351
postdep_objects_GCJ \
18354
compiler_lib_search_path_GCJ \
18356
archive_expsym_cmds_GCJ \
18357
postinstall_cmds_GCJ \
18358
postuninstall_cmds_GCJ \
18359
old_archive_from_expsyms_cmds_GCJ \
18360
allow_undefined_flag_GCJ \
18361
no_undefined_flag_GCJ \
18362
export_symbols_cmds_GCJ \
18363
hardcode_libdir_flag_spec_GCJ \
18364
hardcode_libdir_flag_spec_ld_GCJ \
18365
hardcode_libdir_separator_GCJ \
18366
hardcode_automatic_GCJ \
18368
module_expsym_cmds_GCJ \
18369
lt_cv_prog_compiler_c_o_GCJ \
18370
exclude_expsyms_GCJ \
18371
include_expsyms_GCJ; do
18374
old_archive_cmds_GCJ | \
18375
old_archive_from_new_cmds_GCJ | \
18376
archive_cmds_GCJ | \
18377
archive_expsym_cmds_GCJ | \
18378
module_cmds_GCJ | \
18379
module_expsym_cmds_GCJ | \
18380
old_archive_from_expsyms_cmds_GCJ | \
18381
export_symbols_cmds_GCJ | \
18382
extract_expsyms_cmds | reload_cmds | finish_cmds | \
18383
postinstall_cmds | postuninstall_cmds | \
18384
old_postinstall_cmds | old_postuninstall_cmds | \
18385
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18386
# Double-quote double-evaled strings.
18387
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18390
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18396
*'\$0 --fallback-echo"')
18397
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18403
cat <<__EOF__ >> "$cfgfile"
18404
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18406
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18408
# Shell to use when invoking shell scripts.
18411
# Whether or not to build shared libraries.
18412
build_libtool_libs=$enable_shared
18414
# Whether or not to build static libraries.
18415
build_old_libs=$enable_static
18417
# Whether or not to add -lc for building shared libraries.
18418
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18420
# Whether or not to disallow shared libs when runtime libs are static
18421
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18423
# Whether or not to optimize for fast installation.
18424
fast_install=$enable_fast_install
18427
host_alias=$host_alias
18431
# The build system.
18432
build_alias=$build_alias
18436
# An echo program that does not interpret backslashes.
18441
AR_FLAGS=$lt_AR_FLAGS
18446
# LTCC compiler flags.
18447
LTCFLAGS=$lt_LTCFLAGS
18449
# A language-specific compiler.
18450
CC=$lt_compiler_GCJ
18452
# Is the compiler the GNU C compiler?
18458
# The linker used to build libraries.
18461
# Whether we need hard or soft links.
18464
# A BSD-compatible nm program.
18467
# A symbol stripping program
18470
# Used to examine libraries when file_magic_cmd begins "file"
18471
MAGIC_CMD=$MAGIC_CMD
18473
# Used on cygwin: DLL creation program.
18476
# Used on cygwin: object dumper.
18479
# Used on cygwin: assembler.
18482
# The name of the directory that contains temporary libtool files.
18485
# How to create reloadable object files.
18486
reload_flag=$lt_reload_flag
18487
reload_cmds=$lt_reload_cmds
18489
# How to pass a linker flag through the compiler.
18490
wl=$lt_lt_prog_compiler_wl_GCJ
18492
# Object file suffix (normally "o").
18493
objext="$ac_objext"
18495
# Old archive suffix (normally "a").
18498
# Shared library suffix (normally ".so").
18499
shrext_cmds='$shrext_cmds'
18501
# Executable file suffix (normally "").
18504
# Additional compiler flags for building library objects.
18505
pic_flag=$lt_lt_prog_compiler_pic_GCJ
18508
# What is the maximum length of a command?
18509
max_cmd_len=$lt_cv_sys_max_cmd_len
18511
# Does compiler simultaneously support -c and -o options?
18512
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18514
# Must we lock files when doing compilation?
18515
need_locks=$lt_need_locks
18517
# Do we need the lib prefix for modules?
18518
need_lib_prefix=$need_lib_prefix
18520
# Do we need a version for libraries?
18521
need_version=$need_version
18523
# Whether dlopen is supported.
18524
dlopen_support=$enable_dlopen
18526
# Whether dlopen of programs is supported.
18527
dlopen_self=$enable_dlopen_self
18529
# Whether dlopen of statically linked programs is supported.
18530
dlopen_self_static=$enable_dlopen_self_static
18532
# Compiler flag to prevent dynamic linking.
18533
link_static_flag=$lt_lt_prog_compiler_static_GCJ
18535
# Compiler flag to turn off builtin functions.
18536
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18538
# Compiler flag to allow reflexive dlopens.
18539
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18541
# Compiler flag to generate shared objects directly from archives.
18542
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18544
# Compiler flag to generate thread-safe objects.
18545
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18547
# Library versioning type.
18548
version_type=$version_type
18550
# Format of library name prefix.
18551
libname_spec=$lt_libname_spec
18553
# List of archive names. First name is the real one, the rest are links.
18554
# The last name is the one that the linker finds with -lNAME.
18555
library_names_spec=$lt_library_names_spec
18557
# The coded name of the library, if different from the real name.
18558
soname_spec=$lt_soname_spec
18560
# Commands used to build and install an old-style archive.
18562
old_archive_cmds=$lt_old_archive_cmds_GCJ
18563
old_postinstall_cmds=$lt_old_postinstall_cmds
18564
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18566
# Create an old-style archive from a shared archive.
18567
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18569
# Create a temporary old-style archive to link instead of a shared archive.
18570
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18572
# Commands used to build and install a shared archive.
18573
archive_cmds=$lt_archive_cmds_GCJ
18574
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18575
postinstall_cmds=$lt_postinstall_cmds
18576
postuninstall_cmds=$lt_postuninstall_cmds
18578
# Commands used to build a loadable module (assumed same as above if empty)
18579
module_cmds=$lt_module_cmds_GCJ
18580
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18582
# Commands to strip libraries.
18583
old_striplib=$lt_old_striplib
18584
striplib=$lt_striplib
18586
# Dependencies to place before the objects being linked to create a
18588
predep_objects=$lt_predep_objects_GCJ
18590
# Dependencies to place after the objects being linked to create a
18592
postdep_objects=$lt_postdep_objects_GCJ
18594
# Dependencies to place before the objects being linked to create a
18596
predeps=$lt_predeps_GCJ
18598
# Dependencies to place after the objects being linked to create a
18600
postdeps=$lt_postdeps_GCJ
18602
# The library search path used internally by the compiler when linking
18603
# a shared library.
18604
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18606
# Method to check whether dependent libraries are shared objects.
18607
deplibs_check_method=$lt_deplibs_check_method
18609
# Command to use when deplibs_check_method == file_magic.
18610
file_magic_cmd=$lt_file_magic_cmd
18612
# Flag that allows shared libraries with undefined symbols to be built.
18613
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18615
# Flag that forces no undefined symbols.
18616
no_undefined_flag=$lt_no_undefined_flag_GCJ
18618
# Commands used to finish a libtool library installation in a directory.
18619
finish_cmds=$lt_finish_cmds
18621
# Same as above, but a single script fragment to be evaled but not shown.
18622
finish_eval=$lt_finish_eval
18624
# Take the output of nm and produce a listing of raw symbols and C names.
18625
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18627
# Transform the output of nm in a proper C declaration
18628
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18630
# Transform the output of nm in a C name address pair
18631
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18633
# This is the shared library runtime path variable.
18634
runpath_var=$runpath_var
18636
# This is the shared library path variable.
18637
shlibpath_var=$shlibpath_var
18639
# Is shlibpath searched before the hard-coded library search path?
18640
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18642
# How to hardcode a shared library path into an executable.
18643
hardcode_action=$hardcode_action_GCJ
18645
# Whether we should hardcode library paths into libraries.
18646
hardcode_into_libs=$hardcode_into_libs
18648
# Flag to hardcode \$libdir into a binary during linking.
18649
# This must work even if \$libdir does not exist.
18650
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18652
# If ld is used when linking, flag to hardcode \$libdir into
18653
# a binary during linking. This must work even if \$libdir does
18655
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18657
# Whether we need a single -rpath flag with a separated argument.
18658
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18660
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18661
# resulting binary.
18662
hardcode_direct=$hardcode_direct_GCJ
18664
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18665
# resulting binary.
18666
hardcode_minus_L=$hardcode_minus_L_GCJ
18668
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18669
# the resulting binary.
18670
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18672
# Set to yes if building a shared library automatically hardcodes DIR into the library
18673
# and all subsequent libraries and executables linked against it.
18674
hardcode_automatic=$hardcode_automatic_GCJ
18676
# Variables whose values should be saved in libtool wrapper scripts and
18677
# restored at relink time.
18678
variables_saved_for_relink="$variables_saved_for_relink"
18680
# Whether libtool must link a program against all its dependency libraries.
18681
link_all_deplibs=$link_all_deplibs_GCJ
18683
# Compile-time system search path for libraries
18684
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18686
# Run-time system search path for libraries
18687
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18689
# Fix the shell variable \$srcfile for the compiler.
18690
fix_srcfile_path="$fix_srcfile_path_GCJ"
18692
# Set to yes if exported symbols are required.
18693
always_export_symbols=$always_export_symbols_GCJ
18695
# The commands to list exported symbols.
18696
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18698
# The commands to extract the exported symbol list from a shared archive.
18699
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18701
# Symbols that should not be listed in the preloaded symbols.
18702
exclude_expsyms=$lt_exclude_expsyms_GCJ
18704
# Symbols that must always be exported.
18705
include_expsyms=$lt_include_expsyms_GCJ
18707
# ### END LIBTOOL TAG CONFIG: $tagname
18713
# If there is no Makefile yet, we rely on a make rule to execute
18714
# `config.status --recheck' to rerun these tests and create the
18715
# libtool script then.
18716
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18717
if test -f "$ltmain_in"; then
18718
test -f Makefile && make "$ltmain"
18724
ac_cpp='$CPP $CPPFLAGS'
18725
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18726
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18727
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18739
# Source file extension for RC test sources.
18742
# Object file extension for compiled RC test sources.
18746
# Code to be used in simple compile tests
18747
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18749
# Code to be used in simple link tests
18750
lt_simple_link_test_code="$lt_simple_compile_test_code"
18752
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18754
# If no C compiler was specified, use CC.
18757
# If no C compiler flags were specified, use CFLAGS.
18758
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18760
# Allow CC to be a program name with arguments.
18764
# save warnings/boilerplate of simple test code
18765
ac_outfile=conftest.$ac_objext
18766
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18767
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18768
_lt_compiler_boilerplate=`cat conftest.err`
18771
ac_outfile=conftest.$ac_objext
18772
printf "$lt_simple_link_test_code" >conftest.$ac_ext
18773
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18774
_lt_linker_boilerplate=`cat conftest.err`
18778
# Allow CC to be a program name with arguments.
18783
for cc_temp in $compiler""; do
18785
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18786
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18791
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18793
lt_cv_prog_compiler_c_o_RC=yes
18795
# The else clause should only fire when bootstrapping the
18796
# libtool distribution, otherwise you forgot to ship ltmain.sh
18797
# with your package, and you will get complaints that there are
18798
# no rules to generate ltmain.sh.
18799
if test -f "$ltmain"; then
18800
# See if we are running on zsh, and set the options which allow our commands through
18801
# without removal of \ escapes.
18802
if test -n "${ZSH_VERSION+set}" ; then
18803
setopt NO_GLOB_SUBST
18805
# Now quote all the things that may contain metacharacters while being
18806
# careful not to overquote the AC_SUBSTed values. We take copies of the
18807
# variables and quote the copies for generation of the libtool script.
18808
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18810
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18811
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18812
deplibs_check_method reload_flag reload_cmds need_locks \
18813
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18814
lt_cv_sys_global_symbol_to_c_name_address \
18815
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18816
old_postinstall_cmds old_postuninstall_cmds \
18820
lt_prog_compiler_wl_RC \
18821
lt_prog_compiler_pic_RC \
18822
lt_prog_compiler_static_RC \
18823
lt_prog_compiler_no_builtin_flag_RC \
18824
export_dynamic_flag_spec_RC \
18825
thread_safe_flag_spec_RC \
18826
whole_archive_flag_spec_RC \
18827
enable_shared_with_static_runtimes_RC \
18828
old_archive_cmds_RC \
18829
old_archive_from_new_cmds_RC \
18830
predep_objects_RC \
18831
postdep_objects_RC \
18834
compiler_lib_search_path_RC \
18836
archive_expsym_cmds_RC \
18837
postinstall_cmds_RC \
18838
postuninstall_cmds_RC \
18839
old_archive_from_expsyms_cmds_RC \
18840
allow_undefined_flag_RC \
18841
no_undefined_flag_RC \
18842
export_symbols_cmds_RC \
18843
hardcode_libdir_flag_spec_RC \
18844
hardcode_libdir_flag_spec_ld_RC \
18845
hardcode_libdir_separator_RC \
18846
hardcode_automatic_RC \
18848
module_expsym_cmds_RC \
18849
lt_cv_prog_compiler_c_o_RC \
18850
exclude_expsyms_RC \
18851
include_expsyms_RC; do
18854
old_archive_cmds_RC | \
18855
old_archive_from_new_cmds_RC | \
18856
archive_cmds_RC | \
18857
archive_expsym_cmds_RC | \
18859
module_expsym_cmds_RC | \
18860
old_archive_from_expsyms_cmds_RC | \
18861
export_symbols_cmds_RC | \
18862
extract_expsyms_cmds | reload_cmds | finish_cmds | \
18863
postinstall_cmds | postuninstall_cmds | \
18864
old_postinstall_cmds | old_postuninstall_cmds | \
18865
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18866
# Double-quote double-evaled strings.
18867
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18870
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18876
*'\$0 --fallback-echo"')
18877
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18883
cat <<__EOF__ >> "$cfgfile"
18884
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18886
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18888
# Shell to use when invoking shell scripts.
18891
# Whether or not to build shared libraries.
18892
build_libtool_libs=$enable_shared
18894
# Whether or not to build static libraries.
18895
build_old_libs=$enable_static
18897
# Whether or not to add -lc for building shared libraries.
18898
build_libtool_need_lc=$archive_cmds_need_lc_RC
18900
# Whether or not to disallow shared libs when runtime libs are static
18901
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18903
# Whether or not to optimize for fast installation.
18904
fast_install=$enable_fast_install
18907
host_alias=$host_alias
18911
# The build system.
18912
build_alias=$build_alias
18916
# An echo program that does not interpret backslashes.
18921
AR_FLAGS=$lt_AR_FLAGS
18926
# LTCC compiler flags.
18927
LTCFLAGS=$lt_LTCFLAGS
18929
# A language-specific compiler.
18932
# Is the compiler the GNU C compiler?
18938
# The linker used to build libraries.
18941
# Whether we need hard or soft links.
18944
# A BSD-compatible nm program.
18947
# A symbol stripping program
18950
# Used to examine libraries when file_magic_cmd begins "file"
18951
MAGIC_CMD=$MAGIC_CMD
18953
# Used on cygwin: DLL creation program.
18956
# Used on cygwin: object dumper.
18959
# Used on cygwin: assembler.
18962
# The name of the directory that contains temporary libtool files.
18965
# How to create reloadable object files.
18966
reload_flag=$lt_reload_flag
18967
reload_cmds=$lt_reload_cmds
18969
# How to pass a linker flag through the compiler.
18970
wl=$lt_lt_prog_compiler_wl_RC
18972
# Object file suffix (normally "o").
18973
objext="$ac_objext"
18975
# Old archive suffix (normally "a").
18978
# Shared library suffix (normally ".so").
18979
shrext_cmds='$shrext_cmds'
18981
# Executable file suffix (normally "").
18984
# Additional compiler flags for building library objects.
18985
pic_flag=$lt_lt_prog_compiler_pic_RC
18988
# What is the maximum length of a command?
18989
max_cmd_len=$lt_cv_sys_max_cmd_len
18991
# Does compiler simultaneously support -c and -o options?
18992
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18994
# Must we lock files when doing compilation?
18995
need_locks=$lt_need_locks
18997
# Do we need the lib prefix for modules?
18998
need_lib_prefix=$need_lib_prefix
19000
# Do we need a version for libraries?
19001
need_version=$need_version
19003
# Whether dlopen is supported.
19004
dlopen_support=$enable_dlopen
19006
# Whether dlopen of programs is supported.
19007
dlopen_self=$enable_dlopen_self
19009
# Whether dlopen of statically linked programs is supported.
19010
dlopen_self_static=$enable_dlopen_self_static
19012
# Compiler flag to prevent dynamic linking.
19013
link_static_flag=$lt_lt_prog_compiler_static_RC
19015
# Compiler flag to turn off builtin functions.
19016
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19018
# Compiler flag to allow reflexive dlopens.
19019
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19021
# Compiler flag to generate shared objects directly from archives.
19022
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19024
# Compiler flag to generate thread-safe objects.
19025
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19027
# Library versioning type.
19028
version_type=$version_type
19030
# Format of library name prefix.
19031
libname_spec=$lt_libname_spec
19033
# List of archive names. First name is the real one, the rest are links.
19034
# The last name is the one that the linker finds with -lNAME.
19035
library_names_spec=$lt_library_names_spec
19037
# The coded name of the library, if different from the real name.
19038
soname_spec=$lt_soname_spec
19040
# Commands used to build and install an old-style archive.
19042
old_archive_cmds=$lt_old_archive_cmds_RC
19043
old_postinstall_cmds=$lt_old_postinstall_cmds
19044
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19046
# Create an old-style archive from a shared archive.
19047
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19049
# Create a temporary old-style archive to link instead of a shared archive.
19050
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19052
# Commands used to build and install a shared archive.
19053
archive_cmds=$lt_archive_cmds_RC
19054
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19055
postinstall_cmds=$lt_postinstall_cmds
19056
postuninstall_cmds=$lt_postuninstall_cmds
19058
# Commands used to build a loadable module (assumed same as above if empty)
19059
module_cmds=$lt_module_cmds_RC
19060
module_expsym_cmds=$lt_module_expsym_cmds_RC
19062
# Commands to strip libraries.
19063
old_striplib=$lt_old_striplib
19064
striplib=$lt_striplib
19066
# Dependencies to place before the objects being linked to create a
19068
predep_objects=$lt_predep_objects_RC
19070
# Dependencies to place after the objects being linked to create a
19072
postdep_objects=$lt_postdep_objects_RC
19074
# Dependencies to place before the objects being linked to create a
19076
predeps=$lt_predeps_RC
19078
# Dependencies to place after the objects being linked to create a
19080
postdeps=$lt_postdeps_RC
19082
# The library search path used internally by the compiler when linking
19083
# a shared library.
19084
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19086
# Method to check whether dependent libraries are shared objects.
19087
deplibs_check_method=$lt_deplibs_check_method
19089
# Command to use when deplibs_check_method == file_magic.
19090
file_magic_cmd=$lt_file_magic_cmd
19092
# Flag that allows shared libraries with undefined symbols to be built.
19093
allow_undefined_flag=$lt_allow_undefined_flag_RC
19095
# Flag that forces no undefined symbols.
19096
no_undefined_flag=$lt_no_undefined_flag_RC
19098
# Commands used to finish a libtool library installation in a directory.
19099
finish_cmds=$lt_finish_cmds
19101
# Same as above, but a single script fragment to be evaled but not shown.
19102
finish_eval=$lt_finish_eval
19104
# Take the output of nm and produce a listing of raw symbols and C names.
19105
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19107
# Transform the output of nm in a proper C declaration
19108
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19110
# Transform the output of nm in a C name address pair
19111
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19113
# This is the shared library runtime path variable.
19114
runpath_var=$runpath_var
19116
# This is the shared library path variable.
19117
shlibpath_var=$shlibpath_var
19119
# Is shlibpath searched before the hard-coded library search path?
19120
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19122
# How to hardcode a shared library path into an executable.
19123
hardcode_action=$hardcode_action_RC
19125
# Whether we should hardcode library paths into libraries.
19126
hardcode_into_libs=$hardcode_into_libs
19128
# Flag to hardcode \$libdir into a binary during linking.
19129
# This must work even if \$libdir does not exist.
19130
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19132
# If ld is used when linking, flag to hardcode \$libdir into
19133
# a binary during linking. This must work even if \$libdir does
19135
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19137
# Whether we need a single -rpath flag with a separated argument.
19138
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19140
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19141
# resulting binary.
19142
hardcode_direct=$hardcode_direct_RC
19144
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19145
# resulting binary.
19146
hardcode_minus_L=$hardcode_minus_L_RC
19148
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19149
# the resulting binary.
19150
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19152
# Set to yes if building a shared library automatically hardcodes DIR into the library
19153
# and all subsequent libraries and executables linked against it.
19154
hardcode_automatic=$hardcode_automatic_RC
19156
# Variables whose values should be saved in libtool wrapper scripts and
19157
# restored at relink time.
19158
variables_saved_for_relink="$variables_saved_for_relink"
19160
# Whether libtool must link a program against all its dependency libraries.
19161
link_all_deplibs=$link_all_deplibs_RC
19163
# Compile-time system search path for libraries
19164
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19166
# Run-time system search path for libraries
19167
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19169
# Fix the shell variable \$srcfile for the compiler.
19170
fix_srcfile_path="$fix_srcfile_path_RC"
19172
# Set to yes if exported symbols are required.
19173
always_export_symbols=$always_export_symbols_RC
19175
# The commands to list exported symbols.
19176
export_symbols_cmds=$lt_export_symbols_cmds_RC
19178
# The commands to extract the exported symbol list from a shared archive.
19179
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19181
# Symbols that should not be listed in the preloaded symbols.
19182
exclude_expsyms=$lt_exclude_expsyms_RC
19184
# Symbols that must always be exported.
19185
include_expsyms=$lt_include_expsyms_RC
19187
# ### END LIBTOOL TAG CONFIG: $tagname
19193
# If there is no Makefile yet, we rely on a make rule to execute
19194
# `config.status --recheck' to rerun these tests and create the
19195
# libtool script then.
19196
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19197
if test -f "$ltmain_in"; then
19198
test -f Makefile && make "$ltmain"
19204
ac_cpp='$CPP $CPPFLAGS'
19205
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19206
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19207
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19214
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19215
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19216
{ (exit 1); exit 1; }; }
19220
# Append the new tag name to the list of available tags.
19221
if test -n "$tagname" ; then
19222
available_tags="$available_tags $tagname"
19228
# Now substitute the updated list of available tags.
19229
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19230
mv "${ofile}T" "$ofile"
19234
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19235
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19236
{ (exit 1); exit 1; }; }
19242
# This can be used to rebuild libtool when needed
19243
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19245
# Always use our own libtool.
19246
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19248
# Prevent multiple expansion
19269
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
19270
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
14460
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14461
$as_echo "$hardcode_action_CXX" >&6; }
14463
if test "$hardcode_action_CXX" = relink ||
14464
test "$inherit_rpath_CXX" = yes; then
14465
# Fast installation is not supported
14466
enable_fast_install=no
14467
elif test "$shlibpath_overrides_runpath" = yes ||
14468
test "$enable_shared" = no; then
14469
# Fast installation is not necessary
14470
enable_fast_install=needless
14479
fi # test -n "$compiler"
14485
with_gnu_ld=$lt_save_with_gnu_ld
14486
lt_cv_path_LDCXX=$lt_cv_path_LD
14487
lt_cv_path_LD=$lt_save_path_LD
14488
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14489
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14490
fi # test "$_lt_caught_CXX_error" != yes
14493
ac_cpp='$CPP $CPPFLAGS'
14494
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14495
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14496
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14510
ac_config_commands="$ac_config_commands libtool"
14515
# Only expand once:
14518
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
14519
$as_echo_n "checking whether ln -s works... " >&6; }
19271
14520
LN_S=$as_ln_s
19272
14521
if test "$LN_S" = "ln -s"; then
19273
{ echo "$as_me:$LINENO: result: yes" >&5
19274
echo "${ECHO_T}yes" >&6; }
14522
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14523
$as_echo "yes" >&6; }
19276
{ echo "$as_me:$LINENO: result: no, using $LN_S" >&5
19277
echo "${ECHO_T}no, using $LN_S" >&6; }
14525
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
14526
$as_echo "no, using $LN_S" >&6; }