11795
# Report which library types will actually be built
11796
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11797
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11798
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11799
$as_echo "$can_build_shared" >&6; }
11801
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11802
$as_echo_n "checking whether to build shared libraries... " >&6; }
11803
test "$can_build_shared" = "no" && enable_shared=no
11805
# On AIX, shared libraries and static libraries use the same namespace, and
11806
# are all built from PIC.
11809
test "$enable_shared" = yes && enable_static=no
11810
if test -n "$RANLIB"; then
11811
archive_cmds="$archive_cmds~\$RANLIB \$lib"
11812
postinstall_cmds='$RANLIB $lib'
11817
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11818
test "$enable_shared" = yes && enable_static=no
11822
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11823
$as_echo "$enable_shared" >&6; }
11825
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11826
$as_echo_n "checking whether to build static libraries... " >&6; }
11827
# Make sure either enable_shared or enable_static is yes.
11828
test "$enable_shared" = yes || enable_static=yes
11829
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11830
$as_echo "$enable_static" >&6; }
11832
# The else clause should only fire when bootstrapping the
11833
# libtool distribution, otherwise you forgot to ship ltmain.sh
11834
# with your package, and you will get complaints that there are
11835
# no rules to generate ltmain.sh.
11836
if test -f "$ltmain"; then
11837
# See if we are running on zsh, and set the options which allow our commands through
11838
# without removal of \ escapes.
11839
if test -n "${ZSH_VERSION+set}" ; then
11840
setopt NO_GLOB_SUBST
11842
# Now quote all the things that may contain metacharacters while being
11843
# careful not to overquote the AC_SUBSTed values. We take copies of the
11844
# variables and quote the copies for generation of the libtool script.
11845
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11847
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11848
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11849
deplibs_check_method reload_flag reload_cmds need_locks \
11850
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11851
lt_cv_sys_global_symbol_to_c_name_address \
11852
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11853
old_postinstall_cmds old_postuninstall_cmds \
11857
lt_prog_compiler_wl \
11858
lt_prog_compiler_pic \
11859
lt_prog_compiler_static \
11860
lt_prog_compiler_no_builtin_flag \
11861
export_dynamic_flag_spec \
11862
thread_safe_flag_spec \
11863
whole_archive_flag_spec \
11864
enable_shared_with_static_runtimes \
11866
old_archive_from_new_cmds \
11871
compiler_lib_search_path \
11872
compiler_lib_search_dirs \
11874
archive_expsym_cmds \
11876
postuninstall_cmds \
11877
old_archive_from_expsyms_cmds \
11878
allow_undefined_flag \
11879
no_undefined_flag \
11880
export_symbols_cmds \
11881
hardcode_libdir_flag_spec \
11882
hardcode_libdir_flag_spec_ld \
11883
hardcode_libdir_separator \
11884
hardcode_automatic \
11886
module_expsym_cmds \
11887
lt_cv_prog_compiler_c_o \
11890
include_expsyms; do
11893
old_archive_cmds | \
11894
old_archive_from_new_cmds | \
11896
archive_expsym_cmds | \
11898
module_expsym_cmds | \
11899
old_archive_from_expsyms_cmds | \
11900
export_symbols_cmds | \
11901
extract_expsyms_cmds | reload_cmds | finish_cmds | \
11902
postinstall_cmds | postuninstall_cmds | \
11903
old_postinstall_cmds | old_postuninstall_cmds | \
11904
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11905
# Double-quote double-evaled strings.
11906
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11909
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11915
*'\$0 --fallback-echo"')
11916
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11920
cfgfile="${ofile}T"
11921
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11923
{ $as_echo "$as_me:$LINENO: creating $ofile" >&5
11924
$as_echo "$as_me: creating $ofile" >&6;}
11926
cat <<__EOF__ >> "$cfgfile"
11929
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11930
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11931
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
11933
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
11934
# Free Software Foundation, Inc.
11936
# This file is part of GNU Libtool:
11937
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11939
# This program is free software; you can redistribute it and/or modify
11940
# it under the terms of the GNU General Public License as published by
11941
# the Free Software Foundation; either version 2 of the License, or
11942
# (at your option) any later version.
11944
# This program is distributed in the hope that it will be useful, but
11945
# WITHOUT ANY WARRANTY; without even the implied warranty of
11946
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11947
# General Public License for more details.
11949
# You should have received a copy of the GNU General Public License
11950
# along with this program; if not, write to the Free Software
11951
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11953
# As a special exception to the GNU General Public License, if you
11954
# distribute this file as part of a program that contains a
11955
# configuration script generated by Autoconf, you may include it under
11956
# the same distribution terms that you use for the rest of that program.
11958
# A sed program that does not truncate output.
11961
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
11962
Xsed="$SED -e 1s/^X//"
11964
# The HP-UX ksh and POSIX shell print the target directory to stdout
11965
# if CDPATH is set.
11966
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11968
# The names of the tagged configurations supported by this script.
11971
# ### BEGIN LIBTOOL CONFIG
11973
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11975
# Shell to use when invoking shell scripts.
11978
# Whether or not to build shared libraries.
11979
build_libtool_libs=$enable_shared
11981
# Whether or not to build static libraries.
11982
build_old_libs=$enable_static
11984
# Whether or not to add -lc for building shared libraries.
11985
build_libtool_need_lc=$archive_cmds_need_lc
11987
# Whether or not to disallow shared libs when runtime libs are static
11988
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11990
# Whether or not to optimize for fast installation.
11991
fast_install=$enable_fast_install
11994
host_alias=$host_alias
11998
# The build system.
11999
build_alias=$build_alias
12003
# An echo program that does not interpret backslashes.
12008
AR_FLAGS=$lt_AR_FLAGS
12013
# LTCC compiler flags.
12014
LTCFLAGS=$lt_LTCFLAGS
12016
# A language-specific compiler.
12019
# Is the compiler the GNU C compiler?
12025
# The linker used to build libraries.
12028
# Whether we need hard or soft links.
12031
# A BSD-compatible nm program.
12034
# A symbol stripping program
12037
# Used to examine libraries when file_magic_cmd begins "file"
12038
MAGIC_CMD=$MAGIC_CMD
12040
# Used on cygwin: DLL creation program.
12043
# Used on cygwin: object dumper.
12046
# Used on cygwin: assembler.
12049
# The name of the directory that contains temporary libtool files.
12052
# How to create reloadable object files.
12053
reload_flag=$lt_reload_flag
12054
reload_cmds=$lt_reload_cmds
12056
# How to pass a linker flag through the compiler.
12057
wl=$lt_lt_prog_compiler_wl
12059
# Object file suffix (normally "o").
12060
objext="$ac_objext"
12062
# Old archive suffix (normally "a").
12065
# Shared library suffix (normally ".so").
12066
shrext_cmds='$shrext_cmds'
12068
# Executable file suffix (normally "").
12071
# Additional compiler flags for building library objects.
12072
pic_flag=$lt_lt_prog_compiler_pic
12075
# What is the maximum length of a command?
12076
max_cmd_len=$lt_cv_sys_max_cmd_len
12078
# Does compiler simultaneously support -c and -o options?
12079
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12081
# Must we lock files when doing compilation?
12082
need_locks=$lt_need_locks
12084
# Do we need the lib prefix for modules?
12085
need_lib_prefix=$need_lib_prefix
12087
# Do we need a version for libraries?
12088
need_version=$need_version
12090
# Whether dlopen is supported.
12091
dlopen_support=$enable_dlopen
12093
# Whether dlopen of programs is supported.
12094
dlopen_self=$enable_dlopen_self
12096
# Whether dlopen of statically linked programs is supported.
12097
dlopen_self_static=$enable_dlopen_self_static
12099
# Compiler flag to prevent dynamic linking.
12100
link_static_flag=$lt_lt_prog_compiler_static
12102
# Compiler flag to turn off builtin functions.
12103
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12105
# Compiler flag to allow reflexive dlopens.
12106
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12108
# Compiler flag to generate shared objects directly from archives.
12109
whole_archive_flag_spec=$lt_whole_archive_flag_spec
12111
# Compiler flag to generate thread-safe objects.
12112
thread_safe_flag_spec=$lt_thread_safe_flag_spec
12114
# Library versioning type.
12115
version_type=$version_type
12117
# Format of library name prefix.
12118
libname_spec=$lt_libname_spec
12120
# List of archive names. First name is the real one, the rest are links.
12121
# The last name is the one that the linker finds with -lNAME.
12122
library_names_spec=$lt_library_names_spec
12124
# The coded name of the library, if different from the real name.
12125
soname_spec=$lt_soname_spec
12127
# Commands used to build and install an old-style archive.
12129
old_archive_cmds=$lt_old_archive_cmds
12130
old_postinstall_cmds=$lt_old_postinstall_cmds
12131
old_postuninstall_cmds=$lt_old_postuninstall_cmds
12133
# Create an old-style archive from a shared archive.
12134
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12136
# Create a temporary old-style archive to link instead of a shared archive.
12137
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12139
# Commands used to build and install a shared archive.
12140
archive_cmds=$lt_archive_cmds
12141
archive_expsym_cmds=$lt_archive_expsym_cmds
12142
postinstall_cmds=$lt_postinstall_cmds
12143
postuninstall_cmds=$lt_postuninstall_cmds
12145
# Commands used to build a loadable module (assumed same as above if empty)
12146
module_cmds=$lt_module_cmds
12147
module_expsym_cmds=$lt_module_expsym_cmds
12149
# Commands to strip libraries.
12150
old_striplib=$lt_old_striplib
12151
striplib=$lt_striplib
12153
# Dependencies to place before the objects being linked to create a
12155
predep_objects=$lt_predep_objects
12157
# Dependencies to place after the objects being linked to create a
12159
postdep_objects=$lt_postdep_objects
12161
# Dependencies to place before the objects being linked to create a
12163
predeps=$lt_predeps
12165
# Dependencies to place after the objects being linked to create a
12167
postdeps=$lt_postdeps
12169
# The directories searched by this compiler when creating a shared
12171
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
12173
# The library search path used internally by the compiler when linking
12174
# a shared library.
12175
compiler_lib_search_path=$lt_compiler_lib_search_path
12177
# Method to check whether dependent libraries are shared objects.
12178
deplibs_check_method=$lt_deplibs_check_method
12180
# Command to use when deplibs_check_method == file_magic.
12181
file_magic_cmd=$lt_file_magic_cmd
12183
# Flag that allows shared libraries with undefined symbols to be built.
12184
allow_undefined_flag=$lt_allow_undefined_flag
12186
# Flag that forces no undefined symbols.
12187
no_undefined_flag=$lt_no_undefined_flag
12189
# Commands used to finish a libtool library installation in a directory.
12190
finish_cmds=$lt_finish_cmds
12192
# Same as above, but a single script fragment to be evaled but not shown.
12193
finish_eval=$lt_finish_eval
12195
# Take the output of nm and produce a listing of raw symbols and C names.
12196
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12198
# Transform the output of nm in a proper C declaration
12199
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12201
# Transform the output of nm in a C name address pair
12202
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12204
# This is the shared library runtime path variable.
12205
runpath_var=$runpath_var
12207
# This is the shared library path variable.
12208
shlibpath_var=$shlibpath_var
12210
# Is shlibpath searched before the hard-coded library search path?
12211
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12213
# How to hardcode a shared library path into an executable.
12214
hardcode_action=$hardcode_action
12216
# Whether we should hardcode library paths into libraries.
12217
hardcode_into_libs=$hardcode_into_libs
12219
# Flag to hardcode \$libdir into a binary during linking.
12220
# This must work even if \$libdir does not exist.
12221
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12223
# If ld is used when linking, flag to hardcode \$libdir into
12224
# a binary during linking. This must work even if \$libdir does
12226
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12228
# Whether we need a single -rpath flag with a separated argument.
12229
hardcode_libdir_separator=$lt_hardcode_libdir_separator
12231
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12232
# resulting binary.
12233
hardcode_direct=$hardcode_direct
12235
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12236
# resulting binary.
12237
hardcode_minus_L=$hardcode_minus_L
12239
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12240
# the resulting binary.
12241
hardcode_shlibpath_var=$hardcode_shlibpath_var
12243
# Set to yes if building a shared library automatically hardcodes DIR into the library
12244
# and all subsequent libraries and executables linked against it.
12245
hardcode_automatic=$hardcode_automatic
12247
# Variables whose values should be saved in libtool wrapper scripts and
12248
# restored at relink time.
12249
variables_saved_for_relink="$variables_saved_for_relink"
12251
# Whether libtool must link a program against all its dependency libraries.
12252
link_all_deplibs=$link_all_deplibs
12254
# Compile-time system search path for libraries
12255
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12257
# Run-time system search path for libraries
12258
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12260
# Fix the shell variable \$srcfile for the compiler.
12261
fix_srcfile_path=$lt_fix_srcfile_path
12263
# Set to yes if exported symbols are required.
12264
always_export_symbols=$always_export_symbols
12266
# The commands to list exported symbols.
12267
export_symbols_cmds=$lt_export_symbols_cmds
12269
# The commands to extract the exported symbol list from a shared archive.
12270
extract_expsyms_cmds=$lt_extract_expsyms_cmds
12272
# Symbols that should not be listed in the preloaded symbols.
12273
exclude_expsyms=$lt_exclude_expsyms
12275
# Symbols that must always be exported.
12276
include_expsyms=$lt_include_expsyms
12278
# ### END LIBTOOL CONFIG
12285
cat <<\EOF >> "$cfgfile"
12287
# AIX sometimes has problems with the GCC collect2 program. For some
12288
# reason, if we set the COLLECT_NAMES environment variable, the problems
12289
# vanish in a puff of smoke.
12290
if test "X${COLLECT_NAMES+set}" != Xset; then
12292
export COLLECT_NAMES
12298
# We use sed instead of cat because bash on DJGPP gets confused if
12299
# if finds mixed CR/LF and LF-only lines. Since sed operates in
12300
# text mode, it properly converts lines to CR/LF. This bash problem
12301
# is reportedly fixed, but why not run on old versions too?
12302
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12304
mv -f "$cfgfile" "$ofile" || \
12305
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12309
# If there is no Makefile yet, we rely on a make rule to execute
12310
# `config.status --recheck' to rerun these tests and create the
12311
# libtool script then.
12312
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12313
if test -f "$ltmain_in"; then
12314
test -f Makefile && make "$ltmain"
12320
ac_cpp='$CPP $CPPFLAGS'
12321
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12322
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12323
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12328
# Check whether --with-tags was given.
12329
if test "${with_tags+set}" = set; then
12330
withval=$with_tags; tagnames="$withval"
12334
if test -f "$ltmain" && test -n "$tagnames"; then
12335
if test ! -f "${ofile}"; then
12336
{ $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12337
$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12340
if test -z "$LTCC"; then
12341
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12342
if test -z "$LTCC"; then
12343
{ $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12344
$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12346
{ $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12347
$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12350
if test -z "$LTCFLAGS"; then
12351
eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
12354
# Extract list of available tagged configurations in $ofile.
12355
# Note that this assumes the entire list is on one line.
12356
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12358
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12359
for tagname in $tagnames; do
12361
# Check whether tagname contains only valid characters
12362
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12364
*) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12365
$as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
12366
{ (exit 1); exit 1; }; }
12370
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12372
{ { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12373
$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12374
{ (exit 1); exit 1; }; }
12377
# Update the list of available tags.
12378
if test -n "$tagname"; then
12379
echo appending configuration tag \"$tagname\" to $ofile
12383
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12384
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12385
(test "X$CXX" != "Xg++"))) ; then
12387
ac_cpp='$CXXCPP $CPPFLAGS'
12388
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12389
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12390
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12395
archive_cmds_need_lc_CXX=no
12396
allow_undefined_flag_CXX=
12397
always_export_symbols_CXX=no
12398
archive_expsym_cmds_CXX=
12399
export_dynamic_flag_spec_CXX=
12400
hardcode_direct_CXX=no
12401
hardcode_libdir_flag_spec_CXX=
12402
hardcode_libdir_flag_spec_ld_CXX=
12403
hardcode_libdir_separator_CXX=
12404
hardcode_minus_L_CXX=no
12405
hardcode_shlibpath_var_CXX=unsupported
12406
hardcode_automatic_CXX=no
12408
module_expsym_cmds_CXX=
12409
link_all_deplibs_CXX=unknown
12410
old_archive_cmds_CXX=$old_archive_cmds
12411
no_undefined_flag_CXX=
12412
whole_archive_flag_spec_CXX=
12413
enable_shared_with_static_runtimes_CXX=no
12415
# Dependencies to place before and after the object being linked:
12416
predep_objects_CXX=
12417
postdep_objects_CXX=
12420
compiler_lib_search_path_CXX=
12421
compiler_lib_search_dirs_CXX=
12423
# Source file extension for C++ test sources.
12426
# Object file extension for compiled C++ test sources.
12430
# Code to be used in simple compile tests
12431
lt_simple_compile_test_code="int some_variable = 0;"
12433
# Code to be used in simple link tests
12434
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12436
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12438
# If no C compiler was specified, use CC.
12441
# If no C compiler flags were specified, use CFLAGS.
12442
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12444
# Allow CC to be a program name with arguments.
12448
# save warnings/boilerplate of simple test code
12449
ac_outfile=conftest.$ac_objext
12450
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12451
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12452
_lt_compiler_boilerplate=`cat conftest.err`
12455
ac_outfile=conftest.$ac_objext
12456
echo "$lt_simple_link_test_code" >conftest.$ac_ext
12457
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12458
_lt_linker_boilerplate=`cat conftest.err`
12462
# Allow CC to be a program name with arguments.
12467
lt_save_with_gnu_ld=$with_gnu_ld
12468
lt_save_path_LD=$lt_cv_path_LD
12469
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12470
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12472
$as_unset lt_cv_prog_gnu_ld
12474
if test -n "${lt_cv_path_LDCXX+set}"; then
12475
lt_cv_path_LD=$lt_cv_path_LDCXX
12477
$as_unset lt_cv_path_LD
12479
test -z "${LDCXX+set}" || LD=$LDCXX
12483
for cc_temp in $compiler""; do
12485
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12486
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12491
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12494
# We don't want -fno-exception wen compiling C++ code, so set the
12495
# no_builtin_flag separately
12496
if test "$GXX" = yes; then
12497
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12499
lt_prog_compiler_no_builtin_flag_CXX=
12502
if test "$GXX" = yes; then
12503
# Set up default GNU C++ configuration
12506
# Check whether --with-gnu-ld was given.
12507
if test "${with_gnu_ld+set}" = set; then
12508
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12514
if test "$GCC" = yes; then
12515
# Check if gcc -print-prog-name=ld gives a path.
12516
{ $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12517
$as_echo_n "checking for ld used by $CC... " >&6; }
12520
# gcc leaves a trailing carriage return which upsets mingw
12521
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12523
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12526
# Accept absolute paths.
12528
re_direlt='/[^/][^/]*/\.\./'
12529
# Canonicalize the pathname of ld
12530
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12531
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12532
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12534
test -z "$LD" && LD="$ac_prog"
12537
# If it fails, then pretend we aren't using GCC.
12541
# If it is relative, then search for the first ld in PATH.
12542
with_gnu_ld=unknown
12545
elif test "$with_gnu_ld" = yes; then
12546
{ $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
12547
$as_echo_n "checking for GNU ld... " >&6; }
12549
{ $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12550
$as_echo_n "checking for non-GNU ld... " >&6; }
12552
if test "${lt_cv_path_LD+set}" = set; then
12553
$as_echo_n "(cached) " >&6
12555
if test -z "$LD"; then
12556
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12557
for ac_dir in $PATH; do
12559
test -z "$ac_dir" && ac_dir=.
12560
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12561
lt_cv_path_LD="$ac_dir/$ac_prog"
12562
# Check to see if the program is GNU ld. I'd rather use --version,
12563
# but apparently some variants of GNU ld only accept -v.
12564
# Break only if it was the GNU/non-GNU ld that we prefer.
12565
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12566
*GNU* | *'with BFD'*)
12567
test "$with_gnu_ld" != no && break
12570
test "$with_gnu_ld" != yes && break
12577
lt_cv_path_LD="$LD" # Let the user override the test with a path.
12581
LD="$lt_cv_path_LD"
12582
if test -n "$LD"; then
12583
{ $as_echo "$as_me:$LINENO: result: $LD" >&5
12584
$as_echo "$LD" >&6; }
12586
{ $as_echo "$as_me:$LINENO: result: no" >&5
12587
$as_echo "no" >&6; }
12589
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12590
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12591
{ (exit 1); exit 1; }; }
12592
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12593
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12594
if test "${lt_cv_prog_gnu_ld+set}" = set; then
12595
$as_echo_n "(cached) " >&6
12597
# I'd rather use --version here, but apparently some GNU lds only accept -v.
12598
case `$LD -v 2>&1 </dev/null` in
12599
*GNU* | *'with BFD'*)
12600
lt_cv_prog_gnu_ld=yes
12603
lt_cv_prog_gnu_ld=no
12607
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12608
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12609
with_gnu_ld=$lt_cv_prog_gnu_ld
12613
# Check if GNU C++ uses GNU ld as the underlying linker, since the
12614
# archiving commands below assume that GNU ld is being used.
12615
if test "$with_gnu_ld" = yes; then
12616
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12617
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'
12619
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12620
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12622
# If archive_cmds runs LD, not CC, wlarc should be empty
12623
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12624
# investigate it a little bit more. (MM)
12627
# ancient GNU ld didn't support --whole-archive et. al.
12628
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12629
grep 'no-whole-archive' > /dev/null; then
12630
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12632
whole_archive_flag_spec_CXX=
12638
# A generic and very simple default shared library creation
12639
# command for GNU C++ for the case where it uses the native
12640
# linker, instead of GNU ld. If possible, this setting should
12641
# overridden to take advantage of the native linker features on
12642
# the platform it is being used on.
12643
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12646
# Commands to make compiler produce verbose output that lists
12647
# what "hidden" libraries, object files and flags are used when
12648
# linking a shared library.
12649
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12657
# PORTME: fill in a description of your system's C++ link characteristics
12658
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12659
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12663
# FIXME: insert proper C++ library support
12667
if test "$host_cpu" = ia64; then
12668
# On IA64, the linker does run time linking by default, so we don't
12669
# have to do anything special.
12670
aix_use_runtimelinking=no
12671
exp_sym_flag='-Bexport'
12674
aix_use_runtimelinking=no
12676
# Test if we are trying to use run time linking or normal
12677
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
12678
# need to do runtime linking.
12679
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12680
for ld_flag in $LDFLAGS; do
12683
aix_use_runtimelinking=yes
12691
exp_sym_flag='-bexport'
12692
no_entry_flag='-bnoentry'
12695
# When large executables or shared objects are built, AIX ld can
12696
# have problems creating the table of contents. If linking a library
12697
# or program results in "error TOC overflow" add -mminimal-toc to
12698
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12699
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12701
archive_cmds_CXX=''
12702
hardcode_direct_CXX=yes
12703
hardcode_libdir_separator_CXX=':'
12704
link_all_deplibs_CXX=yes
12706
if test "$GXX" = yes; then
12707
case $host_os in aix4.[012]|aix4.[012].*)
12708
# We only want to do this on AIX 4.2 and lower, the check
12709
# below for broken collect2 doesn't work under 4.3+
12710
collect2name=`${CC} -print-prog-name=collect2`
12711
if test -f "$collect2name" && \
12712
strings "$collect2name" | grep resolve_lib_name >/dev/null
12714
# We have reworked collect2
12717
# We have old collect2
12718
hardcode_direct_CXX=unsupported
12719
# It fails to find uninstalled libraries when the uninstalled
12720
# path is not listed in the libpath. Setting hardcode_minus_L
12721
# to unsupported forces relinking
12722
hardcode_minus_L_CXX=yes
12723
hardcode_libdir_flag_spec_CXX='-L$libdir'
12724
hardcode_libdir_separator_CXX=
12728
shared_flag='-shared'
12729
if test "$aix_use_runtimelinking" = yes; then
12730
shared_flag="$shared_flag "'${wl}-G'
12734
if test "$host_cpu" = ia64; then
12735
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12736
# chokes on -Wl,-G. The following line is correct:
12739
if test "$aix_use_runtimelinking" = yes; then
12740
shared_flag='${wl}-G'
12742
shared_flag='${wl}-bM:SRE'
12747
# It seems that -bexpall does not export symbols beginning with
12748
# underscore (_), so it is better to generate a list of symbols to export.
12749
always_export_symbols_CXX=yes
12750
if test "$aix_use_runtimelinking" = yes; then
12751
# Warning - without using the other runtime loading flags (-brtl),
12752
# -berok will link without error, but may produce a broken library.
12753
allow_undefined_flag_CXX='-berok'
12754
# Determine the default libpath from the value encoded in an empty executable.
12755
cat >conftest.$ac_ext <<_ACEOF
12758
cat confdefs.h >>conftest.$ac_ext
12759
cat >>conftest.$ac_ext <<_ACEOF
12760
/* end confdefs.h. */
12770
rm -f conftest.$ac_objext conftest$ac_exeext
12771
if { (ac_try="$ac_link"
12772
case "(($ac_try" in
12773
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12774
*) ac_try_echo=$ac_try;;
12776
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12777
$as_echo "$ac_try_echo") >&5
12778
(eval "$ac_link") 2>conftest.er1
12780
grep -v '^ *+' conftest.er1 >conftest.err
12782
cat conftest.err >&5
12783
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12784
(exit $ac_status); } && {
12785
test -z "$ac_cxx_werror_flag" ||
12786
test ! -s conftest.err
12787
} && test -s conftest$ac_exeext && {
12788
test "$cross_compiling" = yes ||
12789
$as_test_x conftest$ac_exeext
12792
lt_aix_libpath_sed='
12793
/Import File Strings/,/^$/ {
12799
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12800
# Check for a 64-bit object if we didn't find anything.
12801
if test -z "$aix_libpath"; then
12802
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12805
$as_echo "$as_me: failed program was:" >&5
12806
sed 's/^/| /' conftest.$ac_ext >&5
12811
rm -rf conftest.dSYM
12812
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12813
conftest$ac_exeext conftest.$ac_ext
12814
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12816
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12818
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"
12820
if test "$host_cpu" = ia64; then
12821
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12822
allow_undefined_flag_CXX="-z nodefs"
12823
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"
12825
# Determine the default libpath from the value encoded in an empty executable.
12826
cat >conftest.$ac_ext <<_ACEOF
12829
cat confdefs.h >>conftest.$ac_ext
12830
cat >>conftest.$ac_ext <<_ACEOF
12831
/* end confdefs.h. */
12841
rm -f conftest.$ac_objext conftest$ac_exeext
12842
if { (ac_try="$ac_link"
12843
case "(($ac_try" in
12844
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12845
*) ac_try_echo=$ac_try;;
12847
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12848
$as_echo "$ac_try_echo") >&5
12849
(eval "$ac_link") 2>conftest.er1
12851
grep -v '^ *+' conftest.er1 >conftest.err
12853
cat conftest.err >&5
12854
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855
(exit $ac_status); } && {
12856
test -z "$ac_cxx_werror_flag" ||
12857
test ! -s conftest.err
12858
} && test -s conftest$ac_exeext && {
12859
test "$cross_compiling" = yes ||
12860
$as_test_x conftest$ac_exeext
12863
lt_aix_libpath_sed='
12864
/Import File Strings/,/^$/ {
12870
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12871
# Check for a 64-bit object if we didn't find anything.
12872
if test -z "$aix_libpath"; then
12873
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12876
$as_echo "$as_me: failed program was:" >&5
12877
sed 's/^/| /' conftest.$ac_ext >&5
12882
rm -rf conftest.dSYM
12883
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12884
conftest$ac_exeext conftest.$ac_ext
12885
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12887
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12888
# Warning - without using the other run time loading flags,
12889
# -berok will link without error, but may produce a broken library.
12890
no_undefined_flag_CXX=' ${wl}-bernotok'
12891
allow_undefined_flag_CXX=' ${wl}-berok'
12892
# Exported symbols can be pulled into shared objects from archives
12893
whole_archive_flag_spec_CXX='$convenience'
12894
archive_cmds_need_lc_CXX=yes
12895
# This is similar to how AIX traditionally builds its shared libraries.
12896
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'
12902
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12903
allow_undefined_flag_CXX=unsupported
12904
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12905
# support --undefined. This deserves some investigation. FIXME
12906
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12913
case $cc_basename in
12915
# FIXME: insert proper C++ library support
12921
cygwin* | mingw* | pw32*)
12922
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12923
# as there is no search path for DLLs.
12924
hardcode_libdir_flag_spec_CXX='-L$libdir'
12925
allow_undefined_flag_CXX=unsupported
12926
always_export_symbols_CXX=no
12927
enable_shared_with_static_runtimes_CXX=yes
12929
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12930
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'
12931
# If the export-symbols file already is a .def file (1st line
12932
# is EXPORTS), use it as is; otherwise, prepend...
12933
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12934
cp $export_symbols $output_objdir/$soname.def;
12936
echo EXPORTS > $output_objdir/$soname.def;
12937
cat $export_symbols >> $output_objdir/$soname.def;
12939
$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'
12944
darwin* | rhapsody*)
12945
archive_cmds_need_lc_CXX=no
12946
hardcode_direct_CXX=no
12947
hardcode_automatic_CXX=yes
12948
hardcode_shlibpath_var_CXX=unsupported
12949
whole_archive_flag_spec_CXX=''
12950
link_all_deplibs_CXX=yes
12951
allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12952
if test "$GXX" = yes ; then
12953
output_verbose_link_cmd='echo'
12954
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}"
12955
module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12956
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}"
12957
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}"
12958
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12959
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}"
12960
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}"
12963
case $cc_basename in
12965
output_verbose_link_cmd='echo'
12966
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'
12967
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12968
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12969
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}'
12970
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}'
12980
case $cc_basename in
12982
# FIXME: insert proper C++ library support
12986
# Green Hills C++ Compiler
12987
# FIXME: insert proper C++ library support
12991
# FIXME: insert proper C++ library support
12997
# C++ shared libraries reported to be fairly broken before switch to ELF
13001
archive_cmds_need_lc_CXX=no
13003
freebsd* | dragonfly*)
13004
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13011
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13012
hardcode_libdir_separator_CXX=:
13013
export_dynamic_flag_spec_CXX='${wl}-E'
13014
hardcode_direct_CXX=yes
13015
hardcode_minus_L_CXX=yes # Not in the search PATH,
13016
# but as the default
13017
# location of the library.
13019
case $cc_basename in
13021
# FIXME: insert proper C++ library support
13025
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'
13026
# Commands to make compiler produce verbose output that lists
13027
# what "hidden" libraries, object files and flags are used when
13028
# linking a shared library.
13030
# There doesn't appear to be a way to prevent this compiler from
13031
# explicitly linking system object files so we need to strip them
13032
# from the output so that they don't get included in the library
13034
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'
13037
if test "$GXX" = yes; then
13038
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'
13040
# FIXME: insert proper C++ library support
13047
if test $with_gnu_ld = no; then
13048
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13049
hardcode_libdir_separator_CXX=:
13054
export_dynamic_flag_spec_CXX='${wl}-E'
13060
hardcode_direct_CXX=no
13061
hardcode_shlibpath_var_CXX=no
13064
hardcode_direct_CXX=yes
13065
hardcode_minus_L_CXX=yes # Not in the search PATH,
13066
# but as the default
13067
# location of the library.
13071
case $cc_basename in
13073
# FIXME: insert proper C++ library support
13079
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13082
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13085
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13088
# Commands to make compiler produce verbose output that lists
13089
# what "hidden" libraries, object files and flags are used when
13090
# linking a shared library.
13092
# There doesn't appear to be a way to prevent this compiler from
13093
# explicitly linking system object files so we need to strip them
13094
# from the output so that they don't get included in the library
13096
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'
13099
if test "$GXX" = yes; then
13100
if test $with_gnu_ld = no; then
13103
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13106
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13109
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'
13114
# FIXME: insert proper C++ library support
13121
hardcode_direct_CXX=no
13122
hardcode_shlibpath_var_CXX=no
13123
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13124
export_dynamic_flag_spec_CXX='${wl}-E'
13125
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13126
# Instead, shared libraries are loaded at an image base (0x10000000 by
13127
# default) and relocated if they conflict, which is a slow very memory
13128
# consuming and fragmenting process. To avoid this, we pick a random,
13129
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13130
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
13131
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'
13132
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'
13135
case $cc_basename in
13138
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'
13140
# Archives containing C++ object files must be created using
13141
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
13142
# necessary to make sure instantiated templates are included
13144
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13147
if test "$GXX" = yes; then
13148
if test "$with_gnu_ld" = no; then
13149
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'
13151
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'
13154
link_all_deplibs_CXX=yes
13157
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13158
hardcode_libdir_separator_CXX=:
13160
linux* | k*bsd*-gnu)
13161
case $cc_basename in
13163
# Kuck and Associates, Inc. (KAI) C++ Compiler
13165
# KCC will only create a shared library if the output file
13166
# ends with ".so" (or ".sl" for HP-UX), so rename the library
13167
# to its proper name (with version) after linking.
13168
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'
13169
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'
13170
# Commands to make compiler produce verbose output that lists
13171
# what "hidden" libraries, object files and flags are used when
13172
# linking a shared library.
13174
# There doesn't appear to be a way to prevent this compiler from
13175
# explicitly linking system object files so we need to strip them
13176
# from the output so that they don't get included in the library
13178
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'
13180
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
13181
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13183
# Archives containing C++ object files must be created using
13184
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
13185
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13190
# version 8.0 and above of icpc choke on multiply defined symbols
13191
# if we add $predep_objects and $postdep_objects, however 7.1 and
13192
# earlier do not add the objects themselves.
13193
case `$CC -V 2>&1` in
13195
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13196
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'
13198
*) # Version 8.0 or newer
13201
ia64*) tmp_idyn=' -i_dynamic';;
13203
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13204
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'
13207
archive_cmds_need_lc_CXX=no
13208
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13209
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13210
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13213
# Portland Group C++ compiler
13214
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13215
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'
13217
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13218
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13219
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'
13223
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13224
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'
13226
runpath_var=LD_RUN_PATH
13227
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13228
hardcode_libdir_separator_CXX=:
13230
# Commands to make compiler produce verbose output that lists
13231
# what "hidden" libraries, object files and flags are used when
13232
# linking a shared library.
13234
# There doesn't appear to be a way to prevent this compiler from
13235
# explicitly linking system object files so we need to strip them
13236
# from the output so that they don't get included in the library
13238
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'
13241
case `$CC -V 2>&1 | sed 5q` in
13244
no_undefined_flag_CXX=' -zdefs'
13245
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13246
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'
13247
hardcode_libdir_flag_spec_CXX='-R$libdir'
13248
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'
13250
# Not sure whether something based on
13251
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13253
output_verbose_link_cmd='echo'
13255
# Archives containing C++ object files must be created using
13256
# "CC -xar", where "CC" is the Sun C++ compiler. This is
13257
# necessary to make sure instantiated templates are included
13259
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13266
# FIXME: insert proper C++ library support
13270
# FIXME: insert proper C++ library support
13274
case $cc_basename in
13276
# FIXME: insert proper C++ library support
13280
# FIXME: insert proper C++ library support
13286
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13287
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13289
hardcode_libdir_flag_spec_CXX='-R$libdir'
13290
hardcode_direct_CXX=yes
13291
hardcode_shlibpath_var_CXX=no
13293
# Workaround some broken pre-1.5 toolchains
13294
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13297
# C++ shared libraries are fairly broken
13301
if test -f /usr/libexec/ld.so; then
13302
hardcode_direct_CXX=yes
13303
hardcode_shlibpath_var_CXX=no
13304
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13305
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13306
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13307
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13308
export_dynamic_flag_spec_CXX='${wl}-E'
13309
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13311
output_verbose_link_cmd='echo'
13317
case $cc_basename in
13319
# Kuck and Associates, Inc. (KAI) C++ Compiler
13321
# KCC will only create a shared library if the output file
13322
# ends with ".so" (or ".sl" for HP-UX), so rename the library
13323
# to its proper name (with version) after linking.
13324
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'
13326
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13327
hardcode_libdir_separator_CXX=:
13329
# Archives containing C++ object files must be created using
13330
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
13331
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13335
# Rational C++ 2.4.1
13336
# FIXME: insert proper C++ library support
13340
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13341
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'
13343
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13344
hardcode_libdir_separator_CXX=:
13346
# Commands to make compiler produce verbose output that lists
13347
# what "hidden" libraries, object files and flags are used when
13348
# linking a shared library.
13350
# There doesn't appear to be a way to prevent this compiler from
13351
# explicitly linking system object files so we need to strip them
13352
# from the output so that they don't get included in the library
13354
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'
13357
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13358
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13359
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'
13361
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13362
hardcode_libdir_separator_CXX=:
13364
# Commands to make compiler produce verbose output that lists
13365
# what "hidden" libraries, object files and flags are used when
13366
# linking a shared library.
13367
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13370
# FIXME: insert proper C++ library support
13377
case $cc_basename in
13379
# Kuck and Associates, Inc. (KAI) C++ Compiler
13381
# KCC will only create a shared library if the output file
13382
# ends with ".so" (or ".sl" for HP-UX), so rename the library
13383
# to its proper name (with version) after linking.
13384
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'
13386
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13387
hardcode_libdir_separator_CXX=:
13389
# Archives containing C++ object files must be created using
13390
# the KAI C++ compiler.
13391
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13394
# Rational C++ 2.4.1
13395
# FIXME: insert proper C++ library support
13399
allow_undefined_flag_CXX=' -expect_unresolved \*'
13400
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'
13401
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13402
echo "-hidden">> $lib.exp~
13403
$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~
13406
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13407
hardcode_libdir_separator_CXX=:
13409
# Commands to make compiler produce verbose output that lists
13410
# what "hidden" libraries, object files and flags are used when
13411
# linking a shared library.
13413
# There doesn't appear to be a way to prevent this compiler from
13414
# explicitly linking system object files so we need to strip them
13415
# from the output so that they don't get included in the library
13417
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'
13420
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13421
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13422
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'
13424
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13425
hardcode_libdir_separator_CXX=:
13427
# Commands to make compiler produce verbose output that lists
13428
# what "hidden" libraries, object files and flags are used when
13429
# linking a shared library.
13430
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13433
# FIXME: insert proper C++ library support
13440
# FIXME: insert proper C++ library support
13444
case $cc_basename in
13447
# FIXME: insert proper C++ library support
13452
# FIXME: insert proper C++ library support
13456
# FIXME: insert proper C++ library support
13462
case $cc_basename in
13464
# Sun C++ 4.2, 5.x and Centerline C++
13465
archive_cmds_need_lc_CXX=yes
13466
no_undefined_flag_CXX=' -zdefs'
13467
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13468
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13469
$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'
13471
hardcode_libdir_flag_spec_CXX='-R$libdir'
13472
hardcode_shlibpath_var_CXX=no
13474
solaris2.[0-5] | solaris2.[0-5].*) ;;
13476
# The compiler driver will combine and reorder linker options,
13477
# but understands `-z linker_flag'.
13478
# Supported since Solaris 2.6 (maybe 2.5.1?)
13479
whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13482
link_all_deplibs_CXX=yes
13484
output_verbose_link_cmd='echo'
13486
# Archives containing C++ object files must be created using
13487
# "CC -xar", where "CC" is the Sun C++ compiler. This is
13488
# necessary to make sure instantiated templates are included
13490
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13493
# Green Hills C++ Compiler
13494
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13496
# The C++ compiler must be used to create the archive.
13497
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13500
# GNU C++ compiler with Solaris linker
13501
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13502
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13503
if $CC --version | grep -v '^2\.7' > /dev/null; then
13504
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13505
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13506
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13508
# Commands to make compiler produce verbose output that lists
13509
# what "hidden" libraries, object files and flags are used when
13510
# linking a shared library.
13511
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13513
# g++ 2.7 appears to require `-G' NOT `-shared' on this
13515
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13516
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13517
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13519
# Commands to make compiler produce verbose output that lists
13520
# what "hidden" libraries, object files and flags are used when
13521
# linking a shared library.
13522
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13525
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13527
solaris2.[0-5] | solaris2.[0-5].*) ;;
13529
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13536
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13537
no_undefined_flag_CXX='${wl}-z,text'
13538
archive_cmds_need_lc_CXX=no
13539
hardcode_shlibpath_var_CXX=no
13540
runpath_var='LD_RUN_PATH'
13542
case $cc_basename in
13544
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13545
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13548
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13549
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13553
sysv5* | sco3.2v5* | sco5v6*)
13554
# Note: We can NOT use -z defs as we might desire, because we do not
13555
# link with -lc, and that would cause any symbols used from libc to
13556
# always be unresolved, which means just about no library would
13557
# ever link correctly. If we're not using GNU ld we use -z text
13558
# though, which does catch some bad symbols but isn't as heavy-handed
13560
# For security reasons, it is highly recommended that you always
13561
# use absolute paths for naming shared libraries, and exclude the
13562
# DT_RUNPATH tag from executables and libraries. But doing so
13563
# requires that you compile everything twice, which is a pain.
13564
# So that behaviour is only enabled if SCOABSPATH is set to a
13565
# non-empty value in the environment. Most likely only useful for
13566
# creating official distributions of packages.
13567
# This is a hack until libtool officially supports absolute path
13568
# names for shared libraries.
13569
no_undefined_flag_CXX='${wl}-z,text'
13570
allow_undefined_flag_CXX='${wl}-z,nodefs'
13571
archive_cmds_need_lc_CXX=no
13572
hardcode_shlibpath_var_CXX=no
13573
hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13574
hardcode_libdir_separator_CXX=':'
13575
link_all_deplibs_CXX=yes
13576
export_dynamic_flag_spec_CXX='${wl}-Bexport'
13577
runpath_var='LD_RUN_PATH'
13579
case $cc_basename in
13581
archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13582
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13585
archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13586
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13591
case $cc_basename in
13593
# NonStop-UX NCC 3.20
13594
# FIXME: insert proper C++ library support
13598
# FIXME: insert proper C++ library support
13604
# FIXME: insert proper C++ library support
13608
# FIXME: insert proper C++ library support
13612
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13613
$as_echo "$ld_shlibs_CXX" >&6; }
13614
test "$ld_shlibs_CXX" = no && can_build_shared=no
13619
cat > conftest.$ac_ext <<EOF
13623
Foo (void) { a = 0; }
13629
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13630
(eval $ac_compile) 2>&5
13632
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633
(exit $ac_status); }; then
13634
# Parse the compiler output and extract the necessary
13635
# objects, libraries and library flags.
13637
# Sentinel used to keep track of whether or not we are before
13638
# the conftest object file.
13639
pre_test_object_deps_done=no
13641
# The `*' in the case matches for architectures that use `case' in
13642
# $output_verbose_cmd can trigger glob expansion during the loop
13643
# eval without this substitution.
13644
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13646
for p in `eval $output_verbose_link_cmd`; do
13650
# Some compilers place space between "-{L,R}" and the path.
13651
# Remove the space.
13652
if test $p = "-L" \
13653
|| test $p = "-R"; then
13660
if test "$pre_test_object_deps_done" = no; then
13663
# Internal compiler library paths should come after those
13664
# provided the user. The postdeps already come after the
13665
# user supplied libs so there is no need to process them.
13666
if test -z "$compiler_lib_search_path_CXX"; then
13667
compiler_lib_search_path_CXX="${prev}${p}"
13669
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13672
# The "-l" case would never come before the object being
13673
# linked, so don't bother handling this case.
13676
if test -z "$postdeps_CXX"; then
13677
postdeps_CXX="${prev}${p}"
13679
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13685
# This assumes that the test object file only shows up
13686
# once in the compiler output.
13687
if test "$p" = "conftest.$objext"; then
13688
pre_test_object_deps_done=yes
13692
if test "$pre_test_object_deps_done" = no; then
13693
if test -z "$predep_objects_CXX"; then
13694
predep_objects_CXX="$p"
13696
predep_objects_CXX="$predep_objects_CXX $p"
13699
if test -z "$postdep_objects_CXX"; then
13700
postdep_objects_CXX="$p"
13702
postdep_objects_CXX="$postdep_objects_CXX $p"
13707
*) ;; # Ignore the rest.
13715
echo "libtool.m4: error: problem compiling CXX test program"
13718
$rm -f confest.$objext
13720
compiler_lib_search_dirs_CXX=
13721
if test -n "$compiler_lib_search_path_CXX"; then
13722
compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13725
# PORTME: override above test on systems where it is broken
13728
# Interix 3.5 installs completely hosed .la files for C++, so rather than
13729
# hack all around it, let's just trust "g++" to DTRT.
13730
predep_objects_CXX=
13731
postdep_objects_CXX=
13736
case `$CC -V 2>&1 | sed 5q` in
13740
# The more standards-conforming stlport4 library is
13741
# incompatible with the Cstd library. Avoid specifying
13742
# it if it's in CXXFLAGS. Ignore libCrun as
13743
# -library=stlport4 depends on it.
13744
case " $CXX $CXXFLAGS " in
13745
*" -library=stlport4 "*)
13746
solaris_use_stlport4=yes
13749
if test "$solaris_use_stlport4" != yes; then
13750
postdeps_CXX='-library=Cstd -library=Crun'
13757
case $cc_basename in
13759
# The more standards-conforming stlport4 library is
13760
# incompatible with the Cstd library. Avoid specifying
13761
# it if it's in CXXFLAGS. Ignore libCrun as
13762
# -library=stlport4 depends on it.
13763
case " $CXX $CXXFLAGS " in
13764
*" -library=stlport4 "*)
13765
solaris_use_stlport4=yes
13769
# Adding this requires a known-good setup of shared libraries for
13770
# Sun compiler versions before 5.6, else PIC objects from an old
13771
# archive will be linked into the output, leading to subtle bugs.
13772
if test "$solaris_use_stlport4" != yes; then
13773
postdeps_CXX='-library=Cstd -library=Crun'
13780
case " $postdeps_CXX " in
13781
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13784
lt_prog_compiler_wl_CXX=
13785
lt_prog_compiler_pic_CXX=
13786
lt_prog_compiler_static_CXX=
13788
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13789
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13791
# C++ specific cases for pic, static, wl, etc.
13792
if test "$GXX" = yes; then
13793
lt_prog_compiler_wl_CXX='-Wl,'
13794
lt_prog_compiler_static_CXX='-static'
13798
# All AIX code is PIC.
13799
if test "$host_cpu" = ia64; then
13800
# AIX 5 now supports IA64 processor
13801
lt_prog_compiler_static_CXX='-Bstatic'
13805
# FIXME: we need at least 68020 code to build shared libraries, but
13806
# adding the `-m68020' flag to GCC prevents building anything better,
13808
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13810
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13811
# PIC is the default for these OSes.
13813
mingw* | cygwin* | os2* | pw32*)
13814
# This hack is so that the source file can tell whether it is being
13815
# built for inclusion in a dll (and should export symbols for example).
13816
# Although the cygwin gcc ignores -fPIC, still need this for old-style
13817
# (--disable-auto-import) libraries
13818
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13820
darwin* | rhapsody*)
13821
# PIC is the default on this platform
13822
# Common symbols not allowed in MH_DYLIB files
13823
lt_prog_compiler_pic_CXX='-fno-common'
13826
# DJGPP does not support shared libraries at all
13827
lt_prog_compiler_pic_CXX=
13830
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
13831
# Instead, we relocate shared libraries at runtime.
13834
if test -d /usr/nec; then
13835
lt_prog_compiler_pic_CXX=-Kconform_pic
13839
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13840
# not for PA HP-UX.
13845
lt_prog_compiler_pic_CXX='-fPIC'
13850
lt_prog_compiler_pic_CXX='-fPIC'
13856
# All AIX code is PIC.
13857
if test "$host_cpu" = ia64; then
13858
# AIX 5 now supports IA64 processor
13859
lt_prog_compiler_static_CXX='-Bstatic'
13861
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13865
case $cc_basename in
13867
# Green Hills C++ Compiler
13868
# _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"
13873
# PIC is the default on this platform
13874
# Common symbols not allowed in MH_DYLIB files
13875
case $cc_basename in
13877
lt_prog_compiler_pic_CXX='-qnocommon'
13878
lt_prog_compiler_wl_CXX='-Wl,'
13883
case $cc_basename in
13885
lt_prog_compiler_pic_CXX='-KPIC'
13888
# Green Hills C++ Compiler
13889
lt_prog_compiler_pic_CXX='-pic'
13895
freebsd* | dragonfly*)
13896
# FreeBSD uses GNU C++
13898
hpux9* | hpux10* | hpux11*)
13899
case $cc_basename in
13901
lt_prog_compiler_wl_CXX='-Wl,'
13902
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13903
if test "$host_cpu" != ia64; then
13904
lt_prog_compiler_pic_CXX='+Z'
13908
lt_prog_compiler_wl_CXX='-Wl,'
13909
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13915
lt_prog_compiler_pic_CXX='+Z'
13924
# This is c89, which is MS Visual C++ (no shared libs)
13925
# Anyone wants to do a port?
13927
irix5* | irix6* | nonstopux*)
13928
case $cc_basename in
13930
lt_prog_compiler_wl_CXX='-Wl,'
13931
lt_prog_compiler_static_CXX='-non_shared'
13932
# CC pic flag -KPIC is the default.
13938
linux* | k*bsd*-gnu)
13939
case $cc_basename in
13942
lt_prog_compiler_wl_CXX='--backend -Wl,'
13943
lt_prog_compiler_pic_CXX='-fPIC'
13947
lt_prog_compiler_wl_CXX='-Wl,'
13948
lt_prog_compiler_pic_CXX='-KPIC'
13949
lt_prog_compiler_static_CXX='-static'
13952
# Portland Group C++ compiler.
13953
lt_prog_compiler_wl_CXX='-Wl,'
13954
lt_prog_compiler_pic_CXX='-fpic'
13955
lt_prog_compiler_static_CXX='-Bstatic'
13959
# Make sure the PIC flag is empty. It appears that all Alpha
13960
# Linux and Compaq Tru64 Unix objects are PIC.
13961
lt_prog_compiler_pic_CXX=
13962
lt_prog_compiler_static_CXX='-non_shared'
13965
case `$CC -V 2>&1 | sed 5q` in
13968
lt_prog_compiler_pic_CXX='-KPIC'
13969
lt_prog_compiler_static_CXX='-Bstatic'
13970
lt_prog_compiler_wl_CXX='-Qoption ld '
13981
case $cc_basename in
13983
lt_prog_compiler_pic_CXX='-W c,exportall'
13991
osf3* | osf4* | osf5*)
13992
case $cc_basename in
13994
lt_prog_compiler_wl_CXX='--backend -Wl,'
13997
# Rational C++ 2.4.1
13998
lt_prog_compiler_pic_CXX='-pic'
14001
# Digital/Compaq C++
14002
lt_prog_compiler_wl_CXX='-Wl,'
14003
# Make sure the PIC flag is empty. It appears that all Alpha
14004
# Linux and Compaq Tru64 Unix objects are PIC.
14005
lt_prog_compiler_pic_CXX=
14006
lt_prog_compiler_static_CXX='-non_shared'
14015
case $cc_basename in
14017
# Sun C++ 4.2, 5.x and Centerline C++
14018
lt_prog_compiler_pic_CXX='-KPIC'
14019
lt_prog_compiler_static_CXX='-Bstatic'
14020
lt_prog_compiler_wl_CXX='-Qoption ld '
14023
# Green Hills C++ Compiler
14024
lt_prog_compiler_pic_CXX='-PIC'
14031
case $cc_basename in
14034
lt_prog_compiler_pic_CXX='-pic'
14035
lt_prog_compiler_static_CXX='-Bstatic'
14039
lt_prog_compiler_pic_CXX='-pic'
14046
case $cc_basename in
14048
# NonStop-UX NCC 3.20
14049
lt_prog_compiler_pic_CXX='-KPIC'
14055
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14056
case $cc_basename in
14058
lt_prog_compiler_wl_CXX='-Wl,'
14059
lt_prog_compiler_pic_CXX='-KPIC'
14060
lt_prog_compiler_static_CXX='-Bstatic'
14067
lt_prog_compiler_can_build_shared_CXX=no
14072
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14073
$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14076
# Check to make sure the PIC flag actually works.
14078
if test -n "$lt_prog_compiler_pic_CXX"; then
14080
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14081
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14082
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14083
$as_echo_n "(cached) " >&6
14085
lt_cv_prog_compiler_pic_works_CXX=no
14086
ac_outfile=conftest.$ac_objext
14087
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14088
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14089
# Insert the option either (1) after the last *FLAGS variable, or
14090
# (2) before a word containing "conftest.", or (3) at the end.
14091
# Note that $ac_compile itself does not contain backslashes and begins
14092
# with a dollar sign (not a hyphen), so the echo should work correctly.
14093
# The option is referenced via a variable to avoid confusing sed.
14094
lt_compile=`echo "$ac_compile" | $SED \
14095
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14096
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14097
-e 's:$: $lt_compiler_flag:'`
14098
(eval echo "\"\$as_me:14098: $lt_compile\"" >&5)
14099
(eval "$lt_compile" 2>conftest.err)
14101
cat conftest.err >&5
14102
echo "$as_me:14102: \$? = $ac_status" >&5
14103
if (exit $ac_status) && test -s "$ac_outfile"; then
14104
# The compiler can only warn and ignore the option if not recognized
14105
# So say no if there are warnings other than the usual output.
14106
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14107
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14108
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14109
lt_cv_prog_compiler_pic_works_CXX=yes
14115
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14116
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14118
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14119
case $lt_prog_compiler_pic_CXX in
14121
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14124
lt_prog_compiler_pic_CXX=
14125
lt_prog_compiler_can_build_shared_CXX=no
14130
# For platforms which do not support PIC, -DPIC is meaningless:
14132
lt_prog_compiler_pic_CXX=
14135
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14140
# Check to make sure the static flag actually works.
14142
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14143
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14144
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14145
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14146
$as_echo_n "(cached) " >&6
14148
lt_cv_prog_compiler_static_works_CXX=no
14149
save_LDFLAGS="$LDFLAGS"
14150
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14151
echo "$lt_simple_link_test_code" > conftest.$ac_ext
14152
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14153
# The linker can only warn and ignore the option if not recognized
14154
# So say no if there are warnings
14155
if test -s conftest.err; then
14156
# Append any errors to the config.log.
14157
cat conftest.err 1>&5
14158
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14159
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14160
if diff conftest.exp conftest.er2 >/dev/null; then
14161
lt_cv_prog_compiler_static_works_CXX=yes
14164
lt_cv_prog_compiler_static_works_CXX=yes
14168
LDFLAGS="$save_LDFLAGS"
14171
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14172
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14174
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14177
lt_prog_compiler_static_CXX=
14181
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14182
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14183
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14184
$as_echo_n "(cached) " >&6
14186
lt_cv_prog_compiler_c_o_CXX=no
14187
$rm -r conftest 2>/dev/null
14191
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14193
lt_compiler_flag="-o out/conftest2.$ac_objext"
14194
# Insert the option either (1) after the last *FLAGS variable, or
14195
# (2) before a word containing "conftest.", or (3) at the end.
14196
# Note that $ac_compile itself does not contain backslashes and begins
14197
# with a dollar sign (not a hyphen), so the echo should work correctly.
14198
lt_compile=`echo "$ac_compile" | $SED \
14199
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14200
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14201
-e 's:$: $lt_compiler_flag:'`
14202
(eval echo "\"\$as_me:14202: $lt_compile\"" >&5)
14203
(eval "$lt_compile" 2>out/conftest.err)
14205
cat out/conftest.err >&5
14206
echo "$as_me:14206: \$? = $ac_status" >&5
14207
if (exit $ac_status) && test -s out/conftest2.$ac_objext
14209
# The compiler can only warn and ignore the option if not recognized
14210
# So say no if there are warnings
14211
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14212
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14213
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14214
lt_cv_prog_compiler_c_o_CXX=yes
14219
# SGI C++ compiler will create directory out/ii_files/ for
14220
# template instantiation
14221
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14222
$rm out/* && rmdir out
14228
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14229
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14232
hard_links="nottested"
14233
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14234
# do not overwrite the value of need_locks provided by the user
14235
{ $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14236
$as_echo_n "checking if we can lock with hard links... " >&6; }
14239
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14241
ln conftest.a conftest.b 2>&5 || hard_links=no
14242
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14243
{ $as_echo "$as_me:$LINENO: result: $hard_links" >&5
14244
$as_echo "$hard_links" >&6; }
14245
if test "$hard_links" = no; then
14246
{ $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14247
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14254
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14255
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14257
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14260
# If we're using GNU nm, then we don't want the "-C" option.
14261
# -C means demangle to AIX nm, but means don't demangle with GNU nm
14262
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14263
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'
14265
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'
14269
export_symbols_cmds_CXX="$ltdll_cmds"
14272
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'
14275
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14278
exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14280
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14281
$as_echo "$ld_shlibs_CXX" >&6; }
14282
test "$ld_shlibs_CXX" = no && can_build_shared=no
14285
# Do we need to explicitly link libc?
14287
case "x$archive_cmds_need_lc_CXX" in
14289
# Assume -lc should be added
14290
archive_cmds_need_lc_CXX=yes
14292
if test "$enable_shared" = yes && test "$GCC" = yes; then
14293
case $archive_cmds_CXX in
14295
# FIXME: we may have to deal with multi-command sequences.
14298
# Test whether the compiler implicitly links with -lc since on some
14299
# systems, -lgcc has to come before -lc. If gcc already passes -lc
14300
# to ld, don't add -lc before -lgcc.
14301
{ $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14302
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14304
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14306
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14307
(eval $ac_compile) 2>&5
14309
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14310
(exit $ac_status); } 2>conftest.err; then
14313
libobjs=conftest.$ac_objext
14315
wl=$lt_prog_compiler_wl_CXX
14316
pic_flag=$lt_prog_compiler_pic_CXX
14322
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14323
allow_undefined_flag_CXX=
14324
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14325
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14327
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328
(exit $ac_status); }
14330
archive_cmds_need_lc_CXX=no
14332
archive_cmds_need_lc_CXX=yes
14334
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14336
cat conftest.err 1>&5
14339
{ $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14340
$as_echo "$archive_cmds_need_lc_CXX" >&6; }
14347
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14348
$as_echo_n "checking dynamic linker characteristics... " >&6; }
14349
library_names_spec=
14350
libname_spec='lib$name'
14354
postuninstall_cmds=
14358
shlibpath_overrides_runpath=unknown
14360
dynamic_linker="$host_os ld.so"
14361
sys_lib_dlsearch_path_spec="/lib /usr/lib"
14363
need_lib_prefix=unknown
14364
hardcode_into_libs=no
14366
# when you set need_version to no, make sure it does not cause -set_version
14367
# flags to be left without arguments
14368
need_version=unknown
14373
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14374
shlibpath_var=LIBPATH
14376
# AIX 3 has no versioning support, so we append a major version to the name.
14377
soname_spec='${libname}${release}${shared_ext}$major'
14384
hardcode_into_libs=yes
14385
if test "$host_cpu" = ia64; then
14386
# AIX 5 supports IA64
14387
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14388
shlibpath_var=LD_LIBRARY_PATH
14390
# With GCC up to 2.95.x, collect2 would create an import file
14391
# for dependence libraries. The import file would start with
14392
# the line `#! .'. This would cause the generated library to
14393
# depend on `.', always an invalid library. This was fixed in
14394
# development snapshots of GCC prior to 3.0.
14396
aix4 | aix4.[01] | aix4.[01].*)
14397
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14399
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14402
can_build_shared=no
14406
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14407
# soname into executable. Probably we can add versioning support to
14408
# collect2, so additional links can be useful in future.
14409
if test "$aix_use_runtimelinking" = yes; then
14410
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
14411
# instead of lib<name>.a to let people know that these are not
14412
# typical AIX shared libraries.
14413
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14415
# We preserve .a as extension for shared libraries through AIX4.2
14416
# and later when we are not doing run time linking.
14417
library_names_spec='${libname}${release}.a $libname.a'
14418
soname_spec='${libname}${release}${shared_ext}$major'
14420
shlibpath_var=LIBPATH
14425
library_names_spec='$libname.ixlibrary $libname.a'
14426
# Create ${libname}_ixlibrary.a entries in /sys/libs.
14427
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'
14431
library_names_spec='${libname}${shared_ext}'
14432
dynamic_linker="$host_os ld.so"
14433
shlibpath_var=LIBRARY_PATH
14439
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14440
soname_spec='${libname}${release}${shared_ext}$major'
14441
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14442
shlibpath_var=LD_LIBRARY_PATH
14443
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14444
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14445
# the default ld.so.conf also contains /usr/contrib/lib and
14446
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14447
# libtool to hard-code these into programs
14450
cygwin* | mingw* | pw32*)
14451
version_type=windows
14456
case $GCC,$host_os in
14457
yes,cygwin* | yes,mingw* | yes,pw32*)
14458
library_names_spec='$libname.dll.a'
14459
# DLL is installed to $(libdir)/../bin by postinstall_cmds
14460
postinstall_cmds='base_file=`basename \${file}`~
14461
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14462
dldir=$destdir/`dirname \$dlpath`~
14463
test -d \$dldir || mkdir -p \$dldir~
14464
$install_prog $dir/$dlname \$dldir/$dlname~
14465
chmod a+x \$dldir/$dlname'
14466
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14467
dlpath=$dir/\$dldll~
14469
shlibpath_overrides_runpath=yes
14473
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
14474
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14475
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14478
# MinGW DLLs use traditional 'lib' prefix
14479
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14480
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14481
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14482
# It is most probably a Windows format PATH printed by
14483
# mingw gcc, but we are running on Cygwin. Gcc prints its search
14484
# path with ; separators, and with drive letters. We can handle the
14485
# drive letters (cygwin fileutils understands them), so leave them,
14486
# especially as we might pass files found there to a mingw objdump,
14487
# which wouldn't understand a cygwinified path. Ahh.
14488
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14490
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14494
# pw32 DLLs use 'pw' prefix rather than 'lib'
14495
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14501
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14504
dynamic_linker='Win32 ld.exe'
14505
# FIXME: first we should search . and the directory the executable is in
14509
darwin* | rhapsody*)
14510
dynamic_linker="$host_os dyld"
14511
version_type=darwin
14514
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14515
soname_spec='${libname}${release}${major}$shared_ext'
14516
shlibpath_overrides_runpath=yes
14517
shlibpath_var=DYLD_LIBRARY_PATH
14518
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14520
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14527
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14528
soname_spec='${libname}${release}${shared_ext}$major'
14529
shlibpath_var=LD_LIBRARY_PATH
14536
freebsd* | dragonfly*)
14537
# DragonFly does not have aout. When/if they implement a new
14538
# versioning mechanism, adjust this.
14539
if test -x /usr/bin/objformat; then
14540
objformat=`/usr/bin/objformat`
14543
freebsd[123]*) objformat=aout ;;
14544
*) objformat=elf ;;
14547
version_type=freebsd-$objformat
14548
case $version_type in
14550
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14555
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14559
shlibpath_var=LD_LIBRARY_PATH
14562
shlibpath_overrides_runpath=yes
14564
freebsd3.[01]* | freebsdelf3.[01]*)
14565
shlibpath_overrides_runpath=yes
14566
hardcode_into_libs=yes
14568
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14569
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14570
shlibpath_overrides_runpath=no
14571
hardcode_into_libs=yes
14573
*) # from 4.6 on, and DragonFly
14574
shlibpath_overrides_runpath=yes
14575
hardcode_into_libs=yes
14584
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14585
soname_spec='${libname}${release}${shared_ext}$major'
14586
shlibpath_var=LD_LIBRARY_PATH
14587
hardcode_into_libs=yes
14590
hpux9* | hpux10* | hpux11*)
14591
# Give a soname corresponding to the major version so that dld.sl refuses to
14592
# link against other versions.
14599
hardcode_into_libs=yes
14600
dynamic_linker="$host_os dld.so"
14601
shlibpath_var=LD_LIBRARY_PATH
14602
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14603
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14604
soname_spec='${libname}${release}${shared_ext}$major'
14605
if test "X$HPUX_IA64_MODE" = X32; then
14606
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14608
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14610
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14614
hardcode_into_libs=yes
14615
dynamic_linker="$host_os dld.sl"
14616
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14617
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14618
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14619
soname_spec='${libname}${release}${shared_ext}$major'
14620
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14621
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14625
dynamic_linker="$host_os dld.sl"
14626
shlibpath_var=SHLIB_PATH
14627
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14628
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14629
soname_spec='${libname}${release}${shared_ext}$major'
14632
# HP-UX runs *really* slowly unless shared libraries are mode 555.
14633
postinstall_cmds='chmod 555 $lib'
14640
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14641
soname_spec='${libname}${release}${shared_ext}$major'
14642
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14643
shlibpath_var=LD_LIBRARY_PATH
14644
shlibpath_overrides_runpath=no
14645
hardcode_into_libs=yes
14648
irix5* | irix6* | nonstopux*)
14650
nonstopux*) version_type=nonstopux ;;
14652
if test "$lt_cv_prog_gnu_ld" = yes; then
14660
soname_spec='${libname}${release}${shared_ext}$major'
14661
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14663
irix5* | nonstopux*)
14664
libsuff= shlibsuff=
14667
case $LD in # libtool.m4 will add one of these switches to LD
14668
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14669
libsuff= shlibsuff= libmagic=32-bit;;
14670
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14671
libsuff=32 shlibsuff=N32 libmagic=N32;;
14672
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14673
libsuff=64 shlibsuff=64 libmagic=64-bit;;
14674
*) libsuff= shlibsuff= libmagic=never-match;;
14678
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14679
shlibpath_overrides_runpath=no
14680
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14681
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14682
hardcode_into_libs=yes
14685
# No shared lib support for Linux oldld, aout, or coff.
14686
linux*oldld* | linux*aout* | linux*coff*)
14690
# This must be Linux ELF.
14691
linux* | k*bsd*-gnu)
14695
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14696
soname_spec='${libname}${release}${shared_ext}$major'
14697
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14698
shlibpath_var=LD_LIBRARY_PATH
14699
shlibpath_overrides_runpath=no
14700
# This implies no fast_install, which is unacceptable.
14701
# Some rework will be needed to allow for fast_install
14702
# before this can be enabled.
14703
hardcode_into_libs=yes
14705
# Append ld.so.conf contents to the search path
14706
if test -f /etc/ld.so.conf; then
14707
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' ' '`
14708
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14711
# We used to test for /lib/ld.so.1 and disable shared libraries on
14712
# powerpc, because MkLinux only supported shared libraries with the
14713
# GNU dynamic linker. Since this was broken with cross compilers,
14714
# most powerpc-linux boxes support dynamic linking these days and
14715
# people can always --disable-shared, the test was removed, and we
14716
# assume the GNU/Linux dynamic linker is in use.
14717
dynamic_linker='GNU/Linux ld.so'
14724
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14725
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14726
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14727
dynamic_linker='NetBSD (a.out) ld.so'
14729
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14730
soname_spec='${libname}${release}${shared_ext}$major'
14731
dynamic_linker='NetBSD ld.elf_so'
14733
shlibpath_var=LD_LIBRARY_PATH
14734
shlibpath_overrides_runpath=yes
14735
hardcode_into_libs=yes
14740
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14741
shlibpath_var=LD_LIBRARY_PATH
14742
shlibpath_overrides_runpath=yes
14749
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14750
soname_spec='${libname}${release}${shared_ext}$major'
14751
shlibpath_var=LD_LIBRARY_PATH
14752
shlibpath_overrides_runpath=yes
14757
sys_lib_dlsearch_path_spec="/usr/lib"
14759
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14761
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14762
*) need_version=no ;;
14764
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14765
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14766
shlibpath_var=LD_LIBRARY_PATH
14767
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14769
openbsd2.[89] | openbsd2.[89].*)
14770
shlibpath_overrides_runpath=no
14773
shlibpath_overrides_runpath=yes
14777
shlibpath_overrides_runpath=yes
14782
libname_spec='$name'
14785
library_names_spec='$libname${shared_ext} $libname.a'
14786
dynamic_linker='OS/2 ld.exe'
14787
shlibpath_var=LIBPATH
14790
osf3* | osf4* | osf5*)
14794
soname_spec='${libname}${release}${shared_ext}$major'
14795
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14796
shlibpath_var=LD_LIBRARY_PATH
14797
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14798
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14809
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14810
soname_spec='${libname}${release}${shared_ext}$major'
14811
shlibpath_var=LD_LIBRARY_PATH
14812
shlibpath_overrides_runpath=yes
14813
hardcode_into_libs=yes
14814
# ldd complains unless libraries are executable
14815
postinstall_cmds='chmod +x $lib'
14820
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14821
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14822
shlibpath_var=LD_LIBRARY_PATH
14823
shlibpath_overrides_runpath=yes
14824
if test "$with_gnu_ld" = yes; then
14832
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14833
soname_spec='${libname}${release}${shared_ext}$major'
14834
shlibpath_var=LD_LIBRARY_PATH
14835
case $host_vendor in
14837
shlibpath_overrides_runpath=no
14839
export_dynamic_flag_spec='${wl}-Blargedynsym'
14840
runpath_var=LD_RUN_PATH
14848
shlibpath_overrides_runpath=no
14849
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14855
if test -d /usr/nec ;then
14857
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14858
soname_spec='$libname${shared_ext}.$major'
14859
shlibpath_var=LD_LIBRARY_PATH
14863
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14864
version_type=freebsd-elf
14867
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14868
soname_spec='${libname}${release}${shared_ext}$major'
14869
shlibpath_var=LD_LIBRARY_PATH
14870
hardcode_into_libs=yes
14871
if test "$with_gnu_ld" = yes; then
14872
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14873
shlibpath_overrides_runpath=no
14875
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14876
shlibpath_overrides_runpath=yes
14879
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14883
sys_lib_dlsearch_path_spec='/usr/lib'
14888
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14889
soname_spec='${libname}${release}${shared_ext}$major'
14890
shlibpath_var=LD_LIBRARY_PATH
14897
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14898
$as_echo "$dynamic_linker" >&6; }
14899
test "$dynamic_linker" = no && can_build_shared=no
14901
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14902
$as_echo_n "(cached) " >&6
14904
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
14907
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14908
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14909
$as_echo_n "(cached) " >&6
14911
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
14914
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14916
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14917
if test "$GCC" = yes; then
14918
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14921
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14922
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14923
hardcode_action_CXX=
14924
if test -n "$hardcode_libdir_flag_spec_CXX" || \
14925
test -n "$runpath_var_CXX" || \
14926
test "X$hardcode_automatic_CXX" = "Xyes" ; then
14928
# We can hardcode non-existant directories.
14929
if test "$hardcode_direct_CXX" != no &&
14930
# If the only mechanism to avoid hardcoding is shlibpath_var, we
14931
# have to relink, otherwise we might link with an installed library
14932
# when we should be linking with a yet-to-be-installed one
14933
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14934
test "$hardcode_minus_L_CXX" != no; then
14935
# Linking always hardcodes the temporary library directory.
14936
hardcode_action_CXX=relink
14938
# We can link without hardcoding, and we can hardcode nonexisting dirs.
14939
hardcode_action_CXX=immediate
14942
# We cannot hardcode anything, or else we can only hardcode existing
14944
hardcode_action_CXX=unsupported
14946
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14947
$as_echo "$hardcode_action_CXX" >&6; }
14949
if test "$hardcode_action_CXX" = relink; then
14950
# Fast installation is not supported
14951
enable_fast_install=no
14952
elif test "$shlibpath_overrides_runpath" = yes ||
14953
test "$enable_shared" = no; then
14954
# Fast installation is not necessary
14955
enable_fast_install=needless
14959
# The else clause should only fire when bootstrapping the
14960
# libtool distribution, otherwise you forgot to ship ltmain.sh
14961
# with your package, and you will get complaints that there are
14962
# no rules to generate ltmain.sh.
14963
if test -f "$ltmain"; then
14964
# See if we are running on zsh, and set the options which allow our commands through
14965
# without removal of \ escapes.
14966
if test -n "${ZSH_VERSION+set}" ; then
14967
setopt NO_GLOB_SUBST
14969
# Now quote all the things that may contain metacharacters while being
14970
# careful not to overquote the AC_SUBSTed values. We take copies of the
14971
# variables and quote the copies for generation of the libtool script.
14972
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14974
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14975
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14976
deplibs_check_method reload_flag reload_cmds need_locks \
14977
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14978
lt_cv_sys_global_symbol_to_c_name_address \
14979
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14980
old_postinstall_cmds old_postuninstall_cmds \
14984
lt_prog_compiler_wl_CXX \
14985
lt_prog_compiler_pic_CXX \
14986
lt_prog_compiler_static_CXX \
14987
lt_prog_compiler_no_builtin_flag_CXX \
14988
export_dynamic_flag_spec_CXX \
14989
thread_safe_flag_spec_CXX \
14990
whole_archive_flag_spec_CXX \
14991
enable_shared_with_static_runtimes_CXX \
14992
old_archive_cmds_CXX \
14993
old_archive_from_new_cmds_CXX \
14994
predep_objects_CXX \
14995
postdep_objects_CXX \
14998
compiler_lib_search_path_CXX \
14999
compiler_lib_search_dirs_CXX \
15001
archive_expsym_cmds_CXX \
15002
postinstall_cmds_CXX \
15003
postuninstall_cmds_CXX \
15004
old_archive_from_expsyms_cmds_CXX \
15005
allow_undefined_flag_CXX \
15006
no_undefined_flag_CXX \
15007
export_symbols_cmds_CXX \
15008
hardcode_libdir_flag_spec_CXX \
15009
hardcode_libdir_flag_spec_ld_CXX \
15010
hardcode_libdir_separator_CXX \
15011
hardcode_automatic_CXX \
15013
module_expsym_cmds_CXX \
15014
lt_cv_prog_compiler_c_o_CXX \
15015
fix_srcfile_path_CXX \
15016
exclude_expsyms_CXX \
15017
include_expsyms_CXX; do
15020
old_archive_cmds_CXX | \
15021
old_archive_from_new_cmds_CXX | \
15022
archive_cmds_CXX | \
15023
archive_expsym_cmds_CXX | \
15024
module_cmds_CXX | \
15025
module_expsym_cmds_CXX | \
15026
old_archive_from_expsyms_cmds_CXX | \
15027
export_symbols_cmds_CXX | \
15028
extract_expsyms_cmds | reload_cmds | finish_cmds | \
15029
postinstall_cmds | postuninstall_cmds | \
15030
old_postinstall_cmds | old_postuninstall_cmds | \
15031
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15032
# Double-quote double-evaled strings.
15033
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15036
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15042
*'\$0 --fallback-echo"')
15043
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15049
cat <<__EOF__ >> "$cfgfile"
15050
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15052
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15054
# Shell to use when invoking shell scripts.
15057
# Whether or not to build shared libraries.
15058
build_libtool_libs=$enable_shared
15060
# Whether or not to build static libraries.
15061
build_old_libs=$enable_static
15063
# Whether or not to add -lc for building shared libraries.
15064
build_libtool_need_lc=$archive_cmds_need_lc_CXX
15066
# Whether or not to disallow shared libs when runtime libs are static
15067
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
15069
# Whether or not to optimize for fast installation.
15070
fast_install=$enable_fast_install
15073
host_alias=$host_alias
15077
# The build system.
15078
build_alias=$build_alias
15082
# An echo program that does not interpret backslashes.
15087
AR_FLAGS=$lt_AR_FLAGS
15092
# LTCC compiler flags.
15093
LTCFLAGS=$lt_LTCFLAGS
15095
# A language-specific compiler.
15096
CC=$lt_compiler_CXX
15098
# Is the compiler the GNU C compiler?
15104
# The linker used to build libraries.
15107
# Whether we need hard or soft links.
15110
# A BSD-compatible nm program.
15113
# A symbol stripping program
15116
# Used to examine libraries when file_magic_cmd begins "file"
15117
MAGIC_CMD=$MAGIC_CMD
15119
# Used on cygwin: DLL creation program.
15122
# Used on cygwin: object dumper.
15125
# Used on cygwin: assembler.
15128
# The name of the directory that contains temporary libtool files.
15131
# How to create reloadable object files.
15132
reload_flag=$lt_reload_flag
15133
reload_cmds=$lt_reload_cmds
15135
# How to pass a linker flag through the compiler.
15136
wl=$lt_lt_prog_compiler_wl_CXX
15138
# Object file suffix (normally "o").
15139
objext="$ac_objext"
15141
# Old archive suffix (normally "a").
15144
# Shared library suffix (normally ".so").
15145
shrext_cmds='$shrext_cmds'
15147
# Executable file suffix (normally "").
15150
# Additional compiler flags for building library objects.
15151
pic_flag=$lt_lt_prog_compiler_pic_CXX
15154
# What is the maximum length of a command?
15155
max_cmd_len=$lt_cv_sys_max_cmd_len
15157
# Does compiler simultaneously support -c and -o options?
15158
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15160
# Must we lock files when doing compilation?
15161
need_locks=$lt_need_locks
15163
# Do we need the lib prefix for modules?
15164
need_lib_prefix=$need_lib_prefix
15166
# Do we need a version for libraries?
15167
need_version=$need_version
15169
# Whether dlopen is supported.
15170
dlopen_support=$enable_dlopen
15172
# Whether dlopen of programs is supported.
15173
dlopen_self=$enable_dlopen_self
15175
# Whether dlopen of statically linked programs is supported.
15176
dlopen_self_static=$enable_dlopen_self_static
15178
# Compiler flag to prevent dynamic linking.
15179
link_static_flag=$lt_lt_prog_compiler_static_CXX
15181
# Compiler flag to turn off builtin functions.
15182
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15184
# Compiler flag to allow reflexive dlopens.
15185
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15187
# Compiler flag to generate shared objects directly from archives.
15188
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15190
# Compiler flag to generate thread-safe objects.
15191
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15193
# Library versioning type.
15194
version_type=$version_type
15196
# Format of library name prefix.
15197
libname_spec=$lt_libname_spec
15199
# List of archive names. First name is the real one, the rest are links.
15200
# The last name is the one that the linker finds with -lNAME.
15201
library_names_spec=$lt_library_names_spec
15203
# The coded name of the library, if different from the real name.
15204
soname_spec=$lt_soname_spec
15206
# Commands used to build and install an old-style archive.
15208
old_archive_cmds=$lt_old_archive_cmds_CXX
15209
old_postinstall_cmds=$lt_old_postinstall_cmds
15210
old_postuninstall_cmds=$lt_old_postuninstall_cmds
15212
# Create an old-style archive from a shared archive.
15213
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15215
# Create a temporary old-style archive to link instead of a shared archive.
15216
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15218
# Commands used to build and install a shared archive.
15219
archive_cmds=$lt_archive_cmds_CXX
15220
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15221
postinstall_cmds=$lt_postinstall_cmds
15222
postuninstall_cmds=$lt_postuninstall_cmds
15224
# Commands used to build a loadable module (assumed same as above if empty)
15225
module_cmds=$lt_module_cmds_CXX
15226
module_expsym_cmds=$lt_module_expsym_cmds_CXX
15228
# Commands to strip libraries.
15229
old_striplib=$lt_old_striplib
15230
striplib=$lt_striplib
15232
# Dependencies to place before the objects being linked to create a
15234
predep_objects=$lt_predep_objects_CXX
15236
# Dependencies to place after the objects being linked to create a
15238
postdep_objects=$lt_postdep_objects_CXX
15240
# Dependencies to place before the objects being linked to create a
15242
predeps=$lt_predeps_CXX
15244
# Dependencies to place after the objects being linked to create a
15246
postdeps=$lt_postdeps_CXX
15248
# The directories searched by this compiler when creating a shared
15250
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
15252
# The library search path used internally by the compiler when linking
15253
# a shared library.
15254
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15256
# Method to check whether dependent libraries are shared objects.
15257
deplibs_check_method=$lt_deplibs_check_method
15259
# Command to use when deplibs_check_method == file_magic.
15260
file_magic_cmd=$lt_file_magic_cmd
15262
# Flag that allows shared libraries with undefined symbols to be built.
15263
allow_undefined_flag=$lt_allow_undefined_flag_CXX
15265
# Flag that forces no undefined symbols.
15266
no_undefined_flag=$lt_no_undefined_flag_CXX
15268
# Commands used to finish a libtool library installation in a directory.
15269
finish_cmds=$lt_finish_cmds
15271
# Same as above, but a single script fragment to be evaled but not shown.
15272
finish_eval=$lt_finish_eval
15274
# Take the output of nm and produce a listing of raw symbols and C names.
15275
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15277
# Transform the output of nm in a proper C declaration
15278
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15280
# Transform the output of nm in a C name address pair
15281
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15283
# This is the shared library runtime path variable.
15284
runpath_var=$runpath_var
15286
# This is the shared library path variable.
15287
shlibpath_var=$shlibpath_var
15289
# Is shlibpath searched before the hard-coded library search path?
15290
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15292
# How to hardcode a shared library path into an executable.
15293
hardcode_action=$hardcode_action_CXX
15295
# Whether we should hardcode library paths into libraries.
15296
hardcode_into_libs=$hardcode_into_libs
15298
# Flag to hardcode \$libdir into a binary during linking.
15299
# This must work even if \$libdir does not exist.
15300
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15302
# If ld is used when linking, flag to hardcode \$libdir into
15303
# a binary during linking. This must work even if \$libdir does
15305
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15307
# Whether we need a single -rpath flag with a separated argument.
15308
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15310
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15311
# resulting binary.
15312
hardcode_direct=$hardcode_direct_CXX
15314
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15315
# resulting binary.
15316
hardcode_minus_L=$hardcode_minus_L_CXX
15318
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15319
# the resulting binary.
15320
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15322
# Set to yes if building a shared library automatically hardcodes DIR into the library
15323
# and all subsequent libraries and executables linked against it.
15324
hardcode_automatic=$hardcode_automatic_CXX
15326
# Variables whose values should be saved in libtool wrapper scripts and
15327
# restored at relink time.
15328
variables_saved_for_relink="$variables_saved_for_relink"
15330
# Whether libtool must link a program against all its dependency libraries.
15331
link_all_deplibs=$link_all_deplibs_CXX
15333
# Compile-time system search path for libraries
15334
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15336
# Run-time system search path for libraries
15337
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15339
# Fix the shell variable \$srcfile for the compiler.
15340
fix_srcfile_path=$lt_fix_srcfile_path
15342
# Set to yes if exported symbols are required.
15343
always_export_symbols=$always_export_symbols_CXX
15345
# The commands to list exported symbols.
15346
export_symbols_cmds=$lt_export_symbols_cmds_CXX
15348
# The commands to extract the exported symbol list from a shared archive.
15349
extract_expsyms_cmds=$lt_extract_expsyms_cmds
15351
# Symbols that should not be listed in the preloaded symbols.
15352
exclude_expsyms=$lt_exclude_expsyms_CXX
15354
# Symbols that must always be exported.
15355
include_expsyms=$lt_include_expsyms_CXX
15357
# ### END LIBTOOL TAG CONFIG: $tagname
15363
# If there is no Makefile yet, we rely on a make rule to execute
15364
# `config.status --recheck' to rerun these tests and create the
15365
# libtool script then.
15366
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15367
if test -f "$ltmain_in"; then
15368
test -f Makefile && make "$ltmain"
15374
ac_cpp='$CPP $CPPFLAGS'
15375
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15376
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15377
ac_compiler_gnu=$ac_cv_c_compiler_gnu
15383
with_gnu_ldcxx=$with_gnu_ld
15384
with_gnu_ld=$lt_save_with_gnu_ld
15385
lt_cv_path_LDCXX=$lt_cv_path_LD
15386
lt_cv_path_LD=$lt_save_path_LD
15387
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15388
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15396
if test -n "$F77" && test "X$F77" != "Xno"; then
15399
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15400
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15401
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15404
archive_cmds_need_lc_F77=no
15405
allow_undefined_flag_F77=
15406
always_export_symbols_F77=no
15407
archive_expsym_cmds_F77=
15408
export_dynamic_flag_spec_F77=
15409
hardcode_direct_F77=no
15410
hardcode_libdir_flag_spec_F77=
15411
hardcode_libdir_flag_spec_ld_F77=
15412
hardcode_libdir_separator_F77=
15413
hardcode_minus_L_F77=no
15414
hardcode_automatic_F77=no
15416
module_expsym_cmds_F77=
15417
link_all_deplibs_F77=unknown
15418
old_archive_cmds_F77=$old_archive_cmds
15419
no_undefined_flag_F77=
15420
whole_archive_flag_spec_F77=
15421
enable_shared_with_static_runtimes_F77=no
15423
# Source file extension for f77 test sources.
15426
# Object file extension for compiled f77 test sources.
15430
# Code to be used in simple compile tests
15431
lt_simple_compile_test_code="\
15437
# Code to be used in simple link tests
15438
lt_simple_link_test_code="\
15443
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15445
# If no C compiler was specified, use CC.
15448
# If no C compiler flags were specified, use CFLAGS.
15449
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15451
# Allow CC to be a program name with arguments.
15455
# save warnings/boilerplate of simple test code
15456
ac_outfile=conftest.$ac_objext
15457
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15458
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15459
_lt_compiler_boilerplate=`cat conftest.err`
15462
ac_outfile=conftest.$ac_objext
15463
echo "$lt_simple_link_test_code" >conftest.$ac_ext
15464
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15465
_lt_linker_boilerplate=`cat conftest.err`
15469
# Allow CC to be a program name with arguments.
15474
for cc_temp in $compiler""; do
15476
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15477
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15482
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15485
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15486
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
15487
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
15488
$as_echo "$can_build_shared" >&6; }
15490
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15491
$as_echo_n "checking whether to build shared libraries... " >&6; }
15492
test "$can_build_shared" = "no" && enable_shared=no
15494
# On AIX, shared libraries and static libraries use the same namespace, and
15495
# are all built from PIC.
15498
test "$enable_shared" = yes && enable_static=no
15499
if test -n "$RANLIB"; then
15500
archive_cmds="$archive_cmds~\$RANLIB \$lib"
15501
postinstall_cmds='$RANLIB $lib'
15505
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15506
test "$enable_shared" = yes && enable_static=no
15510
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
15511
$as_echo "$enable_shared" >&6; }
15513
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15514
$as_echo_n "checking whether to build static libraries... " >&6; }
15515
# Make sure either enable_shared or enable_static is yes.
15516
test "$enable_shared" = yes || enable_static=yes
15517
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
15518
$as_echo "$enable_static" >&6; }
15523
lt_prog_compiler_wl_F77=
15524
lt_prog_compiler_pic_F77=
15525
lt_prog_compiler_static_F77=
15527
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15528
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15530
if test "$GCC" = yes; then
15531
lt_prog_compiler_wl_F77='-Wl,'
15532
lt_prog_compiler_static_F77='-static'
15536
# All AIX code is PIC.
15537
if test "$host_cpu" = ia64; then
15538
# AIX 5 now supports IA64 processor
15539
lt_prog_compiler_static_F77='-Bstatic'
15544
# FIXME: we need at least 68020 code to build shared libraries, but
15545
# adding the `-m68020' flag to GCC prevents building anything better,
15547
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15550
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15551
# PIC is the default for these OSes.
15554
mingw* | cygwin* | pw32* | os2*)
15555
# This hack is so that the source file can tell whether it is being
15556
# built for inclusion in a dll (and should export symbols for example).
15557
# Although the cygwin gcc ignores -fPIC, still need this for old-style
15558
# (--disable-auto-import) libraries
15559
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15562
darwin* | rhapsody*)
15563
# PIC is the default on this platform
15564
# Common symbols not allowed in MH_DYLIB files
15565
lt_prog_compiler_pic_F77='-fno-common'
15569
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
15570
# Instead, we relocate shared libraries at runtime.
15574
# Just because we use GCC doesn't mean we suddenly get shared libraries
15575
# on systems that don't support them.
15576
lt_prog_compiler_can_build_shared_F77=no
15581
if test -d /usr/nec; then
15582
lt_prog_compiler_pic_F77=-Kconform_pic
15587
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15588
# not for PA HP-UX.
15594
lt_prog_compiler_pic_F77='-fPIC'
15600
lt_prog_compiler_pic_F77='-fPIC'
15604
# PORTME Check for flag to pass linker flags through the system compiler.
15607
lt_prog_compiler_wl_F77='-Wl,'
15608
if test "$host_cpu" = ia64; then
15609
# AIX 5 now supports IA64 processor
15610
lt_prog_compiler_static_F77='-Bstatic'
15612
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15616
# PIC is the default on this platform
15617
# Common symbols not allowed in MH_DYLIB files
15618
case $cc_basename in
15620
lt_prog_compiler_pic_F77='-qnocommon'
15621
lt_prog_compiler_wl_F77='-Wl,'
15626
mingw* | cygwin* | pw32* | os2*)
15627
# This hack is so that the source file can tell whether it is being
15628
# built for inclusion in a dll (and should export symbols for example).
15629
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15632
hpux9* | hpux10* | hpux11*)
15633
lt_prog_compiler_wl_F77='-Wl,'
15634
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15635
# not for PA HP-UX.
15641
lt_prog_compiler_pic_F77='+Z'
15644
# Is there a better lt_prog_compiler_static that works with the bundled CC?
15645
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15648
irix5* | irix6* | nonstopux*)
15649
lt_prog_compiler_wl_F77='-Wl,'
15650
# PIC (with -KPIC) is the default.
15651
lt_prog_compiler_static_F77='-non_shared'
15655
lt_prog_compiler_pic_F77='-KPIC'
15656
lt_prog_compiler_static_F77='-Bstatic'
15659
linux* | k*bsd*-gnu)
15660
case $cc_basename in
15662
lt_prog_compiler_wl_F77='-Wl,'
15663
lt_prog_compiler_pic_F77='-KPIC'
15664
lt_prog_compiler_static_F77='-static'
15666
pgcc* | pgf77* | pgf90* | pgf95*)
15667
# Portland Group compilers (*not* the Pentium gcc compiler,
15668
# which looks to be a dead project)
15669
lt_prog_compiler_wl_F77='-Wl,'
15670
lt_prog_compiler_pic_F77='-fpic'
15671
lt_prog_compiler_static_F77='-Bstatic'
15674
lt_prog_compiler_wl_F77='-Wl,'
15675
# All Alpha code is PIC.
15676
lt_prog_compiler_static_F77='-non_shared'
15679
case `$CC -V 2>&1 | sed 5q` in
15682
lt_prog_compiler_pic_F77='-KPIC'
15683
lt_prog_compiler_static_F77='-Bstatic'
15684
lt_prog_compiler_wl_F77='-Wl,'
15687
# Sun Fortran 8.3 passes all unrecognized flags to the linker
15688
lt_prog_compiler_pic_F77='-KPIC'
15689
lt_prog_compiler_static_F77='-Bstatic'
15690
lt_prog_compiler_wl_F77=''
15697
osf3* | osf4* | osf5*)
15698
lt_prog_compiler_wl_F77='-Wl,'
15699
# All OSF/1 code is PIC.
15700
lt_prog_compiler_static_F77='-non_shared'
15704
lt_prog_compiler_static_F77='-non_shared'
15708
lt_prog_compiler_pic_F77='-KPIC'
15709
lt_prog_compiler_static_F77='-Bstatic'
15710
case $cc_basename in
15711
f77* | f90* | f95*)
15712
lt_prog_compiler_wl_F77='-Qoption ld ';;
15714
lt_prog_compiler_wl_F77='-Wl,';;
15719
lt_prog_compiler_wl_F77='-Qoption ld '
15720
lt_prog_compiler_pic_F77='-PIC'
15721
lt_prog_compiler_static_F77='-Bstatic'
15724
sysv4 | sysv4.2uw2* | sysv4.3*)
15725
lt_prog_compiler_wl_F77='-Wl,'
15726
lt_prog_compiler_pic_F77='-KPIC'
15727
lt_prog_compiler_static_F77='-Bstatic'
15731
if test -d /usr/nec ;then
15732
lt_prog_compiler_pic_F77='-Kconform_pic'
15733
lt_prog_compiler_static_F77='-Bstatic'
15737
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15738
lt_prog_compiler_wl_F77='-Wl,'
15739
lt_prog_compiler_pic_F77='-KPIC'
15740
lt_prog_compiler_static_F77='-Bstatic'
15744
lt_prog_compiler_wl_F77='-Wl,'
15745
lt_prog_compiler_can_build_shared_F77=no
15749
lt_prog_compiler_pic_F77='-pic'
15750
lt_prog_compiler_static_F77='-Bstatic'
15754
lt_prog_compiler_can_build_shared_F77=no
15759
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15760
$as_echo "$lt_prog_compiler_pic_F77" >&6; }
15763
# Check to make sure the PIC flag actually works.
15765
if test -n "$lt_prog_compiler_pic_F77"; then
15767
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15768
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
15769
if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
15770
$as_echo_n "(cached) " >&6
15772
lt_cv_prog_compiler_pic_works_F77=no
15773
ac_outfile=conftest.$ac_objext
15774
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15775
lt_compiler_flag="$lt_prog_compiler_pic_F77"
15776
# Insert the option either (1) after the last *FLAGS variable, or
15777
# (2) before a word containing "conftest.", or (3) at the end.
15778
# Note that $ac_compile itself does not contain backslashes and begins
15779
# with a dollar sign (not a hyphen), so the echo should work correctly.
15780
# The option is referenced via a variable to avoid confusing sed.
15781
lt_compile=`echo "$ac_compile" | $SED \
15782
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15783
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15784
-e 's:$: $lt_compiler_flag:'`
15785
(eval echo "\"\$as_me:15785: $lt_compile\"" >&5)
15786
(eval "$lt_compile" 2>conftest.err)
15788
cat conftest.err >&5
15789
echo "$as_me:15789: \$? = $ac_status" >&5
15790
if (exit $ac_status) && test -s "$ac_outfile"; then
15791
# The compiler can only warn and ignore the option if not recognized
15792
# So say no if there are warnings other than the usual output.
15793
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15794
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15795
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15796
lt_cv_prog_compiler_pic_works_F77=yes
15802
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
15803
$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
15805
if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
15806
case $lt_prog_compiler_pic_F77 in
15808
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15811
lt_prog_compiler_pic_F77=
15812
lt_prog_compiler_can_build_shared_F77=no
15817
# For platforms which do not support PIC, -DPIC is meaningless:
15819
lt_prog_compiler_pic_F77=
15822
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15827
# Check to make sure the static flag actually works.
15829
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15830
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15831
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15832
if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
15833
$as_echo_n "(cached) " >&6
15835
lt_cv_prog_compiler_static_works_F77=no
15836
save_LDFLAGS="$LDFLAGS"
15837
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15838
echo "$lt_simple_link_test_code" > conftest.$ac_ext
15839
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15840
# The linker can only warn and ignore the option if not recognized
15841
# So say no if there are warnings
15842
if test -s conftest.err; then
15843
# Append any errors to the config.log.
15844
cat conftest.err 1>&5
15845
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15846
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15847
if diff conftest.exp conftest.er2 >/dev/null; then
15848
lt_cv_prog_compiler_static_works_F77=yes
15851
lt_cv_prog_compiler_static_works_F77=yes
15855
LDFLAGS="$save_LDFLAGS"
15858
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
15859
$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
15861
if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
15864
lt_prog_compiler_static_F77=
15868
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15869
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15870
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15871
$as_echo_n "(cached) " >&6
15873
lt_cv_prog_compiler_c_o_F77=no
15874
$rm -r conftest 2>/dev/null
15878
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15880
lt_compiler_flag="-o out/conftest2.$ac_objext"
15881
# Insert the option either (1) after the last *FLAGS variable, or
15882
# (2) before a word containing "conftest.", or (3) at the end.
15883
# Note that $ac_compile itself does not contain backslashes and begins
15884
# with a dollar sign (not a hyphen), so the echo should work correctly.
15885
lt_compile=`echo "$ac_compile" | $SED \
15886
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15887
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15888
-e 's:$: $lt_compiler_flag:'`
15889
(eval echo "\"\$as_me:15889: $lt_compile\"" >&5)
15890
(eval "$lt_compile" 2>out/conftest.err)
15892
cat out/conftest.err >&5
15893
echo "$as_me:15893: \$? = $ac_status" >&5
15894
if (exit $ac_status) && test -s out/conftest2.$ac_objext
15896
# The compiler can only warn and ignore the option if not recognized
15897
# So say no if there are warnings
15898
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15899
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15900
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15901
lt_cv_prog_compiler_c_o_F77=yes
15906
# SGI C++ compiler will create directory out/ii_files/ for
15907
# template instantiation
15908
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15909
$rm out/* && rmdir out
15915
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15916
$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
15919
hard_links="nottested"
15920
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15921
# do not overwrite the value of need_locks provided by the user
15922
{ $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15923
$as_echo_n "checking if we can lock with hard links... " >&6; }
15926
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15928
ln conftest.a conftest.b 2>&5 || hard_links=no
15929
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15930
{ $as_echo "$as_me:$LINENO: result: $hard_links" >&5
15931
$as_echo "$hard_links" >&6; }
15932
if test "$hard_links" = no; then
15933
{ $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15934
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15941
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15942
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15945
allow_undefined_flag_F77=
15946
enable_shared_with_static_runtimes_F77=no
15948
archive_expsym_cmds_F77=
15949
old_archive_From_new_cmds_F77=
15950
old_archive_from_expsyms_cmds_F77=
15951
export_dynamic_flag_spec_F77=
15952
whole_archive_flag_spec_F77=
15953
thread_safe_flag_spec_F77=
15954
hardcode_libdir_flag_spec_F77=
15955
hardcode_libdir_flag_spec_ld_F77=
15956
hardcode_libdir_separator_F77=
15957
hardcode_direct_F77=no
15958
hardcode_minus_L_F77=no
15959
hardcode_shlibpath_var_F77=unsupported
15960
link_all_deplibs_F77=unknown
15961
hardcode_automatic_F77=no
15963
module_expsym_cmds_F77=
15964
always_export_symbols_F77=no
15965
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15966
# include_expsyms should be a list of space-separated symbols to be *always*
15967
# included in the symbol list
15968
include_expsyms_F77=
15969
# exclude_expsyms can be an extended regexp of symbols to exclude
15970
# it will be wrapped by ` (' and `)$', so one must not match beginning or
15971
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15972
# as well as any symbol that contains `d'.
15973
exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15974
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15975
# platforms (ab)use it in PIC code, but their linkers get confused if
15976
# the symbol is explicitly referenced. Since portable code cannot
15977
# rely on this symbol name, it's probably fine to never include it in
15978
# preloaded symbol tables.
15979
# Exclude shared library initialization/finalization symbols.
15980
extract_expsyms_cmds=
15981
# Just being paranoid about ensuring that cc_basename is set.
15982
for cc_temp in $compiler""; do
15984
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15985
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15990
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15993
cygwin* | mingw* | pw32*)
15994
# FIXME: the MSVC++ port hasn't been tested in a loooong time
15995
# When not using gcc, we currently assume that we are using
15996
# Microsoft Visual C++.
15997
if test "$GCC" != yes; then
16002
# we just hope/assume this is gcc and not c89 (= MSVC++)
16011
if test "$with_gnu_ld" = yes; then
16012
# If archive_cmds runs LD, not CC, wlarc should be empty
16015
# Set some defaults for GNU ld with shared library support. These
16016
# are reset later if shared libraries are not supported. Putting them
16017
# here allows them to be overridden if necessary.
16018
runpath_var=LD_RUN_PATH
16019
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
16020
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
16021
# ancient GNU ld didn't support --whole-archive et. al.
16022
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16023
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16025
whole_archive_flag_spec_F77=
16027
supports_anon_versioning=no
16028
case `$LD -v 2>/dev/null` in
16029
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16030
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16031
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16032
*\ 2.11.*) ;; # other 2.11 versions
16033
*) supports_anon_versioning=yes ;;
16036
# See if GNU ld supports shared libraries.
16039
# On AIX/PPC, the GNU linker is very broken
16040
if test "$host_cpu" != ia64; then
16044
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16045
*** to be unable to reliably create shared libraries on AIX.
16046
*** Therefore, libtool is disabling shared libraries support. If you
16047
*** really care for shared libraries, you may want to modify your PATH
16048
*** so that a non-GNU linker is found, and then restart.
16055
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)'
16056
hardcode_libdir_flag_spec_F77='-L$libdir'
16057
hardcode_minus_L_F77=yes
16059
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16060
# that the semantics of dynamic libraries on AmigaOS, at least up
16061
# to version 4, is to share data among multiple programs linked
16062
# with the same dynamic library. Since this doesn't match the
16063
# behavior of shared libraries on other platforms, we can't use
16069
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16070
allow_undefined_flag_F77=unsupported
16071
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16072
# support --undefined. This deserves some investigation. FIXME
16073
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16079
cygwin* | mingw* | pw32*)
16080
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
16081
# as there is no search path for DLLs.
16082
hardcode_libdir_flag_spec_F77='-L$libdir'
16083
allow_undefined_flag_F77=unsupported
16084
always_export_symbols_F77=no
16085
enable_shared_with_static_runtimes_F77=yes
16086
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16088
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16089
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16090
# If the export-symbols file already is a .def file (1st line
16091
# is EXPORTS), use it as is; otherwise, prepend...
16092
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16093
cp $export_symbols $output_objdir/$soname.def;
16095
echo EXPORTS > $output_objdir/$soname.def;
16096
cat $export_symbols >> $output_objdir/$soname.def;
16098
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16105
hardcode_direct_F77=no
16106
hardcode_shlibpath_var_F77=no
16107
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16108
export_dynamic_flag_spec_F77='${wl}-E'
16109
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16110
# Instead, shared libraries are loaded at an image base (0x10000000 by
16111
# default) and relocated if they conflict, which is a slow very memory
16112
# consuming and fragmenting process. To avoid this, we pick a random,
16113
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16114
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
16115
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'
16116
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'
16119
gnu* | linux* | k*bsd*-gnu)
16120
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16122
case $cc_basename,$host_cpu in
16123
pgcc*) # Portland Group C compiler
16124
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'
16125
tmp_addflag=' $pic_flag'
16127
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16128
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'
16129
tmp_addflag=' $pic_flag -Mnomain' ;;
16130
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16131
tmp_addflag=' -i_dynamic' ;;
16132
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16133
tmp_addflag=' -i_dynamic -nofor_main' ;;
16134
ifc* | ifort*) # Intel Fortran compiler
16135
tmp_addflag=' -nofor_main' ;;
16137
case `$CC -V 2>&1 | sed 5q` in
16138
*Sun\ C*) # Sun C 5.9
16139
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'
16140
tmp_sharedflag='-G' ;;
16141
*Sun\ F*) # Sun Fortran 8.3
16142
tmp_sharedflag='-G' ;;
16144
tmp_sharedflag='-shared' ;;
16146
archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16148
if test $supports_anon_versioning = yes; then
16149
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16150
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16151
$echo "local: *; };" >> $output_objdir/$libname.ver~
16152
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16160
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16161
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16164
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16165
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16170
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16174
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16175
*** create shared libraries on Solaris systems. Therefore, libtool
16176
*** is disabling shared libraries support. We urge you to upgrade GNU
16177
*** binutils to release 2.9.1 or newer. Another option is to modify
16178
*** your PATH or compiler configuration so that the native linker is
16179
*** used, and then restart.
16182
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16183
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16184
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16190
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16191
case `$LD -v 2>&1` in
16192
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16196
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16197
*** reliably create shared libraries on SCO systems. Therefore, libtool
16198
*** is disabling shared libraries support. We urge you to upgrade GNU
16199
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16200
*** your PATH or compiler configuration so that the native linker is
16201
*** used, and then restart.
16206
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16207
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16208
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16209
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16218
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16220
hardcode_direct_F77=yes
16221
hardcode_shlibpath_var_F77=no
16225
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16226
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16227
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16234
if test "$ld_shlibs_F77" = no; then
16236
hardcode_libdir_flag_spec_F77=
16237
export_dynamic_flag_spec_F77=
16238
whole_archive_flag_spec_F77=
16241
# PORTME fill in a description of your system's linker (not GNU ld)
16244
allow_undefined_flag_F77=unsupported
16245
always_export_symbols_F77=yes
16246
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'
16247
# Note: this linker hardcodes the directories in LIBPATH if there
16248
# are no directories specified by -L.
16249
hardcode_minus_L_F77=yes
16250
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16251
# Neither direct hardcoding nor static linking is supported with a
16253
hardcode_direct_F77=unsupported
16258
if test "$host_cpu" = ia64; then
16259
# On IA64, the linker does run time linking by default, so we don't
16260
# have to do anything special.
16261
aix_use_runtimelinking=no
16262
exp_sym_flag='-Bexport'
16265
# If we're using GNU nm, then we don't want the "-C" option.
16266
# -C means demangle to AIX nm, but means don't demangle with GNU nm
16267
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16268
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'
16270
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'
16272
aix_use_runtimelinking=no
16274
# Test if we are trying to use run time linking or normal
16275
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16276
# need to do runtime linking.
16277
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16278
for ld_flag in $LDFLAGS; do
16279
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16280
aix_use_runtimelinking=yes
16287
exp_sym_flag='-bexport'
16288
no_entry_flag='-bnoentry'
16291
# When large executables or shared objects are built, AIX ld can
16292
# have problems creating the table of contents. If linking a library
16293
# or program results in "error TOC overflow" add -mminimal-toc to
16294
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16295
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16297
archive_cmds_F77=''
16298
hardcode_direct_F77=yes
16299
hardcode_libdir_separator_F77=':'
16300
link_all_deplibs_F77=yes
16302
if test "$GCC" = yes; then
16303
case $host_os in aix4.[012]|aix4.[012].*)
16304
# We only want to do this on AIX 4.2 and lower, the check
16305
# below for broken collect2 doesn't work under 4.3+
16306
collect2name=`${CC} -print-prog-name=collect2`
16307
if test -f "$collect2name" && \
16308
strings "$collect2name" | grep resolve_lib_name >/dev/null
16310
# We have reworked collect2
16313
# We have old collect2
16314
hardcode_direct_F77=unsupported
16315
# It fails to find uninstalled libraries when the uninstalled
16316
# path is not listed in the libpath. Setting hardcode_minus_L
16317
# to unsupported forces relinking
16318
hardcode_minus_L_F77=yes
16319
hardcode_libdir_flag_spec_F77='-L$libdir'
16320
hardcode_libdir_separator_F77=
16324
shared_flag='-shared'
16325
if test "$aix_use_runtimelinking" = yes; then
16326
shared_flag="$shared_flag "'${wl}-G'
16330
if test "$host_cpu" = ia64; then
16331
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16332
# chokes on -Wl,-G. The following line is correct:
16335
if test "$aix_use_runtimelinking" = yes; then
16336
shared_flag='${wl}-G'
16338
shared_flag='${wl}-bM:SRE'
16343
# It seems that -bexpall does not export symbols beginning with
16344
# underscore (_), so it is better to generate a list of symbols to export.
16345
always_export_symbols_F77=yes
16346
if test "$aix_use_runtimelinking" = yes; then
16347
# Warning - without using the other runtime loading flags (-brtl),
16348
# -berok will link without error, but may produce a broken library.
16349
allow_undefined_flag_F77='-berok'
16350
# Determine the default libpath from the value encoded in an empty executable.
16351
cat >conftest.$ac_ext <<_ACEOF
16356
rm -f conftest.$ac_objext conftest$ac_exeext
16357
if { (ac_try="$ac_link"
16358
case "(($ac_try" in
16359
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16360
*) ac_try_echo=$ac_try;;
16362
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16363
$as_echo "$ac_try_echo") >&5
16364
(eval "$ac_link") 2>conftest.er1
16366
grep -v '^ *+' conftest.er1 >conftest.err
16368
cat conftest.err >&5
16369
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16370
(exit $ac_status); } && {
16371
test -z "$ac_f77_werror_flag" ||
16372
test ! -s conftest.err
16373
} && test -s conftest$ac_exeext && {
16374
test "$cross_compiling" = yes ||
16375
$as_test_x conftest$ac_exeext
16378
lt_aix_libpath_sed='
16379
/Import File Strings/,/^$/ {
16385
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16386
# Check for a 64-bit object if we didn't find anything.
16387
if test -z "$aix_libpath"; then
16388
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16391
$as_echo "$as_me: failed program was:" >&5
16392
sed 's/^/| /' conftest.$ac_ext >&5
16397
rm -rf conftest.dSYM
16398
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16399
conftest$ac_exeext conftest.$ac_ext
16400
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16402
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16403
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"
16405
if test "$host_cpu" = ia64; then
16406
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16407
allow_undefined_flag_F77="-z nodefs"
16408
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"
16410
# Determine the default libpath from the value encoded in an empty executable.
16411
cat >conftest.$ac_ext <<_ACEOF
16416
rm -f conftest.$ac_objext conftest$ac_exeext
16417
if { (ac_try="$ac_link"
16418
case "(($ac_try" in
16419
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16420
*) ac_try_echo=$ac_try;;
16422
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16423
$as_echo "$ac_try_echo") >&5
16424
(eval "$ac_link") 2>conftest.er1
16426
grep -v '^ *+' conftest.er1 >conftest.err
16428
cat conftest.err >&5
16429
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16430
(exit $ac_status); } && {
16431
test -z "$ac_f77_werror_flag" ||
16432
test ! -s conftest.err
16433
} && test -s conftest$ac_exeext && {
16434
test "$cross_compiling" = yes ||
16435
$as_test_x conftest$ac_exeext
16438
lt_aix_libpath_sed='
16439
/Import File Strings/,/^$/ {
16445
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16446
# Check for a 64-bit object if we didn't find anything.
16447
if test -z "$aix_libpath"; then
16448
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16451
$as_echo "$as_me: failed program was:" >&5
16452
sed 's/^/| /' conftest.$ac_ext >&5
16457
rm -rf conftest.dSYM
16458
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16459
conftest$ac_exeext conftest.$ac_ext
16460
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16462
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16463
# Warning - without using the other run time loading flags,
16464
# -berok will link without error, but may produce a broken library.
16465
no_undefined_flag_F77=' ${wl}-bernotok'
16466
allow_undefined_flag_F77=' ${wl}-berok'
16467
# Exported symbols can be pulled into shared objects from archives
16468
whole_archive_flag_spec_F77='$convenience'
16469
archive_cmds_need_lc_F77=yes
16470
# This is similar to how AIX traditionally builds its shared libraries.
16471
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'
16477
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)'
16478
hardcode_libdir_flag_spec_F77='-L$libdir'
16479
hardcode_minus_L_F77=yes
16480
# see comment about different semantics on the GNU ld section
16485
export_dynamic_flag_spec_F77=-rdynamic
16488
cygwin* | mingw* | pw32*)
16489
# When not using gcc, we currently assume that we are using
16490
# Microsoft Visual C++.
16491
# hardcode_libdir_flag_spec is actually meaningless, as there is
16492
# no search path for DLLs.
16493
hardcode_libdir_flag_spec_F77=' '
16494
allow_undefined_flag_F77=unsupported
16495
# Tell ltmain to make .lib files, not .a files.
16497
# Tell ltmain to make .dll files, not .so files.
16499
# FIXME: Setting linknames here is a bad hack.
16500
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16501
# The linker will automatically build a .lib file if we build a DLL.
16502
old_archive_From_new_cmds_F77='true'
16503
# FIXME: Should let the user specify the lib program.
16504
old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
16505
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16506
enable_shared_with_static_runtimes_F77=yes
16509
darwin* | rhapsody*)
16511
rhapsody* | darwin1.[012])
16512
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16515
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16516
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16518
case ${MACOSX_DEPLOYMENT_TARGET} in
16520
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16523
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16529
archive_cmds_need_lc_F77=no
16530
hardcode_direct_F77=no
16531
hardcode_automatic_F77=yes
16532
hardcode_shlibpath_var_F77=unsupported
16533
whole_archive_flag_spec_F77=''
16534
link_all_deplibs_F77=yes
16535
if test "$GCC" = yes ; then
16536
output_verbose_link_cmd='echo'
16537
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}"
16538
module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16539
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}"
16540
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}"
16542
case $cc_basename in
16544
output_verbose_link_cmd='echo'
16545
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
16546
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16547
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16548
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}'
16549
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}'
16559
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16560
hardcode_libdir_flag_spec_F77='-L$libdir'
16561
hardcode_shlibpath_var_F77=no
16568
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16569
# support. Future versions do this automatically, but an explicit c++rt0.o
16570
# does not break anything, and helps significantly (at the cost of a little
16573
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16574
hardcode_libdir_flag_spec_F77='-R$libdir'
16575
hardcode_direct_F77=yes
16576
hardcode_shlibpath_var_F77=no
16579
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
16581
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16582
hardcode_direct_F77=yes
16583
hardcode_minus_L_F77=yes
16584
hardcode_shlibpath_var_F77=no
16587
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16588
freebsd* | dragonfly*)
16589
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16590
hardcode_libdir_flag_spec_F77='-R$libdir'
16591
hardcode_direct_F77=yes
16592
hardcode_shlibpath_var_F77=no
16596
if test "$GCC" = yes; then
16597
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'
16599
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'
16601
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16602
hardcode_libdir_separator_F77=:
16603
hardcode_direct_F77=yes
16605
# hardcode_minus_L: Not really in the search PATH,
16606
# but as the default location of the library.
16607
hardcode_minus_L_F77=yes
16608
export_dynamic_flag_spec_F77='${wl}-E'
16612
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16613
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16615
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16617
if test "$with_gnu_ld" = no; then
16618
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16619
hardcode_libdir_separator_F77=:
16621
hardcode_direct_F77=yes
16622
export_dynamic_flag_spec_F77='${wl}-E'
16624
# hardcode_minus_L: Not really in the search PATH,
16625
# but as the default location of the library.
16626
hardcode_minus_L_F77=yes
16631
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16634
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16637
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16640
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16646
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16649
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16652
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16656
if test "$with_gnu_ld" = no; then
16657
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16658
hardcode_libdir_separator_F77=:
16662
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16663
hardcode_direct_F77=no
16664
hardcode_shlibpath_var_F77=no
16667
hardcode_direct_F77=yes
16668
export_dynamic_flag_spec_F77='${wl}-E'
16670
# hardcode_minus_L: Not really in the search PATH,
16671
# but as the default location of the library.
16672
hardcode_minus_L_F77=yes
16678
irix5* | irix6* | nonstopux*)
16679
if test "$GCC" = yes; then
16680
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'
16682
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'
16683
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16685
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16686
hardcode_libdir_separator_F77=:
16687
link_all_deplibs_F77=yes
16691
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16692
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16694
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16696
hardcode_libdir_flag_spec_F77='-R$libdir'
16697
hardcode_direct_F77=yes
16698
hardcode_shlibpath_var_F77=no
16702
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16703
hardcode_direct_F77=yes
16704
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16705
hardcode_libdir_separator_F77=:
16706
hardcode_shlibpath_var_F77=no
16710
if test -f /usr/libexec/ld.so; then
16711
hardcode_direct_F77=yes
16712
hardcode_shlibpath_var_F77=no
16713
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16714
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16715
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16716
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16717
export_dynamic_flag_spec_F77='${wl}-E'
16720
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16721
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16722
hardcode_libdir_flag_spec_F77='-R$libdir'
16725
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16726
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16736
hardcode_libdir_flag_spec_F77='-L$libdir'
16737
hardcode_minus_L_F77=yes
16738
allow_undefined_flag_F77=unsupported
16739
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'
16740
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16744
if test "$GCC" = yes; then
16745
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16746
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'
16748
allow_undefined_flag_F77=' -expect_unresolved \*'
16749
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'
16751
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16752
hardcode_libdir_separator_F77=:
16755
osf4* | osf5*) # as osf3* with the addition of -msym flag
16756
if test "$GCC" = yes; then
16757
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16758
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'
16759
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16761
allow_undefined_flag_F77=' -expect_unresolved \*'
16762
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'
16763
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~
16764
$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'
16766
# Both c and cxx compiler support -rpath directly
16767
hardcode_libdir_flag_spec_F77='-rpath $libdir'
16769
hardcode_libdir_separator_F77=:
16773
no_undefined_flag_F77=' -z text'
16774
if test "$GCC" = yes; then
16776
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16777
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16778
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16781
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16782
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16783
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16785
hardcode_libdir_flag_spec_F77='-R$libdir'
16786
hardcode_shlibpath_var_F77=no
16788
solaris2.[0-5] | solaris2.[0-5].*) ;;
16790
# The compiler driver will combine and reorder linker options,
16791
# but understands `-z linker_flag'. GCC discards it without `$wl',
16792
# but is careful enough not to reorder.
16793
# Supported since Solaris 2.6 (maybe 2.5.1?)
16794
if test "$GCC" = yes; then
16795
whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16797
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
16801
link_all_deplibs_F77=yes
16805
if test "x$host_vendor" = xsequent; then
16806
# Use $CC to link under sequent, because it throws in some extra .o
16807
# files that make .init and .fini sections work.
16808
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16810
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16812
hardcode_libdir_flag_spec_F77='-L$libdir'
16813
hardcode_direct_F77=yes
16814
hardcode_minus_L_F77=yes
16815
hardcode_shlibpath_var_F77=no
16819
case $host_vendor in
16821
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16822
hardcode_direct_F77=yes # is this really true???
16825
## LD is ld it makes a PLAMLIB
16826
## CC just makes a GrossModule.
16827
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16828
reload_cmds_F77='$CC -r -o $output$reload_objs'
16829
hardcode_direct_F77=no
16832
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16833
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16836
runpath_var='LD_RUN_PATH'
16837
hardcode_shlibpath_var_F77=no
16841
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16842
hardcode_shlibpath_var_F77=no
16843
export_dynamic_flag_spec_F77='-Bexport'
16847
if test -d /usr/nec; then
16848
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16849
hardcode_shlibpath_var_F77=no
16850
runpath_var=LD_RUN_PATH
16851
hardcode_runpath_var=yes
16856
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16857
no_undefined_flag_F77='${wl}-z,text'
16858
archive_cmds_need_lc_F77=no
16859
hardcode_shlibpath_var_F77=no
16860
runpath_var='LD_RUN_PATH'
16862
if test "$GCC" = yes; then
16863
archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16864
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16866
archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16867
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16871
sysv5* | sco3.2v5* | sco5v6*)
16872
# Note: We can NOT use -z defs as we might desire, because we do not
16873
# link with -lc, and that would cause any symbols used from libc to
16874
# always be unresolved, which means just about no library would
16875
# ever link correctly. If we're not using GNU ld we use -z text
16876
# though, which does catch some bad symbols but isn't as heavy-handed
16878
no_undefined_flag_F77='${wl}-z,text'
16879
allow_undefined_flag_F77='${wl}-z,nodefs'
16880
archive_cmds_need_lc_F77=no
16881
hardcode_shlibpath_var_F77=no
16882
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16883
hardcode_libdir_separator_F77=':'
16884
link_all_deplibs_F77=yes
16885
export_dynamic_flag_spec_F77='${wl}-Bexport'
16886
runpath_var='LD_RUN_PATH'
16888
if test "$GCC" = yes; then
16889
archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16890
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16892
archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16893
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16898
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16899
hardcode_libdir_flag_spec_F77='-L$libdir'
16900
hardcode_shlibpath_var_F77=no
16909
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16910
$as_echo "$ld_shlibs_F77" >&6; }
16911
test "$ld_shlibs_F77" = no && can_build_shared=no
16914
# Do we need to explicitly link libc?
16916
case "x$archive_cmds_need_lc_F77" in
16918
# Assume -lc should be added
16919
archive_cmds_need_lc_F77=yes
16921
if test "$enable_shared" = yes && test "$GCC" = yes; then
16922
case $archive_cmds_F77 in
16924
# FIXME: we may have to deal with multi-command sequences.
16927
# Test whether the compiler implicitly links with -lc since on some
16928
# systems, -lgcc has to come before -lc. If gcc already passes -lc
16929
# to ld, don't add -lc before -lgcc.
16930
{ $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16931
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16933
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16935
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16936
(eval $ac_compile) 2>&5
16938
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16939
(exit $ac_status); } 2>conftest.err; then
16942
libobjs=conftest.$ac_objext
16944
wl=$lt_prog_compiler_wl_F77
16945
pic_flag=$lt_prog_compiler_pic_F77
16951
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16952
allow_undefined_flag_F77=
16953
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16954
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16956
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16957
(exit $ac_status); }
16959
archive_cmds_need_lc_F77=no
16961
archive_cmds_need_lc_F77=yes
16963
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16965
cat conftest.err 1>&5
16968
{ $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16969
$as_echo "$archive_cmds_need_lc_F77" >&6; }
16976
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16977
$as_echo_n "checking dynamic linker characteristics... " >&6; }
16978
library_names_spec=
16979
libname_spec='lib$name'
16983
postuninstall_cmds=
16987
shlibpath_overrides_runpath=unknown
16989
dynamic_linker="$host_os ld.so"
16990
sys_lib_dlsearch_path_spec="/lib /usr/lib"
16992
need_lib_prefix=unknown
16993
hardcode_into_libs=no
16995
# when you set need_version to no, make sure it does not cause -set_version
16996
# flags to be left without arguments
16997
need_version=unknown
17002
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17003
shlibpath_var=LIBPATH
17005
# AIX 3 has no versioning support, so we append a major version to the name.
17006
soname_spec='${libname}${release}${shared_ext}$major'
17013
hardcode_into_libs=yes
17014
if test "$host_cpu" = ia64; then
17015
# AIX 5 supports IA64
17016
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17017
shlibpath_var=LD_LIBRARY_PATH
17019
# With GCC up to 2.95.x, collect2 would create an import file
17020
# for dependence libraries. The import file would start with
17021
# the line `#! .'. This would cause the generated library to
17022
# depend on `.', always an invalid library. This was fixed in
17023
# development snapshots of GCC prior to 3.0.
17025
aix4 | aix4.[01] | aix4.[01].*)
17026
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17028
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17031
can_build_shared=no
17035
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17036
# soname into executable. Probably we can add versioning support to
17037
# collect2, so additional links can be useful in future.
17038
if test "$aix_use_runtimelinking" = yes; then
17039
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
17040
# instead of lib<name>.a to let people know that these are not
17041
# typical AIX shared libraries.
17042
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17044
# We preserve .a as extension for shared libraries through AIX4.2
17045
# and later when we are not doing run time linking.
17046
library_names_spec='${libname}${release}.a $libname.a'
17047
soname_spec='${libname}${release}${shared_ext}$major'
17049
shlibpath_var=LIBPATH
17054
library_names_spec='$libname.ixlibrary $libname.a'
17055
# Create ${libname}_ixlibrary.a entries in /sys/libs.
17056
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'
17060
library_names_spec='${libname}${shared_ext}'
17061
dynamic_linker="$host_os ld.so"
17062
shlibpath_var=LIBRARY_PATH
17068
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17069
soname_spec='${libname}${release}${shared_ext}$major'
17070
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17071
shlibpath_var=LD_LIBRARY_PATH
17072
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17073
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17074
# the default ld.so.conf also contains /usr/contrib/lib and
17075
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17076
# libtool to hard-code these into programs
17079
cygwin* | mingw* | pw32*)
17080
version_type=windows
17085
case $GCC,$host_os in
17086
yes,cygwin* | yes,mingw* | yes,pw32*)
17087
library_names_spec='$libname.dll.a'
17088
# DLL is installed to $(libdir)/../bin by postinstall_cmds
17089
postinstall_cmds='base_file=`basename \${file}`~
17090
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17091
dldir=$destdir/`dirname \$dlpath`~
17092
test -d \$dldir || mkdir -p \$dldir~
17093
$install_prog $dir/$dlname \$dldir/$dlname~
17094
chmod a+x \$dldir/$dlname'
17095
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17096
dlpath=$dir/\$dldll~
17098
shlibpath_overrides_runpath=yes
17102
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
17103
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17104
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17107
# MinGW DLLs use traditional 'lib' prefix
17108
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17109
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17110
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17111
# It is most probably a Windows format PATH printed by
17112
# mingw gcc, but we are running on Cygwin. Gcc prints its search
17113
# path with ; separators, and with drive letters. We can handle the
17114
# drive letters (cygwin fileutils understands them), so leave them,
17115
# especially as we might pass files found there to a mingw objdump,
17116
# which wouldn't understand a cygwinified path. Ahh.
17117
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17119
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17123
# pw32 DLLs use 'pw' prefix rather than 'lib'
17124
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17130
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17133
dynamic_linker='Win32 ld.exe'
17134
# FIXME: first we should search . and the directory the executable is in
17138
darwin* | rhapsody*)
17139
dynamic_linker="$host_os dyld"
17140
version_type=darwin
17143
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17144
soname_spec='${libname}${release}${major}$shared_ext'
17145
shlibpath_overrides_runpath=yes
17146
shlibpath_var=DYLD_LIBRARY_PATH
17147
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17149
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17156
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17157
soname_spec='${libname}${release}${shared_ext}$major'
17158
shlibpath_var=LD_LIBRARY_PATH
17165
freebsd* | dragonfly*)
17166
# DragonFly does not have aout. When/if they implement a new
17167
# versioning mechanism, adjust this.
17168
if test -x /usr/bin/objformat; then
17169
objformat=`/usr/bin/objformat`
17172
freebsd[123]*) objformat=aout ;;
17173
*) objformat=elf ;;
17176
version_type=freebsd-$objformat
17177
case $version_type in
17179
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17184
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17188
shlibpath_var=LD_LIBRARY_PATH
17191
shlibpath_overrides_runpath=yes
17193
freebsd3.[01]* | freebsdelf3.[01]*)
17194
shlibpath_overrides_runpath=yes
17195
hardcode_into_libs=yes
17197
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17198
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17199
shlibpath_overrides_runpath=no
17200
hardcode_into_libs=yes
17202
*) # from 4.6 on, and DragonFly
17203
shlibpath_overrides_runpath=yes
17204
hardcode_into_libs=yes
17213
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17214
soname_spec='${libname}${release}${shared_ext}$major'
17215
shlibpath_var=LD_LIBRARY_PATH
17216
hardcode_into_libs=yes
17219
hpux9* | hpux10* | hpux11*)
17220
# Give a soname corresponding to the major version so that dld.sl refuses to
17221
# link against other versions.
17228
hardcode_into_libs=yes
17229
dynamic_linker="$host_os dld.so"
17230
shlibpath_var=LD_LIBRARY_PATH
17231
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17232
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17233
soname_spec='${libname}${release}${shared_ext}$major'
17234
if test "X$HPUX_IA64_MODE" = X32; then
17235
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17237
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17239
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17243
hardcode_into_libs=yes
17244
dynamic_linker="$host_os dld.sl"
17245
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17246
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17247
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17248
soname_spec='${libname}${release}${shared_ext}$major'
17249
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17250
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17254
dynamic_linker="$host_os dld.sl"
17255
shlibpath_var=SHLIB_PATH
17256
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17257
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17258
soname_spec='${libname}${release}${shared_ext}$major'
17261
# HP-UX runs *really* slowly unless shared libraries are mode 555.
17262
postinstall_cmds='chmod 555 $lib'
17269
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17270
soname_spec='${libname}${release}${shared_ext}$major'
17271
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17272
shlibpath_var=LD_LIBRARY_PATH
17273
shlibpath_overrides_runpath=no
17274
hardcode_into_libs=yes
17277
irix5* | irix6* | nonstopux*)
17279
nonstopux*) version_type=nonstopux ;;
17281
if test "$lt_cv_prog_gnu_ld" = yes; then
17289
soname_spec='${libname}${release}${shared_ext}$major'
17290
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17292
irix5* | nonstopux*)
17293
libsuff= shlibsuff=
17296
case $LD in # libtool.m4 will add one of these switches to LD
17297
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17298
libsuff= shlibsuff= libmagic=32-bit;;
17299
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17300
libsuff=32 shlibsuff=N32 libmagic=N32;;
17301
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17302
libsuff=64 shlibsuff=64 libmagic=64-bit;;
17303
*) libsuff= shlibsuff= libmagic=never-match;;
17307
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17308
shlibpath_overrides_runpath=no
17309
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17310
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17311
hardcode_into_libs=yes
17314
# No shared lib support for Linux oldld, aout, or coff.
17315
linux*oldld* | linux*aout* | linux*coff*)
17319
# This must be Linux ELF.
17320
linux* | k*bsd*-gnu)
17324
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17325
soname_spec='${libname}${release}${shared_ext}$major'
17326
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17327
shlibpath_var=LD_LIBRARY_PATH
17328
shlibpath_overrides_runpath=no
17329
# This implies no fast_install, which is unacceptable.
17330
# Some rework will be needed to allow for fast_install
17331
# before this can be enabled.
17332
hardcode_into_libs=yes
17334
# Append ld.so.conf contents to the search path
17335
if test -f /etc/ld.so.conf; then
17336
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' ' '`
17337
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17340
# We used to test for /lib/ld.so.1 and disable shared libraries on
17341
# powerpc, because MkLinux only supported shared libraries with the
17342
# GNU dynamic linker. Since this was broken with cross compilers,
17343
# most powerpc-linux boxes support dynamic linking these days and
17344
# people can always --disable-shared, the test was removed, and we
17345
# assume the GNU/Linux dynamic linker is in use.
17346
dynamic_linker='GNU/Linux ld.so'
17353
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17354
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17355
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17356
dynamic_linker='NetBSD (a.out) ld.so'
17358
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17359
soname_spec='${libname}${release}${shared_ext}$major'
17360
dynamic_linker='NetBSD ld.elf_so'
17362
shlibpath_var=LD_LIBRARY_PATH
17363
shlibpath_overrides_runpath=yes
17364
hardcode_into_libs=yes
17369
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17370
shlibpath_var=LD_LIBRARY_PATH
17371
shlibpath_overrides_runpath=yes
17378
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17379
soname_spec='${libname}${release}${shared_ext}$major'
17380
shlibpath_var=LD_LIBRARY_PATH
17381
shlibpath_overrides_runpath=yes
17386
sys_lib_dlsearch_path_spec="/usr/lib"
17388
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17390
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17391
*) need_version=no ;;
17393
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17394
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17395
shlibpath_var=LD_LIBRARY_PATH
17396
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17398
openbsd2.[89] | openbsd2.[89].*)
17399
shlibpath_overrides_runpath=no
17402
shlibpath_overrides_runpath=yes
17406
shlibpath_overrides_runpath=yes
17411
libname_spec='$name'
17414
library_names_spec='$libname${shared_ext} $libname.a'
17415
dynamic_linker='OS/2 ld.exe'
17416
shlibpath_var=LIBPATH
17419
osf3* | osf4* | osf5*)
17423
soname_spec='${libname}${release}${shared_ext}$major'
17424
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17425
shlibpath_var=LD_LIBRARY_PATH
17426
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17427
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17438
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17439
soname_spec='${libname}${release}${shared_ext}$major'
17440
shlibpath_var=LD_LIBRARY_PATH
17441
shlibpath_overrides_runpath=yes
17442
hardcode_into_libs=yes
17443
# ldd complains unless libraries are executable
17444
postinstall_cmds='chmod +x $lib'
17449
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17450
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17451
shlibpath_var=LD_LIBRARY_PATH
17452
shlibpath_overrides_runpath=yes
17453
if test "$with_gnu_ld" = yes; then
17461
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17462
soname_spec='${libname}${release}${shared_ext}$major'
17463
shlibpath_var=LD_LIBRARY_PATH
17464
case $host_vendor in
17466
shlibpath_overrides_runpath=no
17468
export_dynamic_flag_spec='${wl}-Blargedynsym'
17469
runpath_var=LD_RUN_PATH
17477
shlibpath_overrides_runpath=no
17478
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17484
if test -d /usr/nec ;then
17486
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17487
soname_spec='$libname${shared_ext}.$major'
17488
shlibpath_var=LD_LIBRARY_PATH
17492
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17493
version_type=freebsd-elf
17496
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17497
soname_spec='${libname}${release}${shared_ext}$major'
17498
shlibpath_var=LD_LIBRARY_PATH
17499
hardcode_into_libs=yes
17500
if test "$with_gnu_ld" = yes; then
17501
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17502
shlibpath_overrides_runpath=no
17504
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17505
shlibpath_overrides_runpath=yes
17508
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17512
sys_lib_dlsearch_path_spec='/usr/lib'
17517
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17518
soname_spec='${libname}${release}${shared_ext}$major'
17519
shlibpath_var=LD_LIBRARY_PATH
17526
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17527
$as_echo "$dynamic_linker" >&6; }
17528
test "$dynamic_linker" = no && can_build_shared=no
17530
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17531
$as_echo_n "(cached) " >&6
17533
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
17536
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17537
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17538
$as_echo_n "(cached) " >&6
17540
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
17543
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17545
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17546
if test "$GCC" = yes; then
17547
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17550
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17551
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17552
hardcode_action_F77=
17553
if test -n "$hardcode_libdir_flag_spec_F77" || \
17554
test -n "$runpath_var_F77" || \
17555
test "X$hardcode_automatic_F77" = "Xyes" ; then
17557
# We can hardcode non-existant directories.
17558
if test "$hardcode_direct_F77" != no &&
17559
# If the only mechanism to avoid hardcoding is shlibpath_var, we
17560
# have to relink, otherwise we might link with an installed library
17561
# when we should be linking with a yet-to-be-installed one
17562
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17563
test "$hardcode_minus_L_F77" != no; then
17564
# Linking always hardcodes the temporary library directory.
17565
hardcode_action_F77=relink
17567
# We can link without hardcoding, and we can hardcode nonexisting dirs.
17568
hardcode_action_F77=immediate
17571
# We cannot hardcode anything, or else we can only hardcode existing
17573
hardcode_action_F77=unsupported
17575
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17576
$as_echo "$hardcode_action_F77" >&6; }
17578
if test "$hardcode_action_F77" = relink; then
17579
# Fast installation is not supported
17580
enable_fast_install=no
17581
elif test "$shlibpath_overrides_runpath" = yes ||
17582
test "$enable_shared" = no; then
17583
# Fast installation is not necessary
17584
enable_fast_install=needless
17588
# The else clause should only fire when bootstrapping the
17589
# libtool distribution, otherwise you forgot to ship ltmain.sh
17590
# with your package, and you will get complaints that there are
17591
# no rules to generate ltmain.sh.
17592
if test -f "$ltmain"; then
17593
# See if we are running on zsh, and set the options which allow our commands through
17594
# without removal of \ escapes.
17595
if test -n "${ZSH_VERSION+set}" ; then
17596
setopt NO_GLOB_SUBST
17598
# Now quote all the things that may contain metacharacters while being
17599
# careful not to overquote the AC_SUBSTed values. We take copies of the
17600
# variables and quote the copies for generation of the libtool script.
17601
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17603
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17604
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17605
deplibs_check_method reload_flag reload_cmds need_locks \
17606
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17607
lt_cv_sys_global_symbol_to_c_name_address \
17608
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17609
old_postinstall_cmds old_postuninstall_cmds \
17613
lt_prog_compiler_wl_F77 \
17614
lt_prog_compiler_pic_F77 \
17615
lt_prog_compiler_static_F77 \
17616
lt_prog_compiler_no_builtin_flag_F77 \
17617
export_dynamic_flag_spec_F77 \
17618
thread_safe_flag_spec_F77 \
17619
whole_archive_flag_spec_F77 \
17620
enable_shared_with_static_runtimes_F77 \
17621
old_archive_cmds_F77 \
17622
old_archive_from_new_cmds_F77 \
17623
predep_objects_F77 \
17624
postdep_objects_F77 \
17627
compiler_lib_search_path_F77 \
17628
compiler_lib_search_dirs_F77 \
17630
archive_expsym_cmds_F77 \
17631
postinstall_cmds_F77 \
17632
postuninstall_cmds_F77 \
17633
old_archive_from_expsyms_cmds_F77 \
17634
allow_undefined_flag_F77 \
17635
no_undefined_flag_F77 \
17636
export_symbols_cmds_F77 \
17637
hardcode_libdir_flag_spec_F77 \
17638
hardcode_libdir_flag_spec_ld_F77 \
17639
hardcode_libdir_separator_F77 \
17640
hardcode_automatic_F77 \
17642
module_expsym_cmds_F77 \
17643
lt_cv_prog_compiler_c_o_F77 \
17644
fix_srcfile_path_F77 \
17645
exclude_expsyms_F77 \
17646
include_expsyms_F77; do
17649
old_archive_cmds_F77 | \
17650
old_archive_from_new_cmds_F77 | \
17651
archive_cmds_F77 | \
17652
archive_expsym_cmds_F77 | \
17653
module_cmds_F77 | \
17654
module_expsym_cmds_F77 | \
17655
old_archive_from_expsyms_cmds_F77 | \
17656
export_symbols_cmds_F77 | \
17657
extract_expsyms_cmds | reload_cmds | finish_cmds | \
17658
postinstall_cmds | postuninstall_cmds | \
17659
old_postinstall_cmds | old_postuninstall_cmds | \
17660
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17661
# Double-quote double-evaled strings.
17662
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17665
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17671
*'\$0 --fallback-echo"')
17672
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17678
cat <<__EOF__ >> "$cfgfile"
17679
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17681
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17683
# Shell to use when invoking shell scripts.
17686
# Whether or not to build shared libraries.
17687
build_libtool_libs=$enable_shared
17689
# Whether or not to build static libraries.
17690
build_old_libs=$enable_static
17692
# Whether or not to add -lc for building shared libraries.
17693
build_libtool_need_lc=$archive_cmds_need_lc_F77
17695
# Whether or not to disallow shared libs when runtime libs are static
17696
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17698
# Whether or not to optimize for fast installation.
17699
fast_install=$enable_fast_install
17702
host_alias=$host_alias
17706
# The build system.
17707
build_alias=$build_alias
17711
# An echo program that does not interpret backslashes.
17716
AR_FLAGS=$lt_AR_FLAGS
17721
# LTCC compiler flags.
17722
LTCFLAGS=$lt_LTCFLAGS
17724
# A language-specific compiler.
17725
CC=$lt_compiler_F77
17727
# Is the compiler the GNU C compiler?
17733
# The linker used to build libraries.
17736
# Whether we need hard or soft links.
17739
# A BSD-compatible nm program.
17742
# A symbol stripping program
17745
# Used to examine libraries when file_magic_cmd begins "file"
17746
MAGIC_CMD=$MAGIC_CMD
17748
# Used on cygwin: DLL creation program.
17751
# Used on cygwin: object dumper.
17754
# Used on cygwin: assembler.
17757
# The name of the directory that contains temporary libtool files.
17760
# How to create reloadable object files.
17761
reload_flag=$lt_reload_flag
17762
reload_cmds=$lt_reload_cmds
17764
# How to pass a linker flag through the compiler.
17765
wl=$lt_lt_prog_compiler_wl_F77
17767
# Object file suffix (normally "o").
17768
objext="$ac_objext"
17770
# Old archive suffix (normally "a").
17773
# Shared library suffix (normally ".so").
17774
shrext_cmds='$shrext_cmds'
17776
# Executable file suffix (normally "").
17779
# Additional compiler flags for building library objects.
17780
pic_flag=$lt_lt_prog_compiler_pic_F77
17783
# What is the maximum length of a command?
17784
max_cmd_len=$lt_cv_sys_max_cmd_len
17786
# Does compiler simultaneously support -c and -o options?
17787
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17789
# Must we lock files when doing compilation?
17790
need_locks=$lt_need_locks
17792
# Do we need the lib prefix for modules?
17793
need_lib_prefix=$need_lib_prefix
17795
# Do we need a version for libraries?
17796
need_version=$need_version
17798
# Whether dlopen is supported.
17799
dlopen_support=$enable_dlopen
17801
# Whether dlopen of programs is supported.
17802
dlopen_self=$enable_dlopen_self
17804
# Whether dlopen of statically linked programs is supported.
17805
dlopen_self_static=$enable_dlopen_self_static
17807
# Compiler flag to prevent dynamic linking.
17808
link_static_flag=$lt_lt_prog_compiler_static_F77
17810
# Compiler flag to turn off builtin functions.
17811
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17813
# Compiler flag to allow reflexive dlopens.
17814
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17816
# Compiler flag to generate shared objects directly from archives.
17817
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17819
# Compiler flag to generate thread-safe objects.
17820
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17822
# Library versioning type.
17823
version_type=$version_type
17825
# Format of library name prefix.
17826
libname_spec=$lt_libname_spec
17828
# List of archive names. First name is the real one, the rest are links.
17829
# The last name is the one that the linker finds with -lNAME.
17830
library_names_spec=$lt_library_names_spec
17832
# The coded name of the library, if different from the real name.
17833
soname_spec=$lt_soname_spec
17835
# Commands used to build and install an old-style archive.
17837
old_archive_cmds=$lt_old_archive_cmds_F77
17838
old_postinstall_cmds=$lt_old_postinstall_cmds
17839
old_postuninstall_cmds=$lt_old_postuninstall_cmds
17841
# Create an old-style archive from a shared archive.
17842
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17844
# Create a temporary old-style archive to link instead of a shared archive.
17845
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17847
# Commands used to build and install a shared archive.
17848
archive_cmds=$lt_archive_cmds_F77
17849
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17850
postinstall_cmds=$lt_postinstall_cmds
17851
postuninstall_cmds=$lt_postuninstall_cmds
17853
# Commands used to build a loadable module (assumed same as above if empty)
17854
module_cmds=$lt_module_cmds_F77
17855
module_expsym_cmds=$lt_module_expsym_cmds_F77
17857
# Commands to strip libraries.
17858
old_striplib=$lt_old_striplib
17859
striplib=$lt_striplib
17861
# Dependencies to place before the objects being linked to create a
17863
predep_objects=$lt_predep_objects_F77
17865
# Dependencies to place after the objects being linked to create a
17867
postdep_objects=$lt_postdep_objects_F77
17869
# Dependencies to place before the objects being linked to create a
17871
predeps=$lt_predeps_F77
17873
# Dependencies to place after the objects being linked to create a
17875
postdeps=$lt_postdeps_F77
17877
# The directories searched by this compiler when creating a shared
17879
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
17881
# The library search path used internally by the compiler when linking
17882
# a shared library.
17883
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17885
# Method to check whether dependent libraries are shared objects.
17886
deplibs_check_method=$lt_deplibs_check_method
17888
# Command to use when deplibs_check_method == file_magic.
17889
file_magic_cmd=$lt_file_magic_cmd
17891
# Flag that allows shared libraries with undefined symbols to be built.
17892
allow_undefined_flag=$lt_allow_undefined_flag_F77
17894
# Flag that forces no undefined symbols.
17895
no_undefined_flag=$lt_no_undefined_flag_F77
17897
# Commands used to finish a libtool library installation in a directory.
17898
finish_cmds=$lt_finish_cmds
17900
# Same as above, but a single script fragment to be evaled but not shown.
17901
finish_eval=$lt_finish_eval
17903
# Take the output of nm and produce a listing of raw symbols and C names.
17904
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17906
# Transform the output of nm in a proper C declaration
17907
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17909
# Transform the output of nm in a C name address pair
17910
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17912
# This is the shared library runtime path variable.
17913
runpath_var=$runpath_var
17915
# This is the shared library path variable.
17916
shlibpath_var=$shlibpath_var
17918
# Is shlibpath searched before the hard-coded library search path?
17919
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17921
# How to hardcode a shared library path into an executable.
17922
hardcode_action=$hardcode_action_F77
17924
# Whether we should hardcode library paths into libraries.
17925
hardcode_into_libs=$hardcode_into_libs
17927
# Flag to hardcode \$libdir into a binary during linking.
17928
# This must work even if \$libdir does not exist.
17929
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17931
# If ld is used when linking, flag to hardcode \$libdir into
17932
# a binary during linking. This must work even if \$libdir does
17934
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17936
# Whether we need a single -rpath flag with a separated argument.
17937
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17939
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17940
# resulting binary.
17941
hardcode_direct=$hardcode_direct_F77
17943
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17944
# resulting binary.
17945
hardcode_minus_L=$hardcode_minus_L_F77
17947
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17948
# the resulting binary.
17949
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17951
# Set to yes if building a shared library automatically hardcodes DIR into the library
17952
# and all subsequent libraries and executables linked against it.
17953
hardcode_automatic=$hardcode_automatic_F77
17955
# Variables whose values should be saved in libtool wrapper scripts and
17956
# restored at relink time.
17957
variables_saved_for_relink="$variables_saved_for_relink"
17959
# Whether libtool must link a program against all its dependency libraries.
17960
link_all_deplibs=$link_all_deplibs_F77
17962
# Compile-time system search path for libraries
17963
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17965
# Run-time system search path for libraries
17966
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17968
# Fix the shell variable \$srcfile for the compiler.
17969
fix_srcfile_path=$lt_fix_srcfile_path
17971
# Set to yes if exported symbols are required.
17972
always_export_symbols=$always_export_symbols_F77
17974
# The commands to list exported symbols.
17975
export_symbols_cmds=$lt_export_symbols_cmds_F77
17977
# The commands to extract the exported symbol list from a shared archive.
17978
extract_expsyms_cmds=$lt_extract_expsyms_cmds
17980
# Symbols that should not be listed in the preloaded symbols.
17981
exclude_expsyms=$lt_exclude_expsyms_F77
17983
# Symbols that must always be exported.
17984
include_expsyms=$lt_include_expsyms_F77
17986
# ### END LIBTOOL TAG CONFIG: $tagname
17992
# If there is no Makefile yet, we rely on a make rule to execute
17993
# `config.status --recheck' to rerun these tests and create the
17994
# libtool script then.
17995
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17996
if test -f "$ltmain_in"; then
17997
test -f Makefile && make "$ltmain"
18003
ac_cpp='$CPP $CPPFLAGS'
18004
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18005
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18006
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18016
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
18019
# Source file extension for Java test sources.
18022
# Object file extension for compiled Java test sources.
18026
# Code to be used in simple compile tests
18027
lt_simple_compile_test_code="class foo {}"
18029
# Code to be used in simple link tests
18030
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
18032
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18034
# If no C compiler was specified, use CC.
18037
# If no C compiler flags were specified, use CFLAGS.
18038
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18040
# Allow CC to be a program name with arguments.
18044
# save warnings/boilerplate of simple test code
18045
ac_outfile=conftest.$ac_objext
18046
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18047
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18048
_lt_compiler_boilerplate=`cat conftest.err`
18051
ac_outfile=conftest.$ac_objext
18052
echo "$lt_simple_link_test_code" >conftest.$ac_ext
18053
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18054
_lt_linker_boilerplate=`cat conftest.err`
18058
# Allow CC to be a program name with arguments.
18063
for cc_temp in $compiler""; do
18065
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18066
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18071
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18074
# GCJ did not exist at the time GCC didn't implicitly link libc in.
18075
archive_cmds_need_lc_GCJ=no
18077
old_archive_cmds_GCJ=$old_archive_cmds
18080
lt_prog_compiler_no_builtin_flag_GCJ=
18082
if test "$GCC" = yes; then
18083
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
18086
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
18087
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
18088
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
18089
$as_echo_n "(cached) " >&6
18091
lt_cv_prog_compiler_rtti_exceptions=no
18092
ac_outfile=conftest.$ac_objext
18093
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18094
lt_compiler_flag="-fno-rtti -fno-exceptions"
18095
# Insert the option either (1) after the last *FLAGS variable, or
18096
# (2) before a word containing "conftest.", or (3) at the end.
18097
# Note that $ac_compile itself does not contain backslashes and begins
18098
# with a dollar sign (not a hyphen), so the echo should work correctly.
18099
# The option is referenced via a variable to avoid confusing sed.
18100
lt_compile=`echo "$ac_compile" | $SED \
18101
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18102
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18103
-e 's:$: $lt_compiler_flag:'`
18104
(eval echo "\"\$as_me:18104: $lt_compile\"" >&5)
18105
(eval "$lt_compile" 2>conftest.err)
18107
cat conftest.err >&5
18108
echo "$as_me:18108: \$? = $ac_status" >&5
18109
if (exit $ac_status) && test -s "$ac_outfile"; then
18110
# The compiler can only warn and ignore the option if not recognized
18111
# So say no if there are warnings other than the usual output.
18112
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18113
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18114
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18115
lt_cv_prog_compiler_rtti_exceptions=yes
18121
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18122
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
18124
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18125
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18132
lt_prog_compiler_wl_GCJ=
18133
lt_prog_compiler_pic_GCJ=
18134
lt_prog_compiler_static_GCJ=
18136
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18137
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18139
if test "$GCC" = yes; then
18140
lt_prog_compiler_wl_GCJ='-Wl,'
18141
lt_prog_compiler_static_GCJ='-static'
18145
# All AIX code is PIC.
18146
if test "$host_cpu" = ia64; then
18147
# AIX 5 now supports IA64 processor
18148
lt_prog_compiler_static_GCJ='-Bstatic'
18153
# FIXME: we need at least 68020 code to build shared libraries, but
18154
# adding the `-m68020' flag to GCC prevents building anything better,
18156
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18159
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18160
# PIC is the default for these OSes.
18163
mingw* | cygwin* | pw32* | os2*)
18164
# This hack is so that the source file can tell whether it is being
18165
# built for inclusion in a dll (and should export symbols for example).
18166
# Although the cygwin gcc ignores -fPIC, still need this for old-style
18167
# (--disable-auto-import) libraries
18171
darwin* | rhapsody*)
18172
# PIC is the default on this platform
18173
# Common symbols not allowed in MH_DYLIB files
18174
lt_prog_compiler_pic_GCJ='-fno-common'
18178
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
18179
# Instead, we relocate shared libraries at runtime.
18183
# Just because we use GCC doesn't mean we suddenly get shared libraries
18184
# on systems that don't support them.
18185
lt_prog_compiler_can_build_shared_GCJ=no
18190
if test -d /usr/nec; then
18191
lt_prog_compiler_pic_GCJ=-Kconform_pic
18196
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18197
# not for PA HP-UX.
18203
lt_prog_compiler_pic_GCJ='-fPIC'
18209
lt_prog_compiler_pic_GCJ='-fPIC'
18213
# PORTME Check for flag to pass linker flags through the system compiler.
18216
lt_prog_compiler_wl_GCJ='-Wl,'
18217
if test "$host_cpu" = ia64; then
18218
# AIX 5 now supports IA64 processor
18219
lt_prog_compiler_static_GCJ='-Bstatic'
18221
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18225
# PIC is the default on this platform
18226
# Common symbols not allowed in MH_DYLIB files
18227
case $cc_basename in
18229
lt_prog_compiler_pic_GCJ='-qnocommon'
18230
lt_prog_compiler_wl_GCJ='-Wl,'
18235
mingw* | cygwin* | pw32* | os2*)
18236
# This hack is so that the source file can tell whether it is being
18237
# built for inclusion in a dll (and should export symbols for example).
18241
hpux9* | hpux10* | hpux11*)
18242
lt_prog_compiler_wl_GCJ='-Wl,'
18243
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18244
# not for PA HP-UX.
18250
lt_prog_compiler_pic_GCJ='+Z'
18253
# Is there a better lt_prog_compiler_static that works with the bundled CC?
18254
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18257
irix5* | irix6* | nonstopux*)
18258
lt_prog_compiler_wl_GCJ='-Wl,'
18259
# PIC (with -KPIC) is the default.
18260
lt_prog_compiler_static_GCJ='-non_shared'
18264
lt_prog_compiler_pic_GCJ='-KPIC'
18265
lt_prog_compiler_static_GCJ='-Bstatic'
18268
linux* | k*bsd*-gnu)
18269
case $cc_basename in
18271
lt_prog_compiler_wl_GCJ='-Wl,'
18272
lt_prog_compiler_pic_GCJ='-KPIC'
18273
lt_prog_compiler_static_GCJ='-static'
18275
pgcc* | pgf77* | pgf90* | pgf95*)
18276
# Portland Group compilers (*not* the Pentium gcc compiler,
18277
# which looks to be a dead project)
18278
lt_prog_compiler_wl_GCJ='-Wl,'
18279
lt_prog_compiler_pic_GCJ='-fpic'
18280
lt_prog_compiler_static_GCJ='-Bstatic'
18283
lt_prog_compiler_wl_GCJ='-Wl,'
18284
# All Alpha code is PIC.
18285
lt_prog_compiler_static_GCJ='-non_shared'
18288
case `$CC -V 2>&1 | sed 5q` in
18291
lt_prog_compiler_pic_GCJ='-KPIC'
18292
lt_prog_compiler_static_GCJ='-Bstatic'
18293
lt_prog_compiler_wl_GCJ='-Wl,'
18296
# Sun Fortran 8.3 passes all unrecognized flags to the linker
18297
lt_prog_compiler_pic_GCJ='-KPIC'
18298
lt_prog_compiler_static_GCJ='-Bstatic'
18299
lt_prog_compiler_wl_GCJ=''
18306
osf3* | osf4* | osf5*)
18307
lt_prog_compiler_wl_GCJ='-Wl,'
18308
# All OSF/1 code is PIC.
18309
lt_prog_compiler_static_GCJ='-non_shared'
18313
lt_prog_compiler_static_GCJ='-non_shared'
18317
lt_prog_compiler_pic_GCJ='-KPIC'
18318
lt_prog_compiler_static_GCJ='-Bstatic'
18319
case $cc_basename in
18320
f77* | f90* | f95*)
18321
lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18323
lt_prog_compiler_wl_GCJ='-Wl,';;
18328
lt_prog_compiler_wl_GCJ='-Qoption ld '
18329
lt_prog_compiler_pic_GCJ='-PIC'
18330
lt_prog_compiler_static_GCJ='-Bstatic'
18333
sysv4 | sysv4.2uw2* | sysv4.3*)
18334
lt_prog_compiler_wl_GCJ='-Wl,'
18335
lt_prog_compiler_pic_GCJ='-KPIC'
18336
lt_prog_compiler_static_GCJ='-Bstatic'
18340
if test -d /usr/nec ;then
18341
lt_prog_compiler_pic_GCJ='-Kconform_pic'
18342
lt_prog_compiler_static_GCJ='-Bstatic'
18346
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18347
lt_prog_compiler_wl_GCJ='-Wl,'
18348
lt_prog_compiler_pic_GCJ='-KPIC'
18349
lt_prog_compiler_static_GCJ='-Bstatic'
18353
lt_prog_compiler_wl_GCJ='-Wl,'
18354
lt_prog_compiler_can_build_shared_GCJ=no
18358
lt_prog_compiler_pic_GCJ='-pic'
18359
lt_prog_compiler_static_GCJ='-Bstatic'
18363
lt_prog_compiler_can_build_shared_GCJ=no
18368
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18369
$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
18372
# Check to make sure the PIC flag actually works.
18374
if test -n "$lt_prog_compiler_pic_GCJ"; then
18376
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18377
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
18378
if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
18379
$as_echo_n "(cached) " >&6
18381
lt_cv_prog_compiler_pic_works_GCJ=no
18382
ac_outfile=conftest.$ac_objext
18383
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18384
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18385
# Insert the option either (1) after the last *FLAGS variable, or
18386
# (2) before a word containing "conftest.", or (3) at the end.
18387
# Note that $ac_compile itself does not contain backslashes and begins
18388
# with a dollar sign (not a hyphen), so the echo should work correctly.
18389
# The option is referenced via a variable to avoid confusing sed.
18390
lt_compile=`echo "$ac_compile" | $SED \
18391
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18392
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18393
-e 's:$: $lt_compiler_flag:'`
18394
(eval echo "\"\$as_me:18394: $lt_compile\"" >&5)
18395
(eval "$lt_compile" 2>conftest.err)
18397
cat conftest.err >&5
18398
echo "$as_me:18398: \$? = $ac_status" >&5
18399
if (exit $ac_status) && test -s "$ac_outfile"; then
18400
# The compiler can only warn and ignore the option if not recognized
18401
# So say no if there are warnings other than the usual output.
18402
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18403
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18404
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18405
lt_cv_prog_compiler_pic_works_GCJ=yes
18411
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
18412
$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
18414
if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
18415
case $lt_prog_compiler_pic_GCJ in
18417
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18420
lt_prog_compiler_pic_GCJ=
18421
lt_prog_compiler_can_build_shared_GCJ=no
18426
# For platforms which do not support PIC, -DPIC is meaningless:
18428
lt_prog_compiler_pic_GCJ=
18431
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18436
# Check to make sure the static flag actually works.
18438
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
18439
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18440
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
18441
if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
18442
$as_echo_n "(cached) " >&6
18444
lt_cv_prog_compiler_static_works_GCJ=no
18445
save_LDFLAGS="$LDFLAGS"
18446
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18447
echo "$lt_simple_link_test_code" > conftest.$ac_ext
18448
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18449
# The linker can only warn and ignore the option if not recognized
18450
# So say no if there are warnings
18451
if test -s conftest.err; then
18452
# Append any errors to the config.log.
18453
cat conftest.err 1>&5
18454
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18455
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18456
if diff conftest.exp conftest.er2 >/dev/null; then
18457
lt_cv_prog_compiler_static_works_GCJ=yes
18460
lt_cv_prog_compiler_static_works_GCJ=yes
18464
LDFLAGS="$save_LDFLAGS"
18467
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
18468
$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
18470
if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
18473
lt_prog_compiler_static_GCJ=
18477
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18478
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18479
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18480
$as_echo_n "(cached) " >&6
18482
lt_cv_prog_compiler_c_o_GCJ=no
18483
$rm -r conftest 2>/dev/null
18487
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18489
lt_compiler_flag="-o out/conftest2.$ac_objext"
18490
# Insert the option either (1) after the last *FLAGS variable, or
18491
# (2) before a word containing "conftest.", or (3) at the end.
18492
# Note that $ac_compile itself does not contain backslashes and begins
18493
# with a dollar sign (not a hyphen), so the echo should work correctly.
18494
lt_compile=`echo "$ac_compile" | $SED \
18495
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18496
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18497
-e 's:$: $lt_compiler_flag:'`
18498
(eval echo "\"\$as_me:18498: $lt_compile\"" >&5)
18499
(eval "$lt_compile" 2>out/conftest.err)
18501
cat out/conftest.err >&5
18502
echo "$as_me:18502: \$? = $ac_status" >&5
18503
if (exit $ac_status) && test -s out/conftest2.$ac_objext
18505
# The compiler can only warn and ignore the option if not recognized
18506
# So say no if there are warnings
18507
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18508
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18509
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18510
lt_cv_prog_compiler_c_o_GCJ=yes
18515
# SGI C++ compiler will create directory out/ii_files/ for
18516
# template instantiation
18517
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18518
$rm out/* && rmdir out
18524
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18525
$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
18528
hard_links="nottested"
18529
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18530
# do not overwrite the value of need_locks provided by the user
18531
{ $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18532
$as_echo_n "checking if we can lock with hard links... " >&6; }
18535
ln conftest.a conftest.b 2>/dev/null && hard_links=no
18537
ln conftest.a conftest.b 2>&5 || hard_links=no
18538
ln conftest.a conftest.b 2>/dev/null && hard_links=no
18539
{ $as_echo "$as_me:$LINENO: result: $hard_links" >&5
18540
$as_echo "$hard_links" >&6; }
18541
if test "$hard_links" = no; then
18542
{ $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18543
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18550
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18551
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18554
allow_undefined_flag_GCJ=
18555
enable_shared_with_static_runtimes_GCJ=no
18557
archive_expsym_cmds_GCJ=
18558
old_archive_From_new_cmds_GCJ=
18559
old_archive_from_expsyms_cmds_GCJ=
18560
export_dynamic_flag_spec_GCJ=
18561
whole_archive_flag_spec_GCJ=
18562
thread_safe_flag_spec_GCJ=
18563
hardcode_libdir_flag_spec_GCJ=
18564
hardcode_libdir_flag_spec_ld_GCJ=
18565
hardcode_libdir_separator_GCJ=
18566
hardcode_direct_GCJ=no
18567
hardcode_minus_L_GCJ=no
18568
hardcode_shlibpath_var_GCJ=unsupported
18569
link_all_deplibs_GCJ=unknown
18570
hardcode_automatic_GCJ=no
18572
module_expsym_cmds_GCJ=
18573
always_export_symbols_GCJ=no
18574
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18575
# include_expsyms should be a list of space-separated symbols to be *always*
18576
# included in the symbol list
18577
include_expsyms_GCJ=
18578
# exclude_expsyms can be an extended regexp of symbols to exclude
18579
# it will be wrapped by ` (' and `)$', so one must not match beginning or
18580
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18581
# as well as any symbol that contains `d'.
18582
exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18583
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18584
# platforms (ab)use it in PIC code, but their linkers get confused if
18585
# the symbol is explicitly referenced. Since portable code cannot
18586
# rely on this symbol name, it's probably fine to never include it in
18587
# preloaded symbol tables.
18588
# Exclude shared library initialization/finalization symbols.
18589
extract_expsyms_cmds=
18590
# Just being paranoid about ensuring that cc_basename is set.
18591
for cc_temp in $compiler""; do
18593
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18594
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18599
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18602
cygwin* | mingw* | pw32*)
18603
# FIXME: the MSVC++ port hasn't been tested in a loooong time
18604
# When not using gcc, we currently assume that we are using
18605
# Microsoft Visual C++.
18606
if test "$GCC" != yes; then
18611
# we just hope/assume this is gcc and not c89 (= MSVC++)
18620
if test "$with_gnu_ld" = yes; then
18621
# If archive_cmds runs LD, not CC, wlarc should be empty
18624
# Set some defaults for GNU ld with shared library support. These
18625
# are reset later if shared libraries are not supported. Putting them
18626
# here allows them to be overridden if necessary.
18627
runpath_var=LD_RUN_PATH
18628
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18629
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18630
# ancient GNU ld didn't support --whole-archive et. al.
18631
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18632
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18634
whole_archive_flag_spec_GCJ=
18636
supports_anon_versioning=no
18637
case `$LD -v 2>/dev/null` in
18638
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18639
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18640
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18641
*\ 2.11.*) ;; # other 2.11 versions
18642
*) supports_anon_versioning=yes ;;
18645
# See if GNU ld supports shared libraries.
18648
# On AIX/PPC, the GNU linker is very broken
18649
if test "$host_cpu" != ia64; then
18653
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
18654
*** to be unable to reliably create shared libraries on AIX.
18655
*** Therefore, libtool is disabling shared libraries support. If you
18656
*** really care for shared libraries, you may want to modify your PATH
18657
*** so that a non-GNU linker is found, and then restart.
18664
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)'
18665
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18666
hardcode_minus_L_GCJ=yes
18668
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18669
# that the semantics of dynamic libraries on AmigaOS, at least up
18670
# to version 4, is to share data among multiple programs linked
18671
# with the same dynamic library. Since this doesn't match the
18672
# behavior of shared libraries on other platforms, we can't use
18678
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18679
allow_undefined_flag_GCJ=unsupported
18680
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18681
# support --undefined. This deserves some investigation. FIXME
18682
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18688
cygwin* | mingw* | pw32*)
18689
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18690
# as there is no search path for DLLs.
18691
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18692
allow_undefined_flag_GCJ=unsupported
18693
always_export_symbols_GCJ=no
18694
enable_shared_with_static_runtimes_GCJ=yes
18695
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
18697
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18698
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18699
# If the export-symbols file already is a .def file (1st line
18700
# is EXPORTS), use it as is; otherwise, prepend...
18701
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18702
cp $export_symbols $output_objdir/$soname.def;
18704
echo EXPORTS > $output_objdir/$soname.def;
18705
cat $export_symbols >> $output_objdir/$soname.def;
18707
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18714
hardcode_direct_GCJ=no
18715
hardcode_shlibpath_var_GCJ=no
18716
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18717
export_dynamic_flag_spec_GCJ='${wl}-E'
18718
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18719
# Instead, shared libraries are loaded at an image base (0x10000000 by
18720
# default) and relocated if they conflict, which is a slow very memory
18721
# consuming and fragmenting process. To avoid this, we pick a random,
18722
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18723
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
18724
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'
18725
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'
18728
gnu* | linux* | k*bsd*-gnu)
18729
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18731
case $cc_basename,$host_cpu in
18732
pgcc*) # Portland Group C compiler
18733
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'
18734
tmp_addflag=' $pic_flag'
18736
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
18737
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'
18738
tmp_addflag=' $pic_flag -Mnomain' ;;
18739
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18740
tmp_addflag=' -i_dynamic' ;;
18741
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18742
tmp_addflag=' -i_dynamic -nofor_main' ;;
18743
ifc* | ifort*) # Intel Fortran compiler
18744
tmp_addflag=' -nofor_main' ;;
18746
case `$CC -V 2>&1 | sed 5q` in
18747
*Sun\ C*) # Sun C 5.9
18748
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'
18749
tmp_sharedflag='-G' ;;
18750
*Sun\ F*) # Sun Fortran 8.3
18751
tmp_sharedflag='-G' ;;
18753
tmp_sharedflag='-shared' ;;
18755
archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18757
if test $supports_anon_versioning = yes; then
18758
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18759
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18760
$echo "local: *; };" >> $output_objdir/$libname.ver~
18761
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18769
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18770
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18773
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18774
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18779
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18783
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
18784
*** create shared libraries on Solaris systems. Therefore, libtool
18785
*** is disabling shared libraries support. We urge you to upgrade GNU
18786
*** binutils to release 2.9.1 or newer. Another option is to modify
18787
*** your PATH or compiler configuration so that the native linker is
18788
*** used, and then restart.
18791
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18792
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18793
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18799
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18800
case `$LD -v 2>&1` in
18801
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18805
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18806
*** reliably create shared libraries on SCO systems. Therefore, libtool
18807
*** is disabling shared libraries support. We urge you to upgrade GNU
18808
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18809
*** your PATH or compiler configuration so that the native linker is
18810
*** used, and then restart.
18815
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18816
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18817
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18818
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18827
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18829
hardcode_direct_GCJ=yes
18830
hardcode_shlibpath_var_GCJ=no
18834
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18835
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18836
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18843
if test "$ld_shlibs_GCJ" = no; then
18845
hardcode_libdir_flag_spec_GCJ=
18846
export_dynamic_flag_spec_GCJ=
18847
whole_archive_flag_spec_GCJ=
18850
# PORTME fill in a description of your system's linker (not GNU ld)
18853
allow_undefined_flag_GCJ=unsupported
18854
always_export_symbols_GCJ=yes
18855
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'
18856
# Note: this linker hardcodes the directories in LIBPATH if there
18857
# are no directories specified by -L.
18858
hardcode_minus_L_GCJ=yes
18859
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18860
# Neither direct hardcoding nor static linking is supported with a
18862
hardcode_direct_GCJ=unsupported
18867
if test "$host_cpu" = ia64; then
18868
# On IA64, the linker does run time linking by default, so we don't
18869
# have to do anything special.
18870
aix_use_runtimelinking=no
18871
exp_sym_flag='-Bexport'
18874
# If we're using GNU nm, then we don't want the "-C" option.
18875
# -C means demangle to AIX nm, but means don't demangle with GNU nm
18876
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18877
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'
18879
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'
18881
aix_use_runtimelinking=no
18883
# Test if we are trying to use run time linking or normal
18884
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
18885
# need to do runtime linking.
18886
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18887
for ld_flag in $LDFLAGS; do
18888
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18889
aix_use_runtimelinking=yes
18896
exp_sym_flag='-bexport'
18897
no_entry_flag='-bnoentry'
18900
# When large executables or shared objects are built, AIX ld can
18901
# have problems creating the table of contents. If linking a library
18902
# or program results in "error TOC overflow" add -mminimal-toc to
18903
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18904
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18906
archive_cmds_GCJ=''
18907
hardcode_direct_GCJ=yes
18908
hardcode_libdir_separator_GCJ=':'
18909
link_all_deplibs_GCJ=yes
18911
if test "$GCC" = yes; then
18912
case $host_os in aix4.[012]|aix4.[012].*)
18913
# We only want to do this on AIX 4.2 and lower, the check
18914
# below for broken collect2 doesn't work under 4.3+
18915
collect2name=`${CC} -print-prog-name=collect2`
18916
if test -f "$collect2name" && \
18917
strings "$collect2name" | grep resolve_lib_name >/dev/null
18919
# We have reworked collect2
18922
# We have old collect2
18923
hardcode_direct_GCJ=unsupported
18924
# It fails to find uninstalled libraries when the uninstalled
18925
# path is not listed in the libpath. Setting hardcode_minus_L
18926
# to unsupported forces relinking
18927
hardcode_minus_L_GCJ=yes
18928
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18929
hardcode_libdir_separator_GCJ=
18933
shared_flag='-shared'
18934
if test "$aix_use_runtimelinking" = yes; then
18935
shared_flag="$shared_flag "'${wl}-G'
18939
if test "$host_cpu" = ia64; then
18940
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18941
# chokes on -Wl,-G. The following line is correct:
18944
if test "$aix_use_runtimelinking" = yes; then
18945
shared_flag='${wl}-G'
18947
shared_flag='${wl}-bM:SRE'
18952
# It seems that -bexpall does not export symbols beginning with
18953
# underscore (_), so it is better to generate a list of symbols to export.
18954
always_export_symbols_GCJ=yes
18955
if test "$aix_use_runtimelinking" = yes; then
18956
# Warning - without using the other runtime loading flags (-brtl),
18957
# -berok will link without error, but may produce a broken library.
18958
allow_undefined_flag_GCJ='-berok'
18959
# Determine the default libpath from the value encoded in an empty executable.
18960
cat >conftest.$ac_ext <<_ACEOF
18963
cat confdefs.h >>conftest.$ac_ext
18964
cat >>conftest.$ac_ext <<_ACEOF
18965
/* end confdefs.h. */
18975
rm -f conftest.$ac_objext conftest$ac_exeext
18976
if { (ac_try="$ac_link"
18977
case "(($ac_try" in
18978
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18979
*) ac_try_echo=$ac_try;;
18981
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18982
$as_echo "$ac_try_echo") >&5
18983
(eval "$ac_link") 2>conftest.er1
18985
grep -v '^ *+' conftest.er1 >conftest.err
18987
cat conftest.err >&5
18988
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18989
(exit $ac_status); } && {
18990
test -z "$ac_c_werror_flag" ||
18991
test ! -s conftest.err
18992
} && test -s conftest$ac_exeext && {
18993
test "$cross_compiling" = yes ||
18994
$as_test_x conftest$ac_exeext
18997
lt_aix_libpath_sed='
18998
/Import File Strings/,/^$/ {
19004
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19005
# Check for a 64-bit object if we didn't find anything.
19006
if test -z "$aix_libpath"; then
19007
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19010
$as_echo "$as_me: failed program was:" >&5
19011
sed 's/^/| /' conftest.$ac_ext >&5
19016
rm -rf conftest.dSYM
19017
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19018
conftest$ac_exeext conftest.$ac_ext
19019
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19021
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19022
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"
19024
if test "$host_cpu" = ia64; then
19025
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
19026
allow_undefined_flag_GCJ="-z nodefs"
19027
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"
19029
# Determine the default libpath from the value encoded in an empty executable.
19030
cat >conftest.$ac_ext <<_ACEOF
19033
cat confdefs.h >>conftest.$ac_ext
19034
cat >>conftest.$ac_ext <<_ACEOF
19035
/* end confdefs.h. */
19045
rm -f conftest.$ac_objext conftest$ac_exeext
19046
if { (ac_try="$ac_link"
19047
case "(($ac_try" in
19048
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19049
*) ac_try_echo=$ac_try;;
19051
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19052
$as_echo "$ac_try_echo") >&5
19053
(eval "$ac_link") 2>conftest.er1
19055
grep -v '^ *+' conftest.er1 >conftest.err
19057
cat conftest.err >&5
19058
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19059
(exit $ac_status); } && {
19060
test -z "$ac_c_werror_flag" ||
19061
test ! -s conftest.err
19062
} && test -s conftest$ac_exeext && {
19063
test "$cross_compiling" = yes ||
19064
$as_test_x conftest$ac_exeext
19067
lt_aix_libpath_sed='
19068
/Import File Strings/,/^$/ {
19074
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19075
# Check for a 64-bit object if we didn't find anything.
19076
if test -z "$aix_libpath"; then
19077
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19080
$as_echo "$as_me: failed program was:" >&5
19081
sed 's/^/| /' conftest.$ac_ext >&5
19086
rm -rf conftest.dSYM
19087
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19088
conftest$ac_exeext conftest.$ac_ext
19089
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19091
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19092
# Warning - without using the other run time loading flags,
19093
# -berok will link without error, but may produce a broken library.
19094
no_undefined_flag_GCJ=' ${wl}-bernotok'
19095
allow_undefined_flag_GCJ=' ${wl}-berok'
19096
# Exported symbols can be pulled into shared objects from archives
19097
whole_archive_flag_spec_GCJ='$convenience'
19098
archive_cmds_need_lc_GCJ=yes
19099
# This is similar to how AIX traditionally builds its shared libraries.
19100
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'
19106
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)'
19107
hardcode_libdir_flag_spec_GCJ='-L$libdir'
19108
hardcode_minus_L_GCJ=yes
19109
# see comment about different semantics on the GNU ld section
19114
export_dynamic_flag_spec_GCJ=-rdynamic
19117
cygwin* | mingw* | pw32*)
19118
# When not using gcc, we currently assume that we are using
19119
# Microsoft Visual C++.
19120
# hardcode_libdir_flag_spec is actually meaningless, as there is
19121
# no search path for DLLs.
19122
hardcode_libdir_flag_spec_GCJ=' '
19123
allow_undefined_flag_GCJ=unsupported
19124
# Tell ltmain to make .lib files, not .a files.
19126
# Tell ltmain to make .dll files, not .so files.
19128
# FIXME: Setting linknames here is a bad hack.
19129
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19130
# The linker will automatically build a .lib file if we build a DLL.
19131
old_archive_From_new_cmds_GCJ='true'
19132
# FIXME: Should let the user specify the lib program.
19133
old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
19134
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
19135
enable_shared_with_static_runtimes_GCJ=yes
19138
darwin* | rhapsody*)
19140
rhapsody* | darwin1.[012])
19141
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
19144
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19145
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19147
case ${MACOSX_DEPLOYMENT_TARGET} in
19149
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19152
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
19158
archive_cmds_need_lc_GCJ=no
19159
hardcode_direct_GCJ=no
19160
hardcode_automatic_GCJ=yes
19161
hardcode_shlibpath_var_GCJ=unsupported
19162
whole_archive_flag_spec_GCJ=''
19163
link_all_deplibs_GCJ=yes
19164
if test "$GCC" = yes ; then
19165
output_verbose_link_cmd='echo'
19166
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}"
19167
module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19168
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}"
19169
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}"
19171
case $cc_basename in
19173
output_verbose_link_cmd='echo'
19174
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
19175
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19176
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19177
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}'
19178
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}'
19188
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19189
hardcode_libdir_flag_spec_GCJ='-L$libdir'
19190
hardcode_shlibpath_var_GCJ=no
19197
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19198
# support. Future versions do this automatically, but an explicit c++rt0.o
19199
# does not break anything, and helps significantly (at the cost of a little
19202
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19203
hardcode_libdir_flag_spec_GCJ='-R$libdir'
19204
hardcode_direct_GCJ=yes
19205
hardcode_shlibpath_var_GCJ=no
19208
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
19210
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19211
hardcode_direct_GCJ=yes
19212
hardcode_minus_L_GCJ=yes
19213
hardcode_shlibpath_var_GCJ=no
19216
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19217
freebsd* | dragonfly*)
19218
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19219
hardcode_libdir_flag_spec_GCJ='-R$libdir'
19220
hardcode_direct_GCJ=yes
19221
hardcode_shlibpath_var_GCJ=no
19225
if test "$GCC" = yes; then
19226
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'
19228
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'
19230
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19231
hardcode_libdir_separator_GCJ=:
19232
hardcode_direct_GCJ=yes
19234
# hardcode_minus_L: Not really in the search PATH,
19235
# but as the default location of the library.
19236
hardcode_minus_L_GCJ=yes
19237
export_dynamic_flag_spec_GCJ='${wl}-E'
19241
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19242
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19244
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19246
if test "$with_gnu_ld" = no; then
19247
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19248
hardcode_libdir_separator_GCJ=:
19250
hardcode_direct_GCJ=yes
19251
export_dynamic_flag_spec_GCJ='${wl}-E'
19253
# hardcode_minus_L: Not really in the search PATH,
19254
# but as the default location of the library.
19255
hardcode_minus_L_GCJ=yes
19260
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19263
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19266
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19269
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19275
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19278
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19281
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19285
if test "$with_gnu_ld" = no; then
19286
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19287
hardcode_libdir_separator_GCJ=:
19291
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19292
hardcode_direct_GCJ=no
19293
hardcode_shlibpath_var_GCJ=no
19296
hardcode_direct_GCJ=yes
19297
export_dynamic_flag_spec_GCJ='${wl}-E'
19299
# hardcode_minus_L: Not really in the search PATH,
19300
# but as the default location of the library.
19301
hardcode_minus_L_GCJ=yes
19307
irix5* | irix6* | nonstopux*)
19308
if test "$GCC" = yes; then
19309
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'
19311
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'
19312
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19314
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19315
hardcode_libdir_separator_GCJ=:
19316
link_all_deplibs_GCJ=yes
19320
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19321
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19323
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19325
hardcode_libdir_flag_spec_GCJ='-R$libdir'
19326
hardcode_direct_GCJ=yes
19327
hardcode_shlibpath_var_GCJ=no
19331
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19332
hardcode_direct_GCJ=yes
19333
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19334
hardcode_libdir_separator_GCJ=:
19335
hardcode_shlibpath_var_GCJ=no
19339
if test -f /usr/libexec/ld.so; then
19340
hardcode_direct_GCJ=yes
19341
hardcode_shlibpath_var_GCJ=no
19342
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19343
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19344
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19345
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19346
export_dynamic_flag_spec_GCJ='${wl}-E'
19349
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19350
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19351
hardcode_libdir_flag_spec_GCJ='-R$libdir'
19354
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19355
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19365
hardcode_libdir_flag_spec_GCJ='-L$libdir'
19366
hardcode_minus_L_GCJ=yes
19367
allow_undefined_flag_GCJ=unsupported
19368
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'
19369
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19373
if test "$GCC" = yes; then
19374
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19375
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'
19377
allow_undefined_flag_GCJ=' -expect_unresolved \*'
19378
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'
19380
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19381
hardcode_libdir_separator_GCJ=:
19384
osf4* | osf5*) # as osf3* with the addition of -msym flag
19385
if test "$GCC" = yes; then
19386
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19387
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'
19388
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19390
allow_undefined_flag_GCJ=' -expect_unresolved \*'
19391
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'
19392
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~
19393
$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'
19395
# Both c and cxx compiler support -rpath directly
19396
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19398
hardcode_libdir_separator_GCJ=:
19402
no_undefined_flag_GCJ=' -z text'
19403
if test "$GCC" = yes; then
19405
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19406
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19407
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19410
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19411
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19412
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19414
hardcode_libdir_flag_spec_GCJ='-R$libdir'
19415
hardcode_shlibpath_var_GCJ=no
19417
solaris2.[0-5] | solaris2.[0-5].*) ;;
19419
# The compiler driver will combine and reorder linker options,
19420
# but understands `-z linker_flag'. GCC discards it without `$wl',
19421
# but is careful enough not to reorder.
19422
# Supported since Solaris 2.6 (maybe 2.5.1?)
19423
if test "$GCC" = yes; then
19424
whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19426
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
19430
link_all_deplibs_GCJ=yes
19434
if test "x$host_vendor" = xsequent; then
19435
# Use $CC to link under sequent, because it throws in some extra .o
19436
# files that make .init and .fini sections work.
19437
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19439
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19441
hardcode_libdir_flag_spec_GCJ='-L$libdir'
19442
hardcode_direct_GCJ=yes
19443
hardcode_minus_L_GCJ=yes
19444
hardcode_shlibpath_var_GCJ=no
19448
case $host_vendor in
19450
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19451
hardcode_direct_GCJ=yes # is this really true???
19454
## LD is ld it makes a PLAMLIB
19455
## CC just makes a GrossModule.
19456
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19457
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19458
hardcode_direct_GCJ=no
19461
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19462
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19465
runpath_var='LD_RUN_PATH'
19466
hardcode_shlibpath_var_GCJ=no
19470
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19471
hardcode_shlibpath_var_GCJ=no
19472
export_dynamic_flag_spec_GCJ='-Bexport'
19476
if test -d /usr/nec; then
19477
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19478
hardcode_shlibpath_var_GCJ=no
19479
runpath_var=LD_RUN_PATH
19480
hardcode_runpath_var=yes
19485
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19486
no_undefined_flag_GCJ='${wl}-z,text'
19487
archive_cmds_need_lc_GCJ=no
19488
hardcode_shlibpath_var_GCJ=no
19489
runpath_var='LD_RUN_PATH'
19491
if test "$GCC" = yes; then
19492
archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19493
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19495
archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19496
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19500
sysv5* | sco3.2v5* | sco5v6*)
19501
# Note: We can NOT use -z defs as we might desire, because we do not
19502
# link with -lc, and that would cause any symbols used from libc to
19503
# always be unresolved, which means just about no library would
19504
# ever link correctly. If we're not using GNU ld we use -z text
19505
# though, which does catch some bad symbols but isn't as heavy-handed
19507
no_undefined_flag_GCJ='${wl}-z,text'
19508
allow_undefined_flag_GCJ='${wl}-z,nodefs'
19509
archive_cmds_need_lc_GCJ=no
19510
hardcode_shlibpath_var_GCJ=no
19511
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19512
hardcode_libdir_separator_GCJ=':'
19513
link_all_deplibs_GCJ=yes
19514
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19515
runpath_var='LD_RUN_PATH'
19517
if test "$GCC" = yes; then
19518
archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19519
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19521
archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19522
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19527
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19528
hardcode_libdir_flag_spec_GCJ='-L$libdir'
19529
hardcode_shlibpath_var_GCJ=no
19538
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19539
$as_echo "$ld_shlibs_GCJ" >&6; }
19540
test "$ld_shlibs_GCJ" = no && can_build_shared=no
19543
# Do we need to explicitly link libc?
19545
case "x$archive_cmds_need_lc_GCJ" in
19547
# Assume -lc should be added
19548
archive_cmds_need_lc_GCJ=yes
19550
if test "$enable_shared" = yes && test "$GCC" = yes; then
19551
case $archive_cmds_GCJ in
19553
# FIXME: we may have to deal with multi-command sequences.
19556
# Test whether the compiler implicitly links with -lc since on some
19557
# systems, -lgcc has to come before -lc. If gcc already passes -lc
19558
# to ld, don't add -lc before -lgcc.
19559
{ $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19560
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
19562
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19564
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19565
(eval $ac_compile) 2>&5
19567
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19568
(exit $ac_status); } 2>conftest.err; then
19571
libobjs=conftest.$ac_objext
19573
wl=$lt_prog_compiler_wl_GCJ
19574
pic_flag=$lt_prog_compiler_pic_GCJ
19580
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19581
allow_undefined_flag_GCJ=
19582
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19583
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19585
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19586
(exit $ac_status); }
19588
archive_cmds_need_lc_GCJ=no
19590
archive_cmds_need_lc_GCJ=yes
19592
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19594
cat conftest.err 1>&5
19597
{ $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19598
$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
19605
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19606
$as_echo_n "checking dynamic linker characteristics... " >&6; }
19607
library_names_spec=
19608
libname_spec='lib$name'
19612
postuninstall_cmds=
19616
shlibpath_overrides_runpath=unknown
19618
dynamic_linker="$host_os ld.so"
19619
sys_lib_dlsearch_path_spec="/lib /usr/lib"
19621
need_lib_prefix=unknown
19622
hardcode_into_libs=no
19624
# when you set need_version to no, make sure it does not cause -set_version
19625
# flags to be left without arguments
19626
need_version=unknown
19631
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19632
shlibpath_var=LIBPATH
19634
# AIX 3 has no versioning support, so we append a major version to the name.
19635
soname_spec='${libname}${release}${shared_ext}$major'
19642
hardcode_into_libs=yes
19643
if test "$host_cpu" = ia64; then
19644
# AIX 5 supports IA64
19645
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19646
shlibpath_var=LD_LIBRARY_PATH
19648
# With GCC up to 2.95.x, collect2 would create an import file
19649
# for dependence libraries. The import file would start with
19650
# the line `#! .'. This would cause the generated library to
19651
# depend on `.', always an invalid library. This was fixed in
19652
# development snapshots of GCC prior to 3.0.
19654
aix4 | aix4.[01] | aix4.[01].*)
19655
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19657
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19660
can_build_shared=no
19664
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19665
# soname into executable. Probably we can add versioning support to
19666
# collect2, so additional links can be useful in future.
19667
if test "$aix_use_runtimelinking" = yes; then
19668
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
19669
# instead of lib<name>.a to let people know that these are not
19670
# typical AIX shared libraries.
19671
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19673
# We preserve .a as extension for shared libraries through AIX4.2
19674
# and later when we are not doing run time linking.
19675
library_names_spec='${libname}${release}.a $libname.a'
19676
soname_spec='${libname}${release}${shared_ext}$major'
19678
shlibpath_var=LIBPATH
19683
library_names_spec='$libname.ixlibrary $libname.a'
19684
# Create ${libname}_ixlibrary.a entries in /sys/libs.
19685
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'
19689
library_names_spec='${libname}${shared_ext}'
19690
dynamic_linker="$host_os ld.so"
19691
shlibpath_var=LIBRARY_PATH
19697
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19698
soname_spec='${libname}${release}${shared_ext}$major'
19699
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19700
shlibpath_var=LD_LIBRARY_PATH
19701
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19702
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19703
# the default ld.so.conf also contains /usr/contrib/lib and
19704
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19705
# libtool to hard-code these into programs
19708
cygwin* | mingw* | pw32*)
19709
version_type=windows
19714
case $GCC,$host_os in
19715
yes,cygwin* | yes,mingw* | yes,pw32*)
19716
library_names_spec='$libname.dll.a'
19717
# DLL is installed to $(libdir)/../bin by postinstall_cmds
19718
postinstall_cmds='base_file=`basename \${file}`~
19719
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19720
dldir=$destdir/`dirname \$dlpath`~
19721
test -d \$dldir || mkdir -p \$dldir~
19722
$install_prog $dir/$dlname \$dldir/$dlname~
19723
chmod a+x \$dldir/$dlname'
19724
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19725
dlpath=$dir/\$dldll~
19727
shlibpath_overrides_runpath=yes
19731
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
19732
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19733
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19736
# MinGW DLLs use traditional 'lib' prefix
19737
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19738
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19739
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19740
# It is most probably a Windows format PATH printed by
19741
# mingw gcc, but we are running on Cygwin. Gcc prints its search
19742
# path with ; separators, and with drive letters. We can handle the
19743
# drive letters (cygwin fileutils understands them), so leave them,
19744
# especially as we might pass files found there to a mingw objdump,
19745
# which wouldn't understand a cygwinified path. Ahh.
19746
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19748
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19752
# pw32 DLLs use 'pw' prefix rather than 'lib'
19753
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19759
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19762
dynamic_linker='Win32 ld.exe'
19763
# FIXME: first we should search . and the directory the executable is in
19767
darwin* | rhapsody*)
19768
dynamic_linker="$host_os dyld"
19769
version_type=darwin
19772
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19773
soname_spec='${libname}${release}${major}$shared_ext'
19774
shlibpath_overrides_runpath=yes
19775
shlibpath_var=DYLD_LIBRARY_PATH
19776
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19778
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19785
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19786
soname_spec='${libname}${release}${shared_ext}$major'
19787
shlibpath_var=LD_LIBRARY_PATH
19794
freebsd* | dragonfly*)
19795
# DragonFly does not have aout. When/if they implement a new
19796
# versioning mechanism, adjust this.
19797
if test -x /usr/bin/objformat; then
19798
objformat=`/usr/bin/objformat`
19801
freebsd[123]*) objformat=aout ;;
19802
*) objformat=elf ;;
19805
version_type=freebsd-$objformat
19806
case $version_type in
19808
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19813
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19817
shlibpath_var=LD_LIBRARY_PATH
19820
shlibpath_overrides_runpath=yes
19822
freebsd3.[01]* | freebsdelf3.[01]*)
19823
shlibpath_overrides_runpath=yes
19824
hardcode_into_libs=yes
19826
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19827
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19828
shlibpath_overrides_runpath=no
19829
hardcode_into_libs=yes
19831
*) # from 4.6 on, and DragonFly
19832
shlibpath_overrides_runpath=yes
19833
hardcode_into_libs=yes
19842
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19843
soname_spec='${libname}${release}${shared_ext}$major'
19844
shlibpath_var=LD_LIBRARY_PATH
19845
hardcode_into_libs=yes
19848
hpux9* | hpux10* | hpux11*)
19849
# Give a soname corresponding to the major version so that dld.sl refuses to
19850
# link against other versions.
19857
hardcode_into_libs=yes
19858
dynamic_linker="$host_os dld.so"
19859
shlibpath_var=LD_LIBRARY_PATH
19860
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19861
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19862
soname_spec='${libname}${release}${shared_ext}$major'
19863
if test "X$HPUX_IA64_MODE" = X32; then
19864
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19866
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19868
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19872
hardcode_into_libs=yes
19873
dynamic_linker="$host_os dld.sl"
19874
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19875
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19876
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19877
soname_spec='${libname}${release}${shared_ext}$major'
19878
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19879
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19883
dynamic_linker="$host_os dld.sl"
19884
shlibpath_var=SHLIB_PATH
19885
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19886
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19887
soname_spec='${libname}${release}${shared_ext}$major'
19890
# HP-UX runs *really* slowly unless shared libraries are mode 555.
19891
postinstall_cmds='chmod 555 $lib'
19898
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19899
soname_spec='${libname}${release}${shared_ext}$major'
19900
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19901
shlibpath_var=LD_LIBRARY_PATH
19902
shlibpath_overrides_runpath=no
19903
hardcode_into_libs=yes
19906
irix5* | irix6* | nonstopux*)
19908
nonstopux*) version_type=nonstopux ;;
19910
if test "$lt_cv_prog_gnu_ld" = yes; then
19918
soname_spec='${libname}${release}${shared_ext}$major'
19919
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19921
irix5* | nonstopux*)
19922
libsuff= shlibsuff=
19925
case $LD in # libtool.m4 will add one of these switches to LD
19926
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19927
libsuff= shlibsuff= libmagic=32-bit;;
19928
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19929
libsuff=32 shlibsuff=N32 libmagic=N32;;
19930
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19931
libsuff=64 shlibsuff=64 libmagic=64-bit;;
19932
*) libsuff= shlibsuff= libmagic=never-match;;
19936
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19937
shlibpath_overrides_runpath=no
19938
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19939
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19940
hardcode_into_libs=yes
19943
# No shared lib support for Linux oldld, aout, or coff.
19944
linux*oldld* | linux*aout* | linux*coff*)
19948
# This must be Linux ELF.
19949
linux* | k*bsd*-gnu)
19953
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19954
soname_spec='${libname}${release}${shared_ext}$major'
19955
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19956
shlibpath_var=LD_LIBRARY_PATH
19957
shlibpath_overrides_runpath=no
19958
# This implies no fast_install, which is unacceptable.
19959
# Some rework will be needed to allow for fast_install
19960
# before this can be enabled.
19961
hardcode_into_libs=yes
19963
# Append ld.so.conf contents to the search path
19964
if test -f /etc/ld.so.conf; then
19965
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' ' '`
19966
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19969
# We used to test for /lib/ld.so.1 and disable shared libraries on
19970
# powerpc, because MkLinux only supported shared libraries with the
19971
# GNU dynamic linker. Since this was broken with cross compilers,
19972
# most powerpc-linux boxes support dynamic linking these days and
19973
# people can always --disable-shared, the test was removed, and we
19974
# assume the GNU/Linux dynamic linker is in use.
19975
dynamic_linker='GNU/Linux ld.so'
19982
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19983
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19984
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19985
dynamic_linker='NetBSD (a.out) ld.so'
19987
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19988
soname_spec='${libname}${release}${shared_ext}$major'
19989
dynamic_linker='NetBSD ld.elf_so'
19991
shlibpath_var=LD_LIBRARY_PATH
19992
shlibpath_overrides_runpath=yes
19993
hardcode_into_libs=yes
19998
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19999
shlibpath_var=LD_LIBRARY_PATH
20000
shlibpath_overrides_runpath=yes
20007
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20008
soname_spec='${libname}${release}${shared_ext}$major'
20009
shlibpath_var=LD_LIBRARY_PATH
20010
shlibpath_overrides_runpath=yes
20015
sys_lib_dlsearch_path_spec="/usr/lib"
20017
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20019
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20020
*) need_version=no ;;
20022
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20023
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20024
shlibpath_var=LD_LIBRARY_PATH
20025
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20027
openbsd2.[89] | openbsd2.[89].*)
20028
shlibpath_overrides_runpath=no
20031
shlibpath_overrides_runpath=yes
20035
shlibpath_overrides_runpath=yes
20040
libname_spec='$name'
20043
library_names_spec='$libname${shared_ext} $libname.a'
20044
dynamic_linker='OS/2 ld.exe'
20045
shlibpath_var=LIBPATH
20048
osf3* | osf4* | osf5*)
20052
soname_spec='${libname}${release}${shared_ext}$major'
20053
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20054
shlibpath_var=LD_LIBRARY_PATH
20055
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20056
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20067
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20068
soname_spec='${libname}${release}${shared_ext}$major'
20069
shlibpath_var=LD_LIBRARY_PATH
20070
shlibpath_overrides_runpath=yes
20071
hardcode_into_libs=yes
20072
# ldd complains unless libraries are executable
20073
postinstall_cmds='chmod +x $lib'
20078
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20079
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20080
shlibpath_var=LD_LIBRARY_PATH
20081
shlibpath_overrides_runpath=yes
20082
if test "$with_gnu_ld" = yes; then
20090
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20091
soname_spec='${libname}${release}${shared_ext}$major'
20092
shlibpath_var=LD_LIBRARY_PATH
20093
case $host_vendor in
20095
shlibpath_overrides_runpath=no
20097
export_dynamic_flag_spec='${wl}-Blargedynsym'
20098
runpath_var=LD_RUN_PATH
20106
shlibpath_overrides_runpath=no
20107
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20113
if test -d /usr/nec ;then
20115
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20116
soname_spec='$libname${shared_ext}.$major'
20117
shlibpath_var=LD_LIBRARY_PATH
20121
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20122
version_type=freebsd-elf
20125
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20126
soname_spec='${libname}${release}${shared_ext}$major'
20127
shlibpath_var=LD_LIBRARY_PATH
20128
hardcode_into_libs=yes
20129
if test "$with_gnu_ld" = yes; then
20130
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20131
shlibpath_overrides_runpath=no
20133
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20134
shlibpath_overrides_runpath=yes
20137
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20141
sys_lib_dlsearch_path_spec='/usr/lib'
20146
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20147
soname_spec='${libname}${release}${shared_ext}$major'
20148
shlibpath_var=LD_LIBRARY_PATH
20155
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20156
$as_echo "$dynamic_linker" >&6; }
20157
test "$dynamic_linker" = no && can_build_shared=no
20159
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20160
$as_echo_n "(cached) " >&6
20162
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
20165
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20166
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20167
$as_echo_n "(cached) " >&6
20169
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
20172
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20174
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20175
if test "$GCC" = yes; then
20176
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20179
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20180
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20181
hardcode_action_GCJ=
20182
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20183
test -n "$runpath_var_GCJ" || \
20184
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20186
# We can hardcode non-existant directories.
20187
if test "$hardcode_direct_GCJ" != no &&
20188
# If the only mechanism to avoid hardcoding is shlibpath_var, we
20189
# have to relink, otherwise we might link with an installed library
20190
# when we should be linking with a yet-to-be-installed one
20191
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20192
test "$hardcode_minus_L_GCJ" != no; then
20193
# Linking always hardcodes the temporary library directory.
20194
hardcode_action_GCJ=relink
20196
# We can link without hardcoding, and we can hardcode nonexisting dirs.
20197
hardcode_action_GCJ=immediate
20200
# We cannot hardcode anything, or else we can only hardcode existing
20202
hardcode_action_GCJ=unsupported
20204
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20205
$as_echo "$hardcode_action_GCJ" >&6; }
20207
if test "$hardcode_action_GCJ" = relink; then
20208
# Fast installation is not supported
20209
enable_fast_install=no
20210
elif test "$shlibpath_overrides_runpath" = yes ||
20211
test "$enable_shared" = no; then
20212
# Fast installation is not necessary
20213
enable_fast_install=needless
20217
# The else clause should only fire when bootstrapping the
20218
# libtool distribution, otherwise you forgot to ship ltmain.sh
20219
# with your package, and you will get complaints that there are
20220
# no rules to generate ltmain.sh.
20221
if test -f "$ltmain"; then
20222
# See if we are running on zsh, and set the options which allow our commands through
20223
# without removal of \ escapes.
20224
if test -n "${ZSH_VERSION+set}" ; then
20225
setopt NO_GLOB_SUBST
20227
# Now quote all the things that may contain metacharacters while being
20228
# careful not to overquote the AC_SUBSTed values. We take copies of the
20229
# variables and quote the copies for generation of the libtool script.
20230
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20232
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20233
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20234
deplibs_check_method reload_flag reload_cmds need_locks \
20235
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20236
lt_cv_sys_global_symbol_to_c_name_address \
20237
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20238
old_postinstall_cmds old_postuninstall_cmds \
20242
lt_prog_compiler_wl_GCJ \
20243
lt_prog_compiler_pic_GCJ \
20244
lt_prog_compiler_static_GCJ \
20245
lt_prog_compiler_no_builtin_flag_GCJ \
20246
export_dynamic_flag_spec_GCJ \
20247
thread_safe_flag_spec_GCJ \
20248
whole_archive_flag_spec_GCJ \
20249
enable_shared_with_static_runtimes_GCJ \
20250
old_archive_cmds_GCJ \
20251
old_archive_from_new_cmds_GCJ \
20252
predep_objects_GCJ \
20253
postdep_objects_GCJ \
20256
compiler_lib_search_path_GCJ \
20257
compiler_lib_search_dirs_GCJ \
20259
archive_expsym_cmds_GCJ \
20260
postinstall_cmds_GCJ \
20261
postuninstall_cmds_GCJ \
20262
old_archive_from_expsyms_cmds_GCJ \
20263
allow_undefined_flag_GCJ \
20264
no_undefined_flag_GCJ \
20265
export_symbols_cmds_GCJ \
20266
hardcode_libdir_flag_spec_GCJ \
20267
hardcode_libdir_flag_spec_ld_GCJ \
20268
hardcode_libdir_separator_GCJ \
20269
hardcode_automatic_GCJ \
20271
module_expsym_cmds_GCJ \
20272
lt_cv_prog_compiler_c_o_GCJ \
20273
fix_srcfile_path_GCJ \
20274
exclude_expsyms_GCJ \
20275
include_expsyms_GCJ; do
20278
old_archive_cmds_GCJ | \
20279
old_archive_from_new_cmds_GCJ | \
20280
archive_cmds_GCJ | \
20281
archive_expsym_cmds_GCJ | \
20282
module_cmds_GCJ | \
20283
module_expsym_cmds_GCJ | \
20284
old_archive_from_expsyms_cmds_GCJ | \
20285
export_symbols_cmds_GCJ | \
20286
extract_expsyms_cmds | reload_cmds | finish_cmds | \
20287
postinstall_cmds | postuninstall_cmds | \
20288
old_postinstall_cmds | old_postuninstall_cmds | \
20289
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20290
# Double-quote double-evaled strings.
20291
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20294
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20300
*'\$0 --fallback-echo"')
20301
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20307
cat <<__EOF__ >> "$cfgfile"
20308
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20310
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20312
# Shell to use when invoking shell scripts.
20315
# Whether or not to build shared libraries.
20316
build_libtool_libs=$enable_shared
20318
# Whether or not to build static libraries.
20319
build_old_libs=$enable_static
20321
# Whether or not to add -lc for building shared libraries.
20322
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20324
# Whether or not to disallow shared libs when runtime libs are static
20325
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20327
# Whether or not to optimize for fast installation.
20328
fast_install=$enable_fast_install
20331
host_alias=$host_alias
20335
# The build system.
20336
build_alias=$build_alias
20340
# An echo program that does not interpret backslashes.
20345
AR_FLAGS=$lt_AR_FLAGS
20350
# LTCC compiler flags.
20351
LTCFLAGS=$lt_LTCFLAGS
20353
# A language-specific compiler.
20354
CC=$lt_compiler_GCJ
20356
# Is the compiler the GNU C compiler?
20362
# The linker used to build libraries.
20365
# Whether we need hard or soft links.
20368
# A BSD-compatible nm program.
20371
# A symbol stripping program
20374
# Used to examine libraries when file_magic_cmd begins "file"
20375
MAGIC_CMD=$MAGIC_CMD
20377
# Used on cygwin: DLL creation program.
20380
# Used on cygwin: object dumper.
20383
# Used on cygwin: assembler.
20386
# The name of the directory that contains temporary libtool files.
20389
# How to create reloadable object files.
20390
reload_flag=$lt_reload_flag
20391
reload_cmds=$lt_reload_cmds
20393
# How to pass a linker flag through the compiler.
20394
wl=$lt_lt_prog_compiler_wl_GCJ
20396
# Object file suffix (normally "o").
20397
objext="$ac_objext"
20399
# Old archive suffix (normally "a").
20402
# Shared library suffix (normally ".so").
20403
shrext_cmds='$shrext_cmds'
20405
# Executable file suffix (normally "").
20408
# Additional compiler flags for building library objects.
20409
pic_flag=$lt_lt_prog_compiler_pic_GCJ
20412
# What is the maximum length of a command?
20413
max_cmd_len=$lt_cv_sys_max_cmd_len
20415
# Does compiler simultaneously support -c and -o options?
20416
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20418
# Must we lock files when doing compilation?
20419
need_locks=$lt_need_locks
20421
# Do we need the lib prefix for modules?
20422
need_lib_prefix=$need_lib_prefix
20424
# Do we need a version for libraries?
20425
need_version=$need_version
20427
# Whether dlopen is supported.
20428
dlopen_support=$enable_dlopen
20430
# Whether dlopen of programs is supported.
20431
dlopen_self=$enable_dlopen_self
20433
# Whether dlopen of statically linked programs is supported.
20434
dlopen_self_static=$enable_dlopen_self_static
20436
# Compiler flag to prevent dynamic linking.
20437
link_static_flag=$lt_lt_prog_compiler_static_GCJ
20439
# Compiler flag to turn off builtin functions.
20440
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20442
# Compiler flag to allow reflexive dlopens.
20443
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20445
# Compiler flag to generate shared objects directly from archives.
20446
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20448
# Compiler flag to generate thread-safe objects.
20449
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20451
# Library versioning type.
20452
version_type=$version_type
20454
# Format of library name prefix.
20455
libname_spec=$lt_libname_spec
20457
# List of archive names. First name is the real one, the rest are links.
20458
# The last name is the one that the linker finds with -lNAME.
20459
library_names_spec=$lt_library_names_spec
20461
# The coded name of the library, if different from the real name.
20462
soname_spec=$lt_soname_spec
20464
# Commands used to build and install an old-style archive.
20466
old_archive_cmds=$lt_old_archive_cmds_GCJ
20467
old_postinstall_cmds=$lt_old_postinstall_cmds
20468
old_postuninstall_cmds=$lt_old_postuninstall_cmds
20470
# Create an old-style archive from a shared archive.
20471
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20473
# Create a temporary old-style archive to link instead of a shared archive.
20474
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20476
# Commands used to build and install a shared archive.
20477
archive_cmds=$lt_archive_cmds_GCJ
20478
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20479
postinstall_cmds=$lt_postinstall_cmds
20480
postuninstall_cmds=$lt_postuninstall_cmds
20482
# Commands used to build a loadable module (assumed same as above if empty)
20483
module_cmds=$lt_module_cmds_GCJ
20484
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20486
# Commands to strip libraries.
20487
old_striplib=$lt_old_striplib
20488
striplib=$lt_striplib
20490
# Dependencies to place before the objects being linked to create a
20492
predep_objects=$lt_predep_objects_GCJ
20494
# Dependencies to place after the objects being linked to create a
20496
postdep_objects=$lt_postdep_objects_GCJ
20498
# Dependencies to place before the objects being linked to create a
20500
predeps=$lt_predeps_GCJ
20502
# Dependencies to place after the objects being linked to create a
20504
postdeps=$lt_postdeps_GCJ
20506
# The directories searched by this compiler when creating a shared
20508
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
20510
# The library search path used internally by the compiler when linking
20511
# a shared library.
20512
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20514
# Method to check whether dependent libraries are shared objects.
20515
deplibs_check_method=$lt_deplibs_check_method
20517
# Command to use when deplibs_check_method == file_magic.
20518
file_magic_cmd=$lt_file_magic_cmd
20520
# Flag that allows shared libraries with undefined symbols to be built.
20521
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20523
# Flag that forces no undefined symbols.
20524
no_undefined_flag=$lt_no_undefined_flag_GCJ
20526
# Commands used to finish a libtool library installation in a directory.
20527
finish_cmds=$lt_finish_cmds
20529
# Same as above, but a single script fragment to be evaled but not shown.
20530
finish_eval=$lt_finish_eval
20532
# Take the output of nm and produce a listing of raw symbols and C names.
20533
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20535
# Transform the output of nm in a proper C declaration
20536
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20538
# Transform the output of nm in a C name address pair
20539
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20541
# This is the shared library runtime path variable.
20542
runpath_var=$runpath_var
20544
# This is the shared library path variable.
20545
shlibpath_var=$shlibpath_var
20547
# Is shlibpath searched before the hard-coded library search path?
20548
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20550
# How to hardcode a shared library path into an executable.
20551
hardcode_action=$hardcode_action_GCJ
20553
# Whether we should hardcode library paths into libraries.
20554
hardcode_into_libs=$hardcode_into_libs
20556
# Flag to hardcode \$libdir into a binary during linking.
20557
# This must work even if \$libdir does not exist.
20558
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20560
# If ld is used when linking, flag to hardcode \$libdir into
20561
# a binary during linking. This must work even if \$libdir does
20563
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20565
# Whether we need a single -rpath flag with a separated argument.
20566
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20568
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20569
# resulting binary.
20570
hardcode_direct=$hardcode_direct_GCJ
20572
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20573
# resulting binary.
20574
hardcode_minus_L=$hardcode_minus_L_GCJ
20576
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20577
# the resulting binary.
20578
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20580
# Set to yes if building a shared library automatically hardcodes DIR into the library
20581
# and all subsequent libraries and executables linked against it.
20582
hardcode_automatic=$hardcode_automatic_GCJ
20584
# Variables whose values should be saved in libtool wrapper scripts and
20585
# restored at relink time.
20586
variables_saved_for_relink="$variables_saved_for_relink"
20588
# Whether libtool must link a program against all its dependency libraries.
20589
link_all_deplibs=$link_all_deplibs_GCJ
20591
# Compile-time system search path for libraries
20592
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20594
# Run-time system search path for libraries
20595
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20597
# Fix the shell variable \$srcfile for the compiler.
20598
fix_srcfile_path=$lt_fix_srcfile_path
20600
# Set to yes if exported symbols are required.
20601
always_export_symbols=$always_export_symbols_GCJ
20603
# The commands to list exported symbols.
20604
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20606
# The commands to extract the exported symbol list from a shared archive.
20607
extract_expsyms_cmds=$lt_extract_expsyms_cmds
20609
# Symbols that should not be listed in the preloaded symbols.
20610
exclude_expsyms=$lt_exclude_expsyms_GCJ
20612
# Symbols that must always be exported.
20613
include_expsyms=$lt_include_expsyms_GCJ
20615
# ### END LIBTOOL TAG CONFIG: $tagname
20621
# If there is no Makefile yet, we rely on a make rule to execute
20622
# `config.status --recheck' to rerun these tests and create the
20623
# libtool script then.
20624
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20625
if test -f "$ltmain_in"; then
20626
test -f Makefile && make "$ltmain"
20632
ac_cpp='$CPP $CPPFLAGS'
20633
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20634
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20635
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20647
# Source file extension for RC test sources.
20650
# Object file extension for compiled RC test sources.
20654
# Code to be used in simple compile tests
20655
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
20657
# Code to be used in simple link tests
20658
lt_simple_link_test_code="$lt_simple_compile_test_code"
20660
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20662
# If no C compiler was specified, use CC.
20665
# If no C compiler flags were specified, use CFLAGS.
20666
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20668
# Allow CC to be a program name with arguments.
20672
# save warnings/boilerplate of simple test code
20673
ac_outfile=conftest.$ac_objext
20674
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
20675
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20676
_lt_compiler_boilerplate=`cat conftest.err`
20679
ac_outfile=conftest.$ac_objext
20680
echo "$lt_simple_link_test_code" >conftest.$ac_ext
20681
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20682
_lt_linker_boilerplate=`cat conftest.err`
20686
# Allow CC to be a program name with arguments.
20691
for cc_temp in $compiler""; do
20693
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20694
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20699
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20701
lt_cv_prog_compiler_c_o_RC=yes
20703
# The else clause should only fire when bootstrapping the
20704
# libtool distribution, otherwise you forgot to ship ltmain.sh
20705
# with your package, and you will get complaints that there are
20706
# no rules to generate ltmain.sh.
20707
if test -f "$ltmain"; then
20708
# See if we are running on zsh, and set the options which allow our commands through
20709
# without removal of \ escapes.
20710
if test -n "${ZSH_VERSION+set}" ; then
20711
setopt NO_GLOB_SUBST
20713
# Now quote all the things that may contain metacharacters while being
20714
# careful not to overquote the AC_SUBSTed values. We take copies of the
20715
# variables and quote the copies for generation of the libtool script.
20716
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20718
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20719
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20720
deplibs_check_method reload_flag reload_cmds need_locks \
20721
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20722
lt_cv_sys_global_symbol_to_c_name_address \
20723
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20724
old_postinstall_cmds old_postuninstall_cmds \
20728
lt_prog_compiler_wl_RC \
20729
lt_prog_compiler_pic_RC \
20730
lt_prog_compiler_static_RC \
20731
lt_prog_compiler_no_builtin_flag_RC \
20732
export_dynamic_flag_spec_RC \
20733
thread_safe_flag_spec_RC \
20734
whole_archive_flag_spec_RC \
20735
enable_shared_with_static_runtimes_RC \
20736
old_archive_cmds_RC \
20737
old_archive_from_new_cmds_RC \
20738
predep_objects_RC \
20739
postdep_objects_RC \
20742
compiler_lib_search_path_RC \
20743
compiler_lib_search_dirs_RC \
20745
archive_expsym_cmds_RC \
20746
postinstall_cmds_RC \
20747
postuninstall_cmds_RC \
20748
old_archive_from_expsyms_cmds_RC \
20749
allow_undefined_flag_RC \
20750
no_undefined_flag_RC \
20751
export_symbols_cmds_RC \
20752
hardcode_libdir_flag_spec_RC \
20753
hardcode_libdir_flag_spec_ld_RC \
20754
hardcode_libdir_separator_RC \
20755
hardcode_automatic_RC \
20757
module_expsym_cmds_RC \
20758
lt_cv_prog_compiler_c_o_RC \
20759
fix_srcfile_path_RC \
20760
exclude_expsyms_RC \
20761
include_expsyms_RC; do
20764
old_archive_cmds_RC | \
20765
old_archive_from_new_cmds_RC | \
20766
archive_cmds_RC | \
20767
archive_expsym_cmds_RC | \
20769
module_expsym_cmds_RC | \
20770
old_archive_from_expsyms_cmds_RC | \
20771
export_symbols_cmds_RC | \
20772
extract_expsyms_cmds | reload_cmds | finish_cmds | \
20773
postinstall_cmds | postuninstall_cmds | \
20774
old_postinstall_cmds | old_postuninstall_cmds | \
20775
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20776
# Double-quote double-evaled strings.
20777
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20780
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20786
*'\$0 --fallback-echo"')
20787
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20793
cat <<__EOF__ >> "$cfgfile"
20794
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20796
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20798
# Shell to use when invoking shell scripts.
20801
# Whether or not to build shared libraries.
20802
build_libtool_libs=$enable_shared
20804
# Whether or not to build static libraries.
20805
build_old_libs=$enable_static
20807
# Whether or not to add -lc for building shared libraries.
20808
build_libtool_need_lc=$archive_cmds_need_lc_RC
20810
# Whether or not to disallow shared libs when runtime libs are static
20811
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20813
# Whether or not to optimize for fast installation.
20814
fast_install=$enable_fast_install
20817
host_alias=$host_alias
20821
# The build system.
20822
build_alias=$build_alias
20826
# An echo program that does not interpret backslashes.
20831
AR_FLAGS=$lt_AR_FLAGS
20836
# LTCC compiler flags.
20837
LTCFLAGS=$lt_LTCFLAGS
20839
# A language-specific compiler.
20842
# Is the compiler the GNU C compiler?
20848
# The linker used to build libraries.
20851
# Whether we need hard or soft links.
20854
# A BSD-compatible nm program.
20857
# A symbol stripping program
20860
# Used to examine libraries when file_magic_cmd begins "file"
20861
MAGIC_CMD=$MAGIC_CMD
20863
# Used on cygwin: DLL creation program.
20866
# Used on cygwin: object dumper.
20869
# Used on cygwin: assembler.
20872
# The name of the directory that contains temporary libtool files.
20875
# How to create reloadable object files.
20876
reload_flag=$lt_reload_flag
20877
reload_cmds=$lt_reload_cmds
20879
# How to pass a linker flag through the compiler.
20880
wl=$lt_lt_prog_compiler_wl_RC
20882
# Object file suffix (normally "o").
20883
objext="$ac_objext"
20885
# Old archive suffix (normally "a").
20888
# Shared library suffix (normally ".so").
20889
shrext_cmds='$shrext_cmds'
20891
# Executable file suffix (normally "").
20894
# Additional compiler flags for building library objects.
20895
pic_flag=$lt_lt_prog_compiler_pic_RC
20898
# What is the maximum length of a command?
20899
max_cmd_len=$lt_cv_sys_max_cmd_len
20901
# Does compiler simultaneously support -c and -o options?
20902
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20904
# Must we lock files when doing compilation?
20905
need_locks=$lt_need_locks
20907
# Do we need the lib prefix for modules?
20908
need_lib_prefix=$need_lib_prefix
20910
# Do we need a version for libraries?
20911
need_version=$need_version
20913
# Whether dlopen is supported.
20914
dlopen_support=$enable_dlopen
20916
# Whether dlopen of programs is supported.
20917
dlopen_self=$enable_dlopen_self
20919
# Whether dlopen of statically linked programs is supported.
20920
dlopen_self_static=$enable_dlopen_self_static
20922
# Compiler flag to prevent dynamic linking.
20923
link_static_flag=$lt_lt_prog_compiler_static_RC
20925
# Compiler flag to turn off builtin functions.
20926
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20928
# Compiler flag to allow reflexive dlopens.
20929
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20931
# Compiler flag to generate shared objects directly from archives.
20932
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20934
# Compiler flag to generate thread-safe objects.
20935
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20937
# Library versioning type.
20938
version_type=$version_type
20940
# Format of library name prefix.
20941
libname_spec=$lt_libname_spec
20943
# List of archive names. First name is the real one, the rest are links.
20944
# The last name is the one that the linker finds with -lNAME.
20945
library_names_spec=$lt_library_names_spec
20947
# The coded name of the library, if different from the real name.
20948
soname_spec=$lt_soname_spec
20950
# Commands used to build and install an old-style archive.
20952
old_archive_cmds=$lt_old_archive_cmds_RC
20953
old_postinstall_cmds=$lt_old_postinstall_cmds
20954
old_postuninstall_cmds=$lt_old_postuninstall_cmds
20956
# Create an old-style archive from a shared archive.
20957
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20959
# Create a temporary old-style archive to link instead of a shared archive.
20960
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20962
# Commands used to build and install a shared archive.
20963
archive_cmds=$lt_archive_cmds_RC
20964
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20965
postinstall_cmds=$lt_postinstall_cmds
20966
postuninstall_cmds=$lt_postuninstall_cmds
20968
# Commands used to build a loadable module (assumed same as above if empty)
20969
module_cmds=$lt_module_cmds_RC
20970
module_expsym_cmds=$lt_module_expsym_cmds_RC
20972
# Commands to strip libraries.
20973
old_striplib=$lt_old_striplib
20974
striplib=$lt_striplib
20976
# Dependencies to place before the objects being linked to create a
20978
predep_objects=$lt_predep_objects_RC
20980
# Dependencies to place after the objects being linked to create a
20982
postdep_objects=$lt_postdep_objects_RC
20984
# Dependencies to place before the objects being linked to create a
20986
predeps=$lt_predeps_RC
20988
# Dependencies to place after the objects being linked to create a
20990
postdeps=$lt_postdeps_RC
20992
# The directories searched by this compiler when creating a shared
20994
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
20996
# The library search path used internally by the compiler when linking
20997
# a shared library.
20998
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
21000
# Method to check whether dependent libraries are shared objects.
21001
deplibs_check_method=$lt_deplibs_check_method
21003
# Command to use when deplibs_check_method == file_magic.
21004
file_magic_cmd=$lt_file_magic_cmd
21006
# Flag that allows shared libraries with undefined symbols to be built.
21007
allow_undefined_flag=$lt_allow_undefined_flag_RC
21009
# Flag that forces no undefined symbols.
21010
no_undefined_flag=$lt_no_undefined_flag_RC
21012
# Commands used to finish a libtool library installation in a directory.
21013
finish_cmds=$lt_finish_cmds
21015
# Same as above, but a single script fragment to be evaled but not shown.
21016
finish_eval=$lt_finish_eval
21018
# Take the output of nm and produce a listing of raw symbols and C names.
21019
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21021
# Transform the output of nm in a proper C declaration
21022
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21024
# Transform the output of nm in a C name address pair
21025
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21027
# This is the shared library runtime path variable.
21028
runpath_var=$runpath_var
21030
# This is the shared library path variable.
21031
shlibpath_var=$shlibpath_var
21033
# Is shlibpath searched before the hard-coded library search path?
21034
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21036
# How to hardcode a shared library path into an executable.
21037
hardcode_action=$hardcode_action_RC
21039
# Whether we should hardcode library paths into libraries.
21040
hardcode_into_libs=$hardcode_into_libs
21042
# Flag to hardcode \$libdir into a binary during linking.
21043
# This must work even if \$libdir does not exist.
21044
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
21046
# If ld is used when linking, flag to hardcode \$libdir into
21047
# a binary during linking. This must work even if \$libdir does
21049
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
21051
# Whether we need a single -rpath flag with a separated argument.
21052
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
21054
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21055
# resulting binary.
21056
hardcode_direct=$hardcode_direct_RC
21058
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21059
# resulting binary.
21060
hardcode_minus_L=$hardcode_minus_L_RC
21062
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21063
# the resulting binary.
21064
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
21066
# Set to yes if building a shared library automatically hardcodes DIR into the library
21067
# and all subsequent libraries and executables linked against it.
21068
hardcode_automatic=$hardcode_automatic_RC
21070
# Variables whose values should be saved in libtool wrapper scripts and
21071
# restored at relink time.
21072
variables_saved_for_relink="$variables_saved_for_relink"
21074
# Whether libtool must link a program against all its dependency libraries.
21075
link_all_deplibs=$link_all_deplibs_RC
21077
# Compile-time system search path for libraries
21078
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21080
# Run-time system search path for libraries
21081
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21083
# Fix the shell variable \$srcfile for the compiler.
21084
fix_srcfile_path=$lt_fix_srcfile_path
21086
# Set to yes if exported symbols are required.
21087
always_export_symbols=$always_export_symbols_RC
21089
# The commands to list exported symbols.
21090
export_symbols_cmds=$lt_export_symbols_cmds_RC
21092
# The commands to extract the exported symbol list from a shared archive.
21093
extract_expsyms_cmds=$lt_extract_expsyms_cmds
21095
# Symbols that should not be listed in the preloaded symbols.
21096
exclude_expsyms=$lt_exclude_expsyms_RC
21098
# Symbols that must always be exported.
21099
include_expsyms=$lt_include_expsyms_RC
21101
# ### END LIBTOOL TAG CONFIG: $tagname
21107
# If there is no Makefile yet, we rely on a make rule to execute
21108
# `config.status --recheck' to rerun these tests and create the
21109
# libtool script then.
21110
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21111
if test -f "$ltmain_in"; then
21112
test -f Makefile && make "$ltmain"
21118
ac_cpp='$CPP $CPPFLAGS'
21119
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21120
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21121
ac_compiler_gnu=$ac_cv_c_compiler_gnu
21128
{ { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21129
$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21130
{ (exit 1); exit 1; }; }
21134
# Append the new tag name to the list of available tags.
21135
if test -n "$tagname" ; then
21136
available_tags="$available_tags $tagname"
21142
# Now substitute the updated list of available tags.
21143
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21144
mv "${ofile}T" "$ofile"
21148
{ { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21149
$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21150
{ (exit 1); exit 1; }; }
21156
# This can be used to rebuild libtool when needed
21157
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21159
# Always use our own libtool.
21160
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21162
# Prevent multiple expansion
12166
{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12167
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12168
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12169
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12170
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12171
{ $as_echo "$as_me:$LINENO: result: yes" >&5
12172
$as_echo "yes" >&6; }
12174
# FIXME - insert some real tests, host_os isn't really good enough
12177
if test -n "$STRIP" ; then
12178
striplib="$STRIP -x"
12179
old_striplib="$STRIP -S"
12180
{ $as_echo "$as_me:$LINENO: result: yes" >&5
12181
$as_echo "yes" >&6; }
12183
{ $as_echo "$as_me:$LINENO: result: no" >&5
12184
$as_echo "no" >&6; }
12188
{ $as_echo "$as_me:$LINENO: result: no" >&5
12189
$as_echo "no" >&6; }
12205
# Report which library types will actually be built
12206
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12207
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12208
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
12209
$as_echo "$can_build_shared" >&6; }
12211
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12212
$as_echo_n "checking whether to build shared libraries... " >&6; }
12213
test "$can_build_shared" = "no" && enable_shared=no
12215
# On AIX, shared libraries and static libraries use the same namespace, and
12216
# are all built from PIC.
12219
test "$enable_shared" = yes && enable_static=no
12220
if test -n "$RANLIB"; then
12221
archive_cmds="$archive_cmds~\$RANLIB \$lib"
12222
postinstall_cmds='$RANLIB $lib'
12227
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12228
test "$enable_shared" = yes && enable_static=no
12232
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
12233
$as_echo "$enable_shared" >&6; }
12235
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12236
$as_echo_n "checking whether to build static libraries... " >&6; }
12237
# Make sure either enable_shared or enable_static is yes.
12238
test "$enable_shared" = yes || enable_static=yes
12239
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
12240
$as_echo "$enable_static" >&6; }
12247
ac_cpp='$CPP $CPPFLAGS'
12248
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12249
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12250
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12266
ac_config_commands="$ac_config_commands libtool"
12271
# Only expand once: