11307
12029
CC="$lt_save_CC"
12031
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12032
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12033
(test "X$CXX" != "Xg++"))) ; then
12035
ac_cpp='$CXXCPP $CPPFLAGS'
12036
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12037
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12038
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12039
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12040
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12041
if test -z "$CXXCPP"; then
12042
if ${ac_cv_prog_CXXCPP+:} false; then :
12043
$as_echo_n "(cached) " >&6
12045
# Double quotes because CXXCPP needs to be expanded
12046
for CXXCPP in "$CXX -E" "/lib/cpp"
12048
ac_preproc_ok=false
12049
for ac_cxx_preproc_warn_flag in '' yes
12051
# Use a header file that comes with gcc, so configuring glibc
12052
# with a fresh cross-compiler works.
12053
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12054
# <limits.h> exists even on freestanding compilers.
12055
# On the NeXT, cc -E runs the code through the compiler's parser,
12056
# not just through cpp. "Syntax error" is here to catch this case.
12057
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12058
/* end confdefs.h. */
12060
# include <limits.h>
12062
# include <assert.h>
12066
if ac_fn_cxx_try_cpp "$LINENO"; then :
12069
# Broken: fails on valid input.
12072
rm -f conftest.err conftest.i conftest.$ac_ext
12074
# OK, works on sane cases. Now check whether nonexistent headers
12075
# can be detected and how.
12076
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12077
/* end confdefs.h. */
12078
#include <ac_nonexistent.h>
12080
if ac_fn_cxx_try_cpp "$LINENO"; then :
12081
# Broken: success on invalid input.
12084
# Passes both tests.
12088
rm -f conftest.err conftest.i conftest.$ac_ext
12091
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12092
rm -f conftest.i conftest.err conftest.$ac_ext
12093
if $ac_preproc_ok; then :
12098
ac_cv_prog_CXXCPP=$CXXCPP
12101
CXXCPP=$ac_cv_prog_CXXCPP
12103
ac_cv_prog_CXXCPP=$CXXCPP
12105
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12106
$as_echo "$CXXCPP" >&6; }
12107
ac_preproc_ok=false
12108
for ac_cxx_preproc_warn_flag in '' yes
12110
# Use a header file that comes with gcc, so configuring glibc
12111
# with a fresh cross-compiler works.
12112
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12113
# <limits.h> exists even on freestanding compilers.
12114
# On the NeXT, cc -E runs the code through the compiler's parser,
12115
# not just through cpp. "Syntax error" is here to catch this case.
12116
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12117
/* end confdefs.h. */
12119
# include <limits.h>
12121
# include <assert.h>
12125
if ac_fn_cxx_try_cpp "$LINENO"; then :
12128
# Broken: fails on valid input.
12131
rm -f conftest.err conftest.i conftest.$ac_ext
12133
# OK, works on sane cases. Now check whether nonexistent headers
12134
# can be detected and how.
12135
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12136
/* end confdefs.h. */
12137
#include <ac_nonexistent.h>
12139
if ac_fn_cxx_try_cpp "$LINENO"; then :
12140
# Broken: success on invalid input.
12143
# Passes both tests.
12147
rm -f conftest.err conftest.i conftest.$ac_ext
12150
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12151
rm -f conftest.i conftest.err conftest.$ac_ext
12152
if $ac_preproc_ok; then :
12155
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12156
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12157
as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12158
See \`config.log' for more details" "$LINENO" 5; }
12162
ac_cpp='$CPP $CPPFLAGS'
12163
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12164
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12165
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12168
_lt_caught_CXX_error=yes
12172
ac_cpp='$CXXCPP $CPPFLAGS'
12173
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12174
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12175
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12177
archive_cmds_need_lc_CXX=no
12178
allow_undefined_flag_CXX=
12179
always_export_symbols_CXX=no
12180
archive_expsym_cmds_CXX=
12181
compiler_needs_object_CXX=no
12182
export_dynamic_flag_spec_CXX=
12183
hardcode_direct_CXX=no
12184
hardcode_direct_absolute_CXX=no
12185
hardcode_libdir_flag_spec_CXX=
12186
hardcode_libdir_separator_CXX=
12187
hardcode_minus_L_CXX=no
12188
hardcode_shlibpath_var_CXX=unsupported
12189
hardcode_automatic_CXX=no
12190
inherit_rpath_CXX=no
12192
module_expsym_cmds_CXX=
12193
link_all_deplibs_CXX=unknown
12194
old_archive_cmds_CXX=$old_archive_cmds
12195
reload_flag_CXX=$reload_flag
12196
reload_cmds_CXX=$reload_cmds
12197
no_undefined_flag_CXX=
12198
whole_archive_flag_spec_CXX=
12199
enable_shared_with_static_runtimes_CXX=no
12201
# Source file extension for C++ test sources.
12204
# Object file extension for compiled C++ test sources.
12208
# No sense in running all these tests if we already determined that
12209
# the CXX compiler isn't working. Some variables (like enable_shared)
12210
# are currently assumed to apply to all compilers on this platform,
12211
# and will be corrupted by setting them based on a non-working compiler.
12212
if test "$_lt_caught_CXX_error" != yes; then
12213
# Code to be used in simple compile tests
12214
lt_simple_compile_test_code="int some_variable = 0;"
12216
# Code to be used in simple link tests
12217
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12219
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12226
# If no C compiler was specified, use CC.
12229
# If no C compiler flags were specified, use CFLAGS.
12230
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12232
# Allow CC to be a program name with arguments.
12236
# save warnings/boilerplate of simple test code
12237
ac_outfile=conftest.$ac_objext
12238
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12239
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12240
_lt_compiler_boilerplate=`cat conftest.err`
12243
ac_outfile=conftest.$ac_objext
12244
echo "$lt_simple_link_test_code" >conftest.$ac_ext
12245
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12246
_lt_linker_boilerplate=`cat conftest.err`
12250
# Allow CC to be a program name with arguments.
12252
lt_save_CFLAGS=$CFLAGS
12256
lt_save_with_gnu_ld=$with_gnu_ld
12257
lt_save_path_LD=$lt_cv_path_LD
12258
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12259
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12261
$as_unset lt_cv_prog_gnu_ld
12263
if test -n "${lt_cv_path_LDCXX+set}"; then
12264
lt_cv_path_LD=$lt_cv_path_LDCXX
12266
$as_unset lt_cv_path_LD
12268
test -z "${LDCXX+set}" || LD=$LDCXX
12273
for cc_temp in $compiler""; do
12275
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12276
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12281
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12284
if test -n "$compiler"; then
12285
# We don't want -fno-exception when compiling C++ code, so set the
12286
# no_builtin_flag separately
12287
if test "$GXX" = yes; then
12288
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12290
lt_prog_compiler_no_builtin_flag_CXX=
12293
if test "$GXX" = yes; then
12294
# Set up default GNU C++ configuration
12298
# Check whether --with-gnu-ld was given.
12299
if test "${with_gnu_ld+set}" = set; then :
12300
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12306
if test "$GCC" = yes; then
12307
# Check if gcc -print-prog-name=ld gives a path.
12308
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12309
$as_echo_n "checking for ld used by $CC... " >&6; }
12312
# gcc leaves a trailing carriage return which upsets mingw
12313
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12315
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12318
# Accept absolute paths.
12320
re_direlt='/[^/][^/]*/\.\./'
12321
# Canonicalize the pathname of ld
12322
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12323
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12324
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12326
test -z "$LD" && LD="$ac_prog"
12329
# If it fails, then pretend we aren't using GCC.
12333
# If it is relative, then search for the first ld in PATH.
12334
with_gnu_ld=unknown
12337
elif test "$with_gnu_ld" = yes; then
12338
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12339
$as_echo_n "checking for GNU ld... " >&6; }
12341
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12342
$as_echo_n "checking for non-GNU ld... " >&6; }
12344
if ${lt_cv_path_LD+:} false; then :
12345
$as_echo_n "(cached) " >&6
12347
if test -z "$LD"; then
12348
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12349
for ac_dir in $PATH; do
12351
test -z "$ac_dir" && ac_dir=.
12352
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12353
lt_cv_path_LD="$ac_dir/$ac_prog"
12354
# Check to see if the program is GNU ld. I'd rather use --version,
12355
# but apparently some variants of GNU ld only accept -v.
12356
# Break only if it was the GNU/non-GNU ld that we prefer.
12357
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12358
*GNU* | *'with BFD'*)
12359
test "$with_gnu_ld" != no && break
12362
test "$with_gnu_ld" != yes && break
12369
lt_cv_path_LD="$LD" # Let the user override the test with a path.
12373
LD="$lt_cv_path_LD"
12374
if test -n "$LD"; then
12375
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12376
$as_echo "$LD" >&6; }
12378
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12379
$as_echo "no" >&6; }
12381
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12382
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12383
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12384
if ${lt_cv_prog_gnu_ld+:} false; then :
12385
$as_echo_n "(cached) " >&6
12387
# I'd rather use --version here, but apparently some GNU lds only accept -v.
12388
case `$LD -v 2>&1 </dev/null` in
12389
*GNU* | *'with BFD'*)
12390
lt_cv_prog_gnu_ld=yes
12393
lt_cv_prog_gnu_ld=no
12397
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12398
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12399
with_gnu_ld=$lt_cv_prog_gnu_ld
12407
# Check if GNU C++ uses GNU ld as the underlying linker, since the
12408
# archiving commands below assume that GNU ld is being used.
12409
if test "$with_gnu_ld" = yes; then
12410
archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12411
archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12413
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12414
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12416
# If archive_cmds runs LD, not CC, wlarc should be empty
12417
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12418
# investigate it a little bit more. (MM)
12421
# ancient GNU ld didn't support --whole-archive et. al.
12422
if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12423
$GREP 'no-whole-archive' > /dev/null; then
12424
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12426
whole_archive_flag_spec_CXX=
12432
# A generic and very simple default shared library creation
12433
# command for GNU C++ for the case where it uses the native
12434
# linker, instead of GNU ld. If possible, this setting should
12435
# overridden to take advantage of the native linker features on
12436
# the platform it is being used on.
12437
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12440
# Commands to make compiler produce verbose output that lists
12441
# what "hidden" libraries, object files and flags are used when
12442
# linking a shared library.
12443
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12451
# PORTME: fill in a description of your system's C++ link characteristics
12452
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12453
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12457
# FIXME: insert proper C++ library support
12461
if test "$host_cpu" = ia64; then
12462
# On IA64, the linker does run time linking by default, so we don't
12463
# have to do anything special.
12464
aix_use_runtimelinking=no
12465
exp_sym_flag='-Bexport'
12468
aix_use_runtimelinking=no
12470
# Test if we are trying to use run time linking or normal
12471
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
12472
# need to do runtime linking.
12473
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12474
for ld_flag in $LDFLAGS; do
12477
aix_use_runtimelinking=yes
12485
exp_sym_flag='-bexport'
12486
no_entry_flag='-bnoentry'
12489
# When large executables or shared objects are built, AIX ld can
12490
# have problems creating the table of contents. If linking a library
12491
# or program results in "error TOC overflow" add -mminimal-toc to
12492
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12493
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12495
archive_cmds_CXX=''
12496
hardcode_direct_CXX=yes
12497
hardcode_direct_absolute_CXX=yes
12498
hardcode_libdir_separator_CXX=':'
12499
link_all_deplibs_CXX=yes
12500
file_list_spec_CXX='${wl}-f,'
12502
if test "$GXX" = yes; then
12503
case $host_os in aix4.[012]|aix4.[012].*)
12504
# We only want to do this on AIX 4.2 and lower, the check
12505
# below for broken collect2 doesn't work under 4.3+
12506
collect2name=`${CC} -print-prog-name=collect2`
12507
if test -f "$collect2name" &&
12508
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12510
# We have reworked collect2
12513
# We have old collect2
12514
hardcode_direct_CXX=unsupported
12515
# It fails to find uninstalled libraries when the uninstalled
12516
# path is not listed in the libpath. Setting hardcode_minus_L
12517
# to unsupported forces relinking
12518
hardcode_minus_L_CXX=yes
12519
hardcode_libdir_flag_spec_CXX='-L$libdir'
12520
hardcode_libdir_separator_CXX=
12523
shared_flag='-shared'
12524
if test "$aix_use_runtimelinking" = yes; then
12525
shared_flag="$shared_flag "'${wl}-G'
12529
if test "$host_cpu" = ia64; then
12530
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12531
# chokes on -Wl,-G. The following line is correct:
12534
if test "$aix_use_runtimelinking" = yes; then
12535
shared_flag='${wl}-G'
12537
shared_flag='${wl}-bM:SRE'
12542
export_dynamic_flag_spec_CXX='${wl}-bexpall'
12543
# It seems that -bexpall does not export symbols beginning with
12544
# underscore (_), so it is better to generate a list of symbols to
12546
always_export_symbols_CXX=yes
12547
if test "$aix_use_runtimelinking" = yes; then
12548
# Warning - without using the other runtime loading flags (-brtl),
12549
# -berok will link without error, but may produce a broken library.
12550
allow_undefined_flag_CXX='-berok'
12551
# Determine the default libpath from the value encoded in an empty
12553
if test "${lt_cv_aix_libpath+set}" = set; then
12554
aix_libpath=$lt_cv_aix_libpath
12556
if ${lt_cv_aix_libpath__CXX+:} false; then :
12557
$as_echo_n "(cached) " >&6
12559
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12560
/* end confdefs.h. */
12570
if ac_fn_cxx_try_link "$LINENO"; then :
12572
lt_aix_libpath_sed='
12573
/Import File Strings/,/^$/ {
12575
s/^0 *\([^ ]*\) *$/\1/
12579
lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12580
# Check for a 64-bit object if we didn't find anything.
12581
if test -z "$lt_cv_aix_libpath__CXX"; then
12582
lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12585
rm -f core conftest.err conftest.$ac_objext \
12586
conftest$ac_exeext conftest.$ac_ext
12587
if test -z "$lt_cv_aix_libpath__CXX"; then
12588
lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12593
aix_libpath=$lt_cv_aix_libpath__CXX
12596
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12598
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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12600
if test "$host_cpu" = ia64; then
12601
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12602
allow_undefined_flag_CXX="-z nodefs"
12603
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"
12605
# Determine the default libpath from the value encoded in an
12606
# empty executable.
12607
if test "${lt_cv_aix_libpath+set}" = set; then
12608
aix_libpath=$lt_cv_aix_libpath
12610
if ${lt_cv_aix_libpath__CXX+:} false; then :
12611
$as_echo_n "(cached) " >&6
12613
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12614
/* end confdefs.h. */
12624
if ac_fn_cxx_try_link "$LINENO"; then :
12626
lt_aix_libpath_sed='
12627
/Import File Strings/,/^$/ {
12629
s/^0 *\([^ ]*\) *$/\1/
12633
lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12634
# Check for a 64-bit object if we didn't find anything.
12635
if test -z "$lt_cv_aix_libpath__CXX"; then
12636
lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12639
rm -f core conftest.err conftest.$ac_objext \
12640
conftest$ac_exeext conftest.$ac_ext
12641
if test -z "$lt_cv_aix_libpath__CXX"; then
12642
lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12647
aix_libpath=$lt_cv_aix_libpath__CXX
12650
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12651
# Warning - without using the other run time loading flags,
12652
# -berok will link without error, but may produce a broken library.
12653
no_undefined_flag_CXX=' ${wl}-bernotok'
12654
allow_undefined_flag_CXX=' ${wl}-berok'
12655
if test "$with_gnu_ld" = yes; then
12656
# We only use this code for GNU lds that support --whole-archive.
12657
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12659
# Exported symbols can be pulled into shared objects from archives
12660
whole_archive_flag_spec_CXX='$convenience'
12662
archive_cmds_need_lc_CXX=yes
12663
# This is similar to how AIX traditionally builds its shared
12665
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'
12671
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12672
allow_undefined_flag_CXX=unsupported
12673
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12674
# support --undefined. This deserves some investigation. FIXME
12675
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12682
case $cc_basename in
12684
# FIXME: insert proper C++ library support
12690
cygwin* | mingw* | pw32* | cegcc*)
12691
case $GXX,$cc_basename in
12694
# hardcode_libdir_flag_spec is actually meaningless, as there is
12695
# no search path for DLLs.
12696
hardcode_libdir_flag_spec_CXX=' '
12697
allow_undefined_flag_CXX=unsupported
12698
always_export_symbols_CXX=yes
12699
file_list_spec_CXX='@'
12700
# Tell ltmain to make .lib files, not .a files.
12702
# Tell ltmain to make .dll files, not .so files.
12704
# FIXME: Setting linknames here is a bad hack.
12705
archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12706
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12707
$SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12709
$SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12711
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12713
# The linker will not automatically build a static lib if we build a DLL.
12714
# _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12715
enable_shared_with_static_runtimes_CXX=yes
12717
old_postinstall_cmds_CXX='chmod 644 $oldlib'
12718
postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12719
lt_tool_outputfile="@TOOL_OUTPUT@"~
12720
case $lt_outputfile in
12723
lt_outputfile="$lt_outputfile.exe"
12724
lt_tool_outputfile="$lt_tool_outputfile.exe"
12727
func_to_tool_file "$lt_outputfile"~
12728
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12729
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12730
$RM "$lt_outputfile.manifest";
12735
# _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12736
# as there is no search path for DLLs.
12737
hardcode_libdir_flag_spec_CXX='-L$libdir'
12738
export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12739
allow_undefined_flag_CXX=unsupported
12740
always_export_symbols_CXX=no
12741
enable_shared_with_static_runtimes_CXX=yes
12743
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12744
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'
12745
# If the export-symbols file already is a .def file (1st line
12746
# is EXPORTS), use it as is; otherwise, prepend...
12747
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12748
cp $export_symbols $output_objdir/$soname.def;
12750
echo EXPORTS > $output_objdir/$soname.def;
12751
cat $export_symbols >> $output_objdir/$soname.def;
12753
$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'
12760
darwin* | rhapsody*)
12763
archive_cmds_need_lc_CXX=no
12764
hardcode_direct_CXX=no
12765
hardcode_automatic_CXX=yes
12766
hardcode_shlibpath_var_CXX=unsupported
12767
if test "$lt_cv_ld_force_load" = "yes"; then
12768
whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12771
whole_archive_flag_spec_CXX=''
12773
link_all_deplibs_CXX=yes
12774
allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12775
case $cc_basename in
12776
ifort*) _lt_dar_can_shared=yes ;;
12777
*) _lt_dar_can_shared=$GCC ;;
12779
if test "$_lt_dar_can_shared" = "yes"; then
12780
output_verbose_link_cmd=func_echo_all
12781
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}"
12782
module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12783
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}"
12784
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}"
12785
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12786
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}"
12787
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}"
12797
case $cc_basename in
12799
# FIXME: insert proper C++ library support
12803
# Green Hills C++ Compiler
12804
# FIXME: insert proper C++ library support
12808
# FIXME: insert proper C++ library support
12815
# C++ shared libraries reported to be fairly broken before
12821
archive_cmds_need_lc_CXX=no
12824
freebsd* | dragonfly*)
12825
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12834
archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12835
link_all_deplibs_CXX=yes
12839
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12840
hardcode_libdir_separator_CXX=:
12841
export_dynamic_flag_spec_CXX='${wl}-E'
12842
hardcode_direct_CXX=yes
12843
hardcode_minus_L_CXX=yes # Not in the search PATH,
12844
# but as the default
12845
# location of the library.
12847
case $cc_basename in
12849
# FIXME: insert proper C++ library support
12853
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'
12854
# Commands to make compiler produce verbose output that lists
12855
# what "hidden" libraries, object files and flags are used when
12856
# linking a shared library.
12858
# There doesn't appear to be a way to prevent this compiler from
12859
# explicitly linking system object files so we need to strip them
12860
# from the output so that they don't get included in the library
12862
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; func_echo_all "$list"'
12865
if test "$GXX" = yes; then
12866
archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${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'
12868
# FIXME: insert proper C++ library support
12876
if test $with_gnu_ld = no; then
12877
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12878
hardcode_libdir_separator_CXX=:
12884
export_dynamic_flag_spec_CXX='${wl}-E'
12890
hardcode_direct_CXX=no
12891
hardcode_shlibpath_var_CXX=no
12894
hardcode_direct_CXX=yes
12895
hardcode_direct_absolute_CXX=yes
12896
hardcode_minus_L_CXX=yes # Not in the search PATH,
12897
# but as the default
12898
# location of the library.
12902
case $cc_basename in
12904
# FIXME: insert proper C++ library support
12910
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12913
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12916
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12919
# Commands to make compiler produce verbose output that lists
12920
# what "hidden" libraries, object files and flags are used when
12921
# linking a shared library.
12923
# There doesn't appear to be a way to prevent this compiler from
12924
# explicitly linking system object files so we need to strip them
12925
# from the output so that they don't get included in the library
12927
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; func_echo_all "$list"'
12930
if test "$GXX" = yes; then
12931
if test $with_gnu_ld = no; then
12934
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12937
archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12940
archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12945
# FIXME: insert proper C++ library support
12953
hardcode_direct_CXX=no
12954
hardcode_shlibpath_var_CXX=no
12955
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12956
export_dynamic_flag_spec_CXX='${wl}-E'
12957
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12958
# Instead, shared libraries are loaded at an image base (0x10000000 by
12959
# default) and relocated if they conflict, which is a slow very memory
12960
# consuming and fragmenting process. To avoid this, we pick a random,
12961
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12962
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
12963
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'
12964
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'
12967
case $cc_basename in
12970
archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12972
# Archives containing C++ object files must be created using
12973
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
12974
# necessary to make sure instantiated templates are included
12976
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12979
if test "$GXX" = yes; then
12980
if test "$with_gnu_ld" = no; then
12981
archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12983
archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
12986
link_all_deplibs_CXX=yes
12989
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12990
hardcode_libdir_separator_CXX=:
12991
inherit_rpath_CXX=yes
12994
linux* | k*bsd*-gnu | kopensolaris*-gnu)
12995
case $cc_basename in
12997
# Kuck and Associates, Inc. (KAI) C++ Compiler
12999
# KCC will only create a shared library if the output file
13000
# ends with ".so" (or ".sl" for HP-UX), so rename the library
13001
# to its proper name (with version) after linking.
13002
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'
13003
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'
13004
# Commands to make compiler produce verbose output that lists
13005
# what "hidden" libraries, object files and flags are used when
13006
# linking a shared library.
13008
# There doesn't appear to be a way to prevent this compiler from
13009
# explicitly linking system object files so we need to strip them
13010
# from the output so that they don't get included in the library
13012
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; func_echo_all "$list"'
13014
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13015
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13017
# Archives containing C++ object files must be created using
13018
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
13019
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13024
# version 8.0 and above of icpc choke on multiply defined symbols
13025
# if we add $predep_objects and $postdep_objects, however 7.1 and
13026
# earlier do not add the objects themselves.
13027
case `$CC -V 2>&1` in
13029
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13030
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'
13032
*) # Version 8.0 or newer
13035
ia64*) tmp_idyn=' -i_dynamic';;
13037
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13038
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'
13041
archive_cmds_need_lc_CXX=no
13042
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13043
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13044
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13047
# Portland Group C++ compiler
13049
*pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13050
prelink_cmds_CXX='tpldir=Template.dir~
13052
$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13053
compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13054
old_archive_cmds_CXX='tpldir=Template.dir~
13056
$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13057
$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13059
archive_cmds_CXX='tpldir=Template.dir~
13061
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13062
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13063
archive_expsym_cmds_CXX='tpldir=Template.dir~
13065
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13066
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13068
*) # Version 6 and above use weak symbols
13069
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13070
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'
13074
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13075
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13076
whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13080
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13081
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'
13083
runpath_var=LD_RUN_PATH
13084
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13085
hardcode_libdir_separator_CXX=:
13087
# Commands to make compiler produce verbose output that lists
13088
# what "hidden" libraries, object files and flags are used when
13089
# linking a shared library.
13091
# There doesn't appear to be a way to prevent this compiler from
13092
# explicitly linking system object files so we need to strip them
13093
# from the output so that they don't get included in the library
13095
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
13097
xl* | mpixl* | bgxl*)
13098
# IBM XL 8.0 on PPC, with GNU ld
13099
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13100
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13101
archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13102
if test "x$supports_anon_versioning" = xyes; then
13103
archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13104
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13105
echo "local: *; };" >> $output_objdir/$libname.ver~
13106
$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13110
case `$CC -V 2>&1 | sed 5q` in
13113
no_undefined_flag_CXX=' -zdefs'
13114
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13115
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'
13116
hardcode_libdir_flag_spec_CXX='-R$libdir'
13117
whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13118
compiler_needs_object_CXX=yes
13120
# Not sure whether something based on
13121
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13123
output_verbose_link_cmd='func_echo_all'
13125
# Archives containing C++ object files must be created using
13126
# "CC -xar", where "CC" is the Sun C++ compiler. This is
13127
# necessary to make sure instantiated templates are included
13129
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13137
# FIXME: insert proper C++ library support
13142
# FIXME: insert proper C++ library support
13147
case $cc_basename in
13149
# FIXME: insert proper C++ library support
13153
# FIXME: insert proper C++ library support
13160
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13161
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13163
hardcode_libdir_flag_spec_CXX='-R$libdir'
13164
hardcode_direct_CXX=yes
13165
hardcode_shlibpath_var_CXX=no
13167
# Workaround some broken pre-1.5 toolchains
13168
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13176
# C++ shared libraries are fairly broken
13181
if test -f /usr/libexec/ld.so; then
13182
hardcode_direct_CXX=yes
13183
hardcode_shlibpath_var_CXX=no
13184
hardcode_direct_absolute_CXX=yes
13185
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13186
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13187
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13188
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13189
export_dynamic_flag_spec_CXX='${wl}-E'
13190
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13192
output_verbose_link_cmd=func_echo_all
13198
osf3* | osf4* | osf5*)
13199
case $cc_basename in
13201
# Kuck and Associates, Inc. (KAI) C++ Compiler
13203
# KCC will only create a shared library if the output file
13204
# ends with ".so" (or ".sl" for HP-UX), so rename the library
13205
# to its proper name (with version) after linking.
13206
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'
13208
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13209
hardcode_libdir_separator_CXX=:
13211
# Archives containing C++ object files must be created using
13212
# the KAI C++ compiler.
13214
osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13215
*) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13219
# Rational C++ 2.4.1
13220
# FIXME: insert proper C++ library support
13226
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13227
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13228
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13231
allow_undefined_flag_CXX=' -expect_unresolved \*'
13232
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13233
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13234
echo "-hidden">> $lib.exp~
13235
$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
13237
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13241
hardcode_libdir_separator_CXX=:
13243
# Commands to make compiler produce verbose output that lists
13244
# what "hidden" libraries, object files and flags are used when
13245
# linking a shared library.
13247
# There doesn't appear to be a way to prevent this compiler from
13248
# explicitly linking system object files so we need to strip them
13249
# from the output so that they don't get included in the library
13251
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13254
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13255
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13258
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13261
archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13265
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13266
hardcode_libdir_separator_CXX=:
13268
# Commands to make compiler produce verbose output that lists
13269
# what "hidden" libraries, object files and flags are used when
13270
# linking a shared library.
13271
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13274
# FIXME: insert proper C++ library support
13282
# FIXME: insert proper C++ library support
13287
case $cc_basename in
13290
# FIXME: insert proper C++ library support
13295
# FIXME: insert proper C++ library support
13299
# FIXME: insert proper C++ library support
13306
case $cc_basename in
13308
# Sun C++ 4.2, 5.x and Centerline C++
13309
archive_cmds_need_lc_CXX=yes
13310
no_undefined_flag_CXX=' -zdefs'
13311
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13312
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13313
$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'
13315
hardcode_libdir_flag_spec_CXX='-R$libdir'
13316
hardcode_shlibpath_var_CXX=no
13318
solaris2.[0-5] | solaris2.[0-5].*) ;;
13320
# The compiler driver will combine and reorder linker options,
13321
# but understands `-z linker_flag'.
13322
# Supported since Solaris 2.6 (maybe 2.5.1?)
13323
whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13326
link_all_deplibs_CXX=yes
13328
output_verbose_link_cmd='func_echo_all'
13330
# Archives containing C++ object files must be created using
13331
# "CC -xar", where "CC" is the Sun C++ compiler. This is
13332
# necessary to make sure instantiated templates are included
13334
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13337
# Green Hills C++ Compiler
13338
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13340
# The C++ compiler must be used to create the archive.
13341
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13344
# GNU C++ compiler with Solaris linker
13345
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13346
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13347
if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13348
archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13349
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13350
$CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13352
# Commands to make compiler produce verbose output that lists
13353
# what "hidden" libraries, object files and flags are used when
13354
# linking a shared library.
13355
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13357
# g++ 2.7 appears to require `-G' NOT `-shared' on this
13359
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13360
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13361
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13363
# Commands to make compiler produce verbose output that lists
13364
# what "hidden" libraries, object files and flags are used when
13365
# linking a shared library.
13366
output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13369
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13371
solaris2.[0-5] | solaris2.[0-5].*) ;;
13373
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13381
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13382
no_undefined_flag_CXX='${wl}-z,text'
13383
archive_cmds_need_lc_CXX=no
13384
hardcode_shlibpath_var_CXX=no
13385
runpath_var='LD_RUN_PATH'
13387
case $cc_basename in
13389
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13390
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13393
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13394
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13399
sysv5* | sco3.2v5* | sco5v6*)
13400
# Note: We can NOT use -z defs as we might desire, because we do not
13401
# link with -lc, and that would cause any symbols used from libc to
13402
# always be unresolved, which means just about no library would
13403
# ever link correctly. If we're not using GNU ld we use -z text
13404
# though, which does catch some bad symbols but isn't as heavy-handed
13406
no_undefined_flag_CXX='${wl}-z,text'
13407
allow_undefined_flag_CXX='${wl}-z,nodefs'
13408
archive_cmds_need_lc_CXX=no
13409
hardcode_shlibpath_var_CXX=no
13410
hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13411
hardcode_libdir_separator_CXX=':'
13412
link_all_deplibs_CXX=yes
13413
export_dynamic_flag_spec_CXX='${wl}-Bexport'
13414
runpath_var='LD_RUN_PATH'
13416
case $cc_basename in
13418
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13419
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13420
old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13421
'"$old_archive_cmds_CXX"
13422
reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13423
'"$reload_cmds_CXX"
13426
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13427
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13433
case $cc_basename in
13435
# NonStop-UX NCC 3.20
13436
# FIXME: insert proper C++ library support
13440
# FIXME: insert proper C++ library support
13447
# FIXME: insert proper C++ library support
13452
# FIXME: insert proper C++ library support
13457
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13458
$as_echo "$ld_shlibs_CXX" >&6; }
13459
test "$ld_shlibs_CXX" = no && can_build_shared=no
13465
## There is no encapsulation within the following macros, do not change
13466
## the running order or otherwise move them around unless you know exactly
13467
## what you are doing...
13468
# Dependencies to place before and after the object being linked:
13469
predep_objects_CXX=
13470
postdep_objects_CXX=
13473
compiler_lib_search_path_CXX=
13475
cat > conftest.$ac_ext <<_LT_EOF
13479
Foo (void) { a = 0; }
13486
_lt_libdeps_save_CFLAGS=$CFLAGS
13487
case "$CC $CFLAGS " in #(
13488
*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13489
*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13490
*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13493
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13494
(eval $ac_compile) 2>&5
13496
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13497
test $ac_status = 0; }; then
13498
# Parse the compiler output and extract the necessary
13499
# objects, libraries and library flags.
13501
# Sentinel used to keep track of whether or not we are before
13502
# the conftest object file.
13503
pre_test_object_deps_done=no
13505
for p in `eval "$output_verbose_link_cmd"`; do
13506
case ${prev}${p} in
13509
# Some compilers place space between "-{L,R}" and the path.
13510
# Remove the space.
13511
if test $p = "-L" ||
13512
test $p = "-R"; then
13517
# Expand the sysroot to ease extracting the directories later.
13518
if test -z "$prev"; then
13520
-L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13521
-R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13522
-l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13526
=*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13528
if test "$pre_test_object_deps_done" = no; then
13531
# Internal compiler library paths should come after those
13532
# provided the user. The postdeps already come after the
13533
# user supplied libs so there is no need to process them.
13534
if test -z "$compiler_lib_search_path_CXX"; then
13535
compiler_lib_search_path_CXX="${prev}${p}"
13537
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13540
# The "-l" case would never come before the object being
13541
# linked, so don't bother handling this case.
13544
if test -z "$postdeps_CXX"; then
13545
postdeps_CXX="${prev}${p}"
13547
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13553
*.lto.$objext) ;; # Ignore GCC LTO objects
13555
# This assumes that the test object file only shows up
13556
# once in the compiler output.
13557
if test "$p" = "conftest.$objext"; then
13558
pre_test_object_deps_done=yes
13562
if test "$pre_test_object_deps_done" = no; then
13563
if test -z "$predep_objects_CXX"; then
13564
predep_objects_CXX="$p"
13566
predep_objects_CXX="$predep_objects_CXX $p"
13569
if test -z "$postdep_objects_CXX"; then
13570
postdep_objects_CXX="$p"
13572
postdep_objects_CXX="$postdep_objects_CXX $p"
13577
*) ;; # Ignore the rest.
13585
echo "libtool.m4: error: problem compiling CXX test program"
13588
$RM -f confest.$objext
13589
CFLAGS=$_lt_libdeps_save_CFLAGS
13591
# PORTME: override above test on systems where it is broken
13594
# Interix 3.5 installs completely hosed .la files for C++, so rather than
13595
# hack all around it, let's just trust "g++" to DTRT.
13596
predep_objects_CXX=
13597
postdep_objects_CXX=
13602
case `$CC -V 2>&1 | sed 5q` in
13606
# The more standards-conforming stlport4 library is
13607
# incompatible with the Cstd library. Avoid specifying
13608
# it if it's in CXXFLAGS. Ignore libCrun as
13609
# -library=stlport4 depends on it.
13610
case " $CXX $CXXFLAGS " in
13611
*" -library=stlport4 "*)
13612
solaris_use_stlport4=yes
13616
if test "$solaris_use_stlport4" != yes; then
13617
postdeps_CXX='-library=Cstd -library=Crun'
13624
case $cc_basename in
13626
# The more standards-conforming stlport4 library is
13627
# incompatible with the Cstd library. Avoid specifying
13628
# it if it's in CXXFLAGS. Ignore libCrun as
13629
# -library=stlport4 depends on it.
13630
case " $CXX $CXXFLAGS " in
13631
*" -library=stlport4 "*)
13632
solaris_use_stlport4=yes
13636
# Adding this requires a known-good setup of shared libraries for
13637
# Sun compiler versions before 5.6, else PIC objects from an old
13638
# archive will be linked into the output, leading to subtle bugs.
13639
if test "$solaris_use_stlport4" != yes; then
13640
postdeps_CXX='-library=Cstd -library=Crun'
13648
case " $postdeps_CXX " in
13649
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13651
compiler_lib_search_dirs_CXX=
13652
if test -n "${compiler_lib_search_path_CXX}"; then
13653
compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13686
lt_prog_compiler_wl_CXX=
13687
lt_prog_compiler_pic_CXX=
13688
lt_prog_compiler_static_CXX=
13691
# C++ specific cases for pic, static, wl, etc.
13692
if test "$GXX" = yes; then
13693
lt_prog_compiler_wl_CXX='-Wl,'
13694
lt_prog_compiler_static_CXX='-static'
13698
# All AIX code is PIC.
13699
if test "$host_cpu" = ia64; then
13700
# AIX 5 now supports IA64 processor
13701
lt_prog_compiler_static_CXX='-Bstatic'
13708
# see comment about AmigaOS4 .so support
13709
lt_prog_compiler_pic_CXX='-fPIC'
13712
# FIXME: we need at least 68020 code to build shared libraries, but
13713
# adding the `-m68020' flag to GCC prevents building anything better,
13715
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13720
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13721
# PIC is the default for these OSes.
13723
mingw* | cygwin* | os2* | pw32* | cegcc*)
13724
# This hack is so that the source file can tell whether it is being
13725
# built for inclusion in a dll (and should export symbols for example).
13726
# Although the cygwin gcc ignores -fPIC, still need this for old-style
13727
# (--disable-auto-import) libraries
13728
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13730
darwin* | rhapsody*)
13731
# PIC is the default on this platform
13732
# Common symbols not allowed in MH_DYLIB files
13733
lt_prog_compiler_pic_CXX='-fno-common'
13736
# DJGPP does not support shared libraries at all
13737
lt_prog_compiler_pic_CXX=
13740
# PIC is the default for Haiku.
13741
# The "-static" flag exists, but is broken.
13742
lt_prog_compiler_static_CXX=
13745
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
13746
# Instead, we relocate shared libraries at runtime.
13749
if test -d /usr/nec; then
13750
lt_prog_compiler_pic_CXX=-Kconform_pic
13754
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13755
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13756
# sets the default TLS model and affects inlining.
13761
lt_prog_compiler_pic_CXX='-fPIC'
13766
# QNX uses GNU C++, but need to define -shared option too, otherwise
13767
# it will coredump.
13768
lt_prog_compiler_pic_CXX='-fPIC -shared'
13771
lt_prog_compiler_pic_CXX='-fPIC'
13777
# All AIX code is PIC.
13778
if test "$host_cpu" = ia64; then
13779
# AIX 5 now supports IA64 processor
13780
lt_prog_compiler_static_CXX='-Bstatic'
13782
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13786
case $cc_basename in
13788
# Green Hills C++ Compiler
13789
# _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"
13793
mingw* | cygwin* | os2* | pw32* | cegcc*)
13794
# This hack is so that the source file can tell whether it is being
13795
# built for inclusion in a dll (and should export symbols for example).
13796
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13799
case $cc_basename in
13801
lt_prog_compiler_pic_CXX='-KPIC'
13804
# Green Hills C++ Compiler
13805
lt_prog_compiler_pic_CXX='-pic'
13811
freebsd* | dragonfly*)
13812
# FreeBSD uses GNU C++
13814
hpux9* | hpux10* | hpux11*)
13815
case $cc_basename in
13817
lt_prog_compiler_wl_CXX='-Wl,'
13818
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13819
if test "$host_cpu" != ia64; then
13820
lt_prog_compiler_pic_CXX='+Z'
13824
lt_prog_compiler_wl_CXX='-Wl,'
13825
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13831
lt_prog_compiler_pic_CXX='+Z'
13840
# This is c89, which is MS Visual C++ (no shared libs)
13841
# Anyone wants to do a port?
13843
irix5* | irix6* | nonstopux*)
13844
case $cc_basename in
13846
lt_prog_compiler_wl_CXX='-Wl,'
13847
lt_prog_compiler_static_CXX='-non_shared'
13848
# CC pic flag -KPIC is the default.
13854
linux* | k*bsd*-gnu | kopensolaris*-gnu)
13855
case $cc_basename in
13858
lt_prog_compiler_wl_CXX='--backend -Wl,'
13859
lt_prog_compiler_pic_CXX='-fPIC'
13862
# old Intel C++ for x86_64 which still supported -KPIC.
13863
lt_prog_compiler_wl_CXX='-Wl,'
13864
lt_prog_compiler_pic_CXX='-KPIC'
13865
lt_prog_compiler_static_CXX='-static'
13868
# Intel C++, used to be incompatible with GCC.
13869
# ICC 10 doesn't accept -KPIC any more.
13870
lt_prog_compiler_wl_CXX='-Wl,'
13871
lt_prog_compiler_pic_CXX='-fPIC'
13872
lt_prog_compiler_static_CXX='-static'
13875
# Portland Group C++ compiler
13876
lt_prog_compiler_wl_CXX='-Wl,'
13877
lt_prog_compiler_pic_CXX='-fpic'
13878
lt_prog_compiler_static_CXX='-Bstatic'
13882
# Make sure the PIC flag is empty. It appears that all Alpha
13883
# Linux and Compaq Tru64 Unix objects are PIC.
13884
lt_prog_compiler_pic_CXX=
13885
lt_prog_compiler_static_CXX='-non_shared'
13887
xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13888
# IBM XL 8.0, 9.0 on PPC and BlueGene
13889
lt_prog_compiler_wl_CXX='-Wl,'
13890
lt_prog_compiler_pic_CXX='-qpic'
13891
lt_prog_compiler_static_CXX='-qstaticlink'
13894
case `$CC -V 2>&1 | sed 5q` in
13897
lt_prog_compiler_pic_CXX='-KPIC'
13898
lt_prog_compiler_static_CXX='-Bstatic'
13899
lt_prog_compiler_wl_CXX='-Qoption ld '
13910
case $cc_basename in
13912
lt_prog_compiler_pic_CXX='-W c,exportall'
13918
netbsd* | netbsdelf*-gnu)
13921
# QNX uses GNU C++, but need to define -shared option too, otherwise
13922
# it will coredump.
13923
lt_prog_compiler_pic_CXX='-fPIC -shared'
13925
osf3* | osf4* | osf5*)
13926
case $cc_basename in
13928
lt_prog_compiler_wl_CXX='--backend -Wl,'
13931
# Rational C++ 2.4.1
13932
lt_prog_compiler_pic_CXX='-pic'
13935
# Digital/Compaq C++
13936
lt_prog_compiler_wl_CXX='-Wl,'
13937
# Make sure the PIC flag is empty. It appears that all Alpha
13938
# Linux and Compaq Tru64 Unix objects are PIC.
13939
lt_prog_compiler_pic_CXX=
13940
lt_prog_compiler_static_CXX='-non_shared'
13949
case $cc_basename in
13951
# Sun C++ 4.2, 5.x and Centerline C++
13952
lt_prog_compiler_pic_CXX='-KPIC'
13953
lt_prog_compiler_static_CXX='-Bstatic'
13954
lt_prog_compiler_wl_CXX='-Qoption ld '
13957
# Green Hills C++ Compiler
13958
lt_prog_compiler_pic_CXX='-PIC'
13965
case $cc_basename in
13968
lt_prog_compiler_pic_CXX='-pic'
13969
lt_prog_compiler_static_CXX='-Bstatic'
13973
lt_prog_compiler_pic_CXX='-pic'
13979
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13980
case $cc_basename in
13982
lt_prog_compiler_wl_CXX='-Wl,'
13983
lt_prog_compiler_pic_CXX='-KPIC'
13984
lt_prog_compiler_static_CXX='-Bstatic'
13989
case $cc_basename in
13991
# NonStop-UX NCC 3.20
13992
lt_prog_compiler_pic_CXX='-KPIC'
14001
lt_prog_compiler_can_build_shared_CXX=no
14007
# For platforms which do not support PIC, -DPIC is meaningless:
14009
lt_prog_compiler_pic_CXX=
14012
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14016
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14017
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14018
if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14019
$as_echo_n "(cached) " >&6
14021
lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14023
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14024
$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14025
lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14028
# Check to make sure the PIC flag actually works.
14030
if test -n "$lt_prog_compiler_pic_CXX"; then
14031
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14032
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14033
if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14034
$as_echo_n "(cached) " >&6
14036
lt_cv_prog_compiler_pic_works_CXX=no
14037
ac_outfile=conftest.$ac_objext
14038
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14039
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14040
# Insert the option either (1) after the last *FLAGS variable, or
14041
# (2) before a word containing "conftest.", or (3) at the end.
14042
# Note that $ac_compile itself does not contain backslashes and begins
14043
# with a dollar sign (not a hyphen), so the echo should work correctly.
14044
# The option is referenced via a variable to avoid confusing sed.
14045
lt_compile=`echo "$ac_compile" | $SED \
14046
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14047
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14048
-e 's:$: $lt_compiler_flag:'`
14049
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14050
(eval "$lt_compile" 2>conftest.err)
14052
cat conftest.err >&5
14053
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14054
if (exit $ac_status) && test -s "$ac_outfile"; then
14055
# The compiler can only warn and ignore the option if not recognized
14056
# So say no if there are warnings other than the usual output.
14057
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14058
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14059
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14060
lt_cv_prog_compiler_pic_works_CXX=yes
14066
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14067
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14069
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14070
case $lt_prog_compiler_pic_CXX in
14072
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14075
lt_prog_compiler_pic_CXX=
14076
lt_prog_compiler_can_build_shared_CXX=no
14086
# Check to make sure the static flag actually works.
14088
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14089
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14090
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14091
if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14092
$as_echo_n "(cached) " >&6
14094
lt_cv_prog_compiler_static_works_CXX=no
14095
save_LDFLAGS="$LDFLAGS"
14096
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14097
echo "$lt_simple_link_test_code" > conftest.$ac_ext
14098
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14099
# The linker can only warn and ignore the option if not recognized
14100
# So say no if there are warnings
14101
if test -s conftest.err; then
14102
# Append any errors to the config.log.
14103
cat conftest.err 1>&5
14104
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14105
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14106
if diff conftest.exp conftest.er2 >/dev/null; then
14107
lt_cv_prog_compiler_static_works_CXX=yes
14110
lt_cv_prog_compiler_static_works_CXX=yes
14114
LDFLAGS="$save_LDFLAGS"
14117
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14118
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14120
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14123
lt_prog_compiler_static_CXX=
14129
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14130
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14131
if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14132
$as_echo_n "(cached) " >&6
14134
lt_cv_prog_compiler_c_o_CXX=no
14135
$RM -r conftest 2>/dev/null
14139
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14141
lt_compiler_flag="-o out/conftest2.$ac_objext"
14142
# Insert the option either (1) after the last *FLAGS variable, or
14143
# (2) before a word containing "conftest.", or (3) at the end.
14144
# Note that $ac_compile itself does not contain backslashes and begins
14145
# with a dollar sign (not a hyphen), so the echo should work correctly.
14146
lt_compile=`echo "$ac_compile" | $SED \
14147
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14148
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14149
-e 's:$: $lt_compiler_flag:'`
14150
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14151
(eval "$lt_compile" 2>out/conftest.err)
14153
cat out/conftest.err >&5
14154
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14155
if (exit $ac_status) && test -s out/conftest2.$ac_objext
14157
# The compiler can only warn and ignore the option if not recognized
14158
# So say no if there are warnings
14159
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14160
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14161
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14162
lt_cv_prog_compiler_c_o_CXX=yes
14167
# SGI C++ compiler will create directory out/ii_files/ for
14168
# template instantiation
14169
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14170
$RM out/* && rmdir out
14176
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14177
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14181
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14182
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14183
if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14184
$as_echo_n "(cached) " >&6
14186
lt_cv_prog_compiler_c_o_CXX=no
14187
$RM -r conftest 2>/dev/null
14191
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14193
lt_compiler_flag="-o out/conftest2.$ac_objext"
14194
# Insert the option either (1) after the last *FLAGS variable, or
14195
# (2) before a word containing "conftest.", or (3) at the end.
14196
# Note that $ac_compile itself does not contain backslashes and begins
14197
# with a dollar sign (not a hyphen), so the echo should work correctly.
14198
lt_compile=`echo "$ac_compile" | $SED \
14199
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14200
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14201
-e 's:$: $lt_compiler_flag:'`
14202
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14203
(eval "$lt_compile" 2>out/conftest.err)
14205
cat out/conftest.err >&5
14206
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14207
if (exit $ac_status) && test -s out/conftest2.$ac_objext
14209
# The compiler can only warn and ignore the option if not recognized
14210
# So say no if there are warnings
14211
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14212
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14213
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14214
lt_cv_prog_compiler_c_o_CXX=yes
14219
# SGI C++ compiler will create directory out/ii_files/ for
14220
# template instantiation
14221
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14222
$RM out/* && rmdir out
14228
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14229
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14234
hard_links="nottested"
14235
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14236
# do not overwrite the value of need_locks provided by the user
14237
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14238
$as_echo_n "checking if we can lock with hard links... " >&6; }
14241
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14243
ln conftest.a conftest.b 2>&5 || hard_links=no
14244
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14245
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14246
$as_echo "$hard_links" >&6; }
14247
if test "$hard_links" = no; then
14248
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14249
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14258
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14259
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14261
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14262
exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14265
# If we're using GNU nm, then we don't want the "-C" option.
14266
# -C means demangle to AIX nm, but means don't demangle with GNU nm
14267
# Also, AIX nm treats weak defined symbols like other global defined
14268
# symbols, whereas GNU nm marks them as "W".
14269
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14270
export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14272
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'
14276
export_symbols_cmds_CXX="$ltdll_cmds"
14278
cygwin* | mingw* | cegcc*)
14279
case $cc_basename in
14281
exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14284
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14285
exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14289
linux* | k*bsd*-gnu | gnu*)
14290
link_all_deplibs_CXX=no
14293
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14297
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14298
$as_echo "$ld_shlibs_CXX" >&6; }
14299
test "$ld_shlibs_CXX" = no && can_build_shared=no
14301
with_gnu_ld_CXX=$with_gnu_ld
14309
# Do we need to explicitly link libc?
14311
case "x$archive_cmds_need_lc_CXX" in
14313
# Assume -lc should be added
14314
archive_cmds_need_lc_CXX=yes
14316
if test "$enable_shared" = yes && test "$GCC" = yes; then
14317
case $archive_cmds_CXX in
14319
# FIXME: we may have to deal with multi-command sequences.
14322
# Test whether the compiler implicitly links with -lc since on some
14323
# systems, -lgcc has to come before -lc. If gcc already passes -lc
14324
# to ld, don't add -lc before -lgcc.
14325
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14326
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14327
if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14328
$as_echo_n "(cached) " >&6
14331
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14333
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14334
(eval $ac_compile) 2>&5
14336
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14337
test $ac_status = 0; } 2>conftest.err; then
14340
libobjs=conftest.$ac_objext
14342
wl=$lt_prog_compiler_wl_CXX
14343
pic_flag=$lt_prog_compiler_pic_CXX
14349
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14350
allow_undefined_flag_CXX=
14351
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14352
(eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14354
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14355
test $ac_status = 0; }
14357
lt_cv_archive_cmds_need_lc_CXX=no
14359
lt_cv_archive_cmds_need_lc_CXX=yes
14361
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14363
cat conftest.err 1>&5
14368
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14369
$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14370
archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14438
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14439
$as_echo_n "checking dynamic linker characteristics... " >&6; }
14441
library_names_spec=
14442
libname_spec='lib$name'
14446
postuninstall_cmds=
14450
shlibpath_overrides_runpath=unknown
14452
dynamic_linker="$host_os ld.so"
14453
sys_lib_dlsearch_path_spec="/lib /usr/lib"
14454
need_lib_prefix=unknown
14455
hardcode_into_libs=no
14457
# when you set need_version to no, make sure it does not cause -set_version
14458
# flags to be left without arguments
14459
need_version=unknown
14463
version_type=linux # correct to gnu/linux during the next big refactor
14464
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14465
shlibpath_var=LIBPATH
14467
# AIX 3 has no versioning support, so we append a major version to the name.
14468
soname_spec='${libname}${release}${shared_ext}$major'
14472
version_type=linux # correct to gnu/linux during the next big refactor
14475
hardcode_into_libs=yes
14476
if test "$host_cpu" = ia64; then
14477
# AIX 5 supports IA64
14478
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14479
shlibpath_var=LD_LIBRARY_PATH
14481
# With GCC up to 2.95.x, collect2 would create an import file
14482
# for dependence libraries. The import file would start with
14483
# the line `#! .'. This would cause the generated library to
14484
# depend on `.', always an invalid library. This was fixed in
14485
# development snapshots of GCC prior to 3.0.
14487
aix4 | aix4.[01] | aix4.[01].*)
14488
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14490
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14493
can_build_shared=no
14497
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14498
# soname into executable. Probably we can add versioning support to
14499
# collect2, so additional links can be useful in future.
14500
if test "$aix_use_runtimelinking" = yes; then
14501
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
14502
# instead of lib<name>.a to let people know that these are not
14503
# typical AIX shared libraries.
14504
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14506
# We preserve .a as extension for shared libraries through AIX4.2
14507
# and later when we are not doing run time linking.
14508
library_names_spec='${libname}${release}.a $libname.a'
14509
soname_spec='${libname}${release}${shared_ext}$major'
14511
shlibpath_var=LIBPATH
14518
# Since July 2007 AmigaOS4 officially supports .so libraries.
14519
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14520
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14523
library_names_spec='$libname.ixlibrary $libname.a'
14524
# Create ${libname}_ixlibrary.a entries in /sys/libs.
14525
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
14531
library_names_spec='${libname}${shared_ext}'
14532
dynamic_linker="$host_os ld.so"
14533
shlibpath_var=LIBRARY_PATH
14537
version_type=linux # correct to gnu/linux during the next big refactor
14539
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14540
soname_spec='${libname}${release}${shared_ext}$major'
14541
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14542
shlibpath_var=LD_LIBRARY_PATH
14543
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14544
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14545
# the default ld.so.conf also contains /usr/contrib/lib and
14546
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14547
# libtool to hard-code these into programs
14550
cygwin* | mingw* | pw32* | cegcc*)
14551
version_type=windows
14556
case $GCC,$cc_basename in
14559
library_names_spec='$libname.dll.a'
14560
# DLL is installed to $(libdir)/../bin by postinstall_cmds
14561
postinstall_cmds='base_file=`basename \${file}`~
14562
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14563
dldir=$destdir/`dirname \$dlpath`~
14564
test -d \$dldir || mkdir -p \$dldir~
14565
$install_prog $dir/$dlname \$dldir/$dlname~
14566
chmod a+x \$dldir/$dlname~
14567
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14568
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14570
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14571
dlpath=$dir/\$dldll~
14573
shlibpath_overrides_runpath=yes
14577
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
14578
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14582
# MinGW DLLs use traditional 'lib' prefix
14583
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14586
# pw32 DLLs use 'pw' prefix rather than 'lib'
14587
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14590
dynamic_linker='Win32 ld.exe'
14595
libname_spec='$name'
14596
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14597
library_names_spec='${libname}.dll.lib'
14601
sys_lib_search_path_spec=
14604
for lt_path in $LIB
14607
# Let DOS variable expansion print the short 8.3 style file name.
14608
lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14609
sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14612
# Convert to MSYS style.
14613
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14616
# Convert to unix form, then to dos form, then back to unix form
14617
# but this time dos style (no spaces!) so that the unix form looks
14618
# like /cygdrive/c/PROGRA~1:/cygdr...
14619
sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14620
sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14621
sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14624
sys_lib_search_path_spec="$LIB"
14625
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14626
# It is most probably a Windows format PATH.
14627
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14629
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14631
# FIXME: find the short name or the path components, as spaces are
14632
# common. (e.g. "Program Files" -> "PROGRA~1")
14636
# DLL is installed to $(libdir)/../bin by postinstall_cmds
14637
postinstall_cmds='base_file=`basename \${file}`~
14638
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14639
dldir=$destdir/`dirname \$dlpath`~
14640
test -d \$dldir || mkdir -p \$dldir~
14641
$install_prog $dir/$dlname \$dldir/$dlname'
14642
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14643
dlpath=$dir/\$dldll~
14645
shlibpath_overrides_runpath=yes
14646
dynamic_linker='Win32 link.exe'
14650
# Assume MSVC wrapper
14651
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14652
dynamic_linker='Win32 ld.exe'
14655
# FIXME: first we should search . and the directory the executable is in
14659
darwin* | rhapsody*)
14660
dynamic_linker="$host_os dyld"
14661
version_type=darwin
14664
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14665
soname_spec='${libname}${release}${major}$shared_ext'
14666
shlibpath_overrides_runpath=yes
14667
shlibpath_var=DYLD_LIBRARY_PATH
14668
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14670
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14674
version_type=linux # correct to gnu/linux during the next big refactor
14677
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14678
soname_spec='${libname}${release}${shared_ext}$major'
14679
shlibpath_var=LD_LIBRARY_PATH
14682
freebsd* | dragonfly*)
14683
# DragonFly does not have aout. When/if they implement a new
14684
# versioning mechanism, adjust this.
14685
if test -x /usr/bin/objformat; then
14686
objformat=`/usr/bin/objformat`
14689
freebsd[23].*) objformat=aout ;;
14690
*) objformat=elf ;;
14693
version_type=freebsd-$objformat
14694
case $version_type in
14696
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14701
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14705
shlibpath_var=LD_LIBRARY_PATH
14708
shlibpath_overrides_runpath=yes
14710
freebsd3.[01]* | freebsdelf3.[01]*)
14711
shlibpath_overrides_runpath=yes
14712
hardcode_into_libs=yes
14714
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14715
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14716
shlibpath_overrides_runpath=no
14717
hardcode_into_libs=yes
14719
*) # from 4.6 on, and DragonFly
14720
shlibpath_overrides_runpath=yes
14721
hardcode_into_libs=yes
14727
version_type=linux # correct to gnu/linux during the next big refactor
14730
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14731
soname_spec='${libname}${release}${shared_ext}$major'
14732
shlibpath_var=LD_LIBRARY_PATH
14733
shlibpath_overrides_runpath=no
14734
hardcode_into_libs=yes
14738
version_type=linux # correct to gnu/linux during the next big refactor
14741
dynamic_linker="$host_os runtime_loader"
14742
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14743
soname_spec='${libname}${release}${shared_ext}$major'
14744
shlibpath_var=LIBRARY_PATH
14745
shlibpath_overrides_runpath=yes
14746
sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14747
hardcode_into_libs=yes
14750
hpux9* | hpux10* | hpux11*)
14751
# Give a soname corresponding to the major version so that dld.sl refuses to
14752
# link against other versions.
14759
hardcode_into_libs=yes
14760
dynamic_linker="$host_os dld.so"
14761
shlibpath_var=LD_LIBRARY_PATH
14762
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14763
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14764
soname_spec='${libname}${release}${shared_ext}$major'
14765
if test "X$HPUX_IA64_MODE" = X32; then
14766
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14768
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14770
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14774
hardcode_into_libs=yes
14775
dynamic_linker="$host_os dld.sl"
14776
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14777
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14778
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14779
soname_spec='${libname}${release}${shared_ext}$major'
14780
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14781
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14785
dynamic_linker="$host_os dld.sl"
14786
shlibpath_var=SHLIB_PATH
14787
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14788
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14789
soname_spec='${libname}${release}${shared_ext}$major'
14792
# HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14793
postinstall_cmds='chmod 555 $lib'
14794
# or fails outright, so override atomically:
14795
install_override_mode=555
14799
version_type=linux # correct to gnu/linux during the next big refactor
14802
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14803
soname_spec='${libname}${release}${shared_ext}$major'
14804
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14805
shlibpath_var=LD_LIBRARY_PATH
14806
shlibpath_overrides_runpath=no
14807
hardcode_into_libs=yes
14810
irix5* | irix6* | nonstopux*)
14812
nonstopux*) version_type=nonstopux ;;
14814
if test "$lt_cv_prog_gnu_ld" = yes; then
14815
version_type=linux # correct to gnu/linux during the next big refactor
14822
soname_spec='${libname}${release}${shared_ext}$major'
14823
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14825
irix5* | nonstopux*)
14826
libsuff= shlibsuff=
14829
case $LD in # libtool.m4 will add one of these switches to LD
14830
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14831
libsuff= shlibsuff= libmagic=32-bit;;
14832
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14833
libsuff=32 shlibsuff=N32 libmagic=N32;;
14834
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14835
libsuff=64 shlibsuff=64 libmagic=64-bit;;
14836
*) libsuff= shlibsuff= libmagic=never-match;;
14840
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14841
shlibpath_overrides_runpath=no
14842
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14843
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14844
hardcode_into_libs=yes
14847
# No shared lib support for Linux oldld, aout, or coff.
14848
linux*oldld* | linux*aout* | linux*coff*)
14852
# This must be glibc/ELF.
14853
linux* | k*bsd*-gnu | kopensolaris*-gnu)
14854
version_type=linux # correct to gnu/linux during the next big refactor
14857
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14858
soname_spec='${libname}${release}${shared_ext}$major'
14859
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14860
shlibpath_var=LD_LIBRARY_PATH
14861
shlibpath_overrides_runpath=no
14863
# Some binutils ld are patched to set DT_RUNPATH
14864
if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14865
$as_echo_n "(cached) " >&6
14867
lt_cv_shlibpath_overrides_runpath=no
14868
save_LDFLAGS=$LDFLAGS
14869
save_libdir=$libdir
14870
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14871
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14872
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14873
/* end confdefs.h. */
14883
if ac_fn_cxx_try_link "$LINENO"; then :
14884
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14885
lt_cv_shlibpath_overrides_runpath=yes
14888
rm -f core conftest.err conftest.$ac_objext \
14889
conftest$ac_exeext conftest.$ac_ext
14890
LDFLAGS=$save_LDFLAGS
14891
libdir=$save_libdir
14895
shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14897
# This implies no fast_install, which is unacceptable.
14898
# Some rework will be needed to allow for fast_install
14899
# before this can be enabled.
14900
hardcode_into_libs=yes
14902
# Append ld.so.conf contents to the search path
14903
if test -f /etc/ld.so.conf; then
14904
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;s/"//g;/^$/d' | tr '\n' ' '`
14905
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14908
# We used to test for /lib/ld.so.1 and disable shared libraries on
14909
# powerpc, because MkLinux only supported shared libraries with the
14910
# GNU dynamic linker. Since this was broken with cross compilers,
14911
# most powerpc-linux boxes support dynamic linking these days and
14912
# people can always --disable-shared, the test was removed, and we
14913
# assume the GNU/Linux dynamic linker is in use.
14914
dynamic_linker='GNU/Linux ld.so'
14921
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14922
soname_spec='${libname}${release}${shared_ext}$major'
14923
shlibpath_var=LD_LIBRARY_PATH
14924
shlibpath_overrides_runpath=no
14925
hardcode_into_libs=yes
14926
dynamic_linker='NetBSD ld.elf_so'
14933
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14934
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14935
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14936
dynamic_linker='NetBSD (a.out) ld.so'
14938
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14939
soname_spec='${libname}${release}${shared_ext}$major'
14940
dynamic_linker='NetBSD ld.elf_so'
14942
shlibpath_var=LD_LIBRARY_PATH
14943
shlibpath_overrides_runpath=yes
14944
hardcode_into_libs=yes
14948
version_type=linux # correct to gnu/linux during the next big refactor
14949
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14950
shlibpath_var=LD_LIBRARY_PATH
14951
shlibpath_overrides_runpath=yes
14958
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14959
soname_spec='${libname}${release}${shared_ext}$major'
14960
shlibpath_var=LD_LIBRARY_PATH
14961
shlibpath_overrides_runpath=no
14962
hardcode_into_libs=yes
14963
dynamic_linker='ldqnx.so'
14968
sys_lib_dlsearch_path_spec="/usr/lib"
14970
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14972
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14973
*) need_version=no ;;
14975
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14976
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14977
shlibpath_var=LD_LIBRARY_PATH
14978
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14980
openbsd2.[89] | openbsd2.[89].*)
14981
shlibpath_overrides_runpath=no
14984
shlibpath_overrides_runpath=yes
14988
shlibpath_overrides_runpath=yes
14993
libname_spec='$name'
14996
library_names_spec='$libname${shared_ext} $libname.a'
14997
dynamic_linker='OS/2 ld.exe'
14998
shlibpath_var=LIBPATH
15001
osf3* | osf4* | osf5*)
15005
soname_spec='${libname}${release}${shared_ext}$major'
15006
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15007
shlibpath_var=LD_LIBRARY_PATH
15008
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15009
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15017
version_type=linux # correct to gnu/linux during the next big refactor
15020
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15021
soname_spec='${libname}${release}${shared_ext}$major'
15022
shlibpath_var=LD_LIBRARY_PATH
15023
shlibpath_overrides_runpath=yes
15024
hardcode_into_libs=yes
15025
# ldd complains unless libraries are executable
15026
postinstall_cmds='chmod +x $lib'
15031
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15032
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15033
shlibpath_var=LD_LIBRARY_PATH
15034
shlibpath_overrides_runpath=yes
15035
if test "$with_gnu_ld" = yes; then
15042
version_type=linux # correct to gnu/linux during the next big refactor
15043
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15044
soname_spec='${libname}${release}${shared_ext}$major'
15045
shlibpath_var=LD_LIBRARY_PATH
15046
case $host_vendor in
15048
shlibpath_overrides_runpath=no
15050
runpath_var=LD_RUN_PATH
15058
shlibpath_overrides_runpath=no
15059
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15065
if test -d /usr/nec ;then
15066
version_type=linux # correct to gnu/linux during the next big refactor
15067
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15068
soname_spec='$libname${shared_ext}.$major'
15069
shlibpath_var=LD_LIBRARY_PATH
15073
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15074
version_type=freebsd-elf
15077
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15078
soname_spec='${libname}${release}${shared_ext}$major'
15079
shlibpath_var=LD_LIBRARY_PATH
15080
shlibpath_overrides_runpath=yes
15081
hardcode_into_libs=yes
15082
if test "$with_gnu_ld" = yes; then
15083
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15085
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15088
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15092
sys_lib_dlsearch_path_spec='/usr/lib'
15096
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15097
version_type=linux # correct to gnu/linux during the next big refactor
15100
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15101
shlibpath_var=LD_LIBRARY_PATH
15102
shlibpath_overrides_runpath=no
15103
hardcode_into_libs=yes
15107
version_type=linux # correct to gnu/linux during the next big refactor
15108
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15109
soname_spec='${libname}${release}${shared_ext}$major'
15110
shlibpath_var=LD_LIBRARY_PATH
15117
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15118
$as_echo "$dynamic_linker" >&6; }
15119
test "$dynamic_linker" = no && can_build_shared=no
15121
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15122
if test "$GCC" = yes; then
15123
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15126
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15127
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15129
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15130
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15170
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15171
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15172
hardcode_action_CXX=
15173
if test -n "$hardcode_libdir_flag_spec_CXX" ||
15174
test -n "$runpath_var_CXX" ||
15175
test "X$hardcode_automatic_CXX" = "Xyes" ; then
15177
# We can hardcode non-existent directories.
15178
if test "$hardcode_direct_CXX" != no &&
15179
# If the only mechanism to avoid hardcoding is shlibpath_var, we
15180
# have to relink, otherwise we might link with an installed library
15181
# when we should be linking with a yet-to-be-installed one
15182
## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15183
test "$hardcode_minus_L_CXX" != no; then
15184
# Linking always hardcodes the temporary library directory.
15185
hardcode_action_CXX=relink
15187
# We can link without hardcoding, and we can hardcode nonexisting dirs.
15188
hardcode_action_CXX=immediate
15191
# We cannot hardcode anything, or else we can only hardcode existing
15193
hardcode_action_CXX=unsupported
15195
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15196
$as_echo "$hardcode_action_CXX" >&6; }
15198
if test "$hardcode_action_CXX" = relink ||
15199
test "$inherit_rpath_CXX" = yes; then
15200
# Fast installation is not supported
15201
enable_fast_install=no
15202
elif test "$shlibpath_overrides_runpath" = yes ||
15203
test "$enable_shared" = no; then
15204
# Fast installation is not necessary
15205
enable_fast_install=needless
15214
fi # test -n "$compiler"
15217
CFLAGS=$lt_save_CFLAGS
15221
with_gnu_ld=$lt_save_with_gnu_ld
15222
lt_cv_path_LDCXX=$lt_cv_path_LD
15223
lt_cv_path_LD=$lt_save_path_LD
15224
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15225
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15226
fi # test "$_lt_caught_CXX_error" != yes
15229
ac_cpp='$CPP $CPPFLAGS'
15230
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15231
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15232
ac_compiler_gnu=$ac_cv_c_compiler_gnu