10754
# Report which library types will actually be built
10755
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10756
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10757
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10758
$as_echo "$can_build_shared" >&6; }
10760
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10761
$as_echo_n "checking whether to build shared libraries... " >&6; }
10762
test "$can_build_shared" = "no" && enable_shared=no
10764
# On AIX, shared libraries and static libraries use the same namespace, and
10765
# are all built from PIC.
10768
test "$enable_shared" = yes && enable_static=no
10769
if test -n "$RANLIB"; then
10770
archive_cmds="$archive_cmds~\$RANLIB \$lib"
10771
postinstall_cmds='$RANLIB $lib'
10776
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10777
test "$enable_shared" = yes && enable_static=no
10781
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10782
$as_echo "$enable_shared" >&6; }
10784
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10785
$as_echo_n "checking whether to build static libraries... " >&6; }
10786
# Make sure either enable_shared or enable_static is yes.
10787
test "$enable_shared" = yes || enable_static=yes
10788
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10789
$as_echo "$enable_static" >&6; }
10791
# The else clause should only fire when bootstrapping the
10792
# libtool distribution, otherwise you forgot to ship ltmain.sh
10793
# with your package, and you will get complaints that there are
10794
# no rules to generate ltmain.sh.
10795
if test -f "$ltmain"; then
10796
# See if we are running on zsh, and set the options which allow our commands through
10797
# without removal of \ escapes.
10798
if test -n "${ZSH_VERSION+set}" ; then
10799
setopt NO_GLOB_SUBST
10801
# Now quote all the things that may contain metacharacters while being
10802
# careful not to overquote the AC_SUBSTed values. We take copies of the
10803
# variables and quote the copies for generation of the libtool script.
10804
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10806
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10807
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10808
deplibs_check_method reload_flag reload_cmds need_locks \
10809
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10810
lt_cv_sys_global_symbol_to_c_name_address \
10811
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10812
old_postinstall_cmds old_postuninstall_cmds \
10816
lt_prog_compiler_wl \
10817
lt_prog_compiler_pic \
10818
lt_prog_compiler_static \
10819
lt_prog_compiler_no_builtin_flag \
10820
export_dynamic_flag_spec \
10821
thread_safe_flag_spec \
10822
whole_archive_flag_spec \
10823
enable_shared_with_static_runtimes \
10825
old_archive_from_new_cmds \
10830
compiler_lib_search_path \
10831
compiler_lib_search_dirs \
10833
archive_expsym_cmds \
10835
postuninstall_cmds \
10836
old_archive_from_expsyms_cmds \
10837
allow_undefined_flag \
10838
no_undefined_flag \
10839
export_symbols_cmds \
10840
hardcode_libdir_flag_spec \
10841
hardcode_libdir_flag_spec_ld \
10842
hardcode_libdir_separator \
10843
hardcode_automatic \
10845
module_expsym_cmds \
10846
lt_cv_prog_compiler_c_o \
10849
include_expsyms; do
10852
old_archive_cmds | \
10853
old_archive_from_new_cmds | \
10855
archive_expsym_cmds | \
10857
module_expsym_cmds | \
10858
old_archive_from_expsyms_cmds | \
10859
export_symbols_cmds | \
10860
extract_expsyms_cmds | reload_cmds | finish_cmds | \
10861
postinstall_cmds | postuninstall_cmds | \
10862
old_postinstall_cmds | old_postuninstall_cmds | \
10863
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10864
# Double-quote double-evaled strings.
10865
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10868
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10874
*'\$0 --fallback-echo"')
10875
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10879
cfgfile="${ofile}T"
10880
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10882
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
10883
$as_echo "$as_me: creating $ofile" >&6;}
10885
cat <<__EOF__ >> "$cfgfile"
10888
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10889
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10890
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10892
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10893
# Free Software Foundation, Inc.
10895
# This file is part of GNU Libtool:
10896
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10898
# This program is free software; you can redistribute it and/or modify
10899
# it under the terms of the GNU General Public License as published by
10900
# the Free Software Foundation; either version 2 of the License, or
10901
# (at your option) any later version.
10903
# This program is distributed in the hope that it will be useful, but
10904
# WITHOUT ANY WARRANTY; without even the implied warranty of
10905
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10906
# General Public License for more details.
10908
# You should have received a copy of the GNU General Public License
10909
# along with this program; if not, write to the Free Software
10910
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10912
# As a special exception to the GNU General Public License, if you
10913
# distribute this file as part of a program that contains a
10914
# configuration script generated by Autoconf, you may include it under
10915
# the same distribution terms that you use for the rest of that program.
10917
# A sed program that does not truncate output.
10920
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10921
Xsed="$SED -e 1s/^X//"
10923
# The HP-UX ksh and POSIX shell print the target directory to stdout
10924
# if CDPATH is set.
10925
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10927
# The names of the tagged configurations supported by this script.
10930
# ### BEGIN LIBTOOL CONFIG
10932
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10934
# Shell to use when invoking shell scripts.
10937
# Whether or not to build shared libraries.
10938
build_libtool_libs=$enable_shared
10940
# Whether or not to build static libraries.
10941
build_old_libs=$enable_static
10943
# Whether or not to add -lc for building shared libraries.
10944
build_libtool_need_lc=$archive_cmds_need_lc
10946
# Whether or not to disallow shared libs when runtime libs are static
10947
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10949
# Whether or not to optimize for fast installation.
10950
fast_install=$enable_fast_install
10953
host_alias=$host_alias
10957
# The build system.
10958
build_alias=$build_alias
10962
# An echo program that does not interpret backslashes.
10967
AR_FLAGS=$lt_AR_FLAGS
10972
# LTCC compiler flags.
10973
LTCFLAGS=$lt_LTCFLAGS
10975
# A language-specific compiler.
10978
# Is the compiler the GNU C compiler?
10984
# The linker used to build libraries.
10987
# Whether we need hard or soft links.
10990
# A BSD-compatible nm program.
10993
# A symbol stripping program
10996
# Used to examine libraries when file_magic_cmd begins "file"
10997
MAGIC_CMD=$MAGIC_CMD
10999
# Used on cygwin: DLL creation program.
11002
# Used on cygwin: object dumper.
11005
# Used on cygwin: assembler.
11008
# The name of the directory that contains temporary libtool files.
11011
# How to create reloadable object files.
11012
reload_flag=$lt_reload_flag
11013
reload_cmds=$lt_reload_cmds
11015
# How to pass a linker flag through the compiler.
11016
wl=$lt_lt_prog_compiler_wl
11018
# Object file suffix (normally "o").
11019
objext="$ac_objext"
11021
# Old archive suffix (normally "a").
11024
# Shared library suffix (normally ".so").
11025
shrext_cmds='$shrext_cmds'
11027
# Executable file suffix (normally "").
11030
# Additional compiler flags for building library objects.
11031
pic_flag=$lt_lt_prog_compiler_pic
11034
# What is the maximum length of a command?
11035
max_cmd_len=$lt_cv_sys_max_cmd_len
11037
# Does compiler simultaneously support -c and -o options?
11038
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11040
# Must we lock files when doing compilation?
11041
need_locks=$lt_need_locks
11043
# Do we need the lib prefix for modules?
11044
need_lib_prefix=$need_lib_prefix
11046
# Do we need a version for libraries?
11047
need_version=$need_version
11049
# Whether dlopen is supported.
11050
dlopen_support=$enable_dlopen
11052
# Whether dlopen of programs is supported.
11053
dlopen_self=$enable_dlopen_self
11055
# Whether dlopen of statically linked programs is supported.
11056
dlopen_self_static=$enable_dlopen_self_static
11058
# Compiler flag to prevent dynamic linking.
11059
link_static_flag=$lt_lt_prog_compiler_static
11061
# Compiler flag to turn off builtin functions.
11062
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11064
# Compiler flag to allow reflexive dlopens.
11065
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11067
# Compiler flag to generate shared objects directly from archives.
11068
whole_archive_flag_spec=$lt_whole_archive_flag_spec
11070
# Compiler flag to generate thread-safe objects.
11071
thread_safe_flag_spec=$lt_thread_safe_flag_spec
11073
# Library versioning type.
11074
version_type=$version_type
11076
# Format of library name prefix.
11077
libname_spec=$lt_libname_spec
11079
# List of archive names. First name is the real one, the rest are links.
11080
# The last name is the one that the linker finds with -lNAME.
11081
library_names_spec=$lt_library_names_spec
11083
# The coded name of the library, if different from the real name.
11084
soname_spec=$lt_soname_spec
11086
# Commands used to build and install an old-style archive.
11088
old_archive_cmds=$lt_old_archive_cmds
11089
old_postinstall_cmds=$lt_old_postinstall_cmds
11090
old_postuninstall_cmds=$lt_old_postuninstall_cmds
11092
# Create an old-style archive from a shared archive.
11093
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11095
# Create a temporary old-style archive to link instead of a shared archive.
11096
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11098
# Commands used to build and install a shared archive.
11099
archive_cmds=$lt_archive_cmds
11100
archive_expsym_cmds=$lt_archive_expsym_cmds
11101
postinstall_cmds=$lt_postinstall_cmds
11102
postuninstall_cmds=$lt_postuninstall_cmds
11104
# Commands used to build a loadable module (assumed same as above if empty)
11105
module_cmds=$lt_module_cmds
11106
module_expsym_cmds=$lt_module_expsym_cmds
11108
# Commands to strip libraries.
11109
old_striplib=$lt_old_striplib
11110
striplib=$lt_striplib
11112
# Dependencies to place before the objects being linked to create a
11114
predep_objects=$lt_predep_objects
11116
# Dependencies to place after the objects being linked to create a
11118
postdep_objects=$lt_postdep_objects
11120
# Dependencies to place before the objects being linked to create a
11122
predeps=$lt_predeps
11124
# Dependencies to place after the objects being linked to create a
11126
postdeps=$lt_postdeps
11128
# The directories searched by this compiler when creating a shared
11130
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11132
# The library search path used internally by the compiler when linking
11133
# a shared library.
11134
compiler_lib_search_path=$lt_compiler_lib_search_path
11136
# Method to check whether dependent libraries are shared objects.
11137
deplibs_check_method=$lt_deplibs_check_method
11139
# Command to use when deplibs_check_method == file_magic.
11140
file_magic_cmd=$lt_file_magic_cmd
11142
# Flag that allows shared libraries with undefined symbols to be built.
11143
allow_undefined_flag=$lt_allow_undefined_flag
11145
# Flag that forces no undefined symbols.
11146
no_undefined_flag=$lt_no_undefined_flag
11148
# Commands used to finish a libtool library installation in a directory.
11149
finish_cmds=$lt_finish_cmds
11151
# Same as above, but a single script fragment to be evaled but not shown.
11152
finish_eval=$lt_finish_eval
11154
# Take the output of nm and produce a listing of raw symbols and C names.
11155
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11157
# Transform the output of nm in a proper C declaration
11158
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11160
# Transform the output of nm in a C name address pair
11161
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11163
# This is the shared library runtime path variable.
11164
runpath_var=$runpath_var
11166
# This is the shared library path variable.
11167
shlibpath_var=$shlibpath_var
11169
# Is shlibpath searched before the hard-coded library search path?
11170
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11172
# How to hardcode a shared library path into an executable.
11173
hardcode_action=$hardcode_action
11175
# Whether we should hardcode library paths into libraries.
11176
hardcode_into_libs=$hardcode_into_libs
11178
# Flag to hardcode \$libdir into a binary during linking.
11179
# This must work even if \$libdir does not exist.
11180
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11182
# If ld is used when linking, flag to hardcode \$libdir into
11183
# a binary during linking. This must work even if \$libdir does
11185
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11187
# Whether we need a single -rpath flag with a separated argument.
11188
hardcode_libdir_separator=$lt_hardcode_libdir_separator
11190
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11191
# resulting binary.
11192
hardcode_direct=$hardcode_direct
11194
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11195
# resulting binary.
11196
hardcode_minus_L=$hardcode_minus_L
11198
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11199
# the resulting binary.
11200
hardcode_shlibpath_var=$hardcode_shlibpath_var
11202
# Set to yes if building a shared library automatically hardcodes DIR into the library
11203
# and all subsequent libraries and executables linked against it.
11204
hardcode_automatic=$hardcode_automatic
11206
# Variables whose values should be saved in libtool wrapper scripts and
11207
# restored at relink time.
11208
variables_saved_for_relink="$variables_saved_for_relink"
11210
# Whether libtool must link a program against all its dependency libraries.
11211
link_all_deplibs=$link_all_deplibs
11213
# Compile-time system search path for libraries
11214
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11216
# Run-time system search path for libraries
11217
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11219
# Fix the shell variable \$srcfile for the compiler.
11220
fix_srcfile_path=$lt_fix_srcfile_path
11222
# Set to yes if exported symbols are required.
11223
always_export_symbols=$always_export_symbols
11225
# The commands to list exported symbols.
11226
export_symbols_cmds=$lt_export_symbols_cmds
11228
# The commands to extract the exported symbol list from a shared archive.
11229
extract_expsyms_cmds=$lt_extract_expsyms_cmds
11231
# Symbols that should not be listed in the preloaded symbols.
11232
exclude_expsyms=$lt_exclude_expsyms
11234
# Symbols that must always be exported.
11235
include_expsyms=$lt_include_expsyms
11237
# ### END LIBTOOL CONFIG
11244
cat <<\EOF >> "$cfgfile"
11246
# AIX sometimes has problems with the GCC collect2 program. For some
11247
# reason, if we set the COLLECT_NAMES environment variable, the problems
11248
# vanish in a puff of smoke.
11249
if test "X${COLLECT_NAMES+set}" != Xset; then
11251
export COLLECT_NAMES
11257
# We use sed instead of cat because bash on DJGPP gets confused if
11258
# if finds mixed CR/LF and LF-only lines. Since sed operates in
11259
# text mode, it properly converts lines to CR/LF. This bash problem
11260
# is reportedly fixed, but why not run on old versions too?
11261
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11263
mv -f "$cfgfile" "$ofile" || \
11264
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11268
# If there is no Makefile yet, we rely on a make rule to execute
11269
# `config.status --recheck' to rerun these tests and create the
11270
# libtool script then.
11271
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11272
if test -f "$ltmain_in"; then
11273
test -f Makefile && make "$ltmain"
11279
ac_cpp='$CPP $CPPFLAGS'
11280
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11281
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11282
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11287
# Check whether --with-tags was given.
11288
if test "${with_tags+set}" = set; then :
11289
withval=$with_tags; tagnames="$withval"
11293
if test -f "$ltmain" && test -n "$tagnames"; then
11294
if test ! -f "${ofile}"; then
11295
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
11296
$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11299
if test -z "$LTCC"; then
11300
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11301
if test -z "$LTCC"; then
11302
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11303
$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11305
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11306
$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11309
if test -z "$LTCFLAGS"; then
11310
eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11313
# Extract list of available tagged configurations in $ofile.
11314
# Note that this assumes the entire list is on one line.
11315
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11317
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11318
for tagname in $tagnames; do
11320
# Check whether tagname contains only valid characters
11321
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11323
*) as_fn_error "invalid tag name: $tagname" "$LINENO" 5
11327
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11329
as_fn_error "tag name \"$tagname\" already exists" "$LINENO" 5
11332
# Update the list of available tags.
11333
if test -n "$tagname"; then
11334
echo appending configuration tag \"$tagname\" to $ofile
11338
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11339
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11340
(test "X$CXX" != "Xg++"))) ; then
11342
ac_cpp='$CXXCPP $CPPFLAGS'
11343
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11344
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11345
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11350
archive_cmds_need_lc_CXX=no
11351
allow_undefined_flag_CXX=
11352
always_export_symbols_CXX=no
11353
archive_expsym_cmds_CXX=
11354
export_dynamic_flag_spec_CXX=
11355
hardcode_direct_CXX=no
11356
hardcode_libdir_flag_spec_CXX=
11357
hardcode_libdir_flag_spec_ld_CXX=
11358
hardcode_libdir_separator_CXX=
11359
hardcode_minus_L_CXX=no
11360
hardcode_shlibpath_var_CXX=unsupported
11361
hardcode_automatic_CXX=no
11363
module_expsym_cmds_CXX=
11364
link_all_deplibs_CXX=unknown
11365
old_archive_cmds_CXX=$old_archive_cmds
11366
no_undefined_flag_CXX=
11367
whole_archive_flag_spec_CXX=
11368
enable_shared_with_static_runtimes_CXX=no
11370
# Dependencies to place before and after the object being linked:
11371
predep_objects_CXX=
11372
postdep_objects_CXX=
11375
compiler_lib_search_path_CXX=
11376
compiler_lib_search_dirs_CXX=
11378
# Source file extension for C++ test sources.
11381
# Object file extension for compiled C++ test sources.
11385
# Code to be used in simple compile tests
11386
lt_simple_compile_test_code="int some_variable = 0;"
11388
# Code to be used in simple link tests
11389
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11391
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11393
# If no C compiler was specified, use CC.
11396
# If no C compiler flags were specified, use CFLAGS.
11397
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11399
# Allow CC to be a program name with arguments.
11403
# save warnings/boilerplate of simple test code
11404
ac_outfile=conftest.$ac_objext
11405
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11406
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11407
_lt_compiler_boilerplate=`cat conftest.err`
11410
ac_outfile=conftest.$ac_objext
11411
echo "$lt_simple_link_test_code" >conftest.$ac_ext
11412
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11413
_lt_linker_boilerplate=`cat conftest.err`
11417
# Allow CC to be a program name with arguments.
11422
lt_save_with_gnu_ld=$with_gnu_ld
11423
lt_save_path_LD=$lt_cv_path_LD
11424
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11425
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11427
$as_unset lt_cv_prog_gnu_ld
11429
if test -n "${lt_cv_path_LDCXX+set}"; then
11430
lt_cv_path_LD=$lt_cv_path_LDCXX
11432
$as_unset lt_cv_path_LD
11434
test -z "${LDCXX+set}" || LD=$LDCXX
11438
for cc_temp in $compiler""; do
11440
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11441
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11446
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11449
# We don't want -fno-exception wen compiling C++ code, so set the
11450
# no_builtin_flag separately
11451
if test "$GXX" = yes; then
11452
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11454
lt_prog_compiler_no_builtin_flag_CXX=
11457
if test "$GXX" = yes; then
11458
# Set up default GNU C++ configuration
11461
# Check whether --with-gnu-ld was given.
11462
if test "${with_gnu_ld+set}" = set; then :
11463
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11469
if test "$GCC" = yes; then
11470
# Check if gcc -print-prog-name=ld gives a path.
11471
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11472
$as_echo_n "checking for ld used by $CC... " >&6; }
11475
# gcc leaves a trailing carriage return which upsets mingw
11476
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11478
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11481
# Accept absolute paths.
11483
re_direlt='/[^/][^/]*/\.\./'
11484
# Canonicalize the pathname of ld
11485
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11486
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11487
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11489
test -z "$LD" && LD="$ac_prog"
11492
# If it fails, then pretend we aren't using GCC.
11496
# If it is relative, then search for the first ld in PATH.
11497
with_gnu_ld=unknown
11500
elif test "$with_gnu_ld" = yes; then
11501
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11502
$as_echo_n "checking for GNU ld... " >&6; }
11504
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11505
$as_echo_n "checking for non-GNU ld... " >&6; }
11507
if test "${lt_cv_path_LD+set}" = set; then :
11508
$as_echo_n "(cached) " >&6
11510
if test -z "$LD"; then
11511
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11512
for ac_dir in $PATH; do
11514
test -z "$ac_dir" && ac_dir=.
11515
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11516
lt_cv_path_LD="$ac_dir/$ac_prog"
11517
# Check to see if the program is GNU ld. I'd rather use --version,
11518
# but apparently some variants of GNU ld only accept -v.
11519
# Break only if it was the GNU/non-GNU ld that we prefer.
11520
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11521
*GNU* | *'with BFD'*)
11522
test "$with_gnu_ld" != no && break
11525
test "$with_gnu_ld" != yes && break
11532
lt_cv_path_LD="$LD" # Let the user override the test with a path.
11536
LD="$lt_cv_path_LD"
11537
if test -n "$LD"; then
11538
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11539
$as_echo "$LD" >&6; }
11541
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11542
$as_echo "no" >&6; }
11544
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11545
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11546
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11547
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11548
$as_echo_n "(cached) " >&6
11550
# I'd rather use --version here, but apparently some GNU lds only accept -v.
11551
case `$LD -v 2>&1 </dev/null` in
11552
*GNU* | *'with BFD'*)
11553
lt_cv_prog_gnu_ld=yes
11556
lt_cv_prog_gnu_ld=no
11560
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11561
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11562
with_gnu_ld=$lt_cv_prog_gnu_ld
11566
# Check if GNU C++ uses GNU ld as the underlying linker, since the
11567
# archiving commands below assume that GNU ld is being used.
11568
if test "$with_gnu_ld" = yes; then
11569
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11570
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'
11572
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11573
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11575
# If archive_cmds runs LD, not CC, wlarc should be empty
11576
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11577
# investigate it a little bit more. (MM)
11580
# ancient GNU ld didn't support --whole-archive et. al.
11581
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11582
grep 'no-whole-archive' > /dev/null; then
11583
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11585
whole_archive_flag_spec_CXX=
11591
# A generic and very simple default shared library creation
11592
# command for GNU C++ for the case where it uses the native
11593
# linker, instead of GNU ld. If possible, this setting should
11594
# overridden to take advantage of the native linker features on
11595
# the platform it is being used on.
11596
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11599
# Commands to make compiler produce verbose output that lists
11600
# what "hidden" libraries, object files and flags are used when
11601
# linking a shared library.
11602
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11610
# PORTME: fill in a description of your system's C++ link characteristics
11611
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11612
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11616
# FIXME: insert proper C++ library support
11620
if test "$host_cpu" = ia64; then
11621
# On IA64, the linker does run time linking by default, so we don't
11622
# have to do anything special.
11623
aix_use_runtimelinking=no
11624
exp_sym_flag='-Bexport'
11627
aix_use_runtimelinking=no
11629
# Test if we are trying to use run time linking or normal
11630
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11631
# need to do runtime linking.
11632
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11633
for ld_flag in $LDFLAGS; do
11636
aix_use_runtimelinking=yes
11644
exp_sym_flag='-bexport'
11645
no_entry_flag='-bnoentry'
11648
# When large executables or shared objects are built, AIX ld can
11649
# have problems creating the table of contents. If linking a library
11650
# or program results in "error TOC overflow" add -mminimal-toc to
11651
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11652
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11654
archive_cmds_CXX=''
11655
hardcode_direct_CXX=yes
11656
hardcode_libdir_separator_CXX=':'
11657
link_all_deplibs_CXX=yes
11659
if test "$GXX" = yes; then
11660
case $host_os in aix4.[012]|aix4.[012].*)
11661
# We only want to do this on AIX 4.2 and lower, the check
11662
# below for broken collect2 doesn't work under 4.3+
11663
collect2name=`${CC} -print-prog-name=collect2`
11664
if test -f "$collect2name" && \
11665
strings "$collect2name" | grep resolve_lib_name >/dev/null
11667
# We have reworked collect2
11670
# We have old collect2
11671
hardcode_direct_CXX=unsupported
11672
# It fails to find uninstalled libraries when the uninstalled
11673
# path is not listed in the libpath. Setting hardcode_minus_L
11674
# to unsupported forces relinking
11675
hardcode_minus_L_CXX=yes
11676
hardcode_libdir_flag_spec_CXX='-L$libdir'
11677
hardcode_libdir_separator_CXX=
11681
shared_flag='-shared'
11682
if test "$aix_use_runtimelinking" = yes; then
11683
shared_flag="$shared_flag "'${wl}-G'
11687
if test "$host_cpu" = ia64; then
11688
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11689
# chokes on -Wl,-G. The following line is correct:
11692
if test "$aix_use_runtimelinking" = yes; then
11693
shared_flag='${wl}-G'
11695
shared_flag='${wl}-bM:SRE'
11700
# It seems that -bexpall does not export symbols beginning with
11701
# underscore (_), so it is better to generate a list of symbols to export.
11702
always_export_symbols_CXX=yes
11703
if test "$aix_use_runtimelinking" = yes; then
11704
# Warning - without using the other runtime loading flags (-brtl),
11705
# -berok will link without error, but may produce a broken library.
11706
allow_undefined_flag_CXX='-berok'
11707
# Determine the default libpath from the value encoded in an empty executable.
11708
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11709
/* end confdefs.h. */
11719
if ac_fn_cxx_try_link "$LINENO"; then :
11721
lt_aix_libpath_sed='
11722
/Import File Strings/,/^$/ {
11728
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11729
# Check for a 64-bit object if we didn't find anything.
11730
if test -z "$aix_libpath"; then
11731
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11734
rm -f core conftest.err conftest.$ac_objext \
11735
conftest$ac_exeext conftest.$ac_ext
11736
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11738
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11740
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"
11742
if test "$host_cpu" = ia64; then
11743
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11744
allow_undefined_flag_CXX="-z nodefs"
11745
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"
11747
# Determine the default libpath from the value encoded in an empty executable.
11748
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11749
/* end confdefs.h. */
11759
if ac_fn_cxx_try_link "$LINENO"; then :
11761
lt_aix_libpath_sed='
11762
/Import File Strings/,/^$/ {
11768
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11769
# Check for a 64-bit object if we didn't find anything.
11770
if test -z "$aix_libpath"; then
11771
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11774
rm -f core conftest.err conftest.$ac_objext \
11775
conftest$ac_exeext conftest.$ac_ext
11776
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11778
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11779
# Warning - without using the other run time loading flags,
11780
# -berok will link without error, but may produce a broken library.
11781
no_undefined_flag_CXX=' ${wl}-bernotok'
11782
allow_undefined_flag_CXX=' ${wl}-berok'
11783
# Exported symbols can be pulled into shared objects from archives
11784
whole_archive_flag_spec_CXX='$convenience'
11785
archive_cmds_need_lc_CXX=yes
11786
# This is similar to how AIX traditionally builds its shared libraries.
11787
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'
11793
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11794
allow_undefined_flag_CXX=unsupported
11795
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11796
# support --undefined. This deserves some investigation. FIXME
11797
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11804
case $cc_basename in
11806
# FIXME: insert proper C++ library support
11812
cygwin* | mingw* | pw32*)
11813
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11814
# as there is no search path for DLLs.
11815
hardcode_libdir_flag_spec_CXX='-L$libdir'
11816
allow_undefined_flag_CXX=unsupported
11817
always_export_symbols_CXX=no
11818
enable_shared_with_static_runtimes_CXX=yes
11820
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11821
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'
11822
# If the export-symbols file already is a .def file (1st line
11823
# is EXPORTS), use it as is; otherwise, prepend...
11824
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11825
cp $export_symbols $output_objdir/$soname.def;
11827
echo EXPORTS > $output_objdir/$soname.def;
11828
cat $export_symbols >> $output_objdir/$soname.def;
11830
$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'
11835
darwin* | rhapsody*)
11836
archive_cmds_need_lc_CXX=no
11837
hardcode_direct_CXX=no
11838
hardcode_automatic_CXX=yes
11839
hardcode_shlibpath_var_CXX=unsupported
11840
whole_archive_flag_spec_CXX=''
11841
link_all_deplibs_CXX=yes
11842
allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11843
if test "$GXX" = yes ; then
11844
output_verbose_link_cmd='echo'
11845
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}"
11846
module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11847
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}"
11848
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}"
11849
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11850
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}"
11851
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}"
11854
case $cc_basename in
11856
output_verbose_link_cmd='echo'
11857
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'
11858
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11859
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11860
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}'
11861
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}'
11871
case $cc_basename in
11873
# FIXME: insert proper C++ library support
11877
# Green Hills C++ Compiler
11878
# FIXME: insert proper C++ library support
11882
# FIXME: insert proper C++ library support
11888
# C++ shared libraries reported to be fairly broken before switch to ELF
11892
archive_cmds_need_lc_CXX=no
11894
freebsd* | dragonfly*)
11895
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11902
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11903
hardcode_libdir_separator_CXX=:
11904
export_dynamic_flag_spec_CXX='${wl}-E'
11905
hardcode_direct_CXX=yes
11906
hardcode_minus_L_CXX=yes # Not in the search PATH,
11907
# but as the default
11908
# location of the library.
11910
case $cc_basename in
11912
# FIXME: insert proper C++ library support
11916
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'
11917
# Commands to make compiler produce verbose output that lists
11918
# what "hidden" libraries, object files and flags are used when
11919
# linking a shared library.
11921
# There doesn't appear to be a way to prevent this compiler from
11922
# explicitly linking system object files so we need to strip them
11923
# from the output so that they don't get included in the library
11925
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'
11928
if test "$GXX" = yes; then
11929
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'
11931
# FIXME: insert proper C++ library support
11938
if test $with_gnu_ld = no; then
11939
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11940
hardcode_libdir_separator_CXX=:
11945
export_dynamic_flag_spec_CXX='${wl}-E'
11951
hardcode_direct_CXX=no
11952
hardcode_shlibpath_var_CXX=no
11955
hardcode_direct_CXX=yes
11956
hardcode_minus_L_CXX=yes # Not in the search PATH,
11957
# but as the default
11958
# location of the library.
11962
case $cc_basename in
11964
# FIXME: insert proper C++ library support
11970
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11973
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11976
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11979
# Commands to make compiler produce verbose output that lists
11980
# what "hidden" libraries, object files and flags are used when
11981
# linking a shared library.
11983
# There doesn't appear to be a way to prevent this compiler from
11984
# explicitly linking system object files so we need to strip them
11985
# from the output so that they don't get included in the library
11987
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'
11990
if test "$GXX" = yes; then
11991
if test $with_gnu_ld = no; then
11994
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11997
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12000
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'
12005
# FIXME: insert proper C++ library support
12012
hardcode_direct_CXX=no
12013
hardcode_shlibpath_var_CXX=no
12014
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12015
export_dynamic_flag_spec_CXX='${wl}-E'
12016
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12017
# Instead, shared libraries are loaded at an image base (0x10000000 by
12018
# default) and relocated if they conflict, which is a slow very memory
12019
# consuming and fragmenting process. To avoid this, we pick a random,
12020
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12021
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
12022
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'
12023
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'
12026
case $cc_basename in
12029
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'
12031
# Archives containing C++ object files must be created using
12032
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
12033
# necessary to make sure instantiated templates are included
12035
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12038
if test "$GXX" = yes; then
12039
if test "$with_gnu_ld" = no; then
12040
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'
12042
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'
12045
link_all_deplibs_CXX=yes
12048
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12049
hardcode_libdir_separator_CXX=:
12051
linux* | k*bsd*-gnu)
12052
case $cc_basename in
12054
# Kuck and Associates, Inc. (KAI) C++ Compiler
12056
# KCC will only create a shared library if the output file
12057
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12058
# to its proper name (with version) after linking.
12059
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'
12060
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'
12061
# Commands to make compiler produce verbose output that lists
12062
# what "hidden" libraries, object files and flags are used when
12063
# linking a shared library.
12065
# There doesn't appear to be a way to prevent this compiler from
12066
# explicitly linking system object files so we need to strip them
12067
# from the output so that they don't get included in the library
12069
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'
12071
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12072
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12074
# Archives containing C++ object files must be created using
12075
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12076
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12081
# version 8.0 and above of icpc choke on multiply defined symbols
12082
# if we add $predep_objects and $postdep_objects, however 7.1 and
12083
# earlier do not add the objects themselves.
12084
case `$CC -V 2>&1` in
12086
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12087
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'
12089
*) # Version 8.0 or newer
12092
ia64*) tmp_idyn=' -i_dynamic';;
12094
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12095
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'
12098
archive_cmds_need_lc_CXX=no
12099
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12100
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12101
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12104
# Portland Group C++ compiler
12105
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12106
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'
12108
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12109
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12110
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'
12114
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12115
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'
12117
runpath_var=LD_RUN_PATH
12118
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12119
hardcode_libdir_separator_CXX=:
12121
# Commands to make compiler produce verbose output that lists
12122
# what "hidden" libraries, object files and flags are used when
12123
# linking a shared library.
12125
# There doesn't appear to be a way to prevent this compiler from
12126
# explicitly linking system object files so we need to strip them
12127
# from the output so that they don't get included in the library
12129
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'
12132
case `$CC -V 2>&1 | sed 5q` in
12135
no_undefined_flag_CXX=' -zdefs'
12136
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12137
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'
12138
hardcode_libdir_flag_spec_CXX='-R$libdir'
12139
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'
12141
# Not sure whether something based on
12142
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12144
output_verbose_link_cmd='echo'
12146
# Archives containing C++ object files must be created using
12147
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12148
# necessary to make sure instantiated templates are included
12150
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12157
# FIXME: insert proper C++ library support
12161
# FIXME: insert proper C++ library support
12165
case $cc_basename in
12167
# FIXME: insert proper C++ library support
12171
# FIXME: insert proper C++ library support
12177
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12178
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12180
hardcode_libdir_flag_spec_CXX='-R$libdir'
12181
hardcode_direct_CXX=yes
12182
hardcode_shlibpath_var_CXX=no
12184
# Workaround some broken pre-1.5 toolchains
12185
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12188
# C++ shared libraries are fairly broken
12192
if test -f /usr/libexec/ld.so; then
12193
hardcode_direct_CXX=yes
12194
hardcode_shlibpath_var_CXX=no
12195
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12196
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12197
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12198
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12199
export_dynamic_flag_spec_CXX='${wl}-E'
12200
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12202
output_verbose_link_cmd='echo'
12208
case $cc_basename in
12210
# Kuck and Associates, Inc. (KAI) C++ Compiler
12212
# KCC will only create a shared library if the output file
12213
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12214
# to its proper name (with version) after linking.
12215
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'
12217
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12218
hardcode_libdir_separator_CXX=:
12220
# Archives containing C++ object files must be created using
12221
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12222
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12226
# Rational C++ 2.4.1
12227
# FIXME: insert proper C++ library support
12231
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12232
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'
12234
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12235
hardcode_libdir_separator_CXX=:
12237
# Commands to make compiler produce verbose output that lists
12238
# what "hidden" libraries, object files and flags are used when
12239
# linking a shared library.
12241
# There doesn't appear to be a way to prevent this compiler from
12242
# explicitly linking system object files so we need to strip them
12243
# from the output so that they don't get included in the library
12245
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'
12248
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12249
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12250
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'
12252
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12253
hardcode_libdir_separator_CXX=:
12255
# Commands to make compiler produce verbose output that lists
12256
# what "hidden" libraries, object files and flags are used when
12257
# linking a shared library.
12258
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12261
# FIXME: insert proper C++ library support
12268
case $cc_basename in
12270
# Kuck and Associates, Inc. (KAI) C++ Compiler
12272
# KCC will only create a shared library if the output file
12273
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12274
# to its proper name (with version) after linking.
12275
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'
12277
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12278
hardcode_libdir_separator_CXX=:
12280
# Archives containing C++ object files must be created using
12281
# the KAI C++ compiler.
12282
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12285
# Rational C++ 2.4.1
12286
# FIXME: insert proper C++ library support
12290
allow_undefined_flag_CXX=' -expect_unresolved \*'
12291
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'
12292
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12293
echo "-hidden">> $lib.exp~
12294
$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~
12297
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12298
hardcode_libdir_separator_CXX=:
12300
# Commands to make compiler produce verbose output that lists
12301
# what "hidden" libraries, object files and flags are used when
12302
# linking a shared library.
12304
# There doesn't appear to be a way to prevent this compiler from
12305
# explicitly linking system object files so we need to strip them
12306
# from the output so that they don't get included in the library
12308
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'
12311
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12312
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12313
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'
12315
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12316
hardcode_libdir_separator_CXX=:
12318
# Commands to make compiler produce verbose output that lists
12319
# what "hidden" libraries, object files and flags are used when
12320
# linking a shared library.
12321
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12324
# FIXME: insert proper C++ library support
12331
# FIXME: insert proper C++ library support
12335
case $cc_basename in
12338
# FIXME: insert proper C++ library support
12343
# FIXME: insert proper C++ library support
12347
# FIXME: insert proper C++ library support
12353
case $cc_basename in
12355
# Sun C++ 4.2, 5.x and Centerline C++
12356
archive_cmds_need_lc_CXX=yes
12357
no_undefined_flag_CXX=' -zdefs'
12358
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12359
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12360
$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'
12362
hardcode_libdir_flag_spec_CXX='-R$libdir'
12363
hardcode_shlibpath_var_CXX=no
12365
solaris2.[0-5] | solaris2.[0-5].*) ;;
12367
# The compiler driver will combine and reorder linker options,
12368
# but understands `-z linker_flag'.
12369
# Supported since Solaris 2.6 (maybe 2.5.1?)
12370
whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12373
link_all_deplibs_CXX=yes
12375
output_verbose_link_cmd='echo'
12377
# Archives containing C++ object files must be created using
12378
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12379
# necessary to make sure instantiated templates are included
12381
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12384
# Green Hills C++ Compiler
12385
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12387
# The C++ compiler must be used to create the archive.
12388
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12391
# GNU C++ compiler with Solaris linker
12392
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12393
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12394
if $CC --version | grep -v '^2\.7' > /dev/null; then
12395
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12396
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12397
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12399
# Commands to make compiler produce verbose output that lists
12400
# what "hidden" libraries, object files and flags are used when
12401
# linking a shared library.
12402
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12404
# g++ 2.7 appears to require `-G' NOT `-shared' on this
12406
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12407
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12408
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12410
# Commands to make compiler produce verbose output that lists
12411
# what "hidden" libraries, object files and flags are used when
12412
# linking a shared library.
12413
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12416
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12418
solaris2.[0-5] | solaris2.[0-5].*) ;;
12420
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12427
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12428
no_undefined_flag_CXX='${wl}-z,text'
12429
archive_cmds_need_lc_CXX=no
12430
hardcode_shlibpath_var_CXX=no
12431
runpath_var='LD_RUN_PATH'
12433
case $cc_basename in
12435
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12436
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12439
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12440
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12444
sysv5* | sco3.2v5* | sco5v6*)
12445
# Note: We can NOT use -z defs as we might desire, because we do not
12446
# link with -lc, and that would cause any symbols used from libc to
12447
# always be unresolved, which means just about no library would
12448
# ever link correctly. If we're not using GNU ld we use -z text
12449
# though, which does catch some bad symbols but isn't as heavy-handed
12451
# For security reasons, it is highly recommended that you always
12452
# use absolute paths for naming shared libraries, and exclude the
12453
# DT_RUNPATH tag from executables and libraries. But doing so
12454
# requires that you compile everything twice, which is a pain.
12455
# So that behaviour is only enabled if SCOABSPATH is set to a
12456
# non-empty value in the environment. Most likely only useful for
12457
# creating official distributions of packages.
12458
# This is a hack until libtool officially supports absolute path
12459
# names for shared libraries.
12460
no_undefined_flag_CXX='${wl}-z,text'
12461
allow_undefined_flag_CXX='${wl}-z,nodefs'
12462
archive_cmds_need_lc_CXX=no
12463
hardcode_shlibpath_var_CXX=no
12464
hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12465
hardcode_libdir_separator_CXX=':'
12466
link_all_deplibs_CXX=yes
12467
export_dynamic_flag_spec_CXX='${wl}-Bexport'
12468
runpath_var='LD_RUN_PATH'
12470
case $cc_basename in
12472
archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12473
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12476
archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12477
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12482
case $cc_basename in
12484
# NonStop-UX NCC 3.20
12485
# FIXME: insert proper C++ library support
12489
# FIXME: insert proper C++ library support
12495
# FIXME: insert proper C++ library support
12499
# FIXME: insert proper C++ library support
12503
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12504
$as_echo "$ld_shlibs_CXX" >&6; }
12505
test "$ld_shlibs_CXX" = no && can_build_shared=no
12510
cat > conftest.$ac_ext <<EOF
12514
Foo (void) { a = 0; }
12520
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12521
(eval $ac_compile) 2>&5
12523
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12524
test $ac_status = 0; }; then
12525
# Parse the compiler output and extract the necessary
12526
# objects, libraries and library flags.
12528
# Sentinel used to keep track of whether or not we are before
12529
# the conftest object file.
12530
pre_test_object_deps_done=no
12532
# The `*' in the case matches for architectures that use `case' in
12533
# $output_verbose_cmd can trigger glob expansion during the loop
12534
# eval without this substitution.
12535
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12537
for p in `eval $output_verbose_link_cmd`; do
12541
# Some compilers place space between "-{L,R}" and the path.
12542
# Remove the space.
12543
if test $p = "-L" \
12544
|| test $p = "-R"; then
12551
if test "$pre_test_object_deps_done" = no; then
12554
# Internal compiler library paths should come after those
12555
# provided the user. The postdeps already come after the
12556
# user supplied libs so there is no need to process them.
12557
if test -z "$compiler_lib_search_path_CXX"; then
12558
compiler_lib_search_path_CXX="${prev}${p}"
12560
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12563
# The "-l" case would never come before the object being
12564
# linked, so don't bother handling this case.
12567
if test -z "$postdeps_CXX"; then
12568
postdeps_CXX="${prev}${p}"
12570
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12576
# This assumes that the test object file only shows up
12577
# once in the compiler output.
12578
if test "$p" = "conftest.$objext"; then
12579
pre_test_object_deps_done=yes
12583
if test "$pre_test_object_deps_done" = no; then
12584
if test -z "$predep_objects_CXX"; then
12585
predep_objects_CXX="$p"
12587
predep_objects_CXX="$predep_objects_CXX $p"
12590
if test -z "$postdep_objects_CXX"; then
12591
postdep_objects_CXX="$p"
12593
postdep_objects_CXX="$postdep_objects_CXX $p"
12598
*) ;; # Ignore the rest.
12606
echo "libtool.m4: error: problem compiling CXX test program"
12609
$rm -f confest.$objext
12611
compiler_lib_search_dirs_CXX=
12612
if test -n "$compiler_lib_search_path_CXX"; then
12613
compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12616
# PORTME: override above test on systems where it is broken
12619
# Interix 3.5 installs completely hosed .la files for C++, so rather than
12620
# hack all around it, let's just trust "g++" to DTRT.
12621
predep_objects_CXX=
12622
postdep_objects_CXX=
12627
case `$CC -V 2>&1 | sed 5q` in
12631
# The more standards-conforming stlport4 library is
12632
# incompatible with the Cstd library. Avoid specifying
12633
# it if it's in CXXFLAGS. Ignore libCrun as
12634
# -library=stlport4 depends on it.
12635
case " $CXX $CXXFLAGS " in
12636
*" -library=stlport4 "*)
12637
solaris_use_stlport4=yes
12640
if test "$solaris_use_stlport4" != yes; then
12641
postdeps_CXX='-library=Cstd -library=Crun'
12648
case $cc_basename in
12650
# The more standards-conforming stlport4 library is
12651
# incompatible with the Cstd library. Avoid specifying
12652
# it if it's in CXXFLAGS. Ignore libCrun as
12653
# -library=stlport4 depends on it.
12654
case " $CXX $CXXFLAGS " in
12655
*" -library=stlport4 "*)
12656
solaris_use_stlport4=yes
12660
# Adding this requires a known-good setup of shared libraries for
12661
# Sun compiler versions before 5.6, else PIC objects from an old
12662
# archive will be linked into the output, leading to subtle bugs.
12663
if test "$solaris_use_stlport4" != yes; then
12664
postdeps_CXX='-library=Cstd -library=Crun'
12671
case " $postdeps_CXX " in
12672
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12675
lt_prog_compiler_wl_CXX=
12676
lt_prog_compiler_pic_CXX=
12677
lt_prog_compiler_static_CXX=
12679
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12680
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12682
# C++ specific cases for pic, static, wl, etc.
12683
if test "$GXX" = yes; then
12684
lt_prog_compiler_wl_CXX='-Wl,'
12685
lt_prog_compiler_static_CXX='-static'
12689
# All AIX code is PIC.
12690
if test "$host_cpu" = ia64; then
12691
# AIX 5 now supports IA64 processor
12692
lt_prog_compiler_static_CXX='-Bstatic'
12696
# FIXME: we need at least 68020 code to build shared libraries, but
12697
# adding the `-m68020' flag to GCC prevents building anything better,
12699
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12701
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12702
# PIC is the default for these OSes.
12704
mingw* | cygwin* | os2* | pw32*)
12705
# This hack is so that the source file can tell whether it is being
12706
# built for inclusion in a dll (and should export symbols for example).
12707
# Although the cygwin gcc ignores -fPIC, still need this for old-style
12708
# (--disable-auto-import) libraries
12709
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12711
darwin* | rhapsody*)
12712
# PIC is the default on this platform
12713
# Common symbols not allowed in MH_DYLIB files
12714
lt_prog_compiler_pic_CXX='-fno-common'
12717
# DJGPP does not support shared libraries at all
12718
lt_prog_compiler_pic_CXX=
12721
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
12722
# Instead, we relocate shared libraries at runtime.
12725
if test -d /usr/nec; then
12726
lt_prog_compiler_pic_CXX=-Kconform_pic
12730
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12731
# not for PA HP-UX.
12736
lt_prog_compiler_pic_CXX='-fPIC'
12741
lt_prog_compiler_pic_CXX='-fPIC'
12747
# All AIX code is PIC.
12748
if test "$host_cpu" = ia64; then
12749
# AIX 5 now supports IA64 processor
12750
lt_prog_compiler_static_CXX='-Bstatic'
12752
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12756
case $cc_basename in
12758
# Green Hills C++ Compiler
12759
# _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"
12764
# PIC is the default on this platform
12765
# Common symbols not allowed in MH_DYLIB files
12766
case $cc_basename in
12768
lt_prog_compiler_pic_CXX='-qnocommon'
12769
lt_prog_compiler_wl_CXX='-Wl,'
12774
case $cc_basename in
12776
lt_prog_compiler_pic_CXX='-KPIC'
12779
# Green Hills C++ Compiler
12780
lt_prog_compiler_pic_CXX='-pic'
12786
freebsd* | dragonfly*)
12787
# FreeBSD uses GNU C++
12789
hpux9* | hpux10* | hpux11*)
12790
case $cc_basename in
12792
lt_prog_compiler_wl_CXX='-Wl,'
12793
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12794
if test "$host_cpu" != ia64; then
12795
lt_prog_compiler_pic_CXX='+Z'
12799
lt_prog_compiler_wl_CXX='-Wl,'
12800
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12806
lt_prog_compiler_pic_CXX='+Z'
12815
# This is c89, which is MS Visual C++ (no shared libs)
12816
# Anyone wants to do a port?
12818
irix5* | irix6* | nonstopux*)
12819
case $cc_basename in
12821
lt_prog_compiler_wl_CXX='-Wl,'
12822
lt_prog_compiler_static_CXX='-non_shared'
12823
# CC pic flag -KPIC is the default.
12829
linux* | k*bsd*-gnu)
12830
case $cc_basename in
12833
lt_prog_compiler_wl_CXX='--backend -Wl,'
12834
lt_prog_compiler_pic_CXX='-fPIC'
12838
lt_prog_compiler_wl_CXX='-Wl,'
12839
lt_prog_compiler_pic_CXX='-KPIC'
12840
lt_prog_compiler_static_CXX='-static'
12843
# Portland Group C++ compiler.
12844
lt_prog_compiler_wl_CXX='-Wl,'
12845
lt_prog_compiler_pic_CXX='-fpic'
12846
lt_prog_compiler_static_CXX='-Bstatic'
12850
# Make sure the PIC flag is empty. It appears that all Alpha
12851
# Linux and Compaq Tru64 Unix objects are PIC.
12852
lt_prog_compiler_pic_CXX=
12853
lt_prog_compiler_static_CXX='-non_shared'
12856
case `$CC -V 2>&1 | sed 5q` in
12859
lt_prog_compiler_pic_CXX='-KPIC'
12860
lt_prog_compiler_static_CXX='-Bstatic'
12861
lt_prog_compiler_wl_CXX='-Qoption ld '
12872
case $cc_basename in
12874
lt_prog_compiler_pic_CXX='-W c,exportall'
12882
osf3* | osf4* | osf5*)
12883
case $cc_basename in
12885
lt_prog_compiler_wl_CXX='--backend -Wl,'
12888
# Rational C++ 2.4.1
12889
lt_prog_compiler_pic_CXX='-pic'
12892
# Digital/Compaq C++
12893
lt_prog_compiler_wl_CXX='-Wl,'
12894
# Make sure the PIC flag is empty. It appears that all Alpha
12895
# Linux and Compaq Tru64 Unix objects are PIC.
12896
lt_prog_compiler_pic_CXX=
12897
lt_prog_compiler_static_CXX='-non_shared'
12906
case $cc_basename in
12908
# Sun C++ 4.2, 5.x and Centerline C++
12909
lt_prog_compiler_pic_CXX='-KPIC'
12910
lt_prog_compiler_static_CXX='-Bstatic'
12911
lt_prog_compiler_wl_CXX='-Qoption ld '
12914
# Green Hills C++ Compiler
12915
lt_prog_compiler_pic_CXX='-PIC'
12922
case $cc_basename in
12925
lt_prog_compiler_pic_CXX='-pic'
12926
lt_prog_compiler_static_CXX='-Bstatic'
12930
lt_prog_compiler_pic_CXX='-pic'
12937
case $cc_basename in
12939
# NonStop-UX NCC 3.20
12940
lt_prog_compiler_pic_CXX='-KPIC'
12946
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12947
case $cc_basename in
12949
lt_prog_compiler_wl_CXX='-Wl,'
12950
lt_prog_compiler_pic_CXX='-KPIC'
12951
lt_prog_compiler_static_CXX='-Bstatic'
12958
lt_prog_compiler_can_build_shared_CXX=no
12963
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
12964
$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12967
# Check to make sure the PIC flag actually works.
12969
if test -n "$lt_prog_compiler_pic_CXX"; then
12971
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12972
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12973
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
12974
$as_echo_n "(cached) " >&6
12976
lt_cv_prog_compiler_pic_works_CXX=no
12977
ac_outfile=conftest.$ac_objext
12978
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12979
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12980
# Insert the option either (1) after the last *FLAGS variable, or
12981
# (2) before a word containing "conftest.", or (3) at the end.
12982
# Note that $ac_compile itself does not contain backslashes and begins
12983
# with a dollar sign (not a hyphen), so the echo should work correctly.
12984
# The option is referenced via a variable to avoid confusing sed.
12985
lt_compile=`echo "$ac_compile" | $SED \
12986
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12987
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12988
-e 's:$: $lt_compiler_flag:'`
12989
(eval echo "\"\$as_me:12989: $lt_compile\"" >&5)
12990
(eval "$lt_compile" 2>conftest.err)
12992
cat conftest.err >&5
12993
echo "$as_me:12993: \$? = $ac_status" >&5
12994
if (exit $ac_status) && test -s "$ac_outfile"; then
12995
# The compiler can only warn and ignore the option if not recognized
12996
# So say no if there are warnings other than the usual output.
12997
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12998
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12999
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13000
lt_cv_prog_compiler_pic_works_CXX=yes
13006
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13007
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13009
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13010
case $lt_prog_compiler_pic_CXX in
13012
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13015
lt_prog_compiler_pic_CXX=
13016
lt_prog_compiler_can_build_shared_CXX=no
13021
# For platforms which do not support PIC, -DPIC is meaningless:
13023
lt_prog_compiler_pic_CXX=
13026
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13031
# Check to make sure the static flag actually works.
13033
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13034
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13035
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13036
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13037
$as_echo_n "(cached) " >&6
13039
lt_cv_prog_compiler_static_works_CXX=no
13040
save_LDFLAGS="$LDFLAGS"
13041
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13042
echo "$lt_simple_link_test_code" > conftest.$ac_ext
13043
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13044
# The linker can only warn and ignore the option if not recognized
13045
# So say no if there are warnings
13046
if test -s conftest.err; then
13047
# Append any errors to the config.log.
13048
cat conftest.err 1>&5
13049
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13050
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13051
if diff conftest.exp conftest.er2 >/dev/null; then
13052
lt_cv_prog_compiler_static_works_CXX=yes
13055
lt_cv_prog_compiler_static_works_CXX=yes
13059
LDFLAGS="$save_LDFLAGS"
13062
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13063
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13065
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13068
lt_prog_compiler_static_CXX=
13072
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13073
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13074
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13075
$as_echo_n "(cached) " >&6
13077
lt_cv_prog_compiler_c_o_CXX=no
13078
$rm -r conftest 2>/dev/null
13082
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13084
lt_compiler_flag="-o out/conftest2.$ac_objext"
13085
# Insert the option either (1) after the last *FLAGS variable, or
13086
# (2) before a word containing "conftest.", or (3) at the end.
13087
# Note that $ac_compile itself does not contain backslashes and begins
13088
# with a dollar sign (not a hyphen), so the echo should work correctly.
13089
lt_compile=`echo "$ac_compile" | $SED \
13090
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13091
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13092
-e 's:$: $lt_compiler_flag:'`
13093
(eval echo "\"\$as_me:13093: $lt_compile\"" >&5)
13094
(eval "$lt_compile" 2>out/conftest.err)
13096
cat out/conftest.err >&5
13097
echo "$as_me:13097: \$? = $ac_status" >&5
13098
if (exit $ac_status) && test -s out/conftest2.$ac_objext
13100
# The compiler can only warn and ignore the option if not recognized
13101
# So say no if there are warnings
13102
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13103
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13104
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13105
lt_cv_prog_compiler_c_o_CXX=yes
13110
# SGI C++ compiler will create directory out/ii_files/ for
13111
# template instantiation
13112
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13113
$rm out/* && rmdir out
13119
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13120
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13123
hard_links="nottested"
13124
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13125
# do not overwrite the value of need_locks provided by the user
13126
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13127
$as_echo_n "checking if we can lock with hard links... " >&6; }
13130
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13132
ln conftest.a conftest.b 2>&5 || hard_links=no
13133
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13134
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13135
$as_echo "$hard_links" >&6; }
13136
if test "$hard_links" = no; then
13137
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13138
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13145
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13146
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13148
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13151
# If we're using GNU nm, then we don't want the "-C" option.
13152
# -C means demangle to AIX nm, but means don't demangle with GNU nm
13153
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13154
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'
13156
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'
13160
export_symbols_cmds_CXX="$ltdll_cmds"
13163
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'
13166
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13169
exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13171
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13172
$as_echo "$ld_shlibs_CXX" >&6; }
13173
test "$ld_shlibs_CXX" = no && can_build_shared=no
13176
# Do we need to explicitly link libc?
13178
case "x$archive_cmds_need_lc_CXX" in
13180
# Assume -lc should be added
13181
archive_cmds_need_lc_CXX=yes
13183
if test "$enable_shared" = yes && test "$GCC" = yes; then
13184
case $archive_cmds_CXX in
13186
# FIXME: we may have to deal with multi-command sequences.
13189
# Test whether the compiler implicitly links with -lc since on some
13190
# systems, -lgcc has to come before -lc. If gcc already passes -lc
13191
# to ld, don't add -lc before -lgcc.
13192
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13193
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13195
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13197
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13198
(eval $ac_compile) 2>&5
13200
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13201
test $ac_status = 0; } 2>conftest.err; then
13204
libobjs=conftest.$ac_objext
13206
wl=$lt_prog_compiler_wl_CXX
13207
pic_flag=$lt_prog_compiler_pic_CXX
13213
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13214
allow_undefined_flag_CXX=
13215
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13216
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13218
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13219
test $ac_status = 0; }
13221
archive_cmds_need_lc_CXX=no
13223
archive_cmds_need_lc_CXX=yes
13225
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13227
cat conftest.err 1>&5
13230
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
13231
$as_echo "$archive_cmds_need_lc_CXX" >&6; }
13238
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13239
$as_echo_n "checking dynamic linker characteristics... " >&6; }
13240
library_names_spec=
13241
libname_spec='lib$name'
13245
postuninstall_cmds=
13249
shlibpath_overrides_runpath=unknown
13251
dynamic_linker="$host_os ld.so"
13252
sys_lib_dlsearch_path_spec="/lib /usr/lib"
13254
need_lib_prefix=unknown
13255
hardcode_into_libs=no
13257
# when you set need_version to no, make sure it does not cause -set_version
13258
# flags to be left without arguments
13259
need_version=unknown
13264
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13265
shlibpath_var=LIBPATH
13267
# AIX 3 has no versioning support, so we append a major version to the name.
13268
soname_spec='${libname}${release}${shared_ext}$major'
13275
hardcode_into_libs=yes
13276
if test "$host_cpu" = ia64; then
13277
# AIX 5 supports IA64
13278
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13279
shlibpath_var=LD_LIBRARY_PATH
13281
# With GCC up to 2.95.x, collect2 would create an import file
13282
# for dependence libraries. The import file would start with
13283
# the line `#! .'. This would cause the generated library to
13284
# depend on `.', always an invalid library. This was fixed in
13285
# development snapshots of GCC prior to 3.0.
13287
aix4 | aix4.[01] | aix4.[01].*)
13288
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13290
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13293
can_build_shared=no
13297
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13298
# soname into executable. Probably we can add versioning support to
13299
# collect2, so additional links can be useful in future.
13300
if test "$aix_use_runtimelinking" = yes; then
13301
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
13302
# instead of lib<name>.a to let people know that these are not
13303
# typical AIX shared libraries.
13304
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13306
# We preserve .a as extension for shared libraries through AIX4.2
13307
# and later when we are not doing run time linking.
13308
library_names_spec='${libname}${release}.a $libname.a'
13309
soname_spec='${libname}${release}${shared_ext}$major'
13311
shlibpath_var=LIBPATH
13316
library_names_spec='$libname.ixlibrary $libname.a'
13317
# Create ${libname}_ixlibrary.a entries in /sys/libs.
13318
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'
13322
library_names_spec='${libname}${shared_ext}'
13323
dynamic_linker="$host_os ld.so"
13324
shlibpath_var=LIBRARY_PATH
13330
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13331
soname_spec='${libname}${release}${shared_ext}$major'
13332
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13333
shlibpath_var=LD_LIBRARY_PATH
13334
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13335
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13336
# the default ld.so.conf also contains /usr/contrib/lib and
13337
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13338
# libtool to hard-code these into programs
13341
cygwin* | mingw* | pw32*)
13342
version_type=windows
13347
case $GCC,$host_os in
13348
yes,cygwin* | yes,mingw* | yes,pw32*)
13349
library_names_spec='$libname.dll.a'
13350
# DLL is installed to $(libdir)/../bin by postinstall_cmds
13351
postinstall_cmds='base_file=`basename \${file}`~
13352
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13353
dldir=$destdir/`dirname \$dlpath`~
13354
test -d \$dldir || mkdir -p \$dldir~
13355
$install_prog $dir/$dlname \$dldir/$dlname~
13356
chmod a+x \$dldir/$dlname'
13357
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13358
dlpath=$dir/\$dldll~
13360
shlibpath_overrides_runpath=yes
13364
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
13365
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13366
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13369
# MinGW DLLs use traditional 'lib' prefix
13370
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13371
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13372
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13373
# It is most probably a Windows format PATH printed by
13374
# mingw gcc, but we are running on Cygwin. Gcc prints its search
13375
# path with ; separators, and with drive letters. We can handle the
13376
# drive letters (cygwin fileutils understands them), so leave them,
13377
# especially as we might pass files found there to a mingw objdump,
13378
# which wouldn't understand a cygwinified path. Ahh.
13379
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13381
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13385
# pw32 DLLs use 'pw' prefix rather than 'lib'
13386
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13392
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13395
dynamic_linker='Win32 ld.exe'
13396
# FIXME: first we should search . and the directory the executable is in
13400
darwin* | rhapsody*)
13401
dynamic_linker="$host_os dyld"
13402
version_type=darwin
13405
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13406
soname_spec='${libname}${release}${major}$shared_ext'
13407
shlibpath_overrides_runpath=yes
13408
shlibpath_var=DYLD_LIBRARY_PATH
13409
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13411
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13418
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13419
soname_spec='${libname}${release}${shared_ext}$major'
13420
shlibpath_var=LD_LIBRARY_PATH
13427
freebsd* | dragonfly*)
13428
# DragonFly does not have aout. When/if they implement a new
13429
# versioning mechanism, adjust this.
13430
if test -x /usr/bin/objformat; then
13431
objformat=`/usr/bin/objformat`
13434
freebsd[123]*) objformat=aout ;;
13435
*) objformat=elf ;;
13438
version_type=freebsd-$objformat
13439
case $version_type in
13441
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13446
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13450
shlibpath_var=LD_LIBRARY_PATH
13453
shlibpath_overrides_runpath=yes
13455
freebsd3.[01]* | freebsdelf3.[01]*)
13456
shlibpath_overrides_runpath=yes
13457
hardcode_into_libs=yes
13459
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13460
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13461
shlibpath_overrides_runpath=no
13462
hardcode_into_libs=yes
13464
*) # from 4.6 on, and DragonFly
13465
shlibpath_overrides_runpath=yes
13466
hardcode_into_libs=yes
13475
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13476
soname_spec='${libname}${release}${shared_ext}$major'
13477
shlibpath_var=LD_LIBRARY_PATH
13478
hardcode_into_libs=yes
13481
hpux9* | hpux10* | hpux11*)
13482
# Give a soname corresponding to the major version so that dld.sl refuses to
13483
# link against other versions.
13490
hardcode_into_libs=yes
13491
dynamic_linker="$host_os dld.so"
13492
shlibpath_var=LD_LIBRARY_PATH
13493
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13494
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13495
soname_spec='${libname}${release}${shared_ext}$major'
13496
if test "X$HPUX_IA64_MODE" = X32; then
13497
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13499
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13501
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13505
hardcode_into_libs=yes
13506
dynamic_linker="$host_os dld.sl"
13507
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13508
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13509
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13510
soname_spec='${libname}${release}${shared_ext}$major'
13511
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13512
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13516
dynamic_linker="$host_os dld.sl"
13517
shlibpath_var=SHLIB_PATH
13518
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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'
13523
# HP-UX runs *really* slowly unless shared libraries are mode 555.
13524
postinstall_cmds='chmod 555 $lib'
13531
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13532
soname_spec='${libname}${release}${shared_ext}$major'
13533
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13534
shlibpath_var=LD_LIBRARY_PATH
13535
shlibpath_overrides_runpath=no
13536
hardcode_into_libs=yes
13539
irix5* | irix6* | nonstopux*)
13541
nonstopux*) version_type=nonstopux ;;
13543
if test "$lt_cv_prog_gnu_ld" = yes; then
13551
soname_spec='${libname}${release}${shared_ext}$major'
13552
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13554
irix5* | nonstopux*)
13555
libsuff= shlibsuff=
13558
case $LD in # libtool.m4 will add one of these switches to LD
13559
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13560
libsuff= shlibsuff= libmagic=32-bit;;
13561
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13562
libsuff=32 shlibsuff=N32 libmagic=N32;;
13563
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13564
libsuff=64 shlibsuff=64 libmagic=64-bit;;
13565
*) libsuff= shlibsuff= libmagic=never-match;;
13569
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13570
shlibpath_overrides_runpath=no
13571
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13572
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13573
hardcode_into_libs=yes
13576
# No shared lib support for Linux oldld, aout, or coff.
13577
linux*oldld* | linux*aout* | linux*coff*)
13581
# This must be Linux ELF.
13582
linux* | k*bsd*-gnu)
13586
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13587
soname_spec='${libname}${release}${shared_ext}$major'
13588
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13589
shlibpath_var=LD_LIBRARY_PATH
13590
shlibpath_overrides_runpath=no
13591
# This implies no fast_install, which is unacceptable.
13592
# Some rework will be needed to allow for fast_install
13593
# before this can be enabled.
13594
hardcode_into_libs=yes
13596
# Append ld.so.conf contents to the search path
13597
if test -f /etc/ld.so.conf; then
13598
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' ' '`
13599
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13602
# We used to test for /lib/ld.so.1 and disable shared libraries on
13603
# powerpc, because MkLinux only supported shared libraries with the
13604
# GNU dynamic linker. Since this was broken with cross compilers,
13605
# most powerpc-linux boxes support dynamic linking these days and
13606
# people can always --disable-shared, the test was removed, and we
13607
# assume the GNU/Linux dynamic linker is in use.
13608
dynamic_linker='GNU/Linux ld.so'
13615
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13616
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13617
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13618
dynamic_linker='NetBSD (a.out) ld.so'
13620
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13621
soname_spec='${libname}${release}${shared_ext}$major'
13622
dynamic_linker='NetBSD ld.elf_so'
13624
shlibpath_var=LD_LIBRARY_PATH
13625
shlibpath_overrides_runpath=yes
13626
hardcode_into_libs=yes
13631
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13632
shlibpath_var=LD_LIBRARY_PATH
13633
shlibpath_overrides_runpath=yes
13640
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13641
soname_spec='${libname}${release}${shared_ext}$major'
13642
shlibpath_var=LD_LIBRARY_PATH
13643
shlibpath_overrides_runpath=yes
13648
sys_lib_dlsearch_path_spec="/usr/lib"
13650
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13652
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13653
*) need_version=no ;;
13655
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13656
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13657
shlibpath_var=LD_LIBRARY_PATH
13658
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13660
openbsd2.[89] | openbsd2.[89].*)
13661
shlibpath_overrides_runpath=no
13664
shlibpath_overrides_runpath=yes
13668
shlibpath_overrides_runpath=yes
13673
libname_spec='$name'
13676
library_names_spec='$libname${shared_ext} $libname.a'
13677
dynamic_linker='OS/2 ld.exe'
13678
shlibpath_var=LIBPATH
13681
osf3* | osf4* | osf5*)
13685
soname_spec='${libname}${release}${shared_ext}$major'
13686
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13687
shlibpath_var=LD_LIBRARY_PATH
13688
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13689
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13700
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13701
soname_spec='${libname}${release}${shared_ext}$major'
13702
shlibpath_var=LD_LIBRARY_PATH
13703
shlibpath_overrides_runpath=yes
13704
hardcode_into_libs=yes
13705
# ldd complains unless libraries are executable
13706
postinstall_cmds='chmod +x $lib'
13711
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13712
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13713
shlibpath_var=LD_LIBRARY_PATH
13714
shlibpath_overrides_runpath=yes
13715
if test "$with_gnu_ld" = yes; then
13723
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13724
soname_spec='${libname}${release}${shared_ext}$major'
13725
shlibpath_var=LD_LIBRARY_PATH
13726
case $host_vendor in
13728
shlibpath_overrides_runpath=no
13730
export_dynamic_flag_spec='${wl}-Blargedynsym'
13731
runpath_var=LD_RUN_PATH
13739
shlibpath_overrides_runpath=no
13740
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13746
if test -d /usr/nec ;then
13748
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13749
soname_spec='$libname${shared_ext}.$major'
13750
shlibpath_var=LD_LIBRARY_PATH
13754
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13755
version_type=freebsd-elf
13758
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13759
soname_spec='${libname}${release}${shared_ext}$major'
13760
shlibpath_var=LD_LIBRARY_PATH
13761
hardcode_into_libs=yes
13762
if test "$with_gnu_ld" = yes; then
13763
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13764
shlibpath_overrides_runpath=no
13766
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13767
shlibpath_overrides_runpath=yes
13770
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13774
sys_lib_dlsearch_path_spec='/usr/lib'
13779
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13780
soname_spec='${libname}${release}${shared_ext}$major'
13781
shlibpath_var=LD_LIBRARY_PATH
13788
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13789
$as_echo "$dynamic_linker" >&6; }
13790
test "$dynamic_linker" = no && can_build_shared=no
13792
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then :
13793
$as_echo_n "(cached) " >&6
13795
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13798
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13799
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then :
13800
$as_echo_n "(cached) " >&6
13802
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13805
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13807
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13808
if test "$GCC" = yes; then
13809
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13812
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13813
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13814
hardcode_action_CXX=
13815
if test -n "$hardcode_libdir_flag_spec_CXX" || \
13816
test -n "$runpath_var_CXX" || \
13817
test "X$hardcode_automatic_CXX" = "Xyes" ; then
13819
# We can hardcode non-existant directories.
13820
if test "$hardcode_direct_CXX" != no &&
13821
# If the only mechanism to avoid hardcoding is shlibpath_var, we
13822
# have to relink, otherwise we might link with an installed library
13823
# when we should be linking with a yet-to-be-installed one
13824
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13825
test "$hardcode_minus_L_CXX" != no; then
13826
# Linking always hardcodes the temporary library directory.
13827
hardcode_action_CXX=relink
13829
# We can link without hardcoding, and we can hardcode nonexisting dirs.
13830
hardcode_action_CXX=immediate
13833
# We cannot hardcode anything, or else we can only hardcode existing
13835
hardcode_action_CXX=unsupported
13837
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
13838
$as_echo "$hardcode_action_CXX" >&6; }
13840
if test "$hardcode_action_CXX" = relink; then
13841
# Fast installation is not supported
13842
enable_fast_install=no
13843
elif test "$shlibpath_overrides_runpath" = yes ||
13844
test "$enable_shared" = no; then
13845
# Fast installation is not necessary
13846
enable_fast_install=needless
13850
# The else clause should only fire when bootstrapping the
13851
# libtool distribution, otherwise you forgot to ship ltmain.sh
13852
# with your package, and you will get complaints that there are
13853
# no rules to generate ltmain.sh.
13854
if test -f "$ltmain"; then
13855
# See if we are running on zsh, and set the options which allow our commands through
13856
# without removal of \ escapes.
13857
if test -n "${ZSH_VERSION+set}" ; then
13858
setopt NO_GLOB_SUBST
13860
# Now quote all the things that may contain metacharacters while being
13861
# careful not to overquote the AC_SUBSTed values. We take copies of the
13862
# variables and quote the copies for generation of the libtool script.
13863
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13865
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13866
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13867
deplibs_check_method reload_flag reload_cmds need_locks \
13868
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13869
lt_cv_sys_global_symbol_to_c_name_address \
13870
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13871
old_postinstall_cmds old_postuninstall_cmds \
13875
lt_prog_compiler_wl_CXX \
13876
lt_prog_compiler_pic_CXX \
13877
lt_prog_compiler_static_CXX \
13878
lt_prog_compiler_no_builtin_flag_CXX \
13879
export_dynamic_flag_spec_CXX \
13880
thread_safe_flag_spec_CXX \
13881
whole_archive_flag_spec_CXX \
13882
enable_shared_with_static_runtimes_CXX \
13883
old_archive_cmds_CXX \
13884
old_archive_from_new_cmds_CXX \
13885
predep_objects_CXX \
13886
postdep_objects_CXX \
13889
compiler_lib_search_path_CXX \
13890
compiler_lib_search_dirs_CXX \
13892
archive_expsym_cmds_CXX \
13893
postinstall_cmds_CXX \
13894
postuninstall_cmds_CXX \
13895
old_archive_from_expsyms_cmds_CXX \
13896
allow_undefined_flag_CXX \
13897
no_undefined_flag_CXX \
13898
export_symbols_cmds_CXX \
13899
hardcode_libdir_flag_spec_CXX \
13900
hardcode_libdir_flag_spec_ld_CXX \
13901
hardcode_libdir_separator_CXX \
13902
hardcode_automatic_CXX \
13904
module_expsym_cmds_CXX \
13905
lt_cv_prog_compiler_c_o_CXX \
13906
fix_srcfile_path_CXX \
13907
exclude_expsyms_CXX \
13908
include_expsyms_CXX; do
13911
old_archive_cmds_CXX | \
13912
old_archive_from_new_cmds_CXX | \
13913
archive_cmds_CXX | \
13914
archive_expsym_cmds_CXX | \
13915
module_cmds_CXX | \
13916
module_expsym_cmds_CXX | \
13917
old_archive_from_expsyms_cmds_CXX | \
13918
export_symbols_cmds_CXX | \
13919
extract_expsyms_cmds | reload_cmds | finish_cmds | \
13920
postinstall_cmds | postuninstall_cmds | \
13921
old_postinstall_cmds | old_postuninstall_cmds | \
13922
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13923
# Double-quote double-evaled strings.
13924
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13927
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13933
*'\$0 --fallback-echo"')
13934
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13940
cat <<__EOF__ >> "$cfgfile"
13941
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13943
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13945
# Shell to use when invoking shell scripts.
13948
# Whether or not to build shared libraries.
13949
build_libtool_libs=$enable_shared
13951
# Whether or not to build static libraries.
13952
build_old_libs=$enable_static
13954
# Whether or not to add -lc for building shared libraries.
13955
build_libtool_need_lc=$archive_cmds_need_lc_CXX
13957
# Whether or not to disallow shared libs when runtime libs are static
13958
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13960
# Whether or not to optimize for fast installation.
13961
fast_install=$enable_fast_install
13964
host_alias=$host_alias
13968
# The build system.
13969
build_alias=$build_alias
13973
# An echo program that does not interpret backslashes.
13978
AR_FLAGS=$lt_AR_FLAGS
13983
# LTCC compiler flags.
13984
LTCFLAGS=$lt_LTCFLAGS
13986
# A language-specific compiler.
13987
CC=$lt_compiler_CXX
13989
# Is the compiler the GNU C compiler?
13995
# The linker used to build libraries.
13998
# Whether we need hard or soft links.
14001
# A BSD-compatible nm program.
14004
# A symbol stripping program
14007
# Used to examine libraries when file_magic_cmd begins "file"
14008
MAGIC_CMD=$MAGIC_CMD
14010
# Used on cygwin: DLL creation program.
14013
# Used on cygwin: object dumper.
14016
# Used on cygwin: assembler.
14019
# The name of the directory that contains temporary libtool files.
14022
# How to create reloadable object files.
14023
reload_flag=$lt_reload_flag
14024
reload_cmds=$lt_reload_cmds
14026
# How to pass a linker flag through the compiler.
14027
wl=$lt_lt_prog_compiler_wl_CXX
14029
# Object file suffix (normally "o").
14030
objext="$ac_objext"
14032
# Old archive suffix (normally "a").
14035
# Shared library suffix (normally ".so").
14036
shrext_cmds='$shrext_cmds'
14038
# Executable file suffix (normally "").
14041
# Additional compiler flags for building library objects.
14042
pic_flag=$lt_lt_prog_compiler_pic_CXX
14045
# What is the maximum length of a command?
14046
max_cmd_len=$lt_cv_sys_max_cmd_len
14048
# Does compiler simultaneously support -c and -o options?
14049
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14051
# Must we lock files when doing compilation?
14052
need_locks=$lt_need_locks
14054
# Do we need the lib prefix for modules?
14055
need_lib_prefix=$need_lib_prefix
14057
# Do we need a version for libraries?
14058
need_version=$need_version
14060
# Whether dlopen is supported.
14061
dlopen_support=$enable_dlopen
14063
# Whether dlopen of programs is supported.
14064
dlopen_self=$enable_dlopen_self
14066
# Whether dlopen of statically linked programs is supported.
14067
dlopen_self_static=$enable_dlopen_self_static
14069
# Compiler flag to prevent dynamic linking.
14070
link_static_flag=$lt_lt_prog_compiler_static_CXX
14072
# Compiler flag to turn off builtin functions.
14073
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14075
# Compiler flag to allow reflexive dlopens.
14076
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14078
# Compiler flag to generate shared objects directly from archives.
14079
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14081
# Compiler flag to generate thread-safe objects.
14082
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14084
# Library versioning type.
14085
version_type=$version_type
14087
# Format of library name prefix.
14088
libname_spec=$lt_libname_spec
14090
# List of archive names. First name is the real one, the rest are links.
14091
# The last name is the one that the linker finds with -lNAME.
14092
library_names_spec=$lt_library_names_spec
14094
# The coded name of the library, if different from the real name.
14095
soname_spec=$lt_soname_spec
14097
# Commands used to build and install an old-style archive.
14099
old_archive_cmds=$lt_old_archive_cmds_CXX
14100
old_postinstall_cmds=$lt_old_postinstall_cmds
14101
old_postuninstall_cmds=$lt_old_postuninstall_cmds
14103
# Create an old-style archive from a shared archive.
14104
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14106
# Create a temporary old-style archive to link instead of a shared archive.
14107
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14109
# Commands used to build and install a shared archive.
14110
archive_cmds=$lt_archive_cmds_CXX
14111
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14112
postinstall_cmds=$lt_postinstall_cmds
14113
postuninstall_cmds=$lt_postuninstall_cmds
14115
# Commands used to build a loadable module (assumed same as above if empty)
14116
module_cmds=$lt_module_cmds_CXX
14117
module_expsym_cmds=$lt_module_expsym_cmds_CXX
14119
# Commands to strip libraries.
14120
old_striplib=$lt_old_striplib
14121
striplib=$lt_striplib
14123
# Dependencies to place before the objects being linked to create a
14125
predep_objects=$lt_predep_objects_CXX
14127
# Dependencies to place after the objects being linked to create a
14129
postdep_objects=$lt_postdep_objects_CXX
14131
# Dependencies to place before the objects being linked to create a
14133
predeps=$lt_predeps_CXX
14135
# Dependencies to place after the objects being linked to create a
14137
postdeps=$lt_postdeps_CXX
14139
# The directories searched by this compiler when creating a shared
14141
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14143
# The library search path used internally by the compiler when linking
14144
# a shared library.
14145
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14147
# Method to check whether dependent libraries are shared objects.
14148
deplibs_check_method=$lt_deplibs_check_method
14150
# Command to use when deplibs_check_method == file_magic.
14151
file_magic_cmd=$lt_file_magic_cmd
14153
# Flag that allows shared libraries with undefined symbols to be built.
14154
allow_undefined_flag=$lt_allow_undefined_flag_CXX
14156
# Flag that forces no undefined symbols.
14157
no_undefined_flag=$lt_no_undefined_flag_CXX
14159
# Commands used to finish a libtool library installation in a directory.
14160
finish_cmds=$lt_finish_cmds
14162
# Same as above, but a single script fragment to be evaled but not shown.
14163
finish_eval=$lt_finish_eval
14165
# Take the output of nm and produce a listing of raw symbols and C names.
14166
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14168
# Transform the output of nm in a proper C declaration
14169
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14171
# Transform the output of nm in a C name address pair
14172
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14174
# This is the shared library runtime path variable.
14175
runpath_var=$runpath_var
14177
# This is the shared library path variable.
14178
shlibpath_var=$shlibpath_var
14180
# Is shlibpath searched before the hard-coded library search path?
14181
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14183
# How to hardcode a shared library path into an executable.
14184
hardcode_action=$hardcode_action_CXX
14186
# Whether we should hardcode library paths into libraries.
14187
hardcode_into_libs=$hardcode_into_libs
14189
# Flag to hardcode \$libdir into a binary during linking.
14190
# This must work even if \$libdir does not exist.
14191
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14193
# If ld is used when linking, flag to hardcode \$libdir into
14194
# a binary during linking. This must work even if \$libdir does
14196
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14198
# Whether we need a single -rpath flag with a separated argument.
14199
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14201
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14202
# resulting binary.
14203
hardcode_direct=$hardcode_direct_CXX
14205
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14206
# resulting binary.
14207
hardcode_minus_L=$hardcode_minus_L_CXX
14209
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14210
# the resulting binary.
14211
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14213
# Set to yes if building a shared library automatically hardcodes DIR into the library
14214
# and all subsequent libraries and executables linked against it.
14215
hardcode_automatic=$hardcode_automatic_CXX
14217
# Variables whose values should be saved in libtool wrapper scripts and
14218
# restored at relink time.
14219
variables_saved_for_relink="$variables_saved_for_relink"
14221
# Whether libtool must link a program against all its dependency libraries.
14222
link_all_deplibs=$link_all_deplibs_CXX
14224
# Compile-time system search path for libraries
14225
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14227
# Run-time system search path for libraries
14228
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14230
# Fix the shell variable \$srcfile for the compiler.
14231
fix_srcfile_path=$lt_fix_srcfile_path
14233
# Set to yes if exported symbols are required.
14234
always_export_symbols=$always_export_symbols_CXX
14236
# The commands to list exported symbols.
14237
export_symbols_cmds=$lt_export_symbols_cmds_CXX
14239
# The commands to extract the exported symbol list from a shared archive.
14240
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14242
# Symbols that should not be listed in the preloaded symbols.
14243
exclude_expsyms=$lt_exclude_expsyms_CXX
14245
# Symbols that must always be exported.
14246
include_expsyms=$lt_include_expsyms_CXX
14248
# ### END LIBTOOL TAG CONFIG: $tagname
14254
# If there is no Makefile yet, we rely on a make rule to execute
14255
# `config.status --recheck' to rerun these tests and create the
14256
# libtool script then.
14257
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14258
if test -f "$ltmain_in"; then
14259
test -f Makefile && make "$ltmain"
14265
ac_cpp='$CPP $CPPFLAGS'
14266
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14267
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14268
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14274
with_gnu_ldcxx=$with_gnu_ld
14275
with_gnu_ld=$lt_save_with_gnu_ld
14276
lt_cv_path_LDCXX=$lt_cv_path_LD
14277
lt_cv_path_LD=$lt_save_path_LD
14278
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14279
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14287
if test -n "$F77" && test "X$F77" != "Xno"; then
14290
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14291
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14292
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14295
archive_cmds_need_lc_F77=no
14296
allow_undefined_flag_F77=
14297
always_export_symbols_F77=no
14298
archive_expsym_cmds_F77=
14299
export_dynamic_flag_spec_F77=
14300
hardcode_direct_F77=no
14301
hardcode_libdir_flag_spec_F77=
14302
hardcode_libdir_flag_spec_ld_F77=
14303
hardcode_libdir_separator_F77=
14304
hardcode_minus_L_F77=no
14305
hardcode_automatic_F77=no
14307
module_expsym_cmds_F77=
14308
link_all_deplibs_F77=unknown
14309
old_archive_cmds_F77=$old_archive_cmds
14310
no_undefined_flag_F77=
14311
whole_archive_flag_spec_F77=
14312
enable_shared_with_static_runtimes_F77=no
14314
# Source file extension for f77 test sources.
14317
# Object file extension for compiled f77 test sources.
14321
# Code to be used in simple compile tests
14322
lt_simple_compile_test_code="\
14328
# Code to be used in simple link tests
14329
lt_simple_link_test_code="\
14334
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14336
# If no C compiler was specified, use CC.
14339
# If no C compiler flags were specified, use CFLAGS.
14340
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14342
# Allow CC to be a program name with arguments.
14346
# save warnings/boilerplate of simple test code
14347
ac_outfile=conftest.$ac_objext
14348
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14349
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14350
_lt_compiler_boilerplate=`cat conftest.err`
14353
ac_outfile=conftest.$ac_objext
14354
echo "$lt_simple_link_test_code" >conftest.$ac_ext
14355
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14356
_lt_linker_boilerplate=`cat conftest.err`
14360
# Allow CC to be a program name with arguments.
14365
for cc_temp in $compiler""; do
14367
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14368
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14373
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14376
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14377
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
14378
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14379
$as_echo "$can_build_shared" >&6; }
14381
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14382
$as_echo_n "checking whether to build shared libraries... " >&6; }
14383
test "$can_build_shared" = "no" && enable_shared=no
14385
# On AIX, shared libraries and static libraries use the same namespace, and
14386
# are all built from PIC.
14389
test "$enable_shared" = yes && enable_static=no
14390
if test -n "$RANLIB"; then
14391
archive_cmds="$archive_cmds~\$RANLIB \$lib"
14392
postinstall_cmds='$RANLIB $lib'
14396
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14397
test "$enable_shared" = yes && enable_static=no
14401
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14402
$as_echo "$enable_shared" >&6; }
14404
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14405
$as_echo_n "checking whether to build static libraries... " >&6; }
14406
# Make sure either enable_shared or enable_static is yes.
14407
test "$enable_shared" = yes || enable_static=yes
14408
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14409
$as_echo "$enable_static" >&6; }
14414
lt_prog_compiler_wl_F77=
14415
lt_prog_compiler_pic_F77=
14416
lt_prog_compiler_static_F77=
14418
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14419
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14421
if test "$GCC" = yes; then
14422
lt_prog_compiler_wl_F77='-Wl,'
14423
lt_prog_compiler_static_F77='-static'
14427
# All AIX code is PIC.
14428
if test "$host_cpu" = ia64; then
14429
# AIX 5 now supports IA64 processor
14430
lt_prog_compiler_static_F77='-Bstatic'
14435
# FIXME: we need at least 68020 code to build shared libraries, but
14436
# adding the `-m68020' flag to GCC prevents building anything better,
14438
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14441
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14442
# PIC is the default for these OSes.
14445
mingw* | cygwin* | pw32* | os2*)
14446
# This hack is so that the source file can tell whether it is being
14447
# built for inclusion in a dll (and should export symbols for example).
14448
# Although the cygwin gcc ignores -fPIC, still need this for old-style
14449
# (--disable-auto-import) libraries
14450
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14453
darwin* | rhapsody*)
14454
# PIC is the default on this platform
14455
# Common symbols not allowed in MH_DYLIB files
14456
lt_prog_compiler_pic_F77='-fno-common'
14460
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
14461
# Instead, we relocate shared libraries at runtime.
14465
# Just because we use GCC doesn't mean we suddenly get shared libraries
14466
# on systems that don't support them.
14467
lt_prog_compiler_can_build_shared_F77=no
14472
if test -d /usr/nec; then
14473
lt_prog_compiler_pic_F77=-Kconform_pic
14478
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14479
# not for PA HP-UX.
14485
lt_prog_compiler_pic_F77='-fPIC'
14491
lt_prog_compiler_pic_F77='-fPIC'
14495
# PORTME Check for flag to pass linker flags through the system compiler.
14498
lt_prog_compiler_wl_F77='-Wl,'
14499
if test "$host_cpu" = ia64; then
14500
# AIX 5 now supports IA64 processor
14501
lt_prog_compiler_static_F77='-Bstatic'
14503
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14507
# PIC is the default on this platform
14508
# Common symbols not allowed in MH_DYLIB files
14509
case $cc_basename in
14511
lt_prog_compiler_pic_F77='-qnocommon'
14512
lt_prog_compiler_wl_F77='-Wl,'
14517
mingw* | cygwin* | pw32* | os2*)
14518
# This hack is so that the source file can tell whether it is being
14519
# built for inclusion in a dll (and should export symbols for example).
14520
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14523
hpux9* | hpux10* | hpux11*)
14524
lt_prog_compiler_wl_F77='-Wl,'
14525
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14526
# not for PA HP-UX.
14532
lt_prog_compiler_pic_F77='+Z'
14535
# Is there a better lt_prog_compiler_static that works with the bundled CC?
14536
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14539
irix5* | irix6* | nonstopux*)
14540
lt_prog_compiler_wl_F77='-Wl,'
14541
# PIC (with -KPIC) is the default.
14542
lt_prog_compiler_static_F77='-non_shared'
14546
lt_prog_compiler_pic_F77='-KPIC'
14547
lt_prog_compiler_static_F77='-Bstatic'
14550
linux* | k*bsd*-gnu)
14551
case $cc_basename in
14553
lt_prog_compiler_wl_F77='-Wl,'
14554
lt_prog_compiler_pic_F77='-KPIC'
14555
lt_prog_compiler_static_F77='-static'
14557
pgcc* | pgf77* | pgf90* | pgf95*)
14558
# Portland Group compilers (*not* the Pentium gcc compiler,
14559
# which looks to be a dead project)
14560
lt_prog_compiler_wl_F77='-Wl,'
14561
lt_prog_compiler_pic_F77='-fpic'
14562
lt_prog_compiler_static_F77='-Bstatic'
14565
lt_prog_compiler_wl_F77='-Wl,'
14566
# All Alpha code is PIC.
14567
lt_prog_compiler_static_F77='-non_shared'
14570
case `$CC -V 2>&1 | sed 5q` in
14573
lt_prog_compiler_pic_F77='-KPIC'
14574
lt_prog_compiler_static_F77='-Bstatic'
14575
lt_prog_compiler_wl_F77='-Wl,'
14578
# Sun Fortran 8.3 passes all unrecognized flags to the linker
14579
lt_prog_compiler_pic_F77='-KPIC'
14580
lt_prog_compiler_static_F77='-Bstatic'
14581
lt_prog_compiler_wl_F77=''
14588
osf3* | osf4* | osf5*)
14589
lt_prog_compiler_wl_F77='-Wl,'
14590
# All OSF/1 code is PIC.
14591
lt_prog_compiler_static_F77='-non_shared'
14595
lt_prog_compiler_static_F77='-non_shared'
14599
lt_prog_compiler_pic_F77='-KPIC'
14600
lt_prog_compiler_static_F77='-Bstatic'
14601
case $cc_basename in
14602
f77* | f90* | f95*)
14603
lt_prog_compiler_wl_F77='-Qoption ld ';;
14605
lt_prog_compiler_wl_F77='-Wl,';;
14610
lt_prog_compiler_wl_F77='-Qoption ld '
14611
lt_prog_compiler_pic_F77='-PIC'
14612
lt_prog_compiler_static_F77='-Bstatic'
14615
sysv4 | sysv4.2uw2* | sysv4.3*)
14616
lt_prog_compiler_wl_F77='-Wl,'
14617
lt_prog_compiler_pic_F77='-KPIC'
14618
lt_prog_compiler_static_F77='-Bstatic'
14622
if test -d /usr/nec ;then
14623
lt_prog_compiler_pic_F77='-Kconform_pic'
14624
lt_prog_compiler_static_F77='-Bstatic'
14628
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14629
lt_prog_compiler_wl_F77='-Wl,'
14630
lt_prog_compiler_pic_F77='-KPIC'
14631
lt_prog_compiler_static_F77='-Bstatic'
14635
lt_prog_compiler_wl_F77='-Wl,'
14636
lt_prog_compiler_can_build_shared_F77=no
14640
lt_prog_compiler_pic_F77='-pic'
14641
lt_prog_compiler_static_F77='-Bstatic'
14645
lt_prog_compiler_can_build_shared_F77=no
14650
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_F77" >&5
14651
$as_echo "$lt_prog_compiler_pic_F77" >&6; }
14654
# Check to make sure the PIC flag actually works.
14656
if test -n "$lt_prog_compiler_pic_F77"; then
14658
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14659
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14660
if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then :
14661
$as_echo_n "(cached) " >&6
14663
lt_cv_prog_compiler_pic_works_F77=no
14664
ac_outfile=conftest.$ac_objext
14665
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14666
lt_compiler_flag="$lt_prog_compiler_pic_F77"
14667
# Insert the option either (1) after the last *FLAGS variable, or
14668
# (2) before a word containing "conftest.", or (3) at the end.
14669
# Note that $ac_compile itself does not contain backslashes and begins
14670
# with a dollar sign (not a hyphen), so the echo should work correctly.
14671
# The option is referenced via a variable to avoid confusing sed.
14672
lt_compile=`echo "$ac_compile" | $SED \
14673
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14674
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14675
-e 's:$: $lt_compiler_flag:'`
14676
(eval echo "\"\$as_me:14676: $lt_compile\"" >&5)
14677
(eval "$lt_compile" 2>conftest.err)
14679
cat conftest.err >&5
14680
echo "$as_me:14680: \$? = $ac_status" >&5
14681
if (exit $ac_status) && test -s "$ac_outfile"; then
14682
# The compiler can only warn and ignore the option if not recognized
14683
# So say no if there are warnings other than the usual output.
14684
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14685
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14686
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14687
lt_cv_prog_compiler_pic_works_F77=yes
14693
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14694
$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
14696
if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14697
case $lt_prog_compiler_pic_F77 in
14699
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14702
lt_prog_compiler_pic_F77=
14703
lt_prog_compiler_can_build_shared_F77=no
14708
# For platforms which do not support PIC, -DPIC is meaningless:
14710
lt_prog_compiler_pic_F77=
14713
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14718
# Check to make sure the static flag actually works.
14720
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14721
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14722
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14723
if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then :
14724
$as_echo_n "(cached) " >&6
14726
lt_cv_prog_compiler_static_works_F77=no
14727
save_LDFLAGS="$LDFLAGS"
14728
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14729
echo "$lt_simple_link_test_code" > conftest.$ac_ext
14730
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14731
# The linker can only warn and ignore the option if not recognized
14732
# So say no if there are warnings
14733
if test -s conftest.err; then
14734
# Append any errors to the config.log.
14735
cat conftest.err 1>&5
14736
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14737
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14738
if diff conftest.exp conftest.er2 >/dev/null; then
14739
lt_cv_prog_compiler_static_works_F77=yes
14742
lt_cv_prog_compiler_static_works_F77=yes
14746
LDFLAGS="$save_LDFLAGS"
14749
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5
14750
$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
14752
if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14755
lt_prog_compiler_static_F77=
14759
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14760
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14761
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then :
14762
$as_echo_n "(cached) " >&6
14764
lt_cv_prog_compiler_c_o_F77=no
14765
$rm -r conftest 2>/dev/null
14769
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14771
lt_compiler_flag="-o out/conftest2.$ac_objext"
14772
# Insert the option either (1) after the last *FLAGS variable, or
14773
# (2) before a word containing "conftest.", or (3) at the end.
14774
# Note that $ac_compile itself does not contain backslashes and begins
14775
# with a dollar sign (not a hyphen), so the echo should work correctly.
14776
lt_compile=`echo "$ac_compile" | $SED \
14777
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14778
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14779
-e 's:$: $lt_compiler_flag:'`
14780
(eval echo "\"\$as_me:14780: $lt_compile\"" >&5)
14781
(eval "$lt_compile" 2>out/conftest.err)
14783
cat out/conftest.err >&5
14784
echo "$as_me:14784: \$? = $ac_status" >&5
14785
if (exit $ac_status) && test -s out/conftest2.$ac_objext
14787
# The compiler can only warn and ignore the option if not recognized
14788
# So say no if there are warnings
14789
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14790
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14791
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14792
lt_cv_prog_compiler_c_o_F77=yes
14797
# SGI C++ compiler will create directory out/ii_files/ for
14798
# template instantiation
14799
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14800
$rm out/* && rmdir out
14806
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
14807
$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14810
hard_links="nottested"
14811
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14812
# do not overwrite the value of need_locks provided by the user
14813
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14814
$as_echo_n "checking if we can lock with hard links... " >&6; }
14817
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14819
ln conftest.a conftest.b 2>&5 || hard_links=no
14820
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14821
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14822
$as_echo "$hard_links" >&6; }
14823
if test "$hard_links" = no; then
14824
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14825
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14832
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14833
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14836
allow_undefined_flag_F77=
14837
enable_shared_with_static_runtimes_F77=no
14839
archive_expsym_cmds_F77=
14840
old_archive_From_new_cmds_F77=
14841
old_archive_from_expsyms_cmds_F77=
14842
export_dynamic_flag_spec_F77=
14843
whole_archive_flag_spec_F77=
14844
thread_safe_flag_spec_F77=
14845
hardcode_libdir_flag_spec_F77=
14846
hardcode_libdir_flag_spec_ld_F77=
14847
hardcode_libdir_separator_F77=
14848
hardcode_direct_F77=no
14849
hardcode_minus_L_F77=no
14850
hardcode_shlibpath_var_F77=unsupported
14851
link_all_deplibs_F77=unknown
14852
hardcode_automatic_F77=no
14854
module_expsym_cmds_F77=
14855
always_export_symbols_F77=no
14856
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14857
# include_expsyms should be a list of space-separated symbols to be *always*
14858
# included in the symbol list
14859
include_expsyms_F77=
14860
# exclude_expsyms can be an extended regexp of symbols to exclude
14861
# it will be wrapped by ` (' and `)$', so one must not match beginning or
14862
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14863
# as well as any symbol that contains `d'.
14864
exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14865
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14866
# platforms (ab)use it in PIC code, but their linkers get confused if
14867
# the symbol is explicitly referenced. Since portable code cannot
14868
# rely on this symbol name, it's probably fine to never include it in
14869
# preloaded symbol tables.
14870
# Exclude shared library initialization/finalization symbols.
14871
extract_expsyms_cmds=
14872
# Just being paranoid about ensuring that cc_basename is set.
14873
for cc_temp in $compiler""; do
14875
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14876
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14881
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14884
cygwin* | mingw* | pw32*)
14885
# FIXME: the MSVC++ port hasn't been tested in a loooong time
14886
# When not using gcc, we currently assume that we are using
14887
# Microsoft Visual C++.
14888
if test "$GCC" != yes; then
14893
# we just hope/assume this is gcc and not c89 (= MSVC++)
14902
if test "$with_gnu_ld" = yes; then
14903
# If archive_cmds runs LD, not CC, wlarc should be empty
14906
# Set some defaults for GNU ld with shared library support. These
14907
# are reset later if shared libraries are not supported. Putting them
14908
# here allows them to be overridden if necessary.
14909
runpath_var=LD_RUN_PATH
14910
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14911
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14912
# ancient GNU ld didn't support --whole-archive et. al.
14913
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14914
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14916
whole_archive_flag_spec_F77=
14918
supports_anon_versioning=no
14919
case `$LD -v 2>/dev/null` in
14920
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14921
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14922
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14923
*\ 2.11.*) ;; # other 2.11 versions
14924
*) supports_anon_versioning=yes ;;
14927
# See if GNU ld supports shared libraries.
14930
# On AIX/PPC, the GNU linker is very broken
14931
if test "$host_cpu" != ia64; then
14935
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14936
*** to be unable to reliably create shared libraries on AIX.
14937
*** Therefore, libtool is disabling shared libraries support. If you
14938
*** really care for shared libraries, you may want to modify your PATH
14939
*** so that a non-GNU linker is found, and then restart.
14946
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)'
14947
hardcode_libdir_flag_spec_F77='-L$libdir'
14948
hardcode_minus_L_F77=yes
14950
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14951
# that the semantics of dynamic libraries on AmigaOS, at least up
14952
# to version 4, is to share data among multiple programs linked
14953
# with the same dynamic library. Since this doesn't match the
14954
# behavior of shared libraries on other platforms, we can't use
14960
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14961
allow_undefined_flag_F77=unsupported
14962
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14963
# support --undefined. This deserves some investigation. FIXME
14964
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14970
cygwin* | mingw* | pw32*)
14971
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14972
# as there is no search path for DLLs.
14973
hardcode_libdir_flag_spec_F77='-L$libdir'
14974
allow_undefined_flag_F77=unsupported
14975
always_export_symbols_F77=no
14976
enable_shared_with_static_runtimes_F77=yes
14977
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14979
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14980
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14981
# If the export-symbols file already is a .def file (1st line
14982
# is EXPORTS), use it as is; otherwise, prepend...
14983
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14984
cp $export_symbols $output_objdir/$soname.def;
14986
echo EXPORTS > $output_objdir/$soname.def;
14987
cat $export_symbols >> $output_objdir/$soname.def;
14989
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14996
hardcode_direct_F77=no
14997
hardcode_shlibpath_var_F77=no
14998
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14999
export_dynamic_flag_spec_F77='${wl}-E'
15000
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15001
# Instead, shared libraries are loaded at an image base (0x10000000 by
15002
# default) and relocated if they conflict, which is a slow very memory
15003
# consuming and fragmenting process. To avoid this, we pick a random,
15004
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15005
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
15006
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'
15007
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'
15010
gnu* | linux* | k*bsd*-gnu)
15011
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15013
case $cc_basename,$host_cpu in
15014
pgcc*) # Portland Group C compiler
15015
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'
15016
tmp_addflag=' $pic_flag'
15018
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15019
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'
15020
tmp_addflag=' $pic_flag -Mnomain' ;;
15021
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15022
tmp_addflag=' -i_dynamic' ;;
15023
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15024
tmp_addflag=' -i_dynamic -nofor_main' ;;
15025
ifc* | ifort*) # Intel Fortran compiler
15026
tmp_addflag=' -nofor_main' ;;
15028
case `$CC -V 2>&1 | sed 5q` in
15029
*Sun\ C*) # Sun C 5.9
15030
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'
15031
tmp_sharedflag='-G' ;;
15032
*Sun\ F*) # Sun Fortran 8.3
15033
tmp_sharedflag='-G' ;;
15035
tmp_sharedflag='-shared' ;;
15037
archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15039
if test $supports_anon_versioning = yes; then
15040
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15041
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15042
$echo "local: *; };" >> $output_objdir/$libname.ver~
15043
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15051
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15052
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15055
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15056
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15061
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15065
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15066
*** create shared libraries on Solaris systems. Therefore, libtool
15067
*** is disabling shared libraries support. We urge you to upgrade GNU
15068
*** binutils to release 2.9.1 or newer. Another option is to modify
15069
*** your PATH or compiler configuration so that the native linker is
15070
*** used, and then restart.
15073
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15074
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15075
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15081
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15082
case `$LD -v 2>&1` in
15083
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15087
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15088
*** reliably create shared libraries on SCO systems. Therefore, libtool
15089
*** is disabling shared libraries support. We urge you to upgrade GNU
15090
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15091
*** your PATH or compiler configuration so that the native linker is
15092
*** used, and then restart.
15097
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15098
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15099
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15100
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15109
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15111
hardcode_direct_F77=yes
15112
hardcode_shlibpath_var_F77=no
15116
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15117
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15118
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15125
if test "$ld_shlibs_F77" = no; then
15127
hardcode_libdir_flag_spec_F77=
15128
export_dynamic_flag_spec_F77=
15129
whole_archive_flag_spec_F77=
15132
# PORTME fill in a description of your system's linker (not GNU ld)
15135
allow_undefined_flag_F77=unsupported
15136
always_export_symbols_F77=yes
15137
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'
15138
# Note: this linker hardcodes the directories in LIBPATH if there
15139
# are no directories specified by -L.
15140
hardcode_minus_L_F77=yes
15141
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15142
# Neither direct hardcoding nor static linking is supported with a
15144
hardcode_direct_F77=unsupported
15149
if test "$host_cpu" = ia64; then
15150
# On IA64, the linker does run time linking by default, so we don't
15151
# have to do anything special.
15152
aix_use_runtimelinking=no
15153
exp_sym_flag='-Bexport'
15156
# If we're using GNU nm, then we don't want the "-C" option.
15157
# -C means demangle to AIX nm, but means don't demangle with GNU nm
15158
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15159
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'
15161
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'
15163
aix_use_runtimelinking=no
15165
# Test if we are trying to use run time linking or normal
15166
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15167
# need to do runtime linking.
15168
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15169
for ld_flag in $LDFLAGS; do
15170
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15171
aix_use_runtimelinking=yes
15178
exp_sym_flag='-bexport'
15179
no_entry_flag='-bnoentry'
15182
# When large executables or shared objects are built, AIX ld can
15183
# have problems creating the table of contents. If linking a library
15184
# or program results in "error TOC overflow" add -mminimal-toc to
15185
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15186
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15188
archive_cmds_F77=''
15189
hardcode_direct_F77=yes
15190
hardcode_libdir_separator_F77=':'
15191
link_all_deplibs_F77=yes
15193
if test "$GCC" = yes; then
15194
case $host_os in aix4.[012]|aix4.[012].*)
15195
# We only want to do this on AIX 4.2 and lower, the check
15196
# below for broken collect2 doesn't work under 4.3+
15197
collect2name=`${CC} -print-prog-name=collect2`
15198
if test -f "$collect2name" && \
15199
strings "$collect2name" | grep resolve_lib_name >/dev/null
15201
# We have reworked collect2
15204
# We have old collect2
15205
hardcode_direct_F77=unsupported
15206
# It fails to find uninstalled libraries when the uninstalled
15207
# path is not listed in the libpath. Setting hardcode_minus_L
15208
# to unsupported forces relinking
15209
hardcode_minus_L_F77=yes
15210
hardcode_libdir_flag_spec_F77='-L$libdir'
15211
hardcode_libdir_separator_F77=
15215
shared_flag='-shared'
15216
if test "$aix_use_runtimelinking" = yes; then
15217
shared_flag="$shared_flag "'${wl}-G'
15221
if test "$host_cpu" = ia64; then
15222
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15223
# chokes on -Wl,-G. The following line is correct:
15226
if test "$aix_use_runtimelinking" = yes; then
15227
shared_flag='${wl}-G'
15229
shared_flag='${wl}-bM:SRE'
15234
# It seems that -bexpall does not export symbols beginning with
15235
# underscore (_), so it is better to generate a list of symbols to export.
15236
always_export_symbols_F77=yes
15237
if test "$aix_use_runtimelinking" = yes; then
15238
# Warning - without using the other runtime loading flags (-brtl),
15239
# -berok will link without error, but may produce a broken library.
15240
allow_undefined_flag_F77='-berok'
15241
# Determine the default libpath from the value encoded in an empty executable.
15242
cat > conftest.$ac_ext <<_ACEOF
15247
if ac_fn_f77_try_link "$LINENO"; then :
15249
lt_aix_libpath_sed='
15250
/Import File Strings/,/^$/ {
15256
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15257
# Check for a 64-bit object if we didn't find anything.
15258
if test -z "$aix_libpath"; then
15259
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15262
rm -f core conftest.err conftest.$ac_objext \
15263
conftest$ac_exeext conftest.$ac_ext
15264
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15266
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15267
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"
15269
if test "$host_cpu" = ia64; then
15270
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15271
allow_undefined_flag_F77="-z nodefs"
15272
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"
15274
# Determine the default libpath from the value encoded in an empty executable.
15275
cat > conftest.$ac_ext <<_ACEOF
15280
if ac_fn_f77_try_link "$LINENO"; then :
15282
lt_aix_libpath_sed='
15283
/Import File Strings/,/^$/ {
15289
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15290
# Check for a 64-bit object if we didn't find anything.
15291
if test -z "$aix_libpath"; then
15292
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15295
rm -f core conftest.err conftest.$ac_objext \
15296
conftest$ac_exeext conftest.$ac_ext
15297
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15299
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15300
# Warning - without using the other run time loading flags,
15301
# -berok will link without error, but may produce a broken library.
15302
no_undefined_flag_F77=' ${wl}-bernotok'
15303
allow_undefined_flag_F77=' ${wl}-berok'
15304
# Exported symbols can be pulled into shared objects from archives
15305
whole_archive_flag_spec_F77='$convenience'
15306
archive_cmds_need_lc_F77=yes
15307
# This is similar to how AIX traditionally builds its shared libraries.
15308
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'
15314
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)'
15315
hardcode_libdir_flag_spec_F77='-L$libdir'
15316
hardcode_minus_L_F77=yes
15317
# see comment about different semantics on the GNU ld section
15322
export_dynamic_flag_spec_F77=-rdynamic
15325
cygwin* | mingw* | pw32*)
15326
# When not using gcc, we currently assume that we are using
15327
# Microsoft Visual C++.
15328
# hardcode_libdir_flag_spec is actually meaningless, as there is
15329
# no search path for DLLs.
15330
hardcode_libdir_flag_spec_F77=' '
15331
allow_undefined_flag_F77=unsupported
15332
# Tell ltmain to make .lib files, not .a files.
15334
# Tell ltmain to make .dll files, not .so files.
15336
# FIXME: Setting linknames here is a bad hack.
15337
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15338
# The linker will automatically build a .lib file if we build a DLL.
15339
old_archive_From_new_cmds_F77='true'
15340
# FIXME: Should let the user specify the lib program.
15341
old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15342
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15343
enable_shared_with_static_runtimes_F77=yes
15346
darwin* | rhapsody*)
15348
rhapsody* | darwin1.[012])
15349
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15352
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15353
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15355
case ${MACOSX_DEPLOYMENT_TARGET} in
15357
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15360
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15366
archive_cmds_need_lc_F77=no
15367
hardcode_direct_F77=no
15368
hardcode_automatic_F77=yes
15369
hardcode_shlibpath_var_F77=unsupported
15370
whole_archive_flag_spec_F77=''
15371
link_all_deplibs_F77=yes
15372
if test "$GCC" = yes ; then
15373
output_verbose_link_cmd='echo'
15374
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}"
15375
module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15376
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}"
15377
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}"
15379
case $cc_basename in
15381
output_verbose_link_cmd='echo'
15382
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15383
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15384
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15385
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}'
15386
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}'
15396
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15397
hardcode_libdir_flag_spec_F77='-L$libdir'
15398
hardcode_shlibpath_var_F77=no
15405
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15406
# support. Future versions do this automatically, but an explicit c++rt0.o
15407
# does not break anything, and helps significantly (at the cost of a little
15410
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15411
hardcode_libdir_flag_spec_F77='-R$libdir'
15412
hardcode_direct_F77=yes
15413
hardcode_shlibpath_var_F77=no
15416
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
15418
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15419
hardcode_direct_F77=yes
15420
hardcode_minus_L_F77=yes
15421
hardcode_shlibpath_var_F77=no
15424
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15425
freebsd* | dragonfly*)
15426
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15427
hardcode_libdir_flag_spec_F77='-R$libdir'
15428
hardcode_direct_F77=yes
15429
hardcode_shlibpath_var_F77=no
15433
if test "$GCC" = yes; then
15434
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'
15436
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'
15438
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15439
hardcode_libdir_separator_F77=:
15440
hardcode_direct_F77=yes
15442
# hardcode_minus_L: Not really in the search PATH,
15443
# but as the default location of the library.
15444
hardcode_minus_L_F77=yes
15445
export_dynamic_flag_spec_F77='${wl}-E'
15449
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15450
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15452
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15454
if test "$with_gnu_ld" = no; then
15455
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15456
hardcode_libdir_separator_F77=:
15458
hardcode_direct_F77=yes
15459
export_dynamic_flag_spec_F77='${wl}-E'
15461
# hardcode_minus_L: Not really in the search PATH,
15462
# but as the default location of the library.
15463
hardcode_minus_L_F77=yes
15468
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15471
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15474
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15477
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15483
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15486
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15489
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15493
if test "$with_gnu_ld" = no; then
15494
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15495
hardcode_libdir_separator_F77=:
15499
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15500
hardcode_direct_F77=no
15501
hardcode_shlibpath_var_F77=no
15504
hardcode_direct_F77=yes
15505
export_dynamic_flag_spec_F77='${wl}-E'
15507
# hardcode_minus_L: Not really in the search PATH,
15508
# but as the default location of the library.
15509
hardcode_minus_L_F77=yes
15515
irix5* | irix6* | nonstopux*)
15516
if test "$GCC" = yes; then
15517
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'
15519
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'
15520
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15522
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15523
hardcode_libdir_separator_F77=:
15524
link_all_deplibs_F77=yes
15528
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15529
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15531
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15533
hardcode_libdir_flag_spec_F77='-R$libdir'
15534
hardcode_direct_F77=yes
15535
hardcode_shlibpath_var_F77=no
15539
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15540
hardcode_direct_F77=yes
15541
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15542
hardcode_libdir_separator_F77=:
15543
hardcode_shlibpath_var_F77=no
15547
if test -f /usr/libexec/ld.so; then
15548
hardcode_direct_F77=yes
15549
hardcode_shlibpath_var_F77=no
15550
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15551
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15552
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15553
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15554
export_dynamic_flag_spec_F77='${wl}-E'
15557
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15558
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15559
hardcode_libdir_flag_spec_F77='-R$libdir'
15562
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15563
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15573
hardcode_libdir_flag_spec_F77='-L$libdir'
15574
hardcode_minus_L_F77=yes
15575
allow_undefined_flag_F77=unsupported
15576
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'
15577
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15581
if test "$GCC" = yes; then
15582
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15583
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'
15585
allow_undefined_flag_F77=' -expect_unresolved \*'
15586
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'
15588
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15589
hardcode_libdir_separator_F77=:
15592
osf4* | osf5*) # as osf3* with the addition of -msym flag
15593
if test "$GCC" = yes; then
15594
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15595
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'
15596
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15598
allow_undefined_flag_F77=' -expect_unresolved \*'
15599
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'
15600
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~
15601
$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'
15603
# Both c and cxx compiler support -rpath directly
15604
hardcode_libdir_flag_spec_F77='-rpath $libdir'
15606
hardcode_libdir_separator_F77=:
15610
no_undefined_flag_F77=' -z text'
15611
if test "$GCC" = yes; then
15613
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15614
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15615
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15618
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15619
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15620
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15622
hardcode_libdir_flag_spec_F77='-R$libdir'
15623
hardcode_shlibpath_var_F77=no
15625
solaris2.[0-5] | solaris2.[0-5].*) ;;
15627
# The compiler driver will combine and reorder linker options,
15628
# but understands `-z linker_flag'. GCC discards it without `$wl',
15629
# but is careful enough not to reorder.
15630
# Supported since Solaris 2.6 (maybe 2.5.1?)
15631
if test "$GCC" = yes; then
15632
whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15634
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15638
link_all_deplibs_F77=yes
15642
if test "x$host_vendor" = xsequent; then
15643
# Use $CC to link under sequent, because it throws in some extra .o
15644
# files that make .init and .fini sections work.
15645
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15647
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15649
hardcode_libdir_flag_spec_F77='-L$libdir'
15650
hardcode_direct_F77=yes
15651
hardcode_minus_L_F77=yes
15652
hardcode_shlibpath_var_F77=no
15656
case $host_vendor in
15658
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15659
hardcode_direct_F77=yes # is this really true???
15662
## LD is ld it makes a PLAMLIB
15663
## CC just makes a GrossModule.
15664
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15665
reload_cmds_F77='$CC -r -o $output$reload_objs'
15666
hardcode_direct_F77=no
15669
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15670
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15673
runpath_var='LD_RUN_PATH'
15674
hardcode_shlibpath_var_F77=no
15678
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15679
hardcode_shlibpath_var_F77=no
15680
export_dynamic_flag_spec_F77='-Bexport'
15684
if test -d /usr/nec; then
15685
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15686
hardcode_shlibpath_var_F77=no
15687
runpath_var=LD_RUN_PATH
15688
hardcode_runpath_var=yes
15693
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15694
no_undefined_flag_F77='${wl}-z,text'
15695
archive_cmds_need_lc_F77=no
15696
hardcode_shlibpath_var_F77=no
15697
runpath_var='LD_RUN_PATH'
15699
if test "$GCC" = yes; then
15700
archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15701
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15703
archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15704
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15708
sysv5* | sco3.2v5* | sco5v6*)
15709
# Note: We can NOT use -z defs as we might desire, because we do not
15710
# link with -lc, and that would cause any symbols used from libc to
15711
# always be unresolved, which means just about no library would
15712
# ever link correctly. If we're not using GNU ld we use -z text
15713
# though, which does catch some bad symbols but isn't as heavy-handed
15715
no_undefined_flag_F77='${wl}-z,text'
15716
allow_undefined_flag_F77='${wl}-z,nodefs'
15717
archive_cmds_need_lc_F77=no
15718
hardcode_shlibpath_var_F77=no
15719
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15720
hardcode_libdir_separator_F77=':'
15721
link_all_deplibs_F77=yes
15722
export_dynamic_flag_spec_F77='${wl}-Bexport'
15723
runpath_var='LD_RUN_PATH'
15725
if test "$GCC" = yes; then
15726
archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15727
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15729
archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15730
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15735
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15736
hardcode_libdir_flag_spec_F77='-L$libdir'
15737
hardcode_shlibpath_var_F77=no
15746
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
15747
$as_echo "$ld_shlibs_F77" >&6; }
15748
test "$ld_shlibs_F77" = no && can_build_shared=no
15751
# Do we need to explicitly link libc?
15753
case "x$archive_cmds_need_lc_F77" in
15755
# Assume -lc should be added
15756
archive_cmds_need_lc_F77=yes
15758
if test "$enable_shared" = yes && test "$GCC" = yes; then
15759
case $archive_cmds_F77 in
15761
# FIXME: we may have to deal with multi-command sequences.
15764
# Test whether the compiler implicitly links with -lc since on some
15765
# systems, -lgcc has to come before -lc. If gcc already passes -lc
15766
# to ld, don't add -lc before -lgcc.
15767
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15768
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15770
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15772
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15773
(eval $ac_compile) 2>&5
15775
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15776
test $ac_status = 0; } 2>conftest.err; then
15779
libobjs=conftest.$ac_objext
15781
wl=$lt_prog_compiler_wl_F77
15782
pic_flag=$lt_prog_compiler_pic_F77
15788
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15789
allow_undefined_flag_F77=
15790
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15791
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15793
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15794
test $ac_status = 0; }
15796
archive_cmds_need_lc_F77=no
15798
archive_cmds_need_lc_F77=yes
15800
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15802
cat conftest.err 1>&5
15805
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_F77" >&5
15806
$as_echo "$archive_cmds_need_lc_F77" >&6; }
15813
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15814
$as_echo_n "checking dynamic linker characteristics... " >&6; }
15815
library_names_spec=
15816
libname_spec='lib$name'
15820
postuninstall_cmds=
15824
shlibpath_overrides_runpath=unknown
15826
dynamic_linker="$host_os ld.so"
15827
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15829
need_lib_prefix=unknown
15830
hardcode_into_libs=no
15832
# when you set need_version to no, make sure it does not cause -set_version
15833
# flags to be left without arguments
15834
need_version=unknown
15839
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15840
shlibpath_var=LIBPATH
15842
# AIX 3 has no versioning support, so we append a major version to the name.
15843
soname_spec='${libname}${release}${shared_ext}$major'
15850
hardcode_into_libs=yes
15851
if test "$host_cpu" = ia64; then
15852
# AIX 5 supports IA64
15853
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15854
shlibpath_var=LD_LIBRARY_PATH
15856
# With GCC up to 2.95.x, collect2 would create an import file
15857
# for dependence libraries. The import file would start with
15858
# the line `#! .'. This would cause the generated library to
15859
# depend on `.', always an invalid library. This was fixed in
15860
# development snapshots of GCC prior to 3.0.
15862
aix4 | aix4.[01] | aix4.[01].*)
15863
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15865
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15868
can_build_shared=no
15872
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15873
# soname into executable. Probably we can add versioning support to
15874
# collect2, so additional links can be useful in future.
15875
if test "$aix_use_runtimelinking" = yes; then
15876
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
15877
# instead of lib<name>.a to let people know that these are not
15878
# typical AIX shared libraries.
15879
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15881
# We preserve .a as extension for shared libraries through AIX4.2
15882
# and later when we are not doing run time linking.
15883
library_names_spec='${libname}${release}.a $libname.a'
15884
soname_spec='${libname}${release}${shared_ext}$major'
15886
shlibpath_var=LIBPATH
15891
library_names_spec='$libname.ixlibrary $libname.a'
15892
# Create ${libname}_ixlibrary.a entries in /sys/libs.
15893
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'
15897
library_names_spec='${libname}${shared_ext}'
15898
dynamic_linker="$host_os ld.so"
15899
shlibpath_var=LIBRARY_PATH
15905
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15906
soname_spec='${libname}${release}${shared_ext}$major'
15907
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15908
shlibpath_var=LD_LIBRARY_PATH
15909
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15910
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15911
# the default ld.so.conf also contains /usr/contrib/lib and
15912
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15913
# libtool to hard-code these into programs
15916
cygwin* | mingw* | pw32*)
15917
version_type=windows
15922
case $GCC,$host_os in
15923
yes,cygwin* | yes,mingw* | yes,pw32*)
15924
library_names_spec='$libname.dll.a'
15925
# DLL is installed to $(libdir)/../bin by postinstall_cmds
15926
postinstall_cmds='base_file=`basename \${file}`~
15927
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15928
dldir=$destdir/`dirname \$dlpath`~
15929
test -d \$dldir || mkdir -p \$dldir~
15930
$install_prog $dir/$dlname \$dldir/$dlname~
15931
chmod a+x \$dldir/$dlname'
15932
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15933
dlpath=$dir/\$dldll~
15935
shlibpath_overrides_runpath=yes
15939
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
15940
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15941
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15944
# MinGW DLLs use traditional 'lib' prefix
15945
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15946
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15947
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15948
# It is most probably a Windows format PATH printed by
15949
# mingw gcc, but we are running on Cygwin. Gcc prints its search
15950
# path with ; separators, and with drive letters. We can handle the
15951
# drive letters (cygwin fileutils understands them), so leave them,
15952
# especially as we might pass files found there to a mingw objdump,
15953
# which wouldn't understand a cygwinified path. Ahh.
15954
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15956
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15960
# pw32 DLLs use 'pw' prefix rather than 'lib'
15961
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15967
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15970
dynamic_linker='Win32 ld.exe'
15971
# FIXME: first we should search . and the directory the executable is in
15975
darwin* | rhapsody*)
15976
dynamic_linker="$host_os dyld"
15977
version_type=darwin
15980
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15981
soname_spec='${libname}${release}${major}$shared_ext'
15982
shlibpath_overrides_runpath=yes
15983
shlibpath_var=DYLD_LIBRARY_PATH
15984
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15986
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15993
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15994
soname_spec='${libname}${release}${shared_ext}$major'
15995
shlibpath_var=LD_LIBRARY_PATH
16002
freebsd* | dragonfly*)
16003
# DragonFly does not have aout. When/if they implement a new
16004
# versioning mechanism, adjust this.
16005
if test -x /usr/bin/objformat; then
16006
objformat=`/usr/bin/objformat`
16009
freebsd[123]*) objformat=aout ;;
16010
*) objformat=elf ;;
16013
version_type=freebsd-$objformat
16014
case $version_type in
16016
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16021
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16025
shlibpath_var=LD_LIBRARY_PATH
16028
shlibpath_overrides_runpath=yes
16030
freebsd3.[01]* | freebsdelf3.[01]*)
16031
shlibpath_overrides_runpath=yes
16032
hardcode_into_libs=yes
16034
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16035
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16036
shlibpath_overrides_runpath=no
16037
hardcode_into_libs=yes
16039
*) # from 4.6 on, and DragonFly
16040
shlibpath_overrides_runpath=yes
16041
hardcode_into_libs=yes
16050
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16051
soname_spec='${libname}${release}${shared_ext}$major'
16052
shlibpath_var=LD_LIBRARY_PATH
16053
hardcode_into_libs=yes
16056
hpux9* | hpux10* | hpux11*)
16057
# Give a soname corresponding to the major version so that dld.sl refuses to
16058
# link against other versions.
16065
hardcode_into_libs=yes
16066
dynamic_linker="$host_os dld.so"
16067
shlibpath_var=LD_LIBRARY_PATH
16068
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16069
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16070
soname_spec='${libname}${release}${shared_ext}$major'
16071
if test "X$HPUX_IA64_MODE" = X32; then
16072
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16074
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16076
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16080
hardcode_into_libs=yes
16081
dynamic_linker="$host_os dld.sl"
16082
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16083
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16084
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16085
soname_spec='${libname}${release}${shared_ext}$major'
16086
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16087
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16091
dynamic_linker="$host_os dld.sl"
16092
shlibpath_var=SHLIB_PATH
16093
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16094
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16095
soname_spec='${libname}${release}${shared_ext}$major'
16098
# HP-UX runs *really* slowly unless shared libraries are mode 555.
16099
postinstall_cmds='chmod 555 $lib'
16106
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16107
soname_spec='${libname}${release}${shared_ext}$major'
16108
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16109
shlibpath_var=LD_LIBRARY_PATH
16110
shlibpath_overrides_runpath=no
16111
hardcode_into_libs=yes
16114
irix5* | irix6* | nonstopux*)
16116
nonstopux*) version_type=nonstopux ;;
16118
if test "$lt_cv_prog_gnu_ld" = yes; then
16126
soname_spec='${libname}${release}${shared_ext}$major'
16127
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16129
irix5* | nonstopux*)
16130
libsuff= shlibsuff=
16133
case $LD in # libtool.m4 will add one of these switches to LD
16134
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16135
libsuff= shlibsuff= libmagic=32-bit;;
16136
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16137
libsuff=32 shlibsuff=N32 libmagic=N32;;
16138
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16139
libsuff=64 shlibsuff=64 libmagic=64-bit;;
16140
*) libsuff= shlibsuff= libmagic=never-match;;
16144
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16145
shlibpath_overrides_runpath=no
16146
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16147
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16148
hardcode_into_libs=yes
16151
# No shared lib support for Linux oldld, aout, or coff.
16152
linux*oldld* | linux*aout* | linux*coff*)
16156
# This must be Linux ELF.
16157
linux* | k*bsd*-gnu)
16161
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16162
soname_spec='${libname}${release}${shared_ext}$major'
16163
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16164
shlibpath_var=LD_LIBRARY_PATH
16165
shlibpath_overrides_runpath=no
16166
# This implies no fast_install, which is unacceptable.
16167
# Some rework will be needed to allow for fast_install
16168
# before this can be enabled.
16169
hardcode_into_libs=yes
16171
# Append ld.so.conf contents to the search path
16172
if test -f /etc/ld.so.conf; then
16173
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' ' '`
16174
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16177
# We used to test for /lib/ld.so.1 and disable shared libraries on
16178
# powerpc, because MkLinux only supported shared libraries with the
16179
# GNU dynamic linker. Since this was broken with cross compilers,
16180
# most powerpc-linux boxes support dynamic linking these days and
16181
# people can always --disable-shared, the test was removed, and we
16182
# assume the GNU/Linux dynamic linker is in use.
16183
dynamic_linker='GNU/Linux ld.so'
16190
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16191
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16192
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16193
dynamic_linker='NetBSD (a.out) ld.so'
16195
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16196
soname_spec='${libname}${release}${shared_ext}$major'
16197
dynamic_linker='NetBSD ld.elf_so'
16199
shlibpath_var=LD_LIBRARY_PATH
16200
shlibpath_overrides_runpath=yes
16201
hardcode_into_libs=yes
16206
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16207
shlibpath_var=LD_LIBRARY_PATH
16208
shlibpath_overrides_runpath=yes
16215
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16216
soname_spec='${libname}${release}${shared_ext}$major'
16217
shlibpath_var=LD_LIBRARY_PATH
16218
shlibpath_overrides_runpath=yes
16223
sys_lib_dlsearch_path_spec="/usr/lib"
16225
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16227
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16228
*) need_version=no ;;
16230
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16231
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16232
shlibpath_var=LD_LIBRARY_PATH
16233
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16235
openbsd2.[89] | openbsd2.[89].*)
16236
shlibpath_overrides_runpath=no
16239
shlibpath_overrides_runpath=yes
16243
shlibpath_overrides_runpath=yes
16248
libname_spec='$name'
16251
library_names_spec='$libname${shared_ext} $libname.a'
16252
dynamic_linker='OS/2 ld.exe'
16253
shlibpath_var=LIBPATH
16256
osf3* | osf4* | osf5*)
16260
soname_spec='${libname}${release}${shared_ext}$major'
16261
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16262
shlibpath_var=LD_LIBRARY_PATH
16263
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16264
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16275
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16276
soname_spec='${libname}${release}${shared_ext}$major'
16277
shlibpath_var=LD_LIBRARY_PATH
16278
shlibpath_overrides_runpath=yes
16279
hardcode_into_libs=yes
16280
# ldd complains unless libraries are executable
16281
postinstall_cmds='chmod +x $lib'
16286
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16287
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16288
shlibpath_var=LD_LIBRARY_PATH
16289
shlibpath_overrides_runpath=yes
16290
if test "$with_gnu_ld" = yes; then
16298
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16299
soname_spec='${libname}${release}${shared_ext}$major'
16300
shlibpath_var=LD_LIBRARY_PATH
16301
case $host_vendor in
16303
shlibpath_overrides_runpath=no
16305
export_dynamic_flag_spec='${wl}-Blargedynsym'
16306
runpath_var=LD_RUN_PATH
16314
shlibpath_overrides_runpath=no
16315
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16321
if test -d /usr/nec ;then
16323
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16324
soname_spec='$libname${shared_ext}.$major'
16325
shlibpath_var=LD_LIBRARY_PATH
16329
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16330
version_type=freebsd-elf
16333
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16334
soname_spec='${libname}${release}${shared_ext}$major'
16335
shlibpath_var=LD_LIBRARY_PATH
16336
hardcode_into_libs=yes
16337
if test "$with_gnu_ld" = yes; then
16338
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16339
shlibpath_overrides_runpath=no
16341
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16342
shlibpath_overrides_runpath=yes
16345
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16349
sys_lib_dlsearch_path_spec='/usr/lib'
16354
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16355
soname_spec='${libname}${release}${shared_ext}$major'
16356
shlibpath_var=LD_LIBRARY_PATH
16363
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16364
$as_echo "$dynamic_linker" >&6; }
16365
test "$dynamic_linker" = no && can_build_shared=no
16367
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then :
16368
$as_echo_n "(cached) " >&6
16370
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16373
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16374
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then :
16375
$as_echo_n "(cached) " >&6
16377
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16380
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16382
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16383
if test "$GCC" = yes; then
16384
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16387
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16388
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16389
hardcode_action_F77=
16390
if test -n "$hardcode_libdir_flag_spec_F77" || \
16391
test -n "$runpath_var_F77" || \
16392
test "X$hardcode_automatic_F77" = "Xyes" ; then
16394
# We can hardcode non-existant directories.
16395
if test "$hardcode_direct_F77" != no &&
16396
# If the only mechanism to avoid hardcoding is shlibpath_var, we
16397
# have to relink, otherwise we might link with an installed library
16398
# when we should be linking with a yet-to-be-installed one
16399
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16400
test "$hardcode_minus_L_F77" != no; then
16401
# Linking always hardcodes the temporary library directory.
16402
hardcode_action_F77=relink
16404
# We can link without hardcoding, and we can hardcode nonexisting dirs.
16405
hardcode_action_F77=immediate
16408
# We cannot hardcode anything, or else we can only hardcode existing
16410
hardcode_action_F77=unsupported
16412
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
16413
$as_echo "$hardcode_action_F77" >&6; }
16415
if test "$hardcode_action_F77" = relink; then
16416
# Fast installation is not supported
16417
enable_fast_install=no
16418
elif test "$shlibpath_overrides_runpath" = yes ||
16419
test "$enable_shared" = no; then
16420
# Fast installation is not necessary
16421
enable_fast_install=needless
16425
# The else clause should only fire when bootstrapping the
16426
# libtool distribution, otherwise you forgot to ship ltmain.sh
16427
# with your package, and you will get complaints that there are
16428
# no rules to generate ltmain.sh.
16429
if test -f "$ltmain"; then
16430
# See if we are running on zsh, and set the options which allow our commands through
16431
# without removal of \ escapes.
16432
if test -n "${ZSH_VERSION+set}" ; then
16433
setopt NO_GLOB_SUBST
16435
# Now quote all the things that may contain metacharacters while being
16436
# careful not to overquote the AC_SUBSTed values. We take copies of the
16437
# variables and quote the copies for generation of the libtool script.
16438
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16440
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16441
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16442
deplibs_check_method reload_flag reload_cmds need_locks \
16443
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16444
lt_cv_sys_global_symbol_to_c_name_address \
16445
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16446
old_postinstall_cmds old_postuninstall_cmds \
16450
lt_prog_compiler_wl_F77 \
16451
lt_prog_compiler_pic_F77 \
16452
lt_prog_compiler_static_F77 \
16453
lt_prog_compiler_no_builtin_flag_F77 \
16454
export_dynamic_flag_spec_F77 \
16455
thread_safe_flag_spec_F77 \
16456
whole_archive_flag_spec_F77 \
16457
enable_shared_with_static_runtimes_F77 \
16458
old_archive_cmds_F77 \
16459
old_archive_from_new_cmds_F77 \
16460
predep_objects_F77 \
16461
postdep_objects_F77 \
16464
compiler_lib_search_path_F77 \
16465
compiler_lib_search_dirs_F77 \
16467
archive_expsym_cmds_F77 \
16468
postinstall_cmds_F77 \
16469
postuninstall_cmds_F77 \
16470
old_archive_from_expsyms_cmds_F77 \
16471
allow_undefined_flag_F77 \
16472
no_undefined_flag_F77 \
16473
export_symbols_cmds_F77 \
16474
hardcode_libdir_flag_spec_F77 \
16475
hardcode_libdir_flag_spec_ld_F77 \
16476
hardcode_libdir_separator_F77 \
16477
hardcode_automatic_F77 \
16479
module_expsym_cmds_F77 \
16480
lt_cv_prog_compiler_c_o_F77 \
16481
fix_srcfile_path_F77 \
16482
exclude_expsyms_F77 \
16483
include_expsyms_F77; do
16486
old_archive_cmds_F77 | \
16487
old_archive_from_new_cmds_F77 | \
16488
archive_cmds_F77 | \
16489
archive_expsym_cmds_F77 | \
16490
module_cmds_F77 | \
16491
module_expsym_cmds_F77 | \
16492
old_archive_from_expsyms_cmds_F77 | \
16493
export_symbols_cmds_F77 | \
16494
extract_expsyms_cmds | reload_cmds | finish_cmds | \
16495
postinstall_cmds | postuninstall_cmds | \
16496
old_postinstall_cmds | old_postuninstall_cmds | \
16497
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16498
# Double-quote double-evaled strings.
16499
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16502
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16508
*'\$0 --fallback-echo"')
16509
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16515
cat <<__EOF__ >> "$cfgfile"
16516
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16518
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16520
# Shell to use when invoking shell scripts.
16523
# Whether or not to build shared libraries.
16524
build_libtool_libs=$enable_shared
16526
# Whether or not to build static libraries.
16527
build_old_libs=$enable_static
16529
# Whether or not to add -lc for building shared libraries.
16530
build_libtool_need_lc=$archive_cmds_need_lc_F77
16532
# Whether or not to disallow shared libs when runtime libs are static
16533
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16535
# Whether or not to optimize for fast installation.
16536
fast_install=$enable_fast_install
16539
host_alias=$host_alias
16543
# The build system.
16544
build_alias=$build_alias
16548
# An echo program that does not interpret backslashes.
16553
AR_FLAGS=$lt_AR_FLAGS
16558
# LTCC compiler flags.
16559
LTCFLAGS=$lt_LTCFLAGS
16561
# A language-specific compiler.
16562
CC=$lt_compiler_F77
16564
# Is the compiler the GNU C compiler?
16570
# The linker used to build libraries.
16573
# Whether we need hard or soft links.
16576
# A BSD-compatible nm program.
16579
# A symbol stripping program
16582
# Used to examine libraries when file_magic_cmd begins "file"
16583
MAGIC_CMD=$MAGIC_CMD
16585
# Used on cygwin: DLL creation program.
16588
# Used on cygwin: object dumper.
16591
# Used on cygwin: assembler.
16594
# The name of the directory that contains temporary libtool files.
16597
# How to create reloadable object files.
16598
reload_flag=$lt_reload_flag
16599
reload_cmds=$lt_reload_cmds
16601
# How to pass a linker flag through the compiler.
16602
wl=$lt_lt_prog_compiler_wl_F77
16604
# Object file suffix (normally "o").
16605
objext="$ac_objext"
16607
# Old archive suffix (normally "a").
16610
# Shared library suffix (normally ".so").
16611
shrext_cmds='$shrext_cmds'
16613
# Executable file suffix (normally "").
16616
# Additional compiler flags for building library objects.
16617
pic_flag=$lt_lt_prog_compiler_pic_F77
16620
# What is the maximum length of a command?
16621
max_cmd_len=$lt_cv_sys_max_cmd_len
16623
# Does compiler simultaneously support -c and -o options?
16624
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16626
# Must we lock files when doing compilation?
16627
need_locks=$lt_need_locks
16629
# Do we need the lib prefix for modules?
16630
need_lib_prefix=$need_lib_prefix
16632
# Do we need a version for libraries?
16633
need_version=$need_version
16635
# Whether dlopen is supported.
16636
dlopen_support=$enable_dlopen
16638
# Whether dlopen of programs is supported.
16639
dlopen_self=$enable_dlopen_self
16641
# Whether dlopen of statically linked programs is supported.
16642
dlopen_self_static=$enable_dlopen_self_static
16644
# Compiler flag to prevent dynamic linking.
16645
link_static_flag=$lt_lt_prog_compiler_static_F77
16647
# Compiler flag to turn off builtin functions.
16648
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16650
# Compiler flag to allow reflexive dlopens.
16651
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16653
# Compiler flag to generate shared objects directly from archives.
16654
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16656
# Compiler flag to generate thread-safe objects.
16657
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16659
# Library versioning type.
16660
version_type=$version_type
16662
# Format of library name prefix.
16663
libname_spec=$lt_libname_spec
16665
# List of archive names. First name is the real one, the rest are links.
16666
# The last name is the one that the linker finds with -lNAME.
16667
library_names_spec=$lt_library_names_spec
16669
# The coded name of the library, if different from the real name.
16670
soname_spec=$lt_soname_spec
16672
# Commands used to build and install an old-style archive.
16674
old_archive_cmds=$lt_old_archive_cmds_F77
16675
old_postinstall_cmds=$lt_old_postinstall_cmds
16676
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16678
# Create an old-style archive from a shared archive.
16679
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16681
# Create a temporary old-style archive to link instead of a shared archive.
16682
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16684
# Commands used to build and install a shared archive.
16685
archive_cmds=$lt_archive_cmds_F77
16686
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16687
postinstall_cmds=$lt_postinstall_cmds
16688
postuninstall_cmds=$lt_postuninstall_cmds
16690
# Commands used to build a loadable module (assumed same as above if empty)
16691
module_cmds=$lt_module_cmds_F77
16692
module_expsym_cmds=$lt_module_expsym_cmds_F77
16694
# Commands to strip libraries.
16695
old_striplib=$lt_old_striplib
16696
striplib=$lt_striplib
16698
# Dependencies to place before the objects being linked to create a
16700
predep_objects=$lt_predep_objects_F77
16702
# Dependencies to place after the objects being linked to create a
16704
postdep_objects=$lt_postdep_objects_F77
16706
# Dependencies to place before the objects being linked to create a
16708
predeps=$lt_predeps_F77
16710
# Dependencies to place after the objects being linked to create a
16712
postdeps=$lt_postdeps_F77
16714
# The directories searched by this compiler when creating a shared
16716
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16718
# The library search path used internally by the compiler when linking
16719
# a shared library.
16720
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16722
# Method to check whether dependent libraries are shared objects.
16723
deplibs_check_method=$lt_deplibs_check_method
16725
# Command to use when deplibs_check_method == file_magic.
16726
file_magic_cmd=$lt_file_magic_cmd
16728
# Flag that allows shared libraries with undefined symbols to be built.
16729
allow_undefined_flag=$lt_allow_undefined_flag_F77
16731
# Flag that forces no undefined symbols.
16732
no_undefined_flag=$lt_no_undefined_flag_F77
16734
# Commands used to finish a libtool library installation in a directory.
16735
finish_cmds=$lt_finish_cmds
16737
# Same as above, but a single script fragment to be evaled but not shown.
16738
finish_eval=$lt_finish_eval
16740
# Take the output of nm and produce a listing of raw symbols and C names.
16741
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16743
# Transform the output of nm in a proper C declaration
16744
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16746
# Transform the output of nm in a C name address pair
16747
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16749
# This is the shared library runtime path variable.
16750
runpath_var=$runpath_var
16752
# This is the shared library path variable.
16753
shlibpath_var=$shlibpath_var
16755
# Is shlibpath searched before the hard-coded library search path?
16756
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16758
# How to hardcode a shared library path into an executable.
16759
hardcode_action=$hardcode_action_F77
16761
# Whether we should hardcode library paths into libraries.
16762
hardcode_into_libs=$hardcode_into_libs
16764
# Flag to hardcode \$libdir into a binary during linking.
16765
# This must work even if \$libdir does not exist.
16766
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16768
# If ld is used when linking, flag to hardcode \$libdir into
16769
# a binary during linking. This must work even if \$libdir does
16771
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16773
# Whether we need a single -rpath flag with a separated argument.
16774
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16776
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16777
# resulting binary.
16778
hardcode_direct=$hardcode_direct_F77
16780
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16781
# resulting binary.
16782
hardcode_minus_L=$hardcode_minus_L_F77
16784
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16785
# the resulting binary.
16786
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16788
# Set to yes if building a shared library automatically hardcodes DIR into the library
16789
# and all subsequent libraries and executables linked against it.
16790
hardcode_automatic=$hardcode_automatic_F77
16792
# Variables whose values should be saved in libtool wrapper scripts and
16793
# restored at relink time.
16794
variables_saved_for_relink="$variables_saved_for_relink"
16796
# Whether libtool must link a program against all its dependency libraries.
16797
link_all_deplibs=$link_all_deplibs_F77
16799
# Compile-time system search path for libraries
16800
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16802
# Run-time system search path for libraries
16803
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16805
# Fix the shell variable \$srcfile for the compiler.
16806
fix_srcfile_path=$lt_fix_srcfile_path
16808
# Set to yes if exported symbols are required.
16809
always_export_symbols=$always_export_symbols_F77
16811
# The commands to list exported symbols.
16812
export_symbols_cmds=$lt_export_symbols_cmds_F77
16814
# The commands to extract the exported symbol list from a shared archive.
16815
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16817
# Symbols that should not be listed in the preloaded symbols.
16818
exclude_expsyms=$lt_exclude_expsyms_F77
16820
# Symbols that must always be exported.
16821
include_expsyms=$lt_include_expsyms_F77
16823
# ### END LIBTOOL TAG CONFIG: $tagname
16829
# If there is no Makefile yet, we rely on a make rule to execute
16830
# `config.status --recheck' to rerun these tests and create the
16831
# libtool script then.
16832
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16833
if test -f "$ltmain_in"; then
16834
test -f Makefile && make "$ltmain"
16840
ac_cpp='$CPP $CPPFLAGS'
16841
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16842
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16843
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16853
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16856
# Source file extension for Java test sources.
16859
# Object file extension for compiled Java test sources.
16863
# Code to be used in simple compile tests
16864
lt_simple_compile_test_code="class foo {}"
16866
# Code to be used in simple link tests
16867
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16869
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16871
# If no C compiler was specified, use CC.
16874
# If no C compiler flags were specified, use CFLAGS.
16875
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16877
# Allow CC to be a program name with arguments.
16881
# save warnings/boilerplate of simple test code
16882
ac_outfile=conftest.$ac_objext
16883
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16884
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16885
_lt_compiler_boilerplate=`cat conftest.err`
16888
ac_outfile=conftest.$ac_objext
16889
echo "$lt_simple_link_test_code" >conftest.$ac_ext
16890
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16891
_lt_linker_boilerplate=`cat conftest.err`
16895
# Allow CC to be a program name with arguments.
16900
for cc_temp in $compiler""; do
16902
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16903
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16908
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16911
# GCJ did not exist at the time GCC didn't implicitly link libc in.
16912
archive_cmds_need_lc_GCJ=no
16914
old_archive_cmds_GCJ=$old_archive_cmds
16917
lt_prog_compiler_no_builtin_flag_GCJ=
16919
if test "$GCC" = yes; then
16920
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16923
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16924
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16925
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
16926
$as_echo_n "(cached) " >&6
16928
lt_cv_prog_compiler_rtti_exceptions=no
16929
ac_outfile=conftest.$ac_objext
16930
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16931
lt_compiler_flag="-fno-rtti -fno-exceptions"
16932
# Insert the option either (1) after the last *FLAGS variable, or
16933
# (2) before a word containing "conftest.", or (3) at the end.
16934
# Note that $ac_compile itself does not contain backslashes and begins
16935
# with a dollar sign (not a hyphen), so the echo should work correctly.
16936
# The option is referenced via a variable to avoid confusing sed.
16937
lt_compile=`echo "$ac_compile" | $SED \
16938
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16939
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16940
-e 's:$: $lt_compiler_flag:'`
16941
(eval echo "\"\$as_me:16941: $lt_compile\"" >&5)
16942
(eval "$lt_compile" 2>conftest.err)
16944
cat conftest.err >&5
16945
echo "$as_me:16945: \$? = $ac_status" >&5
16946
if (exit $ac_status) && test -s "$ac_outfile"; then
16947
# The compiler can only warn and ignore the option if not recognized
16948
# So say no if there are warnings other than the usual output.
16949
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16950
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16951
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16952
lt_cv_prog_compiler_rtti_exceptions=yes
16958
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16959
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16961
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16962
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16969
lt_prog_compiler_wl_GCJ=
16970
lt_prog_compiler_pic_GCJ=
16971
lt_prog_compiler_static_GCJ=
16973
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16974
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16976
if test "$GCC" = yes; then
16977
lt_prog_compiler_wl_GCJ='-Wl,'
16978
lt_prog_compiler_static_GCJ='-static'
16982
# All AIX code is PIC.
16983
if test "$host_cpu" = ia64; then
16984
# AIX 5 now supports IA64 processor
16985
lt_prog_compiler_static_GCJ='-Bstatic'
16990
# FIXME: we need at least 68020 code to build shared libraries, but
16991
# adding the `-m68020' flag to GCC prevents building anything better,
16993
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16996
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16997
# PIC is the default for these OSes.
17000
mingw* | cygwin* | pw32* | os2*)
17001
# This hack is so that the source file can tell whether it is being
17002
# built for inclusion in a dll (and should export symbols for example).
17003
# Although the cygwin gcc ignores -fPIC, still need this for old-style
17004
# (--disable-auto-import) libraries
17008
darwin* | rhapsody*)
17009
# PIC is the default on this platform
17010
# Common symbols not allowed in MH_DYLIB files
17011
lt_prog_compiler_pic_GCJ='-fno-common'
17015
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
17016
# Instead, we relocate shared libraries at runtime.
17020
# Just because we use GCC doesn't mean we suddenly get shared libraries
17021
# on systems that don't support them.
17022
lt_prog_compiler_can_build_shared_GCJ=no
17027
if test -d /usr/nec; then
17028
lt_prog_compiler_pic_GCJ=-Kconform_pic
17033
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17034
# not for PA HP-UX.
17040
lt_prog_compiler_pic_GCJ='-fPIC'
17046
lt_prog_compiler_pic_GCJ='-fPIC'
17050
# PORTME Check for flag to pass linker flags through the system compiler.
17053
lt_prog_compiler_wl_GCJ='-Wl,'
17054
if test "$host_cpu" = ia64; then
17055
# AIX 5 now supports IA64 processor
17056
lt_prog_compiler_static_GCJ='-Bstatic'
17058
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17062
# PIC is the default on this platform
17063
# Common symbols not allowed in MH_DYLIB files
17064
case $cc_basename in
17066
lt_prog_compiler_pic_GCJ='-qnocommon'
17067
lt_prog_compiler_wl_GCJ='-Wl,'
17072
mingw* | cygwin* | pw32* | os2*)
17073
# This hack is so that the source file can tell whether it is being
17074
# built for inclusion in a dll (and should export symbols for example).
17078
hpux9* | hpux10* | hpux11*)
17079
lt_prog_compiler_wl_GCJ='-Wl,'
17080
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17081
# not for PA HP-UX.
17087
lt_prog_compiler_pic_GCJ='+Z'
17090
# Is there a better lt_prog_compiler_static that works with the bundled CC?
17091
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17094
irix5* | irix6* | nonstopux*)
17095
lt_prog_compiler_wl_GCJ='-Wl,'
17096
# PIC (with -KPIC) is the default.
17097
lt_prog_compiler_static_GCJ='-non_shared'
17101
lt_prog_compiler_pic_GCJ='-KPIC'
17102
lt_prog_compiler_static_GCJ='-Bstatic'
17105
linux* | k*bsd*-gnu)
17106
case $cc_basename in
17108
lt_prog_compiler_wl_GCJ='-Wl,'
17109
lt_prog_compiler_pic_GCJ='-KPIC'
17110
lt_prog_compiler_static_GCJ='-static'
17112
pgcc* | pgf77* | pgf90* | pgf95*)
17113
# Portland Group compilers (*not* the Pentium gcc compiler,
17114
# which looks to be a dead project)
17115
lt_prog_compiler_wl_GCJ='-Wl,'
17116
lt_prog_compiler_pic_GCJ='-fpic'
17117
lt_prog_compiler_static_GCJ='-Bstatic'
17120
lt_prog_compiler_wl_GCJ='-Wl,'
17121
# All Alpha code is PIC.
17122
lt_prog_compiler_static_GCJ='-non_shared'
17125
case `$CC -V 2>&1 | sed 5q` in
17128
lt_prog_compiler_pic_GCJ='-KPIC'
17129
lt_prog_compiler_static_GCJ='-Bstatic'
17130
lt_prog_compiler_wl_GCJ='-Wl,'
17133
# Sun Fortran 8.3 passes all unrecognized flags to the linker
17134
lt_prog_compiler_pic_GCJ='-KPIC'
17135
lt_prog_compiler_static_GCJ='-Bstatic'
17136
lt_prog_compiler_wl_GCJ=''
17143
osf3* | osf4* | osf5*)
17144
lt_prog_compiler_wl_GCJ='-Wl,'
17145
# All OSF/1 code is PIC.
17146
lt_prog_compiler_static_GCJ='-non_shared'
17150
lt_prog_compiler_static_GCJ='-non_shared'
17154
lt_prog_compiler_pic_GCJ='-KPIC'
17155
lt_prog_compiler_static_GCJ='-Bstatic'
17156
case $cc_basename in
17157
f77* | f90* | f95*)
17158
lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17160
lt_prog_compiler_wl_GCJ='-Wl,';;
17165
lt_prog_compiler_wl_GCJ='-Qoption ld '
17166
lt_prog_compiler_pic_GCJ='-PIC'
17167
lt_prog_compiler_static_GCJ='-Bstatic'
17170
sysv4 | sysv4.2uw2* | sysv4.3*)
17171
lt_prog_compiler_wl_GCJ='-Wl,'
17172
lt_prog_compiler_pic_GCJ='-KPIC'
17173
lt_prog_compiler_static_GCJ='-Bstatic'
17177
if test -d /usr/nec ;then
17178
lt_prog_compiler_pic_GCJ='-Kconform_pic'
17179
lt_prog_compiler_static_GCJ='-Bstatic'
17183
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17184
lt_prog_compiler_wl_GCJ='-Wl,'
17185
lt_prog_compiler_pic_GCJ='-KPIC'
17186
lt_prog_compiler_static_GCJ='-Bstatic'
17190
lt_prog_compiler_wl_GCJ='-Wl,'
17191
lt_prog_compiler_can_build_shared_GCJ=no
17195
lt_prog_compiler_pic_GCJ='-pic'
17196
lt_prog_compiler_static_GCJ='-Bstatic'
17200
lt_prog_compiler_can_build_shared_GCJ=no
17205
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
17206
$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17209
# Check to make sure the PIC flag actually works.
17211
if test -n "$lt_prog_compiler_pic_GCJ"; then
17213
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17214
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17215
if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then :
17216
$as_echo_n "(cached) " >&6
17218
lt_cv_prog_compiler_pic_works_GCJ=no
17219
ac_outfile=conftest.$ac_objext
17220
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17221
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17222
# Insert the option either (1) after the last *FLAGS variable, or
17223
# (2) before a word containing "conftest.", or (3) at the end.
17224
# Note that $ac_compile itself does not contain backslashes and begins
17225
# with a dollar sign (not a hyphen), so the echo should work correctly.
17226
# The option is referenced via a variable to avoid confusing sed.
17227
lt_compile=`echo "$ac_compile" | $SED \
17228
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17229
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17230
-e 's:$: $lt_compiler_flag:'`
17231
(eval echo "\"\$as_me:17231: $lt_compile\"" >&5)
17232
(eval "$lt_compile" 2>conftest.err)
17234
cat conftest.err >&5
17235
echo "$as_me:17235: \$? = $ac_status" >&5
17236
if (exit $ac_status) && test -s "$ac_outfile"; then
17237
# The compiler can only warn and ignore the option if not recognized
17238
# So say no if there are warnings other than the usual output.
17239
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17240
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17241
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17242
lt_cv_prog_compiler_pic_works_GCJ=yes
17248
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17249
$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17251
if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17252
case $lt_prog_compiler_pic_GCJ in
17254
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17257
lt_prog_compiler_pic_GCJ=
17258
lt_prog_compiler_can_build_shared_GCJ=no
17263
# For platforms which do not support PIC, -DPIC is meaningless:
17265
lt_prog_compiler_pic_GCJ=
17268
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17273
# Check to make sure the static flag actually works.
17275
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17276
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17277
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17278
if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then :
17279
$as_echo_n "(cached) " >&6
17281
lt_cv_prog_compiler_static_works_GCJ=no
17282
save_LDFLAGS="$LDFLAGS"
17283
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17284
echo "$lt_simple_link_test_code" > conftest.$ac_ext
17285
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17286
# The linker can only warn and ignore the option if not recognized
17287
# So say no if there are warnings
17288
if test -s conftest.err; then
17289
# Append any errors to the config.log.
17290
cat conftest.err 1>&5
17291
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17292
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17293
if diff conftest.exp conftest.er2 >/dev/null; then
17294
lt_cv_prog_compiler_static_works_GCJ=yes
17297
lt_cv_prog_compiler_static_works_GCJ=yes
17301
LDFLAGS="$save_LDFLAGS"
17304
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17305
$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17307
if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17310
lt_prog_compiler_static_GCJ=
17314
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17315
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17316
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
17317
$as_echo_n "(cached) " >&6
17319
lt_cv_prog_compiler_c_o_GCJ=no
17320
$rm -r conftest 2>/dev/null
17324
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17326
lt_compiler_flag="-o out/conftest2.$ac_objext"
17327
# Insert the option either (1) after the last *FLAGS variable, or
17328
# (2) before a word containing "conftest.", or (3) at the end.
17329
# Note that $ac_compile itself does not contain backslashes and begins
17330
# with a dollar sign (not a hyphen), so the echo should work correctly.
17331
lt_compile=`echo "$ac_compile" | $SED \
17332
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17333
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17334
-e 's:$: $lt_compiler_flag:'`
17335
(eval echo "\"\$as_me:17335: $lt_compile\"" >&5)
17336
(eval "$lt_compile" 2>out/conftest.err)
17338
cat out/conftest.err >&5
17339
echo "$as_me:17339: \$? = $ac_status" >&5
17340
if (exit $ac_status) && test -s out/conftest2.$ac_objext
17342
# The compiler can only warn and ignore the option if not recognized
17343
# So say no if there are warnings
17344
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17345
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17346
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17347
lt_cv_prog_compiler_c_o_GCJ=yes
17352
# SGI C++ compiler will create directory out/ii_files/ for
17353
# template instantiation
17354
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17355
$rm out/* && rmdir out
17361
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17362
$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17365
hard_links="nottested"
17366
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17367
# do not overwrite the value of need_locks provided by the user
17368
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17369
$as_echo_n "checking if we can lock with hard links... " >&6; }
17372
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17374
ln conftest.a conftest.b 2>&5 || hard_links=no
17375
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17376
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17377
$as_echo "$hard_links" >&6; }
17378
if test "$hard_links" = no; then
17379
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17380
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17387
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17388
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17391
allow_undefined_flag_GCJ=
17392
enable_shared_with_static_runtimes_GCJ=no
17394
archive_expsym_cmds_GCJ=
17395
old_archive_From_new_cmds_GCJ=
17396
old_archive_from_expsyms_cmds_GCJ=
17397
export_dynamic_flag_spec_GCJ=
17398
whole_archive_flag_spec_GCJ=
17399
thread_safe_flag_spec_GCJ=
17400
hardcode_libdir_flag_spec_GCJ=
17401
hardcode_libdir_flag_spec_ld_GCJ=
17402
hardcode_libdir_separator_GCJ=
17403
hardcode_direct_GCJ=no
17404
hardcode_minus_L_GCJ=no
17405
hardcode_shlibpath_var_GCJ=unsupported
17406
link_all_deplibs_GCJ=unknown
17407
hardcode_automatic_GCJ=no
17409
module_expsym_cmds_GCJ=
17410
always_export_symbols_GCJ=no
17411
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17412
# include_expsyms should be a list of space-separated symbols to be *always*
17413
# included in the symbol list
17414
include_expsyms_GCJ=
17415
# exclude_expsyms can be an extended regexp of symbols to exclude
17416
# it will be wrapped by ` (' and `)$', so one must not match beginning or
17417
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17418
# as well as any symbol that contains `d'.
17419
exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17420
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17421
# platforms (ab)use it in PIC code, but their linkers get confused if
17422
# the symbol is explicitly referenced. Since portable code cannot
17423
# rely on this symbol name, it's probably fine to never include it in
17424
# preloaded symbol tables.
17425
# Exclude shared library initialization/finalization symbols.
17426
extract_expsyms_cmds=
17427
# Just being paranoid about ensuring that cc_basename is set.
17428
for cc_temp in $compiler""; do
17430
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17431
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17436
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17439
cygwin* | mingw* | pw32*)
17440
# FIXME: the MSVC++ port hasn't been tested in a loooong time
17441
# When not using gcc, we currently assume that we are using
17442
# Microsoft Visual C++.
17443
if test "$GCC" != yes; then
17448
# we just hope/assume this is gcc and not c89 (= MSVC++)
17457
if test "$with_gnu_ld" = yes; then
17458
# If archive_cmds runs LD, not CC, wlarc should be empty
17461
# Set some defaults for GNU ld with shared library support. These
17462
# are reset later if shared libraries are not supported. Putting them
17463
# here allows them to be overridden if necessary.
17464
runpath_var=LD_RUN_PATH
17465
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17466
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17467
# ancient GNU ld didn't support --whole-archive et. al.
17468
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17469
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17471
whole_archive_flag_spec_GCJ=
17473
supports_anon_versioning=no
17474
case `$LD -v 2>/dev/null` in
17475
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17476
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17477
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17478
*\ 2.11.*) ;; # other 2.11 versions
17479
*) supports_anon_versioning=yes ;;
17482
# See if GNU ld supports shared libraries.
17485
# On AIX/PPC, the GNU linker is very broken
17486
if test "$host_cpu" != ia64; then
17490
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17491
*** to be unable to reliably create shared libraries on AIX.
17492
*** Therefore, libtool is disabling shared libraries support. If you
17493
*** really care for shared libraries, you may want to modify your PATH
17494
*** so that a non-GNU linker is found, and then restart.
17501
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)'
17502
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17503
hardcode_minus_L_GCJ=yes
17505
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17506
# that the semantics of dynamic libraries on AmigaOS, at least up
17507
# to version 4, is to share data among multiple programs linked
17508
# with the same dynamic library. Since this doesn't match the
17509
# behavior of shared libraries on other platforms, we can't use
17515
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17516
allow_undefined_flag_GCJ=unsupported
17517
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17518
# support --undefined. This deserves some investigation. FIXME
17519
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17525
cygwin* | mingw* | pw32*)
17526
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17527
# as there is no search path for DLLs.
17528
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17529
allow_undefined_flag_GCJ=unsupported
17530
always_export_symbols_GCJ=no
17531
enable_shared_with_static_runtimes_GCJ=yes
17532
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17534
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17535
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17536
# If the export-symbols file already is a .def file (1st line
17537
# is EXPORTS), use it as is; otherwise, prepend...
17538
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17539
cp $export_symbols $output_objdir/$soname.def;
17541
echo EXPORTS > $output_objdir/$soname.def;
17542
cat $export_symbols >> $output_objdir/$soname.def;
17544
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17551
hardcode_direct_GCJ=no
17552
hardcode_shlibpath_var_GCJ=no
17553
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17554
export_dynamic_flag_spec_GCJ='${wl}-E'
17555
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17556
# Instead, shared libraries are loaded at an image base (0x10000000 by
17557
# default) and relocated if they conflict, which is a slow very memory
17558
# consuming and fragmenting process. To avoid this, we pick a random,
17559
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17560
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
17561
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'
17562
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'
17565
gnu* | linux* | k*bsd*-gnu)
17566
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17568
case $cc_basename,$host_cpu in
17569
pgcc*) # Portland Group C compiler
17570
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'
17571
tmp_addflag=' $pic_flag'
17573
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17574
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'
17575
tmp_addflag=' $pic_flag -Mnomain' ;;
17576
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17577
tmp_addflag=' -i_dynamic' ;;
17578
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17579
tmp_addflag=' -i_dynamic -nofor_main' ;;
17580
ifc* | ifort*) # Intel Fortran compiler
17581
tmp_addflag=' -nofor_main' ;;
17583
case `$CC -V 2>&1 | sed 5q` in
17584
*Sun\ C*) # Sun C 5.9
17585
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'
17586
tmp_sharedflag='-G' ;;
17587
*Sun\ F*) # Sun Fortran 8.3
17588
tmp_sharedflag='-G' ;;
17590
tmp_sharedflag='-shared' ;;
17592
archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17594
if test $supports_anon_versioning = yes; then
17595
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17596
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17597
$echo "local: *; };" >> $output_objdir/$libname.ver~
17598
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17606
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17607
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17610
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17611
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17616
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17620
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17621
*** create shared libraries on Solaris systems. Therefore, libtool
17622
*** is disabling shared libraries support. We urge you to upgrade GNU
17623
*** binutils to release 2.9.1 or newer. Another option is to modify
17624
*** your PATH or compiler configuration so that the native linker is
17625
*** used, and then restart.
17628
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17629
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17630
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17636
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17637
case `$LD -v 2>&1` in
17638
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17642
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17643
*** reliably create shared libraries on SCO systems. Therefore, libtool
17644
*** is disabling shared libraries support. We urge you to upgrade GNU
17645
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17646
*** your PATH or compiler configuration so that the native linker is
17647
*** used, and then restart.
17652
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17653
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17654
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17655
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17664
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17666
hardcode_direct_GCJ=yes
17667
hardcode_shlibpath_var_GCJ=no
17671
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17672
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17673
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17680
if test "$ld_shlibs_GCJ" = no; then
17682
hardcode_libdir_flag_spec_GCJ=
17683
export_dynamic_flag_spec_GCJ=
17684
whole_archive_flag_spec_GCJ=
17687
# PORTME fill in a description of your system's linker (not GNU ld)
17690
allow_undefined_flag_GCJ=unsupported
17691
always_export_symbols_GCJ=yes
17692
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'
17693
# Note: this linker hardcodes the directories in LIBPATH if there
17694
# are no directories specified by -L.
17695
hardcode_minus_L_GCJ=yes
17696
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17697
# Neither direct hardcoding nor static linking is supported with a
17699
hardcode_direct_GCJ=unsupported
17704
if test "$host_cpu" = ia64; then
17705
# On IA64, the linker does run time linking by default, so we don't
17706
# have to do anything special.
17707
aix_use_runtimelinking=no
17708
exp_sym_flag='-Bexport'
17711
# If we're using GNU nm, then we don't want the "-C" option.
17712
# -C means demangle to AIX nm, but means don't demangle with GNU nm
17713
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17714
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'
17716
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'
17718
aix_use_runtimelinking=no
17720
# Test if we are trying to use run time linking or normal
17721
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17722
# need to do runtime linking.
17723
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17724
for ld_flag in $LDFLAGS; do
17725
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17726
aix_use_runtimelinking=yes
17733
exp_sym_flag='-bexport'
17734
no_entry_flag='-bnoentry'
17737
# When large executables or shared objects are built, AIX ld can
17738
# have problems creating the table of contents. If linking a library
17739
# or program results in "error TOC overflow" add -mminimal-toc to
17740
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17741
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17743
archive_cmds_GCJ=''
17744
hardcode_direct_GCJ=yes
17745
hardcode_libdir_separator_GCJ=':'
17746
link_all_deplibs_GCJ=yes
17748
if test "$GCC" = yes; then
17749
case $host_os in aix4.[012]|aix4.[012].*)
17750
# We only want to do this on AIX 4.2 and lower, the check
17751
# below for broken collect2 doesn't work under 4.3+
17752
collect2name=`${CC} -print-prog-name=collect2`
17753
if test -f "$collect2name" && \
17754
strings "$collect2name" | grep resolve_lib_name >/dev/null
17756
# We have reworked collect2
17759
# We have old collect2
17760
hardcode_direct_GCJ=unsupported
17761
# It fails to find uninstalled libraries when the uninstalled
17762
# path is not listed in the libpath. Setting hardcode_minus_L
17763
# to unsupported forces relinking
17764
hardcode_minus_L_GCJ=yes
17765
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17766
hardcode_libdir_separator_GCJ=
17770
shared_flag='-shared'
17771
if test "$aix_use_runtimelinking" = yes; then
17772
shared_flag="$shared_flag "'${wl}-G'
17776
if test "$host_cpu" = ia64; then
17777
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17778
# chokes on -Wl,-G. The following line is correct:
17781
if test "$aix_use_runtimelinking" = yes; then
17782
shared_flag='${wl}-G'
17784
shared_flag='${wl}-bM:SRE'
17789
# It seems that -bexpall does not export symbols beginning with
17790
# underscore (_), so it is better to generate a list of symbols to export.
17791
always_export_symbols_GCJ=yes
17792
if test "$aix_use_runtimelinking" = yes; then
17793
# Warning - without using the other runtime loading flags (-brtl),
17794
# -berok will link without error, but may produce a broken library.
17795
allow_undefined_flag_GCJ='-berok'
17796
# Determine the default libpath from the value encoded in an empty executable.
17797
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17798
/* end confdefs.h. */
17808
if ac_fn_c_try_link "$LINENO"; then :
17810
lt_aix_libpath_sed='
17811
/Import File Strings/,/^$/ {
17817
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17818
# Check for a 64-bit object if we didn't find anything.
17819
if test -z "$aix_libpath"; then
17820
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17823
rm -f core conftest.err conftest.$ac_objext \
17824
conftest$ac_exeext conftest.$ac_ext
17825
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17827
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17828
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"
17830
if test "$host_cpu" = ia64; then
17831
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17832
allow_undefined_flag_GCJ="-z nodefs"
17833
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"
17835
# Determine the default libpath from the value encoded in an empty executable.
17836
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17837
/* end confdefs.h. */
17847
if ac_fn_c_try_link "$LINENO"; then :
17849
lt_aix_libpath_sed='
17850
/Import File Strings/,/^$/ {
17856
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17857
# Check for a 64-bit object if we didn't find anything.
17858
if test -z "$aix_libpath"; then
17859
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17862
rm -f core conftest.err conftest.$ac_objext \
17863
conftest$ac_exeext conftest.$ac_ext
17864
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17866
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17867
# Warning - without using the other run time loading flags,
17868
# -berok will link without error, but may produce a broken library.
17869
no_undefined_flag_GCJ=' ${wl}-bernotok'
17870
allow_undefined_flag_GCJ=' ${wl}-berok'
17871
# Exported symbols can be pulled into shared objects from archives
17872
whole_archive_flag_spec_GCJ='$convenience'
17873
archive_cmds_need_lc_GCJ=yes
17874
# This is similar to how AIX traditionally builds its shared libraries.
17875
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'
17881
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)'
17882
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17883
hardcode_minus_L_GCJ=yes
17884
# see comment about different semantics on the GNU ld section
17889
export_dynamic_flag_spec_GCJ=-rdynamic
17892
cygwin* | mingw* | pw32*)
17893
# When not using gcc, we currently assume that we are using
17894
# Microsoft Visual C++.
17895
# hardcode_libdir_flag_spec is actually meaningless, as there is
17896
# no search path for DLLs.
17897
hardcode_libdir_flag_spec_GCJ=' '
17898
allow_undefined_flag_GCJ=unsupported
17899
# Tell ltmain to make .lib files, not .a files.
17901
# Tell ltmain to make .dll files, not .so files.
17903
# FIXME: Setting linknames here is a bad hack.
17904
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17905
# The linker will automatically build a .lib file if we build a DLL.
17906
old_archive_From_new_cmds_GCJ='true'
17907
# FIXME: Should let the user specify the lib program.
17908
old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17909
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17910
enable_shared_with_static_runtimes_GCJ=yes
17913
darwin* | rhapsody*)
17915
rhapsody* | darwin1.[012])
17916
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17919
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17920
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17922
case ${MACOSX_DEPLOYMENT_TARGET} in
17924
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17927
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17933
archive_cmds_need_lc_GCJ=no
17934
hardcode_direct_GCJ=no
17935
hardcode_automatic_GCJ=yes
17936
hardcode_shlibpath_var_GCJ=unsupported
17937
whole_archive_flag_spec_GCJ=''
17938
link_all_deplibs_GCJ=yes
17939
if test "$GCC" = yes ; then
17940
output_verbose_link_cmd='echo'
17941
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}"
17942
module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17943
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}"
17944
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}"
17946
case $cc_basename in
17948
output_verbose_link_cmd='echo'
17949
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17950
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17951
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17952
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}'
17953
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}'
17963
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17964
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17965
hardcode_shlibpath_var_GCJ=no
17972
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17973
# support. Future versions do this automatically, but an explicit c++rt0.o
17974
# does not break anything, and helps significantly (at the cost of a little
17977
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17978
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17979
hardcode_direct_GCJ=yes
17980
hardcode_shlibpath_var_GCJ=no
17983
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
17985
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17986
hardcode_direct_GCJ=yes
17987
hardcode_minus_L_GCJ=yes
17988
hardcode_shlibpath_var_GCJ=no
17991
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17992
freebsd* | dragonfly*)
17993
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17994
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17995
hardcode_direct_GCJ=yes
17996
hardcode_shlibpath_var_GCJ=no
18000
if test "$GCC" = yes; then
18001
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'
18003
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'
18005
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18006
hardcode_libdir_separator_GCJ=:
18007
hardcode_direct_GCJ=yes
18009
# hardcode_minus_L: Not really in the search PATH,
18010
# but as the default location of the library.
18011
hardcode_minus_L_GCJ=yes
18012
export_dynamic_flag_spec_GCJ='${wl}-E'
18016
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18017
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18019
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18021
if test "$with_gnu_ld" = no; then
18022
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18023
hardcode_libdir_separator_GCJ=:
18025
hardcode_direct_GCJ=yes
18026
export_dynamic_flag_spec_GCJ='${wl}-E'
18028
# hardcode_minus_L: Not really in the search PATH,
18029
# but as the default location of the library.
18030
hardcode_minus_L_GCJ=yes
18035
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18038
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18041
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18044
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18050
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18053
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18056
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18060
if test "$with_gnu_ld" = no; then
18061
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18062
hardcode_libdir_separator_GCJ=:
18066
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18067
hardcode_direct_GCJ=no
18068
hardcode_shlibpath_var_GCJ=no
18071
hardcode_direct_GCJ=yes
18072
export_dynamic_flag_spec_GCJ='${wl}-E'
18074
# hardcode_minus_L: Not really in the search PATH,
18075
# but as the default location of the library.
18076
hardcode_minus_L_GCJ=yes
18082
irix5* | irix6* | nonstopux*)
18083
if test "$GCC" = yes; then
18084
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'
18086
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'
18087
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18089
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18090
hardcode_libdir_separator_GCJ=:
18091
link_all_deplibs_GCJ=yes
18095
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18096
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18098
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18100
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18101
hardcode_direct_GCJ=yes
18102
hardcode_shlibpath_var_GCJ=no
18106
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18107
hardcode_direct_GCJ=yes
18108
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18109
hardcode_libdir_separator_GCJ=:
18110
hardcode_shlibpath_var_GCJ=no
18114
if test -f /usr/libexec/ld.so; then
18115
hardcode_direct_GCJ=yes
18116
hardcode_shlibpath_var_GCJ=no
18117
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18118
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18119
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18120
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18121
export_dynamic_flag_spec_GCJ='${wl}-E'
18124
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18125
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18126
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18129
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18130
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18140
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18141
hardcode_minus_L_GCJ=yes
18142
allow_undefined_flag_GCJ=unsupported
18143
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'
18144
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18148
if test "$GCC" = yes; then
18149
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18150
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'
18152
allow_undefined_flag_GCJ=' -expect_unresolved \*'
18153
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'
18155
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18156
hardcode_libdir_separator_GCJ=:
18159
osf4* | osf5*) # as osf3* with the addition of -msym flag
18160
if test "$GCC" = yes; then
18161
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18162
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'
18163
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18165
allow_undefined_flag_GCJ=' -expect_unresolved \*'
18166
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'
18167
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~
18168
$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'
18170
# Both c and cxx compiler support -rpath directly
18171
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18173
hardcode_libdir_separator_GCJ=:
18177
no_undefined_flag_GCJ=' -z text'
18178
if test "$GCC" = yes; then
18180
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18181
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18182
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18185
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18186
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18187
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18189
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18190
hardcode_shlibpath_var_GCJ=no
18192
solaris2.[0-5] | solaris2.[0-5].*) ;;
18194
# The compiler driver will combine and reorder linker options,
18195
# but understands `-z linker_flag'. GCC discards it without `$wl',
18196
# but is careful enough not to reorder.
18197
# Supported since Solaris 2.6 (maybe 2.5.1?)
18198
if test "$GCC" = yes; then
18199
whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18201
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18205
link_all_deplibs_GCJ=yes
18209
if test "x$host_vendor" = xsequent; then
18210
# Use $CC to link under sequent, because it throws in some extra .o
18211
# files that make .init and .fini sections work.
18212
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18214
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18216
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18217
hardcode_direct_GCJ=yes
18218
hardcode_minus_L_GCJ=yes
18219
hardcode_shlibpath_var_GCJ=no
18223
case $host_vendor in
18225
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18226
hardcode_direct_GCJ=yes # is this really true???
18229
## LD is ld it makes a PLAMLIB
18230
## CC just makes a GrossModule.
18231
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18232
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18233
hardcode_direct_GCJ=no
18236
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18237
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18240
runpath_var='LD_RUN_PATH'
18241
hardcode_shlibpath_var_GCJ=no
18245
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18246
hardcode_shlibpath_var_GCJ=no
18247
export_dynamic_flag_spec_GCJ='-Bexport'
18251
if test -d /usr/nec; then
18252
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18253
hardcode_shlibpath_var_GCJ=no
18254
runpath_var=LD_RUN_PATH
18255
hardcode_runpath_var=yes
18260
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18261
no_undefined_flag_GCJ='${wl}-z,text'
18262
archive_cmds_need_lc_GCJ=no
18263
hardcode_shlibpath_var_GCJ=no
18264
runpath_var='LD_RUN_PATH'
18266
if test "$GCC" = yes; then
18267
archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18268
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18270
archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18271
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18275
sysv5* | sco3.2v5* | sco5v6*)
18276
# Note: We can NOT use -z defs as we might desire, because we do not
18277
# link with -lc, and that would cause any symbols used from libc to
18278
# always be unresolved, which means just about no library would
18279
# ever link correctly. If we're not using GNU ld we use -z text
18280
# though, which does catch some bad symbols but isn't as heavy-handed
18282
no_undefined_flag_GCJ='${wl}-z,text'
18283
allow_undefined_flag_GCJ='${wl}-z,nodefs'
18284
archive_cmds_need_lc_GCJ=no
18285
hardcode_shlibpath_var_GCJ=no
18286
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18287
hardcode_libdir_separator_GCJ=':'
18288
link_all_deplibs_GCJ=yes
18289
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18290
runpath_var='LD_RUN_PATH'
18292
if test "$GCC" = yes; then
18293
archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18294
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18296
archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18297
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18302
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18303
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18304
hardcode_shlibpath_var_GCJ=no
18313
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
18314
$as_echo "$ld_shlibs_GCJ" >&6; }
18315
test "$ld_shlibs_GCJ" = no && can_build_shared=no
18318
# Do we need to explicitly link libc?
18320
case "x$archive_cmds_need_lc_GCJ" in
18322
# Assume -lc should be added
18323
archive_cmds_need_lc_GCJ=yes
18325
if test "$enable_shared" = yes && test "$GCC" = yes; then
18326
case $archive_cmds_GCJ in
18328
# FIXME: we may have to deal with multi-command sequences.
18331
# Test whether the compiler implicitly links with -lc since on some
18332
# systems, -lgcc has to come before -lc. If gcc already passes -lc
18333
# to ld, don't add -lc before -lgcc.
18334
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18335
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18337
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18339
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18340
(eval $ac_compile) 2>&5
18342
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18343
test $ac_status = 0; } 2>conftest.err; then
18346
libobjs=conftest.$ac_objext
18348
wl=$lt_prog_compiler_wl_GCJ
18349
pic_flag=$lt_prog_compiler_pic_GCJ
18355
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18356
allow_undefined_flag_GCJ=
18357
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18358
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18360
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18361
test $ac_status = 0; }
18363
archive_cmds_need_lc_GCJ=no
18365
archive_cmds_need_lc_GCJ=yes
18367
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18369
cat conftest.err 1>&5
18372
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_GCJ" >&5
18373
$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
18380
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18381
$as_echo_n "checking dynamic linker characteristics... " >&6; }
18382
library_names_spec=
18383
libname_spec='lib$name'
18387
postuninstall_cmds=
18391
shlibpath_overrides_runpath=unknown
18393
dynamic_linker="$host_os ld.so"
18394
sys_lib_dlsearch_path_spec="/lib /usr/lib"
18396
need_lib_prefix=unknown
18397
hardcode_into_libs=no
18399
# when you set need_version to no, make sure it does not cause -set_version
18400
# flags to be left without arguments
18401
need_version=unknown
18406
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18407
shlibpath_var=LIBPATH
18409
# AIX 3 has no versioning support, so we append a major version to the name.
18410
soname_spec='${libname}${release}${shared_ext}$major'
18417
hardcode_into_libs=yes
18418
if test "$host_cpu" = ia64; then
18419
# AIX 5 supports IA64
18420
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18421
shlibpath_var=LD_LIBRARY_PATH
18423
# With GCC up to 2.95.x, collect2 would create an import file
18424
# for dependence libraries. The import file would start with
18425
# the line `#! .'. This would cause the generated library to
18426
# depend on `.', always an invalid library. This was fixed in
18427
# development snapshots of GCC prior to 3.0.
18429
aix4 | aix4.[01] | aix4.[01].*)
18430
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18432
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18435
can_build_shared=no
18439
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18440
# soname into executable. Probably we can add versioning support to
18441
# collect2, so additional links can be useful in future.
18442
if test "$aix_use_runtimelinking" = yes; then
18443
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
18444
# instead of lib<name>.a to let people know that these are not
18445
# typical AIX shared libraries.
18446
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18448
# We preserve .a as extension for shared libraries through AIX4.2
18449
# and later when we are not doing run time linking.
18450
library_names_spec='${libname}${release}.a $libname.a'
18451
soname_spec='${libname}${release}${shared_ext}$major'
18453
shlibpath_var=LIBPATH
18458
library_names_spec='$libname.ixlibrary $libname.a'
18459
# Create ${libname}_ixlibrary.a entries in /sys/libs.
18460
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'
18464
library_names_spec='${libname}${shared_ext}'
18465
dynamic_linker="$host_os ld.so"
18466
shlibpath_var=LIBRARY_PATH
18472
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18473
soname_spec='${libname}${release}${shared_ext}$major'
18474
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18475
shlibpath_var=LD_LIBRARY_PATH
18476
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18477
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18478
# the default ld.so.conf also contains /usr/contrib/lib and
18479
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18480
# libtool to hard-code these into programs
18483
cygwin* | mingw* | pw32*)
18484
version_type=windows
18489
case $GCC,$host_os in
18490
yes,cygwin* | yes,mingw* | yes,pw32*)
18491
library_names_spec='$libname.dll.a'
18492
# DLL is installed to $(libdir)/../bin by postinstall_cmds
18493
postinstall_cmds='base_file=`basename \${file}`~
18494
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18495
dldir=$destdir/`dirname \$dlpath`~
18496
test -d \$dldir || mkdir -p \$dldir~
18497
$install_prog $dir/$dlname \$dldir/$dlname~
18498
chmod a+x \$dldir/$dlname'
18499
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18500
dlpath=$dir/\$dldll~
18502
shlibpath_overrides_runpath=yes
18506
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
18507
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18508
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18511
# MinGW DLLs use traditional 'lib' prefix
18512
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18513
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18514
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18515
# It is most probably a Windows format PATH printed by
18516
# mingw gcc, but we are running on Cygwin. Gcc prints its search
18517
# path with ; separators, and with drive letters. We can handle the
18518
# drive letters (cygwin fileutils understands them), so leave them,
18519
# especially as we might pass files found there to a mingw objdump,
18520
# which wouldn't understand a cygwinified path. Ahh.
18521
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18523
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18527
# pw32 DLLs use 'pw' prefix rather than 'lib'
18528
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18534
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18537
dynamic_linker='Win32 ld.exe'
18538
# FIXME: first we should search . and the directory the executable is in
18542
darwin* | rhapsody*)
18543
dynamic_linker="$host_os dyld"
18544
version_type=darwin
18547
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18548
soname_spec='${libname}${release}${major}$shared_ext'
18549
shlibpath_overrides_runpath=yes
18550
shlibpath_var=DYLD_LIBRARY_PATH
18551
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18553
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18560
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18561
soname_spec='${libname}${release}${shared_ext}$major'
18562
shlibpath_var=LD_LIBRARY_PATH
18569
freebsd* | dragonfly*)
18570
# DragonFly does not have aout. When/if they implement a new
18571
# versioning mechanism, adjust this.
18572
if test -x /usr/bin/objformat; then
18573
objformat=`/usr/bin/objformat`
18576
freebsd[123]*) objformat=aout ;;
18577
*) objformat=elf ;;
18580
version_type=freebsd-$objformat
18581
case $version_type in
18583
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18588
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18592
shlibpath_var=LD_LIBRARY_PATH
18595
shlibpath_overrides_runpath=yes
18597
freebsd3.[01]* | freebsdelf3.[01]*)
18598
shlibpath_overrides_runpath=yes
18599
hardcode_into_libs=yes
18601
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18602
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18603
shlibpath_overrides_runpath=no
18604
hardcode_into_libs=yes
18606
*) # from 4.6 on, and DragonFly
18607
shlibpath_overrides_runpath=yes
18608
hardcode_into_libs=yes
18617
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18618
soname_spec='${libname}${release}${shared_ext}$major'
18619
shlibpath_var=LD_LIBRARY_PATH
18620
hardcode_into_libs=yes
18623
hpux9* | hpux10* | hpux11*)
18624
# Give a soname corresponding to the major version so that dld.sl refuses to
18625
# link against other versions.
18632
hardcode_into_libs=yes
18633
dynamic_linker="$host_os dld.so"
18634
shlibpath_var=LD_LIBRARY_PATH
18635
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18636
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18637
soname_spec='${libname}${release}${shared_ext}$major'
18638
if test "X$HPUX_IA64_MODE" = X32; then
18639
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18641
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18643
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18647
hardcode_into_libs=yes
18648
dynamic_linker="$host_os dld.sl"
18649
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18650
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18651
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18652
soname_spec='${libname}${release}${shared_ext}$major'
18653
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18654
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18658
dynamic_linker="$host_os dld.sl"
18659
shlibpath_var=SHLIB_PATH
18660
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18661
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18662
soname_spec='${libname}${release}${shared_ext}$major'
18665
# HP-UX runs *really* slowly unless shared libraries are mode 555.
18666
postinstall_cmds='chmod 555 $lib'
18673
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18674
soname_spec='${libname}${release}${shared_ext}$major'
18675
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18676
shlibpath_var=LD_LIBRARY_PATH
18677
shlibpath_overrides_runpath=no
18678
hardcode_into_libs=yes
18681
irix5* | irix6* | nonstopux*)
18683
nonstopux*) version_type=nonstopux ;;
18685
if test "$lt_cv_prog_gnu_ld" = yes; then
18693
soname_spec='${libname}${release}${shared_ext}$major'
18694
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18696
irix5* | nonstopux*)
18697
libsuff= shlibsuff=
18700
case $LD in # libtool.m4 will add one of these switches to LD
18701
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18702
libsuff= shlibsuff= libmagic=32-bit;;
18703
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18704
libsuff=32 shlibsuff=N32 libmagic=N32;;
18705
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18706
libsuff=64 shlibsuff=64 libmagic=64-bit;;
18707
*) libsuff= shlibsuff= libmagic=never-match;;
18711
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18712
shlibpath_overrides_runpath=no
18713
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18714
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18715
hardcode_into_libs=yes
18718
# No shared lib support for Linux oldld, aout, or coff.
18719
linux*oldld* | linux*aout* | linux*coff*)
18723
# This must be Linux ELF.
18724
linux* | k*bsd*-gnu)
18728
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18729
soname_spec='${libname}${release}${shared_ext}$major'
18730
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18731
shlibpath_var=LD_LIBRARY_PATH
18732
shlibpath_overrides_runpath=no
18733
# This implies no fast_install, which is unacceptable.
18734
# Some rework will be needed to allow for fast_install
18735
# before this can be enabled.
18736
hardcode_into_libs=yes
18738
# Append ld.so.conf contents to the search path
18739
if test -f /etc/ld.so.conf; then
18740
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' ' '`
18741
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18744
# We used to test for /lib/ld.so.1 and disable shared libraries on
18745
# powerpc, because MkLinux only supported shared libraries with the
18746
# GNU dynamic linker. Since this was broken with cross compilers,
18747
# most powerpc-linux boxes support dynamic linking these days and
18748
# people can always --disable-shared, the test was removed, and we
18749
# assume the GNU/Linux dynamic linker is in use.
18750
dynamic_linker='GNU/Linux ld.so'
18757
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18758
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18759
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18760
dynamic_linker='NetBSD (a.out) ld.so'
18762
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18763
soname_spec='${libname}${release}${shared_ext}$major'
18764
dynamic_linker='NetBSD ld.elf_so'
18766
shlibpath_var=LD_LIBRARY_PATH
18767
shlibpath_overrides_runpath=yes
18768
hardcode_into_libs=yes
18773
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18774
shlibpath_var=LD_LIBRARY_PATH
18775
shlibpath_overrides_runpath=yes
18782
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18783
soname_spec='${libname}${release}${shared_ext}$major'
18784
shlibpath_var=LD_LIBRARY_PATH
18785
shlibpath_overrides_runpath=yes
18790
sys_lib_dlsearch_path_spec="/usr/lib"
18792
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18794
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18795
*) need_version=no ;;
18797
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18798
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18799
shlibpath_var=LD_LIBRARY_PATH
18800
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18802
openbsd2.[89] | openbsd2.[89].*)
18803
shlibpath_overrides_runpath=no
18806
shlibpath_overrides_runpath=yes
18810
shlibpath_overrides_runpath=yes
18815
libname_spec='$name'
18818
library_names_spec='$libname${shared_ext} $libname.a'
18819
dynamic_linker='OS/2 ld.exe'
18820
shlibpath_var=LIBPATH
18823
osf3* | osf4* | osf5*)
18827
soname_spec='${libname}${release}${shared_ext}$major'
18828
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18829
shlibpath_var=LD_LIBRARY_PATH
18830
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18831
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18842
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18843
soname_spec='${libname}${release}${shared_ext}$major'
18844
shlibpath_var=LD_LIBRARY_PATH
18845
shlibpath_overrides_runpath=yes
18846
hardcode_into_libs=yes
18847
# ldd complains unless libraries are executable
18848
postinstall_cmds='chmod +x $lib'
18853
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18854
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18855
shlibpath_var=LD_LIBRARY_PATH
18856
shlibpath_overrides_runpath=yes
18857
if test "$with_gnu_ld" = yes; then
18865
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18866
soname_spec='${libname}${release}${shared_ext}$major'
18867
shlibpath_var=LD_LIBRARY_PATH
18868
case $host_vendor in
18870
shlibpath_overrides_runpath=no
18872
export_dynamic_flag_spec='${wl}-Blargedynsym'
18873
runpath_var=LD_RUN_PATH
18881
shlibpath_overrides_runpath=no
18882
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18888
if test -d /usr/nec ;then
18890
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18891
soname_spec='$libname${shared_ext}.$major'
18892
shlibpath_var=LD_LIBRARY_PATH
18896
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18897
version_type=freebsd-elf
18900
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18901
soname_spec='${libname}${release}${shared_ext}$major'
18902
shlibpath_var=LD_LIBRARY_PATH
18903
hardcode_into_libs=yes
18904
if test "$with_gnu_ld" = yes; then
18905
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18906
shlibpath_overrides_runpath=no
18908
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18909
shlibpath_overrides_runpath=yes
18912
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18916
sys_lib_dlsearch_path_spec='/usr/lib'
18921
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18922
soname_spec='${libname}${release}${shared_ext}$major'
18923
shlibpath_var=LD_LIBRARY_PATH
18930
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18931
$as_echo "$dynamic_linker" >&6; }
18932
test "$dynamic_linker" = no && can_build_shared=no
18934
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then :
18935
$as_echo_n "(cached) " >&6
18937
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18940
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18941
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then :
18942
$as_echo_n "(cached) " >&6
18944
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18947
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18949
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18950
if test "$GCC" = yes; then
18951
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18954
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18955
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18956
hardcode_action_GCJ=
18957
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18958
test -n "$runpath_var_GCJ" || \
18959
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18961
# We can hardcode non-existant directories.
18962
if test "$hardcode_direct_GCJ" != no &&
18963
# If the only mechanism to avoid hardcoding is shlibpath_var, we
18964
# have to relink, otherwise we might link with an installed library
18965
# when we should be linking with a yet-to-be-installed one
18966
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18967
test "$hardcode_minus_L_GCJ" != no; then
18968
# Linking always hardcodes the temporary library directory.
18969
hardcode_action_GCJ=relink
18971
# We can link without hardcoding, and we can hardcode nonexisting dirs.
18972
hardcode_action_GCJ=immediate
18975
# We cannot hardcode anything, or else we can only hardcode existing
18977
hardcode_action_GCJ=unsupported
18979
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
18980
$as_echo "$hardcode_action_GCJ" >&6; }
18982
if test "$hardcode_action_GCJ" = relink; then
18983
# Fast installation is not supported
18984
enable_fast_install=no
18985
elif test "$shlibpath_overrides_runpath" = yes ||
18986
test "$enable_shared" = no; then
18987
# Fast installation is not necessary
18988
enable_fast_install=needless
18992
# The else clause should only fire when bootstrapping the
18993
# libtool distribution, otherwise you forgot to ship ltmain.sh
18994
# with your package, and you will get complaints that there are
18995
# no rules to generate ltmain.sh.
18996
if test -f "$ltmain"; then
18997
# See if we are running on zsh, and set the options which allow our commands through
18998
# without removal of \ escapes.
18999
if test -n "${ZSH_VERSION+set}" ; then
19000
setopt NO_GLOB_SUBST
19002
# Now quote all the things that may contain metacharacters while being
19003
# careful not to overquote the AC_SUBSTed values. We take copies of the
19004
# variables and quote the copies for generation of the libtool script.
19005
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19007
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19008
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19009
deplibs_check_method reload_flag reload_cmds need_locks \
19010
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19011
lt_cv_sys_global_symbol_to_c_name_address \
19012
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19013
old_postinstall_cmds old_postuninstall_cmds \
19017
lt_prog_compiler_wl_GCJ \
19018
lt_prog_compiler_pic_GCJ \
19019
lt_prog_compiler_static_GCJ \
19020
lt_prog_compiler_no_builtin_flag_GCJ \
19021
export_dynamic_flag_spec_GCJ \
19022
thread_safe_flag_spec_GCJ \
19023
whole_archive_flag_spec_GCJ \
19024
enable_shared_with_static_runtimes_GCJ \
19025
old_archive_cmds_GCJ \
19026
old_archive_from_new_cmds_GCJ \
19027
predep_objects_GCJ \
19028
postdep_objects_GCJ \
19031
compiler_lib_search_path_GCJ \
19032
compiler_lib_search_dirs_GCJ \
19034
archive_expsym_cmds_GCJ \
19035
postinstall_cmds_GCJ \
19036
postuninstall_cmds_GCJ \
19037
old_archive_from_expsyms_cmds_GCJ \
19038
allow_undefined_flag_GCJ \
19039
no_undefined_flag_GCJ \
19040
export_symbols_cmds_GCJ \
19041
hardcode_libdir_flag_spec_GCJ \
19042
hardcode_libdir_flag_spec_ld_GCJ \
19043
hardcode_libdir_separator_GCJ \
19044
hardcode_automatic_GCJ \
19046
module_expsym_cmds_GCJ \
19047
lt_cv_prog_compiler_c_o_GCJ \
19048
fix_srcfile_path_GCJ \
19049
exclude_expsyms_GCJ \
19050
include_expsyms_GCJ; do
19053
old_archive_cmds_GCJ | \
19054
old_archive_from_new_cmds_GCJ | \
19055
archive_cmds_GCJ | \
19056
archive_expsym_cmds_GCJ | \
19057
module_cmds_GCJ | \
19058
module_expsym_cmds_GCJ | \
19059
old_archive_from_expsyms_cmds_GCJ | \
19060
export_symbols_cmds_GCJ | \
19061
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19062
postinstall_cmds | postuninstall_cmds | \
19063
old_postinstall_cmds | old_postuninstall_cmds | \
19064
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19065
# Double-quote double-evaled strings.
19066
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19069
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19075
*'\$0 --fallback-echo"')
19076
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19082
cat <<__EOF__ >> "$cfgfile"
19083
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19085
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19087
# Shell to use when invoking shell scripts.
19090
# Whether or not to build shared libraries.
19091
build_libtool_libs=$enable_shared
19093
# Whether or not to build static libraries.
19094
build_old_libs=$enable_static
19096
# Whether or not to add -lc for building shared libraries.
19097
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19099
# Whether or not to disallow shared libs when runtime libs are static
19100
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19102
# Whether or not to optimize for fast installation.
19103
fast_install=$enable_fast_install
19106
host_alias=$host_alias
19110
# The build system.
19111
build_alias=$build_alias
19115
# An echo program that does not interpret backslashes.
19120
AR_FLAGS=$lt_AR_FLAGS
19125
# LTCC compiler flags.
19126
LTCFLAGS=$lt_LTCFLAGS
19128
# A language-specific compiler.
19129
CC=$lt_compiler_GCJ
19131
# Is the compiler the GNU C compiler?
19137
# The linker used to build libraries.
19140
# Whether we need hard or soft links.
19143
# A BSD-compatible nm program.
19146
# A symbol stripping program
19149
# Used to examine libraries when file_magic_cmd begins "file"
19150
MAGIC_CMD=$MAGIC_CMD
19152
# Used on cygwin: DLL creation program.
19155
# Used on cygwin: object dumper.
19158
# Used on cygwin: assembler.
19161
# The name of the directory that contains temporary libtool files.
19164
# How to create reloadable object files.
19165
reload_flag=$lt_reload_flag
19166
reload_cmds=$lt_reload_cmds
19168
# How to pass a linker flag through the compiler.
19169
wl=$lt_lt_prog_compiler_wl_GCJ
19171
# Object file suffix (normally "o").
19172
objext="$ac_objext"
19174
# Old archive suffix (normally "a").
19177
# Shared library suffix (normally ".so").
19178
shrext_cmds='$shrext_cmds'
19180
# Executable file suffix (normally "").
19183
# Additional compiler flags for building library objects.
19184
pic_flag=$lt_lt_prog_compiler_pic_GCJ
19187
# What is the maximum length of a command?
19188
max_cmd_len=$lt_cv_sys_max_cmd_len
19190
# Does compiler simultaneously support -c and -o options?
19191
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19193
# Must we lock files when doing compilation?
19194
need_locks=$lt_need_locks
19196
# Do we need the lib prefix for modules?
19197
need_lib_prefix=$need_lib_prefix
19199
# Do we need a version for libraries?
19200
need_version=$need_version
19202
# Whether dlopen is supported.
19203
dlopen_support=$enable_dlopen
19205
# Whether dlopen of programs is supported.
19206
dlopen_self=$enable_dlopen_self
19208
# Whether dlopen of statically linked programs is supported.
19209
dlopen_self_static=$enable_dlopen_self_static
19211
# Compiler flag to prevent dynamic linking.
19212
link_static_flag=$lt_lt_prog_compiler_static_GCJ
19214
# Compiler flag to turn off builtin functions.
19215
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19217
# Compiler flag to allow reflexive dlopens.
19218
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19220
# Compiler flag to generate shared objects directly from archives.
19221
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19223
# Compiler flag to generate thread-safe objects.
19224
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19226
# Library versioning type.
19227
version_type=$version_type
19229
# Format of library name prefix.
19230
libname_spec=$lt_libname_spec
19232
# List of archive names. First name is the real one, the rest are links.
19233
# The last name is the one that the linker finds with -lNAME.
19234
library_names_spec=$lt_library_names_spec
19236
# The coded name of the library, if different from the real name.
19237
soname_spec=$lt_soname_spec
19239
# Commands used to build and install an old-style archive.
19241
old_archive_cmds=$lt_old_archive_cmds_GCJ
19242
old_postinstall_cmds=$lt_old_postinstall_cmds
19243
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19245
# Create an old-style archive from a shared archive.
19246
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19248
# Create a temporary old-style archive to link instead of a shared archive.
19249
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19251
# Commands used to build and install a shared archive.
19252
archive_cmds=$lt_archive_cmds_GCJ
19253
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19254
postinstall_cmds=$lt_postinstall_cmds
19255
postuninstall_cmds=$lt_postuninstall_cmds
19257
# Commands used to build a loadable module (assumed same as above if empty)
19258
module_cmds=$lt_module_cmds_GCJ
19259
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19261
# Commands to strip libraries.
19262
old_striplib=$lt_old_striplib
19263
striplib=$lt_striplib
19265
# Dependencies to place before the objects being linked to create a
19267
predep_objects=$lt_predep_objects_GCJ
19269
# Dependencies to place after the objects being linked to create a
19271
postdep_objects=$lt_postdep_objects_GCJ
19273
# Dependencies to place before the objects being linked to create a
19275
predeps=$lt_predeps_GCJ
19277
# Dependencies to place after the objects being linked to create a
19279
postdeps=$lt_postdeps_GCJ
19281
# The directories searched by this compiler when creating a shared
19283
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19285
# The library search path used internally by the compiler when linking
19286
# a shared library.
19287
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19289
# Method to check whether dependent libraries are shared objects.
19290
deplibs_check_method=$lt_deplibs_check_method
19292
# Command to use when deplibs_check_method == file_magic.
19293
file_magic_cmd=$lt_file_magic_cmd
19295
# Flag that allows shared libraries with undefined symbols to be built.
19296
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19298
# Flag that forces no undefined symbols.
19299
no_undefined_flag=$lt_no_undefined_flag_GCJ
19301
# Commands used to finish a libtool library installation in a directory.
19302
finish_cmds=$lt_finish_cmds
19304
# Same as above, but a single script fragment to be evaled but not shown.
19305
finish_eval=$lt_finish_eval
19307
# Take the output of nm and produce a listing of raw symbols and C names.
19308
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19310
# Transform the output of nm in a proper C declaration
19311
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19313
# Transform the output of nm in a C name address pair
19314
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19316
# This is the shared library runtime path variable.
19317
runpath_var=$runpath_var
19319
# This is the shared library path variable.
19320
shlibpath_var=$shlibpath_var
19322
# Is shlibpath searched before the hard-coded library search path?
19323
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19325
# How to hardcode a shared library path into an executable.
19326
hardcode_action=$hardcode_action_GCJ
19328
# Whether we should hardcode library paths into libraries.
19329
hardcode_into_libs=$hardcode_into_libs
19331
# Flag to hardcode \$libdir into a binary during linking.
19332
# This must work even if \$libdir does not exist.
19333
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19335
# If ld is used when linking, flag to hardcode \$libdir into
19336
# a binary during linking. This must work even if \$libdir does
19338
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19340
# Whether we need a single -rpath flag with a separated argument.
19341
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19343
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19344
# resulting binary.
19345
hardcode_direct=$hardcode_direct_GCJ
19347
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19348
# resulting binary.
19349
hardcode_minus_L=$hardcode_minus_L_GCJ
19351
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19352
# the resulting binary.
19353
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19355
# Set to yes if building a shared library automatically hardcodes DIR into the library
19356
# and all subsequent libraries and executables linked against it.
19357
hardcode_automatic=$hardcode_automatic_GCJ
19359
# Variables whose values should be saved in libtool wrapper scripts and
19360
# restored at relink time.
19361
variables_saved_for_relink="$variables_saved_for_relink"
19363
# Whether libtool must link a program against all its dependency libraries.
19364
link_all_deplibs=$link_all_deplibs_GCJ
19366
# Compile-time system search path for libraries
19367
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19369
# Run-time system search path for libraries
19370
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19372
# Fix the shell variable \$srcfile for the compiler.
19373
fix_srcfile_path=$lt_fix_srcfile_path
19375
# Set to yes if exported symbols are required.
19376
always_export_symbols=$always_export_symbols_GCJ
19378
# The commands to list exported symbols.
19379
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19381
# The commands to extract the exported symbol list from a shared archive.
19382
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19384
# Symbols that should not be listed in the preloaded symbols.
19385
exclude_expsyms=$lt_exclude_expsyms_GCJ
19387
# Symbols that must always be exported.
19388
include_expsyms=$lt_include_expsyms_GCJ
19390
# ### END LIBTOOL TAG CONFIG: $tagname
19396
# If there is no Makefile yet, we rely on a make rule to execute
19397
# `config.status --recheck' to rerun these tests and create the
19398
# libtool script then.
19399
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19400
if test -f "$ltmain_in"; then
19401
test -f Makefile && make "$ltmain"
19407
ac_cpp='$CPP $CPPFLAGS'
19408
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19409
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19410
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19422
# Source file extension for RC test sources.
19425
# Object file extension for compiled RC test sources.
19429
# Code to be used in simple compile tests
19430
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19432
# Code to be used in simple link tests
19433
lt_simple_link_test_code="$lt_simple_compile_test_code"
19435
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19437
# If no C compiler was specified, use CC.
19440
# If no C compiler flags were specified, use CFLAGS.
19441
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19443
# Allow CC to be a program name with arguments.
19447
# save warnings/boilerplate of simple test code
19448
ac_outfile=conftest.$ac_objext
19449
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19450
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19451
_lt_compiler_boilerplate=`cat conftest.err`
19454
ac_outfile=conftest.$ac_objext
19455
echo "$lt_simple_link_test_code" >conftest.$ac_ext
19456
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19457
_lt_linker_boilerplate=`cat conftest.err`
19461
# Allow CC to be a program name with arguments.
19466
for cc_temp in $compiler""; do
19468
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19469
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19474
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19476
lt_cv_prog_compiler_c_o_RC=yes
19478
# The else clause should only fire when bootstrapping the
19479
# libtool distribution, otherwise you forgot to ship ltmain.sh
19480
# with your package, and you will get complaints that there are
19481
# no rules to generate ltmain.sh.
19482
if test -f "$ltmain"; then
19483
# See if we are running on zsh, and set the options which allow our commands through
19484
# without removal of \ escapes.
19485
if test -n "${ZSH_VERSION+set}" ; then
19486
setopt NO_GLOB_SUBST
19488
# Now quote all the things that may contain metacharacters while being
19489
# careful not to overquote the AC_SUBSTed values. We take copies of the
19490
# variables and quote the copies for generation of the libtool script.
19491
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19493
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19494
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19495
deplibs_check_method reload_flag reload_cmds need_locks \
19496
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19497
lt_cv_sys_global_symbol_to_c_name_address \
19498
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19499
old_postinstall_cmds old_postuninstall_cmds \
19503
lt_prog_compiler_wl_RC \
19504
lt_prog_compiler_pic_RC \
19505
lt_prog_compiler_static_RC \
19506
lt_prog_compiler_no_builtin_flag_RC \
19507
export_dynamic_flag_spec_RC \
19508
thread_safe_flag_spec_RC \
19509
whole_archive_flag_spec_RC \
19510
enable_shared_with_static_runtimes_RC \
19511
old_archive_cmds_RC \
19512
old_archive_from_new_cmds_RC \
19513
predep_objects_RC \
19514
postdep_objects_RC \
19517
compiler_lib_search_path_RC \
19518
compiler_lib_search_dirs_RC \
19520
archive_expsym_cmds_RC \
19521
postinstall_cmds_RC \
19522
postuninstall_cmds_RC \
19523
old_archive_from_expsyms_cmds_RC \
19524
allow_undefined_flag_RC \
19525
no_undefined_flag_RC \
19526
export_symbols_cmds_RC \
19527
hardcode_libdir_flag_spec_RC \
19528
hardcode_libdir_flag_spec_ld_RC \
19529
hardcode_libdir_separator_RC \
19530
hardcode_automatic_RC \
19532
module_expsym_cmds_RC \
19533
lt_cv_prog_compiler_c_o_RC \
19534
fix_srcfile_path_RC \
19535
exclude_expsyms_RC \
19536
include_expsyms_RC; do
19539
old_archive_cmds_RC | \
19540
old_archive_from_new_cmds_RC | \
19541
archive_cmds_RC | \
19542
archive_expsym_cmds_RC | \
19544
module_expsym_cmds_RC | \
19545
old_archive_from_expsyms_cmds_RC | \
19546
export_symbols_cmds_RC | \
19547
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19548
postinstall_cmds | postuninstall_cmds | \
19549
old_postinstall_cmds | old_postuninstall_cmds | \
19550
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19551
# Double-quote double-evaled strings.
19552
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19555
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19561
*'\$0 --fallback-echo"')
19562
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19568
cat <<__EOF__ >> "$cfgfile"
19569
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19571
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19573
# Shell to use when invoking shell scripts.
19576
# Whether or not to build shared libraries.
19577
build_libtool_libs=$enable_shared
19579
# Whether or not to build static libraries.
19580
build_old_libs=$enable_static
19582
# Whether or not to add -lc for building shared libraries.
19583
build_libtool_need_lc=$archive_cmds_need_lc_RC
19585
# Whether or not to disallow shared libs when runtime libs are static
19586
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19588
# Whether or not to optimize for fast installation.
19589
fast_install=$enable_fast_install
19592
host_alias=$host_alias
19596
# The build system.
19597
build_alias=$build_alias
19601
# An echo program that does not interpret backslashes.
19606
AR_FLAGS=$lt_AR_FLAGS
19611
# LTCC compiler flags.
19612
LTCFLAGS=$lt_LTCFLAGS
19614
# A language-specific compiler.
19617
# Is the compiler the GNU C compiler?
19623
# The linker used to build libraries.
19626
# Whether we need hard or soft links.
19629
# A BSD-compatible nm program.
19632
# A symbol stripping program
19635
# Used to examine libraries when file_magic_cmd begins "file"
19636
MAGIC_CMD=$MAGIC_CMD
19638
# Used on cygwin: DLL creation program.
19641
# Used on cygwin: object dumper.
19644
# Used on cygwin: assembler.
19647
# The name of the directory that contains temporary libtool files.
19650
# How to create reloadable object files.
19651
reload_flag=$lt_reload_flag
19652
reload_cmds=$lt_reload_cmds
19654
# How to pass a linker flag through the compiler.
19655
wl=$lt_lt_prog_compiler_wl_RC
19657
# Object file suffix (normally "o").
19658
objext="$ac_objext"
19660
# Old archive suffix (normally "a").
19663
# Shared library suffix (normally ".so").
19664
shrext_cmds='$shrext_cmds'
19666
# Executable file suffix (normally "").
19669
# Additional compiler flags for building library objects.
19670
pic_flag=$lt_lt_prog_compiler_pic_RC
19673
# What is the maximum length of a command?
19674
max_cmd_len=$lt_cv_sys_max_cmd_len
19676
# Does compiler simultaneously support -c and -o options?
19677
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19679
# Must we lock files when doing compilation?
19680
need_locks=$lt_need_locks
19682
# Do we need the lib prefix for modules?
19683
need_lib_prefix=$need_lib_prefix
19685
# Do we need a version for libraries?
19686
need_version=$need_version
19688
# Whether dlopen is supported.
19689
dlopen_support=$enable_dlopen
19691
# Whether dlopen of programs is supported.
19692
dlopen_self=$enable_dlopen_self
19694
# Whether dlopen of statically linked programs is supported.
19695
dlopen_self_static=$enable_dlopen_self_static
19697
# Compiler flag to prevent dynamic linking.
19698
link_static_flag=$lt_lt_prog_compiler_static_RC
19700
# Compiler flag to turn off builtin functions.
19701
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19703
# Compiler flag to allow reflexive dlopens.
19704
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19706
# Compiler flag to generate shared objects directly from archives.
19707
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19709
# Compiler flag to generate thread-safe objects.
19710
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19712
# Library versioning type.
19713
version_type=$version_type
19715
# Format of library name prefix.
19716
libname_spec=$lt_libname_spec
19718
# List of archive names. First name is the real one, the rest are links.
19719
# The last name is the one that the linker finds with -lNAME.
19720
library_names_spec=$lt_library_names_spec
19722
# The coded name of the library, if different from the real name.
19723
soname_spec=$lt_soname_spec
19725
# Commands used to build and install an old-style archive.
19727
old_archive_cmds=$lt_old_archive_cmds_RC
19728
old_postinstall_cmds=$lt_old_postinstall_cmds
19729
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19731
# Create an old-style archive from a shared archive.
19732
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19734
# Create a temporary old-style archive to link instead of a shared archive.
19735
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19737
# Commands used to build and install a shared archive.
19738
archive_cmds=$lt_archive_cmds_RC
19739
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19740
postinstall_cmds=$lt_postinstall_cmds
19741
postuninstall_cmds=$lt_postuninstall_cmds
19743
# Commands used to build a loadable module (assumed same as above if empty)
19744
module_cmds=$lt_module_cmds_RC
19745
module_expsym_cmds=$lt_module_expsym_cmds_RC
19747
# Commands to strip libraries.
19748
old_striplib=$lt_old_striplib
19749
striplib=$lt_striplib
19751
# Dependencies to place before the objects being linked to create a
19753
predep_objects=$lt_predep_objects_RC
19755
# Dependencies to place after the objects being linked to create a
19757
postdep_objects=$lt_postdep_objects_RC
19759
# Dependencies to place before the objects being linked to create a
19761
predeps=$lt_predeps_RC
19763
# Dependencies to place after the objects being linked to create a
19765
postdeps=$lt_postdeps_RC
19767
# The directories searched by this compiler when creating a shared
19769
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19771
# The library search path used internally by the compiler when linking
19772
# a shared library.
19773
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19775
# Method to check whether dependent libraries are shared objects.
19776
deplibs_check_method=$lt_deplibs_check_method
19778
# Command to use when deplibs_check_method == file_magic.
19779
file_magic_cmd=$lt_file_magic_cmd
19781
# Flag that allows shared libraries with undefined symbols to be built.
19782
allow_undefined_flag=$lt_allow_undefined_flag_RC
19784
# Flag that forces no undefined symbols.
19785
no_undefined_flag=$lt_no_undefined_flag_RC
19787
# Commands used to finish a libtool library installation in a directory.
19788
finish_cmds=$lt_finish_cmds
19790
# Same as above, but a single script fragment to be evaled but not shown.
19791
finish_eval=$lt_finish_eval
19793
# Take the output of nm and produce a listing of raw symbols and C names.
19794
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19796
# Transform the output of nm in a proper C declaration
19797
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19799
# Transform the output of nm in a C name address pair
19800
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19802
# This is the shared library runtime path variable.
19803
runpath_var=$runpath_var
19805
# This is the shared library path variable.
19806
shlibpath_var=$shlibpath_var
19808
# Is shlibpath searched before the hard-coded library search path?
19809
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19811
# How to hardcode a shared library path into an executable.
19812
hardcode_action=$hardcode_action_RC
19814
# Whether we should hardcode library paths into libraries.
19815
hardcode_into_libs=$hardcode_into_libs
19817
# Flag to hardcode \$libdir into a binary during linking.
19818
# This must work even if \$libdir does not exist.
19819
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19821
# If ld is used when linking, flag to hardcode \$libdir into
19822
# a binary during linking. This must work even if \$libdir does
19824
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19826
# Whether we need a single -rpath flag with a separated argument.
19827
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19829
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19830
# resulting binary.
19831
hardcode_direct=$hardcode_direct_RC
19833
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19834
# resulting binary.
19835
hardcode_minus_L=$hardcode_minus_L_RC
19837
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19838
# the resulting binary.
19839
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19841
# Set to yes if building a shared library automatically hardcodes DIR into the library
19842
# and all subsequent libraries and executables linked against it.
19843
hardcode_automatic=$hardcode_automatic_RC
19845
# Variables whose values should be saved in libtool wrapper scripts and
19846
# restored at relink time.
19847
variables_saved_for_relink="$variables_saved_for_relink"
19849
# Whether libtool must link a program against all its dependency libraries.
19850
link_all_deplibs=$link_all_deplibs_RC
19852
# Compile-time system search path for libraries
19853
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19855
# Run-time system search path for libraries
19856
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19858
# Fix the shell variable \$srcfile for the compiler.
19859
fix_srcfile_path=$lt_fix_srcfile_path
19861
# Set to yes if exported symbols are required.
19862
always_export_symbols=$always_export_symbols_RC
19864
# The commands to list exported symbols.
19865
export_symbols_cmds=$lt_export_symbols_cmds_RC
19867
# The commands to extract the exported symbol list from a shared archive.
19868
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19870
# Symbols that should not be listed in the preloaded symbols.
19871
exclude_expsyms=$lt_exclude_expsyms_RC
19873
# Symbols that must always be exported.
19874
include_expsyms=$lt_include_expsyms_RC
19876
# ### END LIBTOOL TAG CONFIG: $tagname
19882
# If there is no Makefile yet, we rely on a make rule to execute
19883
# `config.status --recheck' to rerun these tests and create the
19884
# libtool script then.
19885
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19886
if test -f "$ltmain_in"; then
19887
test -f Makefile && make "$ltmain"
19893
ac_cpp='$CPP $CPPFLAGS'
19894
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19895
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19896
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19903
as_fn_error "Unsupported tag name: $tagname" "$LINENO" 5
19907
# Append the new tag name to the list of available tags.
19908
if test -n "$tagname" ; then
19909
available_tags="$available_tags $tagname"
19915
# Now substitute the updated list of available tags.
19916
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19917
mv "${ofile}T" "$ofile"
19921
as_fn_error "unable to update list of available tagged configurations." "$LINENO" 5
19927
# This can be used to rebuild libtool when needed
19928
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19930
# Always use our own libtool.
19931
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19933
# Prevent multiple expansion
19956
# dolt, a replacement for libtool
19957
# Josh Triplett <josh@freedesktop.org>
19958
# Extract the first word of "bash", so it can be a program name with args.
19959
set dummy bash; ac_word=$2
19960
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19961
$as_echo_n "checking for $ac_word... " >&6; }
19962
if test "${ac_cv_path_DOLT_BASH+set}" = set; then :
19963
$as_echo_n "(cached) " >&6
19967
ac_cv_path_DOLT_BASH="$DOLT_BASH" # Let the user override the test with a path.
19970
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19971
for as_dir in $PATH
19974
test -z "$as_dir" && as_dir=.
19975
for ac_exec_ext in '' $ac_executable_extensions; do
19976
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19977
ac_cv_path_DOLT_BASH="$as_dir/$ac_word$ac_exec_ext"
19978
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19988
DOLT_BASH=$ac_cv_path_DOLT_BASH
19989
if test -n "$DOLT_BASH"; then
19990
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOLT_BASH" >&5
19991
$as_echo "$DOLT_BASH" >&6; }
19993
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19994
$as_echo "no" >&6; }
19998
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if dolt supports this host" >&5
19999
$as_echo_n "checking if dolt supports this host... " >&6; }
20001
if test x$DOLT_BASH = x; then
20004
if test x$GCC != xyes; then
20008
i?86-*-linux*|x86_64-*-linux*|powerpc-*-linux* \
20009
|amd64-*-freebsd*|i?86-*-freebsd*|ia64-*-freebsd*)
20010
pic_options='-fPIC'
20013
pic_options='-DDLL_EXPORT'
20015
i?86-apple-darwin*)
20016
pic_options='-fno-common'
20022
if test x$dolt_supported = xno ; then
20023
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no, falling back to libtool" >&5
20024
$as_echo "no, falling back to libtool" >&6; }
20025
LTCOMPILE='$(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(COMPILE)'
20026
LTCXXCOMPILE='$(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXXCOMPILE)'
20028
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, replacing libtool" >&5
20029
$as_echo "yes, replacing libtool" >&6; }
20031
cat <<__DOLTCOMPILE__EOF__ >doltcompile
20033
__DOLTCOMPILE__EOF__
20034
cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
20036
for ((arg=0; arg<${#args[@]}; arg++)) ; do
20037
if test x"${args[$arg]}" = x-o ; then
20042
if test x$objarg = x ; then
20043
echo 'Error: no -o on compiler command line' 1>&2
20046
lo="${args[$objarg]}"
20048
if test x"$lo" = x"$obj" ; then
20049
echo "Error: libtool object file name \"$lo\" does not end in .lo" 1>&2
20052
objbase="${obj##*/}"
20053
__DOLTCOMPILE__EOF__
20055
if test x$enable_shared = xyes; then
20056
cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
20057
libobjdir="${obj%$objbase}.libs"
20058
if test ! -d "$libobjdir" ; then
20059
mkdir_out="$(mkdir "$libobjdir" 2>&1)"
20061
if test "$mkdir_ret" -ne 0 && test ! -d "$libobjdir" ; then
20062
echo "$mkdir_out" 1>&2
20066
pic_object="$libobjdir/$objbase.o"
20067
args[$objarg]="$pic_object"
20068
__DOLTCOMPILE__EOF__
20069
cat <<__DOLTCOMPILE__EOF__ >>doltcompile
20070
"\${args[@]}" $pic_options -DPIC || exit \$?
20071
__DOLTCOMPILE__EOF__
20074
if test x$enable_static = xyes; then
20075
cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
20076
non_pic_object="$obj.o"
20077
args[$objarg]="$non_pic_object"
20078
__DOLTCOMPILE__EOF__
20079
if test x$enable_shared = xyes; then
20080
cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
20081
"${args[@]}" >/dev/null 2>&1 || exit $?
20082
__DOLTCOMPILE__EOF__
20084
cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
20085
"${args[@]}" || exit $?
20086
__DOLTCOMPILE__EOF__
20090
cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
20092
echo "# $lo - a libtool object file"
20093
echo "# Generated by doltcompile, not libtool"
20094
__DOLTCOMPILE__EOF__
20096
if test x$enable_shared = xyes; then
20097
cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
20098
echo "pic_object='.libs/${objbase}.o'"
20099
__DOLTCOMPILE__EOF__
20101
cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
20102
echo pic_object=none
20103
__DOLTCOMPILE__EOF__
20106
if test x$enable_static = xyes; then
20107
cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
20108
echo "non_pic_object='${objbase}.o'"
20109
__DOLTCOMPILE__EOF__
20111
cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
20112
echo non_pic_object=none
20113
__DOLTCOMPILE__EOF__
20116
cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
20118
__DOLTCOMPILE__EOF__
20120
chmod +x doltcompile
20121
LTCOMPILE='$(top_builddir)/doltcompile $(COMPILE)'
20122
LTCXXCOMPILE='$(top_builddir)/doltcompile $(CXXCOMPILE)'
20124
cat <<__DOLTLIBTOOL__EOF__ > doltlibtool
20126
__DOLTLIBTOOL__EOF__
20127
cat <<'__DOLTLIBTOOL__EOF__' >>doltlibtool
20128
top_builddir_slash="${0%%doltlibtool}"
20129
: ${top_builddir_slash:=./}
20133
for arg in "$@"; do
20135
--mode=compile) modeok=true ;;
20136
--tag=CC|--tag=CXX) tagok=true ;;
20137
*) args[${#args[@]}]="$arg" ;;
20140
if $modeok && $tagok ; then
20141
. ${top_builddir_slash}doltcompile "${args[@]}"
20143
exec ${top_builddir_slash}libtool "$@"
20145
__DOLTLIBTOOL__EOF__
20147
chmod +x doltlibtool
20148
LIBTOOL='$(top_builddir)/doltlibtool'
12624
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12625
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12626
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12627
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12628
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12629
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12630
$as_echo "yes" >&6; }
12632
# FIXME - insert some real tests, host_os isn't really good enough
12635
if test -n "$STRIP" ; then
12636
striplib="$STRIP -x"
12637
old_striplib="$STRIP -S"
12638
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12639
$as_echo "yes" >&6; }
12641
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12642
$as_echo "no" >&6; }
12646
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12647
$as_echo "no" >&6; }
12663
# Report which library types will actually be built
12664
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12665
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12666
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12667
$as_echo "$can_build_shared" >&6; }
12669
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12670
$as_echo_n "checking whether to build shared libraries... " >&6; }
12671
test "$can_build_shared" = "no" && enable_shared=no
12673
# On AIX, shared libraries and static libraries use the same namespace, and
12674
# are all built from PIC.
12677
test "$enable_shared" = yes && enable_static=no
12678
if test -n "$RANLIB"; then
12679
archive_cmds="$archive_cmds~\$RANLIB \$lib"
12680
postinstall_cmds='$RANLIB $lib'
12685
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12686
test "$enable_shared" = yes && enable_static=no
12690
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12691
$as_echo "$enable_shared" >&6; }
12693
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12694
$as_echo_n "checking whether to build static libraries... " >&6; }
12695
# Make sure either enable_shared or enable_static is yes.
12696
test "$enable_shared" = yes || enable_static=yes
12697
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12698
$as_echo "$enable_static" >&6; }
12705
ac_cpp='$CPP $CPPFLAGS'
12706
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12707
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12708
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12724
ac_config_commands="$ac_config_commands libtool"
12729
# Only expand once:
20155
12733
ac_cpp='$CPP $CPPFLAGS'