135
137
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
# Use a proper internal environment variable to ensure we don't fall
138
# into an infinite loop, continuously re-executing ourselves.
139
if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140
_as_can_reexec=no; export _as_can_reexec;
141
# We cannot yet assume a decent shell, so we have to provide a
142
# neutralization value for shells without unset; and this also
143
# works around shells that cannot unset nonexistent variables.
144
# Preserve -v and -x to the replacement shell.
147
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149
*v*x* | *x*v* ) as_opts=-vx ;;
154
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155
# Admittedly, this is quite paranoid, since all the known shells bail
156
# out after a failed `exec'.
157
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160
# We don't want this to propagate to other subprocesses.
161
{ _as_can_reexec=; unset _as_can_reexec;}
162
139
if test "x$CONFIG_SHELL" = x; then
163
140
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
248
224
if test "x$CONFIG_SHELL" != x; then :
250
# We cannot yet assume a decent shell, so we have to provide a
251
# neutralization value for shells without unset; and this also
252
# works around shells that cannot unset nonexistent variables.
253
# Preserve -v and -x to the replacement shell.
256
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258
*v*x* | *x*v* ) as_opts=-vx ;;
263
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264
# Admittedly, this is quite paranoid, since all the known shells bail
265
# out after a failed `exec'.
266
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
225
# We cannot yet assume a decent shell, so we have to provide a
226
# neutralization value for shells without unset; and this also
227
# works around shells that cannot unset nonexistent variables.
228
# Preserve -v and -x to the replacement shell.
231
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
234
*v*x* | *x*v* ) as_opts=-vx ;;
239
exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
270
242
if test x$as_have_required = xno; then :
6284
6262
if test -n "$NM"; then
6285
6263
# Let the user override the test.
6288
lt_nm_to_check="${ac_tool_prefix}nm"
6266
lt_nm_to_check=${ac_tool_prefix}nm
6289
6267
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6290
6268
lt_nm_to_check="$lt_nm_to_check nm"
6292
6270
for lt_tmp_nm in $lt_nm_to_check; do
6293
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6271
lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6294
6272
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6296
6274
test -z "$ac_dir" && ac_dir=.
6297
tmp_nm="$ac_dir/$lt_tmp_nm"
6298
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6275
tmp_nm=$ac_dir/$lt_tmp_nm
6276
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6299
6277
# Check to see if the nm accepts a BSD-compat flag.
6300
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
6278
# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6301
6279
# nm: unknown option "B" ignored
6302
6280
# Tru64's nm complains that /dev/null is an invalid object file
6303
6281
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6304
6282
*/dev/null* | *'Invalid file or object type'*)
6305
6283
lt_cv_path_NM="$tmp_nm -B"
6309
6287
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6311
6289
lt_cv_path_NM="$tmp_nm -p"
6315
6293
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6588
6566
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6589
6567
if test -n "$lt_cv_sys_max_cmd_len" && \
6590
test undefined != "$lt_cv_sys_max_cmd_len"; then
6568
test undefined != "$lt_cv_sys_max_cmd_len"; then
6591
6569
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6592
6570
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6594
6572
# Make teststring a little bigger before we do anything with it.
6595
6573
# a 1K string should be a reasonable start.
6596
for i in 1 2 3 4 5 6 7 8 ; do
6574
for i in 1 2 3 4 5 6 7 8; do
6597
6575
teststring=$teststring$teststring
6599
6577
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6600
6578
# If test is not a shell built-in, we'll probably end up computing a
6601
6579
# maximum length that is only half of the actual maximum length, but
6602
6580
# we can't tell.
6603
while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6581
while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6604
6582
= "X$teststring$teststring"; } >/dev/null 2>&1 &&
6605
test $i != 17 # 1/2 MB should be enough
6583
test 17 != "$i" # 1/2 MB should be enough
6607
6585
i=`expr $i + 1`
6608
6586
teststring=$teststring$teststring
7787
7740
symcode='[ABCDGIRSTW]' ;;
7743
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7744
# Gets list of data symbols to import.
7745
lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7746
# Adjust the below global symbol transforms to fixup imported variables.
7747
lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7748
lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7749
lt_c_name_lib_hook="\
7750
-e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7751
-e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7753
# Disable hooks by default.
7754
lt_cv_sys_global_symbol_to_import=
7790
7760
# Transform an extracted symbol line into a proper C declaration.
7791
7761
# Some systems (esp. on ia64) link data and code symbols differently,
7792
7762
# so use this general approach.
7793
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7763
lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7765
" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7766
" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7795
7768
# Transform an extracted symbol line into symbol name and symbol address
7796
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7797
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
7769
lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7771
" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7772
" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7774
# Transform an extracted symbol line into symbol name with lib prefix and
7776
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7777
$lt_c_name_lib_hook\
7778
" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7779
" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7780
" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7799
7782
# Handle CRLF in mingw tool chain
7813
7796
# Write the raw and C identifiers.
7814
7797
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7815
# Fake it for dumpbin and say T for any non-static function
7816
# and D for any global variable.
7798
# Fake it for dumpbin and say T for any non-static function,
7799
# D for any global variable and I for any imported variable.
7817
7800
# Also find C++ and __fastcall symbols from MSVC++,
7818
7801
# which start with @ or ?.
7819
7802
lt_cv_sys_global_symbol_pipe="$AWK '"\
7820
7803
" {last_section=section; section=\$ 3};"\
7821
7804
" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7822
7805
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7806
" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7807
" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7808
" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7823
7809
" \$ 0!~/External *\|/{next};"\
7824
7810
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7825
7811
" {if(hide[section]) next};"\
7826
" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7827
" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7828
" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7829
" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7812
" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7813
" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7814
" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7815
" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7830
7816
" ' prfx=^$ac_symprfx"
7832
7818
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8107
8105
rm -rf conftest*
8110
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8109
# Find out what ABI is being produced by ac_compile, and set linker
8110
# options accordingly.
8111
echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8112
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8113
(eval $ac_compile) 2>&5
8115
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8116
test $ac_status = 0; }; then
8118
case `/usr/bin/file conftest.$ac_objext` in
8126
case `/usr/bin/file conftest.$ac_objext` in
8128
emul="${emul}btsmip"
8131
emul="${emul}ltsmip"
8134
case `/usr/bin/file conftest.$ac_objext` in
8139
LD="${LD-ld} -m $emul"
8144
x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8111
8145
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8112
# Find out which ABI we are using.
8146
# Find out what ABI is being produced by ac_compile, and set linker
8147
# options accordingly. Note that the listed cases only cover the
8148
# situations where additional linker options are needed (such as when
8149
# doing 32-bit compilation for a host where ld defaults to 64-bit, or
8150
# vice versa); the common cases where no linker options are needed do
8151
# not appear in the list.
8113
8152
echo 'int i;' > conftest.$ac_ext
8114
8153
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8115
8154
(eval $ac_compile) 2>&5
8965
9011
$as_echo "$lt_cv_ld_force_load" >&6; }
8966
9012
case $host_os in
8967
9013
rhapsody* | darwin1.[012])
8968
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9014
_lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8970
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9016
_lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8971
9017
darwin*) # darwin 5.x on
8972
9018
# if running on 10.5 or later, the deployment target defaults
8973
9019
# to the OS version, if on x86, and 10.4, the deployment
8974
9020
# target defaults to 10.4. Don't you love it?
8975
9021
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8976
9022
10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8977
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9023
_lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8979
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9025
_lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8981
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9027
_lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8985
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9031
if test yes = "$lt_cv_apple_cc_single_mod"; then
8986
9032
_lt_dar_single_mod='$single_module'
8988
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8989
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9034
if test yes = "$lt_cv_ld_exported_symbols_list"; then
9035
_lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8991
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9037
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8993
if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9039
if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8994
9040
_lt_dsymutil='~$DSYMUTIL $lib || :'
9570
9614
case $MAGIC_CMD in
9571
9615
[\\/*] | ?:[\\/]*)
9572
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9616
lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9575
lt_save_MAGIC_CMD="$MAGIC_CMD"
9576
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9619
lt_save_MAGIC_CMD=$MAGIC_CMD
9620
lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9577
9621
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9578
9622
for ac_dir in $ac_dummy; do
9580
9624
test -z "$ac_dir" && ac_dir=.
9581
if test -f $ac_dir/${ac_tool_prefix}file; then
9582
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9625
if test -f "$ac_dir/${ac_tool_prefix}file"; then
9626
lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9583
9627
if test -n "$file_magic_test_file"; then
9584
9628
case $deplibs_check_method in
9585
9629
"file_magic "*)
9586
9630
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9587
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9631
MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9588
9632
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9589
9633
$EGREP "$file_magic_regex" > /dev/null; then
9636
9680
case $MAGIC_CMD in
9637
9681
[\\/*] | ?:[\\/]*)
9638
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9682
lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9641
lt_save_MAGIC_CMD="$MAGIC_CMD"
9642
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9685
lt_save_MAGIC_CMD=$MAGIC_CMD
9686
lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9643
9687
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9644
9688
for ac_dir in $ac_dummy; do
9646
9690
test -z "$ac_dir" && ac_dir=.
9647
if test -f $ac_dir/file; then
9648
lt_cv_path_MAGIC_CMD="$ac_dir/file"
9691
if test -f "$ac_dir/file"; then
9692
lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9649
9693
if test -n "$file_magic_test_file"; then
9650
9694
case $deplibs_check_method in
9651
9695
"file_magic "*)
9652
9696
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9653
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9697
MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9654
9698
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9655
9699
$EGREP "$file_magic_regex" > /dev/null; then
10483
if test "$lt_use_gnu_ld_interface" = yes; then
10545
if test yes = "$lt_use_gnu_ld_interface"; then
10484
10546
# If archive_cmds runs LD, not CC, wlarc should be empty
10487
10549
# Set some defaults for GNU ld with shared library support. These
10488
10550
# are reset later if shared libraries are not supported. Putting them
10489
10551
# here allows them to be overridden if necessary.
10490
10552
runpath_var=LD_RUN_PATH
10491
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10492
export_dynamic_flag_spec='${wl}--export-dynamic'
10553
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10554
export_dynamic_flag_spec='$wl--export-dynamic'
10493
10555
# ancient GNU ld didn't support --whole-archive et. al.
10494
10556
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10495
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10557
whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10497
10559
whole_archive_flag_spec=
10499
10561
supports_anon_versioning=no
10500
case `$LD -v 2>&1` in
10562
case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10501
10563
*GNU\ gold*) supports_anon_versioning=yes ;;
10502
10564
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10503
10565
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10563
10625
exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10565
10627
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10566
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10567
# If the export-symbols file already is a .def file (1st line
10568
# is EXPORTS), use it as is; otherwise, prepend...
10569
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10570
cp $export_symbols $output_objdir/$soname.def;
10572
echo EXPORTS > $output_objdir/$soname.def;
10573
cat $export_symbols >> $output_objdir/$soname.def;
10575
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10628
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10629
# If the export-symbols file already is a .def file, use it as
10630
# is; otherwise, prepend EXPORTS...
10631
archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10632
cp $export_symbols $output_objdir/$soname.def;
10634
echo EXPORTS > $output_objdir/$soname.def;
10635
cat $export_symbols >> $output_objdir/$soname.def;
10637
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10582
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10644
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10583
10645
link_all_deplibs=yes
10586
10648
interix[3-9]*)
10587
10649
hardcode_direct=no
10588
10650
hardcode_shlibpath_var=no
10589
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10590
export_dynamic_flag_spec='${wl}-E'
10651
hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10652
export_dynamic_flag_spec='$wl-E'
10591
10653
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10592
10654
# Instead, shared libraries are loaded at an image base (0x10000000 by
10593
10655
# default) and relocated if they conflict, which is a slow very memory
10594
10656
# consuming and fragmenting process. To avoid this, we pick a random,
10595
10657
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10596
10658
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
10597
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10598
archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10659
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10660
archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10601
10663
gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10603
if test "$host_os" = linux-dietlibc; then
10665
if test linux-dietlibc = "$host_os"; then
10604
10666
case $cc_basename in
10605
10667
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10608
10670
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10609
&& test "$tmp_diet" = no
10671
&& test no = "$tmp_diet"
10611
10673
tmp_addflag=' $pic_flag'
10612
10674
tmp_sharedflag='-shared'
10613
10675
case $cc_basename,$host_cpu in
10614
10676
pgcc*) # Portland Group C compiler
10615
whole_archive_flag_spec='${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'
10677
whole_archive_flag_spec='$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'
10616
10678
tmp_addflag=' $pic_flag'
10618
10680
pgf77* | pgf90* | pgf95* | pgfortran*)
10619
10681
# Portland Group f77 and f90 compilers
10620
whole_archive_flag_spec='${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'
10682
whole_archive_flag_spec='$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'
10621
10683
tmp_addflag=' $pic_flag -Mnomain' ;;
10622
10684
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10623
10685
tmp_addflag=' -i_dynamic' ;;
10628
10690
lf95*) # Lahey Fortran 8.1
10629
10691
whole_archive_flag_spec=
10630
10692
tmp_sharedflag='--shared' ;;
10693
nagfor*) # NAGFOR 5.3
10694
tmp_sharedflag='-Wl,-shared' ;;
10631
10695
xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10632
10696
tmp_sharedflag='-qmkshrobj'
10633
10697
tmp_addflag= ;;
10634
10698
nvcc*) # Cuda Compiler Driver 2.2
10635
whole_archive_flag_spec='${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'
10699
whole_archive_flag_spec='$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'
10636
10700
compiler_needs_object=yes
10639
10703
case `$CC -V 2>&1 | sed 5q` in
10640
10704
*Sun\ C*) # Sun C 5.9
10641
whole_archive_flag_spec='${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'
10705
whole_archive_flag_spec='$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'
10642
10706
compiler_needs_object=yes
10643
10707
tmp_sharedflag='-G' ;;
10644
10708
*Sun\ F*) # Sun Fortran 8.3
10645
10709
tmp_sharedflag='-G' ;;
10647
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10711
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10649
if test "x$supports_anon_versioning" = xyes; then
10713
if test yes = "$supports_anon_versioning"; then
10650
10714
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10651
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10652
echo "local: *; };" >> $output_objdir/$libname.ver~
10653
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10715
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10716
echo "local: *; };" >> $output_objdir/$libname.ver~
10717
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10656
10720
case $cc_basename in
10657
10721
xlf* | bgf* | bgxlf* | mpixlf*)
10658
10722
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10659
10723
whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10660
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10724
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10661
10725
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10662
if test "x$supports_anon_versioning" = xyes; then
10726
if test yes = "$supports_anon_versioning"; then
10663
10727
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10664
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10665
echo "local: *; };" >> $output_objdir/$libname.ver~
10666
$LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10728
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10729
echo "local: *; };" >> $output_objdir/$libname.ver~
10730
$LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10848
10912
shared_flag='-shared'
10849
if test "$aix_use_runtimelinking" = yes; then
10850
shared_flag="$shared_flag "'${wl}-G'
10913
if test yes = "$aix_use_runtimelinking"; then
10914
shared_flag="$shared_flag "'$wl-G'
10852
link_all_deplibs=no
10854
10917
# not using gcc
10855
if test "$host_cpu" = ia64; then
10918
if test ia64 = "$host_cpu"; then
10856
10919
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10857
10920
# chokes on -Wl,-G. The following line is correct:
10858
10921
shared_flag='-G'
10860
if test "$aix_use_runtimelinking" = yes; then
10861
shared_flag='${wl}-G'
10923
if test yes = "$aix_use_runtimelinking"; then
10924
shared_flag='$wl-G'
10863
shared_flag='${wl}-bM:SRE'
10926
shared_flag='$wl-bM:SRE'
10868
export_dynamic_flag_spec='${wl}-bexpall'
10931
export_dynamic_flag_spec='$wl-bexpall'
10869
10932
# It seems that -bexpall does not export symbols beginning with
10870
10933
# underscore (_), so it is better to generate a list of symbols to export.
10871
10934
always_export_symbols=yes
10872
if test "$aix_use_runtimelinking" = yes; then
10935
if test yes = "$aix_use_runtimelinking"; then
10873
10936
# Warning - without using the other runtime loading flags (-brtl),
10874
10937
# -berok will link without error, but may produce a broken library.
10875
10938
allow_undefined_flag='-berok'
10876
10939
# Determine the default libpath from the value encoded in an
10877
10940
# empty executable.
10878
if test "${lt_cv_aix_libpath+set}" = set; then
10941
if test set = "${lt_cv_aix_libpath+set}"; then
10879
10942
aix_libpath=$lt_cv_aix_libpath
10881
10944
if ${lt_cv_aix_libpath_+:} false; then :
10918
10981
aix_libpath=$lt_cv_aix_libpath_
10921
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10922
archive_expsym_cmds='$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"
10984
hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10985
archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10924
if test "$host_cpu" = ia64; then
10925
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10987
if test ia64 = "$host_cpu"; then
10988
hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10926
10989
allow_undefined_flag="-z nodefs"
10927
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10990
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
10929
10992
# Determine the default libpath from the value encoded in an
10930
10993
# empty executable.
10931
if test "${lt_cv_aix_libpath+set}" = set; then
10994
if test set = "${lt_cv_aix_libpath+set}"; then
10932
10995
aix_libpath=$lt_cv_aix_libpath
10934
10997
if ${lt_cv_aix_libpath_+:} false; then :
10971
11034
aix_libpath=$lt_cv_aix_libpath_
10974
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11037
hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10975
11038
# Warning - without using the other run time loading flags,
10976
11039
# -berok will link without error, but may produce a broken library.
10977
no_undefined_flag=' ${wl}-bernotok'
10978
allow_undefined_flag=' ${wl}-berok'
10979
if test "$with_gnu_ld" = yes; then
11040
no_undefined_flag=' $wl-bernotok'
11041
allow_undefined_flag=' $wl-berok'
11042
if test yes = "$with_gnu_ld"; then
10980
11043
# We only use this code for GNU lds that support --whole-archive.
10981
whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11044
whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10983
11046
# Exported symbols can be pulled into shared objects from archives
10984
11047
whole_archive_flag_spec='$convenience'
10986
11049
archive_cmds_need_lc=yes
10987
11050
# This is similar to how AIX traditionally builds its shared libraries.
10988
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11051
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $wl-bnoentry $compiler_flags $wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11024
11087
# Tell ltmain to make .lib files, not .a files.
11026
11089
# Tell ltmain to make .dll files, not .so files.
11028
11091
# FIXME: Setting linknames here is a bad hack.
11029
archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11030
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11031
sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11033
sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11035
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11092
archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11093
archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11094
cp "$export_symbols" "$output_objdir/$soname.def";
11095
echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11097
$SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11099
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11037
11101
# The linker will not automatically build a static lib if we build a DLL.
11038
11102
# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11039
11103
enable_shared_with_static_runtimes=yes
11081
11145
hardcode_direct=no
11082
11146
hardcode_automatic=yes
11083
11147
hardcode_shlibpath_var=unsupported
11084
if test "$lt_cv_ld_force_load" = "yes"; then
11085
whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
11148
if test yes = "$lt_cv_ld_force_load"; then
11149
whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
11088
11152
whole_archive_flag_spec=''
11090
11154
link_all_deplibs=yes
11091
allow_undefined_flag="$_lt_dar_allow_undefined"
11155
allow_undefined_flag=$_lt_dar_allow_undefined
11092
11156
case $cc_basename in
11093
ifort*) _lt_dar_can_shared=yes ;;
11157
ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11094
11158
*) _lt_dar_can_shared=$GCC ;;
11096
if test "$_lt_dar_can_shared" = "yes"; then
11160
if test yes = "$_lt_dar_can_shared"; then
11097
11161
output_verbose_link_cmd=func_echo_all
11098
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11099
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11100
archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11101
module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11162
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11163
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11164
archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
11165
module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
11143
if test "$GCC" = yes; then
11144
archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11207
if test yes = "$GCC"; then
11208
archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11146
archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11210
archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11148
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11212
hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11149
11213
hardcode_libdir_separator=:
11150
11214
hardcode_direct=yes
11152
11216
# hardcode_minus_L: Not really in the search PATH,
11153
11217
# but as the default location of the library.
11154
11218
hardcode_minus_L=yes
11155
export_dynamic_flag_spec='${wl}-E'
11219
export_dynamic_flag_spec='$wl-E'
11159
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11160
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11223
if test yes,no = "$GCC,$with_gnu_ld"; then
11224
archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11162
11226
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11164
if test "$with_gnu_ld" = no; then
11165
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11228
if test no = "$with_gnu_ld"; then
11229
hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11166
11230
hardcode_libdir_separator=:
11167
11231
hardcode_direct=yes
11168
11232
hardcode_direct_absolute=yes
11169
export_dynamic_flag_spec='${wl}-E'
11233
export_dynamic_flag_spec='$wl-E'
11170
11234
# hardcode_minus_L: Not really in the search PATH,
11171
11235
# but as the default location of the library.
11172
11236
hardcode_minus_L=yes
11286
11350
rm -f core conftest.err conftest.$ac_objext \
11287
11351
conftest$ac_exeext conftest.$ac_ext
11288
LDFLAGS="$save_LDFLAGS"
11352
LDFLAGS=$save_LDFLAGS
11290
11354
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11291
11355
$as_echo "$lt_cv_irix_exported_symbol" >&6; }
11292
if test "$lt_cv_irix_exported_symbol" = yes; then
11293
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $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 ${wl}-exports_file ${wl}$export_symbols -o $lib'
11356
if test yes = "$lt_cv_irix_exported_symbol"; then
11357
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $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 $wl-exports_file $wl$export_symbols -o $lib'
11296
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11297
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
11360
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
11361
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
11299
11363
archive_cmds_need_lc='no'
11300
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11364
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11301
11365
hardcode_libdir_separator=:
11302
11366
inherit_rpath=yes
11303
11367
link_all_deplibs=yes
11306
netbsd* | netbsdelf*-gnu)
11307
11371
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11308
11372
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11325
11389
*nto* | *qnx*)
11392
openbsd* | bitrig*)
11329
11393
if test -f /usr/libexec/ld.so; then
11330
11394
hardcode_direct=yes
11331
11395
hardcode_shlibpath_var=no
11332
11396
hardcode_direct_absolute=yes
11333
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11397
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11334
11398
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11335
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11336
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11337
export_dynamic_flag_spec='${wl}-E'
11399
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11400
hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11401
export_dynamic_flag_spec='$wl-E'
11340
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11341
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11342
hardcode_libdir_flag_spec='-R$libdir'
11345
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11346
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11403
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11404
hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11364
if test "$GCC" = yes; then
11365
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11366
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $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'
11420
if test yes = "$GCC"; then
11421
allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11422
archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $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'
11368
11424
allow_undefined_flag=' -expect_unresolved \*'
11369
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11425
archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
11371
11427
archive_cmds_need_lc='no'
11372
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11428
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11373
11429
hardcode_libdir_separator=:
11376
11432
osf4* | osf5*) # as osf3* with the addition of -msym flag
11377
if test "$GCC" = yes; then
11378
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11379
archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $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'
11380
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11433
if test yes = "$GCC"; then
11434
allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11435
archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $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'
11436
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11382
11438
allow_undefined_flag=' -expect_unresolved \*'
11383
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11439
archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
11384
11440
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
11385
$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
11441
$CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
11387
11443
# Both c and cxx compiler support -rpath directly
11388
11444
hardcode_libdir_flag_spec='-rpath $libdir'
11395
11451
no_undefined_flag=' -z defs'
11396
if test "$GCC" = yes; then
11398
archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11452
if test yes = "$GCC"; then
11454
archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11399
11455
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11400
$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11456
$CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11402
11458
case `$CC -V 2>&1` in
11403
11459
*"Compilers 5.0"*)
11405
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11461
archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11406
11462
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11407
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11463
$LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11411
archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11467
archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11412
11468
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11413
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11469
$CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11488
11544
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11489
no_undefined_flag='${wl}-z,text'
11545
no_undefined_flag='$wl-z,text'
11490
11546
archive_cmds_need_lc=no
11491
11547
hardcode_shlibpath_var=no
11492
11548
runpath_var='LD_RUN_PATH'
11494
if test "$GCC" = yes; then
11495
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11496
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11550
if test yes = "$GCC"; then
11551
archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11552
archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11498
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11499
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11554
archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11555
archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11503
11559
sysv5* | sco3.2v5* | sco5v6*)
11504
# Note: We can NOT use -z defs as we might desire, because we do not
11560
# Note: We CANNOT use -z defs as we might desire, because we do not
11505
11561
# link with -lc, and that would cause any symbols used from libc to
11506
11562
# always be unresolved, which means just about no library would
11507
11563
# ever link correctly. If we're not using GNU ld we use -z text
11508
11564
# though, which does catch some bad symbols but isn't as heavy-handed
11509
11565
# as -z defs.
11510
no_undefined_flag='${wl}-z,text'
11511
allow_undefined_flag='${wl}-z,nodefs'
11566
no_undefined_flag='$wl-z,text'
11567
allow_undefined_flag='$wl-z,nodefs'
11512
11568
archive_cmds_need_lc=no
11513
11569
hardcode_shlibpath_var=no
11514
hardcode_libdir_flag_spec='${wl}-R,$libdir'
11570
hardcode_libdir_flag_spec='$wl-R,$libdir'
11515
11571
hardcode_libdir_separator=':'
11516
11572
link_all_deplibs=yes
11517
export_dynamic_flag_spec='${wl}-Bexport'
11573
export_dynamic_flag_spec='$wl-Bexport'
11518
11574
runpath_var='LD_RUN_PATH'
11520
if test "$GCC" = yes; then
11521
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11522
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11576
if test yes = "$GCC"; then
11577
archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11578
archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11524
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11525
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11580
archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11581
archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11814
11870
# Ok, now we have the path, separated by spaces, we can step through it
11815
# and add multilib dir if necessary.
11871
# and add multilib dir if necessary...
11816
11872
lt_tmp_lt_search_path_spec=
11817
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11873
lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11874
# ...but if some path component already ends with the multilib dir we assume
11875
# that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11876
case "$lt_multi_os_dir; $lt_search_path_spec " in
11877
"/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11818
11881
for lt_sys_path in $lt_search_path_spec; do
11819
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11820
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11882
if test -d "$lt_sys_path$lt_multi_os_dir"; then
11883
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11884
elif test -n "$lt_multi_os_dir"; then
11822
11885
test -d "$lt_sys_path" && \
11823
11886
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11826
11889
lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11827
BEGIN {RS=" "; FS="/|\n";} {
11890
BEGIN {RS = " "; FS = "/|\n";} {
11830
11893
for (lt_i = NF; lt_i > 0; lt_i--) {
11831
11894
if ($lt_i != "" && $lt_i != ".") {
11832
11895
if ($lt_i == "..") {
11835
11898
if (lt_count == 0) {
11836
lt_foo="/" $lt_i lt_foo;
11899
lt_foo = "/" $lt_i lt_foo;
11888
11951
need_lib_prefix=no
11889
11952
need_version=no
11890
11953
hardcode_into_libs=yes
11891
if test "$host_cpu" = ia64; then
11954
if test ia64 = "$host_cpu"; then
11892
11955
# AIX 5 supports IA64
11893
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11956
library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11894
11957
shlibpath_var=LD_LIBRARY_PATH
11896
11959
# With GCC up to 2.95.x, collect2 would create an import file
11897
11960
# for dependence libraries. The import file would start with
11898
# the line `#! .'. This would cause the generated library to
11899
# depend on `.', always an invalid library. This was fixed in
11961
# the line '#! .'. This would cause the generated library to
11962
# depend on '.', always an invalid library. This was fixed in
11900
11963
# development snapshots of GCC prior to 3.0.
11901
11964
case $host_os in
11902
11965
aix4 | aix4.[01] | aix4.[01].*)
11903
11966
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11905
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11968
echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11908
11971
can_build_shared=no
11912
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11975
# AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11913
11976
# soname into executable. Probably we can add versioning support to
11914
11977
# collect2, so additional links can be useful in future.
11915
if test "$aix_use_runtimelinking" = yes; then
11978
if test yes = "$aix_use_runtimelinking"; then
11916
11979
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
11917
11980
# instead of lib<name>.a to let people know that these are not
11918
11981
# typical AIX shared libraries.
11919
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11982
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11921
11984
# We preserve .a as extension for shared libraries through AIX4.2
11922
11985
# and later when we are not doing run time linking.
11923
library_names_spec='${libname}${release}.a $libname.a'
11924
soname_spec='${libname}${release}${shared_ext}$major'
11986
library_names_spec='$libname$release.a $libname.a'
11987
soname_spec='$libname$release$shared_ext$major'
11926
11989
shlibpath_var=LIBPATH
12255
12318
dynamic_linker=no
12322
version_type=none # Android doesn't support versioned libraries.
12325
library_names_spec='$libname$release$shared_ext'
12326
soname_spec='$libname$release$shared_ext'
12328
shlibpath_var=LD_LIBRARY_PATH
12329
shlibpath_overrides_runpath=yes
12331
# This implies no fast_install, which is unacceptable.
12332
# Some rework will be needed to allow for fast_install
12333
# before this can be enabled.
12334
hardcode_into_libs=yes
12336
dynamic_linker='Android linker'
12337
# Don't embed -rpath directories since the linker doesn't support them.
12338
hardcode_libdir_flag_spec='-L$libdir'
12258
12341
# This must be glibc/ELF.
12259
12342
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12260
12343
version_type=linux # correct to gnu/linux during the next big refactor
12261
12344
need_lib_prefix=no
12262
12345
need_version=no
12263
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12264
soname_spec='${libname}${release}${shared_ext}$major'
12346
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12347
soname_spec='$libname$release$shared_ext$major'
12265
12348
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12266
12349
shlibpath_var=LD_LIBRARY_PATH
12267
12350
shlibpath_overrides_runpath=no
12361
12432
version_type=qnx
12362
12433
need_lib_prefix=no
12363
12434
need_version=no
12364
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12365
soname_spec='${libname}${release}${shared_ext}$major'
12435
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12436
soname_spec='$libname$release$shared_ext$major'
12366
12437
shlibpath_var=LD_LIBRARY_PATH
12367
12438
shlibpath_overrides_runpath=no
12368
12439
hardcode_into_libs=yes
12369
12440
dynamic_linker='ldqnx.so'
12443
openbsd* | bitrig*)
12373
12444
version_type=sunos
12374
sys_lib_dlsearch_path_spec="/usr/lib"
12445
sys_lib_dlsearch_path_spec=/usr/lib
12375
12446
need_lib_prefix=no
12376
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12378
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12379
*) need_version=no ;;
12381
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12447
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12452
library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12382
12453
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12383
12454
shlibpath_var=LD_LIBRARY_PATH
12384
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12386
openbsd2.[89] | openbsd2.[89].*)
12387
shlibpath_overrides_runpath=no
12390
shlibpath_overrides_runpath=yes
12394
shlibpath_overrides_runpath=yes
12455
shlibpath_overrides_runpath=yes
12399
12459
libname_spec='$name'
12401
12461
need_lib_prefix=no
12402
library_names_spec='$libname${shared_ext} $libname.a'
12462
library_names_spec='$libname$shared_ext $libname.a'
12403
12463
dynamic_linker='OS/2 ld.exe'
12404
12464
shlibpath_var=LIBPATH
13536
13604
if test -n "$compiler"; then
13537
13605
# We don't want -fno-exception when compiling C++ code, so set the
13538
13606
# no_builtin_flag separately
13539
if test "$GXX" = yes; then
13607
if test yes = "$GXX"; then
13540
13608
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13542
13610
lt_prog_compiler_no_builtin_flag_CXX=
13545
if test "$GXX" = yes; then
13613
if test yes = "$GXX"; then
13546
13614
# Set up default GNU C++ configuration
13550
13618
# Check whether --with-gnu-ld was given.
13551
13619
if test "${with_gnu_ld+set}" = set; then :
13552
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13620
withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
13554
13622
with_gnu_ld=no
13558
if test "$GCC" = yes; then
13626
if test yes = "$GCC"; then
13559
13627
# Check if gcc -print-prog-name=ld gives a path.
13560
13628
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13561
13629
$as_echo_n "checking for ld used by $CC... " >&6; }
13562
13630
case $host in
13564
# gcc leaves a trailing carriage return which upsets mingw
13632
# gcc leaves a trailing carriage return, which upsets mingw
13565
13633
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13567
13635
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13659
13727
# Check if GNU C++ uses GNU ld as the underlying linker, since the
13660
13728
# archiving commands below assume that GNU ld is being used.
13661
if test "$with_gnu_ld" = yes; then
13662
archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13663
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'
13729
if test yes = "$with_gnu_ld"; then
13730
archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13731
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'
13665
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13666
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13733
hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13734
export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13668
13736
# If archive_cmds runs LD, not CC, wlarc should be empty
13669
13737
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13670
13738
# investigate it a little bit more. (MM)
13673
13741
# ancient GNU ld didn't support --whole-archive et. al.
13674
13742
if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13675
13743
$GREP 'no-whole-archive' > /dev/null; then
13676
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13744
whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13678
13746
whole_archive_flag_spec_CXX=
13775
13843
shared_flag='-shared'
13776
if test "$aix_use_runtimelinking" = yes; then
13777
shared_flag="$shared_flag "'${wl}-G'
13844
if test yes = "$aix_use_runtimelinking"; then
13845
shared_flag=$shared_flag' $wl-G'
13780
13848
# not using gcc
13781
if test "$host_cpu" = ia64; then
13849
if test ia64 = "$host_cpu"; then
13782
13850
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13783
13851
# chokes on -Wl,-G. The following line is correct:
13784
13852
shared_flag='-G'
13786
if test "$aix_use_runtimelinking" = yes; then
13787
shared_flag='${wl}-G'
13854
if test yes = "$aix_use_runtimelinking"; then
13855
shared_flag='$wl-G'
13789
shared_flag='${wl}-bM:SRE'
13857
shared_flag='$wl-bM:SRE'
13794
export_dynamic_flag_spec_CXX='${wl}-bexpall'
13862
export_dynamic_flag_spec_CXX='$wl-bexpall'
13795
13863
# It seems that -bexpall does not export symbols beginning with
13796
13864
# underscore (_), so it is better to generate a list of symbols to
13798
13866
always_export_symbols_CXX=yes
13799
if test "$aix_use_runtimelinking" = yes; then
13867
if test yes = "$aix_use_runtimelinking"; then
13800
13868
# Warning - without using the other runtime loading flags (-brtl),
13801
13869
# -berok will link without error, but may produce a broken library.
13802
13870
allow_undefined_flag_CXX='-berok'
13803
13871
# Determine the default libpath from the value encoded in an empty
13804
13872
# executable.
13805
if test "${lt_cv_aix_libpath+set}" = set; then
13873
if test set = "${lt_cv_aix_libpath+set}"; then
13806
13874
aix_libpath=$lt_cv_aix_libpath
13808
13876
if ${lt_cv_aix_libpath__CXX+:} false; then :
13845
13913
aix_libpath=$lt_cv_aix_libpath__CXX
13848
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13916
hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13850
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"
13918
archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
13852
if test "$host_cpu" = ia64; then
13853
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13920
if test ia64 = "$host_cpu"; then
13921
hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
13854
13922
allow_undefined_flag_CXX="-z nodefs"
13855
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"
13923
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"
13857
13925
# Determine the default libpath from the value encoded in an
13858
13926
# empty executable.
13859
if test "${lt_cv_aix_libpath+set}" = set; then
13927
if test set = "${lt_cv_aix_libpath+set}"; then
13860
13928
aix_libpath=$lt_cv_aix_libpath
13862
13930
if ${lt_cv_aix_libpath__CXX+:} false; then :
13952
14020
# Tell ltmain to make .lib files, not .a files.
13954
14022
# Tell ltmain to make .dll files, not .so files.
13956
14024
# FIXME: Setting linknames here is a bad hack.
13957
archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13958
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13959
$SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13961
$SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13963
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14025
archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14026
archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14027
cp "$export_symbols" "$output_objdir/$soname.def";
14028
echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14030
$SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14032
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13965
14034
# The linker will not automatically build a static lib if we build a DLL.
13966
14035
# _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13967
14036
enable_shared_with_static_runtimes_CXX=yes
13968
14037
# Don't use ranlib
13969
14038
old_postinstall_cmds_CXX='chmod 644 $oldlib'
13970
14039
postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13971
lt_tool_outputfile="@TOOL_OUTPUT@"~
13972
case $lt_outputfile in
13975
lt_outputfile="$lt_outputfile.exe"
13976
lt_tool_outputfile="$lt_tool_outputfile.exe"
13979
func_to_tool_file "$lt_outputfile"~
13980
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13981
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13982
$RM "$lt_outputfile.manifest";
14040
lt_tool_outputfile="@TOOL_OUTPUT@"~
14041
case $lt_outputfile in
14044
lt_outputfile=$lt_outputfile.exe
14045
lt_tool_outputfile=$lt_tool_outputfile.exe
14048
func_to_tool_file "$lt_outputfile"~
14049
if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14050
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14051
$RM "$lt_outputfile.manifest";
13987
14056
# _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13988
14057
# as there is no search path for DLLs.
13989
14058
hardcode_libdir_flag_spec_CXX='-L$libdir'
13990
export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
14059
export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
13991
14060
allow_undefined_flag_CXX=unsupported
13992
14061
always_export_symbols_CXX=no
13993
14062
enable_shared_with_static_runtimes_CXX=yes
13995
14064
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13996
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'
13997
# If the export-symbols file already is a .def file (1st line
13998
# is EXPORTS), use it as is; otherwise, prepend...
13999
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14000
cp $export_symbols $output_objdir/$soname.def;
14002
echo EXPORTS > $output_objdir/$soname.def;
14003
cat $export_symbols >> $output_objdir/$soname.def;
14005
$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'
14065
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'
14066
# If the export-symbols file already is a .def file, use it as
14067
# is; otherwise, prepend EXPORTS...
14068
archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14069
cp $export_symbols $output_objdir/$soname.def;
14071
echo EXPORTS > $output_objdir/$soname.def;
14072
cat $export_symbols >> $output_objdir/$soname.def;
14074
$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'
14007
14076
ld_shlibs_CXX=no
14016
14085
hardcode_direct_CXX=no
14017
14086
hardcode_automatic_CXX=yes
14018
14087
hardcode_shlibpath_var_CXX=unsupported
14019
if test "$lt_cv_ld_force_load" = "yes"; then
14020
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\"`'
14088
if test yes = "$lt_cv_ld_force_load"; then
14089
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\"`'
14023
14092
whole_archive_flag_spec_CXX=''
14025
14094
link_all_deplibs_CXX=yes
14026
allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14095
allow_undefined_flag_CXX=$_lt_dar_allow_undefined
14027
14096
case $cc_basename in
14028
ifort*) _lt_dar_can_shared=yes ;;
14097
ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14029
14098
*) _lt_dar_can_shared=$GCC ;;
14031
if test "$_lt_dar_can_shared" = "yes"; then
14100
if test yes = "$_lt_dar_can_shared"; then
14032
14101
output_verbose_link_cmd=func_echo_all
14033
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}"
14034
module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14035
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}"
14036
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}"
14037
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14038
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}"
14039
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}"
14102
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"
14103
module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14104
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"
14105
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"
14106
if test yes != "$lt_cv_apple_cc_single_mod"; then
14107
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"
14108
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"
14201
14270
interix[3-9]*)
14202
14271
hardcode_direct_CXX=no
14203
14272
hardcode_shlibpath_var_CXX=no
14204
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14205
export_dynamic_flag_spec_CXX='${wl}-E'
14273
hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14274
export_dynamic_flag_spec_CXX='$wl-E'
14206
14275
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14207
14276
# Instead, shared libraries are loaded at an image base (0x10000000 by
14208
14277
# default) and relocated if they conflict, which is a slow very memory
14209
14278
# consuming and fragmenting process. To avoid this, we pick a random,
14210
14279
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14211
14280
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
14212
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'
14213
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'
14281
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'
14282
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'
14215
14284
irix5* | irix6*)
14216
14285
case $cc_basename in
14219
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'
14288
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'
14221
14290
# Archives containing C++ object files must be created using
14222
14291
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
14275
14344
# earlier do not add the objects themselves.
14276
14345
case `$CC -V 2>&1` in
14277
14346
*"Version 7."*)
14278
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14279
archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14347
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14348
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'
14281
14350
*) # Version 8.0 or newer
14283
14352
case $host_cpu in
14284
14353
ia64*) tmp_idyn=' -i_dynamic';;
14286
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14287
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'
14355
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14356
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'
14290
14359
archive_cmds_need_lc_CXX=no
14291
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14292
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14293
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14360
hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14361
export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14362
whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14295
14364
pgCC* | pgcpp*)
14296
14365
# Portland Group C++ compiler
14297
14366
case `$CC -V` in
14298
14367
*pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14299
14368
prelink_cmds_CXX='tpldir=Template.dir~
14301
$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14302
compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14370
$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14371
compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14303
14372
old_archive_cmds_CXX='tpldir=Template.dir~
14305
$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14306
$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14374
$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14375
$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14308
14377
archive_cmds_CXX='tpldir=Template.dir~
14310
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14311
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14379
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14380
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14312
14381
archive_expsym_cmds_CXX='tpldir=Template.dir~
14314
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14315
$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'
14383
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14384
$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'
14317
14386
*) # Version 6 and above use weak symbols
14318
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14319
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'
14387
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14388
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'
14323
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14324
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14325
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'
14392
hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
14393
export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14394
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'
14329
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14330
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'
14398
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14399
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'
14332
14401
runpath_var=LD_RUN_PATH
14333
14402
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14341
14410
# explicitly linking system object files so we need to strip them
14342
14411
# from the output so that they don't get included in the library
14343
14412
# dependencies.
14344
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'
14413
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'
14346
14415
xl* | mpixl* | bgxl*)
14347
14416
# IBM XL 8.0 on PPC, with GNU ld
14348
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14349
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14350
archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14351
if test "x$supports_anon_versioning" = xyes; then
14417
hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14418
export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14419
archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14420
if test yes = "$supports_anon_versioning"; then
14352
14421
archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14353
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14354
echo "local: *; };" >> $output_objdir/$libname.ver~
14355
$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14422
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14423
echo "local: *; };" >> $output_objdir/$libname.ver~
14424
$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
14421
14490
ld_shlibs_CXX=yes
14425
# C++ shared libraries are fairly broken
14493
openbsd* | bitrig*)
14430
14494
if test -f /usr/libexec/ld.so; then
14431
14495
hardcode_direct_CXX=yes
14432
14496
hardcode_shlibpath_var_CXX=no
14433
14497
hardcode_direct_absolute_CXX=yes
14434
14498
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14435
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14436
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14437
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14438
export_dynamic_flag_spec_CXX='${wl}-E'
14439
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14499
hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14500
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
14501
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
14502
export_dynamic_flag_spec_CXX='$wl-E'
14503
whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14441
14505
output_verbose_link_cmd=func_echo_all
14473
14537
case $host in
14475
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14476
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'
14477
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14539
allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14540
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'
14541
hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14480
14544
allow_undefined_flag_CXX=' -expect_unresolved \*'
14481
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'
14545
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'
14482
14546
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14483
echo "-hidden">> $lib.exp~
14484
$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~
14547
echo "-hidden">> $lib.exp~
14548
$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~
14486
14550
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14497
14561
# explicitly linking system object files so we need to strip them
14498
14562
# from the output so that they don't get included in the library
14499
14563
# dependencies.
14500
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"'
14564
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"'
14503
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14504
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14567
if test yes,no = "$GXX,$with_gnu_ld"; then
14568
allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14505
14569
case $host in
14507
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'
14571
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'
14510
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'
14574
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'
14514
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14578
hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14515
14579
hardcode_libdir_separator_CXX=:
14517
14581
# Commands to make compiler produce verbose output that lists
14586
14650
# Green Hills C++ Compiler
14587
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14651
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14589
14653
# The C++ compiler must be used to create the archive.
14590
14654
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14593
14657
# GNU C++ compiler with Solaris linker
14594
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14595
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14658
if test yes,no = "$GXX,$with_gnu_ld"; then
14659
no_undefined_flag_CXX=' $wl-z ${wl}defs'
14596
14660
if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14597
archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14661
archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14598
14662
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14599
$CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14663
$CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14601
14665
# Commands to make compiler produce verbose output that lists
14602
14666
# what "hidden" libraries, object files and flags are used when
14603
14667
# linking a shared library.
14604
14668
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14606
# g++ 2.7 appears to require `-G' NOT `-shared' on this
14670
# g++ 2.7 appears to require '-G' NOT '-shared' on this
14608
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14672
archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14609
14673
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14610
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14674
$CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14612
14676
# Commands to make compiler produce verbose output that lists
14613
14677
# what "hidden" libraries, object files and flags are used when
14630
14694
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14631
no_undefined_flag_CXX='${wl}-z,text'
14695
no_undefined_flag_CXX='$wl-z,text'
14632
14696
archive_cmds_need_lc_CXX=no
14633
14697
hardcode_shlibpath_var_CXX=no
14634
14698
runpath_var='LD_RUN_PATH'
14636
14700
case $cc_basename in
14638
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14639
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14702
archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14703
archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14642
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14643
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14706
archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14707
archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14648
14712
sysv5* | sco3.2v5* | sco5v6*)
14649
# Note: We can NOT use -z defs as we might desire, because we do not
14713
# Note: We CANNOT use -z defs as we might desire, because we do not
14650
14714
# link with -lc, and that would cause any symbols used from libc to
14651
14715
# always be unresolved, which means just about no library would
14652
14716
# ever link correctly. If we're not using GNU ld we use -z text
14653
14717
# though, which does catch some bad symbols but isn't as heavy-handed
14654
14718
# as -z defs.
14655
no_undefined_flag_CXX='${wl}-z,text'
14656
allow_undefined_flag_CXX='${wl}-z,nodefs'
14719
no_undefined_flag_CXX='$wl-z,text'
14720
allow_undefined_flag_CXX='$wl-z,nodefs'
14657
14721
archive_cmds_need_lc_CXX=no
14658
14722
hardcode_shlibpath_var_CXX=no
14659
hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14723
hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
14660
14724
hardcode_libdir_separator_CXX=':'
14661
14725
link_all_deplibs_CXX=yes
14662
export_dynamic_flag_spec_CXX='${wl}-Bexport'
14726
export_dynamic_flag_spec_CXX='$wl-Bexport'
14663
14727
runpath_var='LD_RUN_PATH'
14665
14729
case $cc_basename in
14667
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14668
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14731
archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14732
archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14669
14733
old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14670
'"$old_archive_cmds_CXX"
14734
'"$old_archive_cmds_CXX"
14671
14735
reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14672
'"$reload_cmds_CXX"
14736
'"$reload_cmds_CXX"
14675
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14676
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14739
archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14740
archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15722
15784
need_lib_prefix=no
15723
15785
need_version=no
15724
15786
hardcode_into_libs=yes
15725
if test "$host_cpu" = ia64; then
15787
if test ia64 = "$host_cpu"; then
15726
15788
# AIX 5 supports IA64
15727
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15789
library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15728
15790
shlibpath_var=LD_LIBRARY_PATH
15730
15792
# With GCC up to 2.95.x, collect2 would create an import file
15731
15793
# for dependence libraries. The import file would start with
15732
# the line `#! .'. This would cause the generated library to
15733
# depend on `.', always an invalid library. This was fixed in
15794
# the line '#! .'. This would cause the generated library to
15795
# depend on '.', always an invalid library. This was fixed in
15734
15796
# development snapshots of GCC prior to 3.0.
15735
15797
case $host_os in
15736
15798
aix4 | aix4.[01] | aix4.[01].*)
15737
15799
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15739
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15801
echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
15742
15804
can_build_shared=no
15746
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15808
# AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
15747
15809
# soname into executable. Probably we can add versioning support to
15748
15810
# collect2, so additional links can be useful in future.
15749
if test "$aix_use_runtimelinking" = yes; then
15811
if test yes = "$aix_use_runtimelinking"; then
15750
15812
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
15751
15813
# instead of lib<name>.a to let people know that these are not
15752
15814
# typical AIX shared libraries.
15753
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15815
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15755
15817
# We preserve .a as extension for shared libraries through AIX4.2
15756
15818
# and later when we are not doing run time linking.
15757
library_names_spec='${libname}${release}.a $libname.a'
15758
soname_spec='${libname}${release}${shared_ext}$major'
15819
library_names_spec='$libname$release.a $libname.a'
15820
soname_spec='$libname$release$shared_ext$major'
15760
15822
shlibpath_var=LIBPATH
16087
16149
dynamic_linker=no
16153
version_type=none # Android doesn't support versioned libraries.
16156
library_names_spec='$libname$release$shared_ext'
16157
soname_spec='$libname$release$shared_ext'
16159
shlibpath_var=LD_LIBRARY_PATH
16160
shlibpath_overrides_runpath=yes
16162
# This implies no fast_install, which is unacceptable.
16163
# Some rework will be needed to allow for fast_install
16164
# before this can be enabled.
16165
hardcode_into_libs=yes
16167
dynamic_linker='Android linker'
16168
# Don't embed -rpath directories since the linker doesn't support them.
16169
hardcode_libdir_flag_spec_CXX='-L$libdir'
16090
16172
# This must be glibc/ELF.
16091
16173
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16092
16174
version_type=linux # correct to gnu/linux during the next big refactor
16093
16175
need_lib_prefix=no
16094
16176
need_version=no
16095
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16096
soname_spec='${libname}${release}${shared_ext}$major'
16177
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16178
soname_spec='$libname$release$shared_ext$major'
16097
16179
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16098
16180
shlibpath_var=LD_LIBRARY_PATH
16099
16181
shlibpath_overrides_runpath=no
16193
16263
version_type=qnx
16194
16264
need_lib_prefix=no
16195
16265
need_version=no
16196
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16197
soname_spec='${libname}${release}${shared_ext}$major'
16266
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16267
soname_spec='$libname$release$shared_ext$major'
16198
16268
shlibpath_var=LD_LIBRARY_PATH
16199
16269
shlibpath_overrides_runpath=no
16200
16270
hardcode_into_libs=yes
16201
16271
dynamic_linker='ldqnx.so'
16274
openbsd* | bitrig*)
16205
16275
version_type=sunos
16206
sys_lib_dlsearch_path_spec="/usr/lib"
16276
sys_lib_dlsearch_path_spec=/usr/lib
16207
16277
need_lib_prefix=no
16208
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16210
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16211
*) need_version=no ;;
16213
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16278
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16283
library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16214
16284
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16215
16285
shlibpath_var=LD_LIBRARY_PATH
16216
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16218
openbsd2.[89] | openbsd2.[89].*)
16219
shlibpath_overrides_runpath=no
16222
shlibpath_overrides_runpath=yes
16226
shlibpath_overrides_runpath=yes
16286
shlibpath_overrides_runpath=yes
16231
16290
libname_spec='$name'
16233
16292
need_lib_prefix=no
16234
library_names_spec='$libname${shared_ext} $libname.a'
16293
library_names_spec='$libname$shared_ext $libname.a'
16235
16294
dynamic_linker='OS/2 ld.exe'
16236
16295
shlibpath_var=LIBPATH
20615
20693
sed '$q' "$ltmain" >> "$cfgfile" \
20616
20694
|| (rm -f "$cfgfile"; exit 1)
20618
if test x"$xsi_shell" = xyes; then
20619
sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20623
\ */*) func_dirname_result="${1%/*}${2}" ;;\
20624
\ * ) func_dirname_result="${3}" ;;\
20626
} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20627
&& mv -f "$cfgfile.tmp" "$cfgfile" \
20628
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20629
test 0 -eq $? || _lt_function_replace_fail=:
20632
sed -e '/^func_basename ()$/,/^} # func_basename /c\
20635
\ func_basename_result="${1##*/}"\
20636
} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20637
&& mv -f "$cfgfile.tmp" "$cfgfile" \
20638
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20639
test 0 -eq $? || _lt_function_replace_fail=:
20642
sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20643
func_dirname_and_basename ()\
20646
\ */*) func_dirname_result="${1%/*}${2}" ;;\
20647
\ * ) func_dirname_result="${3}" ;;\
20649
\ func_basename_result="${1##*/}"\
20650
} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20651
&& mv -f "$cfgfile.tmp" "$cfgfile" \
20652
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20653
test 0 -eq $? || _lt_function_replace_fail=:
20656
sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20659
\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20660
\ # positional parameters, so assign one to ordinary parameter first.\
20661
\ func_stripname_result=${3}\
20662
\ func_stripname_result=${func_stripname_result#"${1}"}\
20663
\ func_stripname_result=${func_stripname_result%"${2}"}\
20664
} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20665
&& mv -f "$cfgfile.tmp" "$cfgfile" \
20666
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20667
test 0 -eq $? || _lt_function_replace_fail=:
20670
sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20671
func_split_long_opt ()\
20673
\ func_split_long_opt_name=${1%%=*}\
20674
\ func_split_long_opt_arg=${1#*=}\
20675
} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20676
&& mv -f "$cfgfile.tmp" "$cfgfile" \
20677
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20678
test 0 -eq $? || _lt_function_replace_fail=:
20681
sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20682
func_split_short_opt ()\
20684
\ func_split_short_opt_arg=${1#??}\
20685
\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20686
} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20687
&& mv -f "$cfgfile.tmp" "$cfgfile" \
20688
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20689
test 0 -eq $? || _lt_function_replace_fail=:
20692
sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20696
\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20697
\ *) func_lo2o_result=${1} ;;\
20699
} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20700
&& mv -f "$cfgfile.tmp" "$cfgfile" \
20701
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20702
test 0 -eq $? || _lt_function_replace_fail=:
20705
sed -e '/^func_xform ()$/,/^} # func_xform /c\
20708
func_xform_result=${1%.*}.lo\
20709
} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20710
&& mv -f "$cfgfile.tmp" "$cfgfile" \
20711
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20712
test 0 -eq $? || _lt_function_replace_fail=:
20715
sed -e '/^func_arith ()$/,/^} # func_arith /c\
20718
func_arith_result=$(( $* ))\
20719
} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20720
&& mv -f "$cfgfile.tmp" "$cfgfile" \
20721
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20722
test 0 -eq $? || _lt_function_replace_fail=:
20725
sed -e '/^func_len ()$/,/^} # func_len /c\
20728
func_len_result=${#1}\
20729
} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20730
&& mv -f "$cfgfile.tmp" "$cfgfile" \
20731
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20732
test 0 -eq $? || _lt_function_replace_fail=:
20736
if test x"$lt_shell_append" = xyes; then
20737
sed -e '/^func_append ()$/,/^} # func_append /c\
20740
eval "${1}+=\\${2}"\
20741
} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20742
&& mv -f "$cfgfile.tmp" "$cfgfile" \
20743
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20744
test 0 -eq $? || _lt_function_replace_fail=:
20747
sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20748
func_append_quoted ()\
20750
\ func_quote_for_eval "${2}"\
20751
\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20752
} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20753
&& mv -f "$cfgfile.tmp" "$cfgfile" \
20754
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20755
test 0 -eq $? || _lt_function_replace_fail=:
20758
# Save a `func_append' function call where possible by direct use of '+='
20759
sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20760
&& mv -f "$cfgfile.tmp" "$cfgfile" \
20761
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20762
test 0 -eq $? || _lt_function_replace_fail=:
20764
# Save a `func_append' function call even when '+=' is not available
20765
sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20766
&& mv -f "$cfgfile.tmp" "$cfgfile" \
20767
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20768
test 0 -eq $? || _lt_function_replace_fail=:
20771
if test x"$_lt_function_replace_fail" = x":"; then
20772
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20773
$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20777
20696
mv -f "$cfgfile" "$ofile" ||
20778
20697
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20779
20698
chmod +x "$ofile"