10949
10993
CC="$lt_save_CC"
10952
# Check whether --with-tags was given.
10953
if test "${with_tags+set}" = set; then
10954
withval=$with_tags; tagnames="$withval"
10958
if test -f "$ltmain" && test -n "$tagnames"; then
10959
if test ! -f "${ofile}"; then
10960
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10961
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10964
if test -z "$LTCC"; then
10965
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10966
if test -z "$LTCC"; then
10967
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10968
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10970
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10971
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10974
if test -z "$LTCFLAGS"; then
10975
eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10978
# Extract list of available tagged configurations in $ofile.
10979
# Note that this assumes the entire list is on one line.
10980
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10982
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10983
for tagname in $tagnames; do
10985
# Check whether tagname contains only valid characters
10986
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10988
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10989
echo "$as_me: error: invalid tag name: $tagname" >&2;}
10990
{ (exit 1); exit 1; }; }
10994
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10996
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10997
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10998
{ (exit 1); exit 1; }; }
11001
# Update the list of available tags.
11002
if test -n "$tagname"; then
11003
echo appending configuration tag \"$tagname\" to $ofile
11007
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11008
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11009
(test "X$CXX" != "Xg++"))) ; then
11011
ac_cpp='$CXXCPP $CPPFLAGS'
11012
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11013
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11014
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11019
archive_cmds_need_lc_CXX=no
11020
allow_undefined_flag_CXX=
11021
always_export_symbols_CXX=no
11022
archive_expsym_cmds_CXX=
11023
export_dynamic_flag_spec_CXX=
11024
hardcode_direct_CXX=no
11025
hardcode_libdir_flag_spec_CXX=
11026
hardcode_libdir_flag_spec_ld_CXX=
11027
hardcode_libdir_separator_CXX=
11028
hardcode_minus_L_CXX=no
11029
hardcode_shlibpath_var_CXX=unsupported
11030
hardcode_automatic_CXX=no
11032
module_expsym_cmds_CXX=
11033
link_all_deplibs_CXX=unknown
11034
old_archive_cmds_CXX=$old_archive_cmds
11035
no_undefined_flag_CXX=
11036
whole_archive_flag_spec_CXX=
11037
enable_shared_with_static_runtimes_CXX=no
11039
# Dependencies to place before and after the object being linked:
11040
predep_objects_CXX=
11041
postdep_objects_CXX=
11044
compiler_lib_search_path_CXX=
11045
compiler_lib_search_dirs_CXX=
11047
# Source file extension for C++ test sources.
11050
# Object file extension for compiled C++ test sources.
11054
# Code to be used in simple compile tests
11055
lt_simple_compile_test_code="int some_variable = 0;"
11057
# Code to be used in simple link tests
11058
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11060
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11062
# If no C compiler was specified, use CC.
11065
# If no C compiler flags were specified, use CFLAGS.
11066
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11068
# Allow CC to be a program name with arguments.
11072
# save warnings/boilerplate of simple test code
11073
ac_outfile=conftest.$ac_objext
11074
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11075
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11076
_lt_compiler_boilerplate=`cat conftest.err`
11079
ac_outfile=conftest.$ac_objext
11080
echo "$lt_simple_link_test_code" >conftest.$ac_ext
11081
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11082
_lt_linker_boilerplate=`cat conftest.err`
11086
# Allow CC to be a program name with arguments.
11091
lt_save_with_gnu_ld=$with_gnu_ld
11092
lt_save_path_LD=$lt_cv_path_LD
11093
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11094
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11096
$as_unset lt_cv_prog_gnu_ld
11098
if test -n "${lt_cv_path_LDCXX+set}"; then
11099
lt_cv_path_LD=$lt_cv_path_LDCXX
11101
$as_unset lt_cv_path_LD
11103
test -z "${LDCXX+set}" || LD=$LDCXX
11107
for cc_temp in $compiler""; do
11109
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11110
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11115
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11118
# We don't want -fno-exception wen compiling C++ code, so set the
11119
# no_builtin_flag separately
11120
if test "$GXX" = yes; then
11121
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11123
lt_prog_compiler_no_builtin_flag_CXX=
11126
if test "$GXX" = yes; then
11127
# Set up default GNU C++ configuration
11130
# Check whether --with-gnu-ld was given.
11131
if test "${with_gnu_ld+set}" = set; then
11132
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11138
if test "$GCC" = yes; then
11139
# Check if gcc -print-prog-name=ld gives a path.
11140
{ echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11141
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11144
# gcc leaves a trailing carriage return which upsets mingw
11145
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11147
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11150
# Accept absolute paths.
11152
re_direlt='/[^/][^/]*/\.\./'
11153
# Canonicalize the pathname of ld
11154
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11155
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11156
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11158
test -z "$LD" && LD="$ac_prog"
11161
# If it fails, then pretend we aren't using GCC.
11165
# If it is relative, then search for the first ld in PATH.
11166
with_gnu_ld=unknown
11169
elif test "$with_gnu_ld" = yes; then
11170
{ echo "$as_me:$LINENO: checking for GNU ld" >&5
11171
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11173
{ echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11174
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11176
if test "${lt_cv_path_LD+set}" = set; then
11007
ac_config_commands="$ac_config_commands libtool"
11012
# Only expand once:
11017
# dolt, a replacement for libtool
11018
# Josh Triplett <josh@freedesktop.org>
11019
# Extract the first word of "bash", so it can be a program name with args.
11020
set dummy bash; ac_word=$2
11021
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11022
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11023
if test "${ac_cv_path_DOLT_BASH+set}" = set; then
11177
11024
echo $ECHO_N "(cached) $ECHO_C" >&6
11179
if test -z "$LD"; then
11180
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11181
for ac_dir in $PATH; do
11183
test -z "$ac_dir" && ac_dir=.
11184
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11185
lt_cv_path_LD="$ac_dir/$ac_prog"
11186
# Check to see if the program is GNU ld. I'd rather use --version,
11187
# but apparently some variants of GNU ld only accept -v.
11188
# Break only if it was the GNU/non-GNU ld that we prefer.
11189
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11190
*GNU* | *'with BFD'*)
11191
test "$with_gnu_ld" != no && break
11194
test "$with_gnu_ld" != yes && break
11201
lt_cv_path_LD="$LD" # Let the user override the test with a path.
11028
ac_cv_path_DOLT_BASH="$DOLT_BASH" # Let the user override the test with a path.
11031
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11032
for as_dir in $PATH
11035
test -z "$as_dir" && as_dir=.
11036
for ac_exec_ext in '' $ac_executable_extensions; do
11037
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11038
ac_cv_path_DOLT_BASH="$as_dir/$ac_word$ac_exec_ext"
11039
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11205
LD="$lt_cv_path_LD"
11206
if test -n "$LD"; then
11207
{ echo "$as_me:$LINENO: result: $LD" >&5
11208
echo "${ECHO_T}$LD" >&6; }
11049
DOLT_BASH=$ac_cv_path_DOLT_BASH
11050
if test -n "$DOLT_BASH"; then
11051
{ echo "$as_me:$LINENO: result: $DOLT_BASH" >&5
11052
echo "${ECHO_T}$DOLT_BASH" >&6; }
11210
11054
{ echo "$as_me:$LINENO: result: no" >&5
11211
11055
echo "${ECHO_T}no" >&6; }
11213
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11214
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11215
{ (exit 1); exit 1; }; }
11216
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11217
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11218
if test "${lt_cv_prog_gnu_ld+set}" = set; then
11219
echo $ECHO_N "(cached) $ECHO_C" >&6
11221
# I'd rather use --version here, but apparently some GNU lds only accept -v.
11222
case `$LD -v 2>&1 </dev/null` in
11223
*GNU* | *'with BFD'*)
11224
lt_cv_prog_gnu_ld=yes
11227
lt_cv_prog_gnu_ld=no
11231
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11232
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11233
with_gnu_ld=$lt_cv_prog_gnu_ld
11237
# Check if GNU C++ uses GNU ld as the underlying linker, since the
11238
# archiving commands below assume that GNU ld is being used.
11239
if test "$with_gnu_ld" = yes; then
11240
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11241
archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11243
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11244
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11246
# If archive_cmds runs LD, not CC, wlarc should be empty
11247
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11248
# investigate it a little bit more. (MM)
11251
# ancient GNU ld didn't support --whole-archive et. al.
11252
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11253
grep 'no-whole-archive' > /dev/null; then
11254
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11256
whole_archive_flag_spec_CXX=
11262
# A generic and very simple default shared library creation
11263
# command for GNU C++ for the case where it uses the native
11264
# linker, instead of GNU ld. If possible, this setting should
11265
# overridden to take advantage of the native linker features on
11266
# the platform it is being used on.
11267
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11270
# Commands to make compiler produce verbose output that lists
11271
# what "hidden" libraries, object files and flags are used when
11272
# linking a shared library.
11273
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11281
# PORTME: fill in a description of your system's C++ link characteristics
11282
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11283
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11287
# FIXME: insert proper C++ library support
11291
if test "$host_cpu" = ia64; then
11292
# On IA64, the linker does run time linking by default, so we don't
11293
# have to do anything special.
11294
aix_use_runtimelinking=no
11295
exp_sym_flag='-Bexport'
11298
aix_use_runtimelinking=no
11300
# Test if we are trying to use run time linking or normal
11301
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11302
# need to do runtime linking.
11303
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11304
for ld_flag in $LDFLAGS; do
11307
aix_use_runtimelinking=yes
11315
exp_sym_flag='-bexport'
11316
no_entry_flag='-bnoentry'
11319
# When large executables or shared objects are built, AIX ld can
11320
# have problems creating the table of contents. If linking a library
11321
# or program results in "error TOC overflow" add -mminimal-toc to
11322
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11323
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11325
archive_cmds_CXX=''
11326
hardcode_direct_CXX=yes
11327
hardcode_libdir_separator_CXX=':'
11328
link_all_deplibs_CXX=yes
11330
if test "$GXX" = yes; then
11331
case $host_os in aix4.[012]|aix4.[012].*)
11332
# We only want to do this on AIX 4.2 and lower, the check
11333
# below for broken collect2 doesn't work under 4.3+
11334
collect2name=`${CC} -print-prog-name=collect2`
11335
if test -f "$collect2name" && \
11336
strings "$collect2name" | grep resolve_lib_name >/dev/null
11338
# We have reworked collect2
11341
# We have old collect2
11342
hardcode_direct_CXX=unsupported
11343
# It fails to find uninstalled libraries when the uninstalled
11344
# path is not listed in the libpath. Setting hardcode_minus_L
11345
# to unsupported forces relinking
11346
hardcode_minus_L_CXX=yes
11347
hardcode_libdir_flag_spec_CXX='-L$libdir'
11348
hardcode_libdir_separator_CXX=
11352
shared_flag='-shared'
11353
if test "$aix_use_runtimelinking" = yes; then
11354
shared_flag="$shared_flag "'${wl}-G'
11358
if test "$host_cpu" = ia64; then
11359
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11360
# chokes on -Wl,-G. The following line is correct:
11363
if test "$aix_use_runtimelinking" = yes; then
11364
shared_flag='${wl}-G'
11366
shared_flag='${wl}-bM:SRE'
11371
# It seems that -bexpall does not export symbols beginning with
11372
# underscore (_), so it is better to generate a list of symbols to export.
11373
always_export_symbols_CXX=yes
11374
if test "$aix_use_runtimelinking" = yes; then
11375
# Warning - without using the other runtime loading flags (-brtl),
11376
# -berok will link without error, but may produce a broken library.
11377
allow_undefined_flag_CXX='-berok'
11378
# Determine the default libpath from the value encoded in an empty executable.
11379
cat >conftest.$ac_ext <<_ACEOF
11382
cat confdefs.h >>conftest.$ac_ext
11383
cat >>conftest.$ac_ext <<_ACEOF
11384
/* end confdefs.h. */
11394
rm -f conftest.$ac_objext conftest$ac_exeext
11395
if { (ac_try="$ac_link"
11396
case "(($ac_try" in
11397
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11398
*) ac_try_echo=$ac_try;;
11400
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11401
(eval "$ac_link") 2>conftest.er1
11403
grep -v '^ *+' conftest.er1 >conftest.err
11405
cat conftest.err >&5
11406
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11407
(exit $ac_status); } && {
11408
test -z "$ac_cxx_werror_flag" ||
11409
test ! -s conftest.err
11410
} && test -s conftest$ac_exeext &&
11411
$as_test_x conftest$ac_exeext; then
11413
lt_aix_libpath_sed='
11414
/Import File Strings/,/^$/ {
11420
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11421
# Check for a 64-bit object if we didn't find anything.
11422
if test -z "$aix_libpath"; then
11423
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11426
echo "$as_me: failed program was:" >&5
11427
sed 's/^/| /' conftest.$ac_ext >&5
11432
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11433
conftest$ac_exeext conftest.$ac_ext
11434
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11436
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11438
archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11440
if test "$host_cpu" = ia64; then
11441
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11442
allow_undefined_flag_CXX="-z nodefs"
11443
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"
11445
# Determine the default libpath from the value encoded in an empty executable.
11446
cat >conftest.$ac_ext <<_ACEOF
11449
cat confdefs.h >>conftest.$ac_ext
11450
cat >>conftest.$ac_ext <<_ACEOF
11451
/* end confdefs.h. */
11461
rm -f conftest.$ac_objext conftest$ac_exeext
11462
if { (ac_try="$ac_link"
11463
case "(($ac_try" in
11464
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11465
*) ac_try_echo=$ac_try;;
11467
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11468
(eval "$ac_link") 2>conftest.er1
11470
grep -v '^ *+' conftest.er1 >conftest.err
11472
cat conftest.err >&5
11473
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11474
(exit $ac_status); } && {
11475
test -z "$ac_cxx_werror_flag" ||
11476
test ! -s conftest.err
11477
} && test -s conftest$ac_exeext &&
11478
$as_test_x conftest$ac_exeext; then
11480
lt_aix_libpath_sed='
11481
/Import File Strings/,/^$/ {
11487
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11488
# Check for a 64-bit object if we didn't find anything.
11489
if test -z "$aix_libpath"; then
11490
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11493
echo "$as_me: failed program was:" >&5
11494
sed 's/^/| /' conftest.$ac_ext >&5
11499
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11500
conftest$ac_exeext conftest.$ac_ext
11501
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11503
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11504
# Warning - without using the other run time loading flags,
11505
# -berok will link without error, but may produce a broken library.
11506
no_undefined_flag_CXX=' ${wl}-bernotok'
11507
allow_undefined_flag_CXX=' ${wl}-berok'
11508
# Exported symbols can be pulled into shared objects from archives
11509
whole_archive_flag_spec_CXX='$convenience'
11510
archive_cmds_need_lc_CXX=yes
11511
# This is similar to how AIX traditionally builds its shared libraries.
11512
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11518
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11519
allow_undefined_flag_CXX=unsupported
11520
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11521
# support --undefined. This deserves some investigation. FIXME
11522
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11529
case $cc_basename in
11531
# FIXME: insert proper C++ library support
11537
cygwin* | mingw* | pw32*)
11538
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11539
# as there is no search path for DLLs.
11540
hardcode_libdir_flag_spec_CXX='-L$libdir'
11541
allow_undefined_flag_CXX=unsupported
11542
always_export_symbols_CXX=no
11543
enable_shared_with_static_runtimes_CXX=yes
11545
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11546
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'
11547
# If the export-symbols file already is a .def file (1st line
11548
# is EXPORTS), use it as is; otherwise, prepend...
11549
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11550
cp $export_symbols $output_objdir/$soname.def;
11552
echo EXPORTS > $output_objdir/$soname.def;
11553
cat $export_symbols >> $output_objdir/$soname.def;
11555
$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'
11560
darwin* | rhapsody*)
11561
archive_cmds_need_lc_CXX=no
11562
hardcode_direct_CXX=no
11563
hardcode_automatic_CXX=yes
11564
hardcode_shlibpath_var_CXX=unsupported
11565
whole_archive_flag_spec_CXX=''
11566
link_all_deplibs_CXX=yes
11567
allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11568
if test "$GXX" = yes ; then
11569
output_verbose_link_cmd='echo'
11570
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}"
11571
module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11572
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}"
11573
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}"
11574
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11575
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}"
11576
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}"
11579
case $cc_basename in
11581
output_verbose_link_cmd='echo'
11582
archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11583
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11584
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11585
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11586
module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11596
case $cc_basename in
11598
# FIXME: insert proper C++ library support
11602
# Green Hills C++ Compiler
11603
# FIXME: insert proper C++ library support
11607
# FIXME: insert proper C++ library support
11613
# C++ shared libraries reported to be fairly broken before switch to ELF
11617
archive_cmds_need_lc_CXX=no
11619
freebsd* | dragonfly*)
11620
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11627
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11628
hardcode_libdir_separator_CXX=:
11629
export_dynamic_flag_spec_CXX='${wl}-E'
11630
hardcode_direct_CXX=yes
11631
hardcode_minus_L_CXX=yes # Not in the search PATH,
11632
# but as the default
11633
# location of the library.
11635
case $cc_basename in
11637
# FIXME: insert proper C++ library support
11641
archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11642
# Commands to make compiler produce verbose output that lists
11643
# what "hidden" libraries, object files and flags are used when
11644
# linking a shared library.
11646
# There doesn't appear to be a way to prevent this compiler from
11647
# explicitly linking system object files so we need to strip them
11648
# from the output so that they don't get included in the library
11650
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11653
if test "$GXX" = yes; then
11654
archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11656
# FIXME: insert proper C++ library support
11663
if test $with_gnu_ld = no; then
11664
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11665
hardcode_libdir_separator_CXX=:
11670
export_dynamic_flag_spec_CXX='${wl}-E'
11676
hardcode_direct_CXX=no
11677
hardcode_shlibpath_var_CXX=no
11680
hardcode_direct_CXX=yes
11681
hardcode_minus_L_CXX=yes # Not in the search PATH,
11682
# but as the default
11683
# location of the library.
11687
case $cc_basename in
11689
# FIXME: insert proper C++ library support
11695
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11698
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11701
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11704
# Commands to make compiler produce verbose output that lists
11705
# what "hidden" libraries, object files and flags are used when
11706
# linking a shared library.
11708
# There doesn't appear to be a way to prevent this compiler from
11709
# explicitly linking system object files so we need to strip them
11710
# from the output so that they don't get included in the library
11712
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11715
if test "$GXX" = yes; then
11716
if test $with_gnu_ld = no; then
11719
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11722
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11725
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11730
# FIXME: insert proper C++ library support
11737
hardcode_direct_CXX=no
11738
hardcode_shlibpath_var_CXX=no
11739
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11740
export_dynamic_flag_spec_CXX='${wl}-E'
11741
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11742
# Instead, shared libraries are loaded at an image base (0x10000000 by
11743
# default) and relocated if they conflict, which is a slow very memory
11744
# consuming and fragmenting process. To avoid this, we pick a random,
11745
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11746
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
11747
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'
11748
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'
11751
case $cc_basename in
11754
archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11756
# Archives containing C++ object files must be created using
11757
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
11758
# necessary to make sure instantiated templates are included
11760
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11763
if test "$GXX" = yes; then
11764
if test "$with_gnu_ld" = no; then
11765
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11767
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11770
link_all_deplibs_CXX=yes
11773
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11774
hardcode_libdir_separator_CXX=:
11776
linux* | k*bsd*-gnu)
11777
case $cc_basename in
11779
# Kuck and Associates, Inc. (KAI) C++ Compiler
11781
# KCC will only create a shared library if the output file
11782
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11783
# to its proper name (with version) after linking.
11784
archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11785
archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
11786
# Commands to make compiler produce verbose output that lists
11787
# what "hidden" libraries, object files and flags are used when
11788
# linking a shared library.
11790
# There doesn't appear to be a way to prevent this compiler from
11791
# explicitly linking system object files so we need to strip them
11792
# from the output so that they don't get included in the library
11794
output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11796
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11797
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11799
# Archives containing C++ object files must be created using
11800
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11801
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11806
# version 8.0 and above of icpc choke on multiply defined symbols
11807
# if we add $predep_objects and $postdep_objects, however 7.1 and
11808
# earlier do not add the objects themselves.
11809
case `$CC -V 2>&1` in
11811
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11812
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'
11814
*) # Version 8.0 or newer
11817
ia64*) tmp_idyn=' -i_dynamic';;
11819
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11820
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'
11823
archive_cmds_need_lc_CXX=no
11824
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11825
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11826
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11829
# Portland Group C++ compiler
11830
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11831
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'
11833
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11834
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11835
whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11839
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11840
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'
11842
runpath_var=LD_RUN_PATH
11843
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11844
hardcode_libdir_separator_CXX=:
11846
# Commands to make compiler produce verbose output that lists
11847
# what "hidden" libraries, object files and flags are used when
11848
# linking a shared library.
11850
# There doesn't appear to be a way to prevent this compiler from
11851
# explicitly linking system object files so we need to strip them
11852
# from the output so that they don't get included in the library
11854
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11857
case `$CC -V 2>&1 | sed 5q` in
11860
no_undefined_flag_CXX=' -zdefs'
11861
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11862
archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
11863
hardcode_libdir_flag_spec_CXX='-R$libdir'
11864
whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11866
# Not sure whether something based on
11867
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11869
output_verbose_link_cmd='echo'
11871
# Archives containing C++ object files must be created using
11872
# "CC -xar", where "CC" is the Sun C++ compiler. This is
11873
# necessary to make sure instantiated templates are included
11875
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11882
# FIXME: insert proper C++ library support
11886
# FIXME: insert proper C++ library support
11890
case $cc_basename in
11892
# FIXME: insert proper C++ library support
11896
# FIXME: insert proper C++ library support
11901
netbsd* | netbsdelf*-gnu)
11902
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11903
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11905
hardcode_libdir_flag_spec_CXX='-R$libdir'
11906
hardcode_direct_CXX=yes
11907
hardcode_shlibpath_var_CXX=no
11909
# Workaround some broken pre-1.5 toolchains
11910
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11913
# C++ shared libraries are fairly broken
11917
if test -f /usr/libexec/ld.so; then
11918
hardcode_direct_CXX=yes
11919
hardcode_shlibpath_var_CXX=no
11920
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11921
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11922
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11923
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11924
export_dynamic_flag_spec_CXX='${wl}-E'
11925
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11927
output_verbose_link_cmd='echo'
11933
case $cc_basename in
11935
# Kuck and Associates, Inc. (KAI) C++ Compiler
11937
# KCC will only create a shared library if the output file
11938
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11939
# to its proper name (with version) after linking.
11940
archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11942
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11943
hardcode_libdir_separator_CXX=:
11945
# Archives containing C++ object files must be created using
11946
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11947
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11951
# Rational C++ 2.4.1
11952
# FIXME: insert proper C++ library support
11956
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11957
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11959
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11960
hardcode_libdir_separator_CXX=:
11962
# Commands to make compiler produce verbose output that lists
11963
# what "hidden" libraries, object files and flags are used when
11964
# linking a shared library.
11966
# There doesn't appear to be a way to prevent this compiler from
11967
# explicitly linking system object files so we need to strip them
11968
# from the output so that they don't get included in the library
11970
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11973
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11974
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11975
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11977
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11978
hardcode_libdir_separator_CXX=:
11980
# Commands to make compiler produce verbose output that lists
11981
# what "hidden" libraries, object files and flags are used when
11982
# linking a shared library.
11983
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11986
# FIXME: insert proper C++ library support
11993
case $cc_basename in
11995
# Kuck and Associates, Inc. (KAI) C++ Compiler
11997
# KCC will only create a shared library if the output file
11998
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11999
# to its proper name (with version) after linking.
12000
archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12002
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12003
hardcode_libdir_separator_CXX=:
12005
# Archives containing C++ object files must be created using
12006
# the KAI C++ compiler.
12007
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12010
# Rational C++ 2.4.1
12011
# FIXME: insert proper C++ library support
12015
allow_undefined_flag_CXX=' -expect_unresolved \*'
12016
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12017
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12018
echo "-hidden">> $lib.exp~
12019
$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~
12022
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12023
hardcode_libdir_separator_CXX=:
12025
# Commands to make compiler produce verbose output that lists
12026
# what "hidden" libraries, object files and flags are used when
12027
# linking a shared library.
12029
# There doesn't appear to be a way to prevent this compiler from
12030
# explicitly linking system object files so we need to strip them
12031
# from the output so that they don't get included in the library
12033
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12036
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12037
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12038
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12040
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12041
hardcode_libdir_separator_CXX=:
12043
# Commands to make compiler produce verbose output that lists
12044
# what "hidden" libraries, object files and flags are used when
12045
# linking a shared library.
12046
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12049
# FIXME: insert proper C++ library support
12056
# FIXME: insert proper C++ library support
12060
case $cc_basename in
12063
# FIXME: insert proper C++ library support
12068
# FIXME: insert proper C++ library support
12072
# FIXME: insert proper C++ library support
12078
case $cc_basename in
12080
# Sun C++ 4.2, 5.x and Centerline C++
12081
archive_cmds_need_lc_CXX=yes
12082
no_undefined_flag_CXX=' -zdefs'
12083
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12084
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12085
$CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12087
hardcode_libdir_flag_spec_CXX='-R$libdir'
12088
hardcode_shlibpath_var_CXX=no
12090
solaris2.[0-5] | solaris2.[0-5].*) ;;
12092
# The compiler driver will combine and reorder linker options,
12093
# but understands `-z linker_flag'.
12094
# Supported since Solaris 2.6 (maybe 2.5.1?)
12095
whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12098
link_all_deplibs_CXX=yes
12100
output_verbose_link_cmd='echo'
12102
# Archives containing C++ object files must be created using
12103
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12104
# necessary to make sure instantiated templates are included
12106
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12109
# Green Hills C++ Compiler
12110
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12112
# The C++ compiler must be used to create the archive.
12113
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12116
# GNU C++ compiler with Solaris linker
12117
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12118
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12119
if $CC --version | grep -v '^2\.7' > /dev/null; then
12120
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12121
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12122
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12124
# Commands to make compiler produce verbose output that lists
12125
# what "hidden" libraries, object files and flags are used when
12126
# linking a shared library.
12127
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12129
# g++ 2.7 appears to require `-G' NOT `-shared' on this
12131
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12132
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12133
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12135
# Commands to make compiler produce verbose output that lists
12136
# what "hidden" libraries, object files and flags are used when
12137
# linking a shared library.
12138
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12141
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12143
solaris2.[0-5] | solaris2.[0-5].*) ;;
12145
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12152
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12153
no_undefined_flag_CXX='${wl}-z,text'
12154
archive_cmds_need_lc_CXX=no
12155
hardcode_shlibpath_var_CXX=no
12156
runpath_var='LD_RUN_PATH'
12158
case $cc_basename in
12160
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12161
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12164
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12165
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12169
sysv5* | sco3.2v5* | sco5v6*)
12170
# Note: We can NOT use -z defs as we might desire, because we do not
12171
# link with -lc, and that would cause any symbols used from libc to
12172
# always be unresolved, which means just about no library would
12173
# ever link correctly. If we're not using GNU ld we use -z text
12174
# though, which does catch some bad symbols but isn't as heavy-handed
12176
# For security reasons, it is highly recommended that you always
12177
# use absolute paths for naming shared libraries, and exclude the
12178
# DT_RUNPATH tag from executables and libraries. But doing so
12179
# requires that you compile everything twice, which is a pain.
12180
# So that behaviour is only enabled if SCOABSPATH is set to a
12181
# non-empty value in the environment. Most likely only useful for
12182
# creating official distributions of packages.
12183
# This is a hack until libtool officially supports absolute path
12184
# names for shared libraries.
12185
no_undefined_flag_CXX='${wl}-z,text'
12186
allow_undefined_flag_CXX='${wl}-z,nodefs'
12187
archive_cmds_need_lc_CXX=no
12188
hardcode_shlibpath_var_CXX=no
12189
hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12190
hardcode_libdir_separator_CXX=':'
12191
link_all_deplibs_CXX=yes
12192
export_dynamic_flag_spec_CXX='${wl}-Bexport'
12193
runpath_var='LD_RUN_PATH'
12195
case $cc_basename in
12197
archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12198
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12201
archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12202
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12207
case $cc_basename in
12209
# NonStop-UX NCC 3.20
12210
# FIXME: insert proper C++ library support
12214
# FIXME: insert proper C++ library support
12220
# FIXME: insert proper C++ library support
12224
# FIXME: insert proper C++ library support
12228
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12229
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12230
test "$ld_shlibs_CXX" = no && can_build_shared=no
12235
cat > conftest.$ac_ext <<EOF
12239
Foo (void) { a = 0; }
12245
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12246
(eval $ac_compile) 2>&5
12248
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12249
(exit $ac_status); }; then
12250
# Parse the compiler output and extract the necessary
12251
# objects, libraries and library flags.
12253
# Sentinel used to keep track of whether or not we are before
12254
# the conftest object file.
12255
pre_test_object_deps_done=no
12257
# The `*' in the case matches for architectures that use `case' in
12258
# $output_verbose_cmd can trigger glob expansion during the loop
12259
# eval without this substitution.
12260
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12262
for p in `eval $output_verbose_link_cmd`; do
12266
# Some compilers place space between "-{L,R}" and the path.
12267
# Remove the space.
12268
if test $p = "-L" \
12269
|| test $p = "-R"; then
12276
if test "$pre_test_object_deps_done" = no; then
12279
# Internal compiler library paths should come after those
12280
# provided the user. The postdeps already come after the
12281
# user supplied libs so there is no need to process them.
12282
if test -z "$compiler_lib_search_path_CXX"; then
12283
compiler_lib_search_path_CXX="${prev}${p}"
12285
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12288
# The "-l" case would never come before the object being
12289
# linked, so don't bother handling this case.
12292
if test -z "$postdeps_CXX"; then
12293
postdeps_CXX="${prev}${p}"
12295
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12301
# This assumes that the test object file only shows up
12302
# once in the compiler output.
12303
if test "$p" = "conftest.$objext"; then
12304
pre_test_object_deps_done=yes
12308
if test "$pre_test_object_deps_done" = no; then
12309
if test -z "$predep_objects_CXX"; then
12310
predep_objects_CXX="$p"
12312
predep_objects_CXX="$predep_objects_CXX $p"
12315
if test -z "$postdep_objects_CXX"; then
12316
postdep_objects_CXX="$p"
12318
postdep_objects_CXX="$postdep_objects_CXX $p"
12323
*) ;; # Ignore the rest.
12331
echo "libtool.m4: error: problem compiling CXX test program"
12334
$rm -f confest.$objext
12336
compiler_lib_search_dirs_CXX=
12337
if test -n "$compiler_lib_search_path_CXX"; then
12338
compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12341
# PORTME: override above test on systems where it is broken
12344
# Interix 3.5 installs completely hosed .la files for C++, so rather than
12345
# hack all around it, let's just trust "g++" to DTRT.
12346
predep_objects_CXX=
12347
postdep_objects_CXX=
12352
case `$CC -V 2>&1 | sed 5q` in
12356
# The more standards-conforming stlport4 library is
12357
# incompatible with the Cstd library. Avoid specifying
12358
# it if it's in CXXFLAGS. Ignore libCrun as
12359
# -library=stlport4 depends on it.
12360
case " $CXX $CXXFLAGS " in
12361
*" -library=stlport4 "*)
12362
solaris_use_stlport4=yes
12365
if test "$solaris_use_stlport4" != yes; then
12366
postdeps_CXX='-library=Cstd -library=Crun'
12373
case $cc_basename in
12375
# The more standards-conforming stlport4 library is
12376
# incompatible with the Cstd library. Avoid specifying
12377
# it if it's in CXXFLAGS. Ignore libCrun as
12378
# -library=stlport4 depends on it.
12379
case " $CXX $CXXFLAGS " in
12380
*" -library=stlport4 "*)
12381
solaris_use_stlport4=yes
12385
# Adding this requires a known-good setup of shared libraries for
12386
# Sun compiler versions before 5.6, else PIC objects from an old
12387
# archive will be linked into the output, leading to subtle bugs.
12388
if test "$solaris_use_stlport4" != yes; then
12389
postdeps_CXX='-library=Cstd -library=Crun'
12396
case " $postdeps_CXX " in
12397
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12400
lt_prog_compiler_wl_CXX=
12401
lt_prog_compiler_pic_CXX=
12402
lt_prog_compiler_static_CXX=
12404
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12405
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12407
# C++ specific cases for pic, static, wl, etc.
12408
if test "$GXX" = yes; then
12409
lt_prog_compiler_wl_CXX='-Wl,'
12410
lt_prog_compiler_static_CXX='-static'
12414
# All AIX code is PIC.
12415
if test "$host_cpu" = ia64; then
12416
# AIX 5 now supports IA64 processor
12417
lt_prog_compiler_static_CXX='-Bstatic'
12421
# FIXME: we need at least 68020 code to build shared libraries, but
12422
# adding the `-m68020' flag to GCC prevents building anything better,
12424
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12426
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12427
# PIC is the default for these OSes.
12429
mingw* | cygwin* | os2* | pw32*)
12430
# This hack is so that the source file can tell whether it is being
12431
# built for inclusion in a dll (and should export symbols for example).
12432
# Although the cygwin gcc ignores -fPIC, still need this for old-style
12433
# (--disable-auto-import) libraries
12434
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12436
darwin* | rhapsody*)
12437
# PIC is the default on this platform
12438
# Common symbols not allowed in MH_DYLIB files
12439
lt_prog_compiler_pic_CXX='-fno-common'
12442
# DJGPP does not support shared libraries at all
12443
lt_prog_compiler_pic_CXX=
12446
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
12447
# Instead, we relocate shared libraries at runtime.
12450
if test -d /usr/nec; then
12451
lt_prog_compiler_pic_CXX=-Kconform_pic
12455
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12456
# not for PA HP-UX.
12461
lt_prog_compiler_pic_CXX='-fPIC'
12466
lt_prog_compiler_pic_CXX='-fPIC'
12472
# All AIX code is PIC.
12473
if test "$host_cpu" = ia64; then
12474
# AIX 5 now supports IA64 processor
12475
lt_prog_compiler_static_CXX='-Bstatic'
12477
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12481
case $cc_basename in
12483
# Green Hills C++ Compiler
12484
# _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
12489
# PIC is the default on this platform
12490
# Common symbols not allowed in MH_DYLIB files
12491
case $cc_basename in
12493
lt_prog_compiler_pic_CXX='-qnocommon'
12494
lt_prog_compiler_wl_CXX='-Wl,'
12499
case $cc_basename in
12501
lt_prog_compiler_pic_CXX='-KPIC'
12504
# Green Hills C++ Compiler
12505
lt_prog_compiler_pic_CXX='-pic'
12511
freebsd* | dragonfly*)
12512
# FreeBSD uses GNU C++
12514
hpux9* | hpux10* | hpux11*)
12515
case $cc_basename in
12517
lt_prog_compiler_wl_CXX='-Wl,'
12518
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12519
if test "$host_cpu" != ia64; then
12520
lt_prog_compiler_pic_CXX='+Z'
12524
lt_prog_compiler_wl_CXX='-Wl,'
12525
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12531
lt_prog_compiler_pic_CXX='+Z'
12540
# This is c89, which is MS Visual C++ (no shared libs)
12541
# Anyone wants to do a port?
12543
irix5* | irix6* | nonstopux*)
12544
case $cc_basename in
12546
lt_prog_compiler_wl_CXX='-Wl,'
12547
lt_prog_compiler_static_CXX='-non_shared'
12548
# CC pic flag -KPIC is the default.
12554
linux* | k*bsd*-gnu)
12555
case $cc_basename in
12558
lt_prog_compiler_wl_CXX='--backend -Wl,'
12559
lt_prog_compiler_pic_CXX='-fPIC'
12563
lt_prog_compiler_wl_CXX='-Wl,'
12564
lt_prog_compiler_pic_CXX='-KPIC'
12565
lt_prog_compiler_static_CXX='-static'
12568
# Portland Group C++ compiler.
12569
lt_prog_compiler_wl_CXX='-Wl,'
12570
lt_prog_compiler_pic_CXX='-fpic'
12571
lt_prog_compiler_static_CXX='-Bstatic'
12575
# Make sure the PIC flag is empty. It appears that all Alpha
12576
# Linux and Compaq Tru64 Unix objects are PIC.
12577
lt_prog_compiler_pic_CXX=
12578
lt_prog_compiler_static_CXX='-non_shared'
12581
case `$CC -V 2>&1 | sed 5q` in
12584
lt_prog_compiler_pic_CXX='-KPIC'
12585
lt_prog_compiler_static_CXX='-Bstatic'
12586
lt_prog_compiler_wl_CXX='-Qoption ld '
12597
case $cc_basename in
12599
lt_prog_compiler_pic_CXX='-W c,exportall'
12605
netbsd* | netbsdelf*-gnu)
12607
osf3* | osf4* | osf5*)
12608
case $cc_basename in
12610
lt_prog_compiler_wl_CXX='--backend -Wl,'
12613
# Rational C++ 2.4.1
12614
lt_prog_compiler_pic_CXX='-pic'
12617
# Digital/Compaq C++
12618
lt_prog_compiler_wl_CXX='-Wl,'
12619
# Make sure the PIC flag is empty. It appears that all Alpha
12620
# Linux and Compaq Tru64 Unix objects are PIC.
12621
lt_prog_compiler_pic_CXX=
12622
lt_prog_compiler_static_CXX='-non_shared'
12631
case $cc_basename in
12633
# Sun C++ 4.2, 5.x and Centerline C++
12634
lt_prog_compiler_pic_CXX='-KPIC'
12635
lt_prog_compiler_static_CXX='-Bstatic'
12636
lt_prog_compiler_wl_CXX='-Qoption ld '
12639
# Green Hills C++ Compiler
12640
lt_prog_compiler_pic_CXX='-PIC'
12647
case $cc_basename in
12650
lt_prog_compiler_pic_CXX='-pic'
12651
lt_prog_compiler_static_CXX='-Bstatic'
12655
lt_prog_compiler_pic_CXX='-pic'
12662
case $cc_basename in
12664
# NonStop-UX NCC 3.20
12665
lt_prog_compiler_pic_CXX='-KPIC'
12671
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12672
case $cc_basename in
12674
lt_prog_compiler_wl_CXX='-Wl,'
12675
lt_prog_compiler_pic_CXX='-KPIC'
12676
lt_prog_compiler_static_CXX='-Bstatic'
12683
lt_prog_compiler_can_build_shared_CXX=no
12688
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12689
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12692
# Check to make sure the PIC flag actually works.
12694
if test -n "$lt_prog_compiler_pic_CXX"; then
12696
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12697
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12698
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12699
echo $ECHO_N "(cached) $ECHO_C" >&6
12701
lt_cv_prog_compiler_pic_works_CXX=no
12702
ac_outfile=conftest.$ac_objext
12703
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12704
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12705
# Insert the option either (1) after the last *FLAGS variable, or
12706
# (2) before a word containing "conftest.", or (3) at the end.
12707
# Note that $ac_compile itself does not contain backslashes and begins
12708
# with a dollar sign (not a hyphen), so the echo should work correctly.
12709
# The option is referenced via a variable to avoid confusing sed.
12710
lt_compile=`echo "$ac_compile" | $SED \
12711
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12712
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12713
-e 's:$: $lt_compiler_flag:'`
12714
(eval echo "\"\$as_me:12714: $lt_compile\"" >&5)
12715
(eval "$lt_compile" 2>conftest.err)
12717
cat conftest.err >&5
12718
echo "$as_me:12718: \$? = $ac_status" >&5
12719
if (exit $ac_status) && test -s "$ac_outfile"; then
12720
# The compiler can only warn and ignore the option if not recognized
12721
# So say no if there are warnings other than the usual output.
12722
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12723
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12724
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12725
lt_cv_prog_compiler_pic_works_CXX=yes
12731
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12732
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12734
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12735
case $lt_prog_compiler_pic_CXX in
12737
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12740
lt_prog_compiler_pic_CXX=
12741
lt_prog_compiler_can_build_shared_CXX=no
12746
# For platforms which do not support PIC, -DPIC is meaningless:
12748
lt_prog_compiler_pic_CXX=
12751
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12756
# Check to make sure the static flag actually works.
12758
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12759
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12760
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12761
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12762
echo $ECHO_N "(cached) $ECHO_C" >&6
12764
lt_cv_prog_compiler_static_works_CXX=no
12765
save_LDFLAGS="$LDFLAGS"
12766
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12767
echo "$lt_simple_link_test_code" > conftest.$ac_ext
12768
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12769
# The linker can only warn and ignore the option if not recognized
12770
# So say no if there are warnings
12771
if test -s conftest.err; then
12772
# Append any errors to the config.log.
12773
cat conftest.err 1>&5
12774
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12775
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12776
if diff conftest.exp conftest.er2 >/dev/null; then
12777
lt_cv_prog_compiler_static_works_CXX=yes
12780
lt_cv_prog_compiler_static_works_CXX=yes
12784
LDFLAGS="$save_LDFLAGS"
12787
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12788
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
12790
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12793
lt_prog_compiler_static_CXX=
12797
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12798
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12799
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12800
echo $ECHO_N "(cached) $ECHO_C" >&6
12802
lt_cv_prog_compiler_c_o_CXX=no
12803
$rm -r conftest 2>/dev/null
12807
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12809
lt_compiler_flag="-o out/conftest2.$ac_objext"
12810
# Insert the option either (1) after the last *FLAGS variable, or
12811
# (2) before a word containing "conftest.", or (3) at the end.
12812
# Note that $ac_compile itself does not contain backslashes and begins
12813
# with a dollar sign (not a hyphen), so the echo should work correctly.
12814
lt_compile=`echo "$ac_compile" | $SED \
12815
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12816
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12817
-e 's:$: $lt_compiler_flag:'`
12818
(eval echo "\"\$as_me:12818: $lt_compile\"" >&5)
12819
(eval "$lt_compile" 2>out/conftest.err)
12821
cat out/conftest.err >&5
12822
echo "$as_me:12822: \$? = $ac_status" >&5
12823
if (exit $ac_status) && test -s out/conftest2.$ac_objext
12825
# The compiler can only warn and ignore the option if not recognized
12826
# So say no if there are warnings
12827
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12828
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12829
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12830
lt_cv_prog_compiler_c_o_CXX=yes
12835
# SGI C++ compiler will create directory out/ii_files/ for
12836
# template instantiation
12837
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12838
$rm out/* && rmdir out
12844
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12845
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12848
hard_links="nottested"
12849
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12850
# do not overwrite the value of need_locks provided by the user
12851
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12852
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12855
ln conftest.a conftest.b 2>/dev/null && hard_links=no
12857
ln conftest.a conftest.b 2>&5 || hard_links=no
12858
ln conftest.a conftest.b 2>/dev/null && hard_links=no
12859
{ echo "$as_me:$LINENO: result: $hard_links" >&5
12860
echo "${ECHO_T}$hard_links" >&6; }
12861
if test "$hard_links" = no; then
12862
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12863
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12870
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12871
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12873
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12876
# If we're using GNU nm, then we don't want the "-C" option.
12877
# -C means demangle to AIX nm, but means don't demangle with GNU nm
12878
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12879
export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12881
export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12885
export_symbols_cmds_CXX="$ltdll_cmds"
12888
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12890
linux* | k*bsd*-gnu)
12891
link_all_deplibs_CXX=no
12894
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12897
exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12899
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12900
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12901
test "$ld_shlibs_CXX" = no && can_build_shared=no
12904
# Do we need to explicitly link libc?
12906
case "x$archive_cmds_need_lc_CXX" in
12908
# Assume -lc should be added
12909
archive_cmds_need_lc_CXX=yes
12911
if test "$enable_shared" = yes && test "$GCC" = yes; then
12912
case $archive_cmds_CXX in
12914
# FIXME: we may have to deal with multi-command sequences.
12917
# Test whether the compiler implicitly links with -lc since on some
12918
# systems, -lgcc has to come before -lc. If gcc already passes -lc
12919
# to ld, don't add -lc before -lgcc.
12920
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12921
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12923
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12925
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12926
(eval $ac_compile) 2>&5
12928
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12929
(exit $ac_status); } 2>conftest.err; then
12932
libobjs=conftest.$ac_objext
12934
wl=$lt_prog_compiler_wl_CXX
12935
pic_flag=$lt_prog_compiler_pic_CXX
12941
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12942
allow_undefined_flag_CXX=
12943
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12944
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12946
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12947
(exit $ac_status); }
12949
archive_cmds_need_lc_CXX=no
12951
archive_cmds_need_lc_CXX=yes
12953
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12955
cat conftest.err 1>&5
12958
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12959
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12966
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12967
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12968
library_names_spec=
12969
libname_spec='lib$name'
12973
postuninstall_cmds=
12977
shlibpath_overrides_runpath=unknown
12979
dynamic_linker="$host_os ld.so"
12980
sys_lib_dlsearch_path_spec="/lib /usr/lib"
12982
need_lib_prefix=unknown
12983
hardcode_into_libs=no
12985
# when you set need_version to no, make sure it does not cause -set_version
12986
# flags to be left without arguments
12987
need_version=unknown
12992
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12993
shlibpath_var=LIBPATH
12995
# AIX 3 has no versioning support, so we append a major version to the name.
12996
soname_spec='${libname}${release}${shared_ext}$major'
13003
hardcode_into_libs=yes
13004
if test "$host_cpu" = ia64; then
13005
# AIX 5 supports IA64
13006
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13007
shlibpath_var=LD_LIBRARY_PATH
13009
# With GCC up to 2.95.x, collect2 would create an import file
13010
# for dependence libraries. The import file would start with
13011
# the line `#! .'. This would cause the generated library to
13012
# depend on `.', always an invalid library. This was fixed in
13013
# development snapshots of GCC prior to 3.0.
13015
aix4 | aix4.[01] | aix4.[01].*)
13016
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13018
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13021
can_build_shared=no
13025
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13026
# soname into executable. Probably we can add versioning support to
13027
# collect2, so additional links can be useful in future.
13028
if test "$aix_use_runtimelinking" = yes; then
13029
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
13030
# instead of lib<name>.a to let people know that these are not
13031
# typical AIX shared libraries.
13032
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13034
# We preserve .a as extension for shared libraries through AIX4.2
13035
# and later when we are not doing run time linking.
13036
library_names_spec='${libname}${release}.a $libname.a'
13037
soname_spec='${libname}${release}${shared_ext}$major'
13039
shlibpath_var=LIBPATH
13044
library_names_spec='$libname.ixlibrary $libname.a'
13045
# Create ${libname}_ixlibrary.a entries in /sys/libs.
13046
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
13050
library_names_spec='${libname}${shared_ext}'
13051
dynamic_linker="$host_os ld.so"
13052
shlibpath_var=LIBRARY_PATH
13058
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13059
soname_spec='${libname}${release}${shared_ext}$major'
13060
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13061
shlibpath_var=LD_LIBRARY_PATH
13062
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13063
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13064
# the default ld.so.conf also contains /usr/contrib/lib and
13065
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13066
# libtool to hard-code these into programs
13069
cygwin* | mingw* | pw32*)
13070
version_type=windows
13075
case $GCC,$host_os in
13076
yes,cygwin* | yes,mingw* | yes,pw32*)
13077
library_names_spec='$libname.dll.a'
13078
# DLL is installed to $(libdir)/../bin by postinstall_cmds
13079
postinstall_cmds='base_file=`basename \${file}`~
13080
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13081
dldir=$destdir/`dirname \$dlpath`~
13082
test -d \$dldir || mkdir -p \$dldir~
13083
$install_prog $dir/$dlname \$dldir/$dlname~
13084
chmod a+x \$dldir/$dlname'
13085
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13086
dlpath=$dir/\$dldll~
13088
shlibpath_overrides_runpath=yes
13092
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
13093
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13094
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13097
# MinGW DLLs use traditional 'lib' prefix
13098
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13099
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13100
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13101
# It is most probably a Windows format PATH printed by
13102
# mingw gcc, but we are running on Cygwin. Gcc prints its search
13103
# path with ; separators, and with drive letters. We can handle the
13104
# drive letters (cygwin fileutils understands them), so leave them,
13105
# especially as we might pass files found there to a mingw objdump,
13106
# which wouldn't understand a cygwinified path. Ahh.
13107
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13109
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13113
# pw32 DLLs use 'pw' prefix rather than 'lib'
13114
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13120
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13123
dynamic_linker='Win32 ld.exe'
13124
# FIXME: first we should search . and the directory the executable is in
13128
darwin* | rhapsody*)
13129
dynamic_linker="$host_os dyld"
13130
version_type=darwin
13133
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13134
soname_spec='${libname}${release}${major}$shared_ext'
13135
shlibpath_overrides_runpath=yes
13136
shlibpath_var=DYLD_LIBRARY_PATH
13137
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13139
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13146
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13147
soname_spec='${libname}${release}${shared_ext}$major'
13148
shlibpath_var=LD_LIBRARY_PATH
13155
freebsd* | dragonfly*)
13156
# DragonFly does not have aout. When/if they implement a new
13157
# versioning mechanism, adjust this.
13158
if test -x /usr/bin/objformat; then
13159
objformat=`/usr/bin/objformat`
13162
freebsd[123]*) objformat=aout ;;
13163
*) objformat=elf ;;
13166
version_type=freebsd-$objformat
13167
case $version_type in
13169
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13174
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13178
shlibpath_var=LD_LIBRARY_PATH
13181
shlibpath_overrides_runpath=yes
13183
freebsd3.[01]* | freebsdelf3.[01]*)
13184
shlibpath_overrides_runpath=yes
13185
hardcode_into_libs=yes
13187
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13188
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13189
shlibpath_overrides_runpath=no
13190
hardcode_into_libs=yes
13192
*) # from 4.6 on, and DragonFly
13193
shlibpath_overrides_runpath=yes
13194
hardcode_into_libs=yes
13203
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13204
soname_spec='${libname}${release}${shared_ext}$major'
13205
shlibpath_var=LD_LIBRARY_PATH
13206
hardcode_into_libs=yes
13209
hpux9* | hpux10* | hpux11*)
13210
# Give a soname corresponding to the major version so that dld.sl refuses to
13211
# link against other versions.
13218
hardcode_into_libs=yes
13219
dynamic_linker="$host_os dld.so"
13220
shlibpath_var=LD_LIBRARY_PATH
13221
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13222
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13223
soname_spec='${libname}${release}${shared_ext}$major'
13224
if test "X$HPUX_IA64_MODE" = X32; then
13225
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13227
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13229
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13233
hardcode_into_libs=yes
13234
dynamic_linker="$host_os dld.sl"
13235
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13236
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13237
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13238
soname_spec='${libname}${release}${shared_ext}$major'
13239
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13240
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13244
dynamic_linker="$host_os dld.sl"
13245
shlibpath_var=SHLIB_PATH
13246
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13247
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13248
soname_spec='${libname}${release}${shared_ext}$major'
13251
# HP-UX runs *really* slowly unless shared libraries are mode 555.
13252
postinstall_cmds='chmod 555 $lib'
13259
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13260
soname_spec='${libname}${release}${shared_ext}$major'
13261
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13262
shlibpath_var=LD_LIBRARY_PATH
13263
shlibpath_overrides_runpath=no
13264
hardcode_into_libs=yes
13267
irix5* | irix6* | nonstopux*)
13269
nonstopux*) version_type=nonstopux ;;
13271
if test "$lt_cv_prog_gnu_ld" = yes; then
13279
soname_spec='${libname}${release}${shared_ext}$major'
13280
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13282
irix5* | nonstopux*)
13283
libsuff= shlibsuff=
13286
case $LD in # libtool.m4 will add one of these switches to LD
13287
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13288
libsuff= shlibsuff= libmagic=32-bit;;
13289
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13290
libsuff=32 shlibsuff=N32 libmagic=N32;;
13291
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13292
libsuff=64 shlibsuff=64 libmagic=64-bit;;
13293
*) libsuff= shlibsuff= libmagic=never-match;;
13297
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13298
shlibpath_overrides_runpath=no
13299
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13300
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13301
hardcode_into_libs=yes
13304
# No shared lib support for Linux oldld, aout, or coff.
13305
linux*oldld* | linux*aout* | linux*coff*)
13309
# This must be Linux ELF.
13310
linux* | k*bsd*-gnu)
13314
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13315
soname_spec='${libname}${release}${shared_ext}$major'
13316
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13317
shlibpath_var=LD_LIBRARY_PATH
13318
shlibpath_overrides_runpath=no
13319
# This implies no fast_install, which is unacceptable.
13320
# Some rework will be needed to allow for fast_install
13321
# before this can be enabled.
13322
hardcode_into_libs=yes
13324
# Append ld.so.conf contents to the search path
13325
if test -f /etc/ld.so.conf; then
13326
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13327
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13330
# We used to test for /lib/ld.so.1 and disable shared libraries on
13331
# powerpc, because MkLinux only supported shared libraries with the
13332
# GNU dynamic linker. Since this was broken with cross compilers,
13333
# most powerpc-linux boxes support dynamic linking these days and
13334
# people can always --disable-shared, the test was removed, and we
13335
# assume the GNU/Linux dynamic linker is in use.
13336
dynamic_linker='GNU/Linux ld.so'
13343
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13344
soname_spec='${libname}${release}${shared_ext}$major'
13345
shlibpath_var=LD_LIBRARY_PATH
13346
shlibpath_overrides_runpath=no
13347
hardcode_into_libs=yes
13348
dynamic_linker='NetBSD ld.elf_so'
13355
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13356
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13357
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13358
dynamic_linker='NetBSD (a.out) ld.so'
13360
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13361
soname_spec='${libname}${release}${shared_ext}$major'
13362
dynamic_linker='NetBSD ld.elf_so'
13364
shlibpath_var=LD_LIBRARY_PATH
13365
shlibpath_overrides_runpath=yes
13366
hardcode_into_libs=yes
13371
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13372
shlibpath_var=LD_LIBRARY_PATH
13373
shlibpath_overrides_runpath=yes
13380
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13381
soname_spec='${libname}${release}${shared_ext}$major'
13382
shlibpath_var=LD_LIBRARY_PATH
13383
shlibpath_overrides_runpath=yes
13388
sys_lib_dlsearch_path_spec="/usr/lib"
13390
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13392
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13393
*) need_version=no ;;
13395
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13396
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13397
shlibpath_var=LD_LIBRARY_PATH
13398
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13400
openbsd2.[89] | openbsd2.[89].*)
13401
shlibpath_overrides_runpath=no
13404
shlibpath_overrides_runpath=yes
13408
shlibpath_overrides_runpath=yes
13413
libname_spec='$name'
13416
library_names_spec='$libname${shared_ext} $libname.a'
13417
dynamic_linker='OS/2 ld.exe'
13418
shlibpath_var=LIBPATH
13421
osf3* | osf4* | osf5*)
13425
soname_spec='${libname}${release}${shared_ext}$major'
13426
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13427
shlibpath_var=LD_LIBRARY_PATH
13428
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13429
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13440
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13441
soname_spec='${libname}${release}${shared_ext}$major'
13442
shlibpath_var=LD_LIBRARY_PATH
13443
shlibpath_overrides_runpath=yes
13444
hardcode_into_libs=yes
13445
# ldd complains unless libraries are executable
13446
postinstall_cmds='chmod +x $lib'
13451
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13452
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13453
shlibpath_var=LD_LIBRARY_PATH
13454
shlibpath_overrides_runpath=yes
13455
if test "$with_gnu_ld" = yes; then
13463
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13464
soname_spec='${libname}${release}${shared_ext}$major'
13465
shlibpath_var=LD_LIBRARY_PATH
13466
case $host_vendor in
13468
shlibpath_overrides_runpath=no
13470
export_dynamic_flag_spec='${wl}-Blargedynsym'
13471
runpath_var=LD_RUN_PATH
13479
shlibpath_overrides_runpath=no
13480
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13486
if test -d /usr/nec ;then
13488
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13489
soname_spec='$libname${shared_ext}.$major'
13490
shlibpath_var=LD_LIBRARY_PATH
13494
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13495
version_type=freebsd-elf
13498
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13499
soname_spec='${libname}${release}${shared_ext}$major'
13500
shlibpath_var=LD_LIBRARY_PATH
13501
hardcode_into_libs=yes
13502
if test "$with_gnu_ld" = yes; then
13503
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13504
shlibpath_overrides_runpath=no
13506
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13507
shlibpath_overrides_runpath=yes
13510
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13514
sys_lib_dlsearch_path_spec='/usr/lib'
13519
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13520
soname_spec='${libname}${release}${shared_ext}$major'
13521
shlibpath_var=LD_LIBRARY_PATH
13528
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13529
echo "${ECHO_T}$dynamic_linker" >&6; }
13530
test "$dynamic_linker" = no && can_build_shared=no
13532
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13533
echo $ECHO_N "(cached) $ECHO_C" >&6
13535
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13538
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13539
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13540
echo $ECHO_N "(cached) $ECHO_C" >&6
13542
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13545
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13547
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13548
if test "$GCC" = yes; then
13549
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13552
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13553
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13554
hardcode_action_CXX=
13555
if test -n "$hardcode_libdir_flag_spec_CXX" || \
13556
test -n "$runpath_var_CXX" || \
13557
test "X$hardcode_automatic_CXX" = "Xyes" ; then
13559
# We can hardcode non-existant directories.
13560
if test "$hardcode_direct_CXX" != no &&
13561
# If the only mechanism to avoid hardcoding is shlibpath_var, we
13562
# have to relink, otherwise we might link with an installed library
13563
# when we should be linking with a yet-to-be-installed one
13564
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13565
test "$hardcode_minus_L_CXX" != no; then
13566
# Linking always hardcodes the temporary library directory.
13567
hardcode_action_CXX=relink
13569
# We can link without hardcoding, and we can hardcode nonexisting dirs.
13570
hardcode_action_CXX=immediate
13573
# We cannot hardcode anything, or else we can only hardcode existing
13575
hardcode_action_CXX=unsupported
13577
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13578
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13580
if test "$hardcode_action_CXX" = relink; then
13581
# Fast installation is not supported
13582
enable_fast_install=no
13583
elif test "$shlibpath_overrides_runpath" = yes ||
13584
test "$enable_shared" = no; then
13585
# Fast installation is not necessary
13586
enable_fast_install=needless
13590
# The else clause should only fire when bootstrapping the
13591
# libtool distribution, otherwise you forgot to ship ltmain.sh
13592
# with your package, and you will get complaints that there are
13593
# no rules to generate ltmain.sh.
13594
if test -f "$ltmain"; then
13595
# See if we are running on zsh, and set the options which allow our commands through
13596
# without removal of \ escapes.
13597
if test -n "${ZSH_VERSION+set}" ; then
13598
setopt NO_GLOB_SUBST
13600
# Now quote all the things that may contain metacharacters while being
13601
# careful not to overquote the AC_SUBSTed values. We take copies of the
13602
# variables and quote the copies for generation of the libtool script.
13603
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13605
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13606
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13607
deplibs_check_method reload_flag reload_cmds need_locks \
13608
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13609
lt_cv_sys_global_symbol_to_c_name_address \
13610
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13611
old_postinstall_cmds old_postuninstall_cmds \
13615
lt_prog_compiler_wl_CXX \
13616
lt_prog_compiler_pic_CXX \
13617
lt_prog_compiler_static_CXX \
13618
lt_prog_compiler_no_builtin_flag_CXX \
13619
export_dynamic_flag_spec_CXX \
13620
thread_safe_flag_spec_CXX \
13621
whole_archive_flag_spec_CXX \
13622
enable_shared_with_static_runtimes_CXX \
13623
old_archive_cmds_CXX \
13624
old_archive_from_new_cmds_CXX \
13625
predep_objects_CXX \
13626
postdep_objects_CXX \
13629
compiler_lib_search_path_CXX \
13630
compiler_lib_search_dirs_CXX \
13632
archive_expsym_cmds_CXX \
13633
postinstall_cmds_CXX \
13634
postuninstall_cmds_CXX \
13635
old_archive_from_expsyms_cmds_CXX \
13636
allow_undefined_flag_CXX \
13637
no_undefined_flag_CXX \
13638
export_symbols_cmds_CXX \
13639
hardcode_libdir_flag_spec_CXX \
13640
hardcode_libdir_flag_spec_ld_CXX \
13641
hardcode_libdir_separator_CXX \
13642
hardcode_automatic_CXX \
13644
module_expsym_cmds_CXX \
13645
lt_cv_prog_compiler_c_o_CXX \
13646
fix_srcfile_path_CXX \
13647
exclude_expsyms_CXX \
13648
include_expsyms_CXX; do
13651
old_archive_cmds_CXX | \
13652
old_archive_from_new_cmds_CXX | \
13653
archive_cmds_CXX | \
13654
archive_expsym_cmds_CXX | \
13655
module_cmds_CXX | \
13656
module_expsym_cmds_CXX | \
13657
old_archive_from_expsyms_cmds_CXX | \
13658
export_symbols_cmds_CXX | \
13659
extract_expsyms_cmds | reload_cmds | finish_cmds | \
13660
postinstall_cmds | postuninstall_cmds | \
13661
old_postinstall_cmds | old_postuninstall_cmds | \
13662
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13663
# Double-quote double-evaled strings.
13664
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13667
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13673
*'\$0 --fallback-echo"')
13674
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13680
cat <<__EOF__ >> "$cfgfile"
13681
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13683
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13685
# Shell to use when invoking shell scripts.
13688
# Whether or not to build shared libraries.
13689
build_libtool_libs=$enable_shared
13691
# Whether or not to build static libraries.
13692
build_old_libs=$enable_static
13694
# Whether or not to add -lc for building shared libraries.
13695
build_libtool_need_lc=$archive_cmds_need_lc_CXX
13697
# Whether or not to disallow shared libs when runtime libs are static
13698
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13700
# Whether or not to optimize for fast installation.
13701
fast_install=$enable_fast_install
13704
host_alias=$host_alias
13708
# The build system.
13709
build_alias=$build_alias
13713
# An echo program that does not interpret backslashes.
13718
AR_FLAGS=$lt_AR_FLAGS
13723
# LTCC compiler flags.
13724
LTCFLAGS=$lt_LTCFLAGS
13726
# A language-specific compiler.
13727
CC=$lt_compiler_CXX
13729
# Is the compiler the GNU C compiler?
13735
# The linker used to build libraries.
13738
# Whether we need hard or soft links.
13741
# A BSD-compatible nm program.
13744
# A symbol stripping program
13747
# Used to examine libraries when file_magic_cmd begins "file"
13748
MAGIC_CMD=$MAGIC_CMD
13750
# Used on cygwin: DLL creation program.
13753
# Used on cygwin: object dumper.
13756
# Used on cygwin: assembler.
13759
# The name of the directory that contains temporary libtool files.
13762
# How to create reloadable object files.
13763
reload_flag=$lt_reload_flag
13764
reload_cmds=$lt_reload_cmds
13766
# How to pass a linker flag through the compiler.
13767
wl=$lt_lt_prog_compiler_wl_CXX
13769
# Object file suffix (normally "o").
13770
objext="$ac_objext"
13772
# Old archive suffix (normally "a").
13775
# Shared library suffix (normally ".so").
13776
shrext_cmds='$shrext_cmds'
13778
# Executable file suffix (normally "").
13781
# Additional compiler flags for building library objects.
13782
pic_flag=$lt_lt_prog_compiler_pic_CXX
13785
# What is the maximum length of a command?
13786
max_cmd_len=$lt_cv_sys_max_cmd_len
13788
# Does compiler simultaneously support -c and -o options?
13789
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13791
# Must we lock files when doing compilation?
13792
need_locks=$lt_need_locks
13794
# Do we need the lib prefix for modules?
13795
need_lib_prefix=$need_lib_prefix
13797
# Do we need a version for libraries?
13798
need_version=$need_version
13800
# Whether dlopen is supported.
13801
dlopen_support=$enable_dlopen
13803
# Whether dlopen of programs is supported.
13804
dlopen_self=$enable_dlopen_self
13806
# Whether dlopen of statically linked programs is supported.
13807
dlopen_self_static=$enable_dlopen_self_static
13809
# Compiler flag to prevent dynamic linking.
13810
link_static_flag=$lt_lt_prog_compiler_static_CXX
13812
# Compiler flag to turn off builtin functions.
13813
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13815
# Compiler flag to allow reflexive dlopens.
13816
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13818
# Compiler flag to generate shared objects directly from archives.
13819
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13821
# Compiler flag to generate thread-safe objects.
13822
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13824
# Library versioning type.
13825
version_type=$version_type
13827
# Format of library name prefix.
13828
libname_spec=$lt_libname_spec
13830
# List of archive names. First name is the real one, the rest are links.
13831
# The last name is the one that the linker finds with -lNAME.
13832
library_names_spec=$lt_library_names_spec
13834
# The coded name of the library, if different from the real name.
13835
soname_spec=$lt_soname_spec
13837
# Commands used to build and install an old-style archive.
13839
old_archive_cmds=$lt_old_archive_cmds_CXX
13840
old_postinstall_cmds=$lt_old_postinstall_cmds
13841
old_postuninstall_cmds=$lt_old_postuninstall_cmds
13843
# Create an old-style archive from a shared archive.
13844
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13846
# Create a temporary old-style archive to link instead of a shared archive.
13847
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13849
# Commands used to build and install a shared archive.
13850
archive_cmds=$lt_archive_cmds_CXX
13851
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13852
postinstall_cmds=$lt_postinstall_cmds
13853
postuninstall_cmds=$lt_postuninstall_cmds
13855
# Commands used to build a loadable module (assumed same as above if empty)
13856
module_cmds=$lt_module_cmds_CXX
13857
module_expsym_cmds=$lt_module_expsym_cmds_CXX
13859
# Commands to strip libraries.
13860
old_striplib=$lt_old_striplib
13861
striplib=$lt_striplib
13863
# Dependencies to place before the objects being linked to create a
13865
predep_objects=$lt_predep_objects_CXX
13867
# Dependencies to place after the objects being linked to create a
13869
postdep_objects=$lt_postdep_objects_CXX
13871
# Dependencies to place before the objects being linked to create a
13873
predeps=$lt_predeps_CXX
13875
# Dependencies to place after the objects being linked to create a
13877
postdeps=$lt_postdeps_CXX
13879
# The directories searched by this compiler when creating a shared
13881
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13883
# The library search path used internally by the compiler when linking
13884
# a shared library.
13885
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13887
# Method to check whether dependent libraries are shared objects.
13888
deplibs_check_method=$lt_deplibs_check_method
13890
# Command to use when deplibs_check_method == file_magic.
13891
file_magic_cmd=$lt_file_magic_cmd
13893
# Flag that allows shared libraries with undefined symbols to be built.
13894
allow_undefined_flag=$lt_allow_undefined_flag_CXX
13896
# Flag that forces no undefined symbols.
13897
no_undefined_flag=$lt_no_undefined_flag_CXX
13899
# Commands used to finish a libtool library installation in a directory.
13900
finish_cmds=$lt_finish_cmds
13902
# Same as above, but a single script fragment to be evaled but not shown.
13903
finish_eval=$lt_finish_eval
13905
# Take the output of nm and produce a listing of raw symbols and C names.
13906
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13908
# Transform the output of nm in a proper C declaration
13909
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13911
# Transform the output of nm in a C name address pair
13912
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13914
# This is the shared library runtime path variable.
13915
runpath_var=$runpath_var
13917
# This is the shared library path variable.
13918
shlibpath_var=$shlibpath_var
13920
# Is shlibpath searched before the hard-coded library search path?
13921
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13923
# How to hardcode a shared library path into an executable.
13924
hardcode_action=$hardcode_action_CXX
13926
# Whether we should hardcode library paths into libraries.
13927
hardcode_into_libs=$hardcode_into_libs
13929
# Flag to hardcode \$libdir into a binary during linking.
13930
# This must work even if \$libdir does not exist.
13931
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13933
# If ld is used when linking, flag to hardcode \$libdir into
13934
# a binary during linking. This must work even if \$libdir does
13936
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13938
# Whether we need a single -rpath flag with a separated argument.
13939
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13941
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13942
# resulting binary.
13943
hardcode_direct=$hardcode_direct_CXX
13945
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13946
# resulting binary.
13947
hardcode_minus_L=$hardcode_minus_L_CXX
13949
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13950
# the resulting binary.
13951
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13953
# Set to yes if building a shared library automatically hardcodes DIR into the library
13954
# and all subsequent libraries and executables linked against it.
13955
hardcode_automatic=$hardcode_automatic_CXX
13957
# Variables whose values should be saved in libtool wrapper scripts and
13958
# restored at relink time.
13959
variables_saved_for_relink="$variables_saved_for_relink"
13961
# Whether libtool must link a program against all its dependency libraries.
13962
link_all_deplibs=$link_all_deplibs_CXX
13964
# Compile-time system search path for libraries
13965
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13967
# Run-time system search path for libraries
13968
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13970
# Fix the shell variable \$srcfile for the compiler.
13971
fix_srcfile_path=$lt_fix_srcfile_path
13973
# Set to yes if exported symbols are required.
13974
always_export_symbols=$always_export_symbols_CXX
13976
# The commands to list exported symbols.
13977
export_symbols_cmds=$lt_export_symbols_cmds_CXX
13979
# The commands to extract the exported symbol list from a shared archive.
13980
extract_expsyms_cmds=$lt_extract_expsyms_cmds
13982
# Symbols that should not be listed in the preloaded symbols.
13983
exclude_expsyms=$lt_exclude_expsyms_CXX
13985
# Symbols that must always be exported.
13986
include_expsyms=$lt_include_expsyms_CXX
13988
# ### END LIBTOOL TAG CONFIG: $tagname
13994
# If there is no Makefile yet, we rely on a make rule to execute
13995
# `config.status --recheck' to rerun these tests and create the
13996
# libtool script then.
13997
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13998
if test -f "$ltmain_in"; then
13999
test -f Makefile && make "$ltmain"
14005
ac_cpp='$CPP $CPPFLAGS'
14006
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14007
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14008
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14014
with_gnu_ldcxx=$with_gnu_ld
14015
with_gnu_ld=$lt_save_with_gnu_ld
14016
lt_cv_path_LDCXX=$lt_cv_path_LD
14017
lt_cv_path_LD=$lt_save_path_LD
14018
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14019
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14027
if test -n "$F77" && test "X$F77" != "Xno"; then
14030
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14031
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14032
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14035
archive_cmds_need_lc_F77=no
14036
allow_undefined_flag_F77=
14037
always_export_symbols_F77=no
14038
archive_expsym_cmds_F77=
14039
export_dynamic_flag_spec_F77=
14040
hardcode_direct_F77=no
14041
hardcode_libdir_flag_spec_F77=
14042
hardcode_libdir_flag_spec_ld_F77=
14043
hardcode_libdir_separator_F77=
14044
hardcode_minus_L_F77=no
14045
hardcode_automatic_F77=no
14047
module_expsym_cmds_F77=
14048
link_all_deplibs_F77=unknown
14049
old_archive_cmds_F77=$old_archive_cmds
14050
no_undefined_flag_F77=
14051
whole_archive_flag_spec_F77=
14052
enable_shared_with_static_runtimes_F77=no
14054
# Source file extension for f77 test sources.
14057
# Object file extension for compiled f77 test sources.
14061
# Code to be used in simple compile tests
14062
lt_simple_compile_test_code="\
14068
# Code to be used in simple link tests
14069
lt_simple_link_test_code="\
14074
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14076
# If no C compiler was specified, use CC.
14079
# If no C compiler flags were specified, use CFLAGS.
14080
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14082
# Allow CC to be a program name with arguments.
14086
# save warnings/boilerplate of simple test code
14087
ac_outfile=conftest.$ac_objext
14088
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14089
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14090
_lt_compiler_boilerplate=`cat conftest.err`
14093
ac_outfile=conftest.$ac_objext
14094
echo "$lt_simple_link_test_code" >conftest.$ac_ext
14095
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14096
_lt_linker_boilerplate=`cat conftest.err`
14100
# Allow CC to be a program name with arguments.
14105
for cc_temp in $compiler""; do
14107
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14108
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14113
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14116
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14117
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14118
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14119
echo "${ECHO_T}$can_build_shared" >&6; }
14121
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14122
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14123
test "$can_build_shared" = "no" && enable_shared=no
14125
# On AIX, shared libraries and static libraries use the same namespace, and
14126
# are all built from PIC.
14129
test "$enable_shared" = yes && enable_static=no
14130
if test -n "$RANLIB"; then
14131
archive_cmds="$archive_cmds~\$RANLIB \$lib"
14132
postinstall_cmds='$RANLIB $lib'
14136
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14137
test "$enable_shared" = yes && enable_static=no
14141
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14142
echo "${ECHO_T}$enable_shared" >&6; }
14144
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14145
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14146
# Make sure either enable_shared or enable_static is yes.
14147
test "$enable_shared" = yes || enable_static=yes
14148
{ echo "$as_me:$LINENO: result: $enable_static" >&5
14149
echo "${ECHO_T}$enable_static" >&6; }
14154
lt_prog_compiler_wl_F77=
14155
lt_prog_compiler_pic_F77=
14156
lt_prog_compiler_static_F77=
14158
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14159
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14161
if test "$GCC" = yes; then
14162
lt_prog_compiler_wl_F77='-Wl,'
14163
lt_prog_compiler_static_F77='-static'
14167
# All AIX code is PIC.
14168
if test "$host_cpu" = ia64; then
14169
# AIX 5 now supports IA64 processor
14170
lt_prog_compiler_static_F77='-Bstatic'
14175
# FIXME: we need at least 68020 code to build shared libraries, but
14176
# adding the `-m68020' flag to GCC prevents building anything better,
14178
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14181
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14182
# PIC is the default for these OSes.
14185
mingw* | cygwin* | pw32* | os2*)
14186
# This hack is so that the source file can tell whether it is being
14187
# built for inclusion in a dll (and should export symbols for example).
14188
# Although the cygwin gcc ignores -fPIC, still need this for old-style
14189
# (--disable-auto-import) libraries
14190
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14193
darwin* | rhapsody*)
14194
# PIC is the default on this platform
14195
# Common symbols not allowed in MH_DYLIB files
14196
lt_prog_compiler_pic_F77='-fno-common'
14200
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
14201
# Instead, we relocate shared libraries at runtime.
14205
# Just because we use GCC doesn't mean we suddenly get shared libraries
14206
# on systems that don't support them.
14207
lt_prog_compiler_can_build_shared_F77=no
14212
if test -d /usr/nec; then
14213
lt_prog_compiler_pic_F77=-Kconform_pic
14218
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14219
# not for PA HP-UX.
14225
lt_prog_compiler_pic_F77='-fPIC'
14231
lt_prog_compiler_pic_F77='-fPIC'
14235
# PORTME Check for flag to pass linker flags through the system compiler.
14238
lt_prog_compiler_wl_F77='-Wl,'
14239
if test "$host_cpu" = ia64; then
14240
# AIX 5 now supports IA64 processor
14241
lt_prog_compiler_static_F77='-Bstatic'
14243
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14247
# PIC is the default on this platform
14248
# Common symbols not allowed in MH_DYLIB files
14249
case $cc_basename in
14251
lt_prog_compiler_pic_F77='-qnocommon'
14252
lt_prog_compiler_wl_F77='-Wl,'
14257
mingw* | cygwin* | pw32* | os2*)
14258
# This hack is so that the source file can tell whether it is being
14259
# built for inclusion in a dll (and should export symbols for example).
14260
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14263
hpux9* | hpux10* | hpux11*)
14264
lt_prog_compiler_wl_F77='-Wl,'
14265
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14266
# not for PA HP-UX.
14272
lt_prog_compiler_pic_F77='+Z'
14275
# Is there a better lt_prog_compiler_static that works with the bundled CC?
14276
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14279
irix5* | irix6* | nonstopux*)
14280
lt_prog_compiler_wl_F77='-Wl,'
14281
# PIC (with -KPIC) is the default.
14282
lt_prog_compiler_static_F77='-non_shared'
14286
lt_prog_compiler_pic_F77='-KPIC'
14287
lt_prog_compiler_static_F77='-Bstatic'
14290
linux* | k*bsd*-gnu)
14291
case $cc_basename in
14293
lt_prog_compiler_wl_F77='-Wl,'
14294
lt_prog_compiler_pic_F77='-KPIC'
14295
lt_prog_compiler_static_F77='-static'
14297
pgcc* | pgf77* | pgf90* | pgf95*)
14298
# Portland Group compilers (*not* the Pentium gcc compiler,
14299
# which looks to be a dead project)
14300
lt_prog_compiler_wl_F77='-Wl,'
14301
lt_prog_compiler_pic_F77='-fpic'
14302
lt_prog_compiler_static_F77='-Bstatic'
14305
lt_prog_compiler_wl_F77='-Wl,'
14306
# All Alpha code is PIC.
14307
lt_prog_compiler_static_F77='-non_shared'
14310
case `$CC -V 2>&1 | sed 5q` in
14313
lt_prog_compiler_pic_F77='-KPIC'
14314
lt_prog_compiler_static_F77='-Bstatic'
14315
lt_prog_compiler_wl_F77='-Wl,'
14318
# Sun Fortran 8.3 passes all unrecognized flags to the linker
14319
lt_prog_compiler_pic_F77='-KPIC'
14320
lt_prog_compiler_static_F77='-Bstatic'
14321
lt_prog_compiler_wl_F77=''
14328
osf3* | osf4* | osf5*)
14329
lt_prog_compiler_wl_F77='-Wl,'
14330
# All OSF/1 code is PIC.
14331
lt_prog_compiler_static_F77='-non_shared'
14335
lt_prog_compiler_static_F77='-non_shared'
14339
lt_prog_compiler_pic_F77='-KPIC'
14340
lt_prog_compiler_static_F77='-Bstatic'
14341
case $cc_basename in
14342
f77* | f90* | f95*)
14343
lt_prog_compiler_wl_F77='-Qoption ld ';;
14345
lt_prog_compiler_wl_F77='-Wl,';;
14350
lt_prog_compiler_wl_F77='-Qoption ld '
14351
lt_prog_compiler_pic_F77='-PIC'
14352
lt_prog_compiler_static_F77='-Bstatic'
14355
sysv4 | sysv4.2uw2* | sysv4.3*)
14356
lt_prog_compiler_wl_F77='-Wl,'
14357
lt_prog_compiler_pic_F77='-KPIC'
14358
lt_prog_compiler_static_F77='-Bstatic'
14362
if test -d /usr/nec ;then
14363
lt_prog_compiler_pic_F77='-Kconform_pic'
14364
lt_prog_compiler_static_F77='-Bstatic'
14368
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14369
lt_prog_compiler_wl_F77='-Wl,'
14370
lt_prog_compiler_pic_F77='-KPIC'
14371
lt_prog_compiler_static_F77='-Bstatic'
14375
lt_prog_compiler_wl_F77='-Wl,'
14376
lt_prog_compiler_can_build_shared_F77=no
14380
lt_prog_compiler_pic_F77='-pic'
14381
lt_prog_compiler_static_F77='-Bstatic'
14385
lt_prog_compiler_can_build_shared_F77=no
14390
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14391
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14394
# Check to make sure the PIC flag actually works.
14396
if test -n "$lt_prog_compiler_pic_F77"; then
14398
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14399
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14400
if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14401
echo $ECHO_N "(cached) $ECHO_C" >&6
14403
lt_cv_prog_compiler_pic_works_F77=no
14404
ac_outfile=conftest.$ac_objext
14405
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14406
lt_compiler_flag="$lt_prog_compiler_pic_F77"
14407
# Insert the option either (1) after the last *FLAGS variable, or
14408
# (2) before a word containing "conftest.", or (3) at the end.
14409
# Note that $ac_compile itself does not contain backslashes and begins
14410
# with a dollar sign (not a hyphen), so the echo should work correctly.
14411
# The option is referenced via a variable to avoid confusing sed.
14412
lt_compile=`echo "$ac_compile" | $SED \
14413
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14414
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14415
-e 's:$: $lt_compiler_flag:'`
14416
(eval echo "\"\$as_me:14416: $lt_compile\"" >&5)
14417
(eval "$lt_compile" 2>conftest.err)
14419
cat conftest.err >&5
14420
echo "$as_me:14420: \$? = $ac_status" >&5
14421
if (exit $ac_status) && test -s "$ac_outfile"; then
14422
# The compiler can only warn and ignore the option if not recognized
14423
# So say no if there are warnings other than the usual output.
14424
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14425
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14426
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14427
lt_cv_prog_compiler_pic_works_F77=yes
14433
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14434
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14436
if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14437
case $lt_prog_compiler_pic_F77 in
14439
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14442
lt_prog_compiler_pic_F77=
14443
lt_prog_compiler_can_build_shared_F77=no
14448
# For platforms which do not support PIC, -DPIC is meaningless:
14450
lt_prog_compiler_pic_F77=
14453
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14458
# Check to make sure the static flag actually works.
14460
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14461
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14462
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14463
if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14464
echo $ECHO_N "(cached) $ECHO_C" >&6
14466
lt_cv_prog_compiler_static_works_F77=no
14467
save_LDFLAGS="$LDFLAGS"
14468
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14469
echo "$lt_simple_link_test_code" > conftest.$ac_ext
14470
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14471
# The linker can only warn and ignore the option if not recognized
14472
# So say no if there are warnings
14473
if test -s conftest.err; then
14474
# Append any errors to the config.log.
14475
cat conftest.err 1>&5
14476
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14477
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14478
if diff conftest.exp conftest.er2 >/dev/null; then
14479
lt_cv_prog_compiler_static_works_F77=yes
14482
lt_cv_prog_compiler_static_works_F77=yes
14486
LDFLAGS="$save_LDFLAGS"
14489
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14490
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14492
if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14495
lt_prog_compiler_static_F77=
14499
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14500
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14501
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14502
echo $ECHO_N "(cached) $ECHO_C" >&6
14504
lt_cv_prog_compiler_c_o_F77=no
14505
$rm -r conftest 2>/dev/null
14509
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14511
lt_compiler_flag="-o out/conftest2.$ac_objext"
14512
# Insert the option either (1) after the last *FLAGS variable, or
14513
# (2) before a word containing "conftest.", or (3) at the end.
14514
# Note that $ac_compile itself does not contain backslashes and begins
14515
# with a dollar sign (not a hyphen), so the echo should work correctly.
14516
lt_compile=`echo "$ac_compile" | $SED \
14517
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14518
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14519
-e 's:$: $lt_compiler_flag:'`
14520
(eval echo "\"\$as_me:14520: $lt_compile\"" >&5)
14521
(eval "$lt_compile" 2>out/conftest.err)
14523
cat out/conftest.err >&5
14524
echo "$as_me:14524: \$? = $ac_status" >&5
14525
if (exit $ac_status) && test -s out/conftest2.$ac_objext
14527
# The compiler can only warn and ignore the option if not recognized
14528
# So say no if there are warnings
14529
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14530
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14531
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14532
lt_cv_prog_compiler_c_o_F77=yes
14537
# SGI C++ compiler will create directory out/ii_files/ for
14538
# template instantiation
14539
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14540
$rm out/* && rmdir out
14546
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14547
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14550
hard_links="nottested"
14551
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14552
# do not overwrite the value of need_locks provided by the user
14553
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14554
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14557
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14559
ln conftest.a conftest.b 2>&5 || hard_links=no
14560
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14561
{ echo "$as_me:$LINENO: result: $hard_links" >&5
14562
echo "${ECHO_T}$hard_links" >&6; }
14563
if test "$hard_links" = no; then
14564
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14565
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14572
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14573
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14576
allow_undefined_flag_F77=
14577
enable_shared_with_static_runtimes_F77=no
14579
archive_expsym_cmds_F77=
14580
old_archive_From_new_cmds_F77=
14581
old_archive_from_expsyms_cmds_F77=
14582
export_dynamic_flag_spec_F77=
14583
whole_archive_flag_spec_F77=
14584
thread_safe_flag_spec_F77=
14585
hardcode_libdir_flag_spec_F77=
14586
hardcode_libdir_flag_spec_ld_F77=
14587
hardcode_libdir_separator_F77=
14588
hardcode_direct_F77=no
14589
hardcode_minus_L_F77=no
14590
hardcode_shlibpath_var_F77=unsupported
14591
link_all_deplibs_F77=unknown
14592
hardcode_automatic_F77=no
14594
module_expsym_cmds_F77=
14595
always_export_symbols_F77=no
14596
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14597
# include_expsyms should be a list of space-separated symbols to be *always*
14598
# included in the symbol list
14599
include_expsyms_F77=
14600
# exclude_expsyms can be an extended regexp of symbols to exclude
14601
# it will be wrapped by ` (' and `)$', so one must not match beginning or
14602
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14603
# as well as any symbol that contains `d'.
14604
exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14605
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14606
# platforms (ab)use it in PIC code, but their linkers get confused if
14607
# the symbol is explicitly referenced. Since portable code cannot
14608
# rely on this symbol name, it's probably fine to never include it in
14609
# preloaded symbol tables.
14610
# Exclude shared library initialization/finalization symbols.
14611
extract_expsyms_cmds=
14612
# Just being paranoid about ensuring that cc_basename is set.
14613
for cc_temp in $compiler""; do
14615
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14616
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14621
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14624
cygwin* | mingw* | pw32*)
14625
# FIXME: the MSVC++ port hasn't been tested in a loooong time
14626
# When not using gcc, we currently assume that we are using
14627
# Microsoft Visual C++.
14628
if test "$GCC" != yes; then
14633
# we just hope/assume this is gcc and not c89 (= MSVC++)
14642
if test "$with_gnu_ld" = yes; then
14643
# If archive_cmds runs LD, not CC, wlarc should be empty
14646
# Set some defaults for GNU ld with shared library support. These
14647
# are reset later if shared libraries are not supported. Putting them
14648
# here allows them to be overridden if necessary.
14649
runpath_var=LD_RUN_PATH
14650
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14651
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14652
# ancient GNU ld didn't support --whole-archive et. al.
14653
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14654
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14656
whole_archive_flag_spec_F77=
14658
supports_anon_versioning=no
14659
case `$LD -v 2>/dev/null` in
14660
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14661
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14662
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14663
*\ 2.11.*) ;; # other 2.11 versions
14664
*) supports_anon_versioning=yes ;;
14667
# See if GNU ld supports shared libraries.
14670
# On AIX/PPC, the GNU linker is very broken
14671
if test "$host_cpu" != ia64; then
14675
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14676
*** to be unable to reliably create shared libraries on AIX.
14677
*** Therefore, libtool is disabling shared libraries support. If you
14678
*** really care for shared libraries, you may want to modify your PATH
14679
*** so that a non-GNU linker is found, and then restart.
14686
archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
14687
hardcode_libdir_flag_spec_F77='-L$libdir'
14688
hardcode_minus_L_F77=yes
14690
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14691
# that the semantics of dynamic libraries on AmigaOS, at least up
14692
# to version 4, is to share data among multiple programs linked
14693
# with the same dynamic library. Since this doesn't match the
14694
# behavior of shared libraries on other platforms, we can't use
14700
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14701
allow_undefined_flag_F77=unsupported
14702
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14703
# support --undefined. This deserves some investigation. FIXME
14704
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14710
cygwin* | mingw* | pw32*)
14711
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14712
# as there is no search path for DLLs.
14713
hardcode_libdir_flag_spec_F77='-L$libdir'
14714
allow_undefined_flag_F77=unsupported
14715
always_export_symbols_F77=no
14716
enable_shared_with_static_runtimes_F77=yes
14717
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14719
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14720
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14721
# If the export-symbols file already is a .def file (1st line
14722
# is EXPORTS), use it as is; otherwise, prepend...
14723
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14724
cp $export_symbols $output_objdir/$soname.def;
14726
echo EXPORTS > $output_objdir/$soname.def;
14727
cat $export_symbols >> $output_objdir/$soname.def;
14729
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14736
hardcode_direct_F77=no
14737
hardcode_shlibpath_var_F77=no
14738
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14739
export_dynamic_flag_spec_F77='${wl}-E'
14740
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14741
# Instead, shared libraries are loaded at an image base (0x10000000 by
14742
# default) and relocated if they conflict, which is a slow very memory
14743
# consuming and fragmenting process. To avoid this, we pick a random,
14744
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14745
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
14746
archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14747
archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14750
gnu* | linux* | k*bsd*-gnu)
14751
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14753
case $cc_basename,$host_cpu in
14754
pgcc*) # Portland Group C compiler
14755
whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14756
tmp_addflag=' $pic_flag'
14758
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14759
whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14760
tmp_addflag=' $pic_flag -Mnomain' ;;
14761
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14762
tmp_addflag=' -i_dynamic' ;;
14763
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14764
tmp_addflag=' -i_dynamic -nofor_main' ;;
14765
ifc* | ifort*) # Intel Fortran compiler
14766
tmp_addflag=' -nofor_main' ;;
14768
case `$CC -V 2>&1 | sed 5q` in
14769
*Sun\ C*) # Sun C 5.9
14770
whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14771
tmp_sharedflag='-G' ;;
14772
*Sun\ F*) # Sun Fortran 8.3
14773
tmp_sharedflag='-G' ;;
14775
tmp_sharedflag='-shared' ;;
14777
archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14779
if test $supports_anon_versioning = yes; then
14780
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14781
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14782
$echo "local: *; };" >> $output_objdir/$libname.ver~
14783
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14785
link_all_deplibs_F77=no
14791
netbsd* | netbsdelf*-gnu)
14792
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14793
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14796
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14797
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14802
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14806
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14807
*** create shared libraries on Solaris systems. Therefore, libtool
14808
*** is disabling shared libraries support. We urge you to upgrade GNU
14809
*** binutils to release 2.9.1 or newer. Another option is to modify
14810
*** your PATH or compiler configuration so that the native linker is
14811
*** used, and then restart.
14814
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14815
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14816
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14822
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14823
case `$LD -v 2>&1` in
14824
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14828
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14829
*** reliably create shared libraries on SCO systems. Therefore, libtool
14830
*** is disabling shared libraries support. We urge you to upgrade GNU
14831
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14832
*** your PATH or compiler configuration so that the native linker is
14833
*** used, and then restart.
14838
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14839
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14840
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14841
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14850
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14852
hardcode_direct_F77=yes
14853
hardcode_shlibpath_var_F77=no
14857
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14858
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14859
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14866
if test "$ld_shlibs_F77" = no; then
14868
hardcode_libdir_flag_spec_F77=
14869
export_dynamic_flag_spec_F77=
14870
whole_archive_flag_spec_F77=
14873
# PORTME fill in a description of your system's linker (not GNU ld)
14876
allow_undefined_flag_F77=unsupported
14877
always_export_symbols_F77=yes
14878
archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14879
# Note: this linker hardcodes the directories in LIBPATH if there
14880
# are no directories specified by -L.
14881
hardcode_minus_L_F77=yes
14882
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14883
# Neither direct hardcoding nor static linking is supported with a
14885
hardcode_direct_F77=unsupported
14890
if test "$host_cpu" = ia64; then
14891
# On IA64, the linker does run time linking by default, so we don't
14892
# have to do anything special.
14893
aix_use_runtimelinking=no
14894
exp_sym_flag='-Bexport'
14897
# If we're using GNU nm, then we don't want the "-C" option.
14898
# -C means demangle to AIX nm, but means don't demangle with GNU nm
14899
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14900
export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14902
export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14904
aix_use_runtimelinking=no
14906
# Test if we are trying to use run time linking or normal
14907
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14908
# need to do runtime linking.
14909
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14910
for ld_flag in $LDFLAGS; do
14911
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14912
aix_use_runtimelinking=yes
14919
exp_sym_flag='-bexport'
14920
no_entry_flag='-bnoentry'
14923
# When large executables or shared objects are built, AIX ld can
14924
# have problems creating the table of contents. If linking a library
14925
# or program results in "error TOC overflow" add -mminimal-toc to
14926
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14927
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14929
archive_cmds_F77=''
14930
hardcode_direct_F77=yes
14931
hardcode_libdir_separator_F77=':'
14932
link_all_deplibs_F77=yes
14934
if test "$GCC" = yes; then
14935
case $host_os in aix4.[012]|aix4.[012].*)
14936
# We only want to do this on AIX 4.2 and lower, the check
14937
# below for broken collect2 doesn't work under 4.3+
14938
collect2name=`${CC} -print-prog-name=collect2`
14939
if test -f "$collect2name" && \
14940
strings "$collect2name" | grep resolve_lib_name >/dev/null
14942
# We have reworked collect2
14945
# We have old collect2
14946
hardcode_direct_F77=unsupported
14947
# It fails to find uninstalled libraries when the uninstalled
14948
# path is not listed in the libpath. Setting hardcode_minus_L
14949
# to unsupported forces relinking
14950
hardcode_minus_L_F77=yes
14951
hardcode_libdir_flag_spec_F77='-L$libdir'
14952
hardcode_libdir_separator_F77=
14956
shared_flag='-shared'
14957
if test "$aix_use_runtimelinking" = yes; then
14958
shared_flag="$shared_flag "'${wl}-G'
14962
if test "$host_cpu" = ia64; then
14963
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14964
# chokes on -Wl,-G. The following line is correct:
14967
if test "$aix_use_runtimelinking" = yes; then
14968
shared_flag='${wl}-G'
14970
shared_flag='${wl}-bM:SRE'
14975
# It seems that -bexpall does not export symbols beginning with
14976
# underscore (_), so it is better to generate a list of symbols to export.
14977
always_export_symbols_F77=yes
14978
if test "$aix_use_runtimelinking" = yes; then
14979
# Warning - without using the other runtime loading flags (-brtl),
14980
# -berok will link without error, but may produce a broken library.
14981
allow_undefined_flag_F77='-berok'
14982
# Determine the default libpath from the value encoded in an empty executable.
14983
cat >conftest.$ac_ext <<_ACEOF
14988
rm -f conftest.$ac_objext conftest$ac_exeext
14989
if { (ac_try="$ac_link"
14990
case "(($ac_try" in
14991
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14992
*) ac_try_echo=$ac_try;;
14994
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14995
(eval "$ac_link") 2>conftest.er1
14997
grep -v '^ *+' conftest.er1 >conftest.err
14999
cat conftest.err >&5
15000
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001
(exit $ac_status); } && {
15002
test -z "$ac_f77_werror_flag" ||
15003
test ! -s conftest.err
15004
} && test -s conftest$ac_exeext &&
15005
$as_test_x conftest$ac_exeext; then
15007
lt_aix_libpath_sed='
15008
/Import File Strings/,/^$/ {
15014
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15015
# Check for a 64-bit object if we didn't find anything.
15016
if test -z "$aix_libpath"; then
15017
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15020
echo "$as_me: failed program was:" >&5
15021
sed 's/^/| /' conftest.$ac_ext >&5
15026
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15027
conftest$ac_exeext conftest.$ac_ext
15028
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15030
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15031
archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15033
if test "$host_cpu" = ia64; then
15034
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15035
allow_undefined_flag_F77="-z nodefs"
15036
archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
15038
# Determine the default libpath from the value encoded in an empty executable.
15039
cat >conftest.$ac_ext <<_ACEOF
15044
rm -f conftest.$ac_objext conftest$ac_exeext
15045
if { (ac_try="$ac_link"
15046
case "(($ac_try" in
15047
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15048
*) ac_try_echo=$ac_try;;
15050
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15051
(eval "$ac_link") 2>conftest.er1
15053
grep -v '^ *+' conftest.er1 >conftest.err
15055
cat conftest.err >&5
15056
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15057
(exit $ac_status); } && {
15058
test -z "$ac_f77_werror_flag" ||
15059
test ! -s conftest.err
15060
} && test -s conftest$ac_exeext &&
15061
$as_test_x conftest$ac_exeext; then
15063
lt_aix_libpath_sed='
15064
/Import File Strings/,/^$/ {
15070
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15071
# Check for a 64-bit object if we didn't find anything.
15072
if test -z "$aix_libpath"; then
15073
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15076
echo "$as_me: failed program was:" >&5
15077
sed 's/^/| /' conftest.$ac_ext >&5
15082
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15083
conftest$ac_exeext conftest.$ac_ext
15084
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15086
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15087
# Warning - without using the other run time loading flags,
15088
# -berok will link without error, but may produce a broken library.
15089
no_undefined_flag_F77=' ${wl}-bernotok'
15090
allow_undefined_flag_F77=' ${wl}-berok'
15091
# Exported symbols can be pulled into shared objects from archives
15092
whole_archive_flag_spec_F77='$convenience'
15093
archive_cmds_need_lc_F77=yes
15094
# This is similar to how AIX traditionally builds its shared libraries.
15095
archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15101
archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15102
hardcode_libdir_flag_spec_F77='-L$libdir'
15103
hardcode_minus_L_F77=yes
15104
# see comment about different semantics on the GNU ld section
15109
export_dynamic_flag_spec_F77=-rdynamic
15112
cygwin* | mingw* | pw32*)
15113
# When not using gcc, we currently assume that we are using
15114
# Microsoft Visual C++.
15115
# hardcode_libdir_flag_spec is actually meaningless, as there is
15116
# no search path for DLLs.
15117
hardcode_libdir_flag_spec_F77=' '
15118
allow_undefined_flag_F77=unsupported
15119
# Tell ltmain to make .lib files, not .a files.
15121
# Tell ltmain to make .dll files, not .so files.
15123
# FIXME: Setting linknames here is a bad hack.
15124
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15125
# The linker will automatically build a .lib file if we build a DLL.
15126
old_archive_From_new_cmds_F77='true'
15127
# FIXME: Should let the user specify the lib program.
15128
old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15129
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15130
enable_shared_with_static_runtimes_F77=yes
15133
darwin* | rhapsody*)
15135
rhapsody* | darwin1.[012])
15136
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15139
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15140
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15142
case ${MACOSX_DEPLOYMENT_TARGET} in
15144
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15147
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15153
archive_cmds_need_lc_F77=no
15154
hardcode_direct_F77=no
15155
hardcode_automatic_F77=yes
15156
hardcode_shlibpath_var_F77=unsupported
15157
whole_archive_flag_spec_F77=''
15158
link_all_deplibs_F77=yes
15159
if test "$GCC" = yes ; then
15160
output_verbose_link_cmd='echo'
15161
archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15162
module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15163
archive_expsym_cmds_F77="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}"
15164
module_expsym_cmds_F77="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}"
15166
case $cc_basename in
15168
output_verbose_link_cmd='echo'
15169
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15170
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15171
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15172
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15173
module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15183
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15184
hardcode_libdir_flag_spec_F77='-L$libdir'
15185
hardcode_shlibpath_var_F77=no
15192
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15193
# support. Future versions do this automatically, but an explicit c++rt0.o
15194
# does not break anything, and helps significantly (at the cost of a little
15197
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15198
hardcode_libdir_flag_spec_F77='-R$libdir'
15199
hardcode_direct_F77=yes
15200
hardcode_shlibpath_var_F77=no
15203
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
15205
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15206
hardcode_direct_F77=yes
15207
hardcode_minus_L_F77=yes
15208
hardcode_shlibpath_var_F77=no
15211
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15212
freebsd* | dragonfly*)
15213
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15214
hardcode_libdir_flag_spec_F77='-R$libdir'
15215
hardcode_direct_F77=yes
15216
hardcode_shlibpath_var_F77=no
15220
if test "$GCC" = yes; then
15221
archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15223
archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15225
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15226
hardcode_libdir_separator_F77=:
15227
hardcode_direct_F77=yes
15229
# hardcode_minus_L: Not really in the search PATH,
15230
# but as the default location of the library.
15231
hardcode_minus_L_F77=yes
15232
export_dynamic_flag_spec_F77='${wl}-E'
15236
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15237
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15239
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15241
if test "$with_gnu_ld" = no; then
15242
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15243
hardcode_libdir_separator_F77=:
15245
hardcode_direct_F77=yes
15246
export_dynamic_flag_spec_F77='${wl}-E'
15248
# hardcode_minus_L: Not really in the search PATH,
15249
# but as the default location of the library.
15250
hardcode_minus_L_F77=yes
15255
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15258
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15261
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15264
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15270
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15273
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15276
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15280
if test "$with_gnu_ld" = no; then
15281
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15282
hardcode_libdir_separator_F77=:
15286
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15287
hardcode_direct_F77=no
15288
hardcode_shlibpath_var_F77=no
15291
hardcode_direct_F77=yes
15292
export_dynamic_flag_spec_F77='${wl}-E'
15294
# hardcode_minus_L: Not really in the search PATH,
15295
# but as the default location of the library.
15296
hardcode_minus_L_F77=yes
15302
irix5* | irix6* | nonstopux*)
15303
if test "$GCC" = yes; then
15304
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15306
archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15307
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15309
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15310
hardcode_libdir_separator_F77=:
15311
link_all_deplibs_F77=yes
15314
netbsd* | netbsdelf*-gnu)
15315
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15316
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15318
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15320
hardcode_libdir_flag_spec_F77='-R$libdir'
15321
hardcode_direct_F77=yes
15322
hardcode_shlibpath_var_F77=no
15326
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15327
hardcode_direct_F77=yes
15328
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15329
hardcode_libdir_separator_F77=:
15330
hardcode_shlibpath_var_F77=no
15334
if test -f /usr/libexec/ld.so; then
15335
hardcode_direct_F77=yes
15336
hardcode_shlibpath_var_F77=no
15337
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15338
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15339
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15340
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15341
export_dynamic_flag_spec_F77='${wl}-E'
15344
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15345
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15346
hardcode_libdir_flag_spec_F77='-R$libdir'
15349
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15350
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15360
hardcode_libdir_flag_spec_F77='-L$libdir'
15361
hardcode_minus_L_F77=yes
15362
allow_undefined_flag_F77=unsupported
15363
archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
15364
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15368
if test "$GCC" = yes; then
15369
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15370
archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15372
allow_undefined_flag_F77=' -expect_unresolved \*'
15373
archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15375
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15376
hardcode_libdir_separator_F77=:
15379
osf4* | osf5*) # as osf3* with the addition of -msym flag
15380
if test "$GCC" = yes; then
15381
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15382
archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15383
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15385
allow_undefined_flag_F77=' -expect_unresolved \*'
15386
archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15387
archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15388
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15390
# Both c and cxx compiler support -rpath directly
15391
hardcode_libdir_flag_spec_F77='-rpath $libdir'
15393
hardcode_libdir_separator_F77=:
15397
no_undefined_flag_F77=' -z text'
15398
if test "$GCC" = yes; then
15400
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15401
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15402
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15405
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15406
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15407
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15409
hardcode_libdir_flag_spec_F77='-R$libdir'
15410
hardcode_shlibpath_var_F77=no
15412
solaris2.[0-5] | solaris2.[0-5].*) ;;
15414
# The compiler driver will combine and reorder linker options,
15415
# but understands `-z linker_flag'. GCC discards it without `$wl',
15416
# but is careful enough not to reorder.
15417
# Supported since Solaris 2.6 (maybe 2.5.1?)
15418
if test "$GCC" = yes; then
15419
whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15421
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15425
link_all_deplibs_F77=yes
15429
if test "x$host_vendor" = xsequent; then
15430
# Use $CC to link under sequent, because it throws in some extra .o
15431
# files that make .init and .fini sections work.
15432
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15434
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15436
hardcode_libdir_flag_spec_F77='-L$libdir'
15437
hardcode_direct_F77=yes
15438
hardcode_minus_L_F77=yes
15439
hardcode_shlibpath_var_F77=no
15443
case $host_vendor in
15445
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15446
hardcode_direct_F77=yes # is this really true???
15449
## LD is ld it makes a PLAMLIB
15450
## CC just makes a GrossModule.
15451
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15452
reload_cmds_F77='$CC -r -o $output$reload_objs'
15453
hardcode_direct_F77=no
15456
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15457
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15460
runpath_var='LD_RUN_PATH'
15461
hardcode_shlibpath_var_F77=no
15465
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15466
hardcode_shlibpath_var_F77=no
15467
export_dynamic_flag_spec_F77='-Bexport'
15471
if test -d /usr/nec; then
15472
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15473
hardcode_shlibpath_var_F77=no
15474
runpath_var=LD_RUN_PATH
15475
hardcode_runpath_var=yes
15480
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15481
no_undefined_flag_F77='${wl}-z,text'
15482
archive_cmds_need_lc_F77=no
15483
hardcode_shlibpath_var_F77=no
15484
runpath_var='LD_RUN_PATH'
15486
if test "$GCC" = yes; then
15487
archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15488
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15490
archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15491
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15495
sysv5* | sco3.2v5* | sco5v6*)
15496
# Note: We can NOT use -z defs as we might desire, because we do not
15497
# link with -lc, and that would cause any symbols used from libc to
15498
# always be unresolved, which means just about no library would
15499
# ever link correctly. If we're not using GNU ld we use -z text
15500
# though, which does catch some bad symbols but isn't as heavy-handed
15502
no_undefined_flag_F77='${wl}-z,text'
15503
allow_undefined_flag_F77='${wl}-z,nodefs'
15504
archive_cmds_need_lc_F77=no
15505
hardcode_shlibpath_var_F77=no
15506
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15507
hardcode_libdir_separator_F77=':'
15508
link_all_deplibs_F77=yes
15509
export_dynamic_flag_spec_F77='${wl}-Bexport'
15510
runpath_var='LD_RUN_PATH'
15512
if test "$GCC" = yes; then
15513
archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15514
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15516
archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15517
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15522
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15523
hardcode_libdir_flag_spec_F77='-L$libdir'
15524
hardcode_shlibpath_var_F77=no
15533
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15534
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15535
test "$ld_shlibs_F77" = no && can_build_shared=no
15538
# Do we need to explicitly link libc?
15540
case "x$archive_cmds_need_lc_F77" in
15542
# Assume -lc should be added
15543
archive_cmds_need_lc_F77=yes
15545
if test "$enable_shared" = yes && test "$GCC" = yes; then
15546
case $archive_cmds_F77 in
15548
# FIXME: we may have to deal with multi-command sequences.
15551
# Test whether the compiler implicitly links with -lc since on some
15552
# systems, -lgcc has to come before -lc. If gcc already passes -lc
15553
# to ld, don't add -lc before -lgcc.
15554
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15555
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15557
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15559
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15560
(eval $ac_compile) 2>&5
15562
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563
(exit $ac_status); } 2>conftest.err; then
15566
libobjs=conftest.$ac_objext
15568
wl=$lt_prog_compiler_wl_F77
15569
pic_flag=$lt_prog_compiler_pic_F77
15575
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15576
allow_undefined_flag_F77=
15577
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15578
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15580
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15581
(exit $ac_status); }
15583
archive_cmds_need_lc_F77=no
15585
archive_cmds_need_lc_F77=yes
15587
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15589
cat conftest.err 1>&5
15592
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15593
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15600
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15601
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15602
library_names_spec=
15603
libname_spec='lib$name'
15607
postuninstall_cmds=
15611
shlibpath_overrides_runpath=unknown
15613
dynamic_linker="$host_os ld.so"
15614
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15616
need_lib_prefix=unknown
15617
hardcode_into_libs=no
15619
# when you set need_version to no, make sure it does not cause -set_version
15620
# flags to be left without arguments
15621
need_version=unknown
15626
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15627
shlibpath_var=LIBPATH
15629
# AIX 3 has no versioning support, so we append a major version to the name.
15630
soname_spec='${libname}${release}${shared_ext}$major'
15637
hardcode_into_libs=yes
15638
if test "$host_cpu" = ia64; then
15639
# AIX 5 supports IA64
15640
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15641
shlibpath_var=LD_LIBRARY_PATH
15643
# With GCC up to 2.95.x, collect2 would create an import file
15644
# for dependence libraries. The import file would start with
15645
# the line `#! .'. This would cause the generated library to
15646
# depend on `.', always an invalid library. This was fixed in
15647
# development snapshots of GCC prior to 3.0.
15649
aix4 | aix4.[01] | aix4.[01].*)
15650
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15652
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15655
can_build_shared=no
15659
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15660
# soname into executable. Probably we can add versioning support to
15661
# collect2, so additional links can be useful in future.
15662
if test "$aix_use_runtimelinking" = yes; then
15663
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
15664
# instead of lib<name>.a to let people know that these are not
15665
# typical AIX shared libraries.
15666
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15668
# We preserve .a as extension for shared libraries through AIX4.2
15669
# and later when we are not doing run time linking.
15670
library_names_spec='${libname}${release}.a $libname.a'
15671
soname_spec='${libname}${release}${shared_ext}$major'
15673
shlibpath_var=LIBPATH
15678
library_names_spec='$libname.ixlibrary $libname.a'
15679
# Create ${libname}_ixlibrary.a entries in /sys/libs.
15680
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15684
library_names_spec='${libname}${shared_ext}'
15685
dynamic_linker="$host_os ld.so"
15686
shlibpath_var=LIBRARY_PATH
15692
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15693
soname_spec='${libname}${release}${shared_ext}$major'
15694
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15695
shlibpath_var=LD_LIBRARY_PATH
15696
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15697
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15698
# the default ld.so.conf also contains /usr/contrib/lib and
15699
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15700
# libtool to hard-code these into programs
15703
cygwin* | mingw* | pw32*)
15704
version_type=windows
15709
case $GCC,$host_os in
15710
yes,cygwin* | yes,mingw* | yes,pw32*)
15711
library_names_spec='$libname.dll.a'
15712
# DLL is installed to $(libdir)/../bin by postinstall_cmds
15713
postinstall_cmds='base_file=`basename \${file}`~
15714
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15715
dldir=$destdir/`dirname \$dlpath`~
15716
test -d \$dldir || mkdir -p \$dldir~
15717
$install_prog $dir/$dlname \$dldir/$dlname~
15718
chmod a+x \$dldir/$dlname'
15719
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15720
dlpath=$dir/\$dldll~
15722
shlibpath_overrides_runpath=yes
15726
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
15727
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15728
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15731
# MinGW DLLs use traditional 'lib' prefix
15732
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15733
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15734
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15735
# It is most probably a Windows format PATH printed by
15736
# mingw gcc, but we are running on Cygwin. Gcc prints its search
15737
# path with ; separators, and with drive letters. We can handle the
15738
# drive letters (cygwin fileutils understands them), so leave them,
15739
# especially as we might pass files found there to a mingw objdump,
15740
# which wouldn't understand a cygwinified path. Ahh.
15741
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15743
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15747
# pw32 DLLs use 'pw' prefix rather than 'lib'
15748
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15754
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15757
dynamic_linker='Win32 ld.exe'
15758
# FIXME: first we should search . and the directory the executable is in
15762
darwin* | rhapsody*)
15763
dynamic_linker="$host_os dyld"
15764
version_type=darwin
15767
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15768
soname_spec='${libname}${release}${major}$shared_ext'
15769
shlibpath_overrides_runpath=yes
15770
shlibpath_var=DYLD_LIBRARY_PATH
15771
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15773
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15780
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15781
soname_spec='${libname}${release}${shared_ext}$major'
15782
shlibpath_var=LD_LIBRARY_PATH
15789
freebsd* | dragonfly*)
15790
# DragonFly does not have aout. When/if they implement a new
15791
# versioning mechanism, adjust this.
15792
if test -x /usr/bin/objformat; then
15793
objformat=`/usr/bin/objformat`
15796
freebsd[123]*) objformat=aout ;;
15797
*) objformat=elf ;;
15800
version_type=freebsd-$objformat
15801
case $version_type in
15803
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15808
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15812
shlibpath_var=LD_LIBRARY_PATH
15815
shlibpath_overrides_runpath=yes
15817
freebsd3.[01]* | freebsdelf3.[01]*)
15818
shlibpath_overrides_runpath=yes
15819
hardcode_into_libs=yes
15821
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15822
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15823
shlibpath_overrides_runpath=no
15824
hardcode_into_libs=yes
15826
*) # from 4.6 on, and DragonFly
15827
shlibpath_overrides_runpath=yes
15828
hardcode_into_libs=yes
15837
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15838
soname_spec='${libname}${release}${shared_ext}$major'
15839
shlibpath_var=LD_LIBRARY_PATH
15840
hardcode_into_libs=yes
15843
hpux9* | hpux10* | hpux11*)
15844
# Give a soname corresponding to the major version so that dld.sl refuses to
15845
# link against other versions.
15852
hardcode_into_libs=yes
15853
dynamic_linker="$host_os dld.so"
15854
shlibpath_var=LD_LIBRARY_PATH
15855
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15856
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15857
soname_spec='${libname}${release}${shared_ext}$major'
15858
if test "X$HPUX_IA64_MODE" = X32; then
15859
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15861
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15863
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15867
hardcode_into_libs=yes
15868
dynamic_linker="$host_os dld.sl"
15869
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15870
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15871
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15872
soname_spec='${libname}${release}${shared_ext}$major'
15873
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15874
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15878
dynamic_linker="$host_os dld.sl"
15879
shlibpath_var=SHLIB_PATH
15880
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15881
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15882
soname_spec='${libname}${release}${shared_ext}$major'
15885
# HP-UX runs *really* slowly unless shared libraries are mode 555.
15886
postinstall_cmds='chmod 555 $lib'
15893
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15894
soname_spec='${libname}${release}${shared_ext}$major'
15895
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15896
shlibpath_var=LD_LIBRARY_PATH
15897
shlibpath_overrides_runpath=no
15898
hardcode_into_libs=yes
15901
irix5* | irix6* | nonstopux*)
15903
nonstopux*) version_type=nonstopux ;;
15905
if test "$lt_cv_prog_gnu_ld" = yes; then
15913
soname_spec='${libname}${release}${shared_ext}$major'
15914
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15916
irix5* | nonstopux*)
15917
libsuff= shlibsuff=
15920
case $LD in # libtool.m4 will add one of these switches to LD
15921
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15922
libsuff= shlibsuff= libmagic=32-bit;;
15923
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15924
libsuff=32 shlibsuff=N32 libmagic=N32;;
15925
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15926
libsuff=64 shlibsuff=64 libmagic=64-bit;;
15927
*) libsuff= shlibsuff= libmagic=never-match;;
15931
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15932
shlibpath_overrides_runpath=no
15933
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15934
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15935
hardcode_into_libs=yes
15938
# No shared lib support for Linux oldld, aout, or coff.
15939
linux*oldld* | linux*aout* | linux*coff*)
15943
# This must be Linux ELF.
15944
linux* | k*bsd*-gnu)
15948
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15949
soname_spec='${libname}${release}${shared_ext}$major'
15950
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15951
shlibpath_var=LD_LIBRARY_PATH
15952
shlibpath_overrides_runpath=no
15953
# This implies no fast_install, which is unacceptable.
15954
# Some rework will be needed to allow for fast_install
15955
# before this can be enabled.
15956
hardcode_into_libs=yes
15958
# Append ld.so.conf contents to the search path
15959
if test -f /etc/ld.so.conf; then
15960
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15961
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15964
# We used to test for /lib/ld.so.1 and disable shared libraries on
15965
# powerpc, because MkLinux only supported shared libraries with the
15966
# GNU dynamic linker. Since this was broken with cross compilers,
15967
# most powerpc-linux boxes support dynamic linking these days and
15968
# people can always --disable-shared, the test was removed, and we
15969
# assume the GNU/Linux dynamic linker is in use.
15970
dynamic_linker='GNU/Linux ld.so'
15977
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15978
soname_spec='${libname}${release}${shared_ext}$major'
15979
shlibpath_var=LD_LIBRARY_PATH
15980
shlibpath_overrides_runpath=no
15981
hardcode_into_libs=yes
15982
dynamic_linker='NetBSD ld.elf_so'
15989
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15990
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15991
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15992
dynamic_linker='NetBSD (a.out) ld.so'
15994
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15995
soname_spec='${libname}${release}${shared_ext}$major'
15996
dynamic_linker='NetBSD ld.elf_so'
15998
shlibpath_var=LD_LIBRARY_PATH
15999
shlibpath_overrides_runpath=yes
16000
hardcode_into_libs=yes
16005
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16006
shlibpath_var=LD_LIBRARY_PATH
16007
shlibpath_overrides_runpath=yes
16014
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16015
soname_spec='${libname}${release}${shared_ext}$major'
16016
shlibpath_var=LD_LIBRARY_PATH
16017
shlibpath_overrides_runpath=yes
16022
sys_lib_dlsearch_path_spec="/usr/lib"
16024
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16026
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16027
*) need_version=no ;;
16029
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16030
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16031
shlibpath_var=LD_LIBRARY_PATH
16032
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16034
openbsd2.[89] | openbsd2.[89].*)
16035
shlibpath_overrides_runpath=no
16038
shlibpath_overrides_runpath=yes
16042
shlibpath_overrides_runpath=yes
16047
libname_spec='$name'
16050
library_names_spec='$libname${shared_ext} $libname.a'
16051
dynamic_linker='OS/2 ld.exe'
16052
shlibpath_var=LIBPATH
16055
osf3* | osf4* | osf5*)
16059
soname_spec='${libname}${release}${shared_ext}$major'
16060
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16061
shlibpath_var=LD_LIBRARY_PATH
16062
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16063
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16074
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16075
soname_spec='${libname}${release}${shared_ext}$major'
16076
shlibpath_var=LD_LIBRARY_PATH
16077
shlibpath_overrides_runpath=yes
16078
hardcode_into_libs=yes
16079
# ldd complains unless libraries are executable
16080
postinstall_cmds='chmod +x $lib'
16085
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16086
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16087
shlibpath_var=LD_LIBRARY_PATH
16088
shlibpath_overrides_runpath=yes
16089
if test "$with_gnu_ld" = yes; then
16097
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16098
soname_spec='${libname}${release}${shared_ext}$major'
16099
shlibpath_var=LD_LIBRARY_PATH
16100
case $host_vendor in
16102
shlibpath_overrides_runpath=no
16104
export_dynamic_flag_spec='${wl}-Blargedynsym'
16105
runpath_var=LD_RUN_PATH
16113
shlibpath_overrides_runpath=no
16114
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16120
if test -d /usr/nec ;then
16122
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16123
soname_spec='$libname${shared_ext}.$major'
16124
shlibpath_var=LD_LIBRARY_PATH
16128
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16129
version_type=freebsd-elf
16132
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16133
soname_spec='${libname}${release}${shared_ext}$major'
16134
shlibpath_var=LD_LIBRARY_PATH
16135
hardcode_into_libs=yes
16136
if test "$with_gnu_ld" = yes; then
16137
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16138
shlibpath_overrides_runpath=no
16140
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16141
shlibpath_overrides_runpath=yes
16144
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16148
sys_lib_dlsearch_path_spec='/usr/lib'
16153
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16154
soname_spec='${libname}${release}${shared_ext}$major'
16155
shlibpath_var=LD_LIBRARY_PATH
16162
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16163
echo "${ECHO_T}$dynamic_linker" >&6; }
16164
test "$dynamic_linker" = no && can_build_shared=no
16166
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16167
echo $ECHO_N "(cached) $ECHO_C" >&6
16169
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16172
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16173
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16174
echo $ECHO_N "(cached) $ECHO_C" >&6
16176
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16179
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16181
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16182
if test "$GCC" = yes; then
16183
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16186
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16187
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16188
hardcode_action_F77=
16189
if test -n "$hardcode_libdir_flag_spec_F77" || \
16190
test -n "$runpath_var_F77" || \
16191
test "X$hardcode_automatic_F77" = "Xyes" ; then
16193
# We can hardcode non-existant directories.
16194
if test "$hardcode_direct_F77" != no &&
16195
# If the only mechanism to avoid hardcoding is shlibpath_var, we
16196
# have to relink, otherwise we might link with an installed library
16197
# when we should be linking with a yet-to-be-installed one
16198
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16199
test "$hardcode_minus_L_F77" != no; then
16200
# Linking always hardcodes the temporary library directory.
16201
hardcode_action_F77=relink
16203
# We can link without hardcoding, and we can hardcode nonexisting dirs.
16204
hardcode_action_F77=immediate
16207
# We cannot hardcode anything, or else we can only hardcode existing
16209
hardcode_action_F77=unsupported
16211
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16212
echo "${ECHO_T}$hardcode_action_F77" >&6; }
16214
if test "$hardcode_action_F77" = relink; then
16215
# Fast installation is not supported
16216
enable_fast_install=no
16217
elif test "$shlibpath_overrides_runpath" = yes ||
16218
test "$enable_shared" = no; then
16219
# Fast installation is not necessary
16220
enable_fast_install=needless
16224
# The else clause should only fire when bootstrapping the
16225
# libtool distribution, otherwise you forgot to ship ltmain.sh
16226
# with your package, and you will get complaints that there are
16227
# no rules to generate ltmain.sh.
16228
if test -f "$ltmain"; then
16229
# See if we are running on zsh, and set the options which allow our commands through
16230
# without removal of \ escapes.
16231
if test -n "${ZSH_VERSION+set}" ; then
16232
setopt NO_GLOB_SUBST
16234
# Now quote all the things that may contain metacharacters while being
16235
# careful not to overquote the AC_SUBSTed values. We take copies of the
16236
# variables and quote the copies for generation of the libtool script.
16237
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16239
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16240
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16241
deplibs_check_method reload_flag reload_cmds need_locks \
16242
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16243
lt_cv_sys_global_symbol_to_c_name_address \
16244
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16245
old_postinstall_cmds old_postuninstall_cmds \
16249
lt_prog_compiler_wl_F77 \
16250
lt_prog_compiler_pic_F77 \
16251
lt_prog_compiler_static_F77 \
16252
lt_prog_compiler_no_builtin_flag_F77 \
16253
export_dynamic_flag_spec_F77 \
16254
thread_safe_flag_spec_F77 \
16255
whole_archive_flag_spec_F77 \
16256
enable_shared_with_static_runtimes_F77 \
16257
old_archive_cmds_F77 \
16258
old_archive_from_new_cmds_F77 \
16259
predep_objects_F77 \
16260
postdep_objects_F77 \
16263
compiler_lib_search_path_F77 \
16264
compiler_lib_search_dirs_F77 \
16266
archive_expsym_cmds_F77 \
16267
postinstall_cmds_F77 \
16268
postuninstall_cmds_F77 \
16269
old_archive_from_expsyms_cmds_F77 \
16270
allow_undefined_flag_F77 \
16271
no_undefined_flag_F77 \
16272
export_symbols_cmds_F77 \
16273
hardcode_libdir_flag_spec_F77 \
16274
hardcode_libdir_flag_spec_ld_F77 \
16275
hardcode_libdir_separator_F77 \
16276
hardcode_automatic_F77 \
16278
module_expsym_cmds_F77 \
16279
lt_cv_prog_compiler_c_o_F77 \
16280
fix_srcfile_path_F77 \
16281
exclude_expsyms_F77 \
16282
include_expsyms_F77; do
16285
old_archive_cmds_F77 | \
16286
old_archive_from_new_cmds_F77 | \
16287
archive_cmds_F77 | \
16288
archive_expsym_cmds_F77 | \
16289
module_cmds_F77 | \
16290
module_expsym_cmds_F77 | \
16291
old_archive_from_expsyms_cmds_F77 | \
16292
export_symbols_cmds_F77 | \
16293
extract_expsyms_cmds | reload_cmds | finish_cmds | \
16294
postinstall_cmds | postuninstall_cmds | \
16295
old_postinstall_cmds | old_postuninstall_cmds | \
16296
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16297
# Double-quote double-evaled strings.
16298
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16301
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16307
*'\$0 --fallback-echo"')
16308
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16314
cat <<__EOF__ >> "$cfgfile"
16315
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16317
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16319
# Shell to use when invoking shell scripts.
16322
# Whether or not to build shared libraries.
16323
build_libtool_libs=$enable_shared
16325
# Whether or not to build static libraries.
16326
build_old_libs=$enable_static
16328
# Whether or not to add -lc for building shared libraries.
16329
build_libtool_need_lc=$archive_cmds_need_lc_F77
16331
# Whether or not to disallow shared libs when runtime libs are static
16332
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16334
# Whether or not to optimize for fast installation.
16335
fast_install=$enable_fast_install
16338
host_alias=$host_alias
16342
# The build system.
16343
build_alias=$build_alias
16347
# An echo program that does not interpret backslashes.
16352
AR_FLAGS=$lt_AR_FLAGS
16357
# LTCC compiler flags.
16358
LTCFLAGS=$lt_LTCFLAGS
16360
# A language-specific compiler.
16361
CC=$lt_compiler_F77
16363
# Is the compiler the GNU C compiler?
16369
# The linker used to build libraries.
16372
# Whether we need hard or soft links.
16375
# A BSD-compatible nm program.
16378
# A symbol stripping program
16381
# Used to examine libraries when file_magic_cmd begins "file"
16382
MAGIC_CMD=$MAGIC_CMD
16384
# Used on cygwin: DLL creation program.
16387
# Used on cygwin: object dumper.
16390
# Used on cygwin: assembler.
16393
# The name of the directory that contains temporary libtool files.
16396
# How to create reloadable object files.
16397
reload_flag=$lt_reload_flag
16398
reload_cmds=$lt_reload_cmds
16400
# How to pass a linker flag through the compiler.
16401
wl=$lt_lt_prog_compiler_wl_F77
16403
# Object file suffix (normally "o").
16404
objext="$ac_objext"
16406
# Old archive suffix (normally "a").
16409
# Shared library suffix (normally ".so").
16410
shrext_cmds='$shrext_cmds'
16412
# Executable file suffix (normally "").
16415
# Additional compiler flags for building library objects.
16416
pic_flag=$lt_lt_prog_compiler_pic_F77
16419
# What is the maximum length of a command?
16420
max_cmd_len=$lt_cv_sys_max_cmd_len
16422
# Does compiler simultaneously support -c and -o options?
16423
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16425
# Must we lock files when doing compilation?
16426
need_locks=$lt_need_locks
16428
# Do we need the lib prefix for modules?
16429
need_lib_prefix=$need_lib_prefix
16431
# Do we need a version for libraries?
16432
need_version=$need_version
16434
# Whether dlopen is supported.
16435
dlopen_support=$enable_dlopen
16437
# Whether dlopen of programs is supported.
16438
dlopen_self=$enable_dlopen_self
16440
# Whether dlopen of statically linked programs is supported.
16441
dlopen_self_static=$enable_dlopen_self_static
16443
# Compiler flag to prevent dynamic linking.
16444
link_static_flag=$lt_lt_prog_compiler_static_F77
16446
# Compiler flag to turn off builtin functions.
16447
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16449
# Compiler flag to allow reflexive dlopens.
16450
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16452
# Compiler flag to generate shared objects directly from archives.
16453
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16455
# Compiler flag to generate thread-safe objects.
16456
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16458
# Library versioning type.
16459
version_type=$version_type
16461
# Format of library name prefix.
16462
libname_spec=$lt_libname_spec
16464
# List of archive names. First name is the real one, the rest are links.
16465
# The last name is the one that the linker finds with -lNAME.
16466
library_names_spec=$lt_library_names_spec
16468
# The coded name of the library, if different from the real name.
16469
soname_spec=$lt_soname_spec
16471
# Commands used to build and install an old-style archive.
16473
old_archive_cmds=$lt_old_archive_cmds_F77
16474
old_postinstall_cmds=$lt_old_postinstall_cmds
16475
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16477
# Create an old-style archive from a shared archive.
16478
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16480
# Create a temporary old-style archive to link instead of a shared archive.
16481
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16483
# Commands used to build and install a shared archive.
16484
archive_cmds=$lt_archive_cmds_F77
16485
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16486
postinstall_cmds=$lt_postinstall_cmds
16487
postuninstall_cmds=$lt_postuninstall_cmds
16489
# Commands used to build a loadable module (assumed same as above if empty)
16490
module_cmds=$lt_module_cmds_F77
16491
module_expsym_cmds=$lt_module_expsym_cmds_F77
16493
# Commands to strip libraries.
16494
old_striplib=$lt_old_striplib
16495
striplib=$lt_striplib
16497
# Dependencies to place before the objects being linked to create a
16499
predep_objects=$lt_predep_objects_F77
16501
# Dependencies to place after the objects being linked to create a
16503
postdep_objects=$lt_postdep_objects_F77
16505
# Dependencies to place before the objects being linked to create a
16507
predeps=$lt_predeps_F77
16509
# Dependencies to place after the objects being linked to create a
16511
postdeps=$lt_postdeps_F77
16513
# The directories searched by this compiler when creating a shared
16515
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16517
# The library search path used internally by the compiler when linking
16518
# a shared library.
16519
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16521
# Method to check whether dependent libraries are shared objects.
16522
deplibs_check_method=$lt_deplibs_check_method
16524
# Command to use when deplibs_check_method == file_magic.
16525
file_magic_cmd=$lt_file_magic_cmd
16527
# Flag that allows shared libraries with undefined symbols to be built.
16528
allow_undefined_flag=$lt_allow_undefined_flag_F77
16530
# Flag that forces no undefined symbols.
16531
no_undefined_flag=$lt_no_undefined_flag_F77
16533
# Commands used to finish a libtool library installation in a directory.
16534
finish_cmds=$lt_finish_cmds
16536
# Same as above, but a single script fragment to be evaled but not shown.
16537
finish_eval=$lt_finish_eval
16539
# Take the output of nm and produce a listing of raw symbols and C names.
16540
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16542
# Transform the output of nm in a proper C declaration
16543
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16545
# Transform the output of nm in a C name address pair
16546
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16548
# This is the shared library runtime path variable.
16549
runpath_var=$runpath_var
16551
# This is the shared library path variable.
16552
shlibpath_var=$shlibpath_var
16554
# Is shlibpath searched before the hard-coded library search path?
16555
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16557
# How to hardcode a shared library path into an executable.
16558
hardcode_action=$hardcode_action_F77
16560
# Whether we should hardcode library paths into libraries.
16561
hardcode_into_libs=$hardcode_into_libs
16563
# Flag to hardcode \$libdir into a binary during linking.
16564
# This must work even if \$libdir does not exist.
16565
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16567
# If ld is used when linking, flag to hardcode \$libdir into
16568
# a binary during linking. This must work even if \$libdir does
16570
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16572
# Whether we need a single -rpath flag with a separated argument.
16573
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16575
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16576
# resulting binary.
16577
hardcode_direct=$hardcode_direct_F77
16579
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16580
# resulting binary.
16581
hardcode_minus_L=$hardcode_minus_L_F77
16583
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16584
# the resulting binary.
16585
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16587
# Set to yes if building a shared library automatically hardcodes DIR into the library
16588
# and all subsequent libraries and executables linked against it.
16589
hardcode_automatic=$hardcode_automatic_F77
16591
# Variables whose values should be saved in libtool wrapper scripts and
16592
# restored at relink time.
16593
variables_saved_for_relink="$variables_saved_for_relink"
16595
# Whether libtool must link a program against all its dependency libraries.
16596
link_all_deplibs=$link_all_deplibs_F77
16598
# Compile-time system search path for libraries
16599
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16601
# Run-time system search path for libraries
16602
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16604
# Fix the shell variable \$srcfile for the compiler.
16605
fix_srcfile_path=$lt_fix_srcfile_path
16607
# Set to yes if exported symbols are required.
16608
always_export_symbols=$always_export_symbols_F77
16610
# The commands to list exported symbols.
16611
export_symbols_cmds=$lt_export_symbols_cmds_F77
16613
# The commands to extract the exported symbol list from a shared archive.
16614
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16616
# Symbols that should not be listed in the preloaded symbols.
16617
exclude_expsyms=$lt_exclude_expsyms_F77
16619
# Symbols that must always be exported.
16620
include_expsyms=$lt_include_expsyms_F77
16622
# ### END LIBTOOL TAG CONFIG: $tagname
16628
# If there is no Makefile yet, we rely on a make rule to execute
16629
# `config.status --recheck' to rerun these tests and create the
16630
# libtool script then.
16631
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16632
if test -f "$ltmain_in"; then
16633
test -f Makefile && make "$ltmain"
16639
ac_cpp='$CPP $CPPFLAGS'
16640
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16641
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16642
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16652
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16655
# Source file extension for Java test sources.
16658
# Object file extension for compiled Java test sources.
16662
# Code to be used in simple compile tests
16663
lt_simple_compile_test_code="class foo {}"
16665
# Code to be used in simple link tests
16666
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16668
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16670
# If no C compiler was specified, use CC.
16673
# If no C compiler flags were specified, use CFLAGS.
16674
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16676
# Allow CC to be a program name with arguments.
16680
# save warnings/boilerplate of simple test code
16681
ac_outfile=conftest.$ac_objext
16682
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16683
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16684
_lt_compiler_boilerplate=`cat conftest.err`
16687
ac_outfile=conftest.$ac_objext
16688
echo "$lt_simple_link_test_code" >conftest.$ac_ext
16689
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16690
_lt_linker_boilerplate=`cat conftest.err`
16694
# Allow CC to be a program name with arguments.
16699
for cc_temp in $compiler""; do
16701
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16702
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16707
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16710
# GCJ did not exist at the time GCC didn't implicitly link libc in.
16711
archive_cmds_need_lc_GCJ=no
16713
old_archive_cmds_GCJ=$old_archive_cmds
16716
lt_prog_compiler_no_builtin_flag_GCJ=
16718
if test "$GCC" = yes; then
16719
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16722
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16723
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16724
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16725
echo $ECHO_N "(cached) $ECHO_C" >&6
16727
lt_cv_prog_compiler_rtti_exceptions=no
16728
ac_outfile=conftest.$ac_objext
16729
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16730
lt_compiler_flag="-fno-rtti -fno-exceptions"
16731
# Insert the option either (1) after the last *FLAGS variable, or
16732
# (2) before a word containing "conftest.", or (3) at the end.
16733
# Note that $ac_compile itself does not contain backslashes and begins
16734
# with a dollar sign (not a hyphen), so the echo should work correctly.
16735
# The option is referenced via a variable to avoid confusing sed.
16736
lt_compile=`echo "$ac_compile" | $SED \
16737
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16738
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16739
-e 's:$: $lt_compiler_flag:'`
16740
(eval echo "\"\$as_me:16740: $lt_compile\"" >&5)
16741
(eval "$lt_compile" 2>conftest.err)
16743
cat conftest.err >&5
16744
echo "$as_me:16744: \$? = $ac_status" >&5
16745
if (exit $ac_status) && test -s "$ac_outfile"; then
16746
# The compiler can only warn and ignore the option if not recognized
16747
# So say no if there are warnings other than the usual output.
16748
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16749
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16750
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16751
lt_cv_prog_compiler_rtti_exceptions=yes
16757
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16758
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16760
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16761
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16768
lt_prog_compiler_wl_GCJ=
16769
lt_prog_compiler_pic_GCJ=
16770
lt_prog_compiler_static_GCJ=
16772
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16773
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16775
if test "$GCC" = yes; then
16776
lt_prog_compiler_wl_GCJ='-Wl,'
16777
lt_prog_compiler_static_GCJ='-static'
16781
# All AIX code is PIC.
16782
if test "$host_cpu" = ia64; then
16783
# AIX 5 now supports IA64 processor
16784
lt_prog_compiler_static_GCJ='-Bstatic'
16789
# FIXME: we need at least 68020 code to build shared libraries, but
16790
# adding the `-m68020' flag to GCC prevents building anything better,
16792
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16795
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16796
# PIC is the default for these OSes.
16799
mingw* | cygwin* | pw32* | os2*)
16800
# This hack is so that the source file can tell whether it is being
16801
# built for inclusion in a dll (and should export symbols for example).
16802
# Although the cygwin gcc ignores -fPIC, still need this for old-style
16803
# (--disable-auto-import) libraries
16807
darwin* | rhapsody*)
16808
# PIC is the default on this platform
16809
# Common symbols not allowed in MH_DYLIB files
16810
lt_prog_compiler_pic_GCJ='-fno-common'
16814
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
16815
# Instead, we relocate shared libraries at runtime.
16819
# Just because we use GCC doesn't mean we suddenly get shared libraries
16820
# on systems that don't support them.
16821
lt_prog_compiler_can_build_shared_GCJ=no
16826
if test -d /usr/nec; then
16827
lt_prog_compiler_pic_GCJ=-Kconform_pic
16832
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16833
# not for PA HP-UX.
16839
lt_prog_compiler_pic_GCJ='-fPIC'
16845
lt_prog_compiler_pic_GCJ='-fPIC'
16849
# PORTME Check for flag to pass linker flags through the system compiler.
16852
lt_prog_compiler_wl_GCJ='-Wl,'
16853
if test "$host_cpu" = ia64; then
16854
# AIX 5 now supports IA64 processor
16855
lt_prog_compiler_static_GCJ='-Bstatic'
16857
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16861
# PIC is the default on this platform
16862
# Common symbols not allowed in MH_DYLIB files
16863
case $cc_basename in
16865
lt_prog_compiler_pic_GCJ='-qnocommon'
16866
lt_prog_compiler_wl_GCJ='-Wl,'
16871
mingw* | cygwin* | pw32* | os2*)
16872
# This hack is so that the source file can tell whether it is being
16873
# built for inclusion in a dll (and should export symbols for example).
16877
hpux9* | hpux10* | hpux11*)
16878
lt_prog_compiler_wl_GCJ='-Wl,'
16879
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16880
# not for PA HP-UX.
16886
lt_prog_compiler_pic_GCJ='+Z'
16889
# Is there a better lt_prog_compiler_static that works with the bundled CC?
16890
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16893
irix5* | irix6* | nonstopux*)
16894
lt_prog_compiler_wl_GCJ='-Wl,'
16895
# PIC (with -KPIC) is the default.
16896
lt_prog_compiler_static_GCJ='-non_shared'
16900
lt_prog_compiler_pic_GCJ='-KPIC'
16901
lt_prog_compiler_static_GCJ='-Bstatic'
16904
linux* | k*bsd*-gnu)
16905
case $cc_basename in
16907
lt_prog_compiler_wl_GCJ='-Wl,'
16908
lt_prog_compiler_pic_GCJ='-KPIC'
16909
lt_prog_compiler_static_GCJ='-static'
16911
pgcc* | pgf77* | pgf90* | pgf95*)
16912
# Portland Group compilers (*not* the Pentium gcc compiler,
16913
# which looks to be a dead project)
16914
lt_prog_compiler_wl_GCJ='-Wl,'
16915
lt_prog_compiler_pic_GCJ='-fpic'
16916
lt_prog_compiler_static_GCJ='-Bstatic'
16919
lt_prog_compiler_wl_GCJ='-Wl,'
16920
# All Alpha code is PIC.
16921
lt_prog_compiler_static_GCJ='-non_shared'
16924
case `$CC -V 2>&1 | sed 5q` in
16927
lt_prog_compiler_pic_GCJ='-KPIC'
16928
lt_prog_compiler_static_GCJ='-Bstatic'
16929
lt_prog_compiler_wl_GCJ='-Wl,'
16932
# Sun Fortran 8.3 passes all unrecognized flags to the linker
16933
lt_prog_compiler_pic_GCJ='-KPIC'
16934
lt_prog_compiler_static_GCJ='-Bstatic'
16935
lt_prog_compiler_wl_GCJ=''
16942
osf3* | osf4* | osf5*)
16943
lt_prog_compiler_wl_GCJ='-Wl,'
16944
# All OSF/1 code is PIC.
16945
lt_prog_compiler_static_GCJ='-non_shared'
16949
lt_prog_compiler_static_GCJ='-non_shared'
16953
lt_prog_compiler_pic_GCJ='-KPIC'
16954
lt_prog_compiler_static_GCJ='-Bstatic'
16955
case $cc_basename in
16956
f77* | f90* | f95*)
16957
lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16959
lt_prog_compiler_wl_GCJ='-Wl,';;
16964
lt_prog_compiler_wl_GCJ='-Qoption ld '
16965
lt_prog_compiler_pic_GCJ='-PIC'
16966
lt_prog_compiler_static_GCJ='-Bstatic'
16969
sysv4 | sysv4.2uw2* | sysv4.3*)
16970
lt_prog_compiler_wl_GCJ='-Wl,'
16971
lt_prog_compiler_pic_GCJ='-KPIC'
16972
lt_prog_compiler_static_GCJ='-Bstatic'
16976
if test -d /usr/nec ;then
16977
lt_prog_compiler_pic_GCJ='-Kconform_pic'
16978
lt_prog_compiler_static_GCJ='-Bstatic'
16982
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16983
lt_prog_compiler_wl_GCJ='-Wl,'
16984
lt_prog_compiler_pic_GCJ='-KPIC'
16985
lt_prog_compiler_static_GCJ='-Bstatic'
16989
lt_prog_compiler_wl_GCJ='-Wl,'
16990
lt_prog_compiler_can_build_shared_GCJ=no
16994
lt_prog_compiler_pic_GCJ='-pic'
16995
lt_prog_compiler_static_GCJ='-Bstatic'
16999
lt_prog_compiler_can_build_shared_GCJ=no
17004
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17005
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17008
# Check to make sure the PIC flag actually works.
17010
if test -n "$lt_prog_compiler_pic_GCJ"; then
17012
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17013
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17014
if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17015
echo $ECHO_N "(cached) $ECHO_C" >&6
17017
lt_cv_prog_compiler_pic_works_GCJ=no
17018
ac_outfile=conftest.$ac_objext
17019
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17020
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17021
# Insert the option either (1) after the last *FLAGS variable, or
17022
# (2) before a word containing "conftest.", or (3) at the end.
17023
# Note that $ac_compile itself does not contain backslashes and begins
17024
# with a dollar sign (not a hyphen), so the echo should work correctly.
17025
# The option is referenced via a variable to avoid confusing sed.
17026
lt_compile=`echo "$ac_compile" | $SED \
17027
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17028
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17029
-e 's:$: $lt_compiler_flag:'`
17030
(eval echo "\"\$as_me:17030: $lt_compile\"" >&5)
17031
(eval "$lt_compile" 2>conftest.err)
17033
cat conftest.err >&5
17034
echo "$as_me:17034: \$? = $ac_status" >&5
17035
if (exit $ac_status) && test -s "$ac_outfile"; then
17036
# The compiler can only warn and ignore the option if not recognized
17037
# So say no if there are warnings other than the usual output.
17038
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17039
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17040
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17041
lt_cv_prog_compiler_pic_works_GCJ=yes
17047
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17048
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17050
if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17051
case $lt_prog_compiler_pic_GCJ in
17053
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17056
lt_prog_compiler_pic_GCJ=
17057
lt_prog_compiler_can_build_shared_GCJ=no
17062
# For platforms which do not support PIC, -DPIC is meaningless:
17064
lt_prog_compiler_pic_GCJ=
17067
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17072
# Check to make sure the static flag actually works.
17074
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17075
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17076
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17077
if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17078
echo $ECHO_N "(cached) $ECHO_C" >&6
17080
lt_cv_prog_compiler_static_works_GCJ=no
17081
save_LDFLAGS="$LDFLAGS"
17082
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17083
echo "$lt_simple_link_test_code" > conftest.$ac_ext
17084
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17085
# The linker can only warn and ignore the option if not recognized
17086
# So say no if there are warnings
17087
if test -s conftest.err; then
17088
# Append any errors to the config.log.
17089
cat conftest.err 1>&5
17090
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17091
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17092
if diff conftest.exp conftest.er2 >/dev/null; then
17093
lt_cv_prog_compiler_static_works_GCJ=yes
17096
lt_cv_prog_compiler_static_works_GCJ=yes
17100
LDFLAGS="$save_LDFLAGS"
17103
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17104
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17106
if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17109
lt_prog_compiler_static_GCJ=
17113
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17114
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17115
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17116
echo $ECHO_N "(cached) $ECHO_C" >&6
17118
lt_cv_prog_compiler_c_o_GCJ=no
17119
$rm -r conftest 2>/dev/null
17123
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17125
lt_compiler_flag="-o out/conftest2.$ac_objext"
17126
# Insert the option either (1) after the last *FLAGS variable, or
17127
# (2) before a word containing "conftest.", or (3) at the end.
17128
# Note that $ac_compile itself does not contain backslashes and begins
17129
# with a dollar sign (not a hyphen), so the echo should work correctly.
17130
lt_compile=`echo "$ac_compile" | $SED \
17131
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17132
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17133
-e 's:$: $lt_compiler_flag:'`
17134
(eval echo "\"\$as_me:17134: $lt_compile\"" >&5)
17135
(eval "$lt_compile" 2>out/conftest.err)
17137
cat out/conftest.err >&5
17138
echo "$as_me:17138: \$? = $ac_status" >&5
17139
if (exit $ac_status) && test -s out/conftest2.$ac_objext
17141
# The compiler can only warn and ignore the option if not recognized
17142
# So say no if there are warnings
17143
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17144
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17145
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17146
lt_cv_prog_compiler_c_o_GCJ=yes
17151
# SGI C++ compiler will create directory out/ii_files/ for
17152
# template instantiation
17153
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17154
$rm out/* && rmdir out
17160
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17161
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17164
hard_links="nottested"
17165
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17166
# do not overwrite the value of need_locks provided by the user
17167
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17168
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17171
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17173
ln conftest.a conftest.b 2>&5 || hard_links=no
17174
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17175
{ echo "$as_me:$LINENO: result: $hard_links" >&5
17176
echo "${ECHO_T}$hard_links" >&6; }
17177
if test "$hard_links" = no; then
17178
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17179
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17186
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17187
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17190
allow_undefined_flag_GCJ=
17191
enable_shared_with_static_runtimes_GCJ=no
17193
archive_expsym_cmds_GCJ=
17194
old_archive_From_new_cmds_GCJ=
17195
old_archive_from_expsyms_cmds_GCJ=
17196
export_dynamic_flag_spec_GCJ=
17197
whole_archive_flag_spec_GCJ=
17198
thread_safe_flag_spec_GCJ=
17199
hardcode_libdir_flag_spec_GCJ=
17200
hardcode_libdir_flag_spec_ld_GCJ=
17201
hardcode_libdir_separator_GCJ=
17202
hardcode_direct_GCJ=no
17203
hardcode_minus_L_GCJ=no
17204
hardcode_shlibpath_var_GCJ=unsupported
17205
link_all_deplibs_GCJ=unknown
17206
hardcode_automatic_GCJ=no
17208
module_expsym_cmds_GCJ=
17209
always_export_symbols_GCJ=no
17210
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17211
# include_expsyms should be a list of space-separated symbols to be *always*
17212
# included in the symbol list
17213
include_expsyms_GCJ=
17214
# exclude_expsyms can be an extended regexp of symbols to exclude
17215
# it will be wrapped by ` (' and `)$', so one must not match beginning or
17216
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17217
# as well as any symbol that contains `d'.
17218
exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17219
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17220
# platforms (ab)use it in PIC code, but their linkers get confused if
17221
# the symbol is explicitly referenced. Since portable code cannot
17222
# rely on this symbol name, it's probably fine to never include it in
17223
# preloaded symbol tables.
17224
# Exclude shared library initialization/finalization symbols.
17225
extract_expsyms_cmds=
17226
# Just being paranoid about ensuring that cc_basename is set.
17227
for cc_temp in $compiler""; do
17229
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17230
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17235
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17238
cygwin* | mingw* | pw32*)
17239
# FIXME: the MSVC++ port hasn't been tested in a loooong time
17240
# When not using gcc, we currently assume that we are using
17241
# Microsoft Visual C++.
17242
if test "$GCC" != yes; then
17247
# we just hope/assume this is gcc and not c89 (= MSVC++)
17256
if test "$with_gnu_ld" = yes; then
17257
# If archive_cmds runs LD, not CC, wlarc should be empty
17260
# Set some defaults for GNU ld with shared library support. These
17261
# are reset later if shared libraries are not supported. Putting them
17262
# here allows them to be overridden if necessary.
17263
runpath_var=LD_RUN_PATH
17264
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17265
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17266
# ancient GNU ld didn't support --whole-archive et. al.
17267
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17268
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17270
whole_archive_flag_spec_GCJ=
17272
supports_anon_versioning=no
17273
case `$LD -v 2>/dev/null` in
17274
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17275
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17276
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17277
*\ 2.11.*) ;; # other 2.11 versions
17278
*) supports_anon_versioning=yes ;;
17281
# See if GNU ld supports shared libraries.
17284
# On AIX/PPC, the GNU linker is very broken
17285
if test "$host_cpu" != ia64; then
17289
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17290
*** to be unable to reliably create shared libraries on AIX.
17291
*** Therefore, libtool is disabling shared libraries support. If you
17292
*** really care for shared libraries, you may want to modify your PATH
17293
*** so that a non-GNU linker is found, and then restart.
17300
archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17301
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17302
hardcode_minus_L_GCJ=yes
17304
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17305
# that the semantics of dynamic libraries on AmigaOS, at least up
17306
# to version 4, is to share data among multiple programs linked
17307
# with the same dynamic library. Since this doesn't match the
17308
# behavior of shared libraries on other platforms, we can't use
17314
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17315
allow_undefined_flag_GCJ=unsupported
17316
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17317
# support --undefined. This deserves some investigation. FIXME
17318
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17324
cygwin* | mingw* | pw32*)
17325
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17326
# as there is no search path for DLLs.
17327
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17328
allow_undefined_flag_GCJ=unsupported
17329
always_export_symbols_GCJ=no
17330
enable_shared_with_static_runtimes_GCJ=yes
17331
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17333
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17334
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17335
# If the export-symbols file already is a .def file (1st line
17336
# is EXPORTS), use it as is; otherwise, prepend...
17337
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17338
cp $export_symbols $output_objdir/$soname.def;
17340
echo EXPORTS > $output_objdir/$soname.def;
17341
cat $export_symbols >> $output_objdir/$soname.def;
17343
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17350
hardcode_direct_GCJ=no
17351
hardcode_shlibpath_var_GCJ=no
17352
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17353
export_dynamic_flag_spec_GCJ='${wl}-E'
17354
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17355
# Instead, shared libraries are loaded at an image base (0x10000000 by
17356
# default) and relocated if they conflict, which is a slow very memory
17357
# consuming and fragmenting process. To avoid this, we pick a random,
17358
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17359
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
17360
archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17361
archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17364
gnu* | linux* | k*bsd*-gnu)
17365
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17367
case $cc_basename,$host_cpu in
17368
pgcc*) # Portland Group C compiler
17369
whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17370
tmp_addflag=' $pic_flag'
17372
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17373
whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17374
tmp_addflag=' $pic_flag -Mnomain' ;;
17375
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17376
tmp_addflag=' -i_dynamic' ;;
17377
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17378
tmp_addflag=' -i_dynamic -nofor_main' ;;
17379
ifc* | ifort*) # Intel Fortran compiler
17380
tmp_addflag=' -nofor_main' ;;
17382
case `$CC -V 2>&1 | sed 5q` in
17383
*Sun\ C*) # Sun C 5.9
17384
whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17385
tmp_sharedflag='-G' ;;
17386
*Sun\ F*) # Sun Fortran 8.3
17387
tmp_sharedflag='-G' ;;
17389
tmp_sharedflag='-shared' ;;
17391
archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17393
if test $supports_anon_versioning = yes; then
17394
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17395
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17396
$echo "local: *; };" >> $output_objdir/$libname.ver~
17397
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17399
link_all_deplibs_GCJ=no
17405
netbsd* | netbsdelf*-gnu)
17406
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17407
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17410
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17411
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17416
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17420
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17421
*** create shared libraries on Solaris systems. Therefore, libtool
17422
*** is disabling shared libraries support. We urge you to upgrade GNU
17423
*** binutils to release 2.9.1 or newer. Another option is to modify
17424
*** your PATH or compiler configuration so that the native linker is
17425
*** used, and then restart.
17428
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17429
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17430
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17436
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17437
case `$LD -v 2>&1` in
17438
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17442
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17443
*** reliably create shared libraries on SCO systems. Therefore, libtool
17444
*** is disabling shared libraries support. We urge you to upgrade GNU
17445
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17446
*** your PATH or compiler configuration so that the native linker is
17447
*** used, and then restart.
17452
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17453
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17454
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17455
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17464
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17466
hardcode_direct_GCJ=yes
17467
hardcode_shlibpath_var_GCJ=no
17471
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17472
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17473
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17480
if test "$ld_shlibs_GCJ" = no; then
17482
hardcode_libdir_flag_spec_GCJ=
17483
export_dynamic_flag_spec_GCJ=
17484
whole_archive_flag_spec_GCJ=
17487
# PORTME fill in a description of your system's linker (not GNU ld)
17490
allow_undefined_flag_GCJ=unsupported
17491
always_export_symbols_GCJ=yes
17492
archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17493
# Note: this linker hardcodes the directories in LIBPATH if there
17494
# are no directories specified by -L.
17495
hardcode_minus_L_GCJ=yes
17496
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17497
# Neither direct hardcoding nor static linking is supported with a
17499
hardcode_direct_GCJ=unsupported
17504
if test "$host_cpu" = ia64; then
17505
# On IA64, the linker does run time linking by default, so we don't
17506
# have to do anything special.
17507
aix_use_runtimelinking=no
17508
exp_sym_flag='-Bexport'
17511
# If we're using GNU nm, then we don't want the "-C" option.
17512
# -C means demangle to AIX nm, but means don't demangle with GNU nm
17513
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17514
export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17516
export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17518
aix_use_runtimelinking=no
17520
# Test if we are trying to use run time linking or normal
17521
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17522
# need to do runtime linking.
17523
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17524
for ld_flag in $LDFLAGS; do
17525
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17526
aix_use_runtimelinking=yes
17533
exp_sym_flag='-bexport'
17534
no_entry_flag='-bnoentry'
17537
# When large executables or shared objects are built, AIX ld can
17538
# have problems creating the table of contents. If linking a library
17539
# or program results in "error TOC overflow" add -mminimal-toc to
17540
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17541
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17543
archive_cmds_GCJ=''
17544
hardcode_direct_GCJ=yes
17545
hardcode_libdir_separator_GCJ=':'
17546
link_all_deplibs_GCJ=yes
17548
if test "$GCC" = yes; then
17549
case $host_os in aix4.[012]|aix4.[012].*)
17550
# We only want to do this on AIX 4.2 and lower, the check
17551
# below for broken collect2 doesn't work under 4.3+
17552
collect2name=`${CC} -print-prog-name=collect2`
17553
if test -f "$collect2name" && \
17554
strings "$collect2name" | grep resolve_lib_name >/dev/null
17556
# We have reworked collect2
17559
# We have old collect2
17560
hardcode_direct_GCJ=unsupported
17561
# It fails to find uninstalled libraries when the uninstalled
17562
# path is not listed in the libpath. Setting hardcode_minus_L
17563
# to unsupported forces relinking
17564
hardcode_minus_L_GCJ=yes
17565
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17566
hardcode_libdir_separator_GCJ=
17570
shared_flag='-shared'
17571
if test "$aix_use_runtimelinking" = yes; then
17572
shared_flag="$shared_flag "'${wl}-G'
17576
if test "$host_cpu" = ia64; then
17577
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17578
# chokes on -Wl,-G. The following line is correct:
17581
if test "$aix_use_runtimelinking" = yes; then
17582
shared_flag='${wl}-G'
17584
shared_flag='${wl}-bM:SRE'
17589
# It seems that -bexpall does not export symbols beginning with
17590
# underscore (_), so it is better to generate a list of symbols to export.
17591
always_export_symbols_GCJ=yes
17592
if test "$aix_use_runtimelinking" = yes; then
17593
# Warning - without using the other runtime loading flags (-brtl),
17594
# -berok will link without error, but may produce a broken library.
17595
allow_undefined_flag_GCJ='-berok'
17596
# Determine the default libpath from the value encoded in an empty executable.
17597
cat >conftest.$ac_ext <<_ACEOF
17600
cat confdefs.h >>conftest.$ac_ext
17601
cat >>conftest.$ac_ext <<_ACEOF
17602
/* end confdefs.h. */
17612
rm -f conftest.$ac_objext conftest$ac_exeext
17613
if { (ac_try="$ac_link"
17614
case "(($ac_try" in
17615
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17616
*) ac_try_echo=$ac_try;;
17618
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17619
(eval "$ac_link") 2>conftest.er1
17621
grep -v '^ *+' conftest.er1 >conftest.err
17623
cat conftest.err >&5
17624
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17625
(exit $ac_status); } && {
17626
test -z "$ac_c_werror_flag" ||
17627
test ! -s conftest.err
17628
} && test -s conftest$ac_exeext &&
17629
$as_test_x conftest$ac_exeext; then
17631
lt_aix_libpath_sed='
17632
/Import File Strings/,/^$/ {
17638
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17639
# Check for a 64-bit object if we didn't find anything.
17640
if test -z "$aix_libpath"; then
17641
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17644
echo "$as_me: failed program was:" >&5
17645
sed 's/^/| /' conftest.$ac_ext >&5
17650
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17651
conftest$ac_exeext conftest.$ac_ext
17652
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17654
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17655
archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17657
if test "$host_cpu" = ia64; then
17658
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17659
allow_undefined_flag_GCJ="-z nodefs"
17660
archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
17662
# Determine the default libpath from the value encoded in an empty executable.
17663
cat >conftest.$ac_ext <<_ACEOF
17666
cat confdefs.h >>conftest.$ac_ext
17667
cat >>conftest.$ac_ext <<_ACEOF
17668
/* end confdefs.h. */
17678
rm -f conftest.$ac_objext conftest$ac_exeext
17679
if { (ac_try="$ac_link"
17680
case "(($ac_try" in
17681
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17682
*) ac_try_echo=$ac_try;;
17684
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17685
(eval "$ac_link") 2>conftest.er1
17687
grep -v '^ *+' conftest.er1 >conftest.err
17689
cat conftest.err >&5
17690
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17691
(exit $ac_status); } && {
17692
test -z "$ac_c_werror_flag" ||
17693
test ! -s conftest.err
17694
} && test -s conftest$ac_exeext &&
17695
$as_test_x conftest$ac_exeext; then
17697
lt_aix_libpath_sed='
17698
/Import File Strings/,/^$/ {
17704
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17705
# Check for a 64-bit object if we didn't find anything.
17706
if test -z "$aix_libpath"; then
17707
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17710
echo "$as_me: failed program was:" >&5
17711
sed 's/^/| /' conftest.$ac_ext >&5
17716
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17717
conftest$ac_exeext conftest.$ac_ext
17718
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17720
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17721
# Warning - without using the other run time loading flags,
17722
# -berok will link without error, but may produce a broken library.
17723
no_undefined_flag_GCJ=' ${wl}-bernotok'
17724
allow_undefined_flag_GCJ=' ${wl}-berok'
17725
# Exported symbols can be pulled into shared objects from archives
17726
whole_archive_flag_spec_GCJ='$convenience'
17727
archive_cmds_need_lc_GCJ=yes
17728
# This is similar to how AIX traditionally builds its shared libraries.
17729
archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17735
archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17736
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17737
hardcode_minus_L_GCJ=yes
17738
# see comment about different semantics on the GNU ld section
17743
export_dynamic_flag_spec_GCJ=-rdynamic
17746
cygwin* | mingw* | pw32*)
17747
# When not using gcc, we currently assume that we are using
17748
# Microsoft Visual C++.
17749
# hardcode_libdir_flag_spec is actually meaningless, as there is
17750
# no search path for DLLs.
17751
hardcode_libdir_flag_spec_GCJ=' '
17752
allow_undefined_flag_GCJ=unsupported
17753
# Tell ltmain to make .lib files, not .a files.
17755
# Tell ltmain to make .dll files, not .so files.
17757
# FIXME: Setting linknames here is a bad hack.
17758
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17759
# The linker will automatically build a .lib file if we build a DLL.
17760
old_archive_From_new_cmds_GCJ='true'
17761
# FIXME: Should let the user specify the lib program.
17762
old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17763
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17764
enable_shared_with_static_runtimes_GCJ=yes
17767
darwin* | rhapsody*)
17769
rhapsody* | darwin1.[012])
17770
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17773
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17774
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17776
case ${MACOSX_DEPLOYMENT_TARGET} in
17778
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17781
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17787
archive_cmds_need_lc_GCJ=no
17788
hardcode_direct_GCJ=no
17789
hardcode_automatic_GCJ=yes
17790
hardcode_shlibpath_var_GCJ=unsupported
17791
whole_archive_flag_spec_GCJ=''
17792
link_all_deplibs_GCJ=yes
17793
if test "$GCC" = yes ; then
17794
output_verbose_link_cmd='echo'
17795
archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17796
module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17797
archive_expsym_cmds_GCJ="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}"
17798
module_expsym_cmds_GCJ="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}"
17800
case $cc_basename in
17802
output_verbose_link_cmd='echo'
17803
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17804
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17805
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17806
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17807
module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17817
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17818
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17819
hardcode_shlibpath_var_GCJ=no
17826
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17827
# support. Future versions do this automatically, but an explicit c++rt0.o
17828
# does not break anything, and helps significantly (at the cost of a little
17831
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17832
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17833
hardcode_direct_GCJ=yes
17834
hardcode_shlibpath_var_GCJ=no
17837
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
17839
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17840
hardcode_direct_GCJ=yes
17841
hardcode_minus_L_GCJ=yes
17842
hardcode_shlibpath_var_GCJ=no
17845
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17846
freebsd* | dragonfly*)
17847
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17848
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17849
hardcode_direct_GCJ=yes
17850
hardcode_shlibpath_var_GCJ=no
17854
if test "$GCC" = yes; then
17855
archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17857
archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17859
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17860
hardcode_libdir_separator_GCJ=:
17861
hardcode_direct_GCJ=yes
17863
# hardcode_minus_L: Not really in the search PATH,
17864
# but as the default location of the library.
17865
hardcode_minus_L_GCJ=yes
17866
export_dynamic_flag_spec_GCJ='${wl}-E'
17870
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17871
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17873
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17875
if test "$with_gnu_ld" = no; then
17876
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17877
hardcode_libdir_separator_GCJ=:
17879
hardcode_direct_GCJ=yes
17880
export_dynamic_flag_spec_GCJ='${wl}-E'
17882
# hardcode_minus_L: Not really in the search PATH,
17883
# but as the default location of the library.
17884
hardcode_minus_L_GCJ=yes
17889
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17892
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17895
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17898
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17904
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17907
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17910
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17914
if test "$with_gnu_ld" = no; then
17915
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17916
hardcode_libdir_separator_GCJ=:
17920
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17921
hardcode_direct_GCJ=no
17922
hardcode_shlibpath_var_GCJ=no
17925
hardcode_direct_GCJ=yes
17926
export_dynamic_flag_spec_GCJ='${wl}-E'
17928
# hardcode_minus_L: Not really in the search PATH,
17929
# but as the default location of the library.
17930
hardcode_minus_L_GCJ=yes
17936
irix5* | irix6* | nonstopux*)
17937
if test "$GCC" = yes; then
17938
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17940
archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17941
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17943
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17944
hardcode_libdir_separator_GCJ=:
17945
link_all_deplibs_GCJ=yes
17948
netbsd* | netbsdelf*-gnu)
17949
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17950
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17952
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17954
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17955
hardcode_direct_GCJ=yes
17956
hardcode_shlibpath_var_GCJ=no
17960
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17961
hardcode_direct_GCJ=yes
17962
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17963
hardcode_libdir_separator_GCJ=:
17964
hardcode_shlibpath_var_GCJ=no
17968
if test -f /usr/libexec/ld.so; then
17969
hardcode_direct_GCJ=yes
17970
hardcode_shlibpath_var_GCJ=no
17971
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17972
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17973
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17974
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17975
export_dynamic_flag_spec_GCJ='${wl}-E'
17978
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17979
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17980
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17983
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17984
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17994
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17995
hardcode_minus_L_GCJ=yes
17996
allow_undefined_flag_GCJ=unsupported
17997
archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
17998
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18002
if test "$GCC" = yes; then
18003
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18004
archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18006
allow_undefined_flag_GCJ=' -expect_unresolved \*'
18007
archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18009
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18010
hardcode_libdir_separator_GCJ=:
18013
osf4* | osf5*) # as osf3* with the addition of -msym flag
18014
if test "$GCC" = yes; then
18015
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18016
archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18017
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18019
allow_undefined_flag_GCJ=' -expect_unresolved \*'
18020
archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18021
archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
18022
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
18024
# Both c and cxx compiler support -rpath directly
18025
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18027
hardcode_libdir_separator_GCJ=:
18031
no_undefined_flag_GCJ=' -z text'
18032
if test "$GCC" = yes; then
18034
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18035
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18036
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18039
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18040
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18041
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18043
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18044
hardcode_shlibpath_var_GCJ=no
18046
solaris2.[0-5] | solaris2.[0-5].*) ;;
18048
# The compiler driver will combine and reorder linker options,
18049
# but understands `-z linker_flag'. GCC discards it without `$wl',
18050
# but is careful enough not to reorder.
18051
# Supported since Solaris 2.6 (maybe 2.5.1?)
18052
if test "$GCC" = yes; then
18053
whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18055
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18059
link_all_deplibs_GCJ=yes
18063
if test "x$host_vendor" = xsequent; then
18064
# Use $CC to link under sequent, because it throws in some extra .o
18065
# files that make .init and .fini sections work.
18066
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18068
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18070
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18071
hardcode_direct_GCJ=yes
18072
hardcode_minus_L_GCJ=yes
18073
hardcode_shlibpath_var_GCJ=no
18077
case $host_vendor in
18079
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18080
hardcode_direct_GCJ=yes # is this really true???
18083
## LD is ld it makes a PLAMLIB
18084
## CC just makes a GrossModule.
18085
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18086
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18087
hardcode_direct_GCJ=no
18090
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18091
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18094
runpath_var='LD_RUN_PATH'
18095
hardcode_shlibpath_var_GCJ=no
18099
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18100
hardcode_shlibpath_var_GCJ=no
18101
export_dynamic_flag_spec_GCJ='-Bexport'
18105
if test -d /usr/nec; then
18106
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18107
hardcode_shlibpath_var_GCJ=no
18108
runpath_var=LD_RUN_PATH
18109
hardcode_runpath_var=yes
18114
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18115
no_undefined_flag_GCJ='${wl}-z,text'
18116
archive_cmds_need_lc_GCJ=no
18117
hardcode_shlibpath_var_GCJ=no
18118
runpath_var='LD_RUN_PATH'
18120
if test "$GCC" = yes; then
18121
archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18122
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18124
archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18125
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18129
sysv5* | sco3.2v5* | sco5v6*)
18130
# Note: We can NOT use -z defs as we might desire, because we do not
18131
# link with -lc, and that would cause any symbols used from libc to
18132
# always be unresolved, which means just about no library would
18133
# ever link correctly. If we're not using GNU ld we use -z text
18134
# though, which does catch some bad symbols but isn't as heavy-handed
18136
no_undefined_flag_GCJ='${wl}-z,text'
18137
allow_undefined_flag_GCJ='${wl}-z,nodefs'
18138
archive_cmds_need_lc_GCJ=no
18139
hardcode_shlibpath_var_GCJ=no
18140
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18141
hardcode_libdir_separator_GCJ=':'
18142
link_all_deplibs_GCJ=yes
18143
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18144
runpath_var='LD_RUN_PATH'
18146
if test "$GCC" = yes; then
18147
archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18148
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18150
archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18151
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18156
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18157
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18158
hardcode_shlibpath_var_GCJ=no
18167
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18168
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18169
test "$ld_shlibs_GCJ" = no && can_build_shared=no
18172
# Do we need to explicitly link libc?
18174
case "x$archive_cmds_need_lc_GCJ" in
18176
# Assume -lc should be added
18177
archive_cmds_need_lc_GCJ=yes
18179
if test "$enable_shared" = yes && test "$GCC" = yes; then
18180
case $archive_cmds_GCJ in
18182
# FIXME: we may have to deal with multi-command sequences.
18185
# Test whether the compiler implicitly links with -lc since on some
18186
# systems, -lgcc has to come before -lc. If gcc already passes -lc
18187
# to ld, don't add -lc before -lgcc.
18188
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18189
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18191
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18193
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18194
(eval $ac_compile) 2>&5
18196
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18197
(exit $ac_status); } 2>conftest.err; then
18200
libobjs=conftest.$ac_objext
18202
wl=$lt_prog_compiler_wl_GCJ
18203
pic_flag=$lt_prog_compiler_pic_GCJ
18209
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18210
allow_undefined_flag_GCJ=
18211
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18212
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18214
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18215
(exit $ac_status); }
18217
archive_cmds_need_lc_GCJ=no
18219
archive_cmds_need_lc_GCJ=yes
18221
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18223
cat conftest.err 1>&5
18226
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18227
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18234
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18235
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18236
library_names_spec=
18237
libname_spec='lib$name'
18241
postuninstall_cmds=
18245
shlibpath_overrides_runpath=unknown
18247
dynamic_linker="$host_os ld.so"
18248
sys_lib_dlsearch_path_spec="/lib /usr/lib"
18250
need_lib_prefix=unknown
18251
hardcode_into_libs=no
18253
# when you set need_version to no, make sure it does not cause -set_version
18254
# flags to be left without arguments
18255
need_version=unknown
18260
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18261
shlibpath_var=LIBPATH
18263
# AIX 3 has no versioning support, so we append a major version to the name.
18264
soname_spec='${libname}${release}${shared_ext}$major'
18271
hardcode_into_libs=yes
18272
if test "$host_cpu" = ia64; then
18273
# AIX 5 supports IA64
18274
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18275
shlibpath_var=LD_LIBRARY_PATH
18277
# With GCC up to 2.95.x, collect2 would create an import file
18278
# for dependence libraries. The import file would start with
18279
# the line `#! .'. This would cause the generated library to
18280
# depend on `.', always an invalid library. This was fixed in
18281
# development snapshots of GCC prior to 3.0.
18283
aix4 | aix4.[01] | aix4.[01].*)
18284
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18286
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18289
can_build_shared=no
18293
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18294
# soname into executable. Probably we can add versioning support to
18295
# collect2, so additional links can be useful in future.
18296
if test "$aix_use_runtimelinking" = yes; then
18297
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
18298
# instead of lib<name>.a to let people know that these are not
18299
# typical AIX shared libraries.
18300
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18302
# We preserve .a as extension for shared libraries through AIX4.2
18303
# and later when we are not doing run time linking.
18304
library_names_spec='${libname}${release}.a $libname.a'
18305
soname_spec='${libname}${release}${shared_ext}$major'
18307
shlibpath_var=LIBPATH
18312
library_names_spec='$libname.ixlibrary $libname.a'
18313
# Create ${libname}_ixlibrary.a entries in /sys/libs.
18314
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
18318
library_names_spec='${libname}${shared_ext}'
18319
dynamic_linker="$host_os ld.so"
18320
shlibpath_var=LIBRARY_PATH
18326
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18327
soname_spec='${libname}${release}${shared_ext}$major'
18328
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18329
shlibpath_var=LD_LIBRARY_PATH
18330
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18331
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18332
# the default ld.so.conf also contains /usr/contrib/lib and
18333
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18334
# libtool to hard-code these into programs
18337
cygwin* | mingw* | pw32*)
18338
version_type=windows
18343
case $GCC,$host_os in
18344
yes,cygwin* | yes,mingw* | yes,pw32*)
18345
library_names_spec='$libname.dll.a'
18346
# DLL is installed to $(libdir)/../bin by postinstall_cmds
18347
postinstall_cmds='base_file=`basename \${file}`~
18348
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18349
dldir=$destdir/`dirname \$dlpath`~
18350
test -d \$dldir || mkdir -p \$dldir~
18351
$install_prog $dir/$dlname \$dldir/$dlname~
18352
chmod a+x \$dldir/$dlname'
18353
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18354
dlpath=$dir/\$dldll~
18356
shlibpath_overrides_runpath=yes
18360
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
18361
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18362
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18365
# MinGW DLLs use traditional 'lib' prefix
18366
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18367
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18368
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18369
# It is most probably a Windows format PATH printed by
18370
# mingw gcc, but we are running on Cygwin. Gcc prints its search
18371
# path with ; separators, and with drive letters. We can handle the
18372
# drive letters (cygwin fileutils understands them), so leave them,
18373
# especially as we might pass files found there to a mingw objdump,
18374
# which wouldn't understand a cygwinified path. Ahh.
18375
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18377
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18381
# pw32 DLLs use 'pw' prefix rather than 'lib'
18382
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18388
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18391
dynamic_linker='Win32 ld.exe'
18392
# FIXME: first we should search . and the directory the executable is in
18396
darwin* | rhapsody*)
18397
dynamic_linker="$host_os dyld"
18398
version_type=darwin
18401
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18402
soname_spec='${libname}${release}${major}$shared_ext'
18403
shlibpath_overrides_runpath=yes
18404
shlibpath_var=DYLD_LIBRARY_PATH
18405
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18407
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18414
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18415
soname_spec='${libname}${release}${shared_ext}$major'
18416
shlibpath_var=LD_LIBRARY_PATH
18423
freebsd* | dragonfly*)
18424
# DragonFly does not have aout. When/if they implement a new
18425
# versioning mechanism, adjust this.
18426
if test -x /usr/bin/objformat; then
18427
objformat=`/usr/bin/objformat`
18430
freebsd[123]*) objformat=aout ;;
18431
*) objformat=elf ;;
18434
version_type=freebsd-$objformat
18435
case $version_type in
18437
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18442
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18446
shlibpath_var=LD_LIBRARY_PATH
18449
shlibpath_overrides_runpath=yes
18451
freebsd3.[01]* | freebsdelf3.[01]*)
18452
shlibpath_overrides_runpath=yes
18453
hardcode_into_libs=yes
18455
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18456
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18457
shlibpath_overrides_runpath=no
18458
hardcode_into_libs=yes
18460
*) # from 4.6 on, and DragonFly
18461
shlibpath_overrides_runpath=yes
18462
hardcode_into_libs=yes
18471
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18472
soname_spec='${libname}${release}${shared_ext}$major'
18473
shlibpath_var=LD_LIBRARY_PATH
18474
hardcode_into_libs=yes
18477
hpux9* | hpux10* | hpux11*)
18478
# Give a soname corresponding to the major version so that dld.sl refuses to
18479
# link against other versions.
18486
hardcode_into_libs=yes
18487
dynamic_linker="$host_os dld.so"
18488
shlibpath_var=LD_LIBRARY_PATH
18489
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18490
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18491
soname_spec='${libname}${release}${shared_ext}$major'
18492
if test "X$HPUX_IA64_MODE" = X32; then
18493
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18495
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18497
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18501
hardcode_into_libs=yes
18502
dynamic_linker="$host_os dld.sl"
18503
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18504
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18505
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18506
soname_spec='${libname}${release}${shared_ext}$major'
18507
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18508
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18512
dynamic_linker="$host_os dld.sl"
18513
shlibpath_var=SHLIB_PATH
18514
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18515
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18516
soname_spec='${libname}${release}${shared_ext}$major'
18519
# HP-UX runs *really* slowly unless shared libraries are mode 555.
18520
postinstall_cmds='chmod 555 $lib'
18527
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18528
soname_spec='${libname}${release}${shared_ext}$major'
18529
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18530
shlibpath_var=LD_LIBRARY_PATH
18531
shlibpath_overrides_runpath=no
18532
hardcode_into_libs=yes
18535
irix5* | irix6* | nonstopux*)
18537
nonstopux*) version_type=nonstopux ;;
18539
if test "$lt_cv_prog_gnu_ld" = yes; then
18547
soname_spec='${libname}${release}${shared_ext}$major'
18548
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18550
irix5* | nonstopux*)
18551
libsuff= shlibsuff=
18554
case $LD in # libtool.m4 will add one of these switches to LD
18555
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18556
libsuff= shlibsuff= libmagic=32-bit;;
18557
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18558
libsuff=32 shlibsuff=N32 libmagic=N32;;
18559
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18560
libsuff=64 shlibsuff=64 libmagic=64-bit;;
18561
*) libsuff= shlibsuff= libmagic=never-match;;
18565
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18566
shlibpath_overrides_runpath=no
18567
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18568
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18569
hardcode_into_libs=yes
18572
# No shared lib support for Linux oldld, aout, or coff.
18573
linux*oldld* | linux*aout* | linux*coff*)
18577
# This must be Linux ELF.
18578
linux* | k*bsd*-gnu)
18582
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18583
soname_spec='${libname}${release}${shared_ext}$major'
18584
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18585
shlibpath_var=LD_LIBRARY_PATH
18586
shlibpath_overrides_runpath=no
18587
# This implies no fast_install, which is unacceptable.
18588
# Some rework will be needed to allow for fast_install
18589
# before this can be enabled.
18590
hardcode_into_libs=yes
18592
# Append ld.so.conf contents to the search path
18593
if test -f /etc/ld.so.conf; then
18594
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18595
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18598
# We used to test for /lib/ld.so.1 and disable shared libraries on
18599
# powerpc, because MkLinux only supported shared libraries with the
18600
# GNU dynamic linker. Since this was broken with cross compilers,
18601
# most powerpc-linux boxes support dynamic linking these days and
18602
# people can always --disable-shared, the test was removed, and we
18603
# assume the GNU/Linux dynamic linker is in use.
18604
dynamic_linker='GNU/Linux ld.so'
18611
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18612
soname_spec='${libname}${release}${shared_ext}$major'
18613
shlibpath_var=LD_LIBRARY_PATH
18614
shlibpath_overrides_runpath=no
18615
hardcode_into_libs=yes
18616
dynamic_linker='NetBSD ld.elf_so'
18623
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18624
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18625
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18626
dynamic_linker='NetBSD (a.out) ld.so'
18628
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18629
soname_spec='${libname}${release}${shared_ext}$major'
18630
dynamic_linker='NetBSD ld.elf_so'
18632
shlibpath_var=LD_LIBRARY_PATH
18633
shlibpath_overrides_runpath=yes
18634
hardcode_into_libs=yes
18639
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18640
shlibpath_var=LD_LIBRARY_PATH
18641
shlibpath_overrides_runpath=yes
18648
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18649
soname_spec='${libname}${release}${shared_ext}$major'
18650
shlibpath_var=LD_LIBRARY_PATH
18651
shlibpath_overrides_runpath=yes
18656
sys_lib_dlsearch_path_spec="/usr/lib"
18658
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18660
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18661
*) need_version=no ;;
18663
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18664
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18665
shlibpath_var=LD_LIBRARY_PATH
18666
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18668
openbsd2.[89] | openbsd2.[89].*)
18669
shlibpath_overrides_runpath=no
18672
shlibpath_overrides_runpath=yes
18676
shlibpath_overrides_runpath=yes
18681
libname_spec='$name'
18684
library_names_spec='$libname${shared_ext} $libname.a'
18685
dynamic_linker='OS/2 ld.exe'
18686
shlibpath_var=LIBPATH
18689
osf3* | osf4* | osf5*)
18693
soname_spec='${libname}${release}${shared_ext}$major'
18694
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18695
shlibpath_var=LD_LIBRARY_PATH
18696
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18697
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18708
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18709
soname_spec='${libname}${release}${shared_ext}$major'
18710
shlibpath_var=LD_LIBRARY_PATH
18711
shlibpath_overrides_runpath=yes
18712
hardcode_into_libs=yes
18713
# ldd complains unless libraries are executable
18714
postinstall_cmds='chmod +x $lib'
18719
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18720
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18721
shlibpath_var=LD_LIBRARY_PATH
18722
shlibpath_overrides_runpath=yes
18723
if test "$with_gnu_ld" = yes; then
18731
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18732
soname_spec='${libname}${release}${shared_ext}$major'
18733
shlibpath_var=LD_LIBRARY_PATH
18734
case $host_vendor in
18736
shlibpath_overrides_runpath=no
18738
export_dynamic_flag_spec='${wl}-Blargedynsym'
18739
runpath_var=LD_RUN_PATH
18747
shlibpath_overrides_runpath=no
18748
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18754
if test -d /usr/nec ;then
18756
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18757
soname_spec='$libname${shared_ext}.$major'
18758
shlibpath_var=LD_LIBRARY_PATH
18762
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18763
version_type=freebsd-elf
18766
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18767
soname_spec='${libname}${release}${shared_ext}$major'
18768
shlibpath_var=LD_LIBRARY_PATH
18769
hardcode_into_libs=yes
18770
if test "$with_gnu_ld" = yes; then
18771
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18772
shlibpath_overrides_runpath=no
18774
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18775
shlibpath_overrides_runpath=yes
18778
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18782
sys_lib_dlsearch_path_spec='/usr/lib'
18787
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18788
soname_spec='${libname}${release}${shared_ext}$major'
18789
shlibpath_var=LD_LIBRARY_PATH
18796
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18797
echo "${ECHO_T}$dynamic_linker" >&6; }
18798
test "$dynamic_linker" = no && can_build_shared=no
18800
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18801
echo $ECHO_N "(cached) $ECHO_C" >&6
18803
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18806
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18807
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18808
echo $ECHO_N "(cached) $ECHO_C" >&6
18810
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18813
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18815
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18816
if test "$GCC" = yes; then
18817
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18820
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18821
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18822
hardcode_action_GCJ=
18823
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18824
test -n "$runpath_var_GCJ" || \
18825
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18827
# We can hardcode non-existant directories.
18828
if test "$hardcode_direct_GCJ" != no &&
18829
# If the only mechanism to avoid hardcoding is shlibpath_var, we
18830
# have to relink, otherwise we might link with an installed library
18831
# when we should be linking with a yet-to-be-installed one
18832
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18833
test "$hardcode_minus_L_GCJ" != no; then
18834
# Linking always hardcodes the temporary library directory.
18835
hardcode_action_GCJ=relink
18837
# We can link without hardcoding, and we can hardcode nonexisting dirs.
18838
hardcode_action_GCJ=immediate
18841
# We cannot hardcode anything, or else we can only hardcode existing
18843
hardcode_action_GCJ=unsupported
18845
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18846
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18848
if test "$hardcode_action_GCJ" = relink; then
18849
# Fast installation is not supported
18850
enable_fast_install=no
18851
elif test "$shlibpath_overrides_runpath" = yes ||
18852
test "$enable_shared" = no; then
18853
# Fast installation is not necessary
18854
enable_fast_install=needless
18858
# The else clause should only fire when bootstrapping the
18859
# libtool distribution, otherwise you forgot to ship ltmain.sh
18860
# with your package, and you will get complaints that there are
18861
# no rules to generate ltmain.sh.
18862
if test -f "$ltmain"; then
18863
# See if we are running on zsh, and set the options which allow our commands through
18864
# without removal of \ escapes.
18865
if test -n "${ZSH_VERSION+set}" ; then
18866
setopt NO_GLOB_SUBST
18868
# Now quote all the things that may contain metacharacters while being
18869
# careful not to overquote the AC_SUBSTed values. We take copies of the
18870
# variables and quote the copies for generation of the libtool script.
18871
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18873
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18874
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18875
deplibs_check_method reload_flag reload_cmds need_locks \
18876
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18877
lt_cv_sys_global_symbol_to_c_name_address \
18878
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18879
old_postinstall_cmds old_postuninstall_cmds \
18883
lt_prog_compiler_wl_GCJ \
18884
lt_prog_compiler_pic_GCJ \
18885
lt_prog_compiler_static_GCJ \
18886
lt_prog_compiler_no_builtin_flag_GCJ \
18887
export_dynamic_flag_spec_GCJ \
18888
thread_safe_flag_spec_GCJ \
18889
whole_archive_flag_spec_GCJ \
18890
enable_shared_with_static_runtimes_GCJ \
18891
old_archive_cmds_GCJ \
18892
old_archive_from_new_cmds_GCJ \
18893
predep_objects_GCJ \
18894
postdep_objects_GCJ \
18897
compiler_lib_search_path_GCJ \
18898
compiler_lib_search_dirs_GCJ \
18900
archive_expsym_cmds_GCJ \
18901
postinstall_cmds_GCJ \
18902
postuninstall_cmds_GCJ \
18903
old_archive_from_expsyms_cmds_GCJ \
18904
allow_undefined_flag_GCJ \
18905
no_undefined_flag_GCJ \
18906
export_symbols_cmds_GCJ \
18907
hardcode_libdir_flag_spec_GCJ \
18908
hardcode_libdir_flag_spec_ld_GCJ \
18909
hardcode_libdir_separator_GCJ \
18910
hardcode_automatic_GCJ \
18912
module_expsym_cmds_GCJ \
18913
lt_cv_prog_compiler_c_o_GCJ \
18914
fix_srcfile_path_GCJ \
18915
exclude_expsyms_GCJ \
18916
include_expsyms_GCJ; do
18919
old_archive_cmds_GCJ | \
18920
old_archive_from_new_cmds_GCJ | \
18921
archive_cmds_GCJ | \
18922
archive_expsym_cmds_GCJ | \
18923
module_cmds_GCJ | \
18924
module_expsym_cmds_GCJ | \
18925
old_archive_from_expsyms_cmds_GCJ | \
18926
export_symbols_cmds_GCJ | \
18927
extract_expsyms_cmds | reload_cmds | finish_cmds | \
18928
postinstall_cmds | postuninstall_cmds | \
18929
old_postinstall_cmds | old_postuninstall_cmds | \
18930
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18931
# Double-quote double-evaled strings.
18932
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18935
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18941
*'\$0 --fallback-echo"')
18942
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18948
cat <<__EOF__ >> "$cfgfile"
18949
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18951
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18953
# Shell to use when invoking shell scripts.
18956
# Whether or not to build shared libraries.
18957
build_libtool_libs=$enable_shared
18959
# Whether or not to build static libraries.
18960
build_old_libs=$enable_static
18962
# Whether or not to add -lc for building shared libraries.
18963
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18965
# Whether or not to disallow shared libs when runtime libs are static
18966
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18968
# Whether or not to optimize for fast installation.
18969
fast_install=$enable_fast_install
18972
host_alias=$host_alias
18976
# The build system.
18977
build_alias=$build_alias
18981
# An echo program that does not interpret backslashes.
18986
AR_FLAGS=$lt_AR_FLAGS
18991
# LTCC compiler flags.
18992
LTCFLAGS=$lt_LTCFLAGS
18994
# A language-specific compiler.
18995
CC=$lt_compiler_GCJ
18997
# Is the compiler the GNU C compiler?
19003
# The linker used to build libraries.
19006
# Whether we need hard or soft links.
19009
# A BSD-compatible nm program.
19012
# A symbol stripping program
19015
# Used to examine libraries when file_magic_cmd begins "file"
19016
MAGIC_CMD=$MAGIC_CMD
19018
# Used on cygwin: DLL creation program.
19021
# Used on cygwin: object dumper.
19024
# Used on cygwin: assembler.
19027
# The name of the directory that contains temporary libtool files.
19030
# How to create reloadable object files.
19031
reload_flag=$lt_reload_flag
19032
reload_cmds=$lt_reload_cmds
19034
# How to pass a linker flag through the compiler.
19035
wl=$lt_lt_prog_compiler_wl_GCJ
19037
# Object file suffix (normally "o").
19038
objext="$ac_objext"
19040
# Old archive suffix (normally "a").
19043
# Shared library suffix (normally ".so").
19044
shrext_cmds='$shrext_cmds'
19046
# Executable file suffix (normally "").
19049
# Additional compiler flags for building library objects.
19050
pic_flag=$lt_lt_prog_compiler_pic_GCJ
19053
# What is the maximum length of a command?
19054
max_cmd_len=$lt_cv_sys_max_cmd_len
19056
# Does compiler simultaneously support -c and -o options?
19057
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19059
# Must we lock files when doing compilation?
19060
need_locks=$lt_need_locks
19062
# Do we need the lib prefix for modules?
19063
need_lib_prefix=$need_lib_prefix
19065
# Do we need a version for libraries?
19066
need_version=$need_version
19068
# Whether dlopen is supported.
19069
dlopen_support=$enable_dlopen
19071
# Whether dlopen of programs is supported.
19072
dlopen_self=$enable_dlopen_self
19074
# Whether dlopen of statically linked programs is supported.
19075
dlopen_self_static=$enable_dlopen_self_static
19077
# Compiler flag to prevent dynamic linking.
19078
link_static_flag=$lt_lt_prog_compiler_static_GCJ
19080
# Compiler flag to turn off builtin functions.
19081
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19083
# Compiler flag to allow reflexive dlopens.
19084
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19086
# Compiler flag to generate shared objects directly from archives.
19087
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19089
# Compiler flag to generate thread-safe objects.
19090
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19092
# Library versioning type.
19093
version_type=$version_type
19095
# Format of library name prefix.
19096
libname_spec=$lt_libname_spec
19098
# List of archive names. First name is the real one, the rest are links.
19099
# The last name is the one that the linker finds with -lNAME.
19100
library_names_spec=$lt_library_names_spec
19102
# The coded name of the library, if different from the real name.
19103
soname_spec=$lt_soname_spec
19105
# Commands used to build and install an old-style archive.
19107
old_archive_cmds=$lt_old_archive_cmds_GCJ
19108
old_postinstall_cmds=$lt_old_postinstall_cmds
19109
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19111
# Create an old-style archive from a shared archive.
19112
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19114
# Create a temporary old-style archive to link instead of a shared archive.
19115
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19117
# Commands used to build and install a shared archive.
19118
archive_cmds=$lt_archive_cmds_GCJ
19119
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19120
postinstall_cmds=$lt_postinstall_cmds
19121
postuninstall_cmds=$lt_postuninstall_cmds
19123
# Commands used to build a loadable module (assumed same as above if empty)
19124
module_cmds=$lt_module_cmds_GCJ
19125
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19127
# Commands to strip libraries.
19128
old_striplib=$lt_old_striplib
19129
striplib=$lt_striplib
19131
# Dependencies to place before the objects being linked to create a
19133
predep_objects=$lt_predep_objects_GCJ
19135
# Dependencies to place after the objects being linked to create a
19137
postdep_objects=$lt_postdep_objects_GCJ
19139
# Dependencies to place before the objects being linked to create a
19141
predeps=$lt_predeps_GCJ
19143
# Dependencies to place after the objects being linked to create a
19145
postdeps=$lt_postdeps_GCJ
19147
# The directories searched by this compiler when creating a shared
19149
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19151
# The library search path used internally by the compiler when linking
19152
# a shared library.
19153
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19155
# Method to check whether dependent libraries are shared objects.
19156
deplibs_check_method=$lt_deplibs_check_method
19158
# Command to use when deplibs_check_method == file_magic.
19159
file_magic_cmd=$lt_file_magic_cmd
19161
# Flag that allows shared libraries with undefined symbols to be built.
19162
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19164
# Flag that forces no undefined symbols.
19165
no_undefined_flag=$lt_no_undefined_flag_GCJ
19167
# Commands used to finish a libtool library installation in a directory.
19168
finish_cmds=$lt_finish_cmds
19170
# Same as above, but a single script fragment to be evaled but not shown.
19171
finish_eval=$lt_finish_eval
19173
# Take the output of nm and produce a listing of raw symbols and C names.
19174
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19176
# Transform the output of nm in a proper C declaration
19177
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19179
# Transform the output of nm in a C name address pair
19180
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19182
# This is the shared library runtime path variable.
19183
runpath_var=$runpath_var
19185
# This is the shared library path variable.
19186
shlibpath_var=$shlibpath_var
19188
# Is shlibpath searched before the hard-coded library search path?
19189
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19191
# How to hardcode a shared library path into an executable.
19192
hardcode_action=$hardcode_action_GCJ
19194
# Whether we should hardcode library paths into libraries.
19195
hardcode_into_libs=$hardcode_into_libs
19197
# Flag to hardcode \$libdir into a binary during linking.
19198
# This must work even if \$libdir does not exist.
19199
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19201
# If ld is used when linking, flag to hardcode \$libdir into
19202
# a binary during linking. This must work even if \$libdir does
19204
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19206
# Whether we need a single -rpath flag with a separated argument.
19207
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19209
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19210
# resulting binary.
19211
hardcode_direct=$hardcode_direct_GCJ
19213
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19214
# resulting binary.
19215
hardcode_minus_L=$hardcode_minus_L_GCJ
19217
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19218
# the resulting binary.
19219
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19221
# Set to yes if building a shared library automatically hardcodes DIR into the library
19222
# and all subsequent libraries and executables linked against it.
19223
hardcode_automatic=$hardcode_automatic_GCJ
19225
# Variables whose values should be saved in libtool wrapper scripts and
19226
# restored at relink time.
19227
variables_saved_for_relink="$variables_saved_for_relink"
19229
# Whether libtool must link a program against all its dependency libraries.
19230
link_all_deplibs=$link_all_deplibs_GCJ
19232
# Compile-time system search path for libraries
19233
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19235
# Run-time system search path for libraries
19236
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19238
# Fix the shell variable \$srcfile for the compiler.
19239
fix_srcfile_path=$lt_fix_srcfile_path
19241
# Set to yes if exported symbols are required.
19242
always_export_symbols=$always_export_symbols_GCJ
19244
# The commands to list exported symbols.
19245
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19247
# The commands to extract the exported symbol list from a shared archive.
19248
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19250
# Symbols that should not be listed in the preloaded symbols.
19251
exclude_expsyms=$lt_exclude_expsyms_GCJ
19253
# Symbols that must always be exported.
19254
include_expsyms=$lt_include_expsyms_GCJ
19256
# ### END LIBTOOL TAG CONFIG: $tagname
19262
# If there is no Makefile yet, we rely on a make rule to execute
19263
# `config.status --recheck' to rerun these tests and create the
19264
# libtool script then.
19265
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19266
if test -f "$ltmain_in"; then
19267
test -f Makefile && make "$ltmain"
19273
ac_cpp='$CPP $CPPFLAGS'
19274
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19275
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19276
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19288
# Source file extension for RC test sources.
19291
# Object file extension for compiled RC test sources.
19295
# Code to be used in simple compile tests
19296
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19298
# Code to be used in simple link tests
19299
lt_simple_link_test_code="$lt_simple_compile_test_code"
19301
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19303
# If no C compiler was specified, use CC.
19306
# If no C compiler flags were specified, use CFLAGS.
19307
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19309
# Allow CC to be a program name with arguments.
19313
# save warnings/boilerplate of simple test code
19314
ac_outfile=conftest.$ac_objext
19315
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19316
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19317
_lt_compiler_boilerplate=`cat conftest.err`
19320
ac_outfile=conftest.$ac_objext
19321
echo "$lt_simple_link_test_code" >conftest.$ac_ext
19322
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19323
_lt_linker_boilerplate=`cat conftest.err`
19327
# Allow CC to be a program name with arguments.
19332
for cc_temp in $compiler""; do
19334
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19335
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19340
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19342
lt_cv_prog_compiler_c_o_RC=yes
19344
# The else clause should only fire when bootstrapping the
19345
# libtool distribution, otherwise you forgot to ship ltmain.sh
19346
# with your package, and you will get complaints that there are
19347
# no rules to generate ltmain.sh.
19348
if test -f "$ltmain"; then
19349
# See if we are running on zsh, and set the options which allow our commands through
19350
# without removal of \ escapes.
19351
if test -n "${ZSH_VERSION+set}" ; then
19352
setopt NO_GLOB_SUBST
19354
# Now quote all the things that may contain metacharacters while being
19355
# careful not to overquote the AC_SUBSTed values. We take copies of the
19356
# variables and quote the copies for generation of the libtool script.
19357
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19359
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19360
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19361
deplibs_check_method reload_flag reload_cmds need_locks \
19362
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19363
lt_cv_sys_global_symbol_to_c_name_address \
19364
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19365
old_postinstall_cmds old_postuninstall_cmds \
19369
lt_prog_compiler_wl_RC \
19370
lt_prog_compiler_pic_RC \
19371
lt_prog_compiler_static_RC \
19372
lt_prog_compiler_no_builtin_flag_RC \
19373
export_dynamic_flag_spec_RC \
19374
thread_safe_flag_spec_RC \
19375
whole_archive_flag_spec_RC \
19376
enable_shared_with_static_runtimes_RC \
19377
old_archive_cmds_RC \
19378
old_archive_from_new_cmds_RC \
19379
predep_objects_RC \
19380
postdep_objects_RC \
19383
compiler_lib_search_path_RC \
19384
compiler_lib_search_dirs_RC \
19386
archive_expsym_cmds_RC \
19387
postinstall_cmds_RC \
19388
postuninstall_cmds_RC \
19389
old_archive_from_expsyms_cmds_RC \
19390
allow_undefined_flag_RC \
19391
no_undefined_flag_RC \
19392
export_symbols_cmds_RC \
19393
hardcode_libdir_flag_spec_RC \
19394
hardcode_libdir_flag_spec_ld_RC \
19395
hardcode_libdir_separator_RC \
19396
hardcode_automatic_RC \
19398
module_expsym_cmds_RC \
19399
lt_cv_prog_compiler_c_o_RC \
19400
fix_srcfile_path_RC \
19401
exclude_expsyms_RC \
19402
include_expsyms_RC; do
19405
old_archive_cmds_RC | \
19406
old_archive_from_new_cmds_RC | \
19407
archive_cmds_RC | \
19408
archive_expsym_cmds_RC | \
19410
module_expsym_cmds_RC | \
19411
old_archive_from_expsyms_cmds_RC | \
19412
export_symbols_cmds_RC | \
19413
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19414
postinstall_cmds | postuninstall_cmds | \
19415
old_postinstall_cmds | old_postuninstall_cmds | \
19416
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19417
# Double-quote double-evaled strings.
19418
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19421
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19427
*'\$0 --fallback-echo"')
19428
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19434
cat <<__EOF__ >> "$cfgfile"
19435
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19437
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19439
# Shell to use when invoking shell scripts.
19442
# Whether or not to build shared libraries.
19443
build_libtool_libs=$enable_shared
19445
# Whether or not to build static libraries.
19446
build_old_libs=$enable_static
19448
# Whether or not to add -lc for building shared libraries.
19449
build_libtool_need_lc=$archive_cmds_need_lc_RC
19451
# Whether or not to disallow shared libs when runtime libs are static
19452
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19454
# Whether or not to optimize for fast installation.
19455
fast_install=$enable_fast_install
19458
host_alias=$host_alias
19462
# The build system.
19463
build_alias=$build_alias
19467
# An echo program that does not interpret backslashes.
19472
AR_FLAGS=$lt_AR_FLAGS
19477
# LTCC compiler flags.
19478
LTCFLAGS=$lt_LTCFLAGS
19480
# A language-specific compiler.
19483
# Is the compiler the GNU C compiler?
19489
# The linker used to build libraries.
19492
# Whether we need hard or soft links.
19495
# A BSD-compatible nm program.
19498
# A symbol stripping program
19501
# Used to examine libraries when file_magic_cmd begins "file"
19502
MAGIC_CMD=$MAGIC_CMD
19504
# Used on cygwin: DLL creation program.
19507
# Used on cygwin: object dumper.
19510
# Used on cygwin: assembler.
19513
# The name of the directory that contains temporary libtool files.
19516
# How to create reloadable object files.
19517
reload_flag=$lt_reload_flag
19518
reload_cmds=$lt_reload_cmds
19520
# How to pass a linker flag through the compiler.
19521
wl=$lt_lt_prog_compiler_wl_RC
19523
# Object file suffix (normally "o").
19524
objext="$ac_objext"
19526
# Old archive suffix (normally "a").
19529
# Shared library suffix (normally ".so").
19530
shrext_cmds='$shrext_cmds'
19532
# Executable file suffix (normally "").
19535
# Additional compiler flags for building library objects.
19536
pic_flag=$lt_lt_prog_compiler_pic_RC
19539
# What is the maximum length of a command?
19540
max_cmd_len=$lt_cv_sys_max_cmd_len
19542
# Does compiler simultaneously support -c and -o options?
19543
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19545
# Must we lock files when doing compilation?
19546
need_locks=$lt_need_locks
19548
# Do we need the lib prefix for modules?
19549
need_lib_prefix=$need_lib_prefix
19551
# Do we need a version for libraries?
19552
need_version=$need_version
19554
# Whether dlopen is supported.
19555
dlopen_support=$enable_dlopen
19557
# Whether dlopen of programs is supported.
19558
dlopen_self=$enable_dlopen_self
19560
# Whether dlopen of statically linked programs is supported.
19561
dlopen_self_static=$enable_dlopen_self_static
19563
# Compiler flag to prevent dynamic linking.
19564
link_static_flag=$lt_lt_prog_compiler_static_RC
19566
# Compiler flag to turn off builtin functions.
19567
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19569
# Compiler flag to allow reflexive dlopens.
19570
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19572
# Compiler flag to generate shared objects directly from archives.
19573
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19575
# Compiler flag to generate thread-safe objects.
19576
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19578
# Library versioning type.
19579
version_type=$version_type
19581
# Format of library name prefix.
19582
libname_spec=$lt_libname_spec
19584
# List of archive names. First name is the real one, the rest are links.
19585
# The last name is the one that the linker finds with -lNAME.
19586
library_names_spec=$lt_library_names_spec
19588
# The coded name of the library, if different from the real name.
19589
soname_spec=$lt_soname_spec
19591
# Commands used to build and install an old-style archive.
19593
old_archive_cmds=$lt_old_archive_cmds_RC
19594
old_postinstall_cmds=$lt_old_postinstall_cmds
19595
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19597
# Create an old-style archive from a shared archive.
19598
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19600
# Create a temporary old-style archive to link instead of a shared archive.
19601
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19603
# Commands used to build and install a shared archive.
19604
archive_cmds=$lt_archive_cmds_RC
19605
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19606
postinstall_cmds=$lt_postinstall_cmds
19607
postuninstall_cmds=$lt_postuninstall_cmds
19609
# Commands used to build a loadable module (assumed same as above if empty)
19610
module_cmds=$lt_module_cmds_RC
19611
module_expsym_cmds=$lt_module_expsym_cmds_RC
19613
# Commands to strip libraries.
19614
old_striplib=$lt_old_striplib
19615
striplib=$lt_striplib
19617
# Dependencies to place before the objects being linked to create a
19619
predep_objects=$lt_predep_objects_RC
19621
# Dependencies to place after the objects being linked to create a
19623
postdep_objects=$lt_postdep_objects_RC
19625
# Dependencies to place before the objects being linked to create a
19627
predeps=$lt_predeps_RC
19629
# Dependencies to place after the objects being linked to create a
19631
postdeps=$lt_postdeps_RC
19633
# The directories searched by this compiler when creating a shared
19635
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19637
# The library search path used internally by the compiler when linking
19638
# a shared library.
19639
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19641
# Method to check whether dependent libraries are shared objects.
19642
deplibs_check_method=$lt_deplibs_check_method
19644
# Command to use when deplibs_check_method == file_magic.
19645
file_magic_cmd=$lt_file_magic_cmd
19647
# Flag that allows shared libraries with undefined symbols to be built.
19648
allow_undefined_flag=$lt_allow_undefined_flag_RC
19650
# Flag that forces no undefined symbols.
19651
no_undefined_flag=$lt_no_undefined_flag_RC
19653
# Commands used to finish a libtool library installation in a directory.
19654
finish_cmds=$lt_finish_cmds
19656
# Same as above, but a single script fragment to be evaled but not shown.
19657
finish_eval=$lt_finish_eval
19659
# Take the output of nm and produce a listing of raw symbols and C names.
19660
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19662
# Transform the output of nm in a proper C declaration
19663
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19665
# Transform the output of nm in a C name address pair
19666
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19668
# This is the shared library runtime path variable.
19669
runpath_var=$runpath_var
19671
# This is the shared library path variable.
19672
shlibpath_var=$shlibpath_var
19674
# Is shlibpath searched before the hard-coded library search path?
19675
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19677
# How to hardcode a shared library path into an executable.
19678
hardcode_action=$hardcode_action_RC
19680
# Whether we should hardcode library paths into libraries.
19681
hardcode_into_libs=$hardcode_into_libs
19683
# Flag to hardcode \$libdir into a binary during linking.
19684
# This must work even if \$libdir does not exist.
19685
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19687
# If ld is used when linking, flag to hardcode \$libdir into
19688
# a binary during linking. This must work even if \$libdir does
19690
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19692
# Whether we need a single -rpath flag with a separated argument.
19693
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19695
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19696
# resulting binary.
19697
hardcode_direct=$hardcode_direct_RC
19699
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19700
# resulting binary.
19701
hardcode_minus_L=$hardcode_minus_L_RC
19703
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19704
# the resulting binary.
19705
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19707
# Set to yes if building a shared library automatically hardcodes DIR into the library
19708
# and all subsequent libraries and executables linked against it.
19709
hardcode_automatic=$hardcode_automatic_RC
19711
# Variables whose values should be saved in libtool wrapper scripts and
19712
# restored at relink time.
19713
variables_saved_for_relink="$variables_saved_for_relink"
19715
# Whether libtool must link a program against all its dependency libraries.
19716
link_all_deplibs=$link_all_deplibs_RC
19718
# Compile-time system search path for libraries
19719
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19721
# Run-time system search path for libraries
19722
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19724
# Fix the shell variable \$srcfile for the compiler.
19725
fix_srcfile_path=$lt_fix_srcfile_path
19727
# Set to yes if exported symbols are required.
19728
always_export_symbols=$always_export_symbols_RC
19730
# The commands to list exported symbols.
19731
export_symbols_cmds=$lt_export_symbols_cmds_RC
19733
# The commands to extract the exported symbol list from a shared archive.
19734
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19736
# Symbols that should not be listed in the preloaded symbols.
19737
exclude_expsyms=$lt_exclude_expsyms_RC
19739
# Symbols that must always be exported.
19740
include_expsyms=$lt_include_expsyms_RC
19742
# ### END LIBTOOL TAG CONFIG: $tagname
19748
# If there is no Makefile yet, we rely on a make rule to execute
19749
# `config.status --recheck' to rerun these tests and create the
19750
# libtool script then.
19751
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19752
if test -f "$ltmain_in"; then
19753
test -f Makefile && make "$ltmain"
19759
ac_cpp='$CPP $CPPFLAGS'
19760
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19761
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19762
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19769
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19770
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19771
{ (exit 1); exit 1; }; }
19775
# Append the new tag name to the list of available tags.
19776
if test -n "$tagname" ; then
19777
available_tags="$available_tags $tagname"
19783
# Now substitute the updated list of available tags.
19784
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19785
mv "${ofile}T" "$ofile"
19789
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19790
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19791
{ (exit 1); exit 1; }; }
19797
# This can be used to rebuild libtool when needed
19798
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19800
# Always use our own libtool.
19801
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19803
# Prevent multiple expansion
11059
{ echo "$as_me:$LINENO: checking if dolt supports this host" >&5
11060
echo $ECHO_N "checking if dolt supports this host... $ECHO_C" >&6; }
11062
if test x$DOLT_BASH = x; then
11065
if test x$GCC != xyes; then
11069
i?86-*-linux*|x86_64-*-linux*|powerpc-*-linux* \
11070
|amd64-*-freebsd*|i?86-*-freebsd*|ia64-*-freebsd*)
11071
pic_options='-fPIC'
11073
i?86-apple-darwin*)
11074
pic_options='-fno-common'
11080
if test x$dolt_supported = xno ; then
11081
{ echo "$as_me:$LINENO: result: no, falling back to libtool" >&5
11082
echo "${ECHO_T}no, falling back to libtool" >&6; }
11083
LTCOMPILE='$(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(COMPILE)'
11084
LTCXXCOMPILE='$(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXXCOMPILE)'
11086
{ echo "$as_me:$LINENO: result: yes, replacing libtool" >&5
11087
echo "${ECHO_T}yes, replacing libtool" >&6; }
11089
cat <<__DOLTCOMPILE__EOF__ >doltcompile
11091
__DOLTCOMPILE__EOF__
11092
cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
11094
for ((arg=0; arg<${#args[@]}; arg++)) ; do
11095
if test x"${args[$arg]}" = x-o ; then
11100
if test x$objarg = x ; then
11101
echo 'Error: no -o on compiler command line' 1>&2
11104
lo="${args[$objarg]}"
11106
if test x"$lo" = x"$obj" ; then
11107
echo "Error: libtool object file name \"$lo\" does not end in .lo" 1>&2
11110
objbase="${obj##*/}"
11111
__DOLTCOMPILE__EOF__
11113
if test x$enable_shared = xyes; then
11114
cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
11115
libobjdir="${obj%$objbase}.libs"
11116
if test ! -d "$libobjdir" ; then
11117
mkdir_out="$(mkdir "$libobjdir" 2>&1)"
11119
if test "$mkdir_ret" -ne 0 && test ! -d "$libobjdir" ; then
11120
echo "$mkdir_out" 1>&2
11124
pic_object="$libobjdir/$objbase.o"
11125
args[$objarg]="$pic_object"
11126
__DOLTCOMPILE__EOF__
11127
cat <<__DOLTCOMPILE__EOF__ >>doltcompile
11128
"\${args[@]}" $pic_options -DPIC || exit \$?
11129
__DOLTCOMPILE__EOF__
11132
if test x$enable_static = xyes; then
11133
cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
11134
non_pic_object="$obj.o"
11135
args[$objarg]="$non_pic_object"
11136
__DOLTCOMPILE__EOF__
11137
if test x$enable_shared = xyes; then
11138
cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
11139
"${args[@]}" >/dev/null 2>&1 || exit $?
11140
__DOLTCOMPILE__EOF__
11142
cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
11143
"${args[@]}" || exit $?
11144
__DOLTCOMPILE__EOF__
11148
cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
11150
echo "# $lo - a libtool object file"
11151
echo "# Generated by doltcompile, not libtool"
11152
__DOLTCOMPILE__EOF__
11154
if test x$enable_shared = xyes; then
11155
cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
11156
echo "pic_object='.libs/${objbase}.o'"
11157
__DOLTCOMPILE__EOF__
11159
cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
11160
echo pic_object=none
11161
__DOLTCOMPILE__EOF__
11164
if test x$enable_static = xyes; then
11165
cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
11166
echo "non_pic_object='${objbase}.o'"
11167
__DOLTCOMPILE__EOF__
11169
cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
11170
echo non_pic_object=none
11171
__DOLTCOMPILE__EOF__
11174
cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
11176
__DOLTCOMPILE__EOF__
11178
chmod +x doltcompile
11179
LTCOMPILE='$(top_builddir)/doltcompile $(COMPILE)'
11180
LTCXXCOMPILE='$(top_builddir)/doltcompile $(CXXCOMPILE)'
11182
cat <<__DOLTLIBTOOL__EOF__ > doltlibtool
11184
__DOLTLIBTOOL__EOF__
11185
cat <<'__DOLTLIBTOOL__EOF__' >>doltlibtool
11186
top_builddir_slash="${0%%doltlibtool}"
11187
: ${top_builddir_slash:=./}
11191
for arg in "$@"; do
11194
--mode=compile) modeok=true ;;
11195
--tag=CC|--tag=CXX) tagok=true ;;
11196
*) args[${#args[@]}]="$arg" ;;
11199
if $modeok && $tagok ; then
11200
. ${top_builddir_slash}doltcompile "${args[@]}"
11202
exec ${top_builddir_slash}libtool "$@"
11204
__DOLTLIBTOOL__EOF__
11206
chmod +x doltlibtool
11207
LIBTOOL='$(top_builddir)/doltlibtool'
19825
11214
# Checks for header files.