10800
# Report which library types will actually be built
10801
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10802
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10803
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10804
$as_echo "$can_build_shared" >&6; }
10806
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10807
$as_echo_n "checking whether to build shared libraries... " >&6; }
10808
test "$can_build_shared" = "no" && enable_shared=no
10810
# On AIX, shared libraries and static libraries use the same namespace, and
10811
# are all built from PIC.
10814
test "$enable_shared" = yes && enable_static=no
10815
if test -n "$RANLIB"; then
10816
archive_cmds="$archive_cmds~\$RANLIB \$lib"
10817
postinstall_cmds='$RANLIB $lib'
10822
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10823
test "$enable_shared" = yes && enable_static=no
10827
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10828
$as_echo "$enable_shared" >&6; }
10830
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10831
$as_echo_n "checking whether to build static libraries... " >&6; }
10832
# Make sure either enable_shared or enable_static is yes.
10833
test "$enable_shared" = yes || enable_static=yes
10834
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10835
$as_echo "$enable_static" >&6; }
10837
# The else clause should only fire when bootstrapping the
10838
# libtool distribution, otherwise you forgot to ship ltmain.sh
10839
# with your package, and you will get complaints that there are
10840
# no rules to generate ltmain.sh.
10841
if test -f "$ltmain"; then
10842
# See if we are running on zsh, and set the options which allow our commands through
10843
# without removal of \ escapes.
10844
if test -n "${ZSH_VERSION+set}" ; then
10845
setopt NO_GLOB_SUBST
10847
# Now quote all the things that may contain metacharacters while being
10848
# careful not to overquote the AC_SUBSTed values. We take copies of the
10849
# variables and quote the copies for generation of the libtool script.
10850
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10852
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10853
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10854
deplibs_check_method reload_flag reload_cmds need_locks \
10855
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10856
lt_cv_sys_global_symbol_to_c_name_address \
10857
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10858
old_postinstall_cmds old_postuninstall_cmds \
10862
lt_prog_compiler_wl \
10863
lt_prog_compiler_pic \
10864
lt_prog_compiler_static \
10865
lt_prog_compiler_no_builtin_flag \
10866
export_dynamic_flag_spec \
10867
thread_safe_flag_spec \
10868
whole_archive_flag_spec \
10869
enable_shared_with_static_runtimes \
10871
old_archive_from_new_cmds \
10876
compiler_lib_search_path \
10877
compiler_lib_search_dirs \
10879
archive_expsym_cmds \
10881
postuninstall_cmds \
10882
old_archive_from_expsyms_cmds \
10883
allow_undefined_flag \
10884
no_undefined_flag \
10885
export_symbols_cmds \
10886
hardcode_libdir_flag_spec \
10887
hardcode_libdir_flag_spec_ld \
10888
hardcode_libdir_separator \
10889
hardcode_automatic \
10891
module_expsym_cmds \
10892
lt_cv_prog_compiler_c_o \
10895
include_expsyms; do
10898
old_archive_cmds | \
10899
old_archive_from_new_cmds | \
10901
archive_expsym_cmds | \
10903
module_expsym_cmds | \
10904
old_archive_from_expsyms_cmds | \
10905
export_symbols_cmds | \
10906
extract_expsyms_cmds | reload_cmds | finish_cmds | \
10907
postinstall_cmds | postuninstall_cmds | \
10908
old_postinstall_cmds | old_postuninstall_cmds | \
10909
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10910
# Double-quote double-evaled strings.
10911
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10914
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10920
*'\$0 --fallback-echo"')
10921
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10925
cfgfile="${ofile}T"
10926
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10928
{ $as_echo "$as_me:$LINENO: creating $ofile" >&5
10929
$as_echo "$as_me: creating $ofile" >&6;}
10931
cat <<__EOF__ >> "$cfgfile"
10934
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10935
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10936
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10938
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10939
# Free Software Foundation, Inc.
10941
# This file is part of GNU Libtool:
10942
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10944
# This program is free software; you can redistribute it and/or modify
10945
# it under the terms of the GNU General Public License as published by
10946
# the Free Software Foundation; either version 2 of the License, or
10947
# (at your option) any later version.
10949
# This program is distributed in the hope that it will be useful, but
10950
# WITHOUT ANY WARRANTY; without even the implied warranty of
10951
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10952
# General Public License for more details.
10954
# You should have received a copy of the GNU General Public License
10955
# along with this program; if not, write to the Free Software
10956
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10958
# As a special exception to the GNU General Public License, if you
10959
# distribute this file as part of a program that contains a
10960
# configuration script generated by Autoconf, you may include it under
10961
# the same distribution terms that you use for the rest of that program.
10963
# A sed program that does not truncate output.
10966
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10967
Xsed="$SED -e 1s/^X//"
10969
# The HP-UX ksh and POSIX shell print the target directory to stdout
10970
# if CDPATH is set.
10971
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10973
# The names of the tagged configurations supported by this script.
10976
# ### BEGIN LIBTOOL CONFIG
10978
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10980
# Shell to use when invoking shell scripts.
10983
# Whether or not to build shared libraries.
10984
build_libtool_libs=$enable_shared
10986
# Whether or not to build static libraries.
10987
build_old_libs=$enable_static
10989
# Whether or not to add -lc for building shared libraries.
10990
build_libtool_need_lc=$archive_cmds_need_lc
10992
# Whether or not to disallow shared libs when runtime libs are static
10993
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10995
# Whether or not to optimize for fast installation.
10996
fast_install=$enable_fast_install
10999
host_alias=$host_alias
11003
# The build system.
11004
build_alias=$build_alias
11008
# An echo program that does not interpret backslashes.
11013
AR_FLAGS=$lt_AR_FLAGS
11018
# LTCC compiler flags.
11019
LTCFLAGS=$lt_LTCFLAGS
11021
# A language-specific compiler.
11024
# Is the compiler the GNU C compiler?
11030
# The linker used to build libraries.
11033
# Whether we need hard or soft links.
11036
# A BSD-compatible nm program.
11039
# A symbol stripping program
11042
# Used to examine libraries when file_magic_cmd begins "file"
11043
MAGIC_CMD=$MAGIC_CMD
11045
# Used on cygwin: DLL creation program.
11048
# Used on cygwin: object dumper.
11051
# Used on cygwin: assembler.
11054
# The name of the directory that contains temporary libtool files.
11057
# How to create reloadable object files.
11058
reload_flag=$lt_reload_flag
11059
reload_cmds=$lt_reload_cmds
11061
# How to pass a linker flag through the compiler.
11062
wl=$lt_lt_prog_compiler_wl
11064
# Object file suffix (normally "o").
11065
objext="$ac_objext"
11067
# Old archive suffix (normally "a").
11070
# Shared library suffix (normally ".so").
11071
shrext_cmds='$shrext_cmds'
11073
# Executable file suffix (normally "").
11076
# Additional compiler flags for building library objects.
11077
pic_flag=$lt_lt_prog_compiler_pic
11080
# What is the maximum length of a command?
11081
max_cmd_len=$lt_cv_sys_max_cmd_len
11083
# Does compiler simultaneously support -c and -o options?
11084
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11086
# Must we lock files when doing compilation?
11087
need_locks=$lt_need_locks
11089
# Do we need the lib prefix for modules?
11090
need_lib_prefix=$need_lib_prefix
11092
# Do we need a version for libraries?
11093
need_version=$need_version
11095
# Whether dlopen is supported.
11096
dlopen_support=$enable_dlopen
11098
# Whether dlopen of programs is supported.
11099
dlopen_self=$enable_dlopen_self
11101
# Whether dlopen of statically linked programs is supported.
11102
dlopen_self_static=$enable_dlopen_self_static
11104
# Compiler flag to prevent dynamic linking.
11105
link_static_flag=$lt_lt_prog_compiler_static
11107
# Compiler flag to turn off builtin functions.
11108
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11110
# Compiler flag to allow reflexive dlopens.
11111
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11113
# Compiler flag to generate shared objects directly from archives.
11114
whole_archive_flag_spec=$lt_whole_archive_flag_spec
11116
# Compiler flag to generate thread-safe objects.
11117
thread_safe_flag_spec=$lt_thread_safe_flag_spec
11119
# Library versioning type.
11120
version_type=$version_type
11122
# Format of library name prefix.
11123
libname_spec=$lt_libname_spec
11125
# List of archive names. First name is the real one, the rest are links.
11126
# The last name is the one that the linker finds with -lNAME.
11127
library_names_spec=$lt_library_names_spec
11129
# The coded name of the library, if different from the real name.
11130
soname_spec=$lt_soname_spec
11132
# Commands used to build and install an old-style archive.
11134
old_archive_cmds=$lt_old_archive_cmds
11135
old_postinstall_cmds=$lt_old_postinstall_cmds
11136
old_postuninstall_cmds=$lt_old_postuninstall_cmds
11138
# Create an old-style archive from a shared archive.
11139
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11141
# Create a temporary old-style archive to link instead of a shared archive.
11142
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11144
# Commands used to build and install a shared archive.
11145
archive_cmds=$lt_archive_cmds
11146
archive_expsym_cmds=$lt_archive_expsym_cmds
11147
postinstall_cmds=$lt_postinstall_cmds
11148
postuninstall_cmds=$lt_postuninstall_cmds
11150
# Commands used to build a loadable module (assumed same as above if empty)
11151
module_cmds=$lt_module_cmds
11152
module_expsym_cmds=$lt_module_expsym_cmds
11154
# Commands to strip libraries.
11155
old_striplib=$lt_old_striplib
11156
striplib=$lt_striplib
11158
# Dependencies to place before the objects being linked to create a
11160
predep_objects=$lt_predep_objects
11162
# Dependencies to place after the objects being linked to create a
11164
postdep_objects=$lt_postdep_objects
11166
# Dependencies to place before the objects being linked to create a
11168
predeps=$lt_predeps
11170
# Dependencies to place after the objects being linked to create a
11172
postdeps=$lt_postdeps
11174
# The directories searched by this compiler when creating a shared
11176
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11178
# The library search path used internally by the compiler when linking
11179
# a shared library.
11180
compiler_lib_search_path=$lt_compiler_lib_search_path
11182
# Method to check whether dependent libraries are shared objects.
11183
deplibs_check_method=$lt_deplibs_check_method
11185
# Command to use when deplibs_check_method == file_magic.
11186
file_magic_cmd=$lt_file_magic_cmd
11188
# Flag that allows shared libraries with undefined symbols to be built.
11189
allow_undefined_flag=$lt_allow_undefined_flag
11191
# Flag that forces no undefined symbols.
11192
no_undefined_flag=$lt_no_undefined_flag
11194
# Commands used to finish a libtool library installation in a directory.
11195
finish_cmds=$lt_finish_cmds
11197
# Same as above, but a single script fragment to be evaled but not shown.
11198
finish_eval=$lt_finish_eval
11200
# Take the output of nm and produce a listing of raw symbols and C names.
11201
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11203
# Transform the output of nm in a proper C declaration
11204
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11206
# Transform the output of nm in a C name address pair
11207
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11209
# This is the shared library runtime path variable.
11210
runpath_var=$runpath_var
11212
# This is the shared library path variable.
11213
shlibpath_var=$shlibpath_var
11215
# Is shlibpath searched before the hard-coded library search path?
11216
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11218
# How to hardcode a shared library path into an executable.
11219
hardcode_action=$hardcode_action
11221
# Whether we should hardcode library paths into libraries.
11222
hardcode_into_libs=$hardcode_into_libs
11224
# Flag to hardcode \$libdir into a binary during linking.
11225
# This must work even if \$libdir does not exist.
11226
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11228
# If ld is used when linking, flag to hardcode \$libdir into
11229
# a binary during linking. This must work even if \$libdir does
11231
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11233
# Whether we need a single -rpath flag with a separated argument.
11234
hardcode_libdir_separator=$lt_hardcode_libdir_separator
11236
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11237
# resulting binary.
11238
hardcode_direct=$hardcode_direct
11240
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11241
# resulting binary.
11242
hardcode_minus_L=$hardcode_minus_L
11244
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11245
# the resulting binary.
11246
hardcode_shlibpath_var=$hardcode_shlibpath_var
11248
# Set to yes if building a shared library automatically hardcodes DIR into the library
11249
# and all subsequent libraries and executables linked against it.
11250
hardcode_automatic=$hardcode_automatic
11252
# Variables whose values should be saved in libtool wrapper scripts and
11253
# restored at relink time.
11254
variables_saved_for_relink="$variables_saved_for_relink"
11256
# Whether libtool must link a program against all its dependency libraries.
11257
link_all_deplibs=$link_all_deplibs
11259
# Compile-time system search path for libraries
11260
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11262
# Run-time system search path for libraries
11263
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11265
# Fix the shell variable \$srcfile for the compiler.
11266
fix_srcfile_path=$lt_fix_srcfile_path
11268
# Set to yes if exported symbols are required.
11269
always_export_symbols=$always_export_symbols
11271
# The commands to list exported symbols.
11272
export_symbols_cmds=$lt_export_symbols_cmds
11274
# The commands to extract the exported symbol list from a shared archive.
11275
extract_expsyms_cmds=$lt_extract_expsyms_cmds
11277
# Symbols that should not be listed in the preloaded symbols.
11278
exclude_expsyms=$lt_exclude_expsyms
11280
# Symbols that must always be exported.
11281
include_expsyms=$lt_include_expsyms
11283
# ### END LIBTOOL CONFIG
11290
cat <<\EOF >> "$cfgfile"
11292
# AIX sometimes has problems with the GCC collect2 program. For some
11293
# reason, if we set the COLLECT_NAMES environment variable, the problems
11294
# vanish in a puff of smoke.
11295
if test "X${COLLECT_NAMES+set}" != Xset; then
11297
export COLLECT_NAMES
11303
# We use sed instead of cat because bash on DJGPP gets confused if
11304
# if finds mixed CR/LF and LF-only lines. Since sed operates in
11305
# text mode, it properly converts lines to CR/LF. This bash problem
11306
# is reportedly fixed, but why not run on old versions too?
11307
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11309
mv -f "$cfgfile" "$ofile" || \
11310
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11314
# If there is no Makefile yet, we rely on a make rule to execute
11315
# `config.status --recheck' to rerun these tests and create the
11316
# libtool script then.
11317
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11318
if test -f "$ltmain_in"; then
11319
test -f Makefile && make "$ltmain"
11325
ac_cpp='$CPP $CPPFLAGS'
11326
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11327
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11328
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11333
# Check whether --with-tags was given.
11334
if test "${with_tags+set}" = set; then
11335
withval=$with_tags; tagnames="$withval"
11339
if test -f "$ltmain" && test -n "$tagnames"; then
11340
if test ! -f "${ofile}"; then
11341
{ $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11342
$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11345
if test -z "$LTCC"; then
11346
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11347
if test -z "$LTCC"; then
11348
{ $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11349
$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11351
{ $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11352
$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11355
if test -z "$LTCFLAGS"; then
11356
eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11359
# Extract list of available tagged configurations in $ofile.
11360
# Note that this assumes the entire list is on one line.
11361
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11363
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11364
for tagname in $tagnames; do
11366
# Check whether tagname contains only valid characters
11367
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11369
*) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11370
$as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
11371
{ (exit 1); exit 1; }; }
11375
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11377
{ { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11378
$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11379
{ (exit 1); exit 1; }; }
11382
# Update the list of available tags.
11383
if test -n "$tagname"; then
11384
echo appending configuration tag \"$tagname\" to $ofile
11388
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11389
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11390
(test "X$CXX" != "Xg++"))) ; then
11392
ac_cpp='$CXXCPP $CPPFLAGS'
11393
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11394
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11395
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11400
archive_cmds_need_lc_CXX=no
11401
allow_undefined_flag_CXX=
11402
always_export_symbols_CXX=no
11403
archive_expsym_cmds_CXX=
11404
export_dynamic_flag_spec_CXX=
11405
hardcode_direct_CXX=no
11406
hardcode_libdir_flag_spec_CXX=
11407
hardcode_libdir_flag_spec_ld_CXX=
11408
hardcode_libdir_separator_CXX=
11409
hardcode_minus_L_CXX=no
11410
hardcode_shlibpath_var_CXX=unsupported
11411
hardcode_automatic_CXX=no
11413
module_expsym_cmds_CXX=
11414
link_all_deplibs_CXX=unknown
11415
old_archive_cmds_CXX=$old_archive_cmds
11416
no_undefined_flag_CXX=
11417
whole_archive_flag_spec_CXX=
11418
enable_shared_with_static_runtimes_CXX=no
11420
# Dependencies to place before and after the object being linked:
11421
predep_objects_CXX=
11422
postdep_objects_CXX=
11425
compiler_lib_search_path_CXX=
11426
compiler_lib_search_dirs_CXX=
11428
# Source file extension for C++ test sources.
11431
# Object file extension for compiled C++ test sources.
11435
# Code to be used in simple compile tests
11436
lt_simple_compile_test_code="int some_variable = 0;"
11438
# Code to be used in simple link tests
11439
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11441
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11443
# If no C compiler was specified, use CC.
11446
# If no C compiler flags were specified, use CFLAGS.
11447
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11449
# Allow CC to be a program name with arguments.
11453
# save warnings/boilerplate of simple test code
11454
ac_outfile=conftest.$ac_objext
11455
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11456
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11457
_lt_compiler_boilerplate=`cat conftest.err`
11460
ac_outfile=conftest.$ac_objext
11461
echo "$lt_simple_link_test_code" >conftest.$ac_ext
11462
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11463
_lt_linker_boilerplate=`cat conftest.err`
11467
# Allow CC to be a program name with arguments.
11472
lt_save_with_gnu_ld=$with_gnu_ld
11473
lt_save_path_LD=$lt_cv_path_LD
11474
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11475
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11477
$as_unset lt_cv_prog_gnu_ld
11479
if test -n "${lt_cv_path_LDCXX+set}"; then
11480
lt_cv_path_LD=$lt_cv_path_LDCXX
11482
$as_unset lt_cv_path_LD
11484
test -z "${LDCXX+set}" || LD=$LDCXX
11488
for cc_temp in $compiler""; do
11490
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11491
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11496
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11499
# We don't want -fno-exception wen compiling C++ code, so set the
11500
# no_builtin_flag separately
11501
if test "$GXX" = yes; then
11502
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11504
lt_prog_compiler_no_builtin_flag_CXX=
11507
if test "$GXX" = yes; then
11508
# Set up default GNU C++ configuration
11511
# Check whether --with-gnu-ld was given.
11512
if test "${with_gnu_ld+set}" = set; then
11513
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11519
if test "$GCC" = yes; then
11520
# Check if gcc -print-prog-name=ld gives a path.
11521
{ $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11522
$as_echo_n "checking for ld used by $CC... " >&6; }
11525
# gcc leaves a trailing carriage return which upsets mingw
11526
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11528
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11531
# Accept absolute paths.
11533
re_direlt='/[^/][^/]*/\.\./'
11534
# Canonicalize the pathname of ld
11535
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11536
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11537
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11539
test -z "$LD" && LD="$ac_prog"
11542
# If it fails, then pretend we aren't using GCC.
11546
# If it is relative, then search for the first ld in PATH.
11547
with_gnu_ld=unknown
11550
elif test "$with_gnu_ld" = yes; then
11551
{ $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
11552
$as_echo_n "checking for GNU ld... " >&6; }
11554
{ $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11555
$as_echo_n "checking for non-GNU ld... " >&6; }
11557
if test "${lt_cv_path_LD+set}" = set; then
11558
$as_echo_n "(cached) " >&6
11560
if test -z "$LD"; then
11561
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11562
for ac_dir in $PATH; do
11564
test -z "$ac_dir" && ac_dir=.
11565
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11566
lt_cv_path_LD="$ac_dir/$ac_prog"
11567
# Check to see if the program is GNU ld. I'd rather use --version,
11568
# but apparently some variants of GNU ld only accept -v.
11569
# Break only if it was the GNU/non-GNU ld that we prefer.
11570
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11571
*GNU* | *'with BFD'*)
11572
test "$with_gnu_ld" != no && break
11575
test "$with_gnu_ld" != yes && break
11582
lt_cv_path_LD="$LD" # Let the user override the test with a path.
11586
LD="$lt_cv_path_LD"
11587
if test -n "$LD"; then
11588
{ $as_echo "$as_me:$LINENO: result: $LD" >&5
11589
$as_echo "$LD" >&6; }
11591
{ $as_echo "$as_me:$LINENO: result: no" >&5
11592
$as_echo "no" >&6; }
11594
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11595
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11596
{ (exit 1); exit 1; }; }
11597
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11598
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11599
if test "${lt_cv_prog_gnu_ld+set}" = set; then
11600
$as_echo_n "(cached) " >&6
11602
# I'd rather use --version here, but apparently some GNU lds only accept -v.
11603
case `$LD -v 2>&1 </dev/null` in
11604
*GNU* | *'with BFD'*)
11605
lt_cv_prog_gnu_ld=yes
11608
lt_cv_prog_gnu_ld=no
11612
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11613
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11614
with_gnu_ld=$lt_cv_prog_gnu_ld
11618
# Check if GNU C++ uses GNU ld as the underlying linker, since the
11619
# archiving commands below assume that GNU ld is being used.
11620
if test "$with_gnu_ld" = yes; then
11621
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11622
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'
11624
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11625
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11627
# If archive_cmds runs LD, not CC, wlarc should be empty
11628
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11629
# investigate it a little bit more. (MM)
11632
# ancient GNU ld didn't support --whole-archive et. al.
11633
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11634
grep 'no-whole-archive' > /dev/null; then
11635
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11637
whole_archive_flag_spec_CXX=
11643
# A generic and very simple default shared library creation
11644
# command for GNU C++ for the case where it uses the native
11645
# linker, instead of GNU ld. If possible, this setting should
11646
# overridden to take advantage of the native linker features on
11647
# the platform it is being used on.
11648
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11651
# Commands to make compiler produce verbose output that lists
11652
# what "hidden" libraries, object files and flags are used when
11653
# linking a shared library.
11654
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11662
# PORTME: fill in a description of your system's C++ link characteristics
11663
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11664
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11668
# FIXME: insert proper C++ library support
11672
if test "$host_cpu" = ia64; then
11673
# On IA64, the linker does run time linking by default, so we don't
11674
# have to do anything special.
11675
aix_use_runtimelinking=no
11676
exp_sym_flag='-Bexport'
11679
aix_use_runtimelinking=no
11681
# Test if we are trying to use run time linking or normal
11682
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11683
# need to do runtime linking.
11684
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11685
for ld_flag in $LDFLAGS; do
11688
aix_use_runtimelinking=yes
11696
exp_sym_flag='-bexport'
11697
no_entry_flag='-bnoentry'
11700
# When large executables or shared objects are built, AIX ld can
11701
# have problems creating the table of contents. If linking a library
11702
# or program results in "error TOC overflow" add -mminimal-toc to
11703
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11704
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11706
archive_cmds_CXX=''
11707
hardcode_direct_CXX=yes
11708
hardcode_libdir_separator_CXX=':'
11709
link_all_deplibs_CXX=yes
11711
if test "$GXX" = yes; then
11712
case $host_os in aix4.[012]|aix4.[012].*)
11713
# We only want to do this on AIX 4.2 and lower, the check
11714
# below for broken collect2 doesn't work under 4.3+
11715
collect2name=`${CC} -print-prog-name=collect2`
11716
if test -f "$collect2name" && \
11717
strings "$collect2name" | grep resolve_lib_name >/dev/null
11719
# We have reworked collect2
11722
# We have old collect2
11723
hardcode_direct_CXX=unsupported
11724
# It fails to find uninstalled libraries when the uninstalled
11725
# path is not listed in the libpath. Setting hardcode_minus_L
11726
# to unsupported forces relinking
11727
hardcode_minus_L_CXX=yes
11728
hardcode_libdir_flag_spec_CXX='-L$libdir'
11729
hardcode_libdir_separator_CXX=
11733
shared_flag='-shared'
11734
if test "$aix_use_runtimelinking" = yes; then
11735
shared_flag="$shared_flag "'${wl}-G'
11739
if test "$host_cpu" = ia64; then
11740
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11741
# chokes on -Wl,-G. The following line is correct:
11744
if test "$aix_use_runtimelinking" = yes; then
11745
shared_flag='${wl}-G'
11747
shared_flag='${wl}-bM:SRE'
11752
# It seems that -bexpall does not export symbols beginning with
11753
# underscore (_), so it is better to generate a list of symbols to export.
11754
always_export_symbols_CXX=yes
11755
if test "$aix_use_runtimelinking" = yes; then
11756
# Warning - without using the other runtime loading flags (-brtl),
11757
# -berok will link without error, but may produce a broken library.
11758
allow_undefined_flag_CXX='-berok'
11759
# Determine the default libpath from the value encoded in an empty executable.
11760
cat >conftest.$ac_ext <<_ACEOF
11763
cat confdefs.h >>conftest.$ac_ext
11764
cat >>conftest.$ac_ext <<_ACEOF
11765
/* end confdefs.h. */
11775
rm -f conftest.$ac_objext conftest$ac_exeext
11776
if { (ac_try="$ac_link"
11777
case "(($ac_try" in
11778
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11779
*) ac_try_echo=$ac_try;;
11781
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11782
$as_echo "$ac_try_echo") >&5
11783
(eval "$ac_link") 2>conftest.er1
11785
grep -v '^ *+' conftest.er1 >conftest.err
11787
cat conftest.err >&5
11788
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789
(exit $ac_status); } && {
11790
test -z "$ac_cxx_werror_flag" ||
11791
test ! -s conftest.err
11792
} && test -s conftest$ac_exeext && {
11793
test "$cross_compiling" = yes ||
11794
$as_test_x conftest$ac_exeext
11797
lt_aix_libpath_sed='
11798
/Import File Strings/,/^$/ {
11804
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11805
# Check for a 64-bit object if we didn't find anything.
11806
if test -z "$aix_libpath"; then
11807
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11810
$as_echo "$as_me: failed program was:" >&5
11811
sed 's/^/| /' conftest.$ac_ext >&5
11816
rm -rf conftest.dSYM
11817
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11818
conftest$ac_exeext conftest.$ac_ext
11819
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11821
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11823
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"
11825
if test "$host_cpu" = ia64; then
11826
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11827
allow_undefined_flag_CXX="-z nodefs"
11828
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"
11830
# Determine the default libpath from the value encoded in an empty executable.
11831
cat >conftest.$ac_ext <<_ACEOF
11834
cat confdefs.h >>conftest.$ac_ext
11835
cat >>conftest.$ac_ext <<_ACEOF
11836
/* end confdefs.h. */
11846
rm -f conftest.$ac_objext conftest$ac_exeext
11847
if { (ac_try="$ac_link"
11848
case "(($ac_try" in
11849
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11850
*) ac_try_echo=$ac_try;;
11852
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11853
$as_echo "$ac_try_echo") >&5
11854
(eval "$ac_link") 2>conftest.er1
11856
grep -v '^ *+' conftest.er1 >conftest.err
11858
cat conftest.err >&5
11859
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11860
(exit $ac_status); } && {
11861
test -z "$ac_cxx_werror_flag" ||
11862
test ! -s conftest.err
11863
} && test -s conftest$ac_exeext && {
11864
test "$cross_compiling" = yes ||
11865
$as_test_x conftest$ac_exeext
11868
lt_aix_libpath_sed='
11869
/Import File Strings/,/^$/ {
11875
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11876
# Check for a 64-bit object if we didn't find anything.
11877
if test -z "$aix_libpath"; then
11878
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11881
$as_echo "$as_me: failed program was:" >&5
11882
sed 's/^/| /' conftest.$ac_ext >&5
11887
rm -rf conftest.dSYM
11888
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11889
conftest$ac_exeext conftest.$ac_ext
11890
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11892
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11893
# Warning - without using the other run time loading flags,
11894
# -berok will link without error, but may produce a broken library.
11895
no_undefined_flag_CXX=' ${wl}-bernotok'
11896
allow_undefined_flag_CXX=' ${wl}-berok'
11897
# Exported symbols can be pulled into shared objects from archives
11898
whole_archive_flag_spec_CXX='$convenience'
11899
archive_cmds_need_lc_CXX=yes
11900
# This is similar to how AIX traditionally builds its shared libraries.
11901
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'
11907
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11908
allow_undefined_flag_CXX=unsupported
11909
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11910
# support --undefined. This deserves some investigation. FIXME
11911
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11918
case $cc_basename in
11920
# FIXME: insert proper C++ library support
11926
cygwin* | mingw* | pw32*)
11927
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11928
# as there is no search path for DLLs.
11929
hardcode_libdir_flag_spec_CXX='-L$libdir'
11930
allow_undefined_flag_CXX=unsupported
11931
always_export_symbols_CXX=no
11932
enable_shared_with_static_runtimes_CXX=yes
11934
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11935
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'
11936
# If the export-symbols file already is a .def file (1st line
11937
# is EXPORTS), use it as is; otherwise, prepend...
11938
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11939
cp $export_symbols $output_objdir/$soname.def;
11941
echo EXPORTS > $output_objdir/$soname.def;
11942
cat $export_symbols >> $output_objdir/$soname.def;
11944
$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'
11949
darwin* | rhapsody*)
11950
archive_cmds_need_lc_CXX=no
11951
hardcode_direct_CXX=no
11952
hardcode_automatic_CXX=yes
11953
hardcode_shlibpath_var_CXX=unsupported
11954
whole_archive_flag_spec_CXX=''
11955
link_all_deplibs_CXX=yes
11956
allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11957
if test "$GXX" = yes ; then
11958
output_verbose_link_cmd='echo'
11959
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}"
11960
module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11961
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}"
11962
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}"
11963
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11964
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}"
11965
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}"
11968
case $cc_basename in
11970
output_verbose_link_cmd='echo'
11971
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'
11972
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11973
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11974
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}'
11975
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}'
11985
case $cc_basename in
11987
# FIXME: insert proper C++ library support
11991
# Green Hills C++ Compiler
11992
# FIXME: insert proper C++ library support
11996
# FIXME: insert proper C++ library support
12002
# C++ shared libraries reported to be fairly broken before switch to ELF
12006
archive_cmds_need_lc_CXX=no
12008
freebsd* | dragonfly*)
12009
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12016
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12017
hardcode_libdir_separator_CXX=:
12018
export_dynamic_flag_spec_CXX='${wl}-E'
12019
hardcode_direct_CXX=yes
12020
hardcode_minus_L_CXX=yes # Not in the search PATH,
12021
# but as the default
12022
# location of the library.
12024
case $cc_basename in
12026
# FIXME: insert proper C++ library support
12030
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'
12031
# Commands to make compiler produce verbose output that lists
12032
# what "hidden" libraries, object files and flags are used when
12033
# linking a shared library.
12035
# There doesn't appear to be a way to prevent this compiler from
12036
# explicitly linking system object files so we need to strip them
12037
# from the output so that they don't get included in the library
12039
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'
12042
if test "$GXX" = yes; then
12043
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'
12045
# FIXME: insert proper C++ library support
12052
if test $with_gnu_ld = no; then
12053
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12054
hardcode_libdir_separator_CXX=:
12059
export_dynamic_flag_spec_CXX='${wl}-E'
12065
hardcode_direct_CXX=no
12066
hardcode_shlibpath_var_CXX=no
12069
hardcode_direct_CXX=yes
12070
hardcode_minus_L_CXX=yes # Not in the search PATH,
12071
# but as the default
12072
# location of the library.
12076
case $cc_basename in
12078
# FIXME: insert proper C++ library support
12084
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12087
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12090
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12093
# Commands to make compiler produce verbose output that lists
12094
# what "hidden" libraries, object files and flags are used when
12095
# linking a shared library.
12097
# There doesn't appear to be a way to prevent this compiler from
12098
# explicitly linking system object files so we need to strip them
12099
# from the output so that they don't get included in the library
12101
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'
12104
if test "$GXX" = yes; then
12105
if test $with_gnu_ld = no; then
12108
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12111
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12114
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'
12119
# FIXME: insert proper C++ library support
12126
hardcode_direct_CXX=no
12127
hardcode_shlibpath_var_CXX=no
12128
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12129
export_dynamic_flag_spec_CXX='${wl}-E'
12130
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12131
# Instead, shared libraries are loaded at an image base (0x10000000 by
12132
# default) and relocated if they conflict, which is a slow very memory
12133
# consuming and fragmenting process. To avoid this, we pick a random,
12134
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12135
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
12136
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'
12137
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'
12140
case $cc_basename in
12143
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'
12145
# Archives containing C++ object files must be created using
12146
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
12147
# necessary to make sure instantiated templates are included
12149
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12152
if test "$GXX" = yes; then
12153
if test "$with_gnu_ld" = no; then
12154
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'
12156
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'
12159
link_all_deplibs_CXX=yes
12162
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12163
hardcode_libdir_separator_CXX=:
12165
linux* | k*bsd*-gnu)
12166
case $cc_basename in
12168
# Kuck and Associates, Inc. (KAI) C++ Compiler
12170
# KCC will only create a shared library if the output file
12171
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12172
# to its proper name (with version) after linking.
12173
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'
12174
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'
12175
# Commands to make compiler produce verbose output that lists
12176
# what "hidden" libraries, object files and flags are used when
12177
# linking a shared library.
12179
# There doesn't appear to be a way to prevent this compiler from
12180
# explicitly linking system object files so we need to strip them
12181
# from the output so that they don't get included in the library
12183
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'
12185
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12186
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12188
# Archives containing C++ object files must be created using
12189
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12190
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12195
# version 8.0 and above of icpc choke on multiply defined symbols
12196
# if we add $predep_objects and $postdep_objects, however 7.1 and
12197
# earlier do not add the objects themselves.
12198
case `$CC -V 2>&1` in
12200
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12201
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'
12203
*) # Version 8.0 or newer
12206
ia64*) tmp_idyn=' -i_dynamic';;
12208
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12209
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'
12212
archive_cmds_need_lc_CXX=no
12213
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12214
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12215
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12218
# Portland Group C++ compiler
12219
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12220
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'
12222
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12223
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12224
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'
12228
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12229
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'
12231
runpath_var=LD_RUN_PATH
12232
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12233
hardcode_libdir_separator_CXX=:
12235
# Commands to make compiler produce verbose output that lists
12236
# what "hidden" libraries, object files and flags are used when
12237
# linking a shared library.
12239
# There doesn't appear to be a way to prevent this compiler from
12240
# explicitly linking system object files so we need to strip them
12241
# from the output so that they don't get included in the library
12243
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'
12246
case `$CC -V 2>&1 | sed 5q` in
12249
no_undefined_flag_CXX=' -zdefs'
12250
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12251
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'
12252
hardcode_libdir_flag_spec_CXX='-R$libdir'
12253
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'
12255
# Not sure whether something based on
12256
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12258
output_verbose_link_cmd='echo'
12260
# Archives containing C++ object files must be created using
12261
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12262
# necessary to make sure instantiated templates are included
12264
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12271
# FIXME: insert proper C++ library support
12275
# FIXME: insert proper C++ library support
12279
case $cc_basename in
12281
# FIXME: insert proper C++ library support
12285
# FIXME: insert proper C++ library support
12291
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12292
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12294
hardcode_libdir_flag_spec_CXX='-R$libdir'
12295
hardcode_direct_CXX=yes
12296
hardcode_shlibpath_var_CXX=no
12298
# Workaround some broken pre-1.5 toolchains
12299
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12302
# C++ shared libraries are fairly broken
12306
if test -f /usr/libexec/ld.so; then
12307
hardcode_direct_CXX=yes
12308
hardcode_shlibpath_var_CXX=no
12309
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12310
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12311
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12312
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12313
export_dynamic_flag_spec_CXX='${wl}-E'
12314
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12316
output_verbose_link_cmd='echo'
12322
case $cc_basename in
12324
# Kuck and Associates, Inc. (KAI) C++ Compiler
12326
# KCC will only create a shared library if the output file
12327
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12328
# to its proper name (with version) after linking.
12329
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'
12331
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12332
hardcode_libdir_separator_CXX=:
12334
# Archives containing C++ object files must be created using
12335
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12336
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12340
# Rational C++ 2.4.1
12341
# FIXME: insert proper C++ library support
12345
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12346
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'
12348
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12349
hardcode_libdir_separator_CXX=:
12351
# Commands to make compiler produce verbose output that lists
12352
# what "hidden" libraries, object files and flags are used when
12353
# linking a shared library.
12355
# There doesn't appear to be a way to prevent this compiler from
12356
# explicitly linking system object files so we need to strip them
12357
# from the output so that they don't get included in the library
12359
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'
12362
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12363
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12364
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'
12366
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12367
hardcode_libdir_separator_CXX=:
12369
# Commands to make compiler produce verbose output that lists
12370
# what "hidden" libraries, object files and flags are used when
12371
# linking a shared library.
12372
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12375
# FIXME: insert proper C++ library support
12382
case $cc_basename in
12384
# Kuck and Associates, Inc. (KAI) C++ Compiler
12386
# KCC will only create a shared library if the output file
12387
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12388
# to its proper name (with version) after linking.
12389
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'
12391
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12392
hardcode_libdir_separator_CXX=:
12394
# Archives containing C++ object files must be created using
12395
# the KAI C++ compiler.
12396
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12399
# Rational C++ 2.4.1
12400
# FIXME: insert proper C++ library support
12404
allow_undefined_flag_CXX=' -expect_unresolved \*'
12405
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'
12406
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12407
echo "-hidden">> $lib.exp~
12408
$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~
12411
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12412
hardcode_libdir_separator_CXX=:
12414
# Commands to make compiler produce verbose output that lists
12415
# what "hidden" libraries, object files and flags are used when
12416
# linking a shared library.
12418
# There doesn't appear to be a way to prevent this compiler from
12419
# explicitly linking system object files so we need to strip them
12420
# from the output so that they don't get included in the library
12422
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'
12425
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12426
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12427
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'
12429
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12430
hardcode_libdir_separator_CXX=:
12432
# Commands to make compiler produce verbose output that lists
12433
# what "hidden" libraries, object files and flags are used when
12434
# linking a shared library.
12435
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12438
# FIXME: insert proper C++ library support
12445
# FIXME: insert proper C++ library support
12449
case $cc_basename in
12452
# FIXME: insert proper C++ library support
12457
# FIXME: insert proper C++ library support
12461
# FIXME: insert proper C++ library support
12467
case $cc_basename in
12469
# Sun C++ 4.2, 5.x and Centerline C++
12470
archive_cmds_need_lc_CXX=yes
12471
no_undefined_flag_CXX=' -zdefs'
12472
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12473
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12474
$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'
12476
hardcode_libdir_flag_spec_CXX='-R$libdir'
12477
hardcode_shlibpath_var_CXX=no
12479
solaris2.[0-5] | solaris2.[0-5].*) ;;
12481
# The compiler driver will combine and reorder linker options,
12482
# but understands `-z linker_flag'.
12483
# Supported since Solaris 2.6 (maybe 2.5.1?)
12484
whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12487
link_all_deplibs_CXX=yes
12489
output_verbose_link_cmd='echo'
12491
# Archives containing C++ object files must be created using
12492
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12493
# necessary to make sure instantiated templates are included
12495
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12498
# Green Hills C++ Compiler
12499
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12501
# The C++ compiler must be used to create the archive.
12502
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12505
# GNU C++ compiler with Solaris linker
12506
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12507
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12508
if $CC --version | grep -v '^2\.7' > /dev/null; then
12509
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12510
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12511
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12513
# Commands to make compiler produce verbose output that lists
12514
# what "hidden" libraries, object files and flags are used when
12515
# linking a shared library.
12516
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12518
# g++ 2.7 appears to require `-G' NOT `-shared' on this
12520
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12521
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12522
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12524
# Commands to make compiler produce verbose output that lists
12525
# what "hidden" libraries, object files and flags are used when
12526
# linking a shared library.
12527
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12530
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12532
solaris2.[0-5] | solaris2.[0-5].*) ;;
12534
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12541
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12542
no_undefined_flag_CXX='${wl}-z,text'
12543
archive_cmds_need_lc_CXX=no
12544
hardcode_shlibpath_var_CXX=no
12545
runpath_var='LD_RUN_PATH'
12547
case $cc_basename in
12549
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12550
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12553
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12554
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12558
sysv5* | sco3.2v5* | sco5v6*)
12559
# Note: We can NOT use -z defs as we might desire, because we do not
12560
# link with -lc, and that would cause any symbols used from libc to
12561
# always be unresolved, which means just about no library would
12562
# ever link correctly. If we're not using GNU ld we use -z text
12563
# though, which does catch some bad symbols but isn't as heavy-handed
12565
# For security reasons, it is highly recommended that you always
12566
# use absolute paths for naming shared libraries, and exclude the
12567
# DT_RUNPATH tag from executables and libraries. But doing so
12568
# requires that you compile everything twice, which is a pain.
12569
# So that behaviour is only enabled if SCOABSPATH is set to a
12570
# non-empty value in the environment. Most likely only useful for
12571
# creating official distributions of packages.
12572
# This is a hack until libtool officially supports absolute path
12573
# names for shared libraries.
12574
no_undefined_flag_CXX='${wl}-z,text'
12575
allow_undefined_flag_CXX='${wl}-z,nodefs'
12576
archive_cmds_need_lc_CXX=no
12577
hardcode_shlibpath_var_CXX=no
12578
hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12579
hardcode_libdir_separator_CXX=':'
12580
link_all_deplibs_CXX=yes
12581
export_dynamic_flag_spec_CXX='${wl}-Bexport'
12582
runpath_var='LD_RUN_PATH'
12584
case $cc_basename in
12586
archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12587
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12590
archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12591
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12596
case $cc_basename in
12598
# NonStop-UX NCC 3.20
12599
# FIXME: insert proper C++ library support
12603
# FIXME: insert proper C++ library support
12609
# FIXME: insert proper C++ library support
12613
# FIXME: insert proper C++ library support
12617
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12618
$as_echo "$ld_shlibs_CXX" >&6; }
12619
test "$ld_shlibs_CXX" = no && can_build_shared=no
12624
cat > conftest.$ac_ext <<EOF
12628
Foo (void) { a = 0; }
12634
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12635
(eval $ac_compile) 2>&5
12637
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638
(exit $ac_status); }; then
12639
# Parse the compiler output and extract the necessary
12640
# objects, libraries and library flags.
12642
# Sentinel used to keep track of whether or not we are before
12643
# the conftest object file.
12644
pre_test_object_deps_done=no
12646
# The `*' in the case matches for architectures that use `case' in
12647
# $output_verbose_cmd can trigger glob expansion during the loop
12648
# eval without this substitution.
12649
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12651
for p in `eval $output_verbose_link_cmd`; do
12655
# Some compilers place space between "-{L,R}" and the path.
12656
# Remove the space.
12657
if test $p = "-L" \
12658
|| test $p = "-R"; then
12665
if test "$pre_test_object_deps_done" = no; then
12668
# Internal compiler library paths should come after those
12669
# provided the user. The postdeps already come after the
12670
# user supplied libs so there is no need to process them.
12671
if test -z "$compiler_lib_search_path_CXX"; then
12672
compiler_lib_search_path_CXX="${prev}${p}"
12674
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12677
# The "-l" case would never come before the object being
12678
# linked, so don't bother handling this case.
12681
if test -z "$postdeps_CXX"; then
12682
postdeps_CXX="${prev}${p}"
12684
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12690
# This assumes that the test object file only shows up
12691
# once in the compiler output.
12692
if test "$p" = "conftest.$objext"; then
12693
pre_test_object_deps_done=yes
12697
if test "$pre_test_object_deps_done" = no; then
12698
if test -z "$predep_objects_CXX"; then
12699
predep_objects_CXX="$p"
12701
predep_objects_CXX="$predep_objects_CXX $p"
12704
if test -z "$postdep_objects_CXX"; then
12705
postdep_objects_CXX="$p"
12707
postdep_objects_CXX="$postdep_objects_CXX $p"
12712
*) ;; # Ignore the rest.
12720
echo "libtool.m4: error: problem compiling CXX test program"
12723
$rm -f confest.$objext
12725
compiler_lib_search_dirs_CXX=
12726
if test -n "$compiler_lib_search_path_CXX"; then
12727
compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12730
# PORTME: override above test on systems where it is broken
12733
# Interix 3.5 installs completely hosed .la files for C++, so rather than
12734
# hack all around it, let's just trust "g++" to DTRT.
12735
predep_objects_CXX=
12736
postdep_objects_CXX=
12741
case `$CC -V 2>&1 | sed 5q` in
12745
# The more standards-conforming stlport4 library is
12746
# incompatible with the Cstd library. Avoid specifying
12747
# it if it's in CXXFLAGS. Ignore libCrun as
12748
# -library=stlport4 depends on it.
12749
case " $CXX $CXXFLAGS " in
12750
*" -library=stlport4 "*)
12751
solaris_use_stlport4=yes
12754
if test "$solaris_use_stlport4" != yes; then
12755
postdeps_CXX='-library=Cstd -library=Crun'
12762
case $cc_basename in
12764
# The more standards-conforming stlport4 library is
12765
# incompatible with the Cstd library. Avoid specifying
12766
# it if it's in CXXFLAGS. Ignore libCrun as
12767
# -library=stlport4 depends on it.
12768
case " $CXX $CXXFLAGS " in
12769
*" -library=stlport4 "*)
12770
solaris_use_stlport4=yes
12774
# Adding this requires a known-good setup of shared libraries for
12775
# Sun compiler versions before 5.6, else PIC objects from an old
12776
# archive will be linked into the output, leading to subtle bugs.
12777
if test "$solaris_use_stlport4" != yes; then
12778
postdeps_CXX='-library=Cstd -library=Crun'
12785
case " $postdeps_CXX " in
12786
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12789
lt_prog_compiler_wl_CXX=
12790
lt_prog_compiler_pic_CXX=
12791
lt_prog_compiler_static_CXX=
12793
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12794
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12796
# C++ specific cases for pic, static, wl, etc.
12797
if test "$GXX" = yes; then
12798
lt_prog_compiler_wl_CXX='-Wl,'
12799
lt_prog_compiler_static_CXX='-static'
12803
# All AIX code is PIC.
12804
if test "$host_cpu" = ia64; then
12805
# AIX 5 now supports IA64 processor
12806
lt_prog_compiler_static_CXX='-Bstatic'
12810
# FIXME: we need at least 68020 code to build shared libraries, but
12811
# adding the `-m68020' flag to GCC prevents building anything better,
12813
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12815
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12816
# PIC is the default for these OSes.
12818
mingw* | cygwin* | os2* | pw32*)
12819
# This hack is so that the source file can tell whether it is being
12820
# built for inclusion in a dll (and should export symbols for example).
12821
# Although the cygwin gcc ignores -fPIC, still need this for old-style
12822
# (--disable-auto-import) libraries
12823
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12825
darwin* | rhapsody*)
12826
# PIC is the default on this platform
12827
# Common symbols not allowed in MH_DYLIB files
12828
lt_prog_compiler_pic_CXX='-fno-common'
12831
# DJGPP does not support shared libraries at all
12832
lt_prog_compiler_pic_CXX=
12835
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
12836
# Instead, we relocate shared libraries at runtime.
12839
if test -d /usr/nec; then
12840
lt_prog_compiler_pic_CXX=-Kconform_pic
12844
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12845
# not for PA HP-UX.
12850
lt_prog_compiler_pic_CXX='-fPIC'
12855
lt_prog_compiler_pic_CXX='-fPIC'
12861
# All AIX code is PIC.
12862
if test "$host_cpu" = ia64; then
12863
# AIX 5 now supports IA64 processor
12864
lt_prog_compiler_static_CXX='-Bstatic'
12866
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12870
case $cc_basename in
12872
# Green Hills C++ Compiler
12873
# _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"
12878
# PIC is the default on this platform
12879
# Common symbols not allowed in MH_DYLIB files
12880
case $cc_basename in
12882
lt_prog_compiler_pic_CXX='-qnocommon'
12883
lt_prog_compiler_wl_CXX='-Wl,'
12888
case $cc_basename in
12890
lt_prog_compiler_pic_CXX='-KPIC'
12893
# Green Hills C++ Compiler
12894
lt_prog_compiler_pic_CXX='-pic'
12900
freebsd* | dragonfly*)
12901
# FreeBSD uses GNU C++
12903
hpux9* | hpux10* | hpux11*)
12904
case $cc_basename in
12906
lt_prog_compiler_wl_CXX='-Wl,'
12907
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12908
if test "$host_cpu" != ia64; then
12909
lt_prog_compiler_pic_CXX='+Z'
12913
lt_prog_compiler_wl_CXX='-Wl,'
12914
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12920
lt_prog_compiler_pic_CXX='+Z'
12929
# This is c89, which is MS Visual C++ (no shared libs)
12930
# Anyone wants to do a port?
12932
irix5* | irix6* | nonstopux*)
12933
case $cc_basename in
12935
lt_prog_compiler_wl_CXX='-Wl,'
12936
lt_prog_compiler_static_CXX='-non_shared'
12937
# CC pic flag -KPIC is the default.
12943
linux* | k*bsd*-gnu)
12944
case $cc_basename in
12947
lt_prog_compiler_wl_CXX='--backend -Wl,'
12948
lt_prog_compiler_pic_CXX='-fPIC'
12952
lt_prog_compiler_wl_CXX='-Wl,'
12953
lt_prog_compiler_pic_CXX='-KPIC'
12954
lt_prog_compiler_static_CXX='-static'
12957
# Portland Group C++ compiler.
12958
lt_prog_compiler_wl_CXX='-Wl,'
12959
lt_prog_compiler_pic_CXX='-fpic'
12960
lt_prog_compiler_static_CXX='-Bstatic'
12964
# Make sure the PIC flag is empty. It appears that all Alpha
12965
# Linux and Compaq Tru64 Unix objects are PIC.
12966
lt_prog_compiler_pic_CXX=
12967
lt_prog_compiler_static_CXX='-non_shared'
12970
case `$CC -V 2>&1 | sed 5q` in
12973
lt_prog_compiler_pic_CXX='-KPIC'
12974
lt_prog_compiler_static_CXX='-Bstatic'
12975
lt_prog_compiler_wl_CXX='-Qoption ld '
12986
case $cc_basename in
12988
lt_prog_compiler_pic_CXX='-W c,exportall'
12996
osf3* | osf4* | osf5*)
12997
case $cc_basename in
12999
lt_prog_compiler_wl_CXX='--backend -Wl,'
13002
# Rational C++ 2.4.1
13003
lt_prog_compiler_pic_CXX='-pic'
13006
# Digital/Compaq C++
13007
lt_prog_compiler_wl_CXX='-Wl,'
13008
# Make sure the PIC flag is empty. It appears that all Alpha
13009
# Linux and Compaq Tru64 Unix objects are PIC.
13010
lt_prog_compiler_pic_CXX=
13011
lt_prog_compiler_static_CXX='-non_shared'
13020
case $cc_basename in
13022
# Sun C++ 4.2, 5.x and Centerline C++
13023
lt_prog_compiler_pic_CXX='-KPIC'
13024
lt_prog_compiler_static_CXX='-Bstatic'
13025
lt_prog_compiler_wl_CXX='-Qoption ld '
13028
# Green Hills C++ Compiler
13029
lt_prog_compiler_pic_CXX='-PIC'
13036
case $cc_basename in
13039
lt_prog_compiler_pic_CXX='-pic'
13040
lt_prog_compiler_static_CXX='-Bstatic'
13044
lt_prog_compiler_pic_CXX='-pic'
13051
case $cc_basename in
13053
# NonStop-UX NCC 3.20
13054
lt_prog_compiler_pic_CXX='-KPIC'
13060
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13061
case $cc_basename in
13063
lt_prog_compiler_wl_CXX='-Wl,'
13064
lt_prog_compiler_pic_CXX='-KPIC'
13065
lt_prog_compiler_static_CXX='-Bstatic'
13072
lt_prog_compiler_can_build_shared_CXX=no
13077
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13078
$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13081
# Check to make sure the PIC flag actually works.
13083
if test -n "$lt_prog_compiler_pic_CXX"; then
13085
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13086
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13087
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
13088
$as_echo_n "(cached) " >&6
13090
lt_cv_prog_compiler_pic_works_CXX=no
13091
ac_outfile=conftest.$ac_objext
13092
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13093
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13094
# Insert the option either (1) after the last *FLAGS variable, or
13095
# (2) before a word containing "conftest.", or (3) at the end.
13096
# Note that $ac_compile itself does not contain backslashes and begins
13097
# with a dollar sign (not a hyphen), so the echo should work correctly.
13098
# The option is referenced via a variable to avoid confusing sed.
13099
lt_compile=`echo "$ac_compile" | $SED \
13100
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13101
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13102
-e 's:$: $lt_compiler_flag:'`
13103
(eval echo "\"\$as_me:13103: $lt_compile\"" >&5)
13104
(eval "$lt_compile" 2>conftest.err)
13106
cat conftest.err >&5
13107
echo "$as_me:13107: \$? = $ac_status" >&5
13108
if (exit $ac_status) && test -s "$ac_outfile"; then
13109
# The compiler can only warn and ignore the option if not recognized
13110
# So say no if there are warnings other than the usual output.
13111
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13112
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13113
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13114
lt_cv_prog_compiler_pic_works_CXX=yes
13120
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13121
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13123
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13124
case $lt_prog_compiler_pic_CXX in
13126
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13129
lt_prog_compiler_pic_CXX=
13130
lt_prog_compiler_can_build_shared_CXX=no
13135
# For platforms which do not support PIC, -DPIC is meaningless:
13137
lt_prog_compiler_pic_CXX=
13140
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13145
# Check to make sure the static flag actually works.
13147
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13148
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13149
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13150
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
13151
$as_echo_n "(cached) " >&6
13153
lt_cv_prog_compiler_static_works_CXX=no
13154
save_LDFLAGS="$LDFLAGS"
13155
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13156
echo "$lt_simple_link_test_code" > conftest.$ac_ext
13157
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13158
# The linker can only warn and ignore the option if not recognized
13159
# So say no if there are warnings
13160
if test -s conftest.err; then
13161
# Append any errors to the config.log.
13162
cat conftest.err 1>&5
13163
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13164
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13165
if diff conftest.exp conftest.er2 >/dev/null; then
13166
lt_cv_prog_compiler_static_works_CXX=yes
13169
lt_cv_prog_compiler_static_works_CXX=yes
13173
LDFLAGS="$save_LDFLAGS"
13176
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13177
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13179
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13182
lt_prog_compiler_static_CXX=
13186
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13187
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13188
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13189
$as_echo_n "(cached) " >&6
13191
lt_cv_prog_compiler_c_o_CXX=no
13192
$rm -r conftest 2>/dev/null
13196
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13198
lt_compiler_flag="-o out/conftest2.$ac_objext"
13199
# Insert the option either (1) after the last *FLAGS variable, or
13200
# (2) before a word containing "conftest.", or (3) at the end.
13201
# Note that $ac_compile itself does not contain backslashes and begins
13202
# with a dollar sign (not a hyphen), so the echo should work correctly.
13203
lt_compile=`echo "$ac_compile" | $SED \
13204
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13205
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13206
-e 's:$: $lt_compiler_flag:'`
13207
(eval echo "\"\$as_me:13207: $lt_compile\"" >&5)
13208
(eval "$lt_compile" 2>out/conftest.err)
13210
cat out/conftest.err >&5
13211
echo "$as_me:13211: \$? = $ac_status" >&5
13212
if (exit $ac_status) && test -s out/conftest2.$ac_objext
13214
# The compiler can only warn and ignore the option if not recognized
13215
# So say no if there are warnings
13216
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13217
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13218
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13219
lt_cv_prog_compiler_c_o_CXX=yes
13224
# SGI C++ compiler will create directory out/ii_files/ for
13225
# template instantiation
13226
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13227
$rm out/* && rmdir out
13233
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13234
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13237
hard_links="nottested"
13238
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13239
# do not overwrite the value of need_locks provided by the user
13240
{ $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13241
$as_echo_n "checking if we can lock with hard links... " >&6; }
13244
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13246
ln conftest.a conftest.b 2>&5 || hard_links=no
13247
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13248
{ $as_echo "$as_me:$LINENO: result: $hard_links" >&5
13249
$as_echo "$hard_links" >&6; }
13250
if test "$hard_links" = no; then
13251
{ $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13252
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13259
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13260
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13262
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13265
# If we're using GNU nm, then we don't want the "-C" option.
13266
# -C means demangle to AIX nm, but means don't demangle with GNU nm
13267
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13268
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'
13270
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'
13274
export_symbols_cmds_CXX="$ltdll_cmds"
13277
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'
13280
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13283
exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13285
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13286
$as_echo "$ld_shlibs_CXX" >&6; }
13287
test "$ld_shlibs_CXX" = no && can_build_shared=no
13290
# Do we need to explicitly link libc?
13292
case "x$archive_cmds_need_lc_CXX" in
13294
# Assume -lc should be added
13295
archive_cmds_need_lc_CXX=yes
13297
if test "$enable_shared" = yes && test "$GCC" = yes; then
13298
case $archive_cmds_CXX in
13300
# FIXME: we may have to deal with multi-command sequences.
13303
# Test whether the compiler implicitly links with -lc since on some
13304
# systems, -lgcc has to come before -lc. If gcc already passes -lc
13305
# to ld, don't add -lc before -lgcc.
13306
{ $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13307
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13309
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13311
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13312
(eval $ac_compile) 2>&5
13314
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13315
(exit $ac_status); } 2>conftest.err; then
13318
libobjs=conftest.$ac_objext
13320
wl=$lt_prog_compiler_wl_CXX
13321
pic_flag=$lt_prog_compiler_pic_CXX
13327
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13328
allow_undefined_flag_CXX=
13329
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13330
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13332
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13333
(exit $ac_status); }
13335
archive_cmds_need_lc_CXX=no
13337
archive_cmds_need_lc_CXX=yes
13339
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13341
cat conftest.err 1>&5
13344
{ $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13345
$as_echo "$archive_cmds_need_lc_CXX" >&6; }
13352
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13353
$as_echo_n "checking dynamic linker characteristics... " >&6; }
13354
library_names_spec=
13355
libname_spec='lib$name'
13359
postuninstall_cmds=
13363
shlibpath_overrides_runpath=unknown
13365
dynamic_linker="$host_os ld.so"
13366
sys_lib_dlsearch_path_spec="/lib /usr/lib"
13368
need_lib_prefix=unknown
13369
hardcode_into_libs=no
13371
# when you set need_version to no, make sure it does not cause -set_version
13372
# flags to be left without arguments
13373
need_version=unknown
13378
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13379
shlibpath_var=LIBPATH
13381
# AIX 3 has no versioning support, so we append a major version to the name.
13382
soname_spec='${libname}${release}${shared_ext}$major'
13389
hardcode_into_libs=yes
13390
if test "$host_cpu" = ia64; then
13391
# AIX 5 supports IA64
13392
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13393
shlibpath_var=LD_LIBRARY_PATH
13395
# With GCC up to 2.95.x, collect2 would create an import file
13396
# for dependence libraries. The import file would start with
13397
# the line `#! .'. This would cause the generated library to
13398
# depend on `.', always an invalid library. This was fixed in
13399
# development snapshots of GCC prior to 3.0.
13401
aix4 | aix4.[01] | aix4.[01].*)
13402
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13404
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13407
can_build_shared=no
13411
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13412
# soname into executable. Probably we can add versioning support to
13413
# collect2, so additional links can be useful in future.
13414
if test "$aix_use_runtimelinking" = yes; then
13415
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
13416
# instead of lib<name>.a to let people know that these are not
13417
# typical AIX shared libraries.
13418
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13420
# We preserve .a as extension for shared libraries through AIX4.2
13421
# and later when we are not doing run time linking.
13422
library_names_spec='${libname}${release}.a $libname.a'
13423
soname_spec='${libname}${release}${shared_ext}$major'
13425
shlibpath_var=LIBPATH
13430
library_names_spec='$libname.ixlibrary $libname.a'
13431
# Create ${libname}_ixlibrary.a entries in /sys/libs.
13432
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'
13436
library_names_spec='${libname}${shared_ext}'
13437
dynamic_linker="$host_os ld.so"
13438
shlibpath_var=LIBRARY_PATH
13444
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13445
soname_spec='${libname}${release}${shared_ext}$major'
13446
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13447
shlibpath_var=LD_LIBRARY_PATH
13448
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13449
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13450
# the default ld.so.conf also contains /usr/contrib/lib and
13451
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13452
# libtool to hard-code these into programs
13455
cygwin* | mingw* | pw32*)
13456
version_type=windows
13461
case $GCC,$host_os in
13462
yes,cygwin* | yes,mingw* | yes,pw32*)
13463
library_names_spec='$libname.dll.a'
13464
# DLL is installed to $(libdir)/../bin by postinstall_cmds
13465
postinstall_cmds='base_file=`basename \${file}`~
13466
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13467
dldir=$destdir/`dirname \$dlpath`~
13468
test -d \$dldir || mkdir -p \$dldir~
13469
$install_prog $dir/$dlname \$dldir/$dlname~
13470
chmod a+x \$dldir/$dlname'
13471
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13472
dlpath=$dir/\$dldll~
13474
shlibpath_overrides_runpath=yes
13478
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
13479
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13480
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13483
# MinGW DLLs use traditional 'lib' prefix
13484
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13485
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13486
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13487
# It is most probably a Windows format PATH printed by
13488
# mingw gcc, but we are running on Cygwin. Gcc prints its search
13489
# path with ; separators, and with drive letters. We can handle the
13490
# drive letters (cygwin fileutils understands them), so leave them,
13491
# especially as we might pass files found there to a mingw objdump,
13492
# which wouldn't understand a cygwinified path. Ahh.
13493
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13495
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13499
# pw32 DLLs use 'pw' prefix rather than 'lib'
13500
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13506
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13509
dynamic_linker='Win32 ld.exe'
13510
# FIXME: first we should search . and the directory the executable is in
13514
darwin* | rhapsody*)
13515
dynamic_linker="$host_os dyld"
13516
version_type=darwin
13519
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13520
soname_spec='${libname}${release}${major}$shared_ext'
13521
shlibpath_overrides_runpath=yes
13522
shlibpath_var=DYLD_LIBRARY_PATH
13523
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13525
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13532
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13533
soname_spec='${libname}${release}${shared_ext}$major'
13534
shlibpath_var=LD_LIBRARY_PATH
13541
freebsd* | dragonfly*)
13542
# DragonFly does not have aout. When/if they implement a new
13543
# versioning mechanism, adjust this.
13544
if test -x /usr/bin/objformat; then
13545
objformat=`/usr/bin/objformat`
13548
freebsd[123]*) objformat=aout ;;
13549
*) objformat=elf ;;
13552
version_type=freebsd-$objformat
13553
case $version_type in
13555
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13560
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13564
shlibpath_var=LD_LIBRARY_PATH
13567
shlibpath_overrides_runpath=yes
13569
freebsd3.[01]* | freebsdelf3.[01]*)
13570
shlibpath_overrides_runpath=yes
13571
hardcode_into_libs=yes
13573
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13574
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13575
shlibpath_overrides_runpath=no
13576
hardcode_into_libs=yes
13578
*) # from 4.6 on, and DragonFly
13579
shlibpath_overrides_runpath=yes
13580
hardcode_into_libs=yes
13589
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13590
soname_spec='${libname}${release}${shared_ext}$major'
13591
shlibpath_var=LD_LIBRARY_PATH
13592
hardcode_into_libs=yes
13595
hpux9* | hpux10* | hpux11*)
13596
# Give a soname corresponding to the major version so that dld.sl refuses to
13597
# link against other versions.
13604
hardcode_into_libs=yes
13605
dynamic_linker="$host_os dld.so"
13606
shlibpath_var=LD_LIBRARY_PATH
13607
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13608
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13609
soname_spec='${libname}${release}${shared_ext}$major'
13610
if test "X$HPUX_IA64_MODE" = X32; then
13611
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13613
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13615
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13619
hardcode_into_libs=yes
13620
dynamic_linker="$host_os dld.sl"
13621
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13622
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13623
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13624
soname_spec='${libname}${release}${shared_ext}$major'
13625
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13626
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13630
dynamic_linker="$host_os dld.sl"
13631
shlibpath_var=SHLIB_PATH
13632
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13633
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13634
soname_spec='${libname}${release}${shared_ext}$major'
13637
# HP-UX runs *really* slowly unless shared libraries are mode 555.
13638
postinstall_cmds='chmod 555 $lib'
13645
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13646
soname_spec='${libname}${release}${shared_ext}$major'
13647
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13648
shlibpath_var=LD_LIBRARY_PATH
13649
shlibpath_overrides_runpath=no
13650
hardcode_into_libs=yes
13653
irix5* | irix6* | nonstopux*)
13655
nonstopux*) version_type=nonstopux ;;
13657
if test "$lt_cv_prog_gnu_ld" = yes; then
13665
soname_spec='${libname}${release}${shared_ext}$major'
13666
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13668
irix5* | nonstopux*)
13669
libsuff= shlibsuff=
13672
case $LD in # libtool.m4 will add one of these switches to LD
13673
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13674
libsuff= shlibsuff= libmagic=32-bit;;
13675
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13676
libsuff=32 shlibsuff=N32 libmagic=N32;;
13677
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13678
libsuff=64 shlibsuff=64 libmagic=64-bit;;
13679
*) libsuff= shlibsuff= libmagic=never-match;;
13683
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13684
shlibpath_overrides_runpath=no
13685
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13686
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13687
hardcode_into_libs=yes
13690
# No shared lib support for Linux oldld, aout, or coff.
13691
linux*oldld* | linux*aout* | linux*coff*)
13695
# This must be Linux ELF.
13696
linux* | k*bsd*-gnu)
13700
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13701
soname_spec='${libname}${release}${shared_ext}$major'
13702
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13703
shlibpath_var=LD_LIBRARY_PATH
13704
shlibpath_overrides_runpath=no
13705
# This implies no fast_install, which is unacceptable.
13706
# Some rework will be needed to allow for fast_install
13707
# before this can be enabled.
13708
hardcode_into_libs=yes
13709
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13710
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13712
# Append ld.so.conf contents to the search path
13713
if test -f /etc/ld.so.conf; then
13714
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' ' '`
13715
sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13718
# We used to test for /lib/ld.so.1 and disable shared libraries on
13719
# powerpc, because MkLinux only supported shared libraries with the
13720
# GNU dynamic linker. Since this was broken with cross compilers,
13721
# most powerpc-linux boxes support dynamic linking these days and
13722
# people can always --disable-shared, the test was removed, and we
13723
# assume the GNU/Linux dynamic linker is in use.
13724
dynamic_linker='GNU/Linux ld.so'
13731
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13732
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13733
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13734
dynamic_linker='NetBSD (a.out) ld.so'
13736
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13737
soname_spec='${libname}${release}${shared_ext}$major'
13738
dynamic_linker='NetBSD ld.elf_so'
13740
shlibpath_var=LD_LIBRARY_PATH
13741
shlibpath_overrides_runpath=yes
13742
hardcode_into_libs=yes
13747
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13748
shlibpath_var=LD_LIBRARY_PATH
13749
shlibpath_overrides_runpath=yes
13756
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13757
soname_spec='${libname}${release}${shared_ext}$major'
13758
shlibpath_var=LD_LIBRARY_PATH
13759
shlibpath_overrides_runpath=yes
13764
sys_lib_dlsearch_path_spec="/usr/lib"
13766
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13768
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13769
*) need_version=no ;;
13771
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13772
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13773
shlibpath_var=LD_LIBRARY_PATH
13774
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13776
openbsd2.[89] | openbsd2.[89].*)
13777
shlibpath_overrides_runpath=no
13780
shlibpath_overrides_runpath=yes
13784
shlibpath_overrides_runpath=yes
13789
libname_spec='$name'
13792
library_names_spec='$libname${shared_ext} $libname.a'
13793
dynamic_linker='OS/2 ld.exe'
13794
shlibpath_var=LIBPATH
13797
osf3* | osf4* | osf5*)
13801
soname_spec='${libname}${release}${shared_ext}$major'
13802
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13803
shlibpath_var=LD_LIBRARY_PATH
13804
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13805
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13816
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13817
soname_spec='${libname}${release}${shared_ext}$major'
13818
shlibpath_var=LD_LIBRARY_PATH
13819
shlibpath_overrides_runpath=yes
13820
hardcode_into_libs=yes
13821
# ldd complains unless libraries are executable
13822
postinstall_cmds='chmod +x $lib'
13827
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13828
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13829
shlibpath_var=LD_LIBRARY_PATH
13830
shlibpath_overrides_runpath=yes
13831
if test "$with_gnu_ld" = yes; then
13839
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13840
soname_spec='${libname}${release}${shared_ext}$major'
13841
shlibpath_var=LD_LIBRARY_PATH
13842
case $host_vendor in
13844
shlibpath_overrides_runpath=no
13846
export_dynamic_flag_spec='${wl}-Blargedynsym'
13847
runpath_var=LD_RUN_PATH
13855
shlibpath_overrides_runpath=no
13856
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13862
if test -d /usr/nec ;then
13864
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13865
soname_spec='$libname${shared_ext}.$major'
13866
shlibpath_var=LD_LIBRARY_PATH
13870
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13871
version_type=freebsd-elf
13874
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13875
soname_spec='${libname}${release}${shared_ext}$major'
13876
shlibpath_var=LD_LIBRARY_PATH
13877
hardcode_into_libs=yes
13878
if test "$with_gnu_ld" = yes; then
13879
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13880
shlibpath_overrides_runpath=no
13882
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13883
shlibpath_overrides_runpath=yes
13886
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13890
sys_lib_dlsearch_path_spec='/usr/lib'
13895
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13896
soname_spec='${libname}${release}${shared_ext}$major'
13897
shlibpath_var=LD_LIBRARY_PATH
13904
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13905
$as_echo "$dynamic_linker" >&6; }
13906
test "$dynamic_linker" = no && can_build_shared=no
13908
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13909
$as_echo_n "(cached) " >&6
13911
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13914
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13915
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13916
$as_echo_n "(cached) " >&6
13918
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13921
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13923
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13924
if test "$GCC" = yes; then
13925
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13928
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13929
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13930
hardcode_action_CXX=
13931
if test -n "$hardcode_libdir_flag_spec_CXX" || \
13932
test -n "$runpath_var_CXX" || \
13933
test "X$hardcode_automatic_CXX" = "Xyes" ; then
13935
# We can hardcode non-existant directories.
13936
if test "$hardcode_direct_CXX" != no &&
13937
# If the only mechanism to avoid hardcoding is shlibpath_var, we
13938
# have to relink, otherwise we might link with an installed library
13939
# when we should be linking with a yet-to-be-installed one
13940
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13941
test "$hardcode_minus_L_CXX" != no; then
13942
# Linking always hardcodes the temporary library directory.
13943
hardcode_action_CXX=relink
13945
# We can link without hardcoding, and we can hardcode nonexisting dirs.
13946
hardcode_action_CXX=immediate
13949
# We cannot hardcode anything, or else we can only hardcode existing
13951
hardcode_action_CXX=unsupported
13953
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13954
$as_echo "$hardcode_action_CXX" >&6; }
13956
if test "$hardcode_action_CXX" = relink; then
13957
# Fast installation is not supported
13958
enable_fast_install=no
13959
elif test "$shlibpath_overrides_runpath" = yes ||
13960
test "$enable_shared" = no; then
13961
# Fast installation is not necessary
13962
enable_fast_install=needless
13966
# The else clause should only fire when bootstrapping the
13967
# libtool distribution, otherwise you forgot to ship ltmain.sh
13968
# with your package, and you will get complaints that there are
13969
# no rules to generate ltmain.sh.
13970
if test -f "$ltmain"; then
13971
# See if we are running on zsh, and set the options which allow our commands through
13972
# without removal of \ escapes.
13973
if test -n "${ZSH_VERSION+set}" ; then
13974
setopt NO_GLOB_SUBST
13976
# Now quote all the things that may contain metacharacters while being
13977
# careful not to overquote the AC_SUBSTed values. We take copies of the
13978
# variables and quote the copies for generation of the libtool script.
13979
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13981
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13982
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13983
deplibs_check_method reload_flag reload_cmds need_locks \
13984
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13985
lt_cv_sys_global_symbol_to_c_name_address \
13986
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13987
old_postinstall_cmds old_postuninstall_cmds \
13991
lt_prog_compiler_wl_CXX \
13992
lt_prog_compiler_pic_CXX \
13993
lt_prog_compiler_static_CXX \
13994
lt_prog_compiler_no_builtin_flag_CXX \
13995
export_dynamic_flag_spec_CXX \
13996
thread_safe_flag_spec_CXX \
13997
whole_archive_flag_spec_CXX \
13998
enable_shared_with_static_runtimes_CXX \
13999
old_archive_cmds_CXX \
14000
old_archive_from_new_cmds_CXX \
14001
predep_objects_CXX \
14002
postdep_objects_CXX \
14005
compiler_lib_search_path_CXX \
14006
compiler_lib_search_dirs_CXX \
14008
archive_expsym_cmds_CXX \
14009
postinstall_cmds_CXX \
14010
postuninstall_cmds_CXX \
14011
old_archive_from_expsyms_cmds_CXX \
14012
allow_undefined_flag_CXX \
14013
no_undefined_flag_CXX \
14014
export_symbols_cmds_CXX \
14015
hardcode_libdir_flag_spec_CXX \
14016
hardcode_libdir_flag_spec_ld_CXX \
14017
hardcode_libdir_separator_CXX \
14018
hardcode_automatic_CXX \
14020
module_expsym_cmds_CXX \
14021
lt_cv_prog_compiler_c_o_CXX \
14022
fix_srcfile_path_CXX \
14023
exclude_expsyms_CXX \
14024
include_expsyms_CXX; do
14027
old_archive_cmds_CXX | \
14028
old_archive_from_new_cmds_CXX | \
14029
archive_cmds_CXX | \
14030
archive_expsym_cmds_CXX | \
14031
module_cmds_CXX | \
14032
module_expsym_cmds_CXX | \
14033
old_archive_from_expsyms_cmds_CXX | \
14034
export_symbols_cmds_CXX | \
14035
extract_expsyms_cmds | reload_cmds | finish_cmds | \
14036
postinstall_cmds | postuninstall_cmds | \
14037
old_postinstall_cmds | old_postuninstall_cmds | \
14038
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14039
# Double-quote double-evaled strings.
14040
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14043
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14049
*'\$0 --fallback-echo"')
14050
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14056
cat <<__EOF__ >> "$cfgfile"
14057
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14059
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14061
# Shell to use when invoking shell scripts.
14064
# Whether or not to build shared libraries.
14065
build_libtool_libs=$enable_shared
14067
# Whether or not to build static libraries.
14068
build_old_libs=$enable_static
14070
# Whether or not to add -lc for building shared libraries.
14071
build_libtool_need_lc=$archive_cmds_need_lc_CXX
14073
# Whether or not to disallow shared libs when runtime libs are static
14074
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14076
# Whether or not to optimize for fast installation.
14077
fast_install=$enable_fast_install
14080
host_alias=$host_alias
14084
# The build system.
14085
build_alias=$build_alias
14089
# An echo program that does not interpret backslashes.
14094
AR_FLAGS=$lt_AR_FLAGS
14099
# LTCC compiler flags.
14100
LTCFLAGS=$lt_LTCFLAGS
14102
# A language-specific compiler.
14103
CC=$lt_compiler_CXX
14105
# Is the compiler the GNU C compiler?
14111
# The linker used to build libraries.
14114
# Whether we need hard or soft links.
14117
# A BSD-compatible nm program.
14120
# A symbol stripping program
14123
# Used to examine libraries when file_magic_cmd begins "file"
14124
MAGIC_CMD=$MAGIC_CMD
14126
# Used on cygwin: DLL creation program.
14129
# Used on cygwin: object dumper.
14132
# Used on cygwin: assembler.
14135
# The name of the directory that contains temporary libtool files.
14138
# How to create reloadable object files.
14139
reload_flag=$lt_reload_flag
14140
reload_cmds=$lt_reload_cmds
14142
# How to pass a linker flag through the compiler.
14143
wl=$lt_lt_prog_compiler_wl_CXX
14145
# Object file suffix (normally "o").
14146
objext="$ac_objext"
14148
# Old archive suffix (normally "a").
14151
# Shared library suffix (normally ".so").
14152
shrext_cmds='$shrext_cmds'
14154
# Executable file suffix (normally "").
14157
# Additional compiler flags for building library objects.
14158
pic_flag=$lt_lt_prog_compiler_pic_CXX
14161
# What is the maximum length of a command?
14162
max_cmd_len=$lt_cv_sys_max_cmd_len
14164
# Does compiler simultaneously support -c and -o options?
14165
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14167
# Must we lock files when doing compilation?
14168
need_locks=$lt_need_locks
14170
# Do we need the lib prefix for modules?
14171
need_lib_prefix=$need_lib_prefix
14173
# Do we need a version for libraries?
14174
need_version=$need_version
14176
# Whether dlopen is supported.
14177
dlopen_support=$enable_dlopen
14179
# Whether dlopen of programs is supported.
14180
dlopen_self=$enable_dlopen_self
14182
# Whether dlopen of statically linked programs is supported.
14183
dlopen_self_static=$enable_dlopen_self_static
14185
# Compiler flag to prevent dynamic linking.
14186
link_static_flag=$lt_lt_prog_compiler_static_CXX
14188
# Compiler flag to turn off builtin functions.
14189
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14191
# Compiler flag to allow reflexive dlopens.
14192
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14194
# Compiler flag to generate shared objects directly from archives.
14195
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14197
# Compiler flag to generate thread-safe objects.
14198
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14200
# Library versioning type.
14201
version_type=$version_type
14203
# Format of library name prefix.
14204
libname_spec=$lt_libname_spec
14206
# List of archive names. First name is the real one, the rest are links.
14207
# The last name is the one that the linker finds with -lNAME.
14208
library_names_spec=$lt_library_names_spec
14210
# The coded name of the library, if different from the real name.
14211
soname_spec=$lt_soname_spec
14213
# Commands used to build and install an old-style archive.
14215
old_archive_cmds=$lt_old_archive_cmds_CXX
14216
old_postinstall_cmds=$lt_old_postinstall_cmds
14217
old_postuninstall_cmds=$lt_old_postuninstall_cmds
14219
# Create an old-style archive from a shared archive.
14220
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14222
# Create a temporary old-style archive to link instead of a shared archive.
14223
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14225
# Commands used to build and install a shared archive.
14226
archive_cmds=$lt_archive_cmds_CXX
14227
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14228
postinstall_cmds=$lt_postinstall_cmds
14229
postuninstall_cmds=$lt_postuninstall_cmds
14231
# Commands used to build a loadable module (assumed same as above if empty)
14232
module_cmds=$lt_module_cmds_CXX
14233
module_expsym_cmds=$lt_module_expsym_cmds_CXX
14235
# Commands to strip libraries.
14236
old_striplib=$lt_old_striplib
14237
striplib=$lt_striplib
14239
# Dependencies to place before the objects being linked to create a
14241
predep_objects=$lt_predep_objects_CXX
14243
# Dependencies to place after the objects being linked to create a
14245
postdep_objects=$lt_postdep_objects_CXX
14247
# Dependencies to place before the objects being linked to create a
14249
predeps=$lt_predeps_CXX
14251
# Dependencies to place after the objects being linked to create a
14253
postdeps=$lt_postdeps_CXX
14255
# The directories searched by this compiler when creating a shared
14257
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14259
# The library search path used internally by the compiler when linking
14260
# a shared library.
14261
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14263
# Method to check whether dependent libraries are shared objects.
14264
deplibs_check_method=$lt_deplibs_check_method
14266
# Command to use when deplibs_check_method == file_magic.
14267
file_magic_cmd=$lt_file_magic_cmd
14269
# Flag that allows shared libraries with undefined symbols to be built.
14270
allow_undefined_flag=$lt_allow_undefined_flag_CXX
14272
# Flag that forces no undefined symbols.
14273
no_undefined_flag=$lt_no_undefined_flag_CXX
14275
# Commands used to finish a libtool library installation in a directory.
14276
finish_cmds=$lt_finish_cmds
14278
# Same as above, but a single script fragment to be evaled but not shown.
14279
finish_eval=$lt_finish_eval
14281
# Take the output of nm and produce a listing of raw symbols and C names.
14282
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14284
# Transform the output of nm in a proper C declaration
14285
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14287
# Transform the output of nm in a C name address pair
14288
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14290
# This is the shared library runtime path variable.
14291
runpath_var=$runpath_var
14293
# This is the shared library path variable.
14294
shlibpath_var=$shlibpath_var
14296
# Is shlibpath searched before the hard-coded library search path?
14297
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14299
# How to hardcode a shared library path into an executable.
14300
hardcode_action=$hardcode_action_CXX
14302
# Whether we should hardcode library paths into libraries.
14303
hardcode_into_libs=$hardcode_into_libs
14305
# Flag to hardcode \$libdir into a binary during linking.
14306
# This must work even if \$libdir does not exist.
14307
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14309
# If ld is used when linking, flag to hardcode \$libdir into
14310
# a binary during linking. This must work even if \$libdir does
14312
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14314
# Whether we need a single -rpath flag with a separated argument.
14315
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14317
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14318
# resulting binary.
14319
hardcode_direct=$hardcode_direct_CXX
14321
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14322
# resulting binary.
14323
hardcode_minus_L=$hardcode_minus_L_CXX
14325
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14326
# the resulting binary.
14327
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14329
# Set to yes if building a shared library automatically hardcodes DIR into the library
14330
# and all subsequent libraries and executables linked against it.
14331
hardcode_automatic=$hardcode_automatic_CXX
14333
# Variables whose values should be saved in libtool wrapper scripts and
14334
# restored at relink time.
14335
variables_saved_for_relink="$variables_saved_for_relink"
14337
# Whether libtool must link a program against all its dependency libraries.
14338
link_all_deplibs=$link_all_deplibs_CXX
14340
# Compile-time system search path for libraries
14341
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14343
# Run-time system search path for libraries
14344
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14346
# Fix the shell variable \$srcfile for the compiler.
14347
fix_srcfile_path=$lt_fix_srcfile_path
14349
# Set to yes if exported symbols are required.
14350
always_export_symbols=$always_export_symbols_CXX
14352
# The commands to list exported symbols.
14353
export_symbols_cmds=$lt_export_symbols_cmds_CXX
14355
# The commands to extract the exported symbol list from a shared archive.
14356
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14358
# Symbols that should not be listed in the preloaded symbols.
14359
exclude_expsyms=$lt_exclude_expsyms_CXX
14361
# Symbols that must always be exported.
14362
include_expsyms=$lt_include_expsyms_CXX
14364
# ### END LIBTOOL TAG CONFIG: $tagname
14370
# If there is no Makefile yet, we rely on a make rule to execute
14371
# `config.status --recheck' to rerun these tests and create the
14372
# libtool script then.
14373
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14374
if test -f "$ltmain_in"; then
14375
test -f Makefile && make "$ltmain"
14381
ac_cpp='$CPP $CPPFLAGS'
14382
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14383
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14384
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14390
with_gnu_ldcxx=$with_gnu_ld
14391
with_gnu_ld=$lt_save_with_gnu_ld
14392
lt_cv_path_LDCXX=$lt_cv_path_LD
14393
lt_cv_path_LD=$lt_save_path_LD
14394
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14395
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14403
if test -n "$F77" && test "X$F77" != "Xno"; then
14406
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14407
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14408
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14411
archive_cmds_need_lc_F77=no
14412
allow_undefined_flag_F77=
14413
always_export_symbols_F77=no
14414
archive_expsym_cmds_F77=
14415
export_dynamic_flag_spec_F77=
14416
hardcode_direct_F77=no
14417
hardcode_libdir_flag_spec_F77=
14418
hardcode_libdir_flag_spec_ld_F77=
14419
hardcode_libdir_separator_F77=
14420
hardcode_minus_L_F77=no
14421
hardcode_automatic_F77=no
14423
module_expsym_cmds_F77=
14424
link_all_deplibs_F77=unknown
14425
old_archive_cmds_F77=$old_archive_cmds
14426
no_undefined_flag_F77=
14427
whole_archive_flag_spec_F77=
14428
enable_shared_with_static_runtimes_F77=no
14430
# Source file extension for f77 test sources.
14433
# Object file extension for compiled f77 test sources.
14437
# Code to be used in simple compile tests
14438
lt_simple_compile_test_code="\
14444
# Code to be used in simple link tests
14445
lt_simple_link_test_code="\
14450
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14452
# If no C compiler was specified, use CC.
14455
# If no C compiler flags were specified, use CFLAGS.
14456
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14458
# Allow CC to be a program name with arguments.
14462
# save warnings/boilerplate of simple test code
14463
ac_outfile=conftest.$ac_objext
14464
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14465
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14466
_lt_compiler_boilerplate=`cat conftest.err`
14469
ac_outfile=conftest.$ac_objext
14470
echo "$lt_simple_link_test_code" >conftest.$ac_ext
14471
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14472
_lt_linker_boilerplate=`cat conftest.err`
14476
# Allow CC to be a program name with arguments.
14481
for cc_temp in $compiler""; do
14483
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14484
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14489
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14492
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14493
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
14494
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
14495
$as_echo "$can_build_shared" >&6; }
14497
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14498
$as_echo_n "checking whether to build shared libraries... " >&6; }
14499
test "$can_build_shared" = "no" && enable_shared=no
14501
# On AIX, shared libraries and static libraries use the same namespace, and
14502
# are all built from PIC.
14505
test "$enable_shared" = yes && enable_static=no
14506
if test -n "$RANLIB"; then
14507
archive_cmds="$archive_cmds~\$RANLIB \$lib"
14508
postinstall_cmds='$RANLIB $lib'
14512
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14513
test "$enable_shared" = yes && enable_static=no
14517
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
14518
$as_echo "$enable_shared" >&6; }
14520
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14521
$as_echo_n "checking whether to build static libraries... " >&6; }
14522
# Make sure either enable_shared or enable_static is yes.
14523
test "$enable_shared" = yes || enable_static=yes
14524
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
14525
$as_echo "$enable_static" >&6; }
14530
lt_prog_compiler_wl_F77=
14531
lt_prog_compiler_pic_F77=
14532
lt_prog_compiler_static_F77=
14534
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14535
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14537
if test "$GCC" = yes; then
14538
lt_prog_compiler_wl_F77='-Wl,'
14539
lt_prog_compiler_static_F77='-static'
14543
# All AIX code is PIC.
14544
if test "$host_cpu" = ia64; then
14545
# AIX 5 now supports IA64 processor
14546
lt_prog_compiler_static_F77='-Bstatic'
14551
# FIXME: we need at least 68020 code to build shared libraries, but
14552
# adding the `-m68020' flag to GCC prevents building anything better,
14554
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14557
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14558
# PIC is the default for these OSes.
14561
mingw* | cygwin* | pw32* | os2*)
14562
# This hack is so that the source file can tell whether it is being
14563
# built for inclusion in a dll (and should export symbols for example).
14564
# Although the cygwin gcc ignores -fPIC, still need this for old-style
14565
# (--disable-auto-import) libraries
14566
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14569
darwin* | rhapsody*)
14570
# PIC is the default on this platform
14571
# Common symbols not allowed in MH_DYLIB files
14572
lt_prog_compiler_pic_F77='-fno-common'
14576
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
14577
# Instead, we relocate shared libraries at runtime.
14581
# Just because we use GCC doesn't mean we suddenly get shared libraries
14582
# on systems that don't support them.
14583
lt_prog_compiler_can_build_shared_F77=no
14588
if test -d /usr/nec; then
14589
lt_prog_compiler_pic_F77=-Kconform_pic
14594
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14595
# not for PA HP-UX.
14601
lt_prog_compiler_pic_F77='-fPIC'
14607
lt_prog_compiler_pic_F77='-fPIC'
14611
# PORTME Check for flag to pass linker flags through the system compiler.
14614
lt_prog_compiler_wl_F77='-Wl,'
14615
if test "$host_cpu" = ia64; then
14616
# AIX 5 now supports IA64 processor
14617
lt_prog_compiler_static_F77='-Bstatic'
14619
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14623
# PIC is the default on this platform
14624
# Common symbols not allowed in MH_DYLIB files
14625
case $cc_basename in
14627
lt_prog_compiler_pic_F77='-qnocommon'
14628
lt_prog_compiler_wl_F77='-Wl,'
14633
mingw* | cygwin* | pw32* | os2*)
14634
# This hack is so that the source file can tell whether it is being
14635
# built for inclusion in a dll (and should export symbols for example).
14636
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14639
hpux9* | hpux10* | hpux11*)
14640
lt_prog_compiler_wl_F77='-Wl,'
14641
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14642
# not for PA HP-UX.
14648
lt_prog_compiler_pic_F77='+Z'
14651
# Is there a better lt_prog_compiler_static that works with the bundled CC?
14652
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14655
irix5* | irix6* | nonstopux*)
14656
lt_prog_compiler_wl_F77='-Wl,'
14657
# PIC (with -KPIC) is the default.
14658
lt_prog_compiler_static_F77='-non_shared'
14662
lt_prog_compiler_pic_F77='-KPIC'
14663
lt_prog_compiler_static_F77='-Bstatic'
14666
linux* | k*bsd*-gnu)
14667
case $cc_basename in
14669
lt_prog_compiler_wl_F77='-Wl,'
14670
lt_prog_compiler_pic_F77='-KPIC'
14671
lt_prog_compiler_static_F77='-static'
14673
pgcc* | pgf77* | pgf90* | pgf95*)
14674
# Portland Group compilers (*not* the Pentium gcc compiler,
14675
# which looks to be a dead project)
14676
lt_prog_compiler_wl_F77='-Wl,'
14677
lt_prog_compiler_pic_F77='-fpic'
14678
lt_prog_compiler_static_F77='-Bstatic'
14681
lt_prog_compiler_wl_F77='-Wl,'
14682
# All Alpha code is PIC.
14683
lt_prog_compiler_static_F77='-non_shared'
14686
case `$CC -V 2>&1 | sed 5q` in
14689
lt_prog_compiler_pic_F77='-KPIC'
14690
lt_prog_compiler_static_F77='-Bstatic'
14691
lt_prog_compiler_wl_F77='-Wl,'
14694
# Sun Fortran 8.3 passes all unrecognized flags to the linker
14695
lt_prog_compiler_pic_F77='-KPIC'
14696
lt_prog_compiler_static_F77='-Bstatic'
14697
lt_prog_compiler_wl_F77=''
14704
osf3* | osf4* | osf5*)
14705
lt_prog_compiler_wl_F77='-Wl,'
14706
# All OSF/1 code is PIC.
14707
lt_prog_compiler_static_F77='-non_shared'
14711
lt_prog_compiler_static_F77='-non_shared'
14715
lt_prog_compiler_pic_F77='-KPIC'
14716
lt_prog_compiler_static_F77='-Bstatic'
14717
case $cc_basename in
14718
f77* | f90* | f95*)
14719
lt_prog_compiler_wl_F77='-Qoption ld ';;
14721
lt_prog_compiler_wl_F77='-Wl,';;
14726
lt_prog_compiler_wl_F77='-Qoption ld '
14727
lt_prog_compiler_pic_F77='-PIC'
14728
lt_prog_compiler_static_F77='-Bstatic'
14731
sysv4 | sysv4.2uw2* | sysv4.3*)
14732
lt_prog_compiler_wl_F77='-Wl,'
14733
lt_prog_compiler_pic_F77='-KPIC'
14734
lt_prog_compiler_static_F77='-Bstatic'
14738
if test -d /usr/nec ;then
14739
lt_prog_compiler_pic_F77='-Kconform_pic'
14740
lt_prog_compiler_static_F77='-Bstatic'
14744
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14745
lt_prog_compiler_wl_F77='-Wl,'
14746
lt_prog_compiler_pic_F77='-KPIC'
14747
lt_prog_compiler_static_F77='-Bstatic'
14751
lt_prog_compiler_wl_F77='-Wl,'
14752
lt_prog_compiler_can_build_shared_F77=no
14756
lt_prog_compiler_pic_F77='-pic'
14757
lt_prog_compiler_static_F77='-Bstatic'
14761
lt_prog_compiler_can_build_shared_F77=no
14766
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14767
$as_echo "$lt_prog_compiler_pic_F77" >&6; }
14770
# Check to make sure the PIC flag actually works.
14772
if test -n "$lt_prog_compiler_pic_F77"; then
14774
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14775
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14776
if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14777
$as_echo_n "(cached) " >&6
14779
lt_cv_prog_compiler_pic_works_F77=no
14780
ac_outfile=conftest.$ac_objext
14781
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14782
lt_compiler_flag="$lt_prog_compiler_pic_F77"
14783
# Insert the option either (1) after the last *FLAGS variable, or
14784
# (2) before a word containing "conftest.", or (3) at the end.
14785
# Note that $ac_compile itself does not contain backslashes and begins
14786
# with a dollar sign (not a hyphen), so the echo should work correctly.
14787
# The option is referenced via a variable to avoid confusing sed.
14788
lt_compile=`echo "$ac_compile" | $SED \
14789
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14790
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14791
-e 's:$: $lt_compiler_flag:'`
14792
(eval echo "\"\$as_me:14792: $lt_compile\"" >&5)
14793
(eval "$lt_compile" 2>conftest.err)
14795
cat conftest.err >&5
14796
echo "$as_me:14796: \$? = $ac_status" >&5
14797
if (exit $ac_status) && test -s "$ac_outfile"; then
14798
# The compiler can only warn and ignore the option if not recognized
14799
# So say no if there are warnings other than the usual output.
14800
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14801
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14802
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14803
lt_cv_prog_compiler_pic_works_F77=yes
14809
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14810
$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
14812
if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14813
case $lt_prog_compiler_pic_F77 in
14815
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14818
lt_prog_compiler_pic_F77=
14819
lt_prog_compiler_can_build_shared_F77=no
14824
# For platforms which do not support PIC, -DPIC is meaningless:
14826
lt_prog_compiler_pic_F77=
14829
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14834
# Check to make sure the static flag actually works.
14836
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14837
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14838
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14839
if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14840
$as_echo_n "(cached) " >&6
14842
lt_cv_prog_compiler_static_works_F77=no
14843
save_LDFLAGS="$LDFLAGS"
14844
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14845
echo "$lt_simple_link_test_code" > conftest.$ac_ext
14846
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14847
# The linker can only warn and ignore the option if not recognized
14848
# So say no if there are warnings
14849
if test -s conftest.err; then
14850
# Append any errors to the config.log.
14851
cat conftest.err 1>&5
14852
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14853
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14854
if diff conftest.exp conftest.er2 >/dev/null; then
14855
lt_cv_prog_compiler_static_works_F77=yes
14858
lt_cv_prog_compiler_static_works_F77=yes
14862
LDFLAGS="$save_LDFLAGS"
14865
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14866
$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
14868
if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14871
lt_prog_compiler_static_F77=
14875
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14876
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14877
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14878
$as_echo_n "(cached) " >&6
14880
lt_cv_prog_compiler_c_o_F77=no
14881
$rm -r conftest 2>/dev/null
14885
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14887
lt_compiler_flag="-o out/conftest2.$ac_objext"
14888
# Insert the option either (1) after the last *FLAGS variable, or
14889
# (2) before a word containing "conftest.", or (3) at the end.
14890
# Note that $ac_compile itself does not contain backslashes and begins
14891
# with a dollar sign (not a hyphen), so the echo should work correctly.
14892
lt_compile=`echo "$ac_compile" | $SED \
14893
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14894
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14895
-e 's:$: $lt_compiler_flag:'`
14896
(eval echo "\"\$as_me:14896: $lt_compile\"" >&5)
14897
(eval "$lt_compile" 2>out/conftest.err)
14899
cat out/conftest.err >&5
14900
echo "$as_me:14900: \$? = $ac_status" >&5
14901
if (exit $ac_status) && test -s out/conftest2.$ac_objext
14903
# The compiler can only warn and ignore the option if not recognized
14904
# So say no if there are warnings
14905
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14906
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14907
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14908
lt_cv_prog_compiler_c_o_F77=yes
14913
# SGI C++ compiler will create directory out/ii_files/ for
14914
# template instantiation
14915
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14916
$rm out/* && rmdir out
14922
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14923
$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14926
hard_links="nottested"
14927
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14928
# do not overwrite the value of need_locks provided by the user
14929
{ $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14930
$as_echo_n "checking if we can lock with hard links... " >&6; }
14933
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14935
ln conftest.a conftest.b 2>&5 || hard_links=no
14936
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14937
{ $as_echo "$as_me:$LINENO: result: $hard_links" >&5
14938
$as_echo "$hard_links" >&6; }
14939
if test "$hard_links" = no; then
14940
{ $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14941
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14948
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14949
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14952
allow_undefined_flag_F77=
14953
enable_shared_with_static_runtimes_F77=no
14955
archive_expsym_cmds_F77=
14956
old_archive_From_new_cmds_F77=
14957
old_archive_from_expsyms_cmds_F77=
14958
export_dynamic_flag_spec_F77=
14959
whole_archive_flag_spec_F77=
14960
thread_safe_flag_spec_F77=
14961
hardcode_libdir_flag_spec_F77=
14962
hardcode_libdir_flag_spec_ld_F77=
14963
hardcode_libdir_separator_F77=
14964
hardcode_direct_F77=no
14965
hardcode_minus_L_F77=no
14966
hardcode_shlibpath_var_F77=unsupported
14967
link_all_deplibs_F77=unknown
14968
hardcode_automatic_F77=no
14970
module_expsym_cmds_F77=
14971
always_export_symbols_F77=no
14972
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14973
# include_expsyms should be a list of space-separated symbols to be *always*
14974
# included in the symbol list
14975
include_expsyms_F77=
14976
# exclude_expsyms can be an extended regexp of symbols to exclude
14977
# it will be wrapped by ` (' and `)$', so one must not match beginning or
14978
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14979
# as well as any symbol that contains `d'.
14980
exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14981
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14982
# platforms (ab)use it in PIC code, but their linkers get confused if
14983
# the symbol is explicitly referenced. Since portable code cannot
14984
# rely on this symbol name, it's probably fine to never include it in
14985
# preloaded symbol tables.
14986
# Exclude shared library initialization/finalization symbols.
14987
extract_expsyms_cmds=
14988
# Just being paranoid about ensuring that cc_basename is set.
14989
for cc_temp in $compiler""; do
14991
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14992
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14997
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15000
cygwin* | mingw* | pw32*)
15001
# FIXME: the MSVC++ port hasn't been tested in a loooong time
15002
# When not using gcc, we currently assume that we are using
15003
# Microsoft Visual C++.
15004
if test "$GCC" != yes; then
15009
# we just hope/assume this is gcc and not c89 (= MSVC++)
15018
if test "$with_gnu_ld" = yes; then
15019
# If archive_cmds runs LD, not CC, wlarc should be empty
15022
# Set some defaults for GNU ld with shared library support. These
15023
# are reset later if shared libraries are not supported. Putting them
15024
# here allows them to be overridden if necessary.
15025
runpath_var=LD_RUN_PATH
15026
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15027
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15028
# ancient GNU ld didn't support --whole-archive et. al.
15029
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15030
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15032
whole_archive_flag_spec_F77=
15034
supports_anon_versioning=no
15035
case `$LD -v 2>/dev/null` in
15036
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15037
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15038
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15039
*\ 2.11.*) ;; # other 2.11 versions
15040
*) supports_anon_versioning=yes ;;
15043
# See if GNU ld supports shared libraries.
15046
# On AIX/PPC, the GNU linker is very broken
15047
if test "$host_cpu" != ia64; then
15051
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15052
*** to be unable to reliably create shared libraries on AIX.
15053
*** Therefore, libtool is disabling shared libraries support. If you
15054
*** really care for shared libraries, you may want to modify your PATH
15055
*** so that a non-GNU linker is found, and then restart.
15062
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)'
15063
hardcode_libdir_flag_spec_F77='-L$libdir'
15064
hardcode_minus_L_F77=yes
15066
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15067
# that the semantics of dynamic libraries on AmigaOS, at least up
15068
# to version 4, is to share data among multiple programs linked
15069
# with the same dynamic library. Since this doesn't match the
15070
# behavior of shared libraries on other platforms, we can't use
15076
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15077
allow_undefined_flag_F77=unsupported
15078
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15079
# support --undefined. This deserves some investigation. FIXME
15080
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15086
cygwin* | mingw* | pw32*)
15087
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15088
# as there is no search path for DLLs.
15089
hardcode_libdir_flag_spec_F77='-L$libdir'
15090
allow_undefined_flag_F77=unsupported
15091
always_export_symbols_F77=no
15092
enable_shared_with_static_runtimes_F77=yes
15093
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15095
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15096
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15097
# If the export-symbols file already is a .def file (1st line
15098
# is EXPORTS), use it as is; otherwise, prepend...
15099
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15100
cp $export_symbols $output_objdir/$soname.def;
15102
echo EXPORTS > $output_objdir/$soname.def;
15103
cat $export_symbols >> $output_objdir/$soname.def;
15105
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15112
hardcode_direct_F77=no
15113
hardcode_shlibpath_var_F77=no
15114
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15115
export_dynamic_flag_spec_F77='${wl}-E'
15116
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15117
# Instead, shared libraries are loaded at an image base (0x10000000 by
15118
# default) and relocated if they conflict, which is a slow very memory
15119
# consuming and fragmenting process. To avoid this, we pick a random,
15120
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15121
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
15122
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'
15123
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'
15126
gnu* | linux* | k*bsd*-gnu)
15127
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15129
case $cc_basename,$host_cpu in
15130
pgcc*) # Portland Group C compiler
15131
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'
15132
tmp_addflag=' $pic_flag'
15134
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15135
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'
15136
tmp_addflag=' $pic_flag -Mnomain' ;;
15137
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15138
tmp_addflag=' -i_dynamic' ;;
15139
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15140
tmp_addflag=' -i_dynamic -nofor_main' ;;
15141
ifc* | ifort*) # Intel Fortran compiler
15142
tmp_addflag=' -nofor_main' ;;
15144
case `$CC -V 2>&1 | sed 5q` in
15145
*Sun\ C*) # Sun C 5.9
15146
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'
15147
tmp_sharedflag='-G' ;;
15148
*Sun\ F*) # Sun Fortran 8.3
15149
tmp_sharedflag='-G' ;;
15151
tmp_sharedflag='-shared' ;;
15153
archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15155
if test $supports_anon_versioning = yes; then
15156
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15157
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15158
$echo "local: *; };" >> $output_objdir/$libname.ver~
15159
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15167
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15168
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15171
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15172
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15177
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15181
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15182
*** create shared libraries on Solaris systems. Therefore, libtool
15183
*** is disabling shared libraries support. We urge you to upgrade GNU
15184
*** binutils to release 2.9.1 or newer. Another option is to modify
15185
*** your PATH or compiler configuration so that the native linker is
15186
*** used, and then restart.
15189
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15190
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15191
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15197
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15198
case `$LD -v 2>&1` in
15199
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15203
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15204
*** reliably create shared libraries on SCO systems. Therefore, libtool
15205
*** is disabling shared libraries support. We urge you to upgrade GNU
15206
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15207
*** your PATH or compiler configuration so that the native linker is
15208
*** used, and then restart.
15213
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15214
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15215
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15216
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15225
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15227
hardcode_direct_F77=yes
15228
hardcode_shlibpath_var_F77=no
15232
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15233
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15234
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15241
if test "$ld_shlibs_F77" = no; then
15243
hardcode_libdir_flag_spec_F77=
15244
export_dynamic_flag_spec_F77=
15245
whole_archive_flag_spec_F77=
15248
# PORTME fill in a description of your system's linker (not GNU ld)
15251
allow_undefined_flag_F77=unsupported
15252
always_export_symbols_F77=yes
15253
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'
15254
# Note: this linker hardcodes the directories in LIBPATH if there
15255
# are no directories specified by -L.
15256
hardcode_minus_L_F77=yes
15257
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15258
# Neither direct hardcoding nor static linking is supported with a
15260
hardcode_direct_F77=unsupported
15265
if test "$host_cpu" = ia64; then
15266
# On IA64, the linker does run time linking by default, so we don't
15267
# have to do anything special.
15268
aix_use_runtimelinking=no
15269
exp_sym_flag='-Bexport'
15272
# If we're using GNU nm, then we don't want the "-C" option.
15273
# -C means demangle to AIX nm, but means don't demangle with GNU nm
15274
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15275
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'
15277
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'
15279
aix_use_runtimelinking=no
15281
# Test if we are trying to use run time linking or normal
15282
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15283
# need to do runtime linking.
15284
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15285
for ld_flag in $LDFLAGS; do
15286
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15287
aix_use_runtimelinking=yes
15294
exp_sym_flag='-bexport'
15295
no_entry_flag='-bnoentry'
15298
# When large executables or shared objects are built, AIX ld can
15299
# have problems creating the table of contents. If linking a library
15300
# or program results in "error TOC overflow" add -mminimal-toc to
15301
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15302
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15304
archive_cmds_F77=''
15305
hardcode_direct_F77=yes
15306
hardcode_libdir_separator_F77=':'
15307
link_all_deplibs_F77=yes
15309
if test "$GCC" = yes; then
15310
case $host_os in aix4.[012]|aix4.[012].*)
15311
# We only want to do this on AIX 4.2 and lower, the check
15312
# below for broken collect2 doesn't work under 4.3+
15313
collect2name=`${CC} -print-prog-name=collect2`
15314
if test -f "$collect2name" && \
15315
strings "$collect2name" | grep resolve_lib_name >/dev/null
15317
# We have reworked collect2
15320
# We have old collect2
15321
hardcode_direct_F77=unsupported
15322
# It fails to find uninstalled libraries when the uninstalled
15323
# path is not listed in the libpath. Setting hardcode_minus_L
15324
# to unsupported forces relinking
15325
hardcode_minus_L_F77=yes
15326
hardcode_libdir_flag_spec_F77='-L$libdir'
15327
hardcode_libdir_separator_F77=
15331
shared_flag='-shared'
15332
if test "$aix_use_runtimelinking" = yes; then
15333
shared_flag="$shared_flag "'${wl}-G'
15337
if test "$host_cpu" = ia64; then
15338
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15339
# chokes on -Wl,-G. The following line is correct:
15342
if test "$aix_use_runtimelinking" = yes; then
15343
shared_flag='${wl}-G'
15345
shared_flag='${wl}-bM:SRE'
15350
# It seems that -bexpall does not export symbols beginning with
15351
# underscore (_), so it is better to generate a list of symbols to export.
15352
always_export_symbols_F77=yes
15353
if test "$aix_use_runtimelinking" = yes; then
15354
# Warning - without using the other runtime loading flags (-brtl),
15355
# -berok will link without error, but may produce a broken library.
15356
allow_undefined_flag_F77='-berok'
15357
# Determine the default libpath from the value encoded in an empty executable.
15358
cat >conftest.$ac_ext <<_ACEOF
15363
rm -f conftest.$ac_objext conftest$ac_exeext
15364
if { (ac_try="$ac_link"
15365
case "(($ac_try" in
15366
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15367
*) ac_try_echo=$ac_try;;
15369
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15370
$as_echo "$ac_try_echo") >&5
15371
(eval "$ac_link") 2>conftest.er1
15373
grep -v '^ *+' conftest.er1 >conftest.err
15375
cat conftest.err >&5
15376
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377
(exit $ac_status); } && {
15378
test -z "$ac_f77_werror_flag" ||
15379
test ! -s conftest.err
15380
} && test -s conftest$ac_exeext && {
15381
test "$cross_compiling" = yes ||
15382
$as_test_x conftest$ac_exeext
15385
lt_aix_libpath_sed='
15386
/Import File Strings/,/^$/ {
15392
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15393
# Check for a 64-bit object if we didn't find anything.
15394
if test -z "$aix_libpath"; then
15395
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15398
$as_echo "$as_me: failed program was:" >&5
15399
sed 's/^/| /' conftest.$ac_ext >&5
15404
rm -rf conftest.dSYM
15405
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15406
conftest$ac_exeext conftest.$ac_ext
15407
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15409
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15410
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"
15412
if test "$host_cpu" = ia64; then
15413
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15414
allow_undefined_flag_F77="-z nodefs"
15415
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"
15417
# Determine the default libpath from the value encoded in an empty executable.
15418
cat >conftest.$ac_ext <<_ACEOF
15423
rm -f conftest.$ac_objext conftest$ac_exeext
15424
if { (ac_try="$ac_link"
15425
case "(($ac_try" in
15426
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15427
*) ac_try_echo=$ac_try;;
15429
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15430
$as_echo "$ac_try_echo") >&5
15431
(eval "$ac_link") 2>conftest.er1
15433
grep -v '^ *+' conftest.er1 >conftest.err
15435
cat conftest.err >&5
15436
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437
(exit $ac_status); } && {
15438
test -z "$ac_f77_werror_flag" ||
15439
test ! -s conftest.err
15440
} && test -s conftest$ac_exeext && {
15441
test "$cross_compiling" = yes ||
15442
$as_test_x conftest$ac_exeext
15445
lt_aix_libpath_sed='
15446
/Import File Strings/,/^$/ {
15452
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15453
# Check for a 64-bit object if we didn't find anything.
15454
if test -z "$aix_libpath"; then
15455
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15458
$as_echo "$as_me: failed program was:" >&5
15459
sed 's/^/| /' conftest.$ac_ext >&5
15464
rm -rf conftest.dSYM
15465
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15466
conftest$ac_exeext conftest.$ac_ext
15467
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15469
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15470
# Warning - without using the other run time loading flags,
15471
# -berok will link without error, but may produce a broken library.
15472
no_undefined_flag_F77=' ${wl}-bernotok'
15473
allow_undefined_flag_F77=' ${wl}-berok'
15474
# Exported symbols can be pulled into shared objects from archives
15475
whole_archive_flag_spec_F77='$convenience'
15476
archive_cmds_need_lc_F77=yes
15477
# This is similar to how AIX traditionally builds its shared libraries.
15478
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'
15484
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)'
15485
hardcode_libdir_flag_spec_F77='-L$libdir'
15486
hardcode_minus_L_F77=yes
15487
# see comment about different semantics on the GNU ld section
15492
export_dynamic_flag_spec_F77=-rdynamic
15495
cygwin* | mingw* | pw32*)
15496
# When not using gcc, we currently assume that we are using
15497
# Microsoft Visual C++.
15498
# hardcode_libdir_flag_spec is actually meaningless, as there is
15499
# no search path for DLLs.
15500
hardcode_libdir_flag_spec_F77=' '
15501
allow_undefined_flag_F77=unsupported
15502
# Tell ltmain to make .lib files, not .a files.
15504
# Tell ltmain to make .dll files, not .so files.
15506
# FIXME: Setting linknames here is a bad hack.
15507
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15508
# The linker will automatically build a .lib file if we build a DLL.
15509
old_archive_From_new_cmds_F77='true'
15510
# FIXME: Should let the user specify the lib program.
15511
old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15512
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15513
enable_shared_with_static_runtimes_F77=yes
15516
darwin* | rhapsody*)
15518
rhapsody* | darwin1.[012])
15519
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15522
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15523
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15525
case ${MACOSX_DEPLOYMENT_TARGET} in
15527
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15530
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15536
archive_cmds_need_lc_F77=no
15537
hardcode_direct_F77=no
15538
hardcode_automatic_F77=yes
15539
hardcode_shlibpath_var_F77=unsupported
15540
whole_archive_flag_spec_F77=''
15541
link_all_deplibs_F77=yes
15542
if test "$GCC" = yes ; then
15543
output_verbose_link_cmd='echo'
15544
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}"
15545
module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15546
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}"
15547
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}"
15549
case $cc_basename in
15551
output_verbose_link_cmd='echo'
15552
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15553
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15554
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15555
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}'
15556
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}'
15566
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15567
hardcode_libdir_flag_spec_F77='-L$libdir'
15568
hardcode_shlibpath_var_F77=no
15575
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15576
# support. Future versions do this automatically, but an explicit c++rt0.o
15577
# does not break anything, and helps significantly (at the cost of a little
15580
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15581
hardcode_libdir_flag_spec_F77='-R$libdir'
15582
hardcode_direct_F77=yes
15583
hardcode_shlibpath_var_F77=no
15586
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
15588
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15589
hardcode_direct_F77=yes
15590
hardcode_minus_L_F77=yes
15591
hardcode_shlibpath_var_F77=no
15594
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15595
freebsd* | dragonfly*)
15596
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15597
hardcode_libdir_flag_spec_F77='-R$libdir'
15598
hardcode_direct_F77=yes
15599
hardcode_shlibpath_var_F77=no
15603
if test "$GCC" = yes; then
15604
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'
15606
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'
15608
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15609
hardcode_libdir_separator_F77=:
15610
hardcode_direct_F77=yes
15612
# hardcode_minus_L: Not really in the search PATH,
15613
# but as the default location of the library.
15614
hardcode_minus_L_F77=yes
15615
export_dynamic_flag_spec_F77='${wl}-E'
15619
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15620
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15622
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15624
if test "$with_gnu_ld" = no; then
15625
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15626
hardcode_libdir_separator_F77=:
15628
hardcode_direct_F77=yes
15629
export_dynamic_flag_spec_F77='${wl}-E'
15631
# hardcode_minus_L: Not really in the search PATH,
15632
# but as the default location of the library.
15633
hardcode_minus_L_F77=yes
15638
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15641
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15644
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15647
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15653
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15656
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15659
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15663
if test "$with_gnu_ld" = no; then
15664
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15665
hardcode_libdir_separator_F77=:
15669
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15670
hardcode_direct_F77=no
15671
hardcode_shlibpath_var_F77=no
15674
hardcode_direct_F77=yes
15675
export_dynamic_flag_spec_F77='${wl}-E'
15677
# hardcode_minus_L: Not really in the search PATH,
15678
# but as the default location of the library.
15679
hardcode_minus_L_F77=yes
15685
irix5* | irix6* | nonstopux*)
15686
if test "$GCC" = yes; then
15687
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'
15689
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'
15690
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15692
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15693
hardcode_libdir_separator_F77=:
15694
link_all_deplibs_F77=yes
15698
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15699
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15701
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15703
hardcode_libdir_flag_spec_F77='-R$libdir'
15704
hardcode_direct_F77=yes
15705
hardcode_shlibpath_var_F77=no
15709
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15710
hardcode_direct_F77=yes
15711
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15712
hardcode_libdir_separator_F77=:
15713
hardcode_shlibpath_var_F77=no
15717
if test -f /usr/libexec/ld.so; then
15718
hardcode_direct_F77=yes
15719
hardcode_shlibpath_var_F77=no
15720
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15721
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15722
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15723
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15724
export_dynamic_flag_spec_F77='${wl}-E'
15727
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15728
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15729
hardcode_libdir_flag_spec_F77='-R$libdir'
15732
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15733
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15743
hardcode_libdir_flag_spec_F77='-L$libdir'
15744
hardcode_minus_L_F77=yes
15745
allow_undefined_flag_F77=unsupported
15746
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'
15747
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15751
if test "$GCC" = yes; then
15752
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15753
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'
15755
allow_undefined_flag_F77=' -expect_unresolved \*'
15756
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'
15758
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15759
hardcode_libdir_separator_F77=:
15762
osf4* | osf5*) # as osf3* with the addition of -msym flag
15763
if test "$GCC" = yes; then
15764
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15765
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'
15766
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15768
allow_undefined_flag_F77=' -expect_unresolved \*'
15769
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'
15770
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~
15771
$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'
15773
# Both c and cxx compiler support -rpath directly
15774
hardcode_libdir_flag_spec_F77='-rpath $libdir'
15776
hardcode_libdir_separator_F77=:
15780
no_undefined_flag_F77=' -z text'
15781
if test "$GCC" = yes; then
15783
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15784
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15785
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15788
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15789
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15790
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15792
hardcode_libdir_flag_spec_F77='-R$libdir'
15793
hardcode_shlibpath_var_F77=no
15795
solaris2.[0-5] | solaris2.[0-5].*) ;;
15797
# The compiler driver will combine and reorder linker options,
15798
# but understands `-z linker_flag'. GCC discards it without `$wl',
15799
# but is careful enough not to reorder.
15800
# Supported since Solaris 2.6 (maybe 2.5.1?)
15801
if test "$GCC" = yes; then
15802
whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15804
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15808
link_all_deplibs_F77=yes
15812
if test "x$host_vendor" = xsequent; then
15813
# Use $CC to link under sequent, because it throws in some extra .o
15814
# files that make .init and .fini sections work.
15815
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15817
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15819
hardcode_libdir_flag_spec_F77='-L$libdir'
15820
hardcode_direct_F77=yes
15821
hardcode_minus_L_F77=yes
15822
hardcode_shlibpath_var_F77=no
15826
case $host_vendor in
15828
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15829
hardcode_direct_F77=yes # is this really true???
15832
## LD is ld it makes a PLAMLIB
15833
## CC just makes a GrossModule.
15834
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15835
reload_cmds_F77='$CC -r -o $output$reload_objs'
15836
hardcode_direct_F77=no
15839
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15840
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15843
runpath_var='LD_RUN_PATH'
15844
hardcode_shlibpath_var_F77=no
15848
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15849
hardcode_shlibpath_var_F77=no
15850
export_dynamic_flag_spec_F77='-Bexport'
15854
if test -d /usr/nec; then
15855
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15856
hardcode_shlibpath_var_F77=no
15857
runpath_var=LD_RUN_PATH
15858
hardcode_runpath_var=yes
15863
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15864
no_undefined_flag_F77='${wl}-z,text'
15865
archive_cmds_need_lc_F77=no
15866
hardcode_shlibpath_var_F77=no
15867
runpath_var='LD_RUN_PATH'
15869
if test "$GCC" = yes; then
15870
archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15871
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15873
archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15874
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15878
sysv5* | sco3.2v5* | sco5v6*)
15879
# Note: We can NOT use -z defs as we might desire, because we do not
15880
# link with -lc, and that would cause any symbols used from libc to
15881
# always be unresolved, which means just about no library would
15882
# ever link correctly. If we're not using GNU ld we use -z text
15883
# though, which does catch some bad symbols but isn't as heavy-handed
15885
no_undefined_flag_F77='${wl}-z,text'
15886
allow_undefined_flag_F77='${wl}-z,nodefs'
15887
archive_cmds_need_lc_F77=no
15888
hardcode_shlibpath_var_F77=no
15889
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15890
hardcode_libdir_separator_F77=':'
15891
link_all_deplibs_F77=yes
15892
export_dynamic_flag_spec_F77='${wl}-Bexport'
15893
runpath_var='LD_RUN_PATH'
15895
if test "$GCC" = yes; then
15896
archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15897
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15899
archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15900
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15905
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15906
hardcode_libdir_flag_spec_F77='-L$libdir'
15907
hardcode_shlibpath_var_F77=no
15916
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15917
$as_echo "$ld_shlibs_F77" >&6; }
15918
test "$ld_shlibs_F77" = no && can_build_shared=no
15921
# Do we need to explicitly link libc?
15923
case "x$archive_cmds_need_lc_F77" in
15925
# Assume -lc should be added
15926
archive_cmds_need_lc_F77=yes
15928
if test "$enable_shared" = yes && test "$GCC" = yes; then
15929
case $archive_cmds_F77 in
15931
# FIXME: we may have to deal with multi-command sequences.
15934
# Test whether the compiler implicitly links with -lc since on some
15935
# systems, -lgcc has to come before -lc. If gcc already passes -lc
15936
# to ld, don't add -lc before -lgcc.
15937
{ $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15938
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15940
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15942
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15943
(eval $ac_compile) 2>&5
15945
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15946
(exit $ac_status); } 2>conftest.err; then
15949
libobjs=conftest.$ac_objext
15951
wl=$lt_prog_compiler_wl_F77
15952
pic_flag=$lt_prog_compiler_pic_F77
15958
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15959
allow_undefined_flag_F77=
15960
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15961
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15963
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15964
(exit $ac_status); }
15966
archive_cmds_need_lc_F77=no
15968
archive_cmds_need_lc_F77=yes
15970
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15972
cat conftest.err 1>&5
15975
{ $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15976
$as_echo "$archive_cmds_need_lc_F77" >&6; }
15983
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15984
$as_echo_n "checking dynamic linker characteristics... " >&6; }
15985
library_names_spec=
15986
libname_spec='lib$name'
15990
postuninstall_cmds=
15994
shlibpath_overrides_runpath=unknown
15996
dynamic_linker="$host_os ld.so"
15997
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15999
need_lib_prefix=unknown
16000
hardcode_into_libs=no
16002
# when you set need_version to no, make sure it does not cause -set_version
16003
# flags to be left without arguments
16004
need_version=unknown
16009
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16010
shlibpath_var=LIBPATH
16012
# AIX 3 has no versioning support, so we append a major version to the name.
16013
soname_spec='${libname}${release}${shared_ext}$major'
16020
hardcode_into_libs=yes
16021
if test "$host_cpu" = ia64; then
16022
# AIX 5 supports IA64
16023
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16024
shlibpath_var=LD_LIBRARY_PATH
16026
# With GCC up to 2.95.x, collect2 would create an import file
16027
# for dependence libraries. The import file would start with
16028
# the line `#! .'. This would cause the generated library to
16029
# depend on `.', always an invalid library. This was fixed in
16030
# development snapshots of GCC prior to 3.0.
16032
aix4 | aix4.[01] | aix4.[01].*)
16033
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16035
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16038
can_build_shared=no
16042
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16043
# soname into executable. Probably we can add versioning support to
16044
# collect2, so additional links can be useful in future.
16045
if test "$aix_use_runtimelinking" = yes; then
16046
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
16047
# instead of lib<name>.a to let people know that these are not
16048
# typical AIX shared libraries.
16049
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16051
# We preserve .a as extension for shared libraries through AIX4.2
16052
# and later when we are not doing run time linking.
16053
library_names_spec='${libname}${release}.a $libname.a'
16054
soname_spec='${libname}${release}${shared_ext}$major'
16056
shlibpath_var=LIBPATH
16061
library_names_spec='$libname.ixlibrary $libname.a'
16062
# Create ${libname}_ixlibrary.a entries in /sys/libs.
16063
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'
16067
library_names_spec='${libname}${shared_ext}'
16068
dynamic_linker="$host_os ld.so"
16069
shlibpath_var=LIBRARY_PATH
16075
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16076
soname_spec='${libname}${release}${shared_ext}$major'
16077
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16078
shlibpath_var=LD_LIBRARY_PATH
16079
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16080
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16081
# the default ld.so.conf also contains /usr/contrib/lib and
16082
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16083
# libtool to hard-code these into programs
16086
cygwin* | mingw* | pw32*)
16087
version_type=windows
16092
case $GCC,$host_os in
16093
yes,cygwin* | yes,mingw* | yes,pw32*)
16094
library_names_spec='$libname.dll.a'
16095
# DLL is installed to $(libdir)/../bin by postinstall_cmds
16096
postinstall_cmds='base_file=`basename \${file}`~
16097
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16098
dldir=$destdir/`dirname \$dlpath`~
16099
test -d \$dldir || mkdir -p \$dldir~
16100
$install_prog $dir/$dlname \$dldir/$dlname~
16101
chmod a+x \$dldir/$dlname'
16102
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16103
dlpath=$dir/\$dldll~
16105
shlibpath_overrides_runpath=yes
16109
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
16110
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16111
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16114
# MinGW DLLs use traditional 'lib' prefix
16115
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16116
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16117
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16118
# It is most probably a Windows format PATH printed by
16119
# mingw gcc, but we are running on Cygwin. Gcc prints its search
16120
# path with ; separators, and with drive letters. We can handle the
16121
# drive letters (cygwin fileutils understands them), so leave them,
16122
# especially as we might pass files found there to a mingw objdump,
16123
# which wouldn't understand a cygwinified path. Ahh.
16124
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16126
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16130
# pw32 DLLs use 'pw' prefix rather than 'lib'
16131
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16137
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16140
dynamic_linker='Win32 ld.exe'
16141
# FIXME: first we should search . and the directory the executable is in
16145
darwin* | rhapsody*)
16146
dynamic_linker="$host_os dyld"
16147
version_type=darwin
16150
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16151
soname_spec='${libname}${release}${major}$shared_ext'
16152
shlibpath_overrides_runpath=yes
16153
shlibpath_var=DYLD_LIBRARY_PATH
16154
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16156
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16163
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16164
soname_spec='${libname}${release}${shared_ext}$major'
16165
shlibpath_var=LD_LIBRARY_PATH
16172
freebsd* | dragonfly*)
16173
# DragonFly does not have aout. When/if they implement a new
16174
# versioning mechanism, adjust this.
16175
if test -x /usr/bin/objformat; then
16176
objformat=`/usr/bin/objformat`
16179
freebsd[123]*) objformat=aout ;;
16180
*) objformat=elf ;;
16183
version_type=freebsd-$objformat
16184
case $version_type in
16186
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16191
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16195
shlibpath_var=LD_LIBRARY_PATH
16198
shlibpath_overrides_runpath=yes
16200
freebsd3.[01]* | freebsdelf3.[01]*)
16201
shlibpath_overrides_runpath=yes
16202
hardcode_into_libs=yes
16204
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16205
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16206
shlibpath_overrides_runpath=no
16207
hardcode_into_libs=yes
16209
*) # from 4.6 on, and DragonFly
16210
shlibpath_overrides_runpath=yes
16211
hardcode_into_libs=yes
16220
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16221
soname_spec='${libname}${release}${shared_ext}$major'
16222
shlibpath_var=LD_LIBRARY_PATH
16223
hardcode_into_libs=yes
16226
hpux9* | hpux10* | hpux11*)
16227
# Give a soname corresponding to the major version so that dld.sl refuses to
16228
# link against other versions.
16235
hardcode_into_libs=yes
16236
dynamic_linker="$host_os dld.so"
16237
shlibpath_var=LD_LIBRARY_PATH
16238
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16239
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16240
soname_spec='${libname}${release}${shared_ext}$major'
16241
if test "X$HPUX_IA64_MODE" = X32; then
16242
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16244
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16246
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16250
hardcode_into_libs=yes
16251
dynamic_linker="$host_os dld.sl"
16252
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16253
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16254
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16255
soname_spec='${libname}${release}${shared_ext}$major'
16256
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16257
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16261
dynamic_linker="$host_os dld.sl"
16262
shlibpath_var=SHLIB_PATH
16263
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16264
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16265
soname_spec='${libname}${release}${shared_ext}$major'
16268
# HP-UX runs *really* slowly unless shared libraries are mode 555.
16269
postinstall_cmds='chmod 555 $lib'
16276
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16277
soname_spec='${libname}${release}${shared_ext}$major'
16278
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16279
shlibpath_var=LD_LIBRARY_PATH
16280
shlibpath_overrides_runpath=no
16281
hardcode_into_libs=yes
16284
irix5* | irix6* | nonstopux*)
16286
nonstopux*) version_type=nonstopux ;;
16288
if test "$lt_cv_prog_gnu_ld" = yes; then
16296
soname_spec='${libname}${release}${shared_ext}$major'
16297
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16299
irix5* | nonstopux*)
16300
libsuff= shlibsuff=
16303
case $LD in # libtool.m4 will add one of these switches to LD
16304
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16305
libsuff= shlibsuff= libmagic=32-bit;;
16306
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16307
libsuff=32 shlibsuff=N32 libmagic=N32;;
16308
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16309
libsuff=64 shlibsuff=64 libmagic=64-bit;;
16310
*) libsuff= shlibsuff= libmagic=never-match;;
16314
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16315
shlibpath_overrides_runpath=no
16316
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16317
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16318
hardcode_into_libs=yes
16321
# No shared lib support for Linux oldld, aout, or coff.
16322
linux*oldld* | linux*aout* | linux*coff*)
16326
# This must be Linux ELF.
16327
linux* | k*bsd*-gnu)
16331
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16332
soname_spec='${libname}${release}${shared_ext}$major'
16333
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16334
shlibpath_var=LD_LIBRARY_PATH
16335
shlibpath_overrides_runpath=no
16336
# This implies no fast_install, which is unacceptable.
16337
# Some rework will be needed to allow for fast_install
16338
# before this can be enabled.
16339
hardcode_into_libs=yes
16340
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16341
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16343
# Append ld.so.conf contents to the search path
16344
if test -f /etc/ld.so.conf; then
16345
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' ' '`
16346
sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16349
# We used to test for /lib/ld.so.1 and disable shared libraries on
16350
# powerpc, because MkLinux only supported shared libraries with the
16351
# GNU dynamic linker. Since this was broken with cross compilers,
16352
# most powerpc-linux boxes support dynamic linking these days and
16353
# people can always --disable-shared, the test was removed, and we
16354
# assume the GNU/Linux dynamic linker is in use.
16355
dynamic_linker='GNU/Linux ld.so'
16362
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16363
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16364
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16365
dynamic_linker='NetBSD (a.out) ld.so'
16367
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16368
soname_spec='${libname}${release}${shared_ext}$major'
16369
dynamic_linker='NetBSD ld.elf_so'
16371
shlibpath_var=LD_LIBRARY_PATH
16372
shlibpath_overrides_runpath=yes
16373
hardcode_into_libs=yes
16378
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16379
shlibpath_var=LD_LIBRARY_PATH
16380
shlibpath_overrides_runpath=yes
16387
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16388
soname_spec='${libname}${release}${shared_ext}$major'
16389
shlibpath_var=LD_LIBRARY_PATH
16390
shlibpath_overrides_runpath=yes
16395
sys_lib_dlsearch_path_spec="/usr/lib"
16397
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16399
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16400
*) need_version=no ;;
16402
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16403
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16404
shlibpath_var=LD_LIBRARY_PATH
16405
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16407
openbsd2.[89] | openbsd2.[89].*)
16408
shlibpath_overrides_runpath=no
16411
shlibpath_overrides_runpath=yes
16415
shlibpath_overrides_runpath=yes
16420
libname_spec='$name'
16423
library_names_spec='$libname${shared_ext} $libname.a'
16424
dynamic_linker='OS/2 ld.exe'
16425
shlibpath_var=LIBPATH
16428
osf3* | osf4* | osf5*)
16432
soname_spec='${libname}${release}${shared_ext}$major'
16433
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16434
shlibpath_var=LD_LIBRARY_PATH
16435
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16436
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16447
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16448
soname_spec='${libname}${release}${shared_ext}$major'
16449
shlibpath_var=LD_LIBRARY_PATH
16450
shlibpath_overrides_runpath=yes
16451
hardcode_into_libs=yes
16452
# ldd complains unless libraries are executable
16453
postinstall_cmds='chmod +x $lib'
16458
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16459
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16460
shlibpath_var=LD_LIBRARY_PATH
16461
shlibpath_overrides_runpath=yes
16462
if test "$with_gnu_ld" = yes; then
16470
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16471
soname_spec='${libname}${release}${shared_ext}$major'
16472
shlibpath_var=LD_LIBRARY_PATH
16473
case $host_vendor in
16475
shlibpath_overrides_runpath=no
16477
export_dynamic_flag_spec='${wl}-Blargedynsym'
16478
runpath_var=LD_RUN_PATH
16486
shlibpath_overrides_runpath=no
16487
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16493
if test -d /usr/nec ;then
16495
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16496
soname_spec='$libname${shared_ext}.$major'
16497
shlibpath_var=LD_LIBRARY_PATH
16501
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16502
version_type=freebsd-elf
16505
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16506
soname_spec='${libname}${release}${shared_ext}$major'
16507
shlibpath_var=LD_LIBRARY_PATH
16508
hardcode_into_libs=yes
16509
if test "$with_gnu_ld" = yes; then
16510
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16511
shlibpath_overrides_runpath=no
16513
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16514
shlibpath_overrides_runpath=yes
16517
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16521
sys_lib_dlsearch_path_spec='/usr/lib'
16526
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16527
soname_spec='${libname}${release}${shared_ext}$major'
16528
shlibpath_var=LD_LIBRARY_PATH
16535
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16536
$as_echo "$dynamic_linker" >&6; }
16537
test "$dynamic_linker" = no && can_build_shared=no
16539
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16540
$as_echo_n "(cached) " >&6
16542
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16545
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16546
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16547
$as_echo_n "(cached) " >&6
16549
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16552
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16554
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16555
if test "$GCC" = yes; then
16556
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16559
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16560
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16561
hardcode_action_F77=
16562
if test -n "$hardcode_libdir_flag_spec_F77" || \
16563
test -n "$runpath_var_F77" || \
16564
test "X$hardcode_automatic_F77" = "Xyes" ; then
16566
# We can hardcode non-existant directories.
16567
if test "$hardcode_direct_F77" != no &&
16568
# If the only mechanism to avoid hardcoding is shlibpath_var, we
16569
# have to relink, otherwise we might link with an installed library
16570
# when we should be linking with a yet-to-be-installed one
16571
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16572
test "$hardcode_minus_L_F77" != no; then
16573
# Linking always hardcodes the temporary library directory.
16574
hardcode_action_F77=relink
16576
# We can link without hardcoding, and we can hardcode nonexisting dirs.
16577
hardcode_action_F77=immediate
16580
# We cannot hardcode anything, or else we can only hardcode existing
16582
hardcode_action_F77=unsupported
16584
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16585
$as_echo "$hardcode_action_F77" >&6; }
16587
if test "$hardcode_action_F77" = relink; then
16588
# Fast installation is not supported
16589
enable_fast_install=no
16590
elif test "$shlibpath_overrides_runpath" = yes ||
16591
test "$enable_shared" = no; then
16592
# Fast installation is not necessary
16593
enable_fast_install=needless
16597
# The else clause should only fire when bootstrapping the
16598
# libtool distribution, otherwise you forgot to ship ltmain.sh
16599
# with your package, and you will get complaints that there are
16600
# no rules to generate ltmain.sh.
16601
if test -f "$ltmain"; then
16602
# See if we are running on zsh, and set the options which allow our commands through
16603
# without removal of \ escapes.
16604
if test -n "${ZSH_VERSION+set}" ; then
16605
setopt NO_GLOB_SUBST
16607
# Now quote all the things that may contain metacharacters while being
16608
# careful not to overquote the AC_SUBSTed values. We take copies of the
16609
# variables and quote the copies for generation of the libtool script.
16610
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16612
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16613
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16614
deplibs_check_method reload_flag reload_cmds need_locks \
16615
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16616
lt_cv_sys_global_symbol_to_c_name_address \
16617
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16618
old_postinstall_cmds old_postuninstall_cmds \
16622
lt_prog_compiler_wl_F77 \
16623
lt_prog_compiler_pic_F77 \
16624
lt_prog_compiler_static_F77 \
16625
lt_prog_compiler_no_builtin_flag_F77 \
16626
export_dynamic_flag_spec_F77 \
16627
thread_safe_flag_spec_F77 \
16628
whole_archive_flag_spec_F77 \
16629
enable_shared_with_static_runtimes_F77 \
16630
old_archive_cmds_F77 \
16631
old_archive_from_new_cmds_F77 \
16632
predep_objects_F77 \
16633
postdep_objects_F77 \
16636
compiler_lib_search_path_F77 \
16637
compiler_lib_search_dirs_F77 \
16639
archive_expsym_cmds_F77 \
16640
postinstall_cmds_F77 \
16641
postuninstall_cmds_F77 \
16642
old_archive_from_expsyms_cmds_F77 \
16643
allow_undefined_flag_F77 \
16644
no_undefined_flag_F77 \
16645
export_symbols_cmds_F77 \
16646
hardcode_libdir_flag_spec_F77 \
16647
hardcode_libdir_flag_spec_ld_F77 \
16648
hardcode_libdir_separator_F77 \
16649
hardcode_automatic_F77 \
16651
module_expsym_cmds_F77 \
16652
lt_cv_prog_compiler_c_o_F77 \
16653
fix_srcfile_path_F77 \
16654
exclude_expsyms_F77 \
16655
include_expsyms_F77; do
16658
old_archive_cmds_F77 | \
16659
old_archive_from_new_cmds_F77 | \
16660
archive_cmds_F77 | \
16661
archive_expsym_cmds_F77 | \
16662
module_cmds_F77 | \
16663
module_expsym_cmds_F77 | \
16664
old_archive_from_expsyms_cmds_F77 | \
16665
export_symbols_cmds_F77 | \
16666
extract_expsyms_cmds | reload_cmds | finish_cmds | \
16667
postinstall_cmds | postuninstall_cmds | \
16668
old_postinstall_cmds | old_postuninstall_cmds | \
16669
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16670
# Double-quote double-evaled strings.
16671
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16674
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16680
*'\$0 --fallback-echo"')
16681
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16687
cat <<__EOF__ >> "$cfgfile"
16688
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16690
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16692
# Shell to use when invoking shell scripts.
16695
# Whether or not to build shared libraries.
16696
build_libtool_libs=$enable_shared
16698
# Whether or not to build static libraries.
16699
build_old_libs=$enable_static
16701
# Whether or not to add -lc for building shared libraries.
16702
build_libtool_need_lc=$archive_cmds_need_lc_F77
16704
# Whether or not to disallow shared libs when runtime libs are static
16705
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16707
# Whether or not to optimize for fast installation.
16708
fast_install=$enable_fast_install
16711
host_alias=$host_alias
16715
# The build system.
16716
build_alias=$build_alias
16720
# An echo program that does not interpret backslashes.
16725
AR_FLAGS=$lt_AR_FLAGS
16730
# LTCC compiler flags.
16731
LTCFLAGS=$lt_LTCFLAGS
16733
# A language-specific compiler.
16734
CC=$lt_compiler_F77
16736
# Is the compiler the GNU C compiler?
16742
# The linker used to build libraries.
16745
# Whether we need hard or soft links.
16748
# A BSD-compatible nm program.
16751
# A symbol stripping program
16754
# Used to examine libraries when file_magic_cmd begins "file"
16755
MAGIC_CMD=$MAGIC_CMD
16757
# Used on cygwin: DLL creation program.
16760
# Used on cygwin: object dumper.
16763
# Used on cygwin: assembler.
16766
# The name of the directory that contains temporary libtool files.
16769
# How to create reloadable object files.
16770
reload_flag=$lt_reload_flag
16771
reload_cmds=$lt_reload_cmds
16773
# How to pass a linker flag through the compiler.
16774
wl=$lt_lt_prog_compiler_wl_F77
16776
# Object file suffix (normally "o").
16777
objext="$ac_objext"
16779
# Old archive suffix (normally "a").
16782
# Shared library suffix (normally ".so").
16783
shrext_cmds='$shrext_cmds'
16785
# Executable file suffix (normally "").
16788
# Additional compiler flags for building library objects.
16789
pic_flag=$lt_lt_prog_compiler_pic_F77
16792
# What is the maximum length of a command?
16793
max_cmd_len=$lt_cv_sys_max_cmd_len
16795
# Does compiler simultaneously support -c and -o options?
16796
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16798
# Must we lock files when doing compilation?
16799
need_locks=$lt_need_locks
16801
# Do we need the lib prefix for modules?
16802
need_lib_prefix=$need_lib_prefix
16804
# Do we need a version for libraries?
16805
need_version=$need_version
16807
# Whether dlopen is supported.
16808
dlopen_support=$enable_dlopen
16810
# Whether dlopen of programs is supported.
16811
dlopen_self=$enable_dlopen_self
16813
# Whether dlopen of statically linked programs is supported.
16814
dlopen_self_static=$enable_dlopen_self_static
16816
# Compiler flag to prevent dynamic linking.
16817
link_static_flag=$lt_lt_prog_compiler_static_F77
16819
# Compiler flag to turn off builtin functions.
16820
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16822
# Compiler flag to allow reflexive dlopens.
16823
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16825
# Compiler flag to generate shared objects directly from archives.
16826
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16828
# Compiler flag to generate thread-safe objects.
16829
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16831
# Library versioning type.
16832
version_type=$version_type
16834
# Format of library name prefix.
16835
libname_spec=$lt_libname_spec
16837
# List of archive names. First name is the real one, the rest are links.
16838
# The last name is the one that the linker finds with -lNAME.
16839
library_names_spec=$lt_library_names_spec
16841
# The coded name of the library, if different from the real name.
16842
soname_spec=$lt_soname_spec
16844
# Commands used to build and install an old-style archive.
16846
old_archive_cmds=$lt_old_archive_cmds_F77
16847
old_postinstall_cmds=$lt_old_postinstall_cmds
16848
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16850
# Create an old-style archive from a shared archive.
16851
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16853
# Create a temporary old-style archive to link instead of a shared archive.
16854
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16856
# Commands used to build and install a shared archive.
16857
archive_cmds=$lt_archive_cmds_F77
16858
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16859
postinstall_cmds=$lt_postinstall_cmds
16860
postuninstall_cmds=$lt_postuninstall_cmds
16862
# Commands used to build a loadable module (assumed same as above if empty)
16863
module_cmds=$lt_module_cmds_F77
16864
module_expsym_cmds=$lt_module_expsym_cmds_F77
16866
# Commands to strip libraries.
16867
old_striplib=$lt_old_striplib
16868
striplib=$lt_striplib
16870
# Dependencies to place before the objects being linked to create a
16872
predep_objects=$lt_predep_objects_F77
16874
# Dependencies to place after the objects being linked to create a
16876
postdep_objects=$lt_postdep_objects_F77
16878
# Dependencies to place before the objects being linked to create a
16880
predeps=$lt_predeps_F77
16882
# Dependencies to place after the objects being linked to create a
16884
postdeps=$lt_postdeps_F77
16886
# The directories searched by this compiler when creating a shared
16888
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16890
# The library search path used internally by the compiler when linking
16891
# a shared library.
16892
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16894
# Method to check whether dependent libraries are shared objects.
16895
deplibs_check_method=$lt_deplibs_check_method
16897
# Command to use when deplibs_check_method == file_magic.
16898
file_magic_cmd=$lt_file_magic_cmd
16900
# Flag that allows shared libraries with undefined symbols to be built.
16901
allow_undefined_flag=$lt_allow_undefined_flag_F77
16903
# Flag that forces no undefined symbols.
16904
no_undefined_flag=$lt_no_undefined_flag_F77
16906
# Commands used to finish a libtool library installation in a directory.
16907
finish_cmds=$lt_finish_cmds
16909
# Same as above, but a single script fragment to be evaled but not shown.
16910
finish_eval=$lt_finish_eval
16912
# Take the output of nm and produce a listing of raw symbols and C names.
16913
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16915
# Transform the output of nm in a proper C declaration
16916
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16918
# Transform the output of nm in a C name address pair
16919
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16921
# This is the shared library runtime path variable.
16922
runpath_var=$runpath_var
16924
# This is the shared library path variable.
16925
shlibpath_var=$shlibpath_var
16927
# Is shlibpath searched before the hard-coded library search path?
16928
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16930
# How to hardcode a shared library path into an executable.
16931
hardcode_action=$hardcode_action_F77
16933
# Whether we should hardcode library paths into libraries.
16934
hardcode_into_libs=$hardcode_into_libs
16936
# Flag to hardcode \$libdir into a binary during linking.
16937
# This must work even if \$libdir does not exist.
16938
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16940
# If ld is used when linking, flag to hardcode \$libdir into
16941
# a binary during linking. This must work even if \$libdir does
16943
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16945
# Whether we need a single -rpath flag with a separated argument.
16946
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16948
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16949
# resulting binary.
16950
hardcode_direct=$hardcode_direct_F77
16952
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16953
# resulting binary.
16954
hardcode_minus_L=$hardcode_minus_L_F77
16956
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16957
# the resulting binary.
16958
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16960
# Set to yes if building a shared library automatically hardcodes DIR into the library
16961
# and all subsequent libraries and executables linked against it.
16962
hardcode_automatic=$hardcode_automatic_F77
16964
# Variables whose values should be saved in libtool wrapper scripts and
16965
# restored at relink time.
16966
variables_saved_for_relink="$variables_saved_for_relink"
16968
# Whether libtool must link a program against all its dependency libraries.
16969
link_all_deplibs=$link_all_deplibs_F77
16971
# Compile-time system search path for libraries
16972
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16974
# Run-time system search path for libraries
16975
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16977
# Fix the shell variable \$srcfile for the compiler.
16978
fix_srcfile_path=$lt_fix_srcfile_path
16980
# Set to yes if exported symbols are required.
16981
always_export_symbols=$always_export_symbols_F77
16983
# The commands to list exported symbols.
16984
export_symbols_cmds=$lt_export_symbols_cmds_F77
16986
# The commands to extract the exported symbol list from a shared archive.
16987
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16989
# Symbols that should not be listed in the preloaded symbols.
16990
exclude_expsyms=$lt_exclude_expsyms_F77
16992
# Symbols that must always be exported.
16993
include_expsyms=$lt_include_expsyms_F77
16995
# ### END LIBTOOL TAG CONFIG: $tagname
17001
# If there is no Makefile yet, we rely on a make rule to execute
17002
# `config.status --recheck' to rerun these tests and create the
17003
# libtool script then.
17004
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17005
if test -f "$ltmain_in"; then
17006
test -f Makefile && make "$ltmain"
17012
ac_cpp='$CPP $CPPFLAGS'
17013
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17014
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17015
ac_compiler_gnu=$ac_cv_c_compiler_gnu
17025
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17028
# Source file extension for Java test sources.
17031
# Object file extension for compiled Java test sources.
17035
# Code to be used in simple compile tests
17036
lt_simple_compile_test_code="class foo {}"
17038
# Code to be used in simple link tests
17039
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
17041
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17043
# If no C compiler was specified, use CC.
17046
# If no C compiler flags were specified, use CFLAGS.
17047
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17049
# Allow CC to be a program name with arguments.
17053
# save warnings/boilerplate of simple test code
17054
ac_outfile=conftest.$ac_objext
17055
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17056
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17057
_lt_compiler_boilerplate=`cat conftest.err`
17060
ac_outfile=conftest.$ac_objext
17061
echo "$lt_simple_link_test_code" >conftest.$ac_ext
17062
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17063
_lt_linker_boilerplate=`cat conftest.err`
17067
# Allow CC to be a program name with arguments.
17072
for cc_temp in $compiler""; do
17074
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17075
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17080
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17083
# GCJ did not exist at the time GCC didn't implicitly link libc in.
17084
archive_cmds_need_lc_GCJ=no
17086
old_archive_cmds_GCJ=$old_archive_cmds
17089
lt_prog_compiler_no_builtin_flag_GCJ=
17091
if test "$GCC" = yes; then
17092
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17095
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17096
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
17097
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17098
$as_echo_n "(cached) " >&6
17100
lt_cv_prog_compiler_rtti_exceptions=no
17101
ac_outfile=conftest.$ac_objext
17102
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17103
lt_compiler_flag="-fno-rtti -fno-exceptions"
17104
# Insert the option either (1) after the last *FLAGS variable, or
17105
# (2) before a word containing "conftest.", or (3) at the end.
17106
# Note that $ac_compile itself does not contain backslashes and begins
17107
# with a dollar sign (not a hyphen), so the echo should work correctly.
17108
# The option is referenced via a variable to avoid confusing sed.
17109
lt_compile=`echo "$ac_compile" | $SED \
17110
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17111
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17112
-e 's:$: $lt_compiler_flag:'`
17113
(eval echo "\"\$as_me:17113: $lt_compile\"" >&5)
17114
(eval "$lt_compile" 2>conftest.err)
17116
cat conftest.err >&5
17117
echo "$as_me:17117: \$? = $ac_status" >&5
17118
if (exit $ac_status) && test -s "$ac_outfile"; then
17119
# The compiler can only warn and ignore the option if not recognized
17120
# So say no if there are warnings other than the usual output.
17121
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17122
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17123
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17124
lt_cv_prog_compiler_rtti_exceptions=yes
17130
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17131
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17133
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17134
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17141
lt_prog_compiler_wl_GCJ=
17142
lt_prog_compiler_pic_GCJ=
17143
lt_prog_compiler_static_GCJ=
17145
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17146
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17148
if test "$GCC" = yes; then
17149
lt_prog_compiler_wl_GCJ='-Wl,'
17150
lt_prog_compiler_static_GCJ='-static'
17154
# All AIX code is PIC.
17155
if test "$host_cpu" = ia64; then
17156
# AIX 5 now supports IA64 processor
17157
lt_prog_compiler_static_GCJ='-Bstatic'
17162
# FIXME: we need at least 68020 code to build shared libraries, but
17163
# adding the `-m68020' flag to GCC prevents building anything better,
17165
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17168
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17169
# PIC is the default for these OSes.
17172
mingw* | cygwin* | pw32* | os2*)
17173
# This hack is so that the source file can tell whether it is being
17174
# built for inclusion in a dll (and should export symbols for example).
17175
# Although the cygwin gcc ignores -fPIC, still need this for old-style
17176
# (--disable-auto-import) libraries
17180
darwin* | rhapsody*)
17181
# PIC is the default on this platform
17182
# Common symbols not allowed in MH_DYLIB files
17183
lt_prog_compiler_pic_GCJ='-fno-common'
17187
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
17188
# Instead, we relocate shared libraries at runtime.
17192
# Just because we use GCC doesn't mean we suddenly get shared libraries
17193
# on systems that don't support them.
17194
lt_prog_compiler_can_build_shared_GCJ=no
17199
if test -d /usr/nec; then
17200
lt_prog_compiler_pic_GCJ=-Kconform_pic
17205
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17206
# not for PA HP-UX.
17212
lt_prog_compiler_pic_GCJ='-fPIC'
17218
lt_prog_compiler_pic_GCJ='-fPIC'
17222
# PORTME Check for flag to pass linker flags through the system compiler.
17225
lt_prog_compiler_wl_GCJ='-Wl,'
17226
if test "$host_cpu" = ia64; then
17227
# AIX 5 now supports IA64 processor
17228
lt_prog_compiler_static_GCJ='-Bstatic'
17230
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17234
# PIC is the default on this platform
17235
# Common symbols not allowed in MH_DYLIB files
17236
case $cc_basename in
17238
lt_prog_compiler_pic_GCJ='-qnocommon'
17239
lt_prog_compiler_wl_GCJ='-Wl,'
17244
mingw* | cygwin* | pw32* | os2*)
17245
# This hack is so that the source file can tell whether it is being
17246
# built for inclusion in a dll (and should export symbols for example).
17250
hpux9* | hpux10* | hpux11*)
17251
lt_prog_compiler_wl_GCJ='-Wl,'
17252
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17253
# not for PA HP-UX.
17259
lt_prog_compiler_pic_GCJ='+Z'
17262
# Is there a better lt_prog_compiler_static that works with the bundled CC?
17263
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17266
irix5* | irix6* | nonstopux*)
17267
lt_prog_compiler_wl_GCJ='-Wl,'
17268
# PIC (with -KPIC) is the default.
17269
lt_prog_compiler_static_GCJ='-non_shared'
17273
lt_prog_compiler_pic_GCJ='-KPIC'
17274
lt_prog_compiler_static_GCJ='-Bstatic'
17277
linux* | k*bsd*-gnu)
17278
case $cc_basename in
17280
lt_prog_compiler_wl_GCJ='-Wl,'
17281
lt_prog_compiler_pic_GCJ='-KPIC'
17282
lt_prog_compiler_static_GCJ='-static'
17284
pgcc* | pgf77* | pgf90* | pgf95*)
17285
# Portland Group compilers (*not* the Pentium gcc compiler,
17286
# which looks to be a dead project)
17287
lt_prog_compiler_wl_GCJ='-Wl,'
17288
lt_prog_compiler_pic_GCJ='-fpic'
17289
lt_prog_compiler_static_GCJ='-Bstatic'
17292
lt_prog_compiler_wl_GCJ='-Wl,'
17293
# All Alpha code is PIC.
17294
lt_prog_compiler_static_GCJ='-non_shared'
17297
case `$CC -V 2>&1 | sed 5q` in
17300
lt_prog_compiler_pic_GCJ='-KPIC'
17301
lt_prog_compiler_static_GCJ='-Bstatic'
17302
lt_prog_compiler_wl_GCJ='-Wl,'
17305
# Sun Fortran 8.3 passes all unrecognized flags to the linker
17306
lt_prog_compiler_pic_GCJ='-KPIC'
17307
lt_prog_compiler_static_GCJ='-Bstatic'
17308
lt_prog_compiler_wl_GCJ=''
17315
osf3* | osf4* | osf5*)
17316
lt_prog_compiler_wl_GCJ='-Wl,'
17317
# All OSF/1 code is PIC.
17318
lt_prog_compiler_static_GCJ='-non_shared'
17322
lt_prog_compiler_static_GCJ='-non_shared'
17326
lt_prog_compiler_pic_GCJ='-KPIC'
17327
lt_prog_compiler_static_GCJ='-Bstatic'
17328
case $cc_basename in
17329
f77* | f90* | f95*)
17330
lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17332
lt_prog_compiler_wl_GCJ='-Wl,';;
17337
lt_prog_compiler_wl_GCJ='-Qoption ld '
17338
lt_prog_compiler_pic_GCJ='-PIC'
17339
lt_prog_compiler_static_GCJ='-Bstatic'
17342
sysv4 | sysv4.2uw2* | sysv4.3*)
17343
lt_prog_compiler_wl_GCJ='-Wl,'
17344
lt_prog_compiler_pic_GCJ='-KPIC'
17345
lt_prog_compiler_static_GCJ='-Bstatic'
17349
if test -d /usr/nec ;then
17350
lt_prog_compiler_pic_GCJ='-Kconform_pic'
17351
lt_prog_compiler_static_GCJ='-Bstatic'
17355
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17356
lt_prog_compiler_wl_GCJ='-Wl,'
17357
lt_prog_compiler_pic_GCJ='-KPIC'
17358
lt_prog_compiler_static_GCJ='-Bstatic'
17362
lt_prog_compiler_wl_GCJ='-Wl,'
17363
lt_prog_compiler_can_build_shared_GCJ=no
17367
lt_prog_compiler_pic_GCJ='-pic'
17368
lt_prog_compiler_static_GCJ='-Bstatic'
17372
lt_prog_compiler_can_build_shared_GCJ=no
17377
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17378
$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17381
# Check to make sure the PIC flag actually works.
17383
if test -n "$lt_prog_compiler_pic_GCJ"; then
17385
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17386
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17387
if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17388
$as_echo_n "(cached) " >&6
17390
lt_cv_prog_compiler_pic_works_GCJ=no
17391
ac_outfile=conftest.$ac_objext
17392
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17393
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17394
# Insert the option either (1) after the last *FLAGS variable, or
17395
# (2) before a word containing "conftest.", or (3) at the end.
17396
# Note that $ac_compile itself does not contain backslashes and begins
17397
# with a dollar sign (not a hyphen), so the echo should work correctly.
17398
# The option is referenced via a variable to avoid confusing sed.
17399
lt_compile=`echo "$ac_compile" | $SED \
17400
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17401
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17402
-e 's:$: $lt_compiler_flag:'`
17403
(eval echo "\"\$as_me:17403: $lt_compile\"" >&5)
17404
(eval "$lt_compile" 2>conftest.err)
17406
cat conftest.err >&5
17407
echo "$as_me:17407: \$? = $ac_status" >&5
17408
if (exit $ac_status) && test -s "$ac_outfile"; then
17409
# The compiler can only warn and ignore the option if not recognized
17410
# So say no if there are warnings other than the usual output.
17411
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17412
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17413
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17414
lt_cv_prog_compiler_pic_works_GCJ=yes
17420
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17421
$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17423
if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17424
case $lt_prog_compiler_pic_GCJ in
17426
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17429
lt_prog_compiler_pic_GCJ=
17430
lt_prog_compiler_can_build_shared_GCJ=no
17435
# For platforms which do not support PIC, -DPIC is meaningless:
17437
lt_prog_compiler_pic_GCJ=
17440
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17445
# Check to make sure the static flag actually works.
17447
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17448
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17449
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17450
if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17451
$as_echo_n "(cached) " >&6
17453
lt_cv_prog_compiler_static_works_GCJ=no
17454
save_LDFLAGS="$LDFLAGS"
17455
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17456
echo "$lt_simple_link_test_code" > conftest.$ac_ext
17457
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17458
# The linker can only warn and ignore the option if not recognized
17459
# So say no if there are warnings
17460
if test -s conftest.err; then
17461
# Append any errors to the config.log.
17462
cat conftest.err 1>&5
17463
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17464
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17465
if diff conftest.exp conftest.er2 >/dev/null; then
17466
lt_cv_prog_compiler_static_works_GCJ=yes
17469
lt_cv_prog_compiler_static_works_GCJ=yes
17473
LDFLAGS="$save_LDFLAGS"
17476
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17477
$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17479
if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17482
lt_prog_compiler_static_GCJ=
17486
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17487
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17488
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17489
$as_echo_n "(cached) " >&6
17491
lt_cv_prog_compiler_c_o_GCJ=no
17492
$rm -r conftest 2>/dev/null
17496
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17498
lt_compiler_flag="-o out/conftest2.$ac_objext"
17499
# Insert the option either (1) after the last *FLAGS variable, or
17500
# (2) before a word containing "conftest.", or (3) at the end.
17501
# Note that $ac_compile itself does not contain backslashes and begins
17502
# with a dollar sign (not a hyphen), so the echo should work correctly.
17503
lt_compile=`echo "$ac_compile" | $SED \
17504
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17505
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17506
-e 's:$: $lt_compiler_flag:'`
17507
(eval echo "\"\$as_me:17507: $lt_compile\"" >&5)
17508
(eval "$lt_compile" 2>out/conftest.err)
17510
cat out/conftest.err >&5
17511
echo "$as_me:17511: \$? = $ac_status" >&5
17512
if (exit $ac_status) && test -s out/conftest2.$ac_objext
17514
# The compiler can only warn and ignore the option if not recognized
17515
# So say no if there are warnings
17516
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17517
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17518
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17519
lt_cv_prog_compiler_c_o_GCJ=yes
17524
# SGI C++ compiler will create directory out/ii_files/ for
17525
# template instantiation
17526
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17527
$rm out/* && rmdir out
17533
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17534
$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17537
hard_links="nottested"
17538
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17539
# do not overwrite the value of need_locks provided by the user
17540
{ $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17541
$as_echo_n "checking if we can lock with hard links... " >&6; }
17544
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17546
ln conftest.a conftest.b 2>&5 || hard_links=no
17547
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17548
{ $as_echo "$as_me:$LINENO: result: $hard_links" >&5
17549
$as_echo "$hard_links" >&6; }
17550
if test "$hard_links" = no; then
17551
{ $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17552
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17559
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17560
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17563
allow_undefined_flag_GCJ=
17564
enable_shared_with_static_runtimes_GCJ=no
17566
archive_expsym_cmds_GCJ=
17567
old_archive_From_new_cmds_GCJ=
17568
old_archive_from_expsyms_cmds_GCJ=
17569
export_dynamic_flag_spec_GCJ=
17570
whole_archive_flag_spec_GCJ=
17571
thread_safe_flag_spec_GCJ=
17572
hardcode_libdir_flag_spec_GCJ=
17573
hardcode_libdir_flag_spec_ld_GCJ=
17574
hardcode_libdir_separator_GCJ=
17575
hardcode_direct_GCJ=no
17576
hardcode_minus_L_GCJ=no
17577
hardcode_shlibpath_var_GCJ=unsupported
17578
link_all_deplibs_GCJ=unknown
17579
hardcode_automatic_GCJ=no
17581
module_expsym_cmds_GCJ=
17582
always_export_symbols_GCJ=no
17583
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17584
# include_expsyms should be a list of space-separated symbols to be *always*
17585
# included in the symbol list
17586
include_expsyms_GCJ=
17587
# exclude_expsyms can be an extended regexp of symbols to exclude
17588
# it will be wrapped by ` (' and `)$', so one must not match beginning or
17589
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17590
# as well as any symbol that contains `d'.
17591
exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17592
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17593
# platforms (ab)use it in PIC code, but their linkers get confused if
17594
# the symbol is explicitly referenced. Since portable code cannot
17595
# rely on this symbol name, it's probably fine to never include it in
17596
# preloaded symbol tables.
17597
# Exclude shared library initialization/finalization symbols.
17598
extract_expsyms_cmds=
17599
# Just being paranoid about ensuring that cc_basename is set.
17600
for cc_temp in $compiler""; do
17602
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17603
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17608
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17611
cygwin* | mingw* | pw32*)
17612
# FIXME: the MSVC++ port hasn't been tested in a loooong time
17613
# When not using gcc, we currently assume that we are using
17614
# Microsoft Visual C++.
17615
if test "$GCC" != yes; then
17620
# we just hope/assume this is gcc and not c89 (= MSVC++)
17629
if test "$with_gnu_ld" = yes; then
17630
# If archive_cmds runs LD, not CC, wlarc should be empty
17633
# Set some defaults for GNU ld with shared library support. These
17634
# are reset later if shared libraries are not supported. Putting them
17635
# here allows them to be overridden if necessary.
17636
runpath_var=LD_RUN_PATH
17637
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17638
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17639
# ancient GNU ld didn't support --whole-archive et. al.
17640
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17641
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17643
whole_archive_flag_spec_GCJ=
17645
supports_anon_versioning=no
17646
case `$LD -v 2>/dev/null` in
17647
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17648
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17649
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17650
*\ 2.11.*) ;; # other 2.11 versions
17651
*) supports_anon_versioning=yes ;;
17654
# See if GNU ld supports shared libraries.
17657
# On AIX/PPC, the GNU linker is very broken
17658
if test "$host_cpu" != ia64; then
17662
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17663
*** to be unable to reliably create shared libraries on AIX.
17664
*** Therefore, libtool is disabling shared libraries support. If you
17665
*** really care for shared libraries, you may want to modify your PATH
17666
*** so that a non-GNU linker is found, and then restart.
17673
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)'
17674
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17675
hardcode_minus_L_GCJ=yes
17677
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17678
# that the semantics of dynamic libraries on AmigaOS, at least up
17679
# to version 4, is to share data among multiple programs linked
17680
# with the same dynamic library. Since this doesn't match the
17681
# behavior of shared libraries on other platforms, we can't use
17687
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17688
allow_undefined_flag_GCJ=unsupported
17689
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17690
# support --undefined. This deserves some investigation. FIXME
17691
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17697
cygwin* | mingw* | pw32*)
17698
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17699
# as there is no search path for DLLs.
17700
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17701
allow_undefined_flag_GCJ=unsupported
17702
always_export_symbols_GCJ=no
17703
enable_shared_with_static_runtimes_GCJ=yes
17704
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17706
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17707
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17708
# If the export-symbols file already is a .def file (1st line
17709
# is EXPORTS), use it as is; otherwise, prepend...
17710
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17711
cp $export_symbols $output_objdir/$soname.def;
17713
echo EXPORTS > $output_objdir/$soname.def;
17714
cat $export_symbols >> $output_objdir/$soname.def;
17716
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17723
hardcode_direct_GCJ=no
17724
hardcode_shlibpath_var_GCJ=no
17725
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17726
export_dynamic_flag_spec_GCJ='${wl}-E'
17727
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17728
# Instead, shared libraries are loaded at an image base (0x10000000 by
17729
# default) and relocated if they conflict, which is a slow very memory
17730
# consuming and fragmenting process. To avoid this, we pick a random,
17731
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17732
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
17733
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'
17734
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'
17737
gnu* | linux* | k*bsd*-gnu)
17738
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17740
case $cc_basename,$host_cpu in
17741
pgcc*) # Portland Group C compiler
17742
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'
17743
tmp_addflag=' $pic_flag'
17745
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17746
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'
17747
tmp_addflag=' $pic_flag -Mnomain' ;;
17748
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17749
tmp_addflag=' -i_dynamic' ;;
17750
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17751
tmp_addflag=' -i_dynamic -nofor_main' ;;
17752
ifc* | ifort*) # Intel Fortran compiler
17753
tmp_addflag=' -nofor_main' ;;
17755
case `$CC -V 2>&1 | sed 5q` in
17756
*Sun\ C*) # Sun C 5.9
17757
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'
17758
tmp_sharedflag='-G' ;;
17759
*Sun\ F*) # Sun Fortran 8.3
17760
tmp_sharedflag='-G' ;;
17762
tmp_sharedflag='-shared' ;;
17764
archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17766
if test $supports_anon_versioning = yes; then
17767
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17768
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17769
$echo "local: *; };" >> $output_objdir/$libname.ver~
17770
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17778
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17779
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17782
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17783
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17788
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17792
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17793
*** create shared libraries on Solaris systems. Therefore, libtool
17794
*** is disabling shared libraries support. We urge you to upgrade GNU
17795
*** binutils to release 2.9.1 or newer. Another option is to modify
17796
*** your PATH or compiler configuration so that the native linker is
17797
*** used, and then restart.
17800
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17801
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17802
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17808
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17809
case `$LD -v 2>&1` in
17810
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17814
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17815
*** reliably create shared libraries on SCO systems. Therefore, libtool
17816
*** is disabling shared libraries support. We urge you to upgrade GNU
17817
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17818
*** your PATH or compiler configuration so that the native linker is
17819
*** used, and then restart.
17824
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17825
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17826
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17827
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17836
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17838
hardcode_direct_GCJ=yes
17839
hardcode_shlibpath_var_GCJ=no
17843
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17844
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17845
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17852
if test "$ld_shlibs_GCJ" = no; then
17854
hardcode_libdir_flag_spec_GCJ=
17855
export_dynamic_flag_spec_GCJ=
17856
whole_archive_flag_spec_GCJ=
17859
# PORTME fill in a description of your system's linker (not GNU ld)
17862
allow_undefined_flag_GCJ=unsupported
17863
always_export_symbols_GCJ=yes
17864
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'
17865
# Note: this linker hardcodes the directories in LIBPATH if there
17866
# are no directories specified by -L.
17867
hardcode_minus_L_GCJ=yes
17868
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17869
# Neither direct hardcoding nor static linking is supported with a
17871
hardcode_direct_GCJ=unsupported
17876
if test "$host_cpu" = ia64; then
17877
# On IA64, the linker does run time linking by default, so we don't
17878
# have to do anything special.
17879
aix_use_runtimelinking=no
17880
exp_sym_flag='-Bexport'
17883
# If we're using GNU nm, then we don't want the "-C" option.
17884
# -C means demangle to AIX nm, but means don't demangle with GNU nm
17885
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17886
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'
17888
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'
17890
aix_use_runtimelinking=no
17892
# Test if we are trying to use run time linking or normal
17893
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17894
# need to do runtime linking.
17895
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17896
for ld_flag in $LDFLAGS; do
17897
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17898
aix_use_runtimelinking=yes
17905
exp_sym_flag='-bexport'
17906
no_entry_flag='-bnoentry'
17909
# When large executables or shared objects are built, AIX ld can
17910
# have problems creating the table of contents. If linking a library
17911
# or program results in "error TOC overflow" add -mminimal-toc to
17912
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17913
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17915
archive_cmds_GCJ=''
17916
hardcode_direct_GCJ=yes
17917
hardcode_libdir_separator_GCJ=':'
17918
link_all_deplibs_GCJ=yes
17920
if test "$GCC" = yes; then
17921
case $host_os in aix4.[012]|aix4.[012].*)
17922
# We only want to do this on AIX 4.2 and lower, the check
17923
# below for broken collect2 doesn't work under 4.3+
17924
collect2name=`${CC} -print-prog-name=collect2`
17925
if test -f "$collect2name" && \
17926
strings "$collect2name" | grep resolve_lib_name >/dev/null
17928
# We have reworked collect2
17931
# We have old collect2
17932
hardcode_direct_GCJ=unsupported
17933
# It fails to find uninstalled libraries when the uninstalled
17934
# path is not listed in the libpath. Setting hardcode_minus_L
17935
# to unsupported forces relinking
17936
hardcode_minus_L_GCJ=yes
17937
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17938
hardcode_libdir_separator_GCJ=
17942
shared_flag='-shared'
17943
if test "$aix_use_runtimelinking" = yes; then
17944
shared_flag="$shared_flag "'${wl}-G'
17948
if test "$host_cpu" = ia64; then
17949
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17950
# chokes on -Wl,-G. The following line is correct:
17953
if test "$aix_use_runtimelinking" = yes; then
17954
shared_flag='${wl}-G'
17956
shared_flag='${wl}-bM:SRE'
17961
# It seems that -bexpall does not export symbols beginning with
17962
# underscore (_), so it is better to generate a list of symbols to export.
17963
always_export_symbols_GCJ=yes
17964
if test "$aix_use_runtimelinking" = yes; then
17965
# Warning - without using the other runtime loading flags (-brtl),
17966
# -berok will link without error, but may produce a broken library.
17967
allow_undefined_flag_GCJ='-berok'
17968
# Determine the default libpath from the value encoded in an empty executable.
17969
cat >conftest.$ac_ext <<_ACEOF
17972
cat confdefs.h >>conftest.$ac_ext
17973
cat >>conftest.$ac_ext <<_ACEOF
17974
/* end confdefs.h. */
17984
rm -f conftest.$ac_objext conftest$ac_exeext
17985
if { (ac_try="$ac_link"
17986
case "(($ac_try" in
17987
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17988
*) ac_try_echo=$ac_try;;
17990
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17991
$as_echo "$ac_try_echo") >&5
17992
(eval "$ac_link") 2>conftest.er1
17994
grep -v '^ *+' conftest.er1 >conftest.err
17996
cat conftest.err >&5
17997
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17998
(exit $ac_status); } && {
17999
test -z "$ac_c_werror_flag" ||
18000
test ! -s conftest.err
18001
} && test -s conftest$ac_exeext && {
18002
test "$cross_compiling" = yes ||
18003
$as_test_x conftest$ac_exeext
18006
lt_aix_libpath_sed='
18007
/Import File Strings/,/^$/ {
18013
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18014
# Check for a 64-bit object if we didn't find anything.
18015
if test -z "$aix_libpath"; then
18016
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18019
$as_echo "$as_me: failed program was:" >&5
18020
sed 's/^/| /' conftest.$ac_ext >&5
18025
rm -rf conftest.dSYM
18026
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18027
conftest$ac_exeext conftest.$ac_ext
18028
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18030
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18031
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"
18033
if test "$host_cpu" = ia64; then
18034
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18035
allow_undefined_flag_GCJ="-z nodefs"
18036
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"
18038
# Determine the default libpath from the value encoded in an empty executable.
18039
cat >conftest.$ac_ext <<_ACEOF
18042
cat confdefs.h >>conftest.$ac_ext
18043
cat >>conftest.$ac_ext <<_ACEOF
18044
/* end confdefs.h. */
18054
rm -f conftest.$ac_objext conftest$ac_exeext
18055
if { (ac_try="$ac_link"
18056
case "(($ac_try" in
18057
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18058
*) ac_try_echo=$ac_try;;
18060
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18061
$as_echo "$ac_try_echo") >&5
18062
(eval "$ac_link") 2>conftest.er1
18064
grep -v '^ *+' conftest.er1 >conftest.err
18066
cat conftest.err >&5
18067
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068
(exit $ac_status); } && {
18069
test -z "$ac_c_werror_flag" ||
18070
test ! -s conftest.err
18071
} && test -s conftest$ac_exeext && {
18072
test "$cross_compiling" = yes ||
18073
$as_test_x conftest$ac_exeext
18076
lt_aix_libpath_sed='
18077
/Import File Strings/,/^$/ {
18083
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18084
# Check for a 64-bit object if we didn't find anything.
18085
if test -z "$aix_libpath"; then
18086
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18089
$as_echo "$as_me: failed program was:" >&5
18090
sed 's/^/| /' conftest.$ac_ext >&5
18095
rm -rf conftest.dSYM
18096
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18097
conftest$ac_exeext conftest.$ac_ext
18098
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18100
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18101
# Warning - without using the other run time loading flags,
18102
# -berok will link without error, but may produce a broken library.
18103
no_undefined_flag_GCJ=' ${wl}-bernotok'
18104
allow_undefined_flag_GCJ=' ${wl}-berok'
18105
# Exported symbols can be pulled into shared objects from archives
18106
whole_archive_flag_spec_GCJ='$convenience'
18107
archive_cmds_need_lc_GCJ=yes
18108
# This is similar to how AIX traditionally builds its shared libraries.
18109
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'
18115
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)'
18116
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18117
hardcode_minus_L_GCJ=yes
18118
# see comment about different semantics on the GNU ld section
18123
export_dynamic_flag_spec_GCJ=-rdynamic
18126
cygwin* | mingw* | pw32*)
18127
# When not using gcc, we currently assume that we are using
18128
# Microsoft Visual C++.
18129
# hardcode_libdir_flag_spec is actually meaningless, as there is
18130
# no search path for DLLs.
18131
hardcode_libdir_flag_spec_GCJ=' '
18132
allow_undefined_flag_GCJ=unsupported
18133
# Tell ltmain to make .lib files, not .a files.
18135
# Tell ltmain to make .dll files, not .so files.
18137
# FIXME: Setting linknames here is a bad hack.
18138
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18139
# The linker will automatically build a .lib file if we build a DLL.
18140
old_archive_From_new_cmds_GCJ='true'
18141
# FIXME: Should let the user specify the lib program.
18142
old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18143
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18144
enable_shared_with_static_runtimes_GCJ=yes
18147
darwin* | rhapsody*)
18149
rhapsody* | darwin1.[012])
18150
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18153
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18154
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18156
case ${MACOSX_DEPLOYMENT_TARGET} in
18158
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18161
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18167
archive_cmds_need_lc_GCJ=no
18168
hardcode_direct_GCJ=no
18169
hardcode_automatic_GCJ=yes
18170
hardcode_shlibpath_var_GCJ=unsupported
18171
whole_archive_flag_spec_GCJ=''
18172
link_all_deplibs_GCJ=yes
18173
if test "$GCC" = yes ; then
18174
output_verbose_link_cmd='echo'
18175
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}"
18176
module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18177
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}"
18178
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}"
18180
case $cc_basename in
18182
output_verbose_link_cmd='echo'
18183
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18184
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18185
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18186
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}'
18187
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}'
18197
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18198
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18199
hardcode_shlibpath_var_GCJ=no
18206
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18207
# support. Future versions do this automatically, but an explicit c++rt0.o
18208
# does not break anything, and helps significantly (at the cost of a little
18211
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18212
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18213
hardcode_direct_GCJ=yes
18214
hardcode_shlibpath_var_GCJ=no
18217
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
18219
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18220
hardcode_direct_GCJ=yes
18221
hardcode_minus_L_GCJ=yes
18222
hardcode_shlibpath_var_GCJ=no
18225
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18226
freebsd* | dragonfly*)
18227
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18228
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18229
hardcode_direct_GCJ=yes
18230
hardcode_shlibpath_var_GCJ=no
18234
if test "$GCC" = yes; then
18235
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'
18237
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'
18239
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18240
hardcode_libdir_separator_GCJ=:
18241
hardcode_direct_GCJ=yes
18243
# hardcode_minus_L: Not really in the search PATH,
18244
# but as the default location of the library.
18245
hardcode_minus_L_GCJ=yes
18246
export_dynamic_flag_spec_GCJ='${wl}-E'
18250
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18251
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18253
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18255
if test "$with_gnu_ld" = no; then
18256
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18257
hardcode_libdir_separator_GCJ=:
18259
hardcode_direct_GCJ=yes
18260
export_dynamic_flag_spec_GCJ='${wl}-E'
18262
# hardcode_minus_L: Not really in the search PATH,
18263
# but as the default location of the library.
18264
hardcode_minus_L_GCJ=yes
18269
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18272
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18275
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18278
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18284
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18287
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18290
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18294
if test "$with_gnu_ld" = no; then
18295
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18296
hardcode_libdir_separator_GCJ=:
18300
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18301
hardcode_direct_GCJ=no
18302
hardcode_shlibpath_var_GCJ=no
18305
hardcode_direct_GCJ=yes
18306
export_dynamic_flag_spec_GCJ='${wl}-E'
18308
# hardcode_minus_L: Not really in the search PATH,
18309
# but as the default location of the library.
18310
hardcode_minus_L_GCJ=yes
18316
irix5* | irix6* | nonstopux*)
18317
if test "$GCC" = yes; then
18318
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'
18320
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'
18321
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18323
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18324
hardcode_libdir_separator_GCJ=:
18325
link_all_deplibs_GCJ=yes
18329
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18330
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18332
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18334
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18335
hardcode_direct_GCJ=yes
18336
hardcode_shlibpath_var_GCJ=no
18340
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18341
hardcode_direct_GCJ=yes
18342
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18343
hardcode_libdir_separator_GCJ=:
18344
hardcode_shlibpath_var_GCJ=no
18348
if test -f /usr/libexec/ld.so; then
18349
hardcode_direct_GCJ=yes
18350
hardcode_shlibpath_var_GCJ=no
18351
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18352
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18353
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18354
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18355
export_dynamic_flag_spec_GCJ='${wl}-E'
18358
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18359
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18360
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18363
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18364
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18374
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18375
hardcode_minus_L_GCJ=yes
18376
allow_undefined_flag_GCJ=unsupported
18377
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'
18378
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18382
if test "$GCC" = yes; then
18383
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18384
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'
18386
allow_undefined_flag_GCJ=' -expect_unresolved \*'
18387
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'
18389
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18390
hardcode_libdir_separator_GCJ=:
18393
osf4* | osf5*) # as osf3* with the addition of -msym flag
18394
if test "$GCC" = yes; then
18395
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18396
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'
18397
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18399
allow_undefined_flag_GCJ=' -expect_unresolved \*'
18400
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'
18401
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~
18402
$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'
18404
# Both c and cxx compiler support -rpath directly
18405
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18407
hardcode_libdir_separator_GCJ=:
18411
no_undefined_flag_GCJ=' -z text'
18412
if test "$GCC" = yes; then
18414
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18415
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18416
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18419
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18420
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18421
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18423
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18424
hardcode_shlibpath_var_GCJ=no
18426
solaris2.[0-5] | solaris2.[0-5].*) ;;
18428
# The compiler driver will combine and reorder linker options,
18429
# but understands `-z linker_flag'. GCC discards it without `$wl',
18430
# but is careful enough not to reorder.
18431
# Supported since Solaris 2.6 (maybe 2.5.1?)
18432
if test "$GCC" = yes; then
18433
whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18435
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18439
link_all_deplibs_GCJ=yes
18443
if test "x$host_vendor" = xsequent; then
18444
# Use $CC to link under sequent, because it throws in some extra .o
18445
# files that make .init and .fini sections work.
18446
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18448
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18450
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18451
hardcode_direct_GCJ=yes
18452
hardcode_minus_L_GCJ=yes
18453
hardcode_shlibpath_var_GCJ=no
18457
case $host_vendor in
18459
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18460
hardcode_direct_GCJ=yes # is this really true???
18463
## LD is ld it makes a PLAMLIB
18464
## CC just makes a GrossModule.
18465
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18466
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18467
hardcode_direct_GCJ=no
18470
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18471
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18474
runpath_var='LD_RUN_PATH'
18475
hardcode_shlibpath_var_GCJ=no
18479
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18480
hardcode_shlibpath_var_GCJ=no
18481
export_dynamic_flag_spec_GCJ='-Bexport'
18485
if test -d /usr/nec; then
18486
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18487
hardcode_shlibpath_var_GCJ=no
18488
runpath_var=LD_RUN_PATH
18489
hardcode_runpath_var=yes
18494
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18495
no_undefined_flag_GCJ='${wl}-z,text'
18496
archive_cmds_need_lc_GCJ=no
18497
hardcode_shlibpath_var_GCJ=no
18498
runpath_var='LD_RUN_PATH'
18500
if test "$GCC" = yes; then
18501
archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18502
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18504
archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18505
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18509
sysv5* | sco3.2v5* | sco5v6*)
18510
# Note: We can NOT use -z defs as we might desire, because we do not
18511
# link with -lc, and that would cause any symbols used from libc to
18512
# always be unresolved, which means just about no library would
18513
# ever link correctly. If we're not using GNU ld we use -z text
18514
# though, which does catch some bad symbols but isn't as heavy-handed
18516
no_undefined_flag_GCJ='${wl}-z,text'
18517
allow_undefined_flag_GCJ='${wl}-z,nodefs'
18518
archive_cmds_need_lc_GCJ=no
18519
hardcode_shlibpath_var_GCJ=no
18520
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18521
hardcode_libdir_separator_GCJ=':'
18522
link_all_deplibs_GCJ=yes
18523
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18524
runpath_var='LD_RUN_PATH'
18526
if test "$GCC" = yes; then
18527
archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18528
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18530
archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18531
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18536
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18537
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18538
hardcode_shlibpath_var_GCJ=no
18547
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18548
$as_echo "$ld_shlibs_GCJ" >&6; }
18549
test "$ld_shlibs_GCJ" = no && can_build_shared=no
18552
# Do we need to explicitly link libc?
18554
case "x$archive_cmds_need_lc_GCJ" in
18556
# Assume -lc should be added
18557
archive_cmds_need_lc_GCJ=yes
18559
if test "$enable_shared" = yes && test "$GCC" = yes; then
18560
case $archive_cmds_GCJ in
18562
# FIXME: we may have to deal with multi-command sequences.
18565
# Test whether the compiler implicitly links with -lc since on some
18566
# systems, -lgcc has to come before -lc. If gcc already passes -lc
18567
# to ld, don't add -lc before -lgcc.
18568
{ $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18569
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18571
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18573
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18574
(eval $ac_compile) 2>&5
18576
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18577
(exit $ac_status); } 2>conftest.err; then
18580
libobjs=conftest.$ac_objext
18582
wl=$lt_prog_compiler_wl_GCJ
18583
pic_flag=$lt_prog_compiler_pic_GCJ
18589
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18590
allow_undefined_flag_GCJ=
18591
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18592
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18594
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18595
(exit $ac_status); }
18597
archive_cmds_need_lc_GCJ=no
18599
archive_cmds_need_lc_GCJ=yes
18601
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18603
cat conftest.err 1>&5
18606
{ $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18607
$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
18614
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18615
$as_echo_n "checking dynamic linker characteristics... " >&6; }
18616
library_names_spec=
18617
libname_spec='lib$name'
18621
postuninstall_cmds=
18625
shlibpath_overrides_runpath=unknown
18627
dynamic_linker="$host_os ld.so"
18628
sys_lib_dlsearch_path_spec="/lib /usr/lib"
18630
need_lib_prefix=unknown
18631
hardcode_into_libs=no
18633
# when you set need_version to no, make sure it does not cause -set_version
18634
# flags to be left without arguments
18635
need_version=unknown
18640
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18641
shlibpath_var=LIBPATH
18643
# AIX 3 has no versioning support, so we append a major version to the name.
18644
soname_spec='${libname}${release}${shared_ext}$major'
18651
hardcode_into_libs=yes
18652
if test "$host_cpu" = ia64; then
18653
# AIX 5 supports IA64
18654
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18655
shlibpath_var=LD_LIBRARY_PATH
18657
# With GCC up to 2.95.x, collect2 would create an import file
18658
# for dependence libraries. The import file would start with
18659
# the line `#! .'. This would cause the generated library to
18660
# depend on `.', always an invalid library. This was fixed in
18661
# development snapshots of GCC prior to 3.0.
18663
aix4 | aix4.[01] | aix4.[01].*)
18664
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18666
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18669
can_build_shared=no
18673
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18674
# soname into executable. Probably we can add versioning support to
18675
# collect2, so additional links can be useful in future.
18676
if test "$aix_use_runtimelinking" = yes; then
18677
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
18678
# instead of lib<name>.a to let people know that these are not
18679
# typical AIX shared libraries.
18680
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18682
# We preserve .a as extension for shared libraries through AIX4.2
18683
# and later when we are not doing run time linking.
18684
library_names_spec='${libname}${release}.a $libname.a'
18685
soname_spec='${libname}${release}${shared_ext}$major'
18687
shlibpath_var=LIBPATH
18692
library_names_spec='$libname.ixlibrary $libname.a'
18693
# Create ${libname}_ixlibrary.a entries in /sys/libs.
18694
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'
18698
library_names_spec='${libname}${shared_ext}'
18699
dynamic_linker="$host_os ld.so"
18700
shlibpath_var=LIBRARY_PATH
18706
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18707
soname_spec='${libname}${release}${shared_ext}$major'
18708
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18709
shlibpath_var=LD_LIBRARY_PATH
18710
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18711
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18712
# the default ld.so.conf also contains /usr/contrib/lib and
18713
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18714
# libtool to hard-code these into programs
18717
cygwin* | mingw* | pw32*)
18718
version_type=windows
18723
case $GCC,$host_os in
18724
yes,cygwin* | yes,mingw* | yes,pw32*)
18725
library_names_spec='$libname.dll.a'
18726
# DLL is installed to $(libdir)/../bin by postinstall_cmds
18727
postinstall_cmds='base_file=`basename \${file}`~
18728
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18729
dldir=$destdir/`dirname \$dlpath`~
18730
test -d \$dldir || mkdir -p \$dldir~
18731
$install_prog $dir/$dlname \$dldir/$dlname~
18732
chmod a+x \$dldir/$dlname'
18733
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18734
dlpath=$dir/\$dldll~
18736
shlibpath_overrides_runpath=yes
18740
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
18741
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18742
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18745
# MinGW DLLs use traditional 'lib' prefix
18746
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18747
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18748
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18749
# It is most probably a Windows format PATH printed by
18750
# mingw gcc, but we are running on Cygwin. Gcc prints its search
18751
# path with ; separators, and with drive letters. We can handle the
18752
# drive letters (cygwin fileutils understands them), so leave them,
18753
# especially as we might pass files found there to a mingw objdump,
18754
# which wouldn't understand a cygwinified path. Ahh.
18755
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18757
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18761
# pw32 DLLs use 'pw' prefix rather than 'lib'
18762
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18768
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18771
dynamic_linker='Win32 ld.exe'
18772
# FIXME: first we should search . and the directory the executable is in
18776
darwin* | rhapsody*)
18777
dynamic_linker="$host_os dyld"
18778
version_type=darwin
18781
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18782
soname_spec='${libname}${release}${major}$shared_ext'
18783
shlibpath_overrides_runpath=yes
18784
shlibpath_var=DYLD_LIBRARY_PATH
18785
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18787
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18794
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18795
soname_spec='${libname}${release}${shared_ext}$major'
18796
shlibpath_var=LD_LIBRARY_PATH
18803
freebsd* | dragonfly*)
18804
# DragonFly does not have aout. When/if they implement a new
18805
# versioning mechanism, adjust this.
18806
if test -x /usr/bin/objformat; then
18807
objformat=`/usr/bin/objformat`
18810
freebsd[123]*) objformat=aout ;;
18811
*) objformat=elf ;;
18814
version_type=freebsd-$objformat
18815
case $version_type in
18817
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18822
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18826
shlibpath_var=LD_LIBRARY_PATH
18829
shlibpath_overrides_runpath=yes
18831
freebsd3.[01]* | freebsdelf3.[01]*)
18832
shlibpath_overrides_runpath=yes
18833
hardcode_into_libs=yes
18835
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18836
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18837
shlibpath_overrides_runpath=no
18838
hardcode_into_libs=yes
18840
*) # from 4.6 on, and DragonFly
18841
shlibpath_overrides_runpath=yes
18842
hardcode_into_libs=yes
18851
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18852
soname_spec='${libname}${release}${shared_ext}$major'
18853
shlibpath_var=LD_LIBRARY_PATH
18854
hardcode_into_libs=yes
18857
hpux9* | hpux10* | hpux11*)
18858
# Give a soname corresponding to the major version so that dld.sl refuses to
18859
# link against other versions.
18866
hardcode_into_libs=yes
18867
dynamic_linker="$host_os dld.so"
18868
shlibpath_var=LD_LIBRARY_PATH
18869
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18870
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18871
soname_spec='${libname}${release}${shared_ext}$major'
18872
if test "X$HPUX_IA64_MODE" = X32; then
18873
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18875
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18877
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18881
hardcode_into_libs=yes
18882
dynamic_linker="$host_os dld.sl"
18883
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18884
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18885
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18886
soname_spec='${libname}${release}${shared_ext}$major'
18887
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18888
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18892
dynamic_linker="$host_os dld.sl"
18893
shlibpath_var=SHLIB_PATH
18894
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18895
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18896
soname_spec='${libname}${release}${shared_ext}$major'
18899
# HP-UX runs *really* slowly unless shared libraries are mode 555.
18900
postinstall_cmds='chmod 555 $lib'
18907
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18908
soname_spec='${libname}${release}${shared_ext}$major'
18909
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18910
shlibpath_var=LD_LIBRARY_PATH
18911
shlibpath_overrides_runpath=no
18912
hardcode_into_libs=yes
18915
irix5* | irix6* | nonstopux*)
18917
nonstopux*) version_type=nonstopux ;;
18919
if test "$lt_cv_prog_gnu_ld" = yes; then
18927
soname_spec='${libname}${release}${shared_ext}$major'
18928
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18930
irix5* | nonstopux*)
18931
libsuff= shlibsuff=
18934
case $LD in # libtool.m4 will add one of these switches to LD
18935
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18936
libsuff= shlibsuff= libmagic=32-bit;;
18937
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18938
libsuff=32 shlibsuff=N32 libmagic=N32;;
18939
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18940
libsuff=64 shlibsuff=64 libmagic=64-bit;;
18941
*) libsuff= shlibsuff= libmagic=never-match;;
18945
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18946
shlibpath_overrides_runpath=no
18947
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18948
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18949
hardcode_into_libs=yes
18952
# No shared lib support for Linux oldld, aout, or coff.
18953
linux*oldld* | linux*aout* | linux*coff*)
18957
# This must be Linux ELF.
18958
linux* | k*bsd*-gnu)
18962
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18963
soname_spec='${libname}${release}${shared_ext}$major'
18964
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18965
shlibpath_var=LD_LIBRARY_PATH
18966
shlibpath_overrides_runpath=no
18967
# This implies no fast_install, which is unacceptable.
18968
# Some rework will be needed to allow for fast_install
18969
# before this can be enabled.
18970
hardcode_into_libs=yes
18971
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18972
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18974
# Append ld.so.conf contents to the search path
18975
if test -f /etc/ld.so.conf; then
18976
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' ' '`
18977
sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18980
# We used to test for /lib/ld.so.1 and disable shared libraries on
18981
# powerpc, because MkLinux only supported shared libraries with the
18982
# GNU dynamic linker. Since this was broken with cross compilers,
18983
# most powerpc-linux boxes support dynamic linking these days and
18984
# people can always --disable-shared, the test was removed, and we
18985
# assume the GNU/Linux dynamic linker is in use.
18986
dynamic_linker='GNU/Linux ld.so'
18993
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18994
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18995
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18996
dynamic_linker='NetBSD (a.out) ld.so'
18998
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18999
soname_spec='${libname}${release}${shared_ext}$major'
19000
dynamic_linker='NetBSD ld.elf_so'
19002
shlibpath_var=LD_LIBRARY_PATH
19003
shlibpath_overrides_runpath=yes
19004
hardcode_into_libs=yes
19009
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19010
shlibpath_var=LD_LIBRARY_PATH
19011
shlibpath_overrides_runpath=yes
19018
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19019
soname_spec='${libname}${release}${shared_ext}$major'
19020
shlibpath_var=LD_LIBRARY_PATH
19021
shlibpath_overrides_runpath=yes
19026
sys_lib_dlsearch_path_spec="/usr/lib"
19028
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19030
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19031
*) need_version=no ;;
19033
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19034
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19035
shlibpath_var=LD_LIBRARY_PATH
19036
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19038
openbsd2.[89] | openbsd2.[89].*)
19039
shlibpath_overrides_runpath=no
19042
shlibpath_overrides_runpath=yes
19046
shlibpath_overrides_runpath=yes
19051
libname_spec='$name'
19054
library_names_spec='$libname${shared_ext} $libname.a'
19055
dynamic_linker='OS/2 ld.exe'
19056
shlibpath_var=LIBPATH
19059
osf3* | osf4* | osf5*)
19063
soname_spec='${libname}${release}${shared_ext}$major'
19064
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19065
shlibpath_var=LD_LIBRARY_PATH
19066
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19067
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19078
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19079
soname_spec='${libname}${release}${shared_ext}$major'
19080
shlibpath_var=LD_LIBRARY_PATH
19081
shlibpath_overrides_runpath=yes
19082
hardcode_into_libs=yes
19083
# ldd complains unless libraries are executable
19084
postinstall_cmds='chmod +x $lib'
19089
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19090
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19091
shlibpath_var=LD_LIBRARY_PATH
19092
shlibpath_overrides_runpath=yes
19093
if test "$with_gnu_ld" = yes; then
19101
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19102
soname_spec='${libname}${release}${shared_ext}$major'
19103
shlibpath_var=LD_LIBRARY_PATH
19104
case $host_vendor in
19106
shlibpath_overrides_runpath=no
19108
export_dynamic_flag_spec='${wl}-Blargedynsym'
19109
runpath_var=LD_RUN_PATH
19117
shlibpath_overrides_runpath=no
19118
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19124
if test -d /usr/nec ;then
19126
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19127
soname_spec='$libname${shared_ext}.$major'
19128
shlibpath_var=LD_LIBRARY_PATH
19132
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19133
version_type=freebsd-elf
19136
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19137
soname_spec='${libname}${release}${shared_ext}$major'
19138
shlibpath_var=LD_LIBRARY_PATH
19139
hardcode_into_libs=yes
19140
if test "$with_gnu_ld" = yes; then
19141
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19142
shlibpath_overrides_runpath=no
19144
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19145
shlibpath_overrides_runpath=yes
19148
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19152
sys_lib_dlsearch_path_spec='/usr/lib'
19157
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19158
soname_spec='${libname}${release}${shared_ext}$major'
19159
shlibpath_var=LD_LIBRARY_PATH
19166
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19167
$as_echo "$dynamic_linker" >&6; }
19168
test "$dynamic_linker" = no && can_build_shared=no
19170
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19171
$as_echo_n "(cached) " >&6
19173
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19176
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19177
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19178
$as_echo_n "(cached) " >&6
19180
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19183
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19185
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19186
if test "$GCC" = yes; then
19187
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19190
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19191
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19192
hardcode_action_GCJ=
19193
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19194
test -n "$runpath_var_GCJ" || \
19195
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19197
# We can hardcode non-existant directories.
19198
if test "$hardcode_direct_GCJ" != no &&
19199
# If the only mechanism to avoid hardcoding is shlibpath_var, we
19200
# have to relink, otherwise we might link with an installed library
19201
# when we should be linking with a yet-to-be-installed one
19202
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19203
test "$hardcode_minus_L_GCJ" != no; then
19204
# Linking always hardcodes the temporary library directory.
19205
hardcode_action_GCJ=relink
19207
# We can link without hardcoding, and we can hardcode nonexisting dirs.
19208
hardcode_action_GCJ=immediate
19211
# We cannot hardcode anything, or else we can only hardcode existing
19213
hardcode_action_GCJ=unsupported
19215
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19216
$as_echo "$hardcode_action_GCJ" >&6; }
19218
if test "$hardcode_action_GCJ" = relink; then
19219
# Fast installation is not supported
19220
enable_fast_install=no
19221
elif test "$shlibpath_overrides_runpath" = yes ||
19222
test "$enable_shared" = no; then
19223
# Fast installation is not necessary
19224
enable_fast_install=needless
19228
# The else clause should only fire when bootstrapping the
19229
# libtool distribution, otherwise you forgot to ship ltmain.sh
19230
# with your package, and you will get complaints that there are
19231
# no rules to generate ltmain.sh.
19232
if test -f "$ltmain"; then
19233
# See if we are running on zsh, and set the options which allow our commands through
19234
# without removal of \ escapes.
19235
if test -n "${ZSH_VERSION+set}" ; then
19236
setopt NO_GLOB_SUBST
19238
# Now quote all the things that may contain metacharacters while being
19239
# careful not to overquote the AC_SUBSTed values. We take copies of the
19240
# variables and quote the copies for generation of the libtool script.
19241
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19243
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19244
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19245
deplibs_check_method reload_flag reload_cmds need_locks \
19246
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19247
lt_cv_sys_global_symbol_to_c_name_address \
19248
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19249
old_postinstall_cmds old_postuninstall_cmds \
19253
lt_prog_compiler_wl_GCJ \
19254
lt_prog_compiler_pic_GCJ \
19255
lt_prog_compiler_static_GCJ \
19256
lt_prog_compiler_no_builtin_flag_GCJ \
19257
export_dynamic_flag_spec_GCJ \
19258
thread_safe_flag_spec_GCJ \
19259
whole_archive_flag_spec_GCJ \
19260
enable_shared_with_static_runtimes_GCJ \
19261
old_archive_cmds_GCJ \
19262
old_archive_from_new_cmds_GCJ \
19263
predep_objects_GCJ \
19264
postdep_objects_GCJ \
19267
compiler_lib_search_path_GCJ \
19268
compiler_lib_search_dirs_GCJ \
19270
archive_expsym_cmds_GCJ \
19271
postinstall_cmds_GCJ \
19272
postuninstall_cmds_GCJ \
19273
old_archive_from_expsyms_cmds_GCJ \
19274
allow_undefined_flag_GCJ \
19275
no_undefined_flag_GCJ \
19276
export_symbols_cmds_GCJ \
19277
hardcode_libdir_flag_spec_GCJ \
19278
hardcode_libdir_flag_spec_ld_GCJ \
19279
hardcode_libdir_separator_GCJ \
19280
hardcode_automatic_GCJ \
19282
module_expsym_cmds_GCJ \
19283
lt_cv_prog_compiler_c_o_GCJ \
19284
fix_srcfile_path_GCJ \
19285
exclude_expsyms_GCJ \
19286
include_expsyms_GCJ; do
19289
old_archive_cmds_GCJ | \
19290
old_archive_from_new_cmds_GCJ | \
19291
archive_cmds_GCJ | \
19292
archive_expsym_cmds_GCJ | \
19293
module_cmds_GCJ | \
19294
module_expsym_cmds_GCJ | \
19295
old_archive_from_expsyms_cmds_GCJ | \
19296
export_symbols_cmds_GCJ | \
19297
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19298
postinstall_cmds | postuninstall_cmds | \
19299
old_postinstall_cmds | old_postuninstall_cmds | \
19300
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19301
# Double-quote double-evaled strings.
19302
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19305
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19311
*'\$0 --fallback-echo"')
19312
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19318
cat <<__EOF__ >> "$cfgfile"
19319
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19321
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19323
# Shell to use when invoking shell scripts.
19326
# Whether or not to build shared libraries.
19327
build_libtool_libs=$enable_shared
19329
# Whether or not to build static libraries.
19330
build_old_libs=$enable_static
19332
# Whether or not to add -lc for building shared libraries.
19333
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19335
# Whether or not to disallow shared libs when runtime libs are static
19336
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19338
# Whether or not to optimize for fast installation.
19339
fast_install=$enable_fast_install
19342
host_alias=$host_alias
19346
# The build system.
19347
build_alias=$build_alias
19351
# An echo program that does not interpret backslashes.
19356
AR_FLAGS=$lt_AR_FLAGS
19361
# LTCC compiler flags.
19362
LTCFLAGS=$lt_LTCFLAGS
19364
# A language-specific compiler.
19365
CC=$lt_compiler_GCJ
19367
# Is the compiler the GNU C compiler?
19373
# The linker used to build libraries.
19376
# Whether we need hard or soft links.
19379
# A BSD-compatible nm program.
19382
# A symbol stripping program
19385
# Used to examine libraries when file_magic_cmd begins "file"
19386
MAGIC_CMD=$MAGIC_CMD
19388
# Used on cygwin: DLL creation program.
19391
# Used on cygwin: object dumper.
19394
# Used on cygwin: assembler.
19397
# The name of the directory that contains temporary libtool files.
19400
# How to create reloadable object files.
19401
reload_flag=$lt_reload_flag
19402
reload_cmds=$lt_reload_cmds
19404
# How to pass a linker flag through the compiler.
19405
wl=$lt_lt_prog_compiler_wl_GCJ
19407
# Object file suffix (normally "o").
19408
objext="$ac_objext"
19410
# Old archive suffix (normally "a").
19413
# Shared library suffix (normally ".so").
19414
shrext_cmds='$shrext_cmds'
19416
# Executable file suffix (normally "").
19419
# Additional compiler flags for building library objects.
19420
pic_flag=$lt_lt_prog_compiler_pic_GCJ
19423
# What is the maximum length of a command?
19424
max_cmd_len=$lt_cv_sys_max_cmd_len
19426
# Does compiler simultaneously support -c and -o options?
19427
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19429
# Must we lock files when doing compilation?
19430
need_locks=$lt_need_locks
19432
# Do we need the lib prefix for modules?
19433
need_lib_prefix=$need_lib_prefix
19435
# Do we need a version for libraries?
19436
need_version=$need_version
19438
# Whether dlopen is supported.
19439
dlopen_support=$enable_dlopen
19441
# Whether dlopen of programs is supported.
19442
dlopen_self=$enable_dlopen_self
19444
# Whether dlopen of statically linked programs is supported.
19445
dlopen_self_static=$enable_dlopen_self_static
19447
# Compiler flag to prevent dynamic linking.
19448
link_static_flag=$lt_lt_prog_compiler_static_GCJ
19450
# Compiler flag to turn off builtin functions.
19451
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19453
# Compiler flag to allow reflexive dlopens.
19454
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19456
# Compiler flag to generate shared objects directly from archives.
19457
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19459
# Compiler flag to generate thread-safe objects.
19460
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19462
# Library versioning type.
19463
version_type=$version_type
19465
# Format of library name prefix.
19466
libname_spec=$lt_libname_spec
19468
# List of archive names. First name is the real one, the rest are links.
19469
# The last name is the one that the linker finds with -lNAME.
19470
library_names_spec=$lt_library_names_spec
19472
# The coded name of the library, if different from the real name.
19473
soname_spec=$lt_soname_spec
19475
# Commands used to build and install an old-style archive.
19477
old_archive_cmds=$lt_old_archive_cmds_GCJ
19478
old_postinstall_cmds=$lt_old_postinstall_cmds
19479
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19481
# Create an old-style archive from a shared archive.
19482
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19484
# Create a temporary old-style archive to link instead of a shared archive.
19485
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19487
# Commands used to build and install a shared archive.
19488
archive_cmds=$lt_archive_cmds_GCJ
19489
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19490
postinstall_cmds=$lt_postinstall_cmds
19491
postuninstall_cmds=$lt_postuninstall_cmds
19493
# Commands used to build a loadable module (assumed same as above if empty)
19494
module_cmds=$lt_module_cmds_GCJ
19495
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19497
# Commands to strip libraries.
19498
old_striplib=$lt_old_striplib
19499
striplib=$lt_striplib
19501
# Dependencies to place before the objects being linked to create a
19503
predep_objects=$lt_predep_objects_GCJ
19505
# Dependencies to place after the objects being linked to create a
19507
postdep_objects=$lt_postdep_objects_GCJ
19509
# Dependencies to place before the objects being linked to create a
19511
predeps=$lt_predeps_GCJ
19513
# Dependencies to place after the objects being linked to create a
19515
postdeps=$lt_postdeps_GCJ
19517
# The directories searched by this compiler when creating a shared
19519
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19521
# The library search path used internally by the compiler when linking
19522
# a shared library.
19523
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19525
# Method to check whether dependent libraries are shared objects.
19526
deplibs_check_method=$lt_deplibs_check_method
19528
# Command to use when deplibs_check_method == file_magic.
19529
file_magic_cmd=$lt_file_magic_cmd
19531
# Flag that allows shared libraries with undefined symbols to be built.
19532
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19534
# Flag that forces no undefined symbols.
19535
no_undefined_flag=$lt_no_undefined_flag_GCJ
19537
# Commands used to finish a libtool library installation in a directory.
19538
finish_cmds=$lt_finish_cmds
19540
# Same as above, but a single script fragment to be evaled but not shown.
19541
finish_eval=$lt_finish_eval
19543
# Take the output of nm and produce a listing of raw symbols and C names.
19544
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19546
# Transform the output of nm in a proper C declaration
19547
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19549
# Transform the output of nm in a C name address pair
19550
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19552
# This is the shared library runtime path variable.
19553
runpath_var=$runpath_var
19555
# This is the shared library path variable.
19556
shlibpath_var=$shlibpath_var
19558
# Is shlibpath searched before the hard-coded library search path?
19559
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19561
# How to hardcode a shared library path into an executable.
19562
hardcode_action=$hardcode_action_GCJ
19564
# Whether we should hardcode library paths into libraries.
19565
hardcode_into_libs=$hardcode_into_libs
19567
# Flag to hardcode \$libdir into a binary during linking.
19568
# This must work even if \$libdir does not exist.
19569
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19571
# If ld is used when linking, flag to hardcode \$libdir into
19572
# a binary during linking. This must work even if \$libdir does
19574
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19576
# Whether we need a single -rpath flag with a separated argument.
19577
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19579
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19580
# resulting binary.
19581
hardcode_direct=$hardcode_direct_GCJ
19583
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19584
# resulting binary.
19585
hardcode_minus_L=$hardcode_minus_L_GCJ
19587
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19588
# the resulting binary.
19589
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19591
# Set to yes if building a shared library automatically hardcodes DIR into the library
19592
# and all subsequent libraries and executables linked against it.
19593
hardcode_automatic=$hardcode_automatic_GCJ
19595
# Variables whose values should be saved in libtool wrapper scripts and
19596
# restored at relink time.
19597
variables_saved_for_relink="$variables_saved_for_relink"
19599
# Whether libtool must link a program against all its dependency libraries.
19600
link_all_deplibs=$link_all_deplibs_GCJ
19602
# Compile-time system search path for libraries
19603
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19605
# Run-time system search path for libraries
19606
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19608
# Fix the shell variable \$srcfile for the compiler.
19609
fix_srcfile_path=$lt_fix_srcfile_path
19611
# Set to yes if exported symbols are required.
19612
always_export_symbols=$always_export_symbols_GCJ
19614
# The commands to list exported symbols.
19615
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19617
# The commands to extract the exported symbol list from a shared archive.
19618
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19620
# Symbols that should not be listed in the preloaded symbols.
19621
exclude_expsyms=$lt_exclude_expsyms_GCJ
19623
# Symbols that must always be exported.
19624
include_expsyms=$lt_include_expsyms_GCJ
19626
# ### END LIBTOOL TAG CONFIG: $tagname
19632
# If there is no Makefile yet, we rely on a make rule to execute
19633
# `config.status --recheck' to rerun these tests and create the
19634
# libtool script then.
19635
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19636
if test -f "$ltmain_in"; then
19637
test -f Makefile && make "$ltmain"
19643
ac_cpp='$CPP $CPPFLAGS'
19644
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19645
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19646
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19658
# Source file extension for RC test sources.
19661
# Object file extension for compiled RC test sources.
19665
# Code to be used in simple compile tests
19666
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19668
# Code to be used in simple link tests
19669
lt_simple_link_test_code="$lt_simple_compile_test_code"
19671
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19673
# If no C compiler was specified, use CC.
19676
# If no C compiler flags were specified, use CFLAGS.
19677
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19679
# Allow CC to be a program name with arguments.
19683
# save warnings/boilerplate of simple test code
19684
ac_outfile=conftest.$ac_objext
19685
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19686
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19687
_lt_compiler_boilerplate=`cat conftest.err`
19690
ac_outfile=conftest.$ac_objext
19691
echo "$lt_simple_link_test_code" >conftest.$ac_ext
19692
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19693
_lt_linker_boilerplate=`cat conftest.err`
19697
# Allow CC to be a program name with arguments.
19702
for cc_temp in $compiler""; do
19704
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19705
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19710
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19712
lt_cv_prog_compiler_c_o_RC=yes
19714
# The else clause should only fire when bootstrapping the
19715
# libtool distribution, otherwise you forgot to ship ltmain.sh
19716
# with your package, and you will get complaints that there are
19717
# no rules to generate ltmain.sh.
19718
if test -f "$ltmain"; then
19719
# See if we are running on zsh, and set the options which allow our commands through
19720
# without removal of \ escapes.
19721
if test -n "${ZSH_VERSION+set}" ; then
19722
setopt NO_GLOB_SUBST
19724
# Now quote all the things that may contain metacharacters while being
19725
# careful not to overquote the AC_SUBSTed values. We take copies of the
19726
# variables and quote the copies for generation of the libtool script.
19727
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19729
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19730
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19731
deplibs_check_method reload_flag reload_cmds need_locks \
19732
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19733
lt_cv_sys_global_symbol_to_c_name_address \
19734
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19735
old_postinstall_cmds old_postuninstall_cmds \
19739
lt_prog_compiler_wl_RC \
19740
lt_prog_compiler_pic_RC \
19741
lt_prog_compiler_static_RC \
19742
lt_prog_compiler_no_builtin_flag_RC \
19743
export_dynamic_flag_spec_RC \
19744
thread_safe_flag_spec_RC \
19745
whole_archive_flag_spec_RC \
19746
enable_shared_with_static_runtimes_RC \
19747
old_archive_cmds_RC \
19748
old_archive_from_new_cmds_RC \
19749
predep_objects_RC \
19750
postdep_objects_RC \
19753
compiler_lib_search_path_RC \
19754
compiler_lib_search_dirs_RC \
19756
archive_expsym_cmds_RC \
19757
postinstall_cmds_RC \
19758
postuninstall_cmds_RC \
19759
old_archive_from_expsyms_cmds_RC \
19760
allow_undefined_flag_RC \
19761
no_undefined_flag_RC \
19762
export_symbols_cmds_RC \
19763
hardcode_libdir_flag_spec_RC \
19764
hardcode_libdir_flag_spec_ld_RC \
19765
hardcode_libdir_separator_RC \
19766
hardcode_automatic_RC \
19768
module_expsym_cmds_RC \
19769
lt_cv_prog_compiler_c_o_RC \
19770
fix_srcfile_path_RC \
19771
exclude_expsyms_RC \
19772
include_expsyms_RC; do
19775
old_archive_cmds_RC | \
19776
old_archive_from_new_cmds_RC | \
19777
archive_cmds_RC | \
19778
archive_expsym_cmds_RC | \
19780
module_expsym_cmds_RC | \
19781
old_archive_from_expsyms_cmds_RC | \
19782
export_symbols_cmds_RC | \
19783
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19784
postinstall_cmds | postuninstall_cmds | \
19785
old_postinstall_cmds | old_postuninstall_cmds | \
19786
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19787
# Double-quote double-evaled strings.
19788
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19791
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19797
*'\$0 --fallback-echo"')
19798
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19804
cat <<__EOF__ >> "$cfgfile"
19805
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19807
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19809
# Shell to use when invoking shell scripts.
19812
# Whether or not to build shared libraries.
19813
build_libtool_libs=$enable_shared
19815
# Whether or not to build static libraries.
19816
build_old_libs=$enable_static
19818
# Whether or not to add -lc for building shared libraries.
19819
build_libtool_need_lc=$archive_cmds_need_lc_RC
19821
# Whether or not to disallow shared libs when runtime libs are static
19822
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19824
# Whether or not to optimize for fast installation.
19825
fast_install=$enable_fast_install
19828
host_alias=$host_alias
19832
# The build system.
19833
build_alias=$build_alias
19837
# An echo program that does not interpret backslashes.
19842
AR_FLAGS=$lt_AR_FLAGS
19847
# LTCC compiler flags.
19848
LTCFLAGS=$lt_LTCFLAGS
19850
# A language-specific compiler.
19853
# Is the compiler the GNU C compiler?
19859
# The linker used to build libraries.
19862
# Whether we need hard or soft links.
19865
# A BSD-compatible nm program.
19868
# A symbol stripping program
19871
# Used to examine libraries when file_magic_cmd begins "file"
19872
MAGIC_CMD=$MAGIC_CMD
19874
# Used on cygwin: DLL creation program.
19877
# Used on cygwin: object dumper.
19880
# Used on cygwin: assembler.
19883
# The name of the directory that contains temporary libtool files.
19886
# How to create reloadable object files.
19887
reload_flag=$lt_reload_flag
19888
reload_cmds=$lt_reload_cmds
19890
# How to pass a linker flag through the compiler.
19891
wl=$lt_lt_prog_compiler_wl_RC
19893
# Object file suffix (normally "o").
19894
objext="$ac_objext"
19896
# Old archive suffix (normally "a").
19899
# Shared library suffix (normally ".so").
19900
shrext_cmds='$shrext_cmds'
19902
# Executable file suffix (normally "").
19905
# Additional compiler flags for building library objects.
19906
pic_flag=$lt_lt_prog_compiler_pic_RC
19909
# What is the maximum length of a command?
19910
max_cmd_len=$lt_cv_sys_max_cmd_len
19912
# Does compiler simultaneously support -c and -o options?
19913
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19915
# Must we lock files when doing compilation?
19916
need_locks=$lt_need_locks
19918
# Do we need the lib prefix for modules?
19919
need_lib_prefix=$need_lib_prefix
19921
# Do we need a version for libraries?
19922
need_version=$need_version
19924
# Whether dlopen is supported.
19925
dlopen_support=$enable_dlopen
19927
# Whether dlopen of programs is supported.
19928
dlopen_self=$enable_dlopen_self
19930
# Whether dlopen of statically linked programs is supported.
19931
dlopen_self_static=$enable_dlopen_self_static
19933
# Compiler flag to prevent dynamic linking.
19934
link_static_flag=$lt_lt_prog_compiler_static_RC
19936
# Compiler flag to turn off builtin functions.
19937
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19939
# Compiler flag to allow reflexive dlopens.
19940
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19942
# Compiler flag to generate shared objects directly from archives.
19943
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19945
# Compiler flag to generate thread-safe objects.
19946
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19948
# Library versioning type.
19949
version_type=$version_type
19951
# Format of library name prefix.
19952
libname_spec=$lt_libname_spec
19954
# List of archive names. First name is the real one, the rest are links.
19955
# The last name is the one that the linker finds with -lNAME.
19956
library_names_spec=$lt_library_names_spec
19958
# The coded name of the library, if different from the real name.
19959
soname_spec=$lt_soname_spec
19961
# Commands used to build and install an old-style archive.
19963
old_archive_cmds=$lt_old_archive_cmds_RC
19964
old_postinstall_cmds=$lt_old_postinstall_cmds
19965
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19967
# Create an old-style archive from a shared archive.
19968
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19970
# Create a temporary old-style archive to link instead of a shared archive.
19971
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19973
# Commands used to build and install a shared archive.
19974
archive_cmds=$lt_archive_cmds_RC
19975
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19976
postinstall_cmds=$lt_postinstall_cmds
19977
postuninstall_cmds=$lt_postuninstall_cmds
19979
# Commands used to build a loadable module (assumed same as above if empty)
19980
module_cmds=$lt_module_cmds_RC
19981
module_expsym_cmds=$lt_module_expsym_cmds_RC
19983
# Commands to strip libraries.
19984
old_striplib=$lt_old_striplib
19985
striplib=$lt_striplib
19987
# Dependencies to place before the objects being linked to create a
19989
predep_objects=$lt_predep_objects_RC
19991
# Dependencies to place after the objects being linked to create a
19993
postdep_objects=$lt_postdep_objects_RC
19995
# Dependencies to place before the objects being linked to create a
19997
predeps=$lt_predeps_RC
19999
# Dependencies to place after the objects being linked to create a
20001
postdeps=$lt_postdeps_RC
20003
# The directories searched by this compiler when creating a shared
20005
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
20007
# The library search path used internally by the compiler when linking
20008
# a shared library.
20009
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20011
# Method to check whether dependent libraries are shared objects.
20012
deplibs_check_method=$lt_deplibs_check_method
20014
# Command to use when deplibs_check_method == file_magic.
20015
file_magic_cmd=$lt_file_magic_cmd
20017
# Flag that allows shared libraries with undefined symbols to be built.
20018
allow_undefined_flag=$lt_allow_undefined_flag_RC
20020
# Flag that forces no undefined symbols.
20021
no_undefined_flag=$lt_no_undefined_flag_RC
20023
# Commands used to finish a libtool library installation in a directory.
20024
finish_cmds=$lt_finish_cmds
20026
# Same as above, but a single script fragment to be evaled but not shown.
20027
finish_eval=$lt_finish_eval
20029
# Take the output of nm and produce a listing of raw symbols and C names.
20030
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20032
# Transform the output of nm in a proper C declaration
20033
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20035
# Transform the output of nm in a C name address pair
20036
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20038
# This is the shared library runtime path variable.
20039
runpath_var=$runpath_var
20041
# This is the shared library path variable.
20042
shlibpath_var=$shlibpath_var
20044
# Is shlibpath searched before the hard-coded library search path?
20045
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20047
# How to hardcode a shared library path into an executable.
20048
hardcode_action=$hardcode_action_RC
20050
# Whether we should hardcode library paths into libraries.
20051
hardcode_into_libs=$hardcode_into_libs
20053
# Flag to hardcode \$libdir into a binary during linking.
20054
# This must work even if \$libdir does not exist.
20055
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20057
# If ld is used when linking, flag to hardcode \$libdir into
20058
# a binary during linking. This must work even if \$libdir does
20060
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20062
# Whether we need a single -rpath flag with a separated argument.
20063
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20065
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20066
# resulting binary.
20067
hardcode_direct=$hardcode_direct_RC
20069
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20070
# resulting binary.
20071
hardcode_minus_L=$hardcode_minus_L_RC
20073
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20074
# the resulting binary.
20075
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20077
# Set to yes if building a shared library automatically hardcodes DIR into the library
20078
# and all subsequent libraries and executables linked against it.
20079
hardcode_automatic=$hardcode_automatic_RC
20081
# Variables whose values should be saved in libtool wrapper scripts and
20082
# restored at relink time.
20083
variables_saved_for_relink="$variables_saved_for_relink"
20085
# Whether libtool must link a program against all its dependency libraries.
20086
link_all_deplibs=$link_all_deplibs_RC
20088
# Compile-time system search path for libraries
20089
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20091
# Run-time system search path for libraries
20092
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20094
# Fix the shell variable \$srcfile for the compiler.
20095
fix_srcfile_path=$lt_fix_srcfile_path
20097
# Set to yes if exported symbols are required.
20098
always_export_symbols=$always_export_symbols_RC
20100
# The commands to list exported symbols.
20101
export_symbols_cmds=$lt_export_symbols_cmds_RC
20103
# The commands to extract the exported symbol list from a shared archive.
20104
extract_expsyms_cmds=$lt_extract_expsyms_cmds
20106
# Symbols that should not be listed in the preloaded symbols.
20107
exclude_expsyms=$lt_exclude_expsyms_RC
20109
# Symbols that must always be exported.
20110
include_expsyms=$lt_include_expsyms_RC
20112
# ### END LIBTOOL TAG CONFIG: $tagname
20118
# If there is no Makefile yet, we rely on a make rule to execute
20119
# `config.status --recheck' to rerun these tests and create the
20120
# libtool script then.
20121
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20122
if test -f "$ltmain_in"; then
20123
test -f Makefile && make "$ltmain"
20129
ac_cpp='$CPP $CPPFLAGS'
20130
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20131
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20132
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20139
{ { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20140
$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20141
{ (exit 1); exit 1; }; }
20145
# Append the new tag name to the list of available tags.
20146
if test -n "$tagname" ; then
20147
available_tags="$available_tags $tagname"
20153
# Now substitute the updated list of available tags.
20154
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20155
mv "${ofile}T" "$ofile"
20159
{ { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20160
$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20161
{ (exit 1); exit 1; }; }
20167
# This can be used to rebuild libtool when needed
20168
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20170
# Always use our own libtool.
20171
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20173
# Prevent multiple expansion
10897
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10898
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10899
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10900
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10901
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10902
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10903
$as_echo "yes" >&6; }
10905
# FIXME - insert some real tests, host_os isn't really good enough
10908
if test -n "$STRIP" ; then
10909
striplib="$STRIP -x"
10910
old_striplib="$STRIP -S"
10911
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10912
$as_echo "yes" >&6; }
10914
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10915
$as_echo "no" >&6; }
10919
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10920
$as_echo "no" >&6; }
10936
# Report which library types will actually be built
10937
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10938
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10939
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10940
$as_echo "$can_build_shared" >&6; }
10942
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10943
$as_echo_n "checking whether to build shared libraries... " >&6; }
10944
test "$can_build_shared" = "no" && enable_shared=no
10946
# On AIX, shared libraries and static libraries use the same namespace, and
10947
# are all built from PIC.
10950
test "$enable_shared" = yes && enable_static=no
10951
if test -n "$RANLIB"; then
10952
archive_cmds="$archive_cmds~\$RANLIB \$lib"
10953
postinstall_cmds='$RANLIB $lib'
10958
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10959
test "$enable_shared" = yes && enable_static=no
10963
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10964
$as_echo "$enable_shared" >&6; }
10966
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10967
$as_echo_n "checking whether to build static libraries... " >&6; }
10968
# Make sure either enable_shared or enable_static is yes.
10969
test "$enable_shared" = yes || enable_static=yes
10970
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10971
$as_echo "$enable_static" >&6; }
10978
ac_cpp='$CPP $CPPFLAGS'
10979
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10980
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10981
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10997
ac_config_commands="$ac_config_commands libtool"
11002
# Only expand once:
20195
11005
for ac_func in getisax
20197
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20198
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20199
$as_echo_n "checking for $ac_func... " >&6; }
20200
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20201
$as_echo_n "(cached) " >&6
20203
cat >conftest.$ac_ext <<_ACEOF
20206
cat confdefs.h >>conftest.$ac_ext
20207
cat >>conftest.$ac_ext <<_ACEOF
20208
/* end confdefs.h. */
20209
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20210
For example, HP-UX 11i <limits.h> declares gettimeofday. */
20211
#define $ac_func innocuous_$ac_func
20213
/* System header to define __stub macros and hopefully few prototypes,
20214
which can conflict with char $ac_func (); below.
20215
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20216
<limits.h> exists even on freestanding compilers. */
20219
# include <limits.h>
20221
# include <assert.h>
20226
/* Override any GCC internal prototype to avoid an error.
20227
Use char because int might match the return type of a GCC
20228
builtin and then its argument prototype would still apply. */
20233
/* The GNU C library defines this for functions which it implements
20234
to always fail with ENOSYS. Some functions are actually named
20235
something starting with __ and the normal name is an alias. */
20236
#if defined __stub_$ac_func || defined __stub___$ac_func
20243
return $ac_func ();
20248
rm -f conftest.$ac_objext conftest$ac_exeext
20249
if { (ac_try="$ac_link"
20250
case "(($ac_try" in
20251
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20252
*) ac_try_echo=$ac_try;;
20254
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20255
$as_echo "$ac_try_echo") >&5
20256
(eval "$ac_link") 2>conftest.er1
20258
grep -v '^ *+' conftest.er1 >conftest.err
20260
cat conftest.err >&5
20261
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20262
(exit $ac_status); } && {
20263
test -z "$ac_c_werror_flag" ||
20264
test ! -s conftest.err
20265
} && test -s conftest$ac_exeext && {
20266
test "$cross_compiling" = yes ||
20267
$as_test_x conftest$ac_exeext
20269
eval "$as_ac_var=yes"
20271
$as_echo "$as_me: failed program was:" >&5
20272
sed 's/^/| /' conftest.$ac_ext >&5
20274
eval "$as_ac_var=no"
20277
rm -rf conftest.dSYM
20278
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20279
conftest$ac_exeext conftest.$ac_ext
20281
ac_res=`eval 'as_val=${'$as_ac_var'}
20282
$as_echo "$as_val"'`
20283
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20284
$as_echo "$ac_res" >&6; }
20285
as_val=`eval 'as_val=${'$as_ac_var'}
20286
$as_echo "$as_val"'`
20287
if test "x$as_val" = x""yes; then
11007
ac_fn_c_check_func "$LINENO" "getisax" "ac_cv_func_getisax"
11008
if test "x$ac_cv_func_getisax" = x""yes; then :
20288
11009
cat >>confdefs.h <<_ACEOF
20289
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11010
#define HAVE_GETISAX 1
20296
{ $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
11016
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
20297
11017
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
20298
if test "${ac_cv_c_bigendian+set}" = set; then
11018
if test "${ac_cv_c_bigendian+set}" = set; then :
20299
11019
$as_echo_n "(cached) " >&6
20301
11021
ac_cv_c_bigendian=unknown
20302
11022
# See if we're dealing with a universal compiler.
20303
cat >conftest.$ac_ext <<_ACEOF
20306
cat confdefs.h >>conftest.$ac_ext
20307
cat >>conftest.$ac_ext <<_ACEOF
11023
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20308
11024
/* end confdefs.h. */
20309
11025
#ifndef __APPLE_CC__
20310
11026
not a universal capable compiler