6236
8186
RANLIB="$ac_cv_prog_RANLIB"
8189
test -z "$RANLIB" && RANLIB=:
8196
# Determine commands to create old-style static archives.
8197
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8198
old_postinstall_cmds='chmod 644 $oldlib'
8199
old_postuninstall_cmds=
8201
if test -n "$RANLIB"; then
8204
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8207
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8210
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8246
# If no C compiler was specified, use CC.
8249
# If no C compiler flags were specified, use CFLAGS.
8250
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8252
# Allow CC to be a program name with arguments.
8256
# Check for command to grab the raw symbol name followed by C symbol from nm.
8257
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8258
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8259
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
8260
$as_echo_n "(cached) " >&6
8263
# These are sane defaults that work on at least a few old systems.
8264
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
8266
# Character class describing NM global symbol codes.
8267
symcode='[BCDEGRST]'
8269
# Regexp to match symbols that can be accessed directly from C.
8270
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8272
# Define system-specific variables.
8277
cygwin* | mingw* | pw32* | cegcc*)
8278
symcode='[ABCDGISTW]'
8281
if test "$host_cpu" = ia64; then
8282
symcode='[ABCDEGRST]'
8286
symcode='[BCDEGRST]'
8289
symcode='[BCDEGQRST]'
8300
sysv5* | sco5v6* | unixware* | OpenUNIX*)
8308
# If we're using GNU nm, then use its standard symbol codes.
8309
case `$NM -V 2>&1` in
8310
*GNU* | *'with BFD'*)
8311
symcode='[ABCDGIRSTW]' ;;
8314
# Transform an extracted symbol line into a proper C declaration.
8315
# Some systems (esp. on ia64) link data and code symbols differently,
8316
# so use this general approach.
8317
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8319
# Transform an extracted symbol line into symbol name and symbol address
8320
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8321
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
8323
# Handle CRLF in mingw tool chain
8327
opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8331
# Try without a prefix underscore, then with it.
8332
for ac_symprfx in "" "_"; do
8334
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8335
symxfrm="\\1 $ac_symprfx\\2 \\2"
8337
# Write the raw and C identifiers.
8338
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8339
# Fake it for dumpbin and say T for any non-static function
8340
# and D for any global variable.
8341
# Also find C++ and __fastcall symbols from MSVC++,
8342
# which start with @ or ?.
8343
lt_cv_sys_global_symbol_pipe="$AWK '"\
8344
" {last_section=section; section=\$ 3};"\
8345
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8346
" \$ 0!~/External *\|/{next};"\
8347
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8348
" {if(hide[section]) next};"\
8349
" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8350
" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8351
" s[1]~/^[@?]/{print s[1], s[1]; next};"\
8352
" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8353
" ' prfx=^$ac_symprfx"
8355
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8358
# Check to see that the pipe works correctly.
8362
cat > conftest.$ac_ext <<_LT_EOF
8367
void nm_test_func(void);
8368
void nm_test_func(void){}
8372
int main(){nm_test_var='a';nm_test_func();return(0);}
8375
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8376
(eval $ac_compile) 2>&5
8378
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8379
test $ac_status = 0; }; then
8380
# Now try to grab the symbols.
8382
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
8383
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8385
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8386
test $ac_status = 0; } && test -s "$nlist"; then
8387
# Try sorting and uniquifying the output.
8388
if sort "$nlist" | uniq > "$nlist"T; then
8389
mv -f "$nlist"T "$nlist"
8394
# Make sure that we snagged all the symbols we need.
8395
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8396
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8397
cat <<_LT_EOF > conftest.$ac_ext
8403
# Now generate the symbol file.
8404
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8406
cat <<_LT_EOF >> conftest.$ac_ext
8408
/* The mapping between symbol names and symbols. */
8413
lt__PROGRAM__LTX_preloaded_symbols[] =
8415
{ "@PROGRAM@", (void *) 0 },
8417
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8418
cat <<\_LT_EOF >> conftest.$ac_ext
8422
/* This works around a problem in FreeBSD linker */
8423
#ifdef FREEBSD_WORKAROUND
8424
static const void *lt_preloaded_setup() {
8425
return lt__PROGRAM__LTX_preloaded_symbols;
8433
# Now try linking the two files.
8434
mv conftest.$ac_objext conftstm.$ac_objext
8435
lt_save_LIBS="$LIBS"
8436
lt_save_CFLAGS="$CFLAGS"
8437
LIBS="conftstm.$ac_objext"
8438
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8439
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8440
(eval $ac_link) 2>&5
8442
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8443
test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8446
LIBS="$lt_save_LIBS"
8447
CFLAGS="$lt_save_CFLAGS"
8449
echo "cannot find nm_test_func in $nlist" >&5
8452
echo "cannot find nm_test_var in $nlist" >&5
8455
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8458
echo "$progname: failed program was:" >&5
8459
cat conftest.$ac_ext >&5
8461
rm -rf conftest* conftst*
8463
# Do not use the global_symbol_pipe unless it works.
8464
if test "$pipe_works" = yes; then
8467
lt_cv_sys_global_symbol_pipe=
8473
if test -z "$lt_cv_sys_global_symbol_pipe"; then
8474
lt_cv_sys_global_symbol_to_cdecl=
8476
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8477
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8478
$as_echo "failed" >&6; }
8480
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8481
$as_echo "ok" >&6; }
8505
# Check whether --enable-libtool-lock was given.
8506
if test "${enable_libtool_lock+set}" = set; then :
8507
enableval=$enable_libtool_lock;
8510
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8512
# Some flags need to be propagated to the compiler or linker for good
8516
# Find out which ABI we are using.
8517
echo 'int i;' > conftest.$ac_ext
8518
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8519
(eval $ac_compile) 2>&5
8521
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8522
test $ac_status = 0; }; then
8523
case `/usr/bin/file conftest.$ac_objext` in
8535
# Find out which ABI we are using.
8536
echo '#line 8536 "configure"' > conftest.$ac_ext
8537
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8538
(eval $ac_compile) 2>&5
8540
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8541
test $ac_status = 0; }; then
8542
if test "$lt_cv_prog_gnu_ld" = yes; then
8543
case `/usr/bin/file conftest.$ac_objext` in
8545
LD="${LD-ld} -melf32bsmip"
8548
LD="${LD-ld} -melf32bmipn32"
8551
LD="${LD-ld} -melf64bmip"
8555
case `/usr/bin/file conftest.$ac_objext` in
8571
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8572
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8573
# Find out which ABI we are using.
8574
echo 'int i;' > conftest.$ac_ext
8575
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8576
(eval $ac_compile) 2>&5
8578
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8579
test $ac_status = 0; }; then
8580
case `/usr/bin/file conftest.o` in
8583
x86_64-*kfreebsd*-gnu)
8584
LD="${LD-ld} -m elf_i386_fbsd"
8587
LD="${LD-ld} -m elf_i386"
8589
ppc64-*linux*|powerpc64-*linux*)
8590
LD="${LD-ld} -m elf32ppclinux"
8593
LD="${LD-ld} -m elf_s390"
8596
LD="${LD-ld} -m elf32_sparc"
8602
x86_64-*kfreebsd*-gnu)
8603
LD="${LD-ld} -m elf_x86_64_fbsd"
8606
LD="${LD-ld} -m elf_x86_64"
8608
ppc*-*linux*|powerpc*-*linux*)
8609
LD="${LD-ld} -m elf64ppc"
8611
s390*-*linux*|s390*-*tpf*)
8612
LD="${LD-ld} -m elf64_s390"
8615
LD="${LD-ld} -m elf64_sparc"
8625
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
8626
SAVE_CFLAGS="$CFLAGS"
8627
CFLAGS="$CFLAGS -belf"
8628
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8629
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8630
if test "${lt_cv_cc_needs_belf+set}" = set; then :
8631
$as_echo_n "(cached) " >&6
8634
ac_cpp='$CPP $CPPFLAGS'
8635
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8636
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8637
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8639
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8640
/* end confdefs.h. */
8650
if ac_fn_c_try_link "$LINENO"; then :
8651
lt_cv_cc_needs_belf=yes
8653
lt_cv_cc_needs_belf=no
8655
rm -f core conftest.err conftest.$ac_objext \
8656
conftest$ac_exeext conftest.$ac_ext
8658
ac_cpp='$CPP $CPPFLAGS'
8659
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8660
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8661
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8664
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8665
$as_echo "$lt_cv_cc_needs_belf" >&6; }
8666
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8667
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8668
CFLAGS="$SAVE_CFLAGS"
8672
# Find out which ABI we are using.
8673
echo 'int i;' > conftest.$ac_ext
8674
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8675
(eval $ac_compile) 2>&5
8677
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8678
test $ac_status = 0; }; then
8679
case `/usr/bin/file conftest.o` in
8681
case $lt_cv_prog_gnu_ld in
8682
yes*) LD="${LD-ld} -m elf64_sparc" ;;
8684
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8696
need_locks="$enable_libtool_lock"
8700
rhapsody* | darwin*)
8701
if test -n "$ac_tool_prefix"; then
8702
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8703
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8704
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8705
$as_echo_n "checking for $ac_word... " >&6; }
8706
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8707
$as_echo_n "(cached) " >&6
8709
if test -n "$DSYMUTIL"; then
8710
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8712
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8716
test -z "$as_dir" && as_dir=.
8717
for ac_exec_ext in '' $ac_executable_extensions; do
8718
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8719
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8720
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8729
DSYMUTIL=$ac_cv_prog_DSYMUTIL
8730
if test -n "$DSYMUTIL"; then
8731
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8732
$as_echo "$DSYMUTIL" >&6; }
8734
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8735
$as_echo "no" >&6; }
8740
if test -z "$ac_cv_prog_DSYMUTIL"; then
8741
ac_ct_DSYMUTIL=$DSYMUTIL
8742
# Extract the first word of "dsymutil", so it can be a program name with args.
8743
set dummy dsymutil; ac_word=$2
8744
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8745
$as_echo_n "checking for $ac_word... " >&6; }
8746
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8747
$as_echo_n "(cached) " >&6
8749
if test -n "$ac_ct_DSYMUTIL"; then
8750
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8752
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8756
test -z "$as_dir" && as_dir=.
8757
for ac_exec_ext in '' $ac_executable_extensions; do
8758
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8759
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8760
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8769
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8770
if test -n "$ac_ct_DSYMUTIL"; then
8771
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8772
$as_echo "$ac_ct_DSYMUTIL" >&6; }
8774
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8775
$as_echo "no" >&6; }
8778
if test "x$ac_ct_DSYMUTIL" = x; then
8781
case $cross_compiling:$ac_tool_warned in
8783
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8784
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8785
ac_tool_warned=yes ;;
8787
DSYMUTIL=$ac_ct_DSYMUTIL
8790
DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8793
if test -n "$ac_tool_prefix"; then
8794
# Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8795
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8796
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8797
$as_echo_n "checking for $ac_word... " >&6; }
8798
if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8799
$as_echo_n "(cached) " >&6
8801
if test -n "$NMEDIT"; then
8802
ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8804
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8808
test -z "$as_dir" && as_dir=.
8809
for ac_exec_ext in '' $ac_executable_extensions; do
8810
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8811
ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8812
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8821
NMEDIT=$ac_cv_prog_NMEDIT
8822
if test -n "$NMEDIT"; then
8823
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8824
$as_echo "$NMEDIT" >&6; }
8826
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8827
$as_echo "no" >&6; }
8832
if test -z "$ac_cv_prog_NMEDIT"; then
8833
ac_ct_NMEDIT=$NMEDIT
8834
# Extract the first word of "nmedit", so it can be a program name with args.
8835
set dummy nmedit; ac_word=$2
8836
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8837
$as_echo_n "checking for $ac_word... " >&6; }
8838
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8839
$as_echo_n "(cached) " >&6
8841
if test -n "$ac_ct_NMEDIT"; then
8842
ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8844
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8848
test -z "$as_dir" && as_dir=.
8849
for ac_exec_ext in '' $ac_executable_extensions; do
8850
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8851
ac_cv_prog_ac_ct_NMEDIT="nmedit"
8852
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8861
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8862
if test -n "$ac_ct_NMEDIT"; then
8863
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8864
$as_echo "$ac_ct_NMEDIT" >&6; }
8866
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8867
$as_echo "no" >&6; }
8870
if test "x$ac_ct_NMEDIT" = x; then
8873
case $cross_compiling:$ac_tool_warned in
8875
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8876
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8877
ac_tool_warned=yes ;;
8879
NMEDIT=$ac_ct_NMEDIT
8882
NMEDIT="$ac_cv_prog_NMEDIT"
8885
if test -n "$ac_tool_prefix"; then
8886
# Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8887
set dummy ${ac_tool_prefix}lipo; ac_word=$2
8888
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8889
$as_echo_n "checking for $ac_word... " >&6; }
8890
if test "${ac_cv_prog_LIPO+set}" = set; then :
8891
$as_echo_n "(cached) " >&6
8893
if test -n "$LIPO"; then
8894
ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8896
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8900
test -z "$as_dir" && as_dir=.
8901
for ac_exec_ext in '' $ac_executable_extensions; do
8902
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8903
ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8904
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8913
LIPO=$ac_cv_prog_LIPO
8914
if test -n "$LIPO"; then
8915
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8916
$as_echo "$LIPO" >&6; }
8918
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8919
$as_echo "no" >&6; }
8924
if test -z "$ac_cv_prog_LIPO"; then
8926
# Extract the first word of "lipo", so it can be a program name with args.
8927
set dummy lipo; ac_word=$2
8928
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8929
$as_echo_n "checking for $ac_word... " >&6; }
8930
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8931
$as_echo_n "(cached) " >&6
8933
if test -n "$ac_ct_LIPO"; then
8934
ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8936
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8940
test -z "$as_dir" && as_dir=.
8941
for ac_exec_ext in '' $ac_executable_extensions; do
8942
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8943
ac_cv_prog_ac_ct_LIPO="lipo"
8944
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8953
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8954
if test -n "$ac_ct_LIPO"; then
8955
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8956
$as_echo "$ac_ct_LIPO" >&6; }
8958
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8959
$as_echo "no" >&6; }
8962
if test "x$ac_ct_LIPO" = x; then
8965
case $cross_compiling:$ac_tool_warned in
8967
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8968
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8969
ac_tool_warned=yes ;;
8974
LIPO="$ac_cv_prog_LIPO"
8977
if test -n "$ac_tool_prefix"; then
8978
# Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8979
set dummy ${ac_tool_prefix}otool; ac_word=$2
8980
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8981
$as_echo_n "checking for $ac_word... " >&6; }
8982
if test "${ac_cv_prog_OTOOL+set}" = set; then :
8983
$as_echo_n "(cached) " >&6
8985
if test -n "$OTOOL"; then
8986
ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8988
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8992
test -z "$as_dir" && as_dir=.
8993
for ac_exec_ext in '' $ac_executable_extensions; do
8994
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8995
ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8996
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9005
OTOOL=$ac_cv_prog_OTOOL
9006
if test -n "$OTOOL"; then
9007
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9008
$as_echo "$OTOOL" >&6; }
9010
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9011
$as_echo "no" >&6; }
9016
if test -z "$ac_cv_prog_OTOOL"; then
9018
# Extract the first word of "otool", so it can be a program name with args.
9019
set dummy otool; ac_word=$2
9020
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9021
$as_echo_n "checking for $ac_word... " >&6; }
9022
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
9023
$as_echo_n "(cached) " >&6
9025
if test -n "$ac_ct_OTOOL"; then
9026
ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9028
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9032
test -z "$as_dir" && as_dir=.
9033
for ac_exec_ext in '' $ac_executable_extensions; do
9034
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9035
ac_cv_prog_ac_ct_OTOOL="otool"
9036
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9045
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9046
if test -n "$ac_ct_OTOOL"; then
9047
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9048
$as_echo "$ac_ct_OTOOL" >&6; }
9050
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9051
$as_echo "no" >&6; }
9054
if test "x$ac_ct_OTOOL" = x; then
9057
case $cross_compiling:$ac_tool_warned in
9059
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9060
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9061
ac_tool_warned=yes ;;
9066
OTOOL="$ac_cv_prog_OTOOL"
9069
if test -n "$ac_tool_prefix"; then
9070
# Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9071
set dummy ${ac_tool_prefix}otool64; ac_word=$2
9072
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9073
$as_echo_n "checking for $ac_word... " >&6; }
9074
if test "${ac_cv_prog_OTOOL64+set}" = set; then :
9075
$as_echo_n "(cached) " >&6
9077
if test -n "$OTOOL64"; then
9078
ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9080
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9084
test -z "$as_dir" && as_dir=.
9085
for ac_exec_ext in '' $ac_executable_extensions; do
9086
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9087
ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9088
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9097
OTOOL64=$ac_cv_prog_OTOOL64
9098
if test -n "$OTOOL64"; then
9099
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9100
$as_echo "$OTOOL64" >&6; }
9102
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9103
$as_echo "no" >&6; }
9108
if test -z "$ac_cv_prog_OTOOL64"; then
9109
ac_ct_OTOOL64=$OTOOL64
9110
# Extract the first word of "otool64", so it can be a program name with args.
9111
set dummy otool64; ac_word=$2
9112
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9113
$as_echo_n "checking for $ac_word... " >&6; }
9114
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
9115
$as_echo_n "(cached) " >&6
9117
if test -n "$ac_ct_OTOOL64"; then
9118
ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9120
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9124
test -z "$as_dir" && as_dir=.
9125
for ac_exec_ext in '' $ac_executable_extensions; do
9126
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9127
ac_cv_prog_ac_ct_OTOOL64="otool64"
9128
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9137
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9138
if test -n "$ac_ct_OTOOL64"; then
9139
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9140
$as_echo "$ac_ct_OTOOL64" >&6; }
9142
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9143
$as_echo "no" >&6; }
9146
if test "x$ac_ct_OTOOL64" = x; then
9149
case $cross_compiling:$ac_tool_warned in
9151
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9152
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9153
ac_tool_warned=yes ;;
9155
OTOOL64=$ac_ct_OTOOL64
9158
OTOOL64="$ac_cv_prog_OTOOL64"
9187
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9188
$as_echo_n "checking for -single_module linker flag... " >&6; }
9189
if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
9190
$as_echo_n "(cached) " >&6
9192
lt_cv_apple_cc_single_mod=no
9193
if test -z "${LT_MULTI_MODULE}"; then
9194
# By default we will add the -single_module flag. You can override
9195
# by either setting the environment variable LT_MULTI_MODULE
9196
# non-empty at configure time, or by adding -multi_module to the
9198
rm -rf libconftest.dylib*
9199
echo "int foo(void){return 1;}" > conftest.c
9200
echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9201
-dynamiclib -Wl,-single_module conftest.c" >&5
9202
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9203
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9205
if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9206
lt_cv_apple_cc_single_mod=yes
9208
cat conftest.err >&5
9210
rm -rf libconftest.dylib*
9214
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9215
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9216
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9217
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9218
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
9219
$as_echo_n "(cached) " >&6
9221
lt_cv_ld_exported_symbols_list=no
9222
save_LDFLAGS=$LDFLAGS
9223
echo "_main" > conftest.sym
9224
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9225
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9226
/* end confdefs.h. */
9236
if ac_fn_c_try_link "$LINENO"; then :
9237
lt_cv_ld_exported_symbols_list=yes
9239
lt_cv_ld_exported_symbols_list=no
9241
rm -f core conftest.err conftest.$ac_objext \
9242
conftest$ac_exeext conftest.$ac_ext
9243
LDFLAGS="$save_LDFLAGS"
9246
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9247
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9249
rhapsody* | darwin1.[012])
9250
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9252
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9253
darwin*) # darwin 5.x on
9254
# if running on 10.5 or later, the deployment target defaults
9255
# to the OS version, if on x86, and 10.4, the deployment
9256
# target defaults to 10.4. Don't you love it?
9257
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9258
10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9259
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9261
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9263
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9267
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9268
_lt_dar_single_mod='$single_module'
9270
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9271
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9273
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9275
if test "$DSYMUTIL" != ":"; then
9276
_lt_dsymutil='~$DSYMUTIL $lib || :'
9283
for ac_header in dlfcn.h
9285
ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9287
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
9288
cat >>confdefs.h <<_ACEOF
9289
#define HAVE_DLFCN_H 1
9299
ac_cpp='$CXXCPP $CPPFLAGS'
9300
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9301
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9302
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9303
if test -z "$CXX"; then
9304
if test -n "$CCC"; then
9307
if test -n "$ac_tool_prefix"; then
9308
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
9310
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9311
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9312
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9313
$as_echo_n "checking for $ac_word... " >&6; }
9314
if test "${ac_cv_prog_CXX+set}" = set; then :
9315
$as_echo_n "(cached) " >&6
9317
if test -n "$CXX"; then
9318
ac_cv_prog_CXX="$CXX" # Let the user override the test.
9320
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9324
test -z "$as_dir" && as_dir=.
9325
for ac_exec_ext in '' $ac_executable_extensions; do
9326
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9327
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
9328
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9338
if test -n "$CXX"; then
9339
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
9340
$as_echo "$CXX" >&6; }
9342
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9343
$as_echo "no" >&6; }
9347
test -n "$CXX" && break
9350
if test -z "$CXX"; then
9352
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
9354
# Extract the first word of "$ac_prog", so it can be a program name with args.
9355
set dummy $ac_prog; ac_word=$2
9356
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9357
$as_echo_n "checking for $ac_word... " >&6; }
9358
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
9359
$as_echo_n "(cached) " >&6
9361
if test -n "$ac_ct_CXX"; then
9362
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
9364
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9368
test -z "$as_dir" && as_dir=.
9369
for ac_exec_ext in '' $ac_executable_extensions; do
9370
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9371
ac_cv_prog_ac_ct_CXX="$ac_prog"
9372
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9381
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
9382
if test -n "$ac_ct_CXX"; then
9383
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
9384
$as_echo "$ac_ct_CXX" >&6; }
9386
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9387
$as_echo "no" >&6; }
9391
test -n "$ac_ct_CXX" && break
9394
if test "x$ac_ct_CXX" = x; then
9397
case $cross_compiling:$ac_tool_warned in
9399
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9400
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9401
ac_tool_warned=yes ;;
9409
# Provide some information about the compiler.
9410
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
9413
for ac_option in --version -v -V -qversion; do
9414
{ { ac_try="$ac_compiler $ac_option >&5"
9416
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9417
*) ac_try_echo=$ac_try;;
9419
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
9420
$as_echo "$ac_try_echo"; } >&5
9421
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
9423
if test -s conftest.err; then
9425
... rest of stderr output deleted ...
9426
10q' conftest.err >conftest.er1
9427
cat conftest.er1 >&5
9428
rm -f conftest.er1 conftest.err
9430
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9431
test $ac_status = 0; }
9434
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
9435
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
9436
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
9437
$as_echo_n "(cached) " >&6
9439
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9440
/* end confdefs.h. */
9453
if ac_fn_cxx_try_compile "$LINENO"; then :
9458
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9459
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
9462
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
9463
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
9464
if test $ac_compiler_gnu = yes; then
9469
ac_test_CXXFLAGS=${CXXFLAGS+set}
9470
ac_save_CXXFLAGS=$CXXFLAGS
9471
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
9472
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
9473
if test "${ac_cv_prog_cxx_g+set}" = set; then :
9474
$as_echo_n "(cached) " >&6
9476
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
9477
ac_cxx_werror_flag=yes
9480
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9481
/* end confdefs.h. */
9491
if ac_fn_cxx_try_compile "$LINENO"; then :
9492
ac_cv_prog_cxx_g=yes
9495
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9496
/* end confdefs.h. */
9506
if ac_fn_cxx_try_compile "$LINENO"; then :
9509
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
9511
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9512
/* end confdefs.h. */
9522
if ac_fn_cxx_try_compile "$LINENO"; then :
9523
ac_cv_prog_cxx_g=yes
9525
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9527
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9529
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9530
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
9532
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
9533
$as_echo "$ac_cv_prog_cxx_g" >&6; }
9534
if test "$ac_test_CXXFLAGS" = set; then
9535
CXXFLAGS=$ac_save_CXXFLAGS
9536
elif test $ac_cv_prog_cxx_g = yes; then
9537
if test "$GXX" = yes; then
9543
if test "$GXX" = yes; then
9550
ac_cpp='$CPP $CPPFLAGS'
9551
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9552
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9553
ac_compiler_gnu=$ac_cv_c_compiler_gnu
9555
depcc="$CXX" am_compiler_list=
9557
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9558
$as_echo_n "checking dependency style of $depcc... " >&6; }
9559
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
9560
$as_echo_n "(cached) " >&6
9562
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
9563
# We make a subdir and do the tests there. Otherwise we can end up
9564
# making bogus files that we don't know about and never remove. For
9565
# instance it was reported that on HP-UX the gcc test will end up
9566
# making a dummy file named `D' -- because `-MD' means `put the output
9569
# Copy depcomp to subdir because otherwise we won't find it if we're
9570
# using a relative directory.
9571
cp "$am_depcomp" conftest.dir
9573
# We will build objects and dependencies in a subdirectory because
9574
# it helps to detect inapplicable dependency modes. For instance
9575
# both Tru64's cc and ICC support -MD to output dependencies as a
9576
# side effect of compilation, but ICC will put the dependencies in
9577
# the current directory while Tru64 will put them in the object
9581
am_cv_CXX_dependencies_compiler_type=none
9582
if test "$am_compiler_list" = ""; then
9583
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9586
case " $depcc " in #(
9587
*\ -arch\ *\ -arch\ *) am__universal=true ;;
9590
for depmode in $am_compiler_list; do
9591
# Setup a source with many dependencies, because some compilers
9592
# like to wrap large dependency lists on column 80 (with \), and
9593
# we should not choose a depcomp mode which is confused by this.
9595
# We need to recreate these files for each test, as the compiler may
9596
# overwrite some of them when testing with obscure command lines.
9597
# This happens at least with the AIX C compiler.
9599
for i in 1 2 3 4 5 6; do
9600
echo '#include "conftst'$i'.h"' >> sub/conftest.c
9601
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9602
# Solaris 8's {/usr,}/bin/sh.
9603
touch sub/conftst$i.h
9605
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9607
# We check with `-c' and `-o' for the sake of the "dashmstdout"
9608
# mode. It turns out that the SunPro C++ compiler does not properly
9609
# handle `-M -o', and we need to detect this. Also, some Intel
9610
# versions had trouble with output in subdirs
9611
am__obj=sub/conftest.${OBJEXT-o}
9612
am__minus_obj="-o $am__obj"
9615
# This depmode causes a compiler race in universal mode.
9616
test "$am__universal" = false || continue
9619
# after this tag, mechanisms are not by side-effect, so they'll
9620
# only be used when explicitly requested
9621
if test "x$enable_dependency_tracking" = xyes; then
9627
msvisualcpp | msvcmsys)
9628
# This compiler won't grok `-c -o', but also, the minuso test has
9629
# not run yet. These depmodes are late enough in the game, and
9630
# so weak that their functioning should not be impacted.
9631
am__obj=conftest.${OBJEXT-o}
9636
if depmode=$depmode \
9637
source=sub/conftest.c object=$am__obj \
9638
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9639
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
9640
>/dev/null 2>conftest.err &&
9641
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
9642
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
9643
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
9644
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
9645
# icc doesn't choke on unknown options, it will just issue warnings
9646
# or remarks (even with -Werror). So we grep stderr for any message
9647
# that says an option was ignored or not supported.
9648
# When given -MP, icc 7.0 and 7.1 complain thusly:
9649
# icc: Command line warning: ignoring option '-M'; no argument required
9650
# The diagnosis changed in icc 8.0:
9651
# icc: Command line remark: option '-MP' not supported
9652
if (grep 'ignoring option' conftest.err ||
9653
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9654
am_cv_CXX_dependencies_compiler_type=$depmode
9663
am_cv_CXX_dependencies_compiler_type=none
9667
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9668
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9669
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9672
test "x$enable_dependency_tracking" != xno \
9673
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
9674
am__fastdepCXX_TRUE=
9675
am__fastdepCXX_FALSE='#'
9677
am__fastdepCXX_TRUE='#'
9678
am__fastdepCXX_FALSE=
9682
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9683
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9684
(test "X$CXX" != "Xg++"))) ; then
9686
ac_cpp='$CXXCPP $CPPFLAGS'
9687
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9688
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9689
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9690
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9691
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9692
if test -z "$CXXCPP"; then
9693
if test "${ac_cv_prog_CXXCPP+set}" = set; then :
9694
$as_echo_n "(cached) " >&6
9696
# Double quotes because CXXCPP needs to be expanded
9697
for CXXCPP in "$CXX -E" "/lib/cpp"
9700
for ac_cxx_preproc_warn_flag in '' yes
9702
# Use a header file that comes with gcc, so configuring glibc
9703
# with a fresh cross-compiler works.
9704
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9705
# <limits.h> exists even on freestanding compilers.
9706
# On the NeXT, cc -E runs the code through the compiler's parser,
9707
# not just through cpp. "Syntax error" is here to catch this case.
9708
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9709
/* end confdefs.h. */
9711
# include <limits.h>
9713
# include <assert.h>
9717
if ac_fn_cxx_try_cpp "$LINENO"; then :
9720
# Broken: fails on valid input.
9723
rm -f conftest.err conftest.$ac_ext
9725
# OK, works on sane cases. Now check whether nonexistent headers
9726
# can be detected and how.
9727
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9728
/* end confdefs.h. */
9729
#include <ac_nonexistent.h>
9731
if ac_fn_cxx_try_cpp "$LINENO"; then :
9732
# Broken: success on invalid input.
9735
# Passes both tests.
9739
rm -f conftest.err conftest.$ac_ext
9742
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9743
rm -f conftest.err conftest.$ac_ext
9744
if $ac_preproc_ok; then :
9749
ac_cv_prog_CXXCPP=$CXXCPP
9752
CXXCPP=$ac_cv_prog_CXXCPP
9754
ac_cv_prog_CXXCPP=$CXXCPP
9756
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9757
$as_echo "$CXXCPP" >&6; }
9759
for ac_cxx_preproc_warn_flag in '' yes
9761
# Use a header file that comes with gcc, so configuring glibc
9762
# with a fresh cross-compiler works.
9763
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9764
# <limits.h> exists even on freestanding compilers.
9765
# On the NeXT, cc -E runs the code through the compiler's parser,
9766
# not just through cpp. "Syntax error" is here to catch this case.
9767
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9768
/* end confdefs.h. */
9770
# include <limits.h>
9772
# include <assert.h>
9776
if ac_fn_cxx_try_cpp "$LINENO"; then :
9779
# Broken: fails on valid input.
9782
rm -f conftest.err conftest.$ac_ext
9784
# OK, works on sane cases. Now check whether nonexistent headers
9785
# can be detected and how.
9786
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9787
/* end confdefs.h. */
9788
#include <ac_nonexistent.h>
9790
if ac_fn_cxx_try_cpp "$LINENO"; then :
9791
# Broken: success on invalid input.
9794
# Passes both tests.
9798
rm -f conftest.err conftest.$ac_ext
9801
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9802
rm -f conftest.err conftest.$ac_ext
9803
if $ac_preproc_ok; then :
9806
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9807
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9808
_lt_caught_CXX_error=yes; }
9812
ac_cpp='$CPP $CPPFLAGS'
9813
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9814
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9815
ac_compiler_gnu=$ac_cv_c_compiler_gnu
9818
_lt_caught_CXX_error=yes
9835
# Check whether --enable-static was given.
9836
if test "${enable_static+set}" = set; then :
9837
enableval=$enable_static; p=${PACKAGE-default}
9839
yes) enable_static=yes ;;
9840
no) enable_static=no ;;
9843
# Look at the argument we got. We use all the common list separators.
9844
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9845
for pkg in $enableval; do
9847
if test "X$pkg" = "X$p"; then
9867
# Check whether --with-pic was given.
9868
if test "${with_pic+set}" = set; then :
9869
withval=$with_pic; pic_mode="$withval"
9875
test -z "$pic_mode" && pic_mode=default
9883
# Check whether --enable-fast-install was given.
9884
if test "${enable_fast_install+set}" = set; then :
9885
enableval=$enable_fast_install; p=${PACKAGE-default}
9887
yes) enable_fast_install=yes ;;
9888
no) enable_fast_install=no ;;
9890
enable_fast_install=no
9891
# Look at the argument we got. We use all the common list separators.
9892
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9893
for pkg in $enableval; do
9895
if test "X$pkg" = "X$p"; then
9896
enable_fast_install=yes
9903
enable_fast_install=yes
9916
# This can be used to rebuild libtool when needed
9917
LIBTOOL_DEPS="$ltmain"
9919
# Always use our own libtool.
9920
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9946
test -z "$LN_S" && LN_S="ln -s"
9961
if test -n "${ZSH_VERSION+set}" ; then
9962
setopt NO_GLOB_SUBST
9965
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9966
$as_echo_n "checking for objdir... " >&6; }
9967
if test "${lt_cv_objdir+set}" = set; then :
9968
$as_echo_n "(cached) " >&6
9970
rm -f .libs 2>/dev/null
9971
mkdir .libs 2>/dev/null
9972
if test -d .libs; then
9975
# MS-DOS does not allow filenames that begin with a dot.
9978
rmdir .libs 2>/dev/null
9980
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9981
$as_echo "$lt_cv_objdir" >&6; }
9982
objdir=$lt_cv_objdir
9988
cat >>confdefs.h <<_ACEOF
9989
#define LT_OBJDIR "$lt_cv_objdir/"
10010
# AIX sometimes has problems with the GCC collect2 program. For some
10011
# reason, if we set the COLLECT_NAMES environment variable, the problems
10012
# vanish in a puff of smoke.
10013
if test "X${COLLECT_NAMES+set}" != Xset; then
10015
export COLLECT_NAMES
10020
# Sed substitution that helps us do robust quoting. It backslashifies
10021
# metacharacters that are still active within double-quoted strings.
10022
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10024
# Same as above, but do not quote variable references.
10025
double_quote_subst='s/\(["`\\]\)/\\\1/g'
10027
# Sed substitution to delay expansion of an escaped shell variable in a
10028
# double_quote_subst'ed string.
10029
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10031
# Sed substitution to delay expansion of an escaped single quote.
10032
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10034
# Sed substitution to avoid accidental globbing in evaled expressions
10035
no_glob_subst='s/\*/\\\*/g'
10037
# Global variables:
10039
can_build_shared=yes
10041
# All known linkers require a `.a' archive for static linking (except MSVC,
10042
# which needs '.lib').
10045
with_gnu_ld="$lt_cv_prog_gnu_ld"
10048
old_CFLAGS="$CFLAGS"
10050
# Set sane defaults for various variables
10051
test -z "$CC" && CC=cc
10052
test -z "$LTCC" && LTCC=$CC
10053
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10054
test -z "$LD" && LD=ld
10055
test -z "$ac_objext" && ac_objext=o
10057
for cc_temp in $compiler""; do
10059
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10060
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10065
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10068
# Only perform the check for file, if the check method requires it
10069
test -z "$MAGIC_CMD" && MAGIC_CMD=file
10070
case $deplibs_check_method in
10072
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10073
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10074
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10075
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10076
$as_echo_n "(cached) " >&6
10080
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10083
lt_save_MAGIC_CMD="$MAGIC_CMD"
10084
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10085
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10086
for ac_dir in $ac_dummy; do
10088
test -z "$ac_dir" && ac_dir=.
10089
if test -f $ac_dir/${ac_tool_prefix}file; then
10090
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10091
if test -n "$file_magic_test_file"; then
10092
case $deplibs_check_method in
10094
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10095
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10096
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10097
$EGREP "$file_magic_regex" > /dev/null; then
10102
*** Warning: the command libtool uses to detect shared libraries,
10103
*** $file_magic_cmd, produces output that libtool cannot recognize.
10104
*** The result is that libtool may fail to recognize shared libraries
10105
*** as such. This will affect the creation of libtool libraries that
10106
*** depend on shared libraries, but programs linked with such libtool
10107
*** libraries will work regardless of this problem. Nevertheless, you
10108
*** may want to report the problem to your system manager and/or to
10109
*** bug-libtool@gnu.org
10119
MAGIC_CMD="$lt_save_MAGIC_CMD"
10124
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10125
if test -n "$MAGIC_CMD"; then
10126
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10127
$as_echo "$MAGIC_CMD" >&6; }
10129
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10130
$as_echo "no" >&6; }
10137
if test -z "$lt_cv_path_MAGIC_CMD"; then
10138
if test -n "$ac_tool_prefix"; then
10139
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10140
$as_echo_n "checking for file... " >&6; }
10141
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10142
$as_echo_n "(cached) " >&6
10146
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10149
lt_save_MAGIC_CMD="$MAGIC_CMD"
10150
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10151
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10152
for ac_dir in $ac_dummy; do
10154
test -z "$ac_dir" && ac_dir=.
10155
if test -f $ac_dir/file; then
10156
lt_cv_path_MAGIC_CMD="$ac_dir/file"
10157
if test -n "$file_magic_test_file"; then
10158
case $deplibs_check_method in
10160
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10161
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10162
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10163
$EGREP "$file_magic_regex" > /dev/null; then
10168
*** Warning: the command libtool uses to detect shared libraries,
10169
*** $file_magic_cmd, produces output that libtool cannot recognize.
10170
*** The result is that libtool may fail to recognize shared libraries
10171
*** as such. This will affect the creation of libtool libraries that
10172
*** depend on shared libraries, but programs linked with such libtool
10173
*** libraries will work regardless of this problem. Nevertheless, you
10174
*** may want to report the problem to your system manager and/or to
10175
*** bug-libtool@gnu.org
10185
MAGIC_CMD="$lt_save_MAGIC_CMD"
10190
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10191
if test -n "$MAGIC_CMD"; then
10192
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10193
$as_echo "$MAGIC_CMD" >&6; }
10195
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10196
$as_echo "no" >&6; }
10209
# Use C for the default configuration in the libtool script
10213
ac_cpp='$CPP $CPPFLAGS'
10214
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10215
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10216
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10219
# Source file extension for C test sources.
10222
# Object file extension for compiled C test sources.
10226
# Code to be used in simple compile tests
10227
lt_simple_compile_test_code="int some_variable = 0;"
10229
# Code to be used in simple link tests
10230
lt_simple_link_test_code='int main(){return(0);}'
10238
# If no C compiler was specified, use CC.
10241
# If no C compiler flags were specified, use CFLAGS.
10242
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10244
# Allow CC to be a program name with arguments.
10247
# Save the default compiler, since it gets overwritten when the other
10248
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10249
compiler_DEFAULT=$CC
10251
# save warnings/boilerplate of simple test code
10252
ac_outfile=conftest.$ac_objext
10253
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10254
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10255
_lt_compiler_boilerplate=`cat conftest.err`
10258
ac_outfile=conftest.$ac_objext
10259
echo "$lt_simple_link_test_code" >conftest.$ac_ext
10260
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10261
_lt_linker_boilerplate=`cat conftest.err`
10265
if test -n "$compiler"; then
10267
lt_prog_compiler_no_builtin_flag=
10269
if test "$GCC" = yes; then
10270
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
10272
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10273
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10274
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
10275
$as_echo_n "(cached) " >&6
10277
lt_cv_prog_compiler_rtti_exceptions=no
10278
ac_outfile=conftest.$ac_objext
10279
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10280
lt_compiler_flag="-fno-rtti -fno-exceptions"
10281
# Insert the option either (1) after the last *FLAGS variable, or
10282
# (2) before a word containing "conftest.", or (3) at the end.
10283
# Note that $ac_compile itself does not contain backslashes and begins
10284
# with a dollar sign (not a hyphen), so the echo should work correctly.
10285
# The option is referenced via a variable to avoid confusing sed.
10286
lt_compile=`echo "$ac_compile" | $SED \
10287
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10288
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10289
-e 's:$: $lt_compiler_flag:'`
10290
(eval echo "\"\$as_me:10290: $lt_compile\"" >&5)
10291
(eval "$lt_compile" 2>conftest.err)
10293
cat conftest.err >&5
10294
echo "$as_me:10294: \$? = $ac_status" >&5
10295
if (exit $ac_status) && test -s "$ac_outfile"; then
10296
# The compiler can only warn and ignore the option if not recognized
10297
# So say no if there are warnings other than the usual output.
10298
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10299
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10300
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10301
lt_cv_prog_compiler_rtti_exceptions=yes
10307
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10308
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10310
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10311
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10323
lt_prog_compiler_wl=
10324
lt_prog_compiler_pic=
10325
lt_prog_compiler_static=
10327
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10328
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10330
if test "$GCC" = yes; then
10331
lt_prog_compiler_wl='-Wl,'
10332
lt_prog_compiler_static='-static'
10336
# All AIX code is PIC.
10337
if test "$host_cpu" = ia64; then
10338
# AIX 5 now supports IA64 processor
10339
lt_prog_compiler_static='-Bstatic'
10346
# see comment about AmigaOS4 .so support
10347
lt_prog_compiler_pic='-fPIC'
10350
# FIXME: we need at least 68020 code to build shared libraries, but
10351
# adding the `-m68020' flag to GCC prevents building anything better,
10353
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10358
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10359
# PIC is the default for these OSes.
10362
mingw* | cygwin* | pw32* | os2* | cegcc*)
10363
# This hack is so that the source file can tell whether it is being
10364
# built for inclusion in a dll (and should export symbols for example).
10365
# Although the cygwin gcc ignores -fPIC, still need this for old-style
10366
# (--disable-auto-import) libraries
10367
lt_prog_compiler_pic='-DDLL_EXPORT'
10370
darwin* | rhapsody*)
10371
# PIC is the default on this platform
10372
# Common symbols not allowed in MH_DYLIB files
10373
lt_prog_compiler_pic='-fno-common'
10377
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10378
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10379
# sets the default TLS model and affects inlining.
10385
lt_prog_compiler_pic='-fPIC'
10391
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
10392
# Instead, we relocate shared libraries at runtime.
10396
# Just because we use GCC doesn't mean we suddenly get shared libraries
10397
# on systems that don't support them.
10398
lt_prog_compiler_can_build_shared=no
10403
# QNX uses GNU C++, but need to define -shared option too, otherwise
10404
# it will coredump.
10405
lt_prog_compiler_pic='-fPIC -shared'
10409
if test -d /usr/nec; then
10410
lt_prog_compiler_pic=-Kconform_pic
10415
lt_prog_compiler_pic='-fPIC'
10419
# PORTME Check for flag to pass linker flags through the system compiler.
10422
lt_prog_compiler_wl='-Wl,'
10423
if test "$host_cpu" = ia64; then
10424
# AIX 5 now supports IA64 processor
10425
lt_prog_compiler_static='-Bstatic'
10427
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10431
mingw* | cygwin* | pw32* | os2* | cegcc*)
10432
# This hack is so that the source file can tell whether it is being
10433
# built for inclusion in a dll (and should export symbols for example).
10434
lt_prog_compiler_pic='-DDLL_EXPORT'
10437
hpux9* | hpux10* | hpux11*)
10438
lt_prog_compiler_wl='-Wl,'
10439
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10440
# not for PA HP-UX.
10446
lt_prog_compiler_pic='+Z'
10449
# Is there a better lt_prog_compiler_static that works with the bundled CC?
10450
lt_prog_compiler_static='${wl}-a ${wl}archive'
10453
irix5* | irix6* | nonstopux*)
10454
lt_prog_compiler_wl='-Wl,'
10455
# PIC (with -KPIC) is the default.
10456
lt_prog_compiler_static='-non_shared'
10459
linux* | k*bsd*-gnu)
10460
case $cc_basename in
10461
# old Intel for x86_64 which still supported -KPIC.
10463
lt_prog_compiler_wl='-Wl,'
10464
lt_prog_compiler_pic='-KPIC'
10465
lt_prog_compiler_static='-static'
10467
# icc used to be incompatible with GCC.
10468
# ICC 10 doesn't accept -KPIC any more.
10470
lt_prog_compiler_wl='-Wl,'
10471
lt_prog_compiler_pic='-fPIC'
10472
lt_prog_compiler_static='-static'
10474
# Lahey Fortran 8.1.
10476
lt_prog_compiler_wl='-Wl,'
10477
lt_prog_compiler_pic='--shared'
10478
lt_prog_compiler_static='--static'
10480
pgcc* | pgf77* | pgf90* | pgf95*)
10481
# Portland Group compilers (*not* the Pentium gcc compiler,
10482
# which looks to be a dead project)
10483
lt_prog_compiler_wl='-Wl,'
10484
lt_prog_compiler_pic='-fpic'
10485
lt_prog_compiler_static='-Bstatic'
10488
lt_prog_compiler_wl='-Wl,'
10489
# All Alpha code is PIC.
10490
lt_prog_compiler_static='-non_shared'
10493
# IBM XL C 8.0/Fortran 10.1 on PPC
10494
lt_prog_compiler_wl='-Wl,'
10495
lt_prog_compiler_pic='-qpic'
10496
lt_prog_compiler_static='-qstaticlink'
10499
case `$CC -V 2>&1 | sed 5q` in
10502
lt_prog_compiler_pic='-KPIC'
10503
lt_prog_compiler_static='-Bstatic'
10504
lt_prog_compiler_wl='-Wl,'
10507
# Sun Fortran 8.3 passes all unrecognized flags to the linker
10508
lt_prog_compiler_pic='-KPIC'
10509
lt_prog_compiler_static='-Bstatic'
10510
lt_prog_compiler_wl=''
10518
lt_prog_compiler_pic='-KPIC'
10519
lt_prog_compiler_static='-Bstatic'
10523
# QNX uses GNU C++, but need to define -shared option too, otherwise
10524
# it will coredump.
10525
lt_prog_compiler_pic='-fPIC -shared'
10528
osf3* | osf4* | osf5*)
10529
lt_prog_compiler_wl='-Wl,'
10530
# All OSF/1 code is PIC.
10531
lt_prog_compiler_static='-non_shared'
10535
lt_prog_compiler_static='-non_shared'
10539
lt_prog_compiler_pic='-KPIC'
10540
lt_prog_compiler_static='-Bstatic'
10541
case $cc_basename in
10542
f77* | f90* | f95*)
10543
lt_prog_compiler_wl='-Qoption ld ';;
10545
lt_prog_compiler_wl='-Wl,';;
10550
lt_prog_compiler_wl='-Qoption ld '
10551
lt_prog_compiler_pic='-PIC'
10552
lt_prog_compiler_static='-Bstatic'
10555
sysv4 | sysv4.2uw2* | sysv4.3*)
10556
lt_prog_compiler_wl='-Wl,'
10557
lt_prog_compiler_pic='-KPIC'
10558
lt_prog_compiler_static='-Bstatic'
10562
if test -d /usr/nec ;then
10563
lt_prog_compiler_pic='-Kconform_pic'
10564
lt_prog_compiler_static='-Bstatic'
10568
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10569
lt_prog_compiler_wl='-Wl,'
10570
lt_prog_compiler_pic='-KPIC'
10571
lt_prog_compiler_static='-Bstatic'
10575
lt_prog_compiler_wl='-Wl,'
10576
lt_prog_compiler_can_build_shared=no
10580
lt_prog_compiler_pic='-pic'
10581
lt_prog_compiler_static='-Bstatic'
10585
lt_prog_compiler_can_build_shared=no
10591
# For platforms which do not support PIC, -DPIC is meaningless:
10593
lt_prog_compiler_pic=
10596
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10599
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
10600
$as_echo "$lt_prog_compiler_pic" >&6; }
10608
# Check to make sure the PIC flag actually works.
10610
if test -n "$lt_prog_compiler_pic"; then
10611
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10612
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10613
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
10614
$as_echo_n "(cached) " >&6
10616
lt_cv_prog_compiler_pic_works=no
10617
ac_outfile=conftest.$ac_objext
10618
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10619
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10620
# Insert the option either (1) after the last *FLAGS variable, or
10621
# (2) before a word containing "conftest.", or (3) at the end.
10622
# Note that $ac_compile itself does not contain backslashes and begins
10623
# with a dollar sign (not a hyphen), so the echo should work correctly.
10624
# The option is referenced via a variable to avoid confusing sed.
10625
lt_compile=`echo "$ac_compile" | $SED \
10626
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10627
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10628
-e 's:$: $lt_compiler_flag:'`
10629
(eval echo "\"\$as_me:10629: $lt_compile\"" >&5)
10630
(eval "$lt_compile" 2>conftest.err)
10632
cat conftest.err >&5
10633
echo "$as_me:10633: \$? = $ac_status" >&5
10634
if (exit $ac_status) && test -s "$ac_outfile"; then
10635
# The compiler can only warn and ignore the option if not recognized
10636
# So say no if there are warnings other than the usual output.
10637
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10638
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10639
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10640
lt_cv_prog_compiler_pic_works=yes
10646
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10647
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10649
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10650
case $lt_prog_compiler_pic in
10652
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10655
lt_prog_compiler_pic=
10656
lt_prog_compiler_can_build_shared=no
10667
# Check to make sure the static flag actually works.
10669
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10670
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10671
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10672
if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
10673
$as_echo_n "(cached) " >&6
10675
lt_cv_prog_compiler_static_works=no
10676
save_LDFLAGS="$LDFLAGS"
10677
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10678
echo "$lt_simple_link_test_code" > conftest.$ac_ext
10679
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10680
# The linker can only warn and ignore the option if not recognized
10681
# So say no if there are warnings
10682
if test -s conftest.err; then
10683
# Append any errors to the config.log.
10684
cat conftest.err 1>&5
10685
$ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
10686
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10687
if diff conftest.exp conftest.er2 >/dev/null; then
10688
lt_cv_prog_compiler_static_works=yes
10691
lt_cv_prog_compiler_static_works=yes
10695
LDFLAGS="$save_LDFLAGS"
10698
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10699
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10701
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10704
lt_prog_compiler_static=
10713
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10714
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10715
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10716
$as_echo_n "(cached) " >&6
10718
lt_cv_prog_compiler_c_o=no
10719
$RM -r conftest 2>/dev/null
10723
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10725
lt_compiler_flag="-o out/conftest2.$ac_objext"
10726
# Insert the option either (1) after the last *FLAGS variable, or
10727
# (2) before a word containing "conftest.", or (3) at the end.
10728
# Note that $ac_compile itself does not contain backslashes and begins
10729
# with a dollar sign (not a hyphen), so the echo should work correctly.
10730
lt_compile=`echo "$ac_compile" | $SED \
10731
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10732
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10733
-e 's:$: $lt_compiler_flag:'`
10734
(eval echo "\"\$as_me:10734: $lt_compile\"" >&5)
10735
(eval "$lt_compile" 2>out/conftest.err)
10737
cat out/conftest.err >&5
10738
echo "$as_me:10738: \$? = $ac_status" >&5
10739
if (exit $ac_status) && test -s out/conftest2.$ac_objext
10741
# The compiler can only warn and ignore the option if not recognized
10742
# So say no if there are warnings
10743
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10744
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10745
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10746
lt_cv_prog_compiler_c_o=yes
10751
# SGI C++ compiler will create directory out/ii_files/ for
10752
# template instantiation
10753
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10754
$RM out/* && rmdir out
10760
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10761
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10768
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10769
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10770
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10771
$as_echo_n "(cached) " >&6
10773
lt_cv_prog_compiler_c_o=no
10774
$RM -r conftest 2>/dev/null
10778
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10780
lt_compiler_flag="-o out/conftest2.$ac_objext"
10781
# Insert the option either (1) after the last *FLAGS variable, or
10782
# (2) before a word containing "conftest.", or (3) at the end.
10783
# Note that $ac_compile itself does not contain backslashes and begins
10784
# with a dollar sign (not a hyphen), so the echo should work correctly.
10785
lt_compile=`echo "$ac_compile" | $SED \
10786
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10787
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10788
-e 's:$: $lt_compiler_flag:'`
10789
(eval echo "\"\$as_me:10789: $lt_compile\"" >&5)
10790
(eval "$lt_compile" 2>out/conftest.err)
10792
cat out/conftest.err >&5
10793
echo "$as_me:10793: \$? = $ac_status" >&5
10794
if (exit $ac_status) && test -s out/conftest2.$ac_objext
10796
# The compiler can only warn and ignore the option if not recognized
10797
# So say no if there are warnings
10798
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10799
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10800
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10801
lt_cv_prog_compiler_c_o=yes
10806
# SGI C++ compiler will create directory out/ii_files/ for
10807
# template instantiation
10808
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10809
$RM out/* && rmdir out
10815
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10816
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10821
hard_links="nottested"
10822
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10823
# do not overwrite the value of need_locks provided by the user
10824
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10825
$as_echo_n "checking if we can lock with hard links... " >&6; }
10828
ln conftest.a conftest.b 2>/dev/null && hard_links=no
10830
ln conftest.a conftest.b 2>&5 || hard_links=no
10831
ln conftest.a conftest.b 2>/dev/null && hard_links=no
10832
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10833
$as_echo "$hard_links" >&6; }
10834
if test "$hard_links" = no; then
10835
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10836
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10848
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10849
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10852
allow_undefined_flag=
10853
always_export_symbols=no
10855
archive_expsym_cmds=
10856
compiler_needs_object=no
10857
enable_shared_with_static_runtimes=no
10858
export_dynamic_flag_spec=
10859
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10860
hardcode_automatic=no
10862
hardcode_direct_absolute=no
10863
hardcode_libdir_flag_spec=
10864
hardcode_libdir_flag_spec_ld=
10865
hardcode_libdir_separator=
10866
hardcode_minus_L=no
10867
hardcode_shlibpath_var=unsupported
10869
link_all_deplibs=unknown
10871
module_expsym_cmds=
10872
old_archive_from_new_cmds=
10873
old_archive_from_expsyms_cmds=
10874
thread_safe_flag_spec=
10875
whole_archive_flag_spec=
10876
# include_expsyms should be a list of space-separated symbols to be *always*
10877
# included in the symbol list
10879
# exclude_expsyms can be an extended regexp of symbols to exclude
10880
# it will be wrapped by ` (' and `)$', so one must not match beginning or
10881
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10882
# as well as any symbol that contains `d'.
10883
exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10884
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10885
# platforms (ab)use it in PIC code, but their linkers get confused if
10886
# the symbol is explicitly referenced. Since portable code cannot
10887
# rely on this symbol name, it's probably fine to never include it in
10888
# preloaded symbol tables.
10889
# Exclude shared library initialization/finalization symbols.
10890
extract_expsyms_cmds=
10893
cygwin* | mingw* | pw32* | cegcc*)
10894
# FIXME: the MSVC++ port hasn't been tested in a loooong time
10895
# When not using gcc, we currently assume that we are using
10896
# Microsoft Visual C++.
10897
if test "$GCC" != yes; then
10902
# we just hope/assume this is gcc and not c89 (= MSVC++)
10911
if test "$with_gnu_ld" = yes; then
10912
# If archive_cmds runs LD, not CC, wlarc should be empty
10915
# Set some defaults for GNU ld with shared library support. These
10916
# are reset later if shared libraries are not supported. Putting them
10917
# here allows them to be overridden if necessary.
10918
runpath_var=LD_RUN_PATH
10919
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10920
export_dynamic_flag_spec='${wl}--export-dynamic'
10921
# ancient GNU ld didn't support --whole-archive et. al.
10922
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10923
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10925
whole_archive_flag_spec=
10927
supports_anon_versioning=no
10928
case `$LD -v 2>&1` in
10929
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10930
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10931
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10932
*\ 2.11.*) ;; # other 2.11 versions
10933
*) supports_anon_versioning=yes ;;
10936
# See if GNU ld supports shared libraries.
10939
# On AIX/PPC, the GNU linker is very broken
10940
if test "$host_cpu" != ia64; then
10944
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
10945
*** to be unable to reliably create shared libraries on AIX.
10946
*** Therefore, libtool is disabling shared libraries support. If you
10947
*** really care for shared libraries, you may want to modify your PATH
10948
*** so that a non-GNU linker is found, and then restart.
10957
# see comment about AmigaOS4 .so support
10958
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10959
archive_expsym_cmds=''
10962
archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10963
hardcode_libdir_flag_spec='-L$libdir'
10964
hardcode_minus_L=yes
10970
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10971
allow_undefined_flag=unsupported
10972
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10973
# support --undefined. This deserves some investigation. FIXME
10974
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10980
cygwin* | mingw* | pw32* | cegcc*)
10981
# _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10982
# as there is no search path for DLLs.
10983
hardcode_libdir_flag_spec='-L$libdir'
10984
allow_undefined_flag=unsupported
10985
always_export_symbols=no
10986
enable_shared_with_static_runtimes=yes
10987
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10989
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10990
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10991
# If the export-symbols file already is a .def file (1st line
10992
# is EXPORTS), use it as is; otherwise, prepend...
10993
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10994
cp $export_symbols $output_objdir/$soname.def;
10996
echo EXPORTS > $output_objdir/$soname.def;
10997
cat $export_symbols >> $output_objdir/$soname.def;
10999
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11007
hardcode_shlibpath_var=no
11008
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11009
export_dynamic_flag_spec='${wl}-E'
11010
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11011
# Instead, shared libraries are loaded at an image base (0x10000000 by
11012
# default) and relocated if they conflict, which is a slow very memory
11013
# consuming and fragmenting process. To avoid this, we pick a random,
11014
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11015
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
11016
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11017
archive_expsym_cmds='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'
11020
gnu* | linux* | tpf* | k*bsd*-gnu)
11022
if test "$host_os" = linux-dietlibc; then
11023
case $cc_basename in
11024
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11027
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11028
&& test "$tmp_diet" = no
11031
tmp_sharedflag='-shared'
11032
case $cc_basename,$host_cpu in
11033
pgcc*) # Portland Group C compiler
11034
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
11035
tmp_addflag=' $pic_flag'
11037
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
11038
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
11039
tmp_addflag=' $pic_flag -Mnomain' ;;
11040
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11041
tmp_addflag=' -i_dynamic' ;;
11042
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11043
tmp_addflag=' -i_dynamic -nofor_main' ;;
11044
ifc* | ifort*) # Intel Fortran compiler
11045
tmp_addflag=' -nofor_main' ;;
11046
lf95*) # Lahey Fortran 8.1
11047
whole_archive_flag_spec=
11048
tmp_sharedflag='--shared' ;;
11049
xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11050
tmp_sharedflag='-qmkshrobj'
11053
case `$CC -V 2>&1 | sed 5q` in
11054
*Sun\ C*) # Sun C 5.9
11055
whole_archive_flag_spec='${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'
11056
compiler_needs_object=yes
11057
tmp_sharedflag='-G' ;;
11058
*Sun\ F*) # Sun Fortran 8.3
11059
tmp_sharedflag='-G' ;;
11061
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11063
if test "x$supports_anon_versioning" = xyes; then
11064
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11065
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11066
echo "local: *; };" >> $output_objdir/$libname.ver~
11067
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11070
case $cc_basename in
11072
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11073
whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11074
hardcode_libdir_flag_spec=
11075
hardcode_libdir_flag_spec_ld='-rpath $libdir'
11076
archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
11077
if test "x$supports_anon_versioning" = xyes; then
11078
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11079
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11080
echo "local: *; };" >> $output_objdir/$libname.ver~
11081
$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11091
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11092
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11095
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11096
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11101
if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11105
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
11106
*** create shared libraries on Solaris systems. Therefore, libtool
11107
*** is disabling shared libraries support. We urge you to upgrade GNU
11108
*** binutils to release 2.9.1 or newer. Another option is to modify
11109
*** your PATH or compiler configuration so that the native linker is
11110
*** used, and then restart.
11113
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11114
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11115
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11121
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11122
case `$LD -v 2>&1` in
11123
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11127
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11128
*** reliably create shared libraries on SCO systems. Therefore, libtool
11129
*** is disabling shared libraries support. We urge you to upgrade GNU
11130
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11131
*** your PATH or compiler configuration so that the native linker is
11132
*** used, and then restart.
11137
# For security reasons, it is highly recommended that you always
11138
# use absolute paths for naming shared libraries, and exclude the
11139
# DT_RUNPATH tag from executables and libraries. But doing so
11140
# requires that you compile everything twice, which is a pain.
11141
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11142
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11143
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11144
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11153
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11155
hardcode_direct=yes
11156
hardcode_shlibpath_var=no
11160
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11161
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11162
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11169
if test "$ld_shlibs" = no; then
11171
hardcode_libdir_flag_spec=
11172
export_dynamic_flag_spec=
11173
whole_archive_flag_spec=
11176
# PORTME fill in a description of your system's linker (not GNU ld)
11179
allow_undefined_flag=unsupported
11180
always_export_symbols=yes
11181
archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
11182
# Note: this linker hardcodes the directories in LIBPATH if there
11183
# are no directories specified by -L.
11184
hardcode_minus_L=yes
11185
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11186
# Neither direct hardcoding nor static linking is supported with a
11188
hardcode_direct=unsupported
11193
if test "$host_cpu" = ia64; then
11194
# On IA64, the linker does run time linking by default, so we don't
11195
# have to do anything special.
11196
aix_use_runtimelinking=no
11197
exp_sym_flag='-Bexport'
11200
# If we're using GNU nm, then we don't want the "-C" option.
11201
# -C means demangle to AIX nm, but means don't demangle with GNU nm
11202
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11203
export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11205
export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11207
aix_use_runtimelinking=no
11209
# Test if we are trying to use run time linking or normal
11210
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11211
# need to do runtime linking.
11212
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11213
for ld_flag in $LDFLAGS; do
11214
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11215
aix_use_runtimelinking=yes
11222
exp_sym_flag='-bexport'
11223
no_entry_flag='-bnoentry'
11226
# When large executables or shared objects are built, AIX ld can
11227
# have problems creating the table of contents. If linking a library
11228
# or program results in "error TOC overflow" add -mminimal-toc to
11229
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11230
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11233
hardcode_direct=yes
11234
hardcode_direct_absolute=yes
11235
hardcode_libdir_separator=':'
11236
link_all_deplibs=yes
11237
file_list_spec='${wl}-f,'
11239
if test "$GCC" = yes; then
11240
case $host_os in aix4.[012]|aix4.[012].*)
11241
# We only want to do this on AIX 4.2 and lower, the check
11242
# below for broken collect2 doesn't work under 4.3+
11243
collect2name=`${CC} -print-prog-name=collect2`
11244
if test -f "$collect2name" &&
11245
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11247
# We have reworked collect2
11250
# We have old collect2
11251
hardcode_direct=unsupported
11252
# It fails to find uninstalled libraries when the uninstalled
11253
# path is not listed in the libpath. Setting hardcode_minus_L
11254
# to unsupported forces relinking
11255
hardcode_minus_L=yes
11256
hardcode_libdir_flag_spec='-L$libdir'
11257
hardcode_libdir_separator=
11261
shared_flag='-shared'
11262
if test "$aix_use_runtimelinking" = yes; then
11263
shared_flag="$shared_flag "'${wl}-G'
11267
if test "$host_cpu" = ia64; then
11268
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11269
# chokes on -Wl,-G. The following line is correct:
11272
if test "$aix_use_runtimelinking" = yes; then
11273
shared_flag='${wl}-G'
11275
shared_flag='${wl}-bM:SRE'
11280
export_dynamic_flag_spec='${wl}-bexpall'
11281
# It seems that -bexpall does not export symbols beginning with
11282
# underscore (_), so it is better to generate a list of symbols to export.
11283
always_export_symbols=yes
11284
if test "$aix_use_runtimelinking" = yes; then
11285
# Warning - without using the other runtime loading flags (-brtl),
11286
# -berok will link without error, but may produce a broken library.
11287
allow_undefined_flag='-berok'
11288
# Determine the default libpath from the value encoded in an
11289
# empty executable.
11290
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11291
/* end confdefs.h. */
11301
if ac_fn_c_try_link "$LINENO"; then :
11303
lt_aix_libpath_sed='
11304
/Import File Strings/,/^$/ {
11310
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11311
# Check for a 64-bit object if we didn't find anything.
11312
if test -z "$aix_libpath"; then
11313
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11316
rm -f core conftest.err conftest.$ac_objext \
11317
conftest$ac_exeext conftest.$ac_ext
11318
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11320
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11321
archive_expsym_cmds='$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"
11323
if test "$host_cpu" = ia64; then
11324
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11325
allow_undefined_flag="-z nodefs"
11326
archive_expsym_cmds="\$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"
11328
# Determine the default libpath from the value encoded in an
11329
# empty executable.
11330
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11331
/* end confdefs.h. */
11341
if ac_fn_c_try_link "$LINENO"; then :
11343
lt_aix_libpath_sed='
11344
/Import File Strings/,/^$/ {
11350
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11351
# Check for a 64-bit object if we didn't find anything.
11352
if test -z "$aix_libpath"; then
11353
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11356
rm -f core conftest.err conftest.$ac_objext \
11357
conftest$ac_exeext conftest.$ac_ext
11358
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11360
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11361
# Warning - without using the other run time loading flags,
11362
# -berok will link without error, but may produce a broken library.
11363
no_undefined_flag=' ${wl}-bernotok'
11364
allow_undefined_flag=' ${wl}-berok'
11365
# Exported symbols can be pulled into shared objects from archives
11366
whole_archive_flag_spec='$convenience'
11367
archive_cmds_need_lc=yes
11368
# This is similar to how AIX traditionally builds its shared libraries.
11369
archive_expsym_cmds="\$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'
11377
# see comment about AmigaOS4 .so support
11378
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11379
archive_expsym_cmds=''
11382
archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
11383
hardcode_libdir_flag_spec='-L$libdir'
11384
hardcode_minus_L=yes
11390
export_dynamic_flag_spec=-rdynamic
11393
cygwin* | mingw* | pw32* | cegcc*)
11394
# When not using gcc, we currently assume that we are using
11395
# Microsoft Visual C++.
11396
# hardcode_libdir_flag_spec is actually meaningless, as there is
11397
# no search path for DLLs.
11398
hardcode_libdir_flag_spec=' '
11399
allow_undefined_flag=unsupported
11400
# Tell ltmain to make .lib files, not .a files.
11402
# Tell ltmain to make .dll files, not .so files.
11404
# FIXME: Setting linknames here is a bad hack.
11405
archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
11406
# The linker will automatically build a .lib file if we build a DLL.
11407
old_archive_from_new_cmds='true'
11408
# FIXME: Should let the user specify the lib program.
11409
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11410
fix_srcfile_path='`cygpath -w "$srcfile"`'
11411
enable_shared_with_static_runtimes=yes
11414
darwin* | rhapsody*)
11417
archive_cmds_need_lc=no
11419
hardcode_automatic=yes
11420
hardcode_shlibpath_var=unsupported
11421
whole_archive_flag_spec=''
11422
link_all_deplibs=yes
11423
allow_undefined_flag="$_lt_dar_allow_undefined"
11424
case $cc_basename in
11425
ifort*) _lt_dar_can_shared=yes ;;
11426
*) _lt_dar_can_shared=$GCC ;;
11428
if test "$_lt_dar_can_shared" = "yes"; then
11429
output_verbose_link_cmd=echo
11430
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11431
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11432
archive_expsym_cmds="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}"
11433
module_expsym_cmds="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}"
11442
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11443
hardcode_libdir_flag_spec='-L$libdir'
11444
hardcode_shlibpath_var=no
11451
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11452
# support. Future versions do this automatically, but an explicit c++rt0.o
11453
# does not break anything, and helps significantly (at the cost of a little
11456
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11457
hardcode_libdir_flag_spec='-R$libdir'
11458
hardcode_direct=yes
11459
hardcode_shlibpath_var=no
11462
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
11464
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11465
hardcode_direct=yes
11466
hardcode_minus_L=yes
11467
hardcode_shlibpath_var=no
11470
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11471
freebsd* | dragonfly*)
11472
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11473
hardcode_libdir_flag_spec='-R$libdir'
11474
hardcode_direct=yes
11475
hardcode_shlibpath_var=no
11479
if test "$GCC" = yes; then
11480
archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11482
archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11484
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11485
hardcode_libdir_separator=:
11486
hardcode_direct=yes
11488
# hardcode_minus_L: Not really in the search PATH,
11489
# but as the default location of the library.
11490
hardcode_minus_L=yes
11491
export_dynamic_flag_spec='${wl}-E'
11495
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11496
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11498
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11500
if test "$with_gnu_ld" = no; then
11501
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11502
hardcode_libdir_flag_spec_ld='+b $libdir'
11503
hardcode_libdir_separator=:
11504
hardcode_direct=yes
11505
hardcode_direct_absolute=yes
11506
export_dynamic_flag_spec='${wl}-E'
11507
# hardcode_minus_L: Not really in the search PATH,
11508
# but as the default location of the library.
11509
hardcode_minus_L=yes
11514
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11517
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11520
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11523
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11529
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11532
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11535
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11539
if test "$with_gnu_ld" = no; then
11540
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11541
hardcode_libdir_separator=:
11546
hardcode_shlibpath_var=no
11549
hardcode_direct=yes
11550
hardcode_direct_absolute=yes
11551
export_dynamic_flag_spec='${wl}-E'
11553
# hardcode_minus_L: Not really in the search PATH,
11554
# but as the default location of the library.
11555
hardcode_minus_L=yes
11561
irix5* | irix6* | nonstopux*)
11562
if test "$GCC" = yes; then
11563
archive_cmds='$CC -shared $libobjs $deplibs $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'
11564
# Try to use the -exported_symbol ld option, if it does not
11565
# work, assume that -exports_file does not work either and
11566
# implicitly export all symbols.
11567
save_LDFLAGS="$LDFLAGS"
11568
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11569
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11570
/* end confdefs.h. */
11573
if ac_fn_c_try_link "$LINENO"; then :
11574
archive_expsym_cmds='$CC -shared $libobjs $deplibs $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 ${wl}-exports_file ${wl}$export_symbols -o $lib'
11577
rm -f core conftest.err conftest.$ac_objext \
11578
conftest$ac_exeext conftest.$ac_ext
11579
LDFLAGS="$save_LDFLAGS"
11581
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
11582
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
11584
archive_cmds_need_lc='no'
11585
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11586
hardcode_libdir_separator=:
11588
link_all_deplibs=yes
11592
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11593
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11595
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11597
hardcode_libdir_flag_spec='-R$libdir'
11598
hardcode_direct=yes
11599
hardcode_shlibpath_var=no
11603
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11604
hardcode_direct=yes
11605
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11606
hardcode_libdir_separator=:
11607
hardcode_shlibpath_var=no
11614
if test -f /usr/libexec/ld.so; then
11615
hardcode_direct=yes
11616
hardcode_shlibpath_var=no
11617
hardcode_direct_absolute=yes
11618
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11619
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11620
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11621
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11622
export_dynamic_flag_spec='${wl}-E'
11625
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11626
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11627
hardcode_libdir_flag_spec='-R$libdir'
11630
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11631
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11641
hardcode_libdir_flag_spec='-L$libdir'
11642
hardcode_minus_L=yes
11643
allow_undefined_flag=unsupported
11644
archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
11645
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11649
if test "$GCC" = yes; then
11650
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11651
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $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'
11653
allow_undefined_flag=' -expect_unresolved \*'
11654
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
11656
archive_cmds_need_lc='no'
11657
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11658
hardcode_libdir_separator=:
11661
osf4* | osf5*) # as osf3* with the addition of -msym flag
11662
if test "$GCC" = yes; then
11663
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11664
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${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'
11665
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11667
allow_undefined_flag=' -expect_unresolved \*'
11668
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
11669
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
11670
$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
11672
# Both c and cxx compiler support -rpath directly
11673
hardcode_libdir_flag_spec='-rpath $libdir'
11675
archive_cmds_need_lc='no'
11676
hardcode_libdir_separator=:
11680
no_undefined_flag=' -z defs'
11681
if test "$GCC" = yes; then
11683
archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11684
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11685
$CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11687
case `$CC -V 2>&1` in
11690
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11691
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11692
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11696
archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11697
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11698
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11702
hardcode_libdir_flag_spec='-R$libdir'
11703
hardcode_shlibpath_var=no
11705
solaris2.[0-5] | solaris2.[0-5].*) ;;
11707
# The compiler driver will combine and reorder linker options,
11708
# but understands `-z linker_flag'. GCC discards it without `$wl',
11709
# but is careful enough not to reorder.
11710
# Supported since Solaris 2.6 (maybe 2.5.1?)
11711
if test "$GCC" = yes; then
11712
whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11714
whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11718
link_all_deplibs=yes
11722
if test "x$host_vendor" = xsequent; then
11723
# Use $CC to link under sequent, because it throws in some extra .o
11724
# files that make .init and .fini sections work.
11725
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11727
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11729
hardcode_libdir_flag_spec='-L$libdir'
11730
hardcode_direct=yes
11731
hardcode_minus_L=yes
11732
hardcode_shlibpath_var=no
11736
case $host_vendor in
11738
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11739
hardcode_direct=yes # is this really true???
11742
## LD is ld it makes a PLAMLIB
11743
## CC just makes a GrossModule.
11744
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11745
reload_cmds='$CC -r -o $output$reload_objs'
11749
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11750
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11753
runpath_var='LD_RUN_PATH'
11754
hardcode_shlibpath_var=no
11758
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11759
hardcode_shlibpath_var=no
11760
export_dynamic_flag_spec='-Bexport'
11764
if test -d /usr/nec; then
11765
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11766
hardcode_shlibpath_var=no
11767
runpath_var=LD_RUN_PATH
11768
hardcode_runpath_var=yes
11773
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11774
no_undefined_flag='${wl}-z,text'
11775
archive_cmds_need_lc=no
11776
hardcode_shlibpath_var=no
11777
runpath_var='LD_RUN_PATH'
11779
if test "$GCC" = yes; then
11780
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11781
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11783
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11784
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11788
sysv5* | sco3.2v5* | sco5v6*)
11789
# Note: We can NOT use -z defs as we might desire, because we do not
11790
# link with -lc, and that would cause any symbols used from libc to
11791
# always be unresolved, which means just about no library would
11792
# ever link correctly. If we're not using GNU ld we use -z text
11793
# though, which does catch some bad symbols but isn't as heavy-handed
11795
no_undefined_flag='${wl}-z,text'
11796
allow_undefined_flag='${wl}-z,nodefs'
11797
archive_cmds_need_lc=no
11798
hardcode_shlibpath_var=no
11799
hardcode_libdir_flag_spec='${wl}-R,$libdir'
11800
hardcode_libdir_separator=':'
11801
link_all_deplibs=yes
11802
export_dynamic_flag_spec='${wl}-Bexport'
11803
runpath_var='LD_RUN_PATH'
11805
if test "$GCC" = yes; then
11806
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11807
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11809
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11810
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11815
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11816
hardcode_libdir_flag_spec='-L$libdir'
11817
hardcode_shlibpath_var=no
11825
if test x$host_vendor = xsni; then
11827
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11828
export_dynamic_flag_spec='${wl}-Blargedynsym'
11834
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11835
$as_echo "$ld_shlibs" >&6; }
11836
test "$ld_shlibs" = no && can_build_shared=no
11838
with_gnu_ld=$with_gnu_ld
11855
# Do we need to explicitly link libc?
11857
case "x$archive_cmds_need_lc" in
11859
# Assume -lc should be added
11860
archive_cmds_need_lc=yes
11862
if test "$enable_shared" = yes && test "$GCC" = yes; then
11863
case $archive_cmds in
11865
# FIXME: we may have to deal with multi-command sequences.
11868
# Test whether the compiler implicitly links with -lc since on some
11869
# systems, -lgcc has to come before -lc. If gcc already passes -lc
11870
# to ld, don't add -lc before -lgcc.
11871
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11872
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11874
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11876
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11877
(eval $ac_compile) 2>&5
11879
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11880
test $ac_status = 0; } 2>conftest.err; then
11883
libobjs=conftest.$ac_objext
11885
wl=$lt_prog_compiler_wl
11886
pic_flag=$lt_prog_compiler_pic
11892
lt_save_allow_undefined_flag=$allow_undefined_flag
11893
allow_undefined_flag=
11894
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11895
(eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11897
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11898
test $ac_status = 0; }
11900
archive_cmds_need_lc=no
11902
archive_cmds_need_lc=yes
11904
allow_undefined_flag=$lt_save_allow_undefined_flag
11906
cat conftest.err 1>&5
11909
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
11910
$as_echo "$archive_cmds_need_lc" >&6; }
12073
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12074
$as_echo_n "checking dynamic linker characteristics... " >&6; }
12076
if test "$GCC" = yes; then
12078
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12079
*) lt_awk_arg="/^libraries:/" ;;
12081
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12082
if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
12083
# if the path contains ";" then we assume it to be the separator
12084
# otherwise default to the standard path separator (i.e. ":") - it is
12085
# assumed that no part of a normal pathname contains ";" but that should
12086
# okay in the real world where ";" in dirpaths is itself problematic.
12087
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
12089
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12091
# Ok, now we have the path, separated by spaces, we can step through it
12092
# and add multilib dir if necessary.
12093
lt_tmp_lt_search_path_spec=
12094
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12095
for lt_sys_path in $lt_search_path_spec; do
12096
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12097
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12099
test -d "$lt_sys_path" && \
12100
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12103
lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
12104
BEGIN {RS=" "; FS="/|\n";} {
12107
for (lt_i = NF; lt_i > 0; lt_i--) {
12108
if ($lt_i != "" && $lt_i != ".") {
12109
if ($lt_i == "..") {
12112
if (lt_count == 0) {
12113
lt_foo="/" $lt_i lt_foo;
12120
if (lt_foo != "") { lt_freq[lt_foo]++; }
12121
if (lt_freq[lt_foo] == 1) { print lt_foo; }
12123
sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
12125
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12127
library_names_spec=
12128
libname_spec='lib$name'
12132
postuninstall_cmds=
12136
shlibpath_overrides_runpath=unknown
12138
dynamic_linker="$host_os ld.so"
12139
sys_lib_dlsearch_path_spec="/lib /usr/lib"
12140
need_lib_prefix=unknown
12141
hardcode_into_libs=no
12143
# when you set need_version to no, make sure it does not cause -set_version
12144
# flags to be left without arguments
12145
need_version=unknown
12150
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12151
shlibpath_var=LIBPATH
12153
# AIX 3 has no versioning support, so we append a major version to the name.
12154
soname_spec='${libname}${release}${shared_ext}$major'
12161
hardcode_into_libs=yes
12162
if test "$host_cpu" = ia64; then
12163
# AIX 5 supports IA64
12164
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12165
shlibpath_var=LD_LIBRARY_PATH
12167
# With GCC up to 2.95.x, collect2 would create an import file
12168
# for dependence libraries. The import file would start with
12169
# the line `#! .'. This would cause the generated library to
12170
# depend on `.', always an invalid library. This was fixed in
12171
# development snapshots of GCC prior to 3.0.
12173
aix4 | aix4.[01] | aix4.[01].*)
12174
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12176
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12179
can_build_shared=no
12183
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12184
# soname into executable. Probably we can add versioning support to
12185
# collect2, so additional links can be useful in future.
12186
if test "$aix_use_runtimelinking" = yes; then
12187
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
12188
# instead of lib<name>.a to let people know that these are not
12189
# typical AIX shared libraries.
12190
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12192
# We preserve .a as extension for shared libraries through AIX4.2
12193
# and later when we are not doing run time linking.
12194
library_names_spec='${libname}${release}.a $libname.a'
12195
soname_spec='${libname}${release}${shared_ext}$major'
12197
shlibpath_var=LIBPATH
12204
# Since July 2007 AmigaOS4 officially supports .so libraries.
12205
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12206
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12209
library_names_spec='$libname.ixlibrary $libname.a'
12210
# Create ${libname}_ixlibrary.a entries in /sys/libs.
12211
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'
12217
library_names_spec='${libname}${shared_ext}'
12218
dynamic_linker="$host_os ld.so"
12219
shlibpath_var=LIBRARY_PATH
12225
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12226
soname_spec='${libname}${release}${shared_ext}$major'
12227
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12228
shlibpath_var=LD_LIBRARY_PATH
12229
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12230
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12231
# the default ld.so.conf also contains /usr/contrib/lib and
12232
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12233
# libtool to hard-code these into programs
12236
cygwin* | mingw* | pw32* | cegcc*)
12237
version_type=windows
12242
case $GCC,$host_os in
12243
yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
12244
library_names_spec='$libname.dll.a'
12245
# DLL is installed to $(libdir)/../bin by postinstall_cmds
12246
postinstall_cmds='base_file=`basename \${file}`~
12247
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12248
dldir=$destdir/`dirname \$dlpath`~
12249
test -d \$dldir || mkdir -p \$dldir~
12250
$install_prog $dir/$dlname \$dldir/$dlname~
12251
chmod a+x \$dldir/$dlname~
12252
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12253
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12255
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12256
dlpath=$dir/\$dldll~
12258
shlibpath_overrides_runpath=yes
12262
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
12263
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12264
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12267
# MinGW DLLs use traditional 'lib' prefix
12268
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12269
sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12270
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12271
# It is most probably a Windows format PATH printed by
12272
# mingw gcc, but we are running on Cygwin. Gcc prints its search
12273
# path with ; separators, and with drive letters. We can handle the
12274
# drive letters (cygwin fileutils understands them), so leave them,
12275
# especially as we might pass files found there to a mingw objdump,
12276
# which wouldn't understand a cygwinified path. Ahh.
12277
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12279
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12283
# pw32 DLLs use 'pw' prefix rather than 'lib'
12284
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12290
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12293
dynamic_linker='Win32 ld.exe'
12294
# FIXME: first we should search . and the directory the executable is in
12298
darwin* | rhapsody*)
12299
dynamic_linker="$host_os dyld"
12300
version_type=darwin
12303
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12304
soname_spec='${libname}${release}${major}$shared_ext'
12305
shlibpath_overrides_runpath=yes
12306
shlibpath_var=DYLD_LIBRARY_PATH
12307
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12309
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12310
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12317
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12318
soname_spec='${libname}${release}${shared_ext}$major'
12319
shlibpath_var=LD_LIBRARY_PATH
12326
freebsd* | dragonfly*)
12327
# DragonFly does not have aout. When/if they implement a new
12328
# versioning mechanism, adjust this.
12329
if test -x /usr/bin/objformat; then
12330
objformat=`/usr/bin/objformat`
12333
freebsd[123]*) objformat=aout ;;
12334
*) objformat=elf ;;
12337
version_type=freebsd-$objformat
12338
case $version_type in
12340
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12345
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12349
shlibpath_var=LD_LIBRARY_PATH
12352
shlibpath_overrides_runpath=yes
12354
freebsd3.[01]* | freebsdelf3.[01]*)
12355
shlibpath_overrides_runpath=yes
12356
hardcode_into_libs=yes
12358
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12359
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12360
shlibpath_overrides_runpath=no
12361
hardcode_into_libs=yes
12363
*) # from 4.6 on, and DragonFly
12364
shlibpath_overrides_runpath=yes
12365
hardcode_into_libs=yes
12374
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12375
soname_spec='${libname}${release}${shared_ext}$major'
12376
shlibpath_var=LD_LIBRARY_PATH
12377
hardcode_into_libs=yes
12380
hpux9* | hpux10* | hpux11*)
12381
# Give a soname corresponding to the major version so that dld.sl refuses to
12382
# link against other versions.
12389
hardcode_into_libs=yes
12390
dynamic_linker="$host_os dld.so"
12391
shlibpath_var=LD_LIBRARY_PATH
12392
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12393
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12394
soname_spec='${libname}${release}${shared_ext}$major'
12395
if test "X$HPUX_IA64_MODE" = X32; then
12396
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12398
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12400
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12404
hardcode_into_libs=yes
12405
dynamic_linker="$host_os dld.sl"
12406
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12407
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12408
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12409
soname_spec='${libname}${release}${shared_ext}$major'
12410
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12411
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12415
dynamic_linker="$host_os dld.sl"
12416
shlibpath_var=SHLIB_PATH
12417
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12418
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12419
soname_spec='${libname}${release}${shared_ext}$major'
12422
# HP-UX runs *really* slowly unless shared libraries are mode 555.
12423
postinstall_cmds='chmod 555 $lib'
12430
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12431
soname_spec='${libname}${release}${shared_ext}$major'
12432
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12433
shlibpath_var=LD_LIBRARY_PATH
12434
shlibpath_overrides_runpath=no
12435
hardcode_into_libs=yes
12438
irix5* | irix6* | nonstopux*)
12440
nonstopux*) version_type=nonstopux ;;
12442
if test "$lt_cv_prog_gnu_ld" = yes; then
12450
soname_spec='${libname}${release}${shared_ext}$major'
12451
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12453
irix5* | nonstopux*)
12454
libsuff= shlibsuff=
12457
case $LD in # libtool.m4 will add one of these switches to LD
12458
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12459
libsuff= shlibsuff= libmagic=32-bit;;
12460
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12461
libsuff=32 shlibsuff=N32 libmagic=N32;;
12462
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12463
libsuff=64 shlibsuff=64 libmagic=64-bit;;
12464
*) libsuff= shlibsuff= libmagic=never-match;;
12468
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12469
shlibpath_overrides_runpath=no
12470
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12471
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12472
hardcode_into_libs=yes
12475
# No shared lib support for Linux oldld, aout, or coff.
12476
linux*oldld* | linux*aout* | linux*coff*)
12480
# This must be Linux ELF.
12481
linux* | k*bsd*-gnu)
12485
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12486
soname_spec='${libname}${release}${shared_ext}$major'
12487
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12488
shlibpath_var=LD_LIBRARY_PATH
12489
shlibpath_overrides_runpath=no
12490
# Some binutils ld are patched to set DT_RUNPATH
12491
save_LDFLAGS=$LDFLAGS
12492
save_libdir=$libdir
12493
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12494
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12495
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12496
/* end confdefs.h. */
12506
if ac_fn_c_try_link "$LINENO"; then :
12507
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12508
shlibpath_overrides_runpath=yes
12511
rm -f core conftest.err conftest.$ac_objext \
12512
conftest$ac_exeext conftest.$ac_ext
12513
LDFLAGS=$save_LDFLAGS
12514
libdir=$save_libdir
12516
# This implies no fast_install, which is unacceptable.
12517
# Some rework will be needed to allow for fast_install
12518
# before this can be enabled.
12519
hardcode_into_libs=yes
12521
# Append ld.so.conf contents to the search path
12522
if test -f /etc/ld.so.conf; then
12523
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12524
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12527
# We used to test for /lib/ld.so.1 and disable shared libraries on
12528
# powerpc, because MkLinux only supported shared libraries with the
12529
# GNU dynamic linker. Since this was broken with cross compilers,
12530
# most powerpc-linux boxes support dynamic linking these days and
12531
# people can always --disable-shared, the test was removed, and we
12532
# assume the GNU/Linux dynamic linker is in use.
12533
dynamic_linker='GNU/Linux ld.so'
12540
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12541
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12542
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12543
dynamic_linker='NetBSD (a.out) ld.so'
12545
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12546
soname_spec='${libname}${release}${shared_ext}$major'
12547
dynamic_linker='NetBSD ld.elf_so'
12549
shlibpath_var=LD_LIBRARY_PATH
12550
shlibpath_overrides_runpath=yes
12551
hardcode_into_libs=yes
12556
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12557
shlibpath_var=LD_LIBRARY_PATH
12558
shlibpath_overrides_runpath=yes
12565
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12566
soname_spec='${libname}${release}${shared_ext}$major'
12567
shlibpath_var=LD_LIBRARY_PATH
12568
shlibpath_overrides_runpath=no
12569
hardcode_into_libs=yes
12570
dynamic_linker='ldqnx.so'
12575
sys_lib_dlsearch_path_spec="/usr/lib"
12577
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12579
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12580
*) need_version=no ;;
12582
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12583
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12584
shlibpath_var=LD_LIBRARY_PATH
12585
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12587
openbsd2.[89] | openbsd2.[89].*)
12588
shlibpath_overrides_runpath=no
12591
shlibpath_overrides_runpath=yes
12595
shlibpath_overrides_runpath=yes
12600
libname_spec='$name'
12603
library_names_spec='$libname${shared_ext} $libname.a'
12604
dynamic_linker='OS/2 ld.exe'
12605
shlibpath_var=LIBPATH
12608
osf3* | osf4* | osf5*)
12612
soname_spec='${libname}${release}${shared_ext}$major'
12613
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12614
shlibpath_var=LD_LIBRARY_PATH
12615
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12616
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12627
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12628
soname_spec='${libname}${release}${shared_ext}$major'
12629
shlibpath_var=LD_LIBRARY_PATH
12630
shlibpath_overrides_runpath=yes
12631
hardcode_into_libs=yes
12632
# ldd complains unless libraries are executable
12633
postinstall_cmds='chmod +x $lib'
12638
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12639
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12640
shlibpath_var=LD_LIBRARY_PATH
12641
shlibpath_overrides_runpath=yes
12642
if test "$with_gnu_ld" = yes; then
12650
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12651
soname_spec='${libname}${release}${shared_ext}$major'
12652
shlibpath_var=LD_LIBRARY_PATH
12653
case $host_vendor in
12655
shlibpath_overrides_runpath=no
12657
runpath_var=LD_RUN_PATH
12665
shlibpath_overrides_runpath=no
12666
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12672
if test -d /usr/nec ;then
12674
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12675
soname_spec='$libname${shared_ext}.$major'
12676
shlibpath_var=LD_LIBRARY_PATH
12680
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12681
version_type=freebsd-elf
12684
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12685
soname_spec='${libname}${release}${shared_ext}$major'
12686
shlibpath_var=LD_LIBRARY_PATH
12687
shlibpath_overrides_runpath=yes
12688
hardcode_into_libs=yes
12689
if test "$with_gnu_ld" = yes; then
12690
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12692
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12695
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12699
sys_lib_dlsearch_path_spec='/usr/lib'
12703
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12707
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12708
shlibpath_var=LD_LIBRARY_PATH
12709
shlibpath_overrides_runpath=no
12710
hardcode_into_libs=yes
12715
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12716
soname_spec='${libname}${release}${shared_ext}$major'
12717
shlibpath_var=LD_LIBRARY_PATH
12724
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12725
$as_echo "$dynamic_linker" >&6; }
12726
test "$dynamic_linker" = no && can_build_shared=no
12728
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12729
if test "$GCC" = yes; then
12730
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12733
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12734
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12736
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12737
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12826
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12827
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12829
if test -n "$hardcode_libdir_flag_spec" ||
12830
test -n "$runpath_var" ||
12831
test "X$hardcode_automatic" = "Xyes" ; then
12833
# We can hardcode non-existent directories.
12834
if test "$hardcode_direct" != no &&
12835
# If the only mechanism to avoid hardcoding is shlibpath_var, we
12836
# have to relink, otherwise we might link with an installed library
12837
# when we should be linking with a yet-to-be-installed one
12838
## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12839
test "$hardcode_minus_L" != no; then
12840
# Linking always hardcodes the temporary library directory.
12841
hardcode_action=relink
12843
# We can link without hardcoding, and we can hardcode nonexisting dirs.
12844
hardcode_action=immediate
12847
# We cannot hardcode anything, or else we can only hardcode existing
12849
hardcode_action=unsupported
12851
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12852
$as_echo "$hardcode_action" >&6; }
12854
if test "$hardcode_action" = relink ||
12855
test "$inherit_rpath" = yes; then
12856
# Fast installation is not supported
12857
enable_fast_install=no
12858
elif test "$shlibpath_overrides_runpath" = yes ||
12859
test "$enable_shared" = no; then
12860
# Fast installation is not necessary
12861
enable_fast_install=needless
12869
if test "x$enable_dlopen" != xyes; then
12870
enable_dlopen=unknown
12871
enable_dlopen_self=unknown
12872
enable_dlopen_self_static=unknown
12879
lt_cv_dlopen="load_add_on"
12881
lt_cv_dlopen_self=yes
12884
mingw* | pw32* | cegcc*)
12885
lt_cv_dlopen="LoadLibrary"
12890
lt_cv_dlopen="dlopen"
12895
# if libdl is installed we need to link against it
12896
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12897
$as_echo_n "checking for dlopen in -ldl... " >&6; }
12898
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12899
$as_echo_n "(cached) " >&6
12901
ac_check_lib_save_LIBS=$LIBS
12903
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12904
/* end confdefs.h. */
12906
/* Override any GCC internal prototype to avoid an error.
12907
Use char because int might match the return type of a GCC
12908
builtin and then its argument prototype would still apply. */
12921
if ac_fn_c_try_link "$LINENO"; then :
12922
ac_cv_lib_dl_dlopen=yes
12924
ac_cv_lib_dl_dlopen=no
12926
rm -f core conftest.err conftest.$ac_objext \
12927
conftest$ac_exeext conftest.$ac_ext
12928
LIBS=$ac_check_lib_save_LIBS
12930
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12931
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12932
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12933
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12936
lt_cv_dlopen="dyld"
12938
lt_cv_dlopen_self=yes
12945
ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12946
if test "x$ac_cv_func_shl_load" = x""yes; then :
12947
lt_cv_dlopen="shl_load"
12949
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12950
$as_echo_n "checking for shl_load in -ldld... " >&6; }
12951
if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12952
$as_echo_n "(cached) " >&6
12954
ac_check_lib_save_LIBS=$LIBS
12956
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12957
/* end confdefs.h. */
12959
/* Override any GCC internal prototype to avoid an error.
12960
Use char because int might match the return type of a GCC
12961
builtin and then its argument prototype would still apply. */
12969
return shl_load ();
12974
if ac_fn_c_try_link "$LINENO"; then :
12975
ac_cv_lib_dld_shl_load=yes
12977
ac_cv_lib_dld_shl_load=no
12979
rm -f core conftest.err conftest.$ac_objext \
12980
conftest$ac_exeext conftest.$ac_ext
12981
LIBS=$ac_check_lib_save_LIBS
12983
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12984
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12985
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
12986
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12988
ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12989
if test "x$ac_cv_func_dlopen" = x""yes; then :
12990
lt_cv_dlopen="dlopen"
12992
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12993
$as_echo_n "checking for dlopen in -ldl... " >&6; }
12994
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12995
$as_echo_n "(cached) " >&6
12997
ac_check_lib_save_LIBS=$LIBS
12999
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13000
/* end confdefs.h. */
13002
/* Override any GCC internal prototype to avoid an error.
13003
Use char because int might match the return type of a GCC
13004
builtin and then its argument prototype would still apply. */
13017
if ac_fn_c_try_link "$LINENO"; then :
13018
ac_cv_lib_dl_dlopen=yes
13020
ac_cv_lib_dl_dlopen=no
13022
rm -f core conftest.err conftest.$ac_objext \
13023
conftest$ac_exeext conftest.$ac_ext
13024
LIBS=$ac_check_lib_save_LIBS
13026
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13027
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13028
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13029
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13031
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13032
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
13033
if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
13034
$as_echo_n "(cached) " >&6
13036
ac_check_lib_save_LIBS=$LIBS
13037
LIBS="-lsvld $LIBS"
13038
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13039
/* end confdefs.h. */
13041
/* Override any GCC internal prototype to avoid an error.
13042
Use char because int might match the return type of a GCC
13043
builtin and then its argument prototype would still apply. */
13056
if ac_fn_c_try_link "$LINENO"; then :
13057
ac_cv_lib_svld_dlopen=yes
13059
ac_cv_lib_svld_dlopen=no
13061
rm -f core conftest.err conftest.$ac_objext \
13062
conftest$ac_exeext conftest.$ac_ext
13063
LIBS=$ac_check_lib_save_LIBS
13065
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13066
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13067
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
13068
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13070
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13071
$as_echo_n "checking for dld_link in -ldld... " >&6; }
13072
if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
13073
$as_echo_n "(cached) " >&6
13075
ac_check_lib_save_LIBS=$LIBS
13077
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13078
/* end confdefs.h. */
13080
/* Override any GCC internal prototype to avoid an error.
13081
Use char because int might match the return type of a GCC
13082
builtin and then its argument prototype would still apply. */
13090
return dld_link ();
13095
if ac_fn_c_try_link "$LINENO"; then :
13096
ac_cv_lib_dld_dld_link=yes
13098
ac_cv_lib_dld_dld_link=no
13100
rm -f core conftest.err conftest.$ac_objext \
13101
conftest$ac_exeext conftest.$ac_ext
13102
LIBS=$ac_check_lib_save_LIBS
13104
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13105
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13106
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
13107
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13128
if test "x$lt_cv_dlopen" != xno; then
13134
case $lt_cv_dlopen in
13136
save_CPPFLAGS="$CPPFLAGS"
13137
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13139
save_LDFLAGS="$LDFLAGS"
13140
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13143
LIBS="$lt_cv_dlopen_libs $LIBS"
13145
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13146
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
13147
if test "${lt_cv_dlopen_self+set}" = set; then :
13148
$as_echo_n "(cached) " >&6
13150
if test "$cross_compiling" = yes; then :
13151
lt_cv_dlopen_self=cross
13153
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13154
lt_status=$lt_dlunknown
13155
cat > conftest.$ac_ext <<_LT_EOF
13156
#line 13156 "configure"
13157
#include "confdefs.h"
13166
# define LT_DLGLOBAL RTLD_GLOBAL
13169
# define LT_DLGLOBAL DL_GLOBAL
13171
# define LT_DLGLOBAL 0
13175
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13176
find out it does not work in some platform. */
13177
#ifndef LT_DLLAZY_OR_NOW
13179
# define LT_DLLAZY_OR_NOW RTLD_LAZY
13182
# define LT_DLLAZY_OR_NOW DL_LAZY
13185
# define LT_DLLAZY_OR_NOW RTLD_NOW
13188
# define LT_DLLAZY_OR_NOW DL_NOW
13190
# define LT_DLLAZY_OR_NOW 0
13197
void fnord() { int i=42;}
13200
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13201
int status = $lt_dlunknown;
13205
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13206
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13207
/* dlclose (self); */
13215
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13216
(eval $ac_link) 2>&5
13218
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13219
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13220
(./conftest; exit; ) >&5 2>/dev/null
13222
case x$lt_status in
13223
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13224
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13225
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13228
# compilation failed
13229
lt_cv_dlopen_self=no
13236
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13237
$as_echo "$lt_cv_dlopen_self" >&6; }
13239
if test "x$lt_cv_dlopen_self" = xyes; then
13240
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13241
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13242
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13243
if test "${lt_cv_dlopen_self_static+set}" = set; then :
13244
$as_echo_n "(cached) " >&6
13246
if test "$cross_compiling" = yes; then :
13247
lt_cv_dlopen_self_static=cross
13249
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13250
lt_status=$lt_dlunknown
13251
cat > conftest.$ac_ext <<_LT_EOF
13252
#line 13252 "configure"
13253
#include "confdefs.h"
13262
# define LT_DLGLOBAL RTLD_GLOBAL
13265
# define LT_DLGLOBAL DL_GLOBAL
13267
# define LT_DLGLOBAL 0
13271
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13272
find out it does not work in some platform. */
13273
#ifndef LT_DLLAZY_OR_NOW
13275
# define LT_DLLAZY_OR_NOW RTLD_LAZY
13278
# define LT_DLLAZY_OR_NOW DL_LAZY
13281
# define LT_DLLAZY_OR_NOW RTLD_NOW
13284
# define LT_DLLAZY_OR_NOW DL_NOW
13286
# define LT_DLLAZY_OR_NOW 0
13293
void fnord() { int i=42;}
13296
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13297
int status = $lt_dlunknown;
13301
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13302
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13303
/* dlclose (self); */
13311
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13312
(eval $ac_link) 2>&5
13314
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13315
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13316
(./conftest; exit; ) >&5 2>/dev/null
13318
case x$lt_status in
13319
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13320
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13321
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13324
# compilation failed
13325
lt_cv_dlopen_self_static=no
13332
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13333
$as_echo "$lt_cv_dlopen_self_static" >&6; }
13336
CPPFLAGS="$save_CPPFLAGS"
13337
LDFLAGS="$save_LDFLAGS"
13342
case $lt_cv_dlopen_self in
13343
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13344
*) enable_dlopen_self=unknown ;;
13347
case $lt_cv_dlopen_self_static in
13348
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13349
*) enable_dlopen_self_static=unknown ;;
13371
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13372
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
13373
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13374
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13375
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13376
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13377
$as_echo "yes" >&6; }
13379
# FIXME - insert some real tests, host_os isn't really good enough
13382
if test -n "$STRIP" ; then
13383
striplib="$STRIP -x"
13384
old_striplib="$STRIP -S"
13385
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13386
$as_echo "yes" >&6; }
13388
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13389
$as_echo "no" >&6; }
13393
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13394
$as_echo "no" >&6; }
13410
# Report which library types will actually be built
13411
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13412
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13413
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13414
$as_echo "$can_build_shared" >&6; }
13416
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13417
$as_echo_n "checking whether to build shared libraries... " >&6; }
13418
test "$can_build_shared" = "no" && enable_shared=no
13420
# On AIX, shared libraries and static libraries use the same namespace, and
13421
# are all built from PIC.
13424
test "$enable_shared" = yes && enable_static=no
13425
if test -n "$RANLIB"; then
13426
archive_cmds="$archive_cmds~\$RANLIB \$lib"
13427
postinstall_cmds='$RANLIB $lib'
13432
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13433
test "$enable_shared" = yes && enable_static=no
13437
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13438
$as_echo "$enable_shared" >&6; }
13440
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13441
$as_echo_n "checking whether to build static libraries... " >&6; }
13442
# Make sure either enable_shared or enable_static is yes.
13443
test "$enable_shared" = yes || enable_static=yes
13444
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13445
$as_echo "$enable_static" >&6; }
13452
ac_cpp='$CPP $CPPFLAGS'
13453
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13454
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13455
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13461
ac_cpp='$CXXCPP $CPPFLAGS'
13462
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13463
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13464
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13466
archive_cmds_need_lc_CXX=no
13467
allow_undefined_flag_CXX=
13468
always_export_symbols_CXX=no
13469
archive_expsym_cmds_CXX=
13470
compiler_needs_object_CXX=no
13471
export_dynamic_flag_spec_CXX=
13472
hardcode_direct_CXX=no
13473
hardcode_direct_absolute_CXX=no
13474
hardcode_libdir_flag_spec_CXX=
13475
hardcode_libdir_flag_spec_ld_CXX=
13476
hardcode_libdir_separator_CXX=
13477
hardcode_minus_L_CXX=no
13478
hardcode_shlibpath_var_CXX=unsupported
13479
hardcode_automatic_CXX=no
13480
inherit_rpath_CXX=no
13482
module_expsym_cmds_CXX=
13483
link_all_deplibs_CXX=unknown
13484
old_archive_cmds_CXX=$old_archive_cmds
13485
no_undefined_flag_CXX=
13486
whole_archive_flag_spec_CXX=
13487
enable_shared_with_static_runtimes_CXX=no
13489
# Source file extension for C++ test sources.
13492
# Object file extension for compiled C++ test sources.
13496
# No sense in running all these tests if we already determined that
13497
# the CXX compiler isn't working. Some variables (like enable_shared)
13498
# are currently assumed to apply to all compilers on this platform,
13499
# and will be corrupted by setting them based on a non-working compiler.
13500
if test "$_lt_caught_CXX_error" != yes; then
13501
# Code to be used in simple compile tests
13502
lt_simple_compile_test_code="int some_variable = 0;"
13504
# Code to be used in simple link tests
13505
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13507
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13514
# If no C compiler was specified, use CC.
13517
# If no C compiler flags were specified, use CFLAGS.
13518
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13520
# Allow CC to be a program name with arguments.
13524
# save warnings/boilerplate of simple test code
13525
ac_outfile=conftest.$ac_objext
13526
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13527
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13528
_lt_compiler_boilerplate=`cat conftest.err`
13531
ac_outfile=conftest.$ac_objext
13532
echo "$lt_simple_link_test_code" >conftest.$ac_ext
13533
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13534
_lt_linker_boilerplate=`cat conftest.err`
13538
# Allow CC to be a program name with arguments.
13543
lt_save_with_gnu_ld=$with_gnu_ld
13544
lt_save_path_LD=$lt_cv_path_LD
13545
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13546
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13548
$as_unset lt_cv_prog_gnu_ld
13550
if test -n "${lt_cv_path_LDCXX+set}"; then
13551
lt_cv_path_LD=$lt_cv_path_LDCXX
13553
$as_unset lt_cv_path_LD
13555
test -z "${LDCXX+set}" || LD=$LDCXX
13559
for cc_temp in $compiler""; do
13561
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13562
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13567
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13570
if test -n "$compiler"; then
13571
# We don't want -fno-exception when compiling C++ code, so set the
13572
# no_builtin_flag separately
13573
if test "$GXX" = yes; then
13574
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13576
lt_prog_compiler_no_builtin_flag_CXX=
13579
if test "$GXX" = yes; then
13580
# Set up default GNU C++ configuration
13584
# Check whether --with-gnu-ld was given.
13585
if test "${with_gnu_ld+set}" = set; then :
13586
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13592
if test "$GCC" = yes; then
13593
# Check if gcc -print-prog-name=ld gives a path.
13594
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13595
$as_echo_n "checking for ld used by $CC... " >&6; }
13598
# gcc leaves a trailing carriage return which upsets mingw
13599
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13601
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13604
# Accept absolute paths.
13606
re_direlt='/[^/][^/]*/\.\./'
13607
# Canonicalize the pathname of ld
13608
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13609
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13610
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13612
test -z "$LD" && LD="$ac_prog"
13615
# If it fails, then pretend we aren't using GCC.
13619
# If it is relative, then search for the first ld in PATH.
13620
with_gnu_ld=unknown
13623
elif test "$with_gnu_ld" = yes; then
13624
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13625
$as_echo_n "checking for GNU ld... " >&6; }
13627
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13628
$as_echo_n "checking for non-GNU ld... " >&6; }
13630
if test "${lt_cv_path_LD+set}" = set; then :
13631
$as_echo_n "(cached) " >&6
13633
if test -z "$LD"; then
13634
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13635
for ac_dir in $PATH; do
13637
test -z "$ac_dir" && ac_dir=.
13638
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13639
lt_cv_path_LD="$ac_dir/$ac_prog"
13640
# Check to see if the program is GNU ld. I'd rather use --version,
13641
# but apparently some variants of GNU ld only accept -v.
13642
# Break only if it was the GNU/non-GNU ld that we prefer.
13643
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13644
*GNU* | *'with BFD'*)
13645
test "$with_gnu_ld" != no && break
13648
test "$with_gnu_ld" != yes && break
13655
lt_cv_path_LD="$LD" # Let the user override the test with a path.
13659
LD="$lt_cv_path_LD"
13660
if test -n "$LD"; then
13661
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13662
$as_echo "$LD" >&6; }
13664
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13665
$as_echo "no" >&6; }
13667
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
13668
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13669
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13670
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
13671
$as_echo_n "(cached) " >&6
13673
# I'd rather use --version here, but apparently some GNU lds only accept -v.
13674
case `$LD -v 2>&1 </dev/null` in
13675
*GNU* | *'with BFD'*)
13676
lt_cv_prog_gnu_ld=yes
13679
lt_cv_prog_gnu_ld=no
13683
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13684
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
13685
with_gnu_ld=$lt_cv_prog_gnu_ld
13693
# Check if GNU C++ uses GNU ld as the underlying linker, since the
13694
# archiving commands below assume that GNU ld is being used.
13695
if test "$with_gnu_ld" = yes; then
13696
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13697
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'
13699
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13700
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13702
# If archive_cmds runs LD, not CC, wlarc should be empty
13703
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13704
# investigate it a little bit more. (MM)
13707
# ancient GNU ld didn't support --whole-archive et. al.
13708
if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13709
$GREP 'no-whole-archive' > /dev/null; then
13710
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13712
whole_archive_flag_spec_CXX=
13718
# A generic and very simple default shared library creation
13719
# command for GNU C++ for the case where it uses the native
13720
# linker, instead of GNU ld. If possible, this setting should
13721
# overridden to take advantage of the native linker features on
13722
# the platform it is being used on.
13723
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13726
# Commands to make compiler produce verbose output that lists
13727
# what "hidden" libraries, object files and flags are used when
13728
# linking a shared library.
13729
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13737
# PORTME: fill in a description of your system's C++ link characteristics
13738
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13739
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13743
# FIXME: insert proper C++ library support
13747
if test "$host_cpu" = ia64; then
13748
# On IA64, the linker does run time linking by default, so we don't
13749
# have to do anything special.
13750
aix_use_runtimelinking=no
13751
exp_sym_flag='-Bexport'
13754
aix_use_runtimelinking=no
13756
# Test if we are trying to use run time linking or normal
13757
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
13758
# need to do runtime linking.
13759
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13760
for ld_flag in $LDFLAGS; do
13763
aix_use_runtimelinking=yes
13771
exp_sym_flag='-bexport'
13772
no_entry_flag='-bnoentry'
13775
# When large executables or shared objects are built, AIX ld can
13776
# have problems creating the table of contents. If linking a library
13777
# or program results in "error TOC overflow" add -mminimal-toc to
13778
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13779
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13781
archive_cmds_CXX=''
13782
hardcode_direct_CXX=yes
13783
hardcode_direct_absolute_CXX=yes
13784
hardcode_libdir_separator_CXX=':'
13785
link_all_deplibs_CXX=yes
13786
file_list_spec_CXX='${wl}-f,'
13788
if test "$GXX" = yes; then
13789
case $host_os in aix4.[012]|aix4.[012].*)
13790
# We only want to do this on AIX 4.2 and lower, the check
13791
# below for broken collect2 doesn't work under 4.3+
13792
collect2name=`${CC} -print-prog-name=collect2`
13793
if test -f "$collect2name" &&
13794
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13796
# We have reworked collect2
13799
# We have old collect2
13800
hardcode_direct_CXX=unsupported
13801
# It fails to find uninstalled libraries when the uninstalled
13802
# path is not listed in the libpath. Setting hardcode_minus_L
13803
# to unsupported forces relinking
13804
hardcode_minus_L_CXX=yes
13805
hardcode_libdir_flag_spec_CXX='-L$libdir'
13806
hardcode_libdir_separator_CXX=
13809
shared_flag='-shared'
13810
if test "$aix_use_runtimelinking" = yes; then
13811
shared_flag="$shared_flag "'${wl}-G'
13815
if test "$host_cpu" = ia64; then
13816
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13817
# chokes on -Wl,-G. The following line is correct:
13820
if test "$aix_use_runtimelinking" = yes; then
13821
shared_flag='${wl}-G'
13823
shared_flag='${wl}-bM:SRE'
13828
export_dynamic_flag_spec_CXX='${wl}-bexpall'
13829
# It seems that -bexpall does not export symbols beginning with
13830
# underscore (_), so it is better to generate a list of symbols to
13832
always_export_symbols_CXX=yes
13833
if test "$aix_use_runtimelinking" = yes; then
13834
# Warning - without using the other runtime loading flags (-brtl),
13835
# -berok will link without error, but may produce a broken library.
13836
allow_undefined_flag_CXX='-berok'
13837
# Determine the default libpath from the value encoded in an empty
13839
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13840
/* end confdefs.h. */
13850
if ac_fn_cxx_try_link "$LINENO"; then :
13852
lt_aix_libpath_sed='
13853
/Import File Strings/,/^$/ {
13859
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13860
# Check for a 64-bit object if we didn't find anything.
13861
if test -z "$aix_libpath"; then
13862
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13865
rm -f core conftest.err conftest.$ac_objext \
13866
conftest$ac_exeext conftest.$ac_ext
13867
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13869
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13871
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"
13873
if test "$host_cpu" = ia64; then
13874
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13875
allow_undefined_flag_CXX="-z nodefs"
13876
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"
13878
# Determine the default libpath from the value encoded in an
13879
# empty executable.
13880
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13881
/* end confdefs.h. */
13891
if ac_fn_cxx_try_link "$LINENO"; then :
13893
lt_aix_libpath_sed='
13894
/Import File Strings/,/^$/ {
13900
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13901
# Check for a 64-bit object if we didn't find anything.
13902
if test -z "$aix_libpath"; then
13903
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13906
rm -f core conftest.err conftest.$ac_objext \
13907
conftest$ac_exeext conftest.$ac_ext
13908
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13910
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13911
# Warning - without using the other run time loading flags,
13912
# -berok will link without error, but may produce a broken library.
13913
no_undefined_flag_CXX=' ${wl}-bernotok'
13914
allow_undefined_flag_CXX=' ${wl}-berok'
13915
# Exported symbols can be pulled into shared objects from archives
13916
whole_archive_flag_spec_CXX='$convenience'
13917
archive_cmds_need_lc_CXX=yes
13918
# This is similar to how AIX traditionally builds its shared
13920
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'
13926
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13927
allow_undefined_flag_CXX=unsupported
13928
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13929
# support --undefined. This deserves some investigation. FIXME
13930
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13937
case $cc_basename in
13939
# FIXME: insert proper C++ library support
13945
cygwin* | mingw* | pw32* | cegcc*)
13946
# _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13947
# as there is no search path for DLLs.
13948
hardcode_libdir_flag_spec_CXX='-L$libdir'
13949
allow_undefined_flag_CXX=unsupported
13950
always_export_symbols_CXX=no
13951
enable_shared_with_static_runtimes_CXX=yes
13953
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13954
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'
13955
# If the export-symbols file already is a .def file (1st line
13956
# is EXPORTS), use it as is; otherwise, prepend...
13957
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13958
cp $export_symbols $output_objdir/$soname.def;
13960
echo EXPORTS > $output_objdir/$soname.def;
13961
cat $export_symbols >> $output_objdir/$soname.def;
13963
$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'
13968
darwin* | rhapsody*)
13971
archive_cmds_need_lc_CXX=no
13972
hardcode_direct_CXX=no
13973
hardcode_automatic_CXX=yes
13974
hardcode_shlibpath_var_CXX=unsupported
13975
whole_archive_flag_spec_CXX=''
13976
link_all_deplibs_CXX=yes
13977
allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13978
case $cc_basename in
13979
ifort*) _lt_dar_can_shared=yes ;;
13980
*) _lt_dar_can_shared=$GCC ;;
13982
if test "$_lt_dar_can_shared" = "yes"; then
13983
output_verbose_link_cmd=echo
13984
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}"
13985
module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13986
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}"
13987
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}"
13988
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13989
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}"
13990
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}"
14000
case $cc_basename in
14002
# FIXME: insert proper C++ library support
14006
# Green Hills C++ Compiler
14007
# FIXME: insert proper C++ library support
14011
# FIXME: insert proper C++ library support
14018
# C++ shared libraries reported to be fairly broken before
14024
archive_cmds_need_lc_CXX=no
14027
freebsd* | dragonfly*)
14028
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14037
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14038
hardcode_libdir_separator_CXX=:
14039
export_dynamic_flag_spec_CXX='${wl}-E'
14040
hardcode_direct_CXX=yes
14041
hardcode_minus_L_CXX=yes # Not in the search PATH,
14042
# but as the default
14043
# location of the library.
14045
case $cc_basename in
14047
# FIXME: insert proper C++ library support
14051
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'
14052
# Commands to make compiler produce verbose output that lists
14053
# what "hidden" libraries, object files and flags are used when
14054
# linking a shared library.
14056
# There doesn't appear to be a way to prevent this compiler from
14057
# explicitly linking system object files so we need to strip them
14058
# from the output so that they don't get included in the library
14060
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'
14063
if test "$GXX" = yes; then
14064
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'
14066
# FIXME: insert proper C++ library support
14074
if test $with_gnu_ld = no; then
14075
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14076
hardcode_libdir_separator_CXX=:
14082
export_dynamic_flag_spec_CXX='${wl}-E'
14088
hardcode_direct_CXX=no
14089
hardcode_shlibpath_var_CXX=no
14092
hardcode_direct_CXX=yes
14093
hardcode_direct_absolute_CXX=yes
14094
hardcode_minus_L_CXX=yes # Not in the search PATH,
14095
# but as the default
14096
# location of the library.
14100
case $cc_basename in
14102
# FIXME: insert proper C++ library support
14108
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14111
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14114
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14117
# Commands to make compiler produce verbose output that lists
14118
# what "hidden" libraries, object files and flags are used when
14119
# linking a shared library.
14121
# There doesn't appear to be a way to prevent this compiler from
14122
# explicitly linking system object files so we need to strip them
14123
# from the output so that they don't get included in the library
14125
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'
14128
if test "$GXX" = yes; then
14129
if test $with_gnu_ld = no; then
14132
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14135
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14138
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'
14143
# FIXME: insert proper C++ library support
14151
hardcode_direct_CXX=no
14152
hardcode_shlibpath_var_CXX=no
14153
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14154
export_dynamic_flag_spec_CXX='${wl}-E'
14155
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14156
# Instead, shared libraries are loaded at an image base (0x10000000 by
14157
# default) and relocated if they conflict, which is a slow very memory
14158
# consuming and fragmenting process. To avoid this, we pick a random,
14159
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14160
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
14161
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'
14162
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'
14165
case $cc_basename in
14168
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'
14170
# Archives containing C++ object files must be created using
14171
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
14172
# necessary to make sure instantiated templates are included
14174
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14177
if test "$GXX" = yes; then
14178
if test "$with_gnu_ld" = no; then
14179
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'
14181
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'
14184
link_all_deplibs_CXX=yes
14187
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14188
hardcode_libdir_separator_CXX=:
14189
inherit_rpath_CXX=yes
14192
linux* | k*bsd*-gnu)
14193
case $cc_basename in
14195
# Kuck and Associates, Inc. (KAI) C++ Compiler
14197
# KCC will only create a shared library if the output file
14198
# ends with ".so" (or ".sl" for HP-UX), so rename the library
14199
# to its proper name (with version) after linking.
14200
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'
14201
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'
14202
# Commands to make compiler produce verbose output that lists
14203
# what "hidden" libraries, object files and flags are used when
14204
# linking a shared library.
14206
# There doesn't appear to be a way to prevent this compiler from
14207
# explicitly linking system object files so we need to strip them
14208
# from the output so that they don't get included in the library
14210
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'
14212
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14213
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14215
# Archives containing C++ object files must be created using
14216
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
14217
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14222
# version 8.0 and above of icpc choke on multiply defined symbols
14223
# if we add $predep_objects and $postdep_objects, however 7.1 and
14224
# earlier do not add the objects themselves.
14225
case `$CC -V 2>&1` in
14227
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14228
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'
14230
*) # Version 8.0 or newer
14233
ia64*) tmp_idyn=' -i_dynamic';;
14235
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14236
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'
14239
archive_cmds_need_lc_CXX=no
14240
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14241
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14242
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14245
# Portland Group C++ compiler
14247
*pgCC\ [1-5]* | *pgcpp\ [1-5]*)
14248
prelink_cmds_CXX='tpldir=Template.dir~
14250
$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14251
compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
14252
old_archive_cmds_CXX='tpldir=Template.dir~
14254
$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14255
$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
14257
archive_cmds_CXX='tpldir=Template.dir~
14259
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14260
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14261
archive_expsym_cmds_CXX='tpldir=Template.dir~
14263
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14264
$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'
14266
*) # Version 6 will use weak symbols
14267
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14268
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'
14272
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14273
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14274
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'
14278
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14279
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'
14281
runpath_var=LD_RUN_PATH
14282
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14283
hardcode_libdir_separator_CXX=:
14285
# Commands to make compiler produce verbose output that lists
14286
# what "hidden" libraries, object files and flags are used when
14287
# linking a shared library.
14289
# There doesn't appear to be a way to prevent this compiler from
14290
# explicitly linking system object files so we need to strip them
14291
# from the output so that they don't get included in the library
14293
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'
14296
# IBM XL 8.0 on PPC, with GNU ld
14297
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14298
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14299
archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14300
if test "x$supports_anon_versioning" = xyes; then
14301
archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14302
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14303
echo "local: *; };" >> $output_objdir/$libname.ver~
14304
$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14308
case `$CC -V 2>&1 | sed 5q` in
14311
no_undefined_flag_CXX=' -zdefs'
14312
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14313
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'
14314
hardcode_libdir_flag_spec_CXX='-R$libdir'
14315
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'
14316
compiler_needs_object_CXX=yes
14318
# Not sure whether something based on
14319
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14321
output_verbose_link_cmd='echo'
14323
# Archives containing C++ object files must be created using
14324
# "CC -xar", where "CC" is the Sun C++ compiler. This is
14325
# necessary to make sure instantiated templates are included
14327
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14335
# FIXME: insert proper C++ library support
14340
# FIXME: insert proper C++ library support
14345
case $cc_basename in
14347
# FIXME: insert proper C++ library support
14351
# FIXME: insert proper C++ library support
14358
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14359
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14361
hardcode_libdir_flag_spec_CXX='-R$libdir'
14362
hardcode_direct_CXX=yes
14363
hardcode_shlibpath_var_CXX=no
14365
# Workaround some broken pre-1.5 toolchains
14366
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14374
# C++ shared libraries are fairly broken
14379
if test -f /usr/libexec/ld.so; then
14380
hardcode_direct_CXX=yes
14381
hardcode_shlibpath_var_CXX=no
14382
hardcode_direct_absolute_CXX=yes
14383
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14384
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14385
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14386
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14387
export_dynamic_flag_spec_CXX='${wl}-E'
14388
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14390
output_verbose_link_cmd=echo
14396
osf3* | osf4* | osf5*)
14397
case $cc_basename in
14399
# Kuck and Associates, Inc. (KAI) C++ Compiler
14401
# KCC will only create a shared library if the output file
14402
# ends with ".so" (or ".sl" for HP-UX), so rename the library
14403
# to its proper name (with version) after linking.
14404
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'
14406
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14407
hardcode_libdir_separator_CXX=:
14409
# Archives containing C++ object files must be created using
14410
# the KAI C++ compiler.
14412
osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14413
*) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14417
# Rational C++ 2.4.1
14418
# FIXME: insert proper C++ library support
14424
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14425
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'
14426
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14429
allow_undefined_flag_CXX=' -expect_unresolved \*'
14430
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'
14431
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14432
echo "-hidden">> $lib.exp~
14433
$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~
14435
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14439
hardcode_libdir_separator_CXX=:
14441
# Commands to make compiler produce verbose output that lists
14442
# what "hidden" libraries, object files and flags are used when
14443
# linking a shared library.
14445
# There doesn't appear to be a way to prevent this compiler from
14446
# explicitly linking system object files so we need to strip them
14447
# from the output so that they don't get included in the library
14449
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'
14452
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14453
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14456
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'
14459
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'
14463
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14464
hardcode_libdir_separator_CXX=:
14466
# Commands to make compiler produce verbose output that lists
14467
# what "hidden" libraries, object files and flags are used when
14468
# linking a shared library.
14469
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14472
# FIXME: insert proper C++ library support
14480
# FIXME: insert proper C++ library support
14485
case $cc_basename in
14488
# FIXME: insert proper C++ library support
14493
# FIXME: insert proper C++ library support
14497
# FIXME: insert proper C++ library support
14504
case $cc_basename in
14506
# Sun C++ 4.2, 5.x and Centerline C++
14507
archive_cmds_need_lc_CXX=yes
14508
no_undefined_flag_CXX=' -zdefs'
14509
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14510
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14511
$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'
14513
hardcode_libdir_flag_spec_CXX='-R$libdir'
14514
hardcode_shlibpath_var_CXX=no
14516
solaris2.[0-5] | solaris2.[0-5].*) ;;
14518
# The compiler driver will combine and reorder linker options,
14519
# but understands `-z linker_flag'.
14520
# Supported since Solaris 2.6 (maybe 2.5.1?)
14521
whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14524
link_all_deplibs_CXX=yes
14526
output_verbose_link_cmd='echo'
14528
# Archives containing C++ object files must be created using
14529
# "CC -xar", where "CC" is the Sun C++ compiler. This is
14530
# necessary to make sure instantiated templates are included
14532
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14535
# Green Hills C++ Compiler
14536
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14538
# The C++ compiler must be used to create the archive.
14539
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14542
# GNU C++ compiler with Solaris linker
14543
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14544
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14545
if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14546
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14547
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14548
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14550
# Commands to make compiler produce verbose output that lists
14551
# what "hidden" libraries, object files and flags are used when
14552
# linking a shared library.
14553
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14555
# g++ 2.7 appears to require `-G' NOT `-shared' on this
14557
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14558
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14559
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14561
# Commands to make compiler produce verbose output that lists
14562
# what "hidden" libraries, object files and flags are used when
14563
# linking a shared library.
14564
output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14567
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14569
solaris2.[0-5] | solaris2.[0-5].*) ;;
14571
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14579
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14580
no_undefined_flag_CXX='${wl}-z,text'
14581
archive_cmds_need_lc_CXX=no
14582
hardcode_shlibpath_var_CXX=no
14583
runpath_var='LD_RUN_PATH'
14585
case $cc_basename in
14587
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14588
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14591
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14592
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14597
sysv5* | sco3.2v5* | sco5v6*)
14598
# Note: We can NOT use -z defs as we might desire, because we do not
14599
# link with -lc, and that would cause any symbols used from libc to
14600
# always be unresolved, which means just about no library would
14601
# ever link correctly. If we're not using GNU ld we use -z text
14602
# though, which does catch some bad symbols but isn't as heavy-handed
14604
no_undefined_flag_CXX='${wl}-z,text'
14605
allow_undefined_flag_CXX='${wl}-z,nodefs'
14606
archive_cmds_need_lc_CXX=no
14607
hardcode_shlibpath_var_CXX=no
14608
hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14609
hardcode_libdir_separator_CXX=':'
14610
link_all_deplibs_CXX=yes
14611
export_dynamic_flag_spec_CXX='${wl}-Bexport'
14612
runpath_var='LD_RUN_PATH'
14614
case $cc_basename in
14616
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14617
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14620
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14621
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14627
case $cc_basename in
14629
# NonStop-UX NCC 3.20
14630
# FIXME: insert proper C++ library support
14634
# FIXME: insert proper C++ library support
14641
# FIXME: insert proper C++ library support
14646
# FIXME: insert proper C++ library support
14651
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14652
$as_echo "$ld_shlibs_CXX" >&6; }
14653
test "$ld_shlibs_CXX" = no && can_build_shared=no
14659
## There is no encapsulation within the following macros, do not change
14660
## the running order or otherwise move them around unless you know exactly
14661
## what you are doing...
14662
# Dependencies to place before and after the object being linked:
14663
predep_objects_CXX=
14664
postdep_objects_CXX=
14667
compiler_lib_search_path_CXX=
14669
cat > conftest.$ac_ext <<_LT_EOF
14673
Foo (void) { a = 0; }
14679
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14680
(eval $ac_compile) 2>&5
14682
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14683
test $ac_status = 0; }; then
14684
# Parse the compiler output and extract the necessary
14685
# objects, libraries and library flags.
14687
# Sentinel used to keep track of whether or not we are before
14688
# the conftest object file.
14689
pre_test_object_deps_done=no
14691
for p in `eval "$output_verbose_link_cmd"`; do
14695
# Some compilers place space between "-{L,R}" and the path.
14696
# Remove the space.
14697
if test $p = "-L" ||
14698
test $p = "-R"; then
14705
if test "$pre_test_object_deps_done" = no; then
14708
# Internal compiler library paths should come after those
14709
# provided the user. The postdeps already come after the
14710
# user supplied libs so there is no need to process them.
14711
if test -z "$compiler_lib_search_path_CXX"; then
14712
compiler_lib_search_path_CXX="${prev}${p}"
14714
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14717
# The "-l" case would never come before the object being
14718
# linked, so don't bother handling this case.
14721
if test -z "$postdeps_CXX"; then
14722
postdeps_CXX="${prev}${p}"
14724
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14730
# This assumes that the test object file only shows up
14731
# once in the compiler output.
14732
if test "$p" = "conftest.$objext"; then
14733
pre_test_object_deps_done=yes
14737
if test "$pre_test_object_deps_done" = no; then
14738
if test -z "$predep_objects_CXX"; then
14739
predep_objects_CXX="$p"
14741
predep_objects_CXX="$predep_objects_CXX $p"
14744
if test -z "$postdep_objects_CXX"; then
14745
postdep_objects_CXX="$p"
14747
postdep_objects_CXX="$postdep_objects_CXX $p"
14752
*) ;; # Ignore the rest.
14760
echo "libtool.m4: error: problem compiling CXX test program"
14763
$RM -f confest.$objext
14765
# PORTME: override above test on systems where it is broken
14768
# Interix 3.5 installs completely hosed .la files for C++, so rather than
14769
# hack all around it, let's just trust "g++" to DTRT.
14770
predep_objects_CXX=
14771
postdep_objects_CXX=
14776
case `$CC -V 2>&1 | sed 5q` in
14780
# The more standards-conforming stlport4 library is
14781
# incompatible with the Cstd library. Avoid specifying
14782
# it if it's in CXXFLAGS. Ignore libCrun as
14783
# -library=stlport4 depends on it.
14784
case " $CXX $CXXFLAGS " in
14785
*" -library=stlport4 "*)
14786
solaris_use_stlport4=yes
14790
if test "$solaris_use_stlport4" != yes; then
14791
postdeps_CXX='-library=Cstd -library=Crun'
14798
case $cc_basename in
14800
# The more standards-conforming stlport4 library is
14801
# incompatible with the Cstd library. Avoid specifying
14802
# it if it's in CXXFLAGS. Ignore libCrun as
14803
# -library=stlport4 depends on it.
14804
case " $CXX $CXXFLAGS " in
14805
*" -library=stlport4 "*)
14806
solaris_use_stlport4=yes
14810
# Adding this requires a known-good setup of shared libraries for
14811
# Sun compiler versions before 5.6, else PIC objects from an old
14812
# archive will be linked into the output, leading to subtle bugs.
14813
if test "$solaris_use_stlport4" != yes; then
14814
postdeps_CXX='-library=Cstd -library=Crun'
14822
case " $postdeps_CXX " in
14823
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14825
compiler_lib_search_dirs_CXX=
14826
if test -n "${compiler_lib_search_path_CXX}"; then
14827
compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14860
lt_prog_compiler_wl_CXX=
14861
lt_prog_compiler_pic_CXX=
14862
lt_prog_compiler_static_CXX=
14864
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14865
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14867
# C++ specific cases for pic, static, wl, etc.
14868
if test "$GXX" = yes; then
14869
lt_prog_compiler_wl_CXX='-Wl,'
14870
lt_prog_compiler_static_CXX='-static'
14874
# All AIX code is PIC.
14875
if test "$host_cpu" = ia64; then
14876
# AIX 5 now supports IA64 processor
14877
lt_prog_compiler_static_CXX='-Bstatic'
14884
# see comment about AmigaOS4 .so support
14885
lt_prog_compiler_pic_CXX='-fPIC'
14888
# FIXME: we need at least 68020 code to build shared libraries, but
14889
# adding the `-m68020' flag to GCC prevents building anything better,
14891
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14896
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14897
# PIC is the default for these OSes.
14899
mingw* | cygwin* | os2* | pw32* | cegcc*)
14900
# This hack is so that the source file can tell whether it is being
14901
# built for inclusion in a dll (and should export symbols for example).
14902
# Although the cygwin gcc ignores -fPIC, still need this for old-style
14903
# (--disable-auto-import) libraries
14904
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14906
darwin* | rhapsody*)
14907
# PIC is the default on this platform
14908
# Common symbols not allowed in MH_DYLIB files
14909
lt_prog_compiler_pic_CXX='-fno-common'
14912
# DJGPP does not support shared libraries at all
14913
lt_prog_compiler_pic_CXX=
14916
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
14917
# Instead, we relocate shared libraries at runtime.
14920
if test -d /usr/nec; then
14921
lt_prog_compiler_pic_CXX=-Kconform_pic
14925
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14926
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14927
# sets the default TLS model and affects inlining.
14932
lt_prog_compiler_pic_CXX='-fPIC'
14937
# QNX uses GNU C++, but need to define -shared option too, otherwise
14938
# it will coredump.
14939
lt_prog_compiler_pic_CXX='-fPIC -shared'
14942
lt_prog_compiler_pic_CXX='-fPIC'
14948
# All AIX code is PIC.
14949
if test "$host_cpu" = ia64; then
14950
# AIX 5 now supports IA64 processor
14951
lt_prog_compiler_static_CXX='-Bstatic'
14953
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14957
case $cc_basename in
14959
# Green Hills C++ Compiler
14960
# _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14965
case $cc_basename in
14967
lt_prog_compiler_pic_CXX='-KPIC'
14970
# Green Hills C++ Compiler
14971
lt_prog_compiler_pic_CXX='-pic'
14977
freebsd* | dragonfly*)
14978
# FreeBSD uses GNU C++
14980
hpux9* | hpux10* | hpux11*)
14981
case $cc_basename in
14983
lt_prog_compiler_wl_CXX='-Wl,'
14984
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14985
if test "$host_cpu" != ia64; then
14986
lt_prog_compiler_pic_CXX='+Z'
14990
lt_prog_compiler_wl_CXX='-Wl,'
14991
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14997
lt_prog_compiler_pic_CXX='+Z'
15006
# This is c89, which is MS Visual C++ (no shared libs)
15007
# Anyone wants to do a port?
15009
irix5* | irix6* | nonstopux*)
15010
case $cc_basename in
15012
lt_prog_compiler_wl_CXX='-Wl,'
15013
lt_prog_compiler_static_CXX='-non_shared'
15014
# CC pic flag -KPIC is the default.
15020
linux* | k*bsd*-gnu)
15021
case $cc_basename in
15024
lt_prog_compiler_wl_CXX='--backend -Wl,'
15025
lt_prog_compiler_pic_CXX='-fPIC'
15028
# old Intel C++ for x86_64 which still supported -KPIC.
15029
lt_prog_compiler_wl_CXX='-Wl,'
15030
lt_prog_compiler_pic_CXX='-KPIC'
15031
lt_prog_compiler_static_CXX='-static'
15034
# Intel C++, used to be incompatible with GCC.
15035
# ICC 10 doesn't accept -KPIC any more.
15036
lt_prog_compiler_wl_CXX='-Wl,'
15037
lt_prog_compiler_pic_CXX='-fPIC'
15038
lt_prog_compiler_static_CXX='-static'
15041
# Portland Group C++ compiler
15042
lt_prog_compiler_wl_CXX='-Wl,'
15043
lt_prog_compiler_pic_CXX='-fpic'
15044
lt_prog_compiler_static_CXX='-Bstatic'
15048
# Make sure the PIC flag is empty. It appears that all Alpha
15049
# Linux and Compaq Tru64 Unix objects are PIC.
15050
lt_prog_compiler_pic_CXX=
15051
lt_prog_compiler_static_CXX='-non_shared'
15054
# IBM XL 8.0 on PPC
15055
lt_prog_compiler_wl_CXX='-Wl,'
15056
lt_prog_compiler_pic_CXX='-qpic'
15057
lt_prog_compiler_static_CXX='-qstaticlink'
15060
case `$CC -V 2>&1 | sed 5q` in
15063
lt_prog_compiler_pic_CXX='-KPIC'
15064
lt_prog_compiler_static_CXX='-Bstatic'
15065
lt_prog_compiler_wl_CXX='-Qoption ld '
15076
case $cc_basename in
15078
lt_prog_compiler_pic_CXX='-W c,exportall'
15087
# QNX uses GNU C++, but need to define -shared option too, otherwise
15088
# it will coredump.
15089
lt_prog_compiler_pic_CXX='-fPIC -shared'
15091
osf3* | osf4* | osf5*)
15092
case $cc_basename in
15094
lt_prog_compiler_wl_CXX='--backend -Wl,'
15097
# Rational C++ 2.4.1
15098
lt_prog_compiler_pic_CXX='-pic'
15101
# Digital/Compaq C++
15102
lt_prog_compiler_wl_CXX='-Wl,'
15103
# Make sure the PIC flag is empty. It appears that all Alpha
15104
# Linux and Compaq Tru64 Unix objects are PIC.
15105
lt_prog_compiler_pic_CXX=
15106
lt_prog_compiler_static_CXX='-non_shared'
15115
case $cc_basename in
15117
# Sun C++ 4.2, 5.x and Centerline C++
15118
lt_prog_compiler_pic_CXX='-KPIC'
15119
lt_prog_compiler_static_CXX='-Bstatic'
15120
lt_prog_compiler_wl_CXX='-Qoption ld '
15123
# Green Hills C++ Compiler
15124
lt_prog_compiler_pic_CXX='-PIC'
15131
case $cc_basename in
15134
lt_prog_compiler_pic_CXX='-pic'
15135
lt_prog_compiler_static_CXX='-Bstatic'
15139
lt_prog_compiler_pic_CXX='-pic'
15145
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15146
case $cc_basename in
15148
lt_prog_compiler_wl_CXX='-Wl,'
15149
lt_prog_compiler_pic_CXX='-KPIC'
15150
lt_prog_compiler_static_CXX='-Bstatic'
15155
case $cc_basename in
15157
# NonStop-UX NCC 3.20
15158
lt_prog_compiler_pic_CXX='-KPIC'
15167
lt_prog_compiler_can_build_shared_CXX=no
15173
# For platforms which do not support PIC, -DPIC is meaningless:
15175
lt_prog_compiler_pic_CXX=
15178
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15181
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
15182
$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
15187
# Check to make sure the PIC flag actually works.
15189
if test -n "$lt_prog_compiler_pic_CXX"; then
15190
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15191
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15192
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
15193
$as_echo_n "(cached) " >&6
15195
lt_cv_prog_compiler_pic_works_CXX=no
15196
ac_outfile=conftest.$ac_objext
15197
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15198
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15199
# Insert the option either (1) after the last *FLAGS variable, or
15200
# (2) before a word containing "conftest.", or (3) at the end.
15201
# Note that $ac_compile itself does not contain backslashes and begins
15202
# with a dollar sign (not a hyphen), so the echo should work correctly.
15203
# The option is referenced via a variable to avoid confusing sed.
15204
lt_compile=`echo "$ac_compile" | $SED \
15205
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15206
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15207
-e 's:$: $lt_compiler_flag:'`
15208
(eval echo "\"\$as_me:15208: $lt_compile\"" >&5)
15209
(eval "$lt_compile" 2>conftest.err)
15211
cat conftest.err >&5
15212
echo "$as_me:15212: \$? = $ac_status" >&5
15213
if (exit $ac_status) && test -s "$ac_outfile"; then
15214
# The compiler can only warn and ignore the option if not recognized
15215
# So say no if there are warnings other than the usual output.
15216
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15217
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15218
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15219
lt_cv_prog_compiler_pic_works_CXX=yes
15225
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15226
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15228
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15229
case $lt_prog_compiler_pic_CXX in
15231
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15234
lt_prog_compiler_pic_CXX=
15235
lt_prog_compiler_can_build_shared_CXX=no
15243
# Check to make sure the static flag actually works.
15245
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15246
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15247
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15248
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
15249
$as_echo_n "(cached) " >&6
15251
lt_cv_prog_compiler_static_works_CXX=no
15252
save_LDFLAGS="$LDFLAGS"
15253
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15254
echo "$lt_simple_link_test_code" > conftest.$ac_ext
15255
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15256
# The linker can only warn and ignore the option if not recognized
15257
# So say no if there are warnings
15258
if test -s conftest.err; then
15259
# Append any errors to the config.log.
15260
cat conftest.err 1>&5
15261
$ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15262
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15263
if diff conftest.exp conftest.er2 >/dev/null; then
15264
lt_cv_prog_compiler_static_works_CXX=yes
15267
lt_cv_prog_compiler_static_works_CXX=yes
15271
LDFLAGS="$save_LDFLAGS"
15274
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15275
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15277
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15280
lt_prog_compiler_static_CXX=
15286
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15287
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15288
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15289
$as_echo_n "(cached) " >&6
15291
lt_cv_prog_compiler_c_o_CXX=no
15292
$RM -r conftest 2>/dev/null
15296
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15298
lt_compiler_flag="-o out/conftest2.$ac_objext"
15299
# Insert the option either (1) after the last *FLAGS variable, or
15300
# (2) before a word containing "conftest.", or (3) at the end.
15301
# Note that $ac_compile itself does not contain backslashes and begins
15302
# with a dollar sign (not a hyphen), so the echo should work correctly.
15303
lt_compile=`echo "$ac_compile" | $SED \
15304
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15305
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15306
-e 's:$: $lt_compiler_flag:'`
15307
(eval echo "\"\$as_me:15307: $lt_compile\"" >&5)
15308
(eval "$lt_compile" 2>out/conftest.err)
15310
cat out/conftest.err >&5
15311
echo "$as_me:15311: \$? = $ac_status" >&5
15312
if (exit $ac_status) && test -s out/conftest2.$ac_objext
15314
# The compiler can only warn and ignore the option if not recognized
15315
# So say no if there are warnings
15316
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15317
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15318
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15319
lt_cv_prog_compiler_c_o_CXX=yes
15324
# SGI C++ compiler will create directory out/ii_files/ for
15325
# template instantiation
15326
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15327
$RM out/* && rmdir out
15333
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15334
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15338
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15339
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15340
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15341
$as_echo_n "(cached) " >&6
15343
lt_cv_prog_compiler_c_o_CXX=no
15344
$RM -r conftest 2>/dev/null
15348
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15350
lt_compiler_flag="-o out/conftest2.$ac_objext"
15351
# Insert the option either (1) after the last *FLAGS variable, or
15352
# (2) before a word containing "conftest.", or (3) at the end.
15353
# Note that $ac_compile itself does not contain backslashes and begins
15354
# with a dollar sign (not a hyphen), so the echo should work correctly.
15355
lt_compile=`echo "$ac_compile" | $SED \
15356
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15357
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15358
-e 's:$: $lt_compiler_flag:'`
15359
(eval echo "\"\$as_me:15359: $lt_compile\"" >&5)
15360
(eval "$lt_compile" 2>out/conftest.err)
15362
cat out/conftest.err >&5
15363
echo "$as_me:15363: \$? = $ac_status" >&5
15364
if (exit $ac_status) && test -s out/conftest2.$ac_objext
15366
# The compiler can only warn and ignore the option if not recognized
15367
# So say no if there are warnings
15368
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15369
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15370
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15371
lt_cv_prog_compiler_c_o_CXX=yes
15376
# SGI C++ compiler will create directory out/ii_files/ for
15377
# template instantiation
15378
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15379
$RM out/* && rmdir out
15385
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15386
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15391
hard_links="nottested"
15392
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15393
# do not overwrite the value of need_locks provided by the user
15394
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15395
$as_echo_n "checking if we can lock with hard links... " >&6; }
15398
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15400
ln conftest.a conftest.b 2>&5 || hard_links=no
15401
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15402
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15403
$as_echo "$hard_links" >&6; }
15404
if test "$hard_links" = no; then
15405
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15406
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15415
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15416
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15418
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15421
# If we're using GNU nm, then we don't want the "-C" option.
15422
# -C means demangle to AIX nm, but means don't demangle with GNU nm
15423
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15424
export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15426
export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15430
export_symbols_cmds_CXX="$ltdll_cmds"
15432
cygwin* | mingw* | cegcc*)
15433
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15436
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15439
exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15441
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15442
$as_echo "$ld_shlibs_CXX" >&6; }
15443
test "$ld_shlibs_CXX" = no && can_build_shared=no
15445
with_gnu_ld_CXX=$with_gnu_ld
15453
# Do we need to explicitly link libc?
15455
case "x$archive_cmds_need_lc_CXX" in
15457
# Assume -lc should be added
15458
archive_cmds_need_lc_CXX=yes
15460
if test "$enable_shared" = yes && test "$GCC" = yes; then
15461
case $archive_cmds_CXX in
15463
# FIXME: we may have to deal with multi-command sequences.
15466
# Test whether the compiler implicitly links with -lc since on some
15467
# systems, -lgcc has to come before -lc. If gcc already passes -lc
15468
# to ld, don't add -lc before -lgcc.
15469
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15470
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15472
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15474
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15475
(eval $ac_compile) 2>&5
15477
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15478
test $ac_status = 0; } 2>conftest.err; then
15481
libobjs=conftest.$ac_objext
15483
wl=$lt_prog_compiler_wl_CXX
15484
pic_flag=$lt_prog_compiler_pic_CXX
15490
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15491
allow_undefined_flag_CXX=
15492
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15493
(eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15495
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15496
test $ac_status = 0; }
15498
archive_cmds_need_lc_CXX=no
15500
archive_cmds_need_lc_CXX=yes
15502
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15504
cat conftest.err 1>&5
15507
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
15508
$as_echo "$archive_cmds_need_lc_CXX" >&6; }
15578
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15579
$as_echo_n "checking dynamic linker characteristics... " >&6; }
15581
library_names_spec=
15582
libname_spec='lib$name'
15586
postuninstall_cmds=
15590
shlibpath_overrides_runpath=unknown
15592
dynamic_linker="$host_os ld.so"
15593
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15594
need_lib_prefix=unknown
15595
hardcode_into_libs=no
15597
# when you set need_version to no, make sure it does not cause -set_version
15598
# flags to be left without arguments
15599
need_version=unknown
15604
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15605
shlibpath_var=LIBPATH
15607
# AIX 3 has no versioning support, so we append a major version to the name.
15608
soname_spec='${libname}${release}${shared_ext}$major'
15615
hardcode_into_libs=yes
15616
if test "$host_cpu" = ia64; then
15617
# AIX 5 supports IA64
15618
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15619
shlibpath_var=LD_LIBRARY_PATH
15621
# With GCC up to 2.95.x, collect2 would create an import file
15622
# for dependence libraries. The import file would start with
15623
# the line `#! .'. This would cause the generated library to
15624
# depend on `.', always an invalid library. This was fixed in
15625
# development snapshots of GCC prior to 3.0.
15627
aix4 | aix4.[01] | aix4.[01].*)
15628
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15630
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15633
can_build_shared=no
15637
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15638
# soname into executable. Probably we can add versioning support to
15639
# collect2, so additional links can be useful in future.
15640
if test "$aix_use_runtimelinking" = yes; then
15641
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
15642
# instead of lib<name>.a to let people know that these are not
15643
# typical AIX shared libraries.
15644
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15646
# We preserve .a as extension for shared libraries through AIX4.2
15647
# and later when we are not doing run time linking.
15648
library_names_spec='${libname}${release}.a $libname.a'
15649
soname_spec='${libname}${release}${shared_ext}$major'
15651
shlibpath_var=LIBPATH
15658
# Since July 2007 AmigaOS4 officially supports .so libraries.
15659
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15660
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15663
library_names_spec='$libname.ixlibrary $libname.a'
15664
# Create ${libname}_ixlibrary.a entries in /sys/libs.
15665
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'
15671
library_names_spec='${libname}${shared_ext}'
15672
dynamic_linker="$host_os ld.so"
15673
shlibpath_var=LIBRARY_PATH
15679
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15680
soname_spec='${libname}${release}${shared_ext}$major'
15681
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15682
shlibpath_var=LD_LIBRARY_PATH
15683
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15684
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15685
# the default ld.so.conf also contains /usr/contrib/lib and
15686
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15687
# libtool to hard-code these into programs
15690
cygwin* | mingw* | pw32* | cegcc*)
15691
version_type=windows
15696
case $GCC,$host_os in
15697
yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15698
library_names_spec='$libname.dll.a'
15699
# DLL is installed to $(libdir)/../bin by postinstall_cmds
15700
postinstall_cmds='base_file=`basename \${file}`~
15701
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15702
dldir=$destdir/`dirname \$dlpath`~
15703
test -d \$dldir || mkdir -p \$dldir~
15704
$install_prog $dir/$dlname \$dldir/$dlname~
15705
chmod a+x \$dldir/$dlname~
15706
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15707
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15709
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15710
dlpath=$dir/\$dldll~
15712
shlibpath_overrides_runpath=yes
15716
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
15717
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15718
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15721
# MinGW DLLs use traditional 'lib' prefix
15722
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15723
sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15724
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15725
# It is most probably a Windows format PATH printed by
15726
# mingw gcc, but we are running on Cygwin. Gcc prints its search
15727
# path with ; separators, and with drive letters. We can handle the
15728
# drive letters (cygwin fileutils understands them), so leave them,
15729
# especially as we might pass files found there to a mingw objdump,
15730
# which wouldn't understand a cygwinified path. Ahh.
15731
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15733
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15737
# pw32 DLLs use 'pw' prefix rather than 'lib'
15738
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15744
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15747
dynamic_linker='Win32 ld.exe'
15748
# FIXME: first we should search . and the directory the executable is in
15752
darwin* | rhapsody*)
15753
dynamic_linker="$host_os dyld"
15754
version_type=darwin
15757
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15758
soname_spec='${libname}${release}${major}$shared_ext'
15759
shlibpath_overrides_runpath=yes
15760
shlibpath_var=DYLD_LIBRARY_PATH
15761
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15763
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15770
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15771
soname_spec='${libname}${release}${shared_ext}$major'
15772
shlibpath_var=LD_LIBRARY_PATH
15779
freebsd* | dragonfly*)
15780
# DragonFly does not have aout. When/if they implement a new
15781
# versioning mechanism, adjust this.
15782
if test -x /usr/bin/objformat; then
15783
objformat=`/usr/bin/objformat`
15786
freebsd[123]*) objformat=aout ;;
15787
*) objformat=elf ;;
15790
version_type=freebsd-$objformat
15791
case $version_type in
15793
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15798
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15802
shlibpath_var=LD_LIBRARY_PATH
15805
shlibpath_overrides_runpath=yes
15807
freebsd3.[01]* | freebsdelf3.[01]*)
15808
shlibpath_overrides_runpath=yes
15809
hardcode_into_libs=yes
15811
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15812
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15813
shlibpath_overrides_runpath=no
15814
hardcode_into_libs=yes
15816
*) # from 4.6 on, and DragonFly
15817
shlibpath_overrides_runpath=yes
15818
hardcode_into_libs=yes
15827
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15828
soname_spec='${libname}${release}${shared_ext}$major'
15829
shlibpath_var=LD_LIBRARY_PATH
15830
hardcode_into_libs=yes
15833
hpux9* | hpux10* | hpux11*)
15834
# Give a soname corresponding to the major version so that dld.sl refuses to
15835
# link against other versions.
15842
hardcode_into_libs=yes
15843
dynamic_linker="$host_os dld.so"
15844
shlibpath_var=LD_LIBRARY_PATH
15845
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15846
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15847
soname_spec='${libname}${release}${shared_ext}$major'
15848
if test "X$HPUX_IA64_MODE" = X32; then
15849
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15851
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15853
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15857
hardcode_into_libs=yes
15858
dynamic_linker="$host_os dld.sl"
15859
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15860
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15861
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15862
soname_spec='${libname}${release}${shared_ext}$major'
15863
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15864
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15868
dynamic_linker="$host_os dld.sl"
15869
shlibpath_var=SHLIB_PATH
15870
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15871
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15872
soname_spec='${libname}${release}${shared_ext}$major'
15875
# HP-UX runs *really* slowly unless shared libraries are mode 555.
15876
postinstall_cmds='chmod 555 $lib'
15883
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15884
soname_spec='${libname}${release}${shared_ext}$major'
15885
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15886
shlibpath_var=LD_LIBRARY_PATH
15887
shlibpath_overrides_runpath=no
15888
hardcode_into_libs=yes
15891
irix5* | irix6* | nonstopux*)
15893
nonstopux*) version_type=nonstopux ;;
15895
if test "$lt_cv_prog_gnu_ld" = yes; then
15903
soname_spec='${libname}${release}${shared_ext}$major'
15904
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15906
irix5* | nonstopux*)
15907
libsuff= shlibsuff=
15910
case $LD in # libtool.m4 will add one of these switches to LD
15911
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15912
libsuff= shlibsuff= libmagic=32-bit;;
15913
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15914
libsuff=32 shlibsuff=N32 libmagic=N32;;
15915
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15916
libsuff=64 shlibsuff=64 libmagic=64-bit;;
15917
*) libsuff= shlibsuff= libmagic=never-match;;
15921
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15922
shlibpath_overrides_runpath=no
15923
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15924
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15925
hardcode_into_libs=yes
15928
# No shared lib support for Linux oldld, aout, or coff.
15929
linux*oldld* | linux*aout* | linux*coff*)
15933
# This must be Linux ELF.
15934
linux* | k*bsd*-gnu)
15938
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15939
soname_spec='${libname}${release}${shared_ext}$major'
15940
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15941
shlibpath_var=LD_LIBRARY_PATH
15942
shlibpath_overrides_runpath=no
15943
# Some binutils ld are patched to set DT_RUNPATH
15944
save_LDFLAGS=$LDFLAGS
15945
save_libdir=$libdir
15946
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15947
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15948
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15949
/* end confdefs.h. */
15959
if ac_fn_cxx_try_link "$LINENO"; then :
15960
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15961
shlibpath_overrides_runpath=yes
15964
rm -f core conftest.err conftest.$ac_objext \
15965
conftest$ac_exeext conftest.$ac_ext
15966
LDFLAGS=$save_LDFLAGS
15967
libdir=$save_libdir
15969
# This implies no fast_install, which is unacceptable.
15970
# Some rework will be needed to allow for fast_install
15971
# before this can be enabled.
15972
hardcode_into_libs=yes
15974
# Append ld.so.conf contents to the search path
15975
if test -f /etc/ld.so.conf; then
15976
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15977
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15980
# We used to test for /lib/ld.so.1 and disable shared libraries on
15981
# powerpc, because MkLinux only supported shared libraries with the
15982
# GNU dynamic linker. Since this was broken with cross compilers,
15983
# most powerpc-linux boxes support dynamic linking these days and
15984
# people can always --disable-shared, the test was removed, and we
15985
# assume the GNU/Linux dynamic linker is in use.
15986
dynamic_linker='GNU/Linux ld.so'
15993
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15994
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15995
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15996
dynamic_linker='NetBSD (a.out) ld.so'
15998
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15999
soname_spec='${libname}${release}${shared_ext}$major'
16000
dynamic_linker='NetBSD ld.elf_so'
16002
shlibpath_var=LD_LIBRARY_PATH
16003
shlibpath_overrides_runpath=yes
16004
hardcode_into_libs=yes
16009
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16010
shlibpath_var=LD_LIBRARY_PATH
16011
shlibpath_overrides_runpath=yes
16018
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16019
soname_spec='${libname}${release}${shared_ext}$major'
16020
shlibpath_var=LD_LIBRARY_PATH
16021
shlibpath_overrides_runpath=no
16022
hardcode_into_libs=yes
16023
dynamic_linker='ldqnx.so'
16028
sys_lib_dlsearch_path_spec="/usr/lib"
16030
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16032
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16033
*) need_version=no ;;
16035
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16036
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16037
shlibpath_var=LD_LIBRARY_PATH
16038
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16040
openbsd2.[89] | openbsd2.[89].*)
16041
shlibpath_overrides_runpath=no
16044
shlibpath_overrides_runpath=yes
16048
shlibpath_overrides_runpath=yes
16053
libname_spec='$name'
16056
library_names_spec='$libname${shared_ext} $libname.a'
16057
dynamic_linker='OS/2 ld.exe'
16058
shlibpath_var=LIBPATH
16061
osf3* | osf4* | osf5*)
16065
soname_spec='${libname}${release}${shared_ext}$major'
16066
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16067
shlibpath_var=LD_LIBRARY_PATH
16068
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16069
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16080
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16081
soname_spec='${libname}${release}${shared_ext}$major'
16082
shlibpath_var=LD_LIBRARY_PATH
16083
shlibpath_overrides_runpath=yes
16084
hardcode_into_libs=yes
16085
# ldd complains unless libraries are executable
16086
postinstall_cmds='chmod +x $lib'
16091
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16092
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16093
shlibpath_var=LD_LIBRARY_PATH
16094
shlibpath_overrides_runpath=yes
16095
if test "$with_gnu_ld" = yes; then
16103
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16104
soname_spec='${libname}${release}${shared_ext}$major'
16105
shlibpath_var=LD_LIBRARY_PATH
16106
case $host_vendor in
16108
shlibpath_overrides_runpath=no
16110
runpath_var=LD_RUN_PATH
16118
shlibpath_overrides_runpath=no
16119
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16125
if test -d /usr/nec ;then
16127
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16128
soname_spec='$libname${shared_ext}.$major'
16129
shlibpath_var=LD_LIBRARY_PATH
16133
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16134
version_type=freebsd-elf
16137
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16138
soname_spec='${libname}${release}${shared_ext}$major'
16139
shlibpath_var=LD_LIBRARY_PATH
16140
shlibpath_overrides_runpath=yes
16141
hardcode_into_libs=yes
16142
if test "$with_gnu_ld" = yes; then
16143
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16145
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16148
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16152
sys_lib_dlsearch_path_spec='/usr/lib'
16156
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16160
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16161
shlibpath_var=LD_LIBRARY_PATH
16162
shlibpath_overrides_runpath=no
16163
hardcode_into_libs=yes
16168
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16169
soname_spec='${libname}${release}${shared_ext}$major'
16170
shlibpath_var=LD_LIBRARY_PATH
16177
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16178
$as_echo "$dynamic_linker" >&6; }
16179
test "$dynamic_linker" = no && can_build_shared=no
16181
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16182
if test "$GCC" = yes; then
16183
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16186
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16187
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16189
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16190
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16228
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16229
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16230
hardcode_action_CXX=
16231
if test -n "$hardcode_libdir_flag_spec_CXX" ||
16232
test -n "$runpath_var_CXX" ||
16233
test "X$hardcode_automatic_CXX" = "Xyes" ; then
16235
# We can hardcode non-existent directories.
16236
if test "$hardcode_direct_CXX" != no &&
16237
# If the only mechanism to avoid hardcoding is shlibpath_var, we
16238
# have to relink, otherwise we might link with an installed library
16239
# when we should be linking with a yet-to-be-installed one
16240
## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16241
test "$hardcode_minus_L_CXX" != no; then
16242
# Linking always hardcodes the temporary library directory.
16243
hardcode_action_CXX=relink
16245
# We can link without hardcoding, and we can hardcode nonexisting dirs.
16246
hardcode_action_CXX=immediate
16249
# We cannot hardcode anything, or else we can only hardcode existing
16251
hardcode_action_CXX=unsupported
16253
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16254
$as_echo "$hardcode_action_CXX" >&6; }
16256
if test "$hardcode_action_CXX" = relink ||
16257
test "$inherit_rpath_CXX" = yes; then
16258
# Fast installation is not supported
16259
enable_fast_install=no
16260
elif test "$shlibpath_overrides_runpath" = yes ||
16261
test "$enable_shared" = no; then
16262
# Fast installation is not necessary
16263
enable_fast_install=needless
16272
fi # test -n "$compiler"
16278
with_gnu_ld=$lt_save_with_gnu_ld
16279
lt_cv_path_LDCXX=$lt_cv_path_LD
16280
lt_cv_path_LD=$lt_save_path_LD
16281
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16282
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16283
fi # test "$_lt_caught_CXX_error" != yes
16286
ac_cpp='$CPP $CPPFLAGS'
16287
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16288
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16289
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16303
ac_config_commands="$ac_config_commands libtool"
16308
# Only expand once:
16311
LIBTOOL="$LIBTOOL --preserve-dup-deps"
6239
16313
if test -n "$ac_tool_prefix"; then
6240
16314
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6241
16315
set dummy ${ac_tool_prefix}ar; ac_word=$2