10983
{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10984
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10985
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10986
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10987
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10988
{ $as_echo "$as_me:$LINENO: result: yes" >&5
10989
$as_echo "yes" >&6; }
10991
# FIXME - insert some real tests, host_os isn't really good enough
10994
if test -n "$STRIP" ; then
10995
striplib="$STRIP -x"
10996
old_striplib="$STRIP -S"
10997
{ $as_echo "$as_me:$LINENO: result: yes" >&5
10998
$as_echo "yes" >&6; }
11000
{ $as_echo "$as_me:$LINENO: result: no" >&5
11001
$as_echo "no" >&6; }
11005
{ $as_echo "$as_me:$LINENO: result: no" >&5
11006
$as_echo "no" >&6; }
11022
# Report which library types will actually be built
11023
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11024
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11025
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11026
$as_echo "$can_build_shared" >&6; }
11028
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11029
$as_echo_n "checking whether to build shared libraries... " >&6; }
11030
test "$can_build_shared" = "no" && enable_shared=no
11032
# On AIX, shared libraries and static libraries use the same namespace, and
11033
# are all built from PIC.
11036
test "$enable_shared" = yes && enable_static=no
11037
if test -n "$RANLIB"; then
11038
archive_cmds="$archive_cmds~\$RANLIB \$lib"
11039
postinstall_cmds='$RANLIB $lib'
11044
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11045
test "$enable_shared" = yes && enable_static=no
11049
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11050
$as_echo "$enable_shared" >&6; }
11052
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11053
$as_echo_n "checking whether to build static libraries... " >&6; }
11054
# Make sure either enable_shared or enable_static is yes.
11055
test "$enable_shared" = yes || enable_static=yes
11056
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11057
$as_echo "$enable_static" >&6; }
11064
ac_cpp='$CPP $CPPFLAGS'
11065
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11066
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11067
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11083
ac_config_commands="$ac_config_commands libtool"
11088
# Only expand once:
10666
# Report which library types will actually be built
10667
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10668
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10669
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10670
$as_echo "$can_build_shared" >&6; }
10672
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10673
$as_echo_n "checking whether to build shared libraries... " >&6; }
10674
test "$can_build_shared" = "no" && enable_shared=no
10676
# On AIX, shared libraries and static libraries use the same namespace, and
10677
# are all built from PIC.
10680
test "$enable_shared" = yes && enable_static=no
10681
if test -n "$RANLIB"; then
10682
archive_cmds="$archive_cmds~\$RANLIB \$lib"
10683
postinstall_cmds='$RANLIB $lib'
10688
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10689
test "$enable_shared" = yes && enable_static=no
10693
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10694
$as_echo "$enable_shared" >&6; }
10696
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10697
$as_echo_n "checking whether to build static libraries... " >&6; }
10698
# Make sure either enable_shared or enable_static is yes.
10699
test "$enable_shared" = yes || enable_static=yes
10700
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10701
$as_echo "$enable_static" >&6; }
10703
# The else clause should only fire when bootstrapping the
10704
# libtool distribution, otherwise you forgot to ship ltmain.sh
10705
# with your package, and you will get complaints that there are
10706
# no rules to generate ltmain.sh.
10707
if test -f "$ltmain"; then
10708
# See if we are running on zsh, and set the options which allow our commands through
10709
# without removal of \ escapes.
10710
if test -n "${ZSH_VERSION+set}" ; then
10711
setopt NO_GLOB_SUBST
10713
# Now quote all the things that may contain metacharacters while being
10714
# careful not to overquote the AC_SUBSTed values. We take copies of the
10715
# variables and quote the copies for generation of the libtool script.
10716
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10718
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10719
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10720
deplibs_check_method reload_flag reload_cmds need_locks \
10721
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10722
lt_cv_sys_global_symbol_to_c_name_address \
10723
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10724
old_postinstall_cmds old_postuninstall_cmds \
10728
lt_prog_compiler_wl \
10729
lt_prog_compiler_pic \
10730
lt_prog_compiler_static \
10731
lt_prog_compiler_no_builtin_flag \
10732
export_dynamic_flag_spec \
10733
thread_safe_flag_spec \
10734
whole_archive_flag_spec \
10735
enable_shared_with_static_runtimes \
10737
old_archive_from_new_cmds \
10742
compiler_lib_search_path \
10743
compiler_lib_search_dirs \
10745
archive_expsym_cmds \
10747
postuninstall_cmds \
10748
old_archive_from_expsyms_cmds \
10749
allow_undefined_flag \
10750
no_undefined_flag \
10751
export_symbols_cmds \
10752
hardcode_libdir_flag_spec \
10753
hardcode_libdir_flag_spec_ld \
10754
hardcode_libdir_separator \
10755
hardcode_automatic \
10757
module_expsym_cmds \
10758
lt_cv_prog_compiler_c_o \
10761
include_expsyms; do
10764
old_archive_cmds | \
10765
old_archive_from_new_cmds | \
10767
archive_expsym_cmds | \
10769
module_expsym_cmds | \
10770
old_archive_from_expsyms_cmds | \
10771
export_symbols_cmds | \
10772
extract_expsyms_cmds | reload_cmds | finish_cmds | \
10773
postinstall_cmds | postuninstall_cmds | \
10774
old_postinstall_cmds | old_postuninstall_cmds | \
10775
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10776
# Double-quote double-evaled strings.
10777
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10780
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10786
*'\$0 --fallback-echo"')
10787
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10791
cfgfile="${ofile}T"
10792
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10794
{ $as_echo "$as_me:$LINENO: creating $ofile" >&5
10795
$as_echo "$as_me: creating $ofile" >&6;}
10797
cat <<__EOF__ >> "$cfgfile"
10800
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10801
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10802
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10804
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10805
# Free Software Foundation, Inc.
10807
# This file is part of GNU Libtool:
10808
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10810
# This program is free software; you can redistribute it and/or modify
10811
# it under the terms of the GNU General Public License as published by
10812
# the Free Software Foundation; either version 2 of the License, or
10813
# (at your option) any later version.
10815
# This program is distributed in the hope that it will be useful, but
10816
# WITHOUT ANY WARRANTY; without even the implied warranty of
10817
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10818
# General Public License for more details.
10820
# You should have received a copy of the GNU General Public License
10821
# along with this program; if not, write to the Free Software
10822
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10824
# As a special exception to the GNU General Public License, if you
10825
# distribute this file as part of a program that contains a
10826
# configuration script generated by Autoconf, you may include it under
10827
# the same distribution terms that you use for the rest of that program.
10829
# A sed program that does not truncate output.
10832
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10833
Xsed="$SED -e 1s/^X//"
10835
# The HP-UX ksh and POSIX shell print the target directory to stdout
10836
# if CDPATH is set.
10837
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10839
# The names of the tagged configurations supported by this script.
10842
# ### BEGIN LIBTOOL CONFIG
10844
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10846
# Shell to use when invoking shell scripts.
10849
# Whether or not to build shared libraries.
10850
build_libtool_libs=$enable_shared
10852
# Whether or not to build static libraries.
10853
build_old_libs=$enable_static
10855
# Whether or not to add -lc for building shared libraries.
10856
build_libtool_need_lc=$archive_cmds_need_lc
10858
# Whether or not to disallow shared libs when runtime libs are static
10859
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10861
# Whether or not to optimize for fast installation.
10862
fast_install=$enable_fast_install
10865
host_alias=$host_alias
10869
# The build system.
10870
build_alias=$build_alias
10874
# An echo program that does not interpret backslashes.
10879
AR_FLAGS=$lt_AR_FLAGS
10884
# LTCC compiler flags.
10885
LTCFLAGS=$lt_LTCFLAGS
10887
# A language-specific compiler.
10890
# Is the compiler the GNU C compiler?
10896
# The linker used to build libraries.
10899
# Whether we need hard or soft links.
10902
# A BSD-compatible nm program.
10905
# A symbol stripping program
10908
# Used to examine libraries when file_magic_cmd begins "file"
10909
MAGIC_CMD=$MAGIC_CMD
10911
# Used on cygwin: DLL creation program.
10914
# Used on cygwin: object dumper.
10917
# Used on cygwin: assembler.
10920
# The name of the directory that contains temporary libtool files.
10923
# How to create reloadable object files.
10924
reload_flag=$lt_reload_flag
10925
reload_cmds=$lt_reload_cmds
10927
# How to pass a linker flag through the compiler.
10928
wl=$lt_lt_prog_compiler_wl
10930
# Object file suffix (normally "o").
10931
objext="$ac_objext"
10933
# Old archive suffix (normally "a").
10936
# Shared library suffix (normally ".so").
10937
shrext_cmds='$shrext_cmds'
10939
# Executable file suffix (normally "").
10942
# Additional compiler flags for building library objects.
10943
pic_flag=$lt_lt_prog_compiler_pic
10946
# What is the maximum length of a command?
10947
max_cmd_len=$lt_cv_sys_max_cmd_len
10949
# Does compiler simultaneously support -c and -o options?
10950
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10952
# Must we lock files when doing compilation?
10953
need_locks=$lt_need_locks
10955
# Do we need the lib prefix for modules?
10956
need_lib_prefix=$need_lib_prefix
10958
# Do we need a version for libraries?
10959
need_version=$need_version
10961
# Whether dlopen is supported.
10962
dlopen_support=$enable_dlopen
10964
# Whether dlopen of programs is supported.
10965
dlopen_self=$enable_dlopen_self
10967
# Whether dlopen of statically linked programs is supported.
10968
dlopen_self_static=$enable_dlopen_self_static
10970
# Compiler flag to prevent dynamic linking.
10971
link_static_flag=$lt_lt_prog_compiler_static
10973
# Compiler flag to turn off builtin functions.
10974
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10976
# Compiler flag to allow reflexive dlopens.
10977
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10979
# Compiler flag to generate shared objects directly from archives.
10980
whole_archive_flag_spec=$lt_whole_archive_flag_spec
10982
# Compiler flag to generate thread-safe objects.
10983
thread_safe_flag_spec=$lt_thread_safe_flag_spec
10985
# Library versioning type.
10986
version_type=$version_type
10988
# Format of library name prefix.
10989
libname_spec=$lt_libname_spec
10991
# List of archive names. First name is the real one, the rest are links.
10992
# The last name is the one that the linker finds with -lNAME.
10993
library_names_spec=$lt_library_names_spec
10995
# The coded name of the library, if different from the real name.
10996
soname_spec=$lt_soname_spec
10998
# Commands used to build and install an old-style archive.
11000
old_archive_cmds=$lt_old_archive_cmds
11001
old_postinstall_cmds=$lt_old_postinstall_cmds
11002
old_postuninstall_cmds=$lt_old_postuninstall_cmds
11004
# Create an old-style archive from a shared archive.
11005
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11007
# Create a temporary old-style archive to link instead of a shared archive.
11008
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11010
# Commands used to build and install a shared archive.
11011
archive_cmds=$lt_archive_cmds
11012
archive_expsym_cmds=$lt_archive_expsym_cmds
11013
postinstall_cmds=$lt_postinstall_cmds
11014
postuninstall_cmds=$lt_postuninstall_cmds
11016
# Commands used to build a loadable module (assumed same as above if empty)
11017
module_cmds=$lt_module_cmds
11018
module_expsym_cmds=$lt_module_expsym_cmds
11020
# Commands to strip libraries.
11021
old_striplib=$lt_old_striplib
11022
striplib=$lt_striplib
11024
# Dependencies to place before the objects being linked to create a
11026
predep_objects=$lt_predep_objects
11028
# Dependencies to place after the objects being linked to create a
11030
postdep_objects=$lt_postdep_objects
11032
# Dependencies to place before the objects being linked to create a
11034
predeps=$lt_predeps
11036
# Dependencies to place after the objects being linked to create a
11038
postdeps=$lt_postdeps
11040
# The directories searched by this compiler when creating a shared
11042
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11044
# The library search path used internally by the compiler when linking
11045
# a shared library.
11046
compiler_lib_search_path=$lt_compiler_lib_search_path
11048
# Method to check whether dependent libraries are shared objects.
11049
deplibs_check_method=$lt_deplibs_check_method
11051
# Command to use when deplibs_check_method == file_magic.
11052
file_magic_cmd=$lt_file_magic_cmd
11054
# Flag that allows shared libraries with undefined symbols to be built.
11055
allow_undefined_flag=$lt_allow_undefined_flag
11057
# Flag that forces no undefined symbols.
11058
no_undefined_flag=$lt_no_undefined_flag
11060
# Commands used to finish a libtool library installation in a directory.
11061
finish_cmds=$lt_finish_cmds
11063
# Same as above, but a single script fragment to be evaled but not shown.
11064
finish_eval=$lt_finish_eval
11066
# Take the output of nm and produce a listing of raw symbols and C names.
11067
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11069
# Transform the output of nm in a proper C declaration
11070
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11072
# Transform the output of nm in a C name address pair
11073
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11075
# This is the shared library runtime path variable.
11076
runpath_var=$runpath_var
11078
# This is the shared library path variable.
11079
shlibpath_var=$shlibpath_var
11081
# Is shlibpath searched before the hard-coded library search path?
11082
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11084
# How to hardcode a shared library path into an executable.
11085
hardcode_action=$hardcode_action
11087
# Whether we should hardcode library paths into libraries.
11088
hardcode_into_libs=$hardcode_into_libs
11090
# Flag to hardcode \$libdir into a binary during linking.
11091
# This must work even if \$libdir does not exist.
11092
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11094
# If ld is used when linking, flag to hardcode \$libdir into
11095
# a binary during linking. This must work even if \$libdir does
11097
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11099
# Whether we need a single -rpath flag with a separated argument.
11100
hardcode_libdir_separator=$lt_hardcode_libdir_separator
11102
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11103
# resulting binary.
11104
hardcode_direct=$hardcode_direct
11106
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11107
# resulting binary.
11108
hardcode_minus_L=$hardcode_minus_L
11110
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11111
# the resulting binary.
11112
hardcode_shlibpath_var=$hardcode_shlibpath_var
11114
# Set to yes if building a shared library automatically hardcodes DIR into the library
11115
# and all subsequent libraries and executables linked against it.
11116
hardcode_automatic=$hardcode_automatic
11118
# Variables whose values should be saved in libtool wrapper scripts and
11119
# restored at relink time.
11120
variables_saved_for_relink="$variables_saved_for_relink"
11122
# Whether libtool must link a program against all its dependency libraries.
11123
link_all_deplibs=$link_all_deplibs
11125
# Compile-time system search path for libraries
11126
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11128
# Run-time system search path for libraries
11129
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11131
# Fix the shell variable \$srcfile for the compiler.
11132
fix_srcfile_path=$lt_fix_srcfile_path
11134
# Set to yes if exported symbols are required.
11135
always_export_symbols=$always_export_symbols
11137
# The commands to list exported symbols.
11138
export_symbols_cmds=$lt_export_symbols_cmds
11140
# The commands to extract the exported symbol list from a shared archive.
11141
extract_expsyms_cmds=$lt_extract_expsyms_cmds
11143
# Symbols that should not be listed in the preloaded symbols.
11144
exclude_expsyms=$lt_exclude_expsyms
11146
# Symbols that must always be exported.
11147
include_expsyms=$lt_include_expsyms
11149
# ### END LIBTOOL CONFIG
11156
cat <<\EOF >> "$cfgfile"
11158
# AIX sometimes has problems with the GCC collect2 program. For some
11159
# reason, if we set the COLLECT_NAMES environment variable, the problems
11160
# vanish in a puff of smoke.
11161
if test "X${COLLECT_NAMES+set}" != Xset; then
11163
export COLLECT_NAMES
11169
# We use sed instead of cat because bash on DJGPP gets confused if
11170
# if finds mixed CR/LF and LF-only lines. Since sed operates in
11171
# text mode, it properly converts lines to CR/LF. This bash problem
11172
# is reportedly fixed, but why not run on old versions too?
11173
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11175
mv -f "$cfgfile" "$ofile" || \
11176
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11180
# If there is no Makefile yet, we rely on a make rule to execute
11181
# `config.status --recheck' to rerun these tests and create the
11182
# libtool script then.
11183
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11184
if test -f "$ltmain_in"; then
11185
test -f Makefile && make "$ltmain"
11191
ac_cpp='$CPP $CPPFLAGS'
11192
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11193
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11194
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11199
# Check whether --with-tags was given.
11200
if test "${with_tags+set}" = set; then
11201
withval=$with_tags; tagnames="$withval"
11205
if test -f "$ltmain" && test -n "$tagnames"; then
11206
if test ! -f "${ofile}"; then
11207
{ $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11208
$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11211
if test -z "$LTCC"; then
11212
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11213
if test -z "$LTCC"; then
11214
{ $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11215
$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11217
{ $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11218
$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11221
if test -z "$LTCFLAGS"; then
11222
eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11225
# Extract list of available tagged configurations in $ofile.
11226
# Note that this assumes the entire list is on one line.
11227
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11229
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11230
for tagname in $tagnames; do
11232
# Check whether tagname contains only valid characters
11233
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11235
*) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11236
$as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
11237
{ (exit 1); exit 1; }; }
11241
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11243
{ { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11244
$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11245
{ (exit 1); exit 1; }; }
11248
# Update the list of available tags.
11249
if test -n "$tagname"; then
11250
echo appending configuration tag \"$tagname\" to $ofile
11254
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11255
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11256
(test "X$CXX" != "Xg++"))) ; then
11258
ac_cpp='$CXXCPP $CPPFLAGS'
11259
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11260
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11261
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11266
archive_cmds_need_lc_CXX=no
11267
allow_undefined_flag_CXX=
11268
always_export_symbols_CXX=no
11269
archive_expsym_cmds_CXX=
11270
export_dynamic_flag_spec_CXX=
11271
hardcode_direct_CXX=no
11272
hardcode_libdir_flag_spec_CXX=
11273
hardcode_libdir_flag_spec_ld_CXX=
11274
hardcode_libdir_separator_CXX=
11275
hardcode_minus_L_CXX=no
11276
hardcode_shlibpath_var_CXX=unsupported
11277
hardcode_automatic_CXX=no
11279
module_expsym_cmds_CXX=
11280
link_all_deplibs_CXX=unknown
11281
old_archive_cmds_CXX=$old_archive_cmds
11282
no_undefined_flag_CXX=
11283
whole_archive_flag_spec_CXX=
11284
enable_shared_with_static_runtimes_CXX=no
11286
# Dependencies to place before and after the object being linked:
11287
predep_objects_CXX=
11288
postdep_objects_CXX=
11291
compiler_lib_search_path_CXX=
11292
compiler_lib_search_dirs_CXX=
11294
# Source file extension for C++ test sources.
11297
# Object file extension for compiled C++ test sources.
11301
# Code to be used in simple compile tests
11302
lt_simple_compile_test_code="int some_variable = 0;"
11304
# Code to be used in simple link tests
11305
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11307
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11309
# If no C compiler was specified, use CC.
11312
# If no C compiler flags were specified, use CFLAGS.
11313
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11315
# Allow CC to be a program name with arguments.
11319
# save warnings/boilerplate of simple test code
11320
ac_outfile=conftest.$ac_objext
11321
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11322
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11323
_lt_compiler_boilerplate=`cat conftest.err`
11326
ac_outfile=conftest.$ac_objext
11327
echo "$lt_simple_link_test_code" >conftest.$ac_ext
11328
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11329
_lt_linker_boilerplate=`cat conftest.err`
11333
# Allow CC to be a program name with arguments.
11338
lt_save_with_gnu_ld=$with_gnu_ld
11339
lt_save_path_LD=$lt_cv_path_LD
11340
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11341
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11343
$as_unset lt_cv_prog_gnu_ld
11345
if test -n "${lt_cv_path_LDCXX+set}"; then
11346
lt_cv_path_LD=$lt_cv_path_LDCXX
11348
$as_unset lt_cv_path_LD
11350
test -z "${LDCXX+set}" || LD=$LDCXX
11354
for cc_temp in $compiler""; do
11356
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11357
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11362
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11365
# We don't want -fno-exception wen compiling C++ code, so set the
11366
# no_builtin_flag separately
11367
if test "$GXX" = yes; then
11368
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11370
lt_prog_compiler_no_builtin_flag_CXX=
11373
if test "$GXX" = yes; then
11374
# Set up default GNU C++ configuration
11377
# Check whether --with-gnu-ld was given.
11378
if test "${with_gnu_ld+set}" = set; then
11379
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11385
if test "$GCC" = yes; then
11386
# Check if gcc -print-prog-name=ld gives a path.
11387
{ $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11388
$as_echo_n "checking for ld used by $CC... " >&6; }
11391
# gcc leaves a trailing carriage return which upsets mingw
11392
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11394
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11397
# Accept absolute paths.
11399
re_direlt='/[^/][^/]*/\.\./'
11400
# Canonicalize the pathname of ld
11401
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11402
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11403
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11405
test -z "$LD" && LD="$ac_prog"
11408
# If it fails, then pretend we aren't using GCC.
11412
# If it is relative, then search for the first ld in PATH.
11413
with_gnu_ld=unknown
11416
elif test "$with_gnu_ld" = yes; then
11417
{ $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
11418
$as_echo_n "checking for GNU ld... " >&6; }
11420
{ $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11421
$as_echo_n "checking for non-GNU ld... " >&6; }
11423
if test "${lt_cv_path_LD+set}" = set; then
11424
$as_echo_n "(cached) " >&6
11426
if test -z "$LD"; then
11427
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11428
for ac_dir in $PATH; do
11430
test -z "$ac_dir" && ac_dir=.
11431
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11432
lt_cv_path_LD="$ac_dir/$ac_prog"
11433
# Check to see if the program is GNU ld. I'd rather use --version,
11434
# but apparently some variants of GNU ld only accept -v.
11435
# Break only if it was the GNU/non-GNU ld that we prefer.
11436
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11437
*GNU* | *'with BFD'*)
11438
test "$with_gnu_ld" != no && break
11441
test "$with_gnu_ld" != yes && break
11448
lt_cv_path_LD="$LD" # Let the user override the test with a path.
11452
LD="$lt_cv_path_LD"
11453
if test -n "$LD"; then
11454
{ $as_echo "$as_me:$LINENO: result: $LD" >&5
11455
$as_echo "$LD" >&6; }
11457
{ $as_echo "$as_me:$LINENO: result: no" >&5
11458
$as_echo "no" >&6; }
11460
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11461
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11462
{ (exit 1); exit 1; }; }
11463
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11464
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11465
if test "${lt_cv_prog_gnu_ld+set}" = set; then
11466
$as_echo_n "(cached) " >&6
11468
# I'd rather use --version here, but apparently some GNU lds only accept -v.
11469
case `$LD -v 2>&1 </dev/null` in
11470
*GNU* | *'with BFD'*)
11471
lt_cv_prog_gnu_ld=yes
11474
lt_cv_prog_gnu_ld=no
11478
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11479
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11480
with_gnu_ld=$lt_cv_prog_gnu_ld
11484
# Check if GNU C++ uses GNU ld as the underlying linker, since the
11485
# archiving commands below assume that GNU ld is being used.
11486
if test "$with_gnu_ld" = yes; then
11487
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11488
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'
11490
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11491
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11493
# If archive_cmds runs LD, not CC, wlarc should be empty
11494
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11495
# investigate it a little bit more. (MM)
11498
# ancient GNU ld didn't support --whole-archive et. al.
11499
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11500
grep 'no-whole-archive' > /dev/null; then
11501
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11503
whole_archive_flag_spec_CXX=
11509
# A generic and very simple default shared library creation
11510
# command for GNU C++ for the case where it uses the native
11511
# linker, instead of GNU ld. If possible, this setting should
11512
# overridden to take advantage of the native linker features on
11513
# the platform it is being used on.
11514
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11517
# Commands to make compiler produce verbose output that lists
11518
# what "hidden" libraries, object files and flags are used when
11519
# linking a shared library.
11520
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11528
# PORTME: fill in a description of your system's C++ link characteristics
11529
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11530
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11534
# FIXME: insert proper C++ library support
11538
if test "$host_cpu" = ia64; then
11539
# On IA64, the linker does run time linking by default, so we don't
11540
# have to do anything special.
11541
aix_use_runtimelinking=no
11542
exp_sym_flag='-Bexport'
11545
aix_use_runtimelinking=no
11547
# Test if we are trying to use run time linking or normal
11548
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11549
# need to do runtime linking.
11550
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11551
for ld_flag in $LDFLAGS; do
11554
aix_use_runtimelinking=yes
11562
exp_sym_flag='-bexport'
11563
no_entry_flag='-bnoentry'
11566
# When large executables or shared objects are built, AIX ld can
11567
# have problems creating the table of contents. If linking a library
11568
# or program results in "error TOC overflow" add -mminimal-toc to
11569
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11570
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11572
archive_cmds_CXX=''
11573
hardcode_direct_CXX=yes
11574
hardcode_libdir_separator_CXX=':'
11575
link_all_deplibs_CXX=yes
11577
if test "$GXX" = yes; then
11578
case $host_os in aix4.[012]|aix4.[012].*)
11579
# We only want to do this on AIX 4.2 and lower, the check
11580
# below for broken collect2 doesn't work under 4.3+
11581
collect2name=`${CC} -print-prog-name=collect2`
11582
if test -f "$collect2name" && \
11583
strings "$collect2name" | grep resolve_lib_name >/dev/null
11585
# We have reworked collect2
11588
# We have old collect2
11589
hardcode_direct_CXX=unsupported
11590
# It fails to find uninstalled libraries when the uninstalled
11591
# path is not listed in the libpath. Setting hardcode_minus_L
11592
# to unsupported forces relinking
11593
hardcode_minus_L_CXX=yes
11594
hardcode_libdir_flag_spec_CXX='-L$libdir'
11595
hardcode_libdir_separator_CXX=
11599
shared_flag='-shared'
11600
if test "$aix_use_runtimelinking" = yes; then
11601
shared_flag="$shared_flag "'${wl}-G'
11605
if test "$host_cpu" = ia64; then
11606
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11607
# chokes on -Wl,-G. The following line is correct:
11610
if test "$aix_use_runtimelinking" = yes; then
11611
shared_flag='${wl}-G'
11613
shared_flag='${wl}-bM:SRE'
11618
# It seems that -bexpall does not export symbols beginning with
11619
# underscore (_), so it is better to generate a list of symbols to export.
11620
always_export_symbols_CXX=yes
11621
if test "$aix_use_runtimelinking" = yes; then
11622
# Warning - without using the other runtime loading flags (-brtl),
11623
# -berok will link without error, but may produce a broken library.
11624
allow_undefined_flag_CXX='-berok'
11625
# Determine the default libpath from the value encoded in an empty executable.
11626
cat >conftest.$ac_ext <<_ACEOF
11629
cat confdefs.h >>conftest.$ac_ext
11630
cat >>conftest.$ac_ext <<_ACEOF
11631
/* end confdefs.h. */
11641
rm -f conftest.$ac_objext conftest$ac_exeext
11642
if { (ac_try="$ac_link"
11643
case "(($ac_try" in
11644
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11645
*) ac_try_echo=$ac_try;;
11647
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11648
$as_echo "$ac_try_echo") >&5
11649
(eval "$ac_link") 2>conftest.er1
11651
grep -v '^ *+' conftest.er1 >conftest.err
11653
cat conftest.err >&5
11654
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655
(exit $ac_status); } && {
11656
test -z "$ac_cxx_werror_flag" ||
11657
test ! -s conftest.err
11658
} && test -s conftest$ac_exeext && {
11659
test "$cross_compiling" = yes ||
11660
$as_test_x conftest$ac_exeext
11663
lt_aix_libpath_sed='
11664
/Import File Strings/,/^$/ {
11670
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11671
# Check for a 64-bit object if we didn't find anything.
11672
if test -z "$aix_libpath"; then
11673
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11676
$as_echo "$as_me: failed program was:" >&5
11677
sed 's/^/| /' conftest.$ac_ext >&5
11682
rm -rf conftest.dSYM
11683
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11684
conftest$ac_exeext conftest.$ac_ext
11685
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11687
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11689
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"
11691
if test "$host_cpu" = ia64; then
11692
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11693
allow_undefined_flag_CXX="-z nodefs"
11694
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"
11696
# Determine the default libpath from the value encoded in an empty executable.
11697
cat >conftest.$ac_ext <<_ACEOF
11700
cat confdefs.h >>conftest.$ac_ext
11701
cat >>conftest.$ac_ext <<_ACEOF
11702
/* end confdefs.h. */
11712
rm -f conftest.$ac_objext conftest$ac_exeext
11713
if { (ac_try="$ac_link"
11714
case "(($ac_try" in
11715
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11716
*) ac_try_echo=$ac_try;;
11718
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11719
$as_echo "$ac_try_echo") >&5
11720
(eval "$ac_link") 2>conftest.er1
11722
grep -v '^ *+' conftest.er1 >conftest.err
11724
cat conftest.err >&5
11725
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11726
(exit $ac_status); } && {
11727
test -z "$ac_cxx_werror_flag" ||
11728
test ! -s conftest.err
11729
} && test -s conftest$ac_exeext && {
11730
test "$cross_compiling" = yes ||
11731
$as_test_x conftest$ac_exeext
11734
lt_aix_libpath_sed='
11735
/Import File Strings/,/^$/ {
11741
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11742
# Check for a 64-bit object if we didn't find anything.
11743
if test -z "$aix_libpath"; then
11744
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11747
$as_echo "$as_me: failed program was:" >&5
11748
sed 's/^/| /' conftest.$ac_ext >&5
11753
rm -rf conftest.dSYM
11754
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11755
conftest$ac_exeext conftest.$ac_ext
11756
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11758
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11759
# Warning - without using the other run time loading flags,
11760
# -berok will link without error, but may produce a broken library.
11761
no_undefined_flag_CXX=' ${wl}-bernotok'
11762
allow_undefined_flag_CXX=' ${wl}-berok'
11763
# Exported symbols can be pulled into shared objects from archives
11764
whole_archive_flag_spec_CXX='$convenience'
11765
archive_cmds_need_lc_CXX=yes
11766
# This is similar to how AIX traditionally builds its shared libraries.
11767
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'
11773
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11774
allow_undefined_flag_CXX=unsupported
11775
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11776
# support --undefined. This deserves some investigation. FIXME
11777
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11784
case $cc_basename in
11786
# FIXME: insert proper C++ library support
11792
cygwin* | mingw* | pw32*)
11793
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11794
# as there is no search path for DLLs.
11795
hardcode_libdir_flag_spec_CXX='-L$libdir'
11796
allow_undefined_flag_CXX=unsupported
11797
always_export_symbols_CXX=no
11798
enable_shared_with_static_runtimes_CXX=yes
11800
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11801
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'
11802
# If the export-symbols file already is a .def file (1st line
11803
# is EXPORTS), use it as is; otherwise, prepend...
11804
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11805
cp $export_symbols $output_objdir/$soname.def;
11807
echo EXPORTS > $output_objdir/$soname.def;
11808
cat $export_symbols >> $output_objdir/$soname.def;
11810
$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'
11815
darwin* | rhapsody*)
11816
archive_cmds_need_lc_CXX=no
11817
hardcode_direct_CXX=no
11818
hardcode_automatic_CXX=yes
11819
hardcode_shlibpath_var_CXX=unsupported
11820
whole_archive_flag_spec_CXX=''
11821
link_all_deplibs_CXX=yes
11822
allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11823
if test "$GXX" = yes ; then
11824
output_verbose_link_cmd='echo'
11825
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}"
11826
module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11827
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}"
11828
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}"
11829
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11830
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}"
11831
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}"
11834
case $cc_basename in
11836
output_verbose_link_cmd='echo'
11837
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'
11838
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11839
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11840
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}'
11841
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}'
11851
case $cc_basename in
11853
# FIXME: insert proper C++ library support
11857
# Green Hills C++ Compiler
11858
# FIXME: insert proper C++ library support
11862
# FIXME: insert proper C++ library support
11868
# C++ shared libraries reported to be fairly broken before switch to ELF
11872
archive_cmds_need_lc_CXX=no
11874
freebsd* | dragonfly*)
11875
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11882
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11883
hardcode_libdir_separator_CXX=:
11884
export_dynamic_flag_spec_CXX='${wl}-E'
11885
hardcode_direct_CXX=yes
11886
hardcode_minus_L_CXX=yes # Not in the search PATH,
11887
# but as the default
11888
# location of the library.
11890
case $cc_basename in
11892
# FIXME: insert proper C++ library support
11896
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'
11897
# Commands to make compiler produce verbose output that lists
11898
# what "hidden" libraries, object files and flags are used when
11899
# linking a shared library.
11901
# There doesn't appear to be a way to prevent this compiler from
11902
# explicitly linking system object files so we need to strip them
11903
# from the output so that they don't get included in the library
11905
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'
11908
if test "$GXX" = yes; then
11909
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'
11911
# FIXME: insert proper C++ library support
11918
if test $with_gnu_ld = no; then
11919
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11920
hardcode_libdir_separator_CXX=:
11925
export_dynamic_flag_spec_CXX='${wl}-E'
11931
hardcode_direct_CXX=no
11932
hardcode_shlibpath_var_CXX=no
11935
hardcode_direct_CXX=yes
11936
hardcode_minus_L_CXX=yes # Not in the search PATH,
11937
# but as the default
11938
# location of the library.
11942
case $cc_basename in
11944
# FIXME: insert proper C++ library support
11950
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11953
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11956
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11959
# Commands to make compiler produce verbose output that lists
11960
# what "hidden" libraries, object files and flags are used when
11961
# linking a shared library.
11963
# There doesn't appear to be a way to prevent this compiler from
11964
# explicitly linking system object files so we need to strip them
11965
# from the output so that they don't get included in the library
11967
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'
11970
if test "$GXX" = yes; then
11971
if test $with_gnu_ld = no; then
11974
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11977
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11980
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'
11985
# FIXME: insert proper C++ library support
11992
hardcode_direct_CXX=no
11993
hardcode_shlibpath_var_CXX=no
11994
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11995
export_dynamic_flag_spec_CXX='${wl}-E'
11996
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11997
# Instead, shared libraries are loaded at an image base (0x10000000 by
11998
# default) and relocated if they conflict, which is a slow very memory
11999
# consuming and fragmenting process. To avoid this, we pick a random,
12000
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12001
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
12002
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'
12003
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'
12006
case $cc_basename in
12009
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'
12011
# Archives containing C++ object files must be created using
12012
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
12013
# necessary to make sure instantiated templates are included
12015
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12018
if test "$GXX" = yes; then
12019
if test "$with_gnu_ld" = no; then
12020
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'
12022
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'
12025
link_all_deplibs_CXX=yes
12028
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12029
hardcode_libdir_separator_CXX=:
12031
linux* | k*bsd*-gnu)
12032
case $cc_basename in
12034
# Kuck and Associates, Inc. (KAI) C++ Compiler
12036
# KCC will only create a shared library if the output file
12037
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12038
# to its proper name (with version) after linking.
12039
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'
12040
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'
12041
# Commands to make compiler produce verbose output that lists
12042
# what "hidden" libraries, object files and flags are used when
12043
# linking a shared library.
12045
# There doesn't appear to be a way to prevent this compiler from
12046
# explicitly linking system object files so we need to strip them
12047
# from the output so that they don't get included in the library
12049
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'
12051
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12052
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12054
# Archives containing C++ object files must be created using
12055
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12056
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12061
# version 8.0 and above of icpc choke on multiply defined symbols
12062
# if we add $predep_objects and $postdep_objects, however 7.1 and
12063
# earlier do not add the objects themselves.
12064
case `$CC -V 2>&1` in
12066
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12067
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'
12069
*) # Version 8.0 or newer
12072
ia64*) tmp_idyn=' -i_dynamic';;
12074
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12075
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'
12078
archive_cmds_need_lc_CXX=no
12079
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12080
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12081
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12084
# Portland Group C++ compiler
12085
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12086
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'
12088
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12089
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12090
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'
12094
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12095
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'
12097
runpath_var=LD_RUN_PATH
12098
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12099
hardcode_libdir_separator_CXX=:
12101
# Commands to make compiler produce verbose output that lists
12102
# what "hidden" libraries, object files and flags are used when
12103
# linking a shared library.
12105
# There doesn't appear to be a way to prevent this compiler from
12106
# explicitly linking system object files so we need to strip them
12107
# from the output so that they don't get included in the library
12109
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'
12112
case `$CC -V 2>&1 | sed 5q` in
12115
no_undefined_flag_CXX=' -zdefs'
12116
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12117
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'
12118
hardcode_libdir_flag_spec_CXX='-R$libdir'
12119
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'
12121
# Not sure whether something based on
12122
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12124
output_verbose_link_cmd='echo'
12126
# Archives containing C++ object files must be created using
12127
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12128
# necessary to make sure instantiated templates are included
12130
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12137
# FIXME: insert proper C++ library support
12141
# FIXME: insert proper C++ library support
12145
case $cc_basename in
12147
# FIXME: insert proper C++ library support
12151
# FIXME: insert proper C++ library support
12157
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12158
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12160
hardcode_libdir_flag_spec_CXX='-R$libdir'
12161
hardcode_direct_CXX=yes
12162
hardcode_shlibpath_var_CXX=no
12164
# Workaround some broken pre-1.5 toolchains
12165
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12168
# C++ shared libraries are fairly broken
12172
if test -f /usr/libexec/ld.so; then
12173
hardcode_direct_CXX=yes
12174
hardcode_shlibpath_var_CXX=no
12175
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12176
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12177
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12178
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12179
export_dynamic_flag_spec_CXX='${wl}-E'
12180
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12182
output_verbose_link_cmd='echo'
12188
case $cc_basename in
12190
# Kuck and Associates, Inc. (KAI) C++ Compiler
12192
# KCC will only create a shared library if the output file
12193
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12194
# to its proper name (with version) after linking.
12195
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'
12197
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12198
hardcode_libdir_separator_CXX=:
12200
# Archives containing C++ object files must be created using
12201
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12202
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12206
# Rational C++ 2.4.1
12207
# FIXME: insert proper C++ library support
12211
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12212
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'
12214
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12215
hardcode_libdir_separator_CXX=:
12217
# Commands to make compiler produce verbose output that lists
12218
# what "hidden" libraries, object files and flags are used when
12219
# linking a shared library.
12221
# There doesn't appear to be a way to prevent this compiler from
12222
# explicitly linking system object files so we need to strip them
12223
# from the output so that they don't get included in the library
12225
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'
12228
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12229
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12230
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'
12232
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$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.
12238
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12241
# FIXME: insert proper C++ library support
12248
case $cc_basename in
12250
# Kuck and Associates, Inc. (KAI) C++ Compiler
12252
# KCC will only create a shared library if the output file
12253
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12254
# to its proper name (with version) after linking.
12255
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'
12257
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12258
hardcode_libdir_separator_CXX=:
12260
# Archives containing C++ object files must be created using
12261
# the KAI C++ compiler.
12262
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12265
# Rational C++ 2.4.1
12266
# FIXME: insert proper C++ library support
12270
allow_undefined_flag_CXX=' -expect_unresolved \*'
12271
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'
12272
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12273
echo "-hidden">> $lib.exp~
12274
$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~
12277
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12278
hardcode_libdir_separator_CXX=:
12280
# Commands to make compiler produce verbose output that lists
12281
# what "hidden" libraries, object files and flags are used when
12282
# linking a shared library.
12284
# There doesn't appear to be a way to prevent this compiler from
12285
# explicitly linking system object files so we need to strip them
12286
# from the output so that they don't get included in the library
12288
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'
12291
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12292
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12293
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'
12295
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12296
hardcode_libdir_separator_CXX=:
12298
# Commands to make compiler produce verbose output that lists
12299
# what "hidden" libraries, object files and flags are used when
12300
# linking a shared library.
12301
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12304
# FIXME: insert proper C++ library support
12311
# FIXME: insert proper C++ library support
12315
case $cc_basename in
12318
# FIXME: insert proper C++ library support
12323
# FIXME: insert proper C++ library support
12327
# FIXME: insert proper C++ library support
12333
case $cc_basename in
12335
# Sun C++ 4.2, 5.x and Centerline C++
12336
archive_cmds_need_lc_CXX=yes
12337
no_undefined_flag_CXX=' -zdefs'
12338
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12339
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12340
$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'
12342
hardcode_libdir_flag_spec_CXX='-R$libdir'
12343
hardcode_shlibpath_var_CXX=no
12345
solaris2.[0-5] | solaris2.[0-5].*) ;;
12347
# The compiler driver will combine and reorder linker options,
12348
# but understands `-z linker_flag'.
12349
# Supported since Solaris 2.6 (maybe 2.5.1?)
12350
whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12353
link_all_deplibs_CXX=yes
12355
output_verbose_link_cmd='echo'
12357
# Archives containing C++ object files must be created using
12358
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12359
# necessary to make sure instantiated templates are included
12361
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12364
# Green Hills C++ Compiler
12365
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12367
# The C++ compiler must be used to create the archive.
12368
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12371
# GNU C++ compiler with Solaris linker
12372
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12373
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12374
if $CC --version | grep -v '^2\.7' > /dev/null; then
12375
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12376
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12377
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12379
# Commands to make compiler produce verbose output that lists
12380
# what "hidden" libraries, object files and flags are used when
12381
# linking a shared library.
12382
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12384
# g++ 2.7 appears to require `-G' NOT `-shared' on this
12386
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12387
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12388
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12390
# Commands to make compiler produce verbose output that lists
12391
# what "hidden" libraries, object files and flags are used when
12392
# linking a shared library.
12393
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12396
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12398
solaris2.[0-5] | solaris2.[0-5].*) ;;
12400
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12407
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12408
no_undefined_flag_CXX='${wl}-z,text'
12409
archive_cmds_need_lc_CXX=no
12410
hardcode_shlibpath_var_CXX=no
12411
runpath_var='LD_RUN_PATH'
12413
case $cc_basename in
12415
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12416
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12419
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12420
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12424
sysv5* | sco3.2v5* | sco5v6*)
12425
# Note: We can NOT use -z defs as we might desire, because we do not
12426
# link with -lc, and that would cause any symbols used from libc to
12427
# always be unresolved, which means just about no library would
12428
# ever link correctly. If we're not using GNU ld we use -z text
12429
# though, which does catch some bad symbols but isn't as heavy-handed
12431
# For security reasons, it is highly recommended that you always
12432
# use absolute paths for naming shared libraries, and exclude the
12433
# DT_RUNPATH tag from executables and libraries. But doing so
12434
# requires that you compile everything twice, which is a pain.
12435
# So that behaviour is only enabled if SCOABSPATH is set to a
12436
# non-empty value in the environment. Most likely only useful for
12437
# creating official distributions of packages.
12438
# This is a hack until libtool officially supports absolute path
12439
# names for shared libraries.
12440
no_undefined_flag_CXX='${wl}-z,text'
12441
allow_undefined_flag_CXX='${wl}-z,nodefs'
12442
archive_cmds_need_lc_CXX=no
12443
hardcode_shlibpath_var_CXX=no
12444
hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12445
hardcode_libdir_separator_CXX=':'
12446
link_all_deplibs_CXX=yes
12447
export_dynamic_flag_spec_CXX='${wl}-Bexport'
12448
runpath_var='LD_RUN_PATH'
12450
case $cc_basename in
12452
archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12453
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12456
archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12457
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12462
case $cc_basename in
12464
# NonStop-UX NCC 3.20
12465
# FIXME: insert proper C++ library support
12469
# FIXME: insert proper C++ library support
12475
# FIXME: insert proper C++ library support
12479
# FIXME: insert proper C++ library support
12483
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12484
$as_echo "$ld_shlibs_CXX" >&6; }
12485
test "$ld_shlibs_CXX" = no && can_build_shared=no
12490
cat > conftest.$ac_ext <<EOF
12494
Foo (void) { a = 0; }
12500
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12501
(eval $ac_compile) 2>&5
12503
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12504
(exit $ac_status); }; then
12505
# Parse the compiler output and extract the necessary
12506
# objects, libraries and library flags.
12508
# Sentinel used to keep track of whether or not we are before
12509
# the conftest object file.
12510
pre_test_object_deps_done=no
12512
# The `*' in the case matches for architectures that use `case' in
12513
# $output_verbose_cmd can trigger glob expansion during the loop
12514
# eval without this substitution.
12515
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12517
for p in `eval $output_verbose_link_cmd`; do
12521
# Some compilers place space between "-{L,R}" and the path.
12522
# Remove the space.
12523
if test $p = "-L" \
12524
|| test $p = "-R"; then
12531
if test "$pre_test_object_deps_done" = no; then
12534
# Internal compiler library paths should come after those
12535
# provided the user. The postdeps already come after the
12536
# user supplied libs so there is no need to process them.
12537
if test -z "$compiler_lib_search_path_CXX"; then
12538
compiler_lib_search_path_CXX="${prev}${p}"
12540
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12543
# The "-l" case would never come before the object being
12544
# linked, so don't bother handling this case.
12547
if test -z "$postdeps_CXX"; then
12548
postdeps_CXX="${prev}${p}"
12550
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12556
# This assumes that the test object file only shows up
12557
# once in the compiler output.
12558
if test "$p" = "conftest.$objext"; then
12559
pre_test_object_deps_done=yes
12563
if test "$pre_test_object_deps_done" = no; then
12564
if test -z "$predep_objects_CXX"; then
12565
predep_objects_CXX="$p"
12567
predep_objects_CXX="$predep_objects_CXX $p"
12570
if test -z "$postdep_objects_CXX"; then
12571
postdep_objects_CXX="$p"
12573
postdep_objects_CXX="$postdep_objects_CXX $p"
12578
*) ;; # Ignore the rest.
12586
echo "libtool.m4: error: problem compiling CXX test program"
12589
$rm -f confest.$objext
12591
compiler_lib_search_dirs_CXX=
12592
if test -n "$compiler_lib_search_path_CXX"; then
12593
compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12596
# PORTME: override above test on systems where it is broken
12599
# Interix 3.5 installs completely hosed .la files for C++, so rather than
12600
# hack all around it, let's just trust "g++" to DTRT.
12601
predep_objects_CXX=
12602
postdep_objects_CXX=
12607
case `$CC -V 2>&1 | sed 5q` in
12611
# The more standards-conforming stlport4 library is
12612
# incompatible with the Cstd library. Avoid specifying
12613
# it if it's in CXXFLAGS. Ignore libCrun as
12614
# -library=stlport4 depends on it.
12615
case " $CXX $CXXFLAGS " in
12616
*" -library=stlport4 "*)
12617
solaris_use_stlport4=yes
12620
if test "$solaris_use_stlport4" != yes; then
12621
postdeps_CXX='-library=Cstd -library=Crun'
12628
case $cc_basename in
12630
# The more standards-conforming stlport4 library is
12631
# incompatible with the Cstd library. Avoid specifying
12632
# it if it's in CXXFLAGS. Ignore libCrun as
12633
# -library=stlport4 depends on it.
12634
case " $CXX $CXXFLAGS " in
12635
*" -library=stlport4 "*)
12636
solaris_use_stlport4=yes
12640
# Adding this requires a known-good setup of shared libraries for
12641
# Sun compiler versions before 5.6, else PIC objects from an old
12642
# archive will be linked into the output, leading to subtle bugs.
12643
if test "$solaris_use_stlport4" != yes; then
12644
postdeps_CXX='-library=Cstd -library=Crun'
12651
case " $postdeps_CXX " in
12652
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12655
lt_prog_compiler_wl_CXX=
12656
lt_prog_compiler_pic_CXX=
12657
lt_prog_compiler_static_CXX=
12659
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12660
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12662
# C++ specific cases for pic, static, wl, etc.
12663
if test "$GXX" = yes; then
12664
lt_prog_compiler_wl_CXX='-Wl,'
12665
lt_prog_compiler_static_CXX='-static'
12669
# All AIX code is PIC.
12670
if test "$host_cpu" = ia64; then
12671
# AIX 5 now supports IA64 processor
12672
lt_prog_compiler_static_CXX='-Bstatic'
12676
# FIXME: we need at least 68020 code to build shared libraries, but
12677
# adding the `-m68020' flag to GCC prevents building anything better,
12679
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12681
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12682
# PIC is the default for these OSes.
12684
mingw* | cygwin* | os2* | pw32*)
12685
# This hack is so that the source file can tell whether it is being
12686
# built for inclusion in a dll (and should export symbols for example).
12687
# Although the cygwin gcc ignores -fPIC, still need this for old-style
12688
# (--disable-auto-import) libraries
12689
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12691
darwin* | rhapsody*)
12692
# PIC is the default on this platform
12693
# Common symbols not allowed in MH_DYLIB files
12694
lt_prog_compiler_pic_CXX='-fno-common'
12697
# DJGPP does not support shared libraries at all
12698
lt_prog_compiler_pic_CXX=
12701
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
12702
# Instead, we relocate shared libraries at runtime.
12705
if test -d /usr/nec; then
12706
lt_prog_compiler_pic_CXX=-Kconform_pic
12710
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12711
# not for PA HP-UX.
12716
lt_prog_compiler_pic_CXX='-fPIC'
12721
lt_prog_compiler_pic_CXX='-fPIC'
12727
# All AIX code is PIC.
12728
if test "$host_cpu" = ia64; then
12729
# AIX 5 now supports IA64 processor
12730
lt_prog_compiler_static_CXX='-Bstatic'
12732
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12736
case $cc_basename in
12738
# Green Hills C++ Compiler
12739
# _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"
12744
# PIC is the default on this platform
12745
# Common symbols not allowed in MH_DYLIB files
12746
case $cc_basename in
12748
lt_prog_compiler_pic_CXX='-qnocommon'
12749
lt_prog_compiler_wl_CXX='-Wl,'
12754
case $cc_basename in
12756
lt_prog_compiler_pic_CXX='-KPIC'
12759
# Green Hills C++ Compiler
12760
lt_prog_compiler_pic_CXX='-pic'
12766
freebsd* | dragonfly*)
12767
# FreeBSD uses GNU C++
12769
hpux9* | hpux10* | hpux11*)
12770
case $cc_basename in
12772
lt_prog_compiler_wl_CXX='-Wl,'
12773
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12774
if test "$host_cpu" != ia64; then
12775
lt_prog_compiler_pic_CXX='+Z'
12779
lt_prog_compiler_wl_CXX='-Wl,'
12780
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12786
lt_prog_compiler_pic_CXX='+Z'
12795
# This is c89, which is MS Visual C++ (no shared libs)
12796
# Anyone wants to do a port?
12798
irix5* | irix6* | nonstopux*)
12799
case $cc_basename in
12801
lt_prog_compiler_wl_CXX='-Wl,'
12802
lt_prog_compiler_static_CXX='-non_shared'
12803
# CC pic flag -KPIC is the default.
12809
linux* | k*bsd*-gnu)
12810
case $cc_basename in
12813
lt_prog_compiler_wl_CXX='--backend -Wl,'
12814
lt_prog_compiler_pic_CXX='-fPIC'
12818
lt_prog_compiler_wl_CXX='-Wl,'
12819
lt_prog_compiler_pic_CXX='-KPIC'
12820
lt_prog_compiler_static_CXX='-static'
12823
# Portland Group C++ compiler.
12824
lt_prog_compiler_wl_CXX='-Wl,'
12825
lt_prog_compiler_pic_CXX='-fpic'
12826
lt_prog_compiler_static_CXX='-Bstatic'
12830
# Make sure the PIC flag is empty. It appears that all Alpha
12831
# Linux and Compaq Tru64 Unix objects are PIC.
12832
lt_prog_compiler_pic_CXX=
12833
lt_prog_compiler_static_CXX='-non_shared'
12836
case `$CC -V 2>&1 | sed 5q` in
12839
lt_prog_compiler_pic_CXX='-KPIC'
12840
lt_prog_compiler_static_CXX='-Bstatic'
12841
lt_prog_compiler_wl_CXX='-Qoption ld '
12852
case $cc_basename in
12854
lt_prog_compiler_pic_CXX='-W c,exportall'
12862
osf3* | osf4* | osf5*)
12863
case $cc_basename in
12865
lt_prog_compiler_wl_CXX='--backend -Wl,'
12868
# Rational C++ 2.4.1
12869
lt_prog_compiler_pic_CXX='-pic'
12872
# Digital/Compaq C++
12873
lt_prog_compiler_wl_CXX='-Wl,'
12874
# Make sure the PIC flag is empty. It appears that all Alpha
12875
# Linux and Compaq Tru64 Unix objects are PIC.
12876
lt_prog_compiler_pic_CXX=
12877
lt_prog_compiler_static_CXX='-non_shared'
12886
case $cc_basename in
12888
# Sun C++ 4.2, 5.x and Centerline C++
12889
lt_prog_compiler_pic_CXX='-KPIC'
12890
lt_prog_compiler_static_CXX='-Bstatic'
12891
lt_prog_compiler_wl_CXX='-Qoption ld '
12894
# Green Hills C++ Compiler
12895
lt_prog_compiler_pic_CXX='-PIC'
12902
case $cc_basename in
12905
lt_prog_compiler_pic_CXX='-pic'
12906
lt_prog_compiler_static_CXX='-Bstatic'
12910
lt_prog_compiler_pic_CXX='-pic'
12917
case $cc_basename in
12919
# NonStop-UX NCC 3.20
12920
lt_prog_compiler_pic_CXX='-KPIC'
12926
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12927
case $cc_basename in
12929
lt_prog_compiler_wl_CXX='-Wl,'
12930
lt_prog_compiler_pic_CXX='-KPIC'
12931
lt_prog_compiler_static_CXX='-Bstatic'
12938
lt_prog_compiler_can_build_shared_CXX=no
12943
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12944
$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12947
# Check to make sure the PIC flag actually works.
12949
if test -n "$lt_prog_compiler_pic_CXX"; then
12951
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12952
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12953
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12954
$as_echo_n "(cached) " >&6
12956
lt_cv_prog_compiler_pic_works_CXX=no
12957
ac_outfile=conftest.$ac_objext
12958
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12959
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12960
# Insert the option either (1) after the last *FLAGS variable, or
12961
# (2) before a word containing "conftest.", or (3) at the end.
12962
# Note that $ac_compile itself does not contain backslashes and begins
12963
# with a dollar sign (not a hyphen), so the echo should work correctly.
12964
# The option is referenced via a variable to avoid confusing sed.
12965
lt_compile=`echo "$ac_compile" | $SED \
12966
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12967
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12968
-e 's:$: $lt_compiler_flag:'`
12969
(eval echo "\"\$as_me:12969: $lt_compile\"" >&5)
12970
(eval "$lt_compile" 2>conftest.err)
12972
cat conftest.err >&5
12973
echo "$as_me:12973: \$? = $ac_status" >&5
12974
if (exit $ac_status) && test -s "$ac_outfile"; then
12975
# The compiler can only warn and ignore the option if not recognized
12976
# So say no if there are warnings other than the usual output.
12977
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12978
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12979
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12980
lt_cv_prog_compiler_pic_works_CXX=yes
12986
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12987
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12989
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12990
case $lt_prog_compiler_pic_CXX in
12992
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12995
lt_prog_compiler_pic_CXX=
12996
lt_prog_compiler_can_build_shared_CXX=no
13001
# For platforms which do not support PIC, -DPIC is meaningless:
13003
lt_prog_compiler_pic_CXX=
13006
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13011
# Check to make sure the static flag actually works.
13013
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13014
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13015
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13016
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
13017
$as_echo_n "(cached) " >&6
13019
lt_cv_prog_compiler_static_works_CXX=no
13020
save_LDFLAGS="$LDFLAGS"
13021
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13022
echo "$lt_simple_link_test_code" > conftest.$ac_ext
13023
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13024
# The linker can only warn and ignore the option if not recognized
13025
# So say no if there are warnings
13026
if test -s conftest.err; then
13027
# Append any errors to the config.log.
13028
cat conftest.err 1>&5
13029
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13030
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13031
if diff conftest.exp conftest.er2 >/dev/null; then
13032
lt_cv_prog_compiler_static_works_CXX=yes
13035
lt_cv_prog_compiler_static_works_CXX=yes
13039
LDFLAGS="$save_LDFLAGS"
13042
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13043
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13045
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13048
lt_prog_compiler_static_CXX=
13052
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13053
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13054
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13055
$as_echo_n "(cached) " >&6
13057
lt_cv_prog_compiler_c_o_CXX=no
13058
$rm -r conftest 2>/dev/null
13062
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13064
lt_compiler_flag="-o out/conftest2.$ac_objext"
13065
# Insert the option either (1) after the last *FLAGS variable, or
13066
# (2) before a word containing "conftest.", or (3) at the end.
13067
# Note that $ac_compile itself does not contain backslashes and begins
13068
# with a dollar sign (not a hyphen), so the echo should work correctly.
13069
lt_compile=`echo "$ac_compile" | $SED \
13070
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13071
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13072
-e 's:$: $lt_compiler_flag:'`
13073
(eval echo "\"\$as_me:13073: $lt_compile\"" >&5)
13074
(eval "$lt_compile" 2>out/conftest.err)
13076
cat out/conftest.err >&5
13077
echo "$as_me:13077: \$? = $ac_status" >&5
13078
if (exit $ac_status) && test -s out/conftest2.$ac_objext
13080
# The compiler can only warn and ignore the option if not recognized
13081
# So say no if there are warnings
13082
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13083
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13084
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13085
lt_cv_prog_compiler_c_o_CXX=yes
13090
# SGI C++ compiler will create directory out/ii_files/ for
13091
# template instantiation
13092
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13093
$rm out/* && rmdir out
13099
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13100
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13103
hard_links="nottested"
13104
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13105
# do not overwrite the value of need_locks provided by the user
13106
{ $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13107
$as_echo_n "checking if we can lock with hard links... " >&6; }
13110
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13112
ln conftest.a conftest.b 2>&5 || hard_links=no
13113
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13114
{ $as_echo "$as_me:$LINENO: result: $hard_links" >&5
13115
$as_echo "$hard_links" >&6; }
13116
if test "$hard_links" = no; then
13117
{ $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13118
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13125
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13126
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13128
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13131
# If we're using GNU nm, then we don't want the "-C" option.
13132
# -C means demangle to AIX nm, but means don't demangle with GNU nm
13133
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13134
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'
13136
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'
13140
export_symbols_cmds_CXX="$ltdll_cmds"
13143
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'
13146
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13149
exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13151
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13152
$as_echo "$ld_shlibs_CXX" >&6; }
13153
test "$ld_shlibs_CXX" = no && can_build_shared=no
13156
# Do we need to explicitly link libc?
13158
case "x$archive_cmds_need_lc_CXX" in
13160
# Assume -lc should be added
13161
archive_cmds_need_lc_CXX=yes
13163
if test "$enable_shared" = yes && test "$GCC" = yes; then
13164
case $archive_cmds_CXX in
13166
# FIXME: we may have to deal with multi-command sequences.
13169
# Test whether the compiler implicitly links with -lc since on some
13170
# systems, -lgcc has to come before -lc. If gcc already passes -lc
13171
# to ld, don't add -lc before -lgcc.
13172
{ $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13173
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13175
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13177
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13178
(eval $ac_compile) 2>&5
13180
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13181
(exit $ac_status); } 2>conftest.err; then
13184
libobjs=conftest.$ac_objext
13186
wl=$lt_prog_compiler_wl_CXX
13187
pic_flag=$lt_prog_compiler_pic_CXX
13193
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13194
allow_undefined_flag_CXX=
13195
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13196
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13198
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13199
(exit $ac_status); }
13201
archive_cmds_need_lc_CXX=no
13203
archive_cmds_need_lc_CXX=yes
13205
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13207
cat conftest.err 1>&5
13210
{ $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13211
$as_echo "$archive_cmds_need_lc_CXX" >&6; }
13218
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13219
$as_echo_n "checking dynamic linker characteristics... " >&6; }
13220
library_names_spec=
13221
libname_spec='lib$name'
13225
postuninstall_cmds=
13229
shlibpath_overrides_runpath=unknown
13231
dynamic_linker="$host_os ld.so"
13232
sys_lib_dlsearch_path_spec="/lib /usr/lib"
13234
need_lib_prefix=unknown
13235
hardcode_into_libs=no
13237
# when you set need_version to no, make sure it does not cause -set_version
13238
# flags to be left without arguments
13239
need_version=unknown
13244
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13245
shlibpath_var=LIBPATH
13247
# AIX 3 has no versioning support, so we append a major version to the name.
13248
soname_spec='${libname}${release}${shared_ext}$major'
13255
hardcode_into_libs=yes
13256
if test "$host_cpu" = ia64; then
13257
# AIX 5 supports IA64
13258
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13259
shlibpath_var=LD_LIBRARY_PATH
13261
# With GCC up to 2.95.x, collect2 would create an import file
13262
# for dependence libraries. The import file would start with
13263
# the line `#! .'. This would cause the generated library to
13264
# depend on `.', always an invalid library. This was fixed in
13265
# development snapshots of GCC prior to 3.0.
13267
aix4 | aix4.[01] | aix4.[01].*)
13268
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13270
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13273
can_build_shared=no
13277
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13278
# soname into executable. Probably we can add versioning support to
13279
# collect2, so additional links can be useful in future.
13280
if test "$aix_use_runtimelinking" = yes; then
13281
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
13282
# instead of lib<name>.a to let people know that these are not
13283
# typical AIX shared libraries.
13284
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13286
# We preserve .a as extension for shared libraries through AIX4.2
13287
# and later when we are not doing run time linking.
13288
library_names_spec='${libname}${release}.a $libname.a'
13289
soname_spec='${libname}${release}${shared_ext}$major'
13291
shlibpath_var=LIBPATH
13296
library_names_spec='$libname.ixlibrary $libname.a'
13297
# Create ${libname}_ixlibrary.a entries in /sys/libs.
13298
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'
13302
library_names_spec='${libname}${shared_ext}'
13303
dynamic_linker="$host_os ld.so"
13304
shlibpath_var=LIBRARY_PATH
13310
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13311
soname_spec='${libname}${release}${shared_ext}$major'
13312
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13313
shlibpath_var=LD_LIBRARY_PATH
13314
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13315
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13316
# the default ld.so.conf also contains /usr/contrib/lib and
13317
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13318
# libtool to hard-code these into programs
13321
cygwin* | mingw* | pw32*)
13322
version_type=windows
13327
case $GCC,$host_os in
13328
yes,cygwin* | yes,mingw* | yes,pw32*)
13329
library_names_spec='$libname.dll.a'
13330
# DLL is installed to $(libdir)/../bin by postinstall_cmds
13331
postinstall_cmds='base_file=`basename \${file}`~
13332
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13333
dldir=$destdir/`dirname \$dlpath`~
13334
test -d \$dldir || mkdir -p \$dldir~
13335
$install_prog $dir/$dlname \$dldir/$dlname~
13336
chmod a+x \$dldir/$dlname'
13337
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13338
dlpath=$dir/\$dldll~
13340
shlibpath_overrides_runpath=yes
13344
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
13345
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13346
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13349
# MinGW DLLs use traditional 'lib' prefix
13350
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13351
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13352
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13353
# It is most probably a Windows format PATH printed by
13354
# mingw gcc, but we are running on Cygwin. Gcc prints its search
13355
# path with ; separators, and with drive letters. We can handle the
13356
# drive letters (cygwin fileutils understands them), so leave them,
13357
# especially as we might pass files found there to a mingw objdump,
13358
# which wouldn't understand a cygwinified path. Ahh.
13359
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13361
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13365
# pw32 DLLs use 'pw' prefix rather than 'lib'
13366
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13372
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13375
dynamic_linker='Win32 ld.exe'
13376
# FIXME: first we should search . and the directory the executable is in
13380
darwin* | rhapsody*)
13381
dynamic_linker="$host_os dyld"
13382
version_type=darwin
13385
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13386
soname_spec='${libname}${release}${major}$shared_ext'
13387
shlibpath_overrides_runpath=yes
13388
shlibpath_var=DYLD_LIBRARY_PATH
13389
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13391
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13398
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13399
soname_spec='${libname}${release}${shared_ext}$major'
13400
shlibpath_var=LD_LIBRARY_PATH
13407
freebsd* | dragonfly*)
13408
# DragonFly does not have aout. When/if they implement a new
13409
# versioning mechanism, adjust this.
13410
if test -x /usr/bin/objformat; then
13411
objformat=`/usr/bin/objformat`
13414
freebsd[123]*) objformat=aout ;;
13415
*) objformat=elf ;;
13418
version_type=freebsd-$objformat
13419
case $version_type in
13421
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13426
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13430
shlibpath_var=LD_LIBRARY_PATH
13433
shlibpath_overrides_runpath=yes
13435
freebsd3.[01]* | freebsdelf3.[01]*)
13436
shlibpath_overrides_runpath=yes
13437
hardcode_into_libs=yes
13439
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13440
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13441
shlibpath_overrides_runpath=no
13442
hardcode_into_libs=yes
13444
*) # from 4.6 on, and DragonFly
13445
shlibpath_overrides_runpath=yes
13446
hardcode_into_libs=yes
13455
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13456
soname_spec='${libname}${release}${shared_ext}$major'
13457
shlibpath_var=LD_LIBRARY_PATH
13458
hardcode_into_libs=yes
13461
hpux9* | hpux10* | hpux11*)
13462
# Give a soname corresponding to the major version so that dld.sl refuses to
13463
# link against other versions.
13470
hardcode_into_libs=yes
13471
dynamic_linker="$host_os dld.so"
13472
shlibpath_var=LD_LIBRARY_PATH
13473
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13474
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13475
soname_spec='${libname}${release}${shared_ext}$major'
13476
if test "X$HPUX_IA64_MODE" = X32; then
13477
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13479
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13481
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13485
hardcode_into_libs=yes
13486
dynamic_linker="$host_os dld.sl"
13487
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13488
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13489
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13490
soname_spec='${libname}${release}${shared_ext}$major'
13491
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13492
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13496
dynamic_linker="$host_os dld.sl"
13497
shlibpath_var=SHLIB_PATH
13498
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13499
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13500
soname_spec='${libname}${release}${shared_ext}$major'
13503
# HP-UX runs *really* slowly unless shared libraries are mode 555.
13504
postinstall_cmds='chmod 555 $lib'
13511
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13512
soname_spec='${libname}${release}${shared_ext}$major'
13513
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13514
shlibpath_var=LD_LIBRARY_PATH
13515
shlibpath_overrides_runpath=no
13516
hardcode_into_libs=yes
13519
irix5* | irix6* | nonstopux*)
13521
nonstopux*) version_type=nonstopux ;;
13523
if test "$lt_cv_prog_gnu_ld" = yes; then
13531
soname_spec='${libname}${release}${shared_ext}$major'
13532
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13534
irix5* | nonstopux*)
13535
libsuff= shlibsuff=
13538
case $LD in # libtool.m4 will add one of these switches to LD
13539
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13540
libsuff= shlibsuff= libmagic=32-bit;;
13541
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13542
libsuff=32 shlibsuff=N32 libmagic=N32;;
13543
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13544
libsuff=64 shlibsuff=64 libmagic=64-bit;;
13545
*) libsuff= shlibsuff= libmagic=never-match;;
13549
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13550
shlibpath_overrides_runpath=no
13551
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13552
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13553
hardcode_into_libs=yes
13556
# No shared lib support for Linux oldld, aout, or coff.
13557
linux*oldld* | linux*aout* | linux*coff*)
13561
# This must be Linux ELF.
13562
linux* | k*bsd*-gnu)
13566
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13567
soname_spec='${libname}${release}${shared_ext}$major'
13568
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13569
shlibpath_var=LD_LIBRARY_PATH
13570
shlibpath_overrides_runpath=no
13571
# This implies no fast_install, which is unacceptable.
13572
# Some rework will be needed to allow for fast_install
13573
# before this can be enabled.
13574
hardcode_into_libs=yes
13575
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13576
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13578
# Append ld.so.conf contents to the search path
13579
if test -f /etc/ld.so.conf; then
13580
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' ' '`
13581
sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13584
# We used to test for /lib/ld.so.1 and disable shared libraries on
13585
# powerpc, because MkLinux only supported shared libraries with the
13586
# GNU dynamic linker. Since this was broken with cross compilers,
13587
# most powerpc-linux boxes support dynamic linking these days and
13588
# people can always --disable-shared, the test was removed, and we
13589
# assume the GNU/Linux dynamic linker is in use.
13590
dynamic_linker='GNU/Linux ld.so'
13597
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13598
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13599
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13600
dynamic_linker='NetBSD (a.out) ld.so'
13602
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13603
soname_spec='${libname}${release}${shared_ext}$major'
13604
dynamic_linker='NetBSD ld.elf_so'
13606
shlibpath_var=LD_LIBRARY_PATH
13607
shlibpath_overrides_runpath=yes
13608
hardcode_into_libs=yes
13613
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13614
shlibpath_var=LD_LIBRARY_PATH
13615
shlibpath_overrides_runpath=yes
13622
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13623
soname_spec='${libname}${release}${shared_ext}$major'
13624
shlibpath_var=LD_LIBRARY_PATH
13625
shlibpath_overrides_runpath=yes
13630
sys_lib_dlsearch_path_spec="/usr/lib"
13632
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13634
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13635
*) need_version=no ;;
13637
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13638
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13639
shlibpath_var=LD_LIBRARY_PATH
13640
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13642
openbsd2.[89] | openbsd2.[89].*)
13643
shlibpath_overrides_runpath=no
13646
shlibpath_overrides_runpath=yes
13650
shlibpath_overrides_runpath=yes
13655
libname_spec='$name'
13658
library_names_spec='$libname${shared_ext} $libname.a'
13659
dynamic_linker='OS/2 ld.exe'
13660
shlibpath_var=LIBPATH
13663
osf3* | osf4* | osf5*)
13667
soname_spec='${libname}${release}${shared_ext}$major'
13668
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13669
shlibpath_var=LD_LIBRARY_PATH
13670
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13671
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13682
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13683
soname_spec='${libname}${release}${shared_ext}$major'
13684
shlibpath_var=LD_LIBRARY_PATH
13685
shlibpath_overrides_runpath=yes
13686
hardcode_into_libs=yes
13687
# ldd complains unless libraries are executable
13688
postinstall_cmds='chmod +x $lib'
13693
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13694
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13695
shlibpath_var=LD_LIBRARY_PATH
13696
shlibpath_overrides_runpath=yes
13697
if test "$with_gnu_ld" = yes; then
13705
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13706
soname_spec='${libname}${release}${shared_ext}$major'
13707
shlibpath_var=LD_LIBRARY_PATH
13708
case $host_vendor in
13710
shlibpath_overrides_runpath=no
13712
export_dynamic_flag_spec='${wl}-Blargedynsym'
13713
runpath_var=LD_RUN_PATH
13721
shlibpath_overrides_runpath=no
13722
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13728
if test -d /usr/nec ;then
13730
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13731
soname_spec='$libname${shared_ext}.$major'
13732
shlibpath_var=LD_LIBRARY_PATH
13736
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13737
version_type=freebsd-elf
13740
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13741
soname_spec='${libname}${release}${shared_ext}$major'
13742
shlibpath_var=LD_LIBRARY_PATH
13743
hardcode_into_libs=yes
13744
if test "$with_gnu_ld" = yes; then
13745
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13746
shlibpath_overrides_runpath=no
13748
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13749
shlibpath_overrides_runpath=yes
13752
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13756
sys_lib_dlsearch_path_spec='/usr/lib'
13761
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13762
soname_spec='${libname}${release}${shared_ext}$major'
13763
shlibpath_var=LD_LIBRARY_PATH
13770
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13771
$as_echo "$dynamic_linker" >&6; }
13772
test "$dynamic_linker" = no && can_build_shared=no
13774
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13775
$as_echo_n "(cached) " >&6
13777
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13780
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13781
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13782
$as_echo_n "(cached) " >&6
13784
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13787
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13789
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13790
if test "$GCC" = yes; then
13791
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13794
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13795
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13796
hardcode_action_CXX=
13797
if test -n "$hardcode_libdir_flag_spec_CXX" || \
13798
test -n "$runpath_var_CXX" || \
13799
test "X$hardcode_automatic_CXX" = "Xyes" ; then
13801
# We can hardcode non-existant directories.
13802
if test "$hardcode_direct_CXX" != no &&
13803
# If the only mechanism to avoid hardcoding is shlibpath_var, we
13804
# have to relink, otherwise we might link with an installed library
13805
# when we should be linking with a yet-to-be-installed one
13806
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13807
test "$hardcode_minus_L_CXX" != no; then
13808
# Linking always hardcodes the temporary library directory.
13809
hardcode_action_CXX=relink
13811
# We can link without hardcoding, and we can hardcode nonexisting dirs.
13812
hardcode_action_CXX=immediate
13815
# We cannot hardcode anything, or else we can only hardcode existing
13817
hardcode_action_CXX=unsupported
13819
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13820
$as_echo "$hardcode_action_CXX" >&6; }
13822
if test "$hardcode_action_CXX" = relink; then
13823
# Fast installation is not supported
13824
enable_fast_install=no
13825
elif test "$shlibpath_overrides_runpath" = yes ||
13826
test "$enable_shared" = no; then
13827
# Fast installation is not necessary
13828
enable_fast_install=needless
13832
# The else clause should only fire when bootstrapping the
13833
# libtool distribution, otherwise you forgot to ship ltmain.sh
13834
# with your package, and you will get complaints that there are
13835
# no rules to generate ltmain.sh.
13836
if test -f "$ltmain"; then
13837
# See if we are running on zsh, and set the options which allow our commands through
13838
# without removal of \ escapes.
13839
if test -n "${ZSH_VERSION+set}" ; then
13840
setopt NO_GLOB_SUBST
13842
# Now quote all the things that may contain metacharacters while being
13843
# careful not to overquote the AC_SUBSTed values. We take copies of the
13844
# variables and quote the copies for generation of the libtool script.
13845
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13847
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13848
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13849
deplibs_check_method reload_flag reload_cmds need_locks \
13850
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13851
lt_cv_sys_global_symbol_to_c_name_address \
13852
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13853
old_postinstall_cmds old_postuninstall_cmds \
13857
lt_prog_compiler_wl_CXX \
13858
lt_prog_compiler_pic_CXX \
13859
lt_prog_compiler_static_CXX \
13860
lt_prog_compiler_no_builtin_flag_CXX \
13861
export_dynamic_flag_spec_CXX \
13862
thread_safe_flag_spec_CXX \
13863
whole_archive_flag_spec_CXX \
13864
enable_shared_with_static_runtimes_CXX \
13865
old_archive_cmds_CXX \
13866
old_archive_from_new_cmds_CXX \
13867
predep_objects_CXX \
13868
postdep_objects_CXX \
13871
compiler_lib_search_path_CXX \
13872
compiler_lib_search_dirs_CXX \
13874
archive_expsym_cmds_CXX \
13875
postinstall_cmds_CXX \
13876
postuninstall_cmds_CXX \
13877
old_archive_from_expsyms_cmds_CXX \
13878
allow_undefined_flag_CXX \
13879
no_undefined_flag_CXX \
13880
export_symbols_cmds_CXX \
13881
hardcode_libdir_flag_spec_CXX \
13882
hardcode_libdir_flag_spec_ld_CXX \
13883
hardcode_libdir_separator_CXX \
13884
hardcode_automatic_CXX \
13886
module_expsym_cmds_CXX \
13887
lt_cv_prog_compiler_c_o_CXX \
13888
fix_srcfile_path_CXX \
13889
exclude_expsyms_CXX \
13890
include_expsyms_CXX; do
13893
old_archive_cmds_CXX | \
13894
old_archive_from_new_cmds_CXX | \
13895
archive_cmds_CXX | \
13896
archive_expsym_cmds_CXX | \
13897
module_cmds_CXX | \
13898
module_expsym_cmds_CXX | \
13899
old_archive_from_expsyms_cmds_CXX | \
13900
export_symbols_cmds_CXX | \
13901
extract_expsyms_cmds | reload_cmds | finish_cmds | \
13902
postinstall_cmds | postuninstall_cmds | \
13903
old_postinstall_cmds | old_postuninstall_cmds | \
13904
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13905
# Double-quote double-evaled strings.
13906
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13909
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13915
*'\$0 --fallback-echo"')
13916
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13922
cat <<__EOF__ >> "$cfgfile"
13923
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13925
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13927
# Shell to use when invoking shell scripts.
13930
# Whether or not to build shared libraries.
13931
build_libtool_libs=$enable_shared
13933
# Whether or not to build static libraries.
13934
build_old_libs=$enable_static
13936
# Whether or not to add -lc for building shared libraries.
13937
build_libtool_need_lc=$archive_cmds_need_lc_CXX
13939
# Whether or not to disallow shared libs when runtime libs are static
13940
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13942
# Whether or not to optimize for fast installation.
13943
fast_install=$enable_fast_install
13946
host_alias=$host_alias
13950
# The build system.
13951
build_alias=$build_alias
13955
# An echo program that does not interpret backslashes.
13960
AR_FLAGS=$lt_AR_FLAGS
13965
# LTCC compiler flags.
13966
LTCFLAGS=$lt_LTCFLAGS
13968
# A language-specific compiler.
13969
CC=$lt_compiler_CXX
13971
# Is the compiler the GNU C compiler?
13977
# The linker used to build libraries.
13980
# Whether we need hard or soft links.
13983
# A BSD-compatible nm program.
13986
# A symbol stripping program
13989
# Used to examine libraries when file_magic_cmd begins "file"
13990
MAGIC_CMD=$MAGIC_CMD
13992
# Used on cygwin: DLL creation program.
13995
# Used on cygwin: object dumper.
13998
# Used on cygwin: assembler.
14001
# The name of the directory that contains temporary libtool files.
14004
# How to create reloadable object files.
14005
reload_flag=$lt_reload_flag
14006
reload_cmds=$lt_reload_cmds
14008
# How to pass a linker flag through the compiler.
14009
wl=$lt_lt_prog_compiler_wl_CXX
14011
# Object file suffix (normally "o").
14012
objext="$ac_objext"
14014
# Old archive suffix (normally "a").
14017
# Shared library suffix (normally ".so").
14018
shrext_cmds='$shrext_cmds'
14020
# Executable file suffix (normally "").
14023
# Additional compiler flags for building library objects.
14024
pic_flag=$lt_lt_prog_compiler_pic_CXX
14027
# What is the maximum length of a command?
14028
max_cmd_len=$lt_cv_sys_max_cmd_len
14030
# Does compiler simultaneously support -c and -o options?
14031
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14033
# Must we lock files when doing compilation?
14034
need_locks=$lt_need_locks
14036
# Do we need the lib prefix for modules?
14037
need_lib_prefix=$need_lib_prefix
14039
# Do we need a version for libraries?
14040
need_version=$need_version
14042
# Whether dlopen is supported.
14043
dlopen_support=$enable_dlopen
14045
# Whether dlopen of programs is supported.
14046
dlopen_self=$enable_dlopen_self
14048
# Whether dlopen of statically linked programs is supported.
14049
dlopen_self_static=$enable_dlopen_self_static
14051
# Compiler flag to prevent dynamic linking.
14052
link_static_flag=$lt_lt_prog_compiler_static_CXX
14054
# Compiler flag to turn off builtin functions.
14055
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14057
# Compiler flag to allow reflexive dlopens.
14058
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14060
# Compiler flag to generate shared objects directly from archives.
14061
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14063
# Compiler flag to generate thread-safe objects.
14064
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14066
# Library versioning type.
14067
version_type=$version_type
14069
# Format of library name prefix.
14070
libname_spec=$lt_libname_spec
14072
# List of archive names. First name is the real one, the rest are links.
14073
# The last name is the one that the linker finds with -lNAME.
14074
library_names_spec=$lt_library_names_spec
14076
# The coded name of the library, if different from the real name.
14077
soname_spec=$lt_soname_spec
14079
# Commands used to build and install an old-style archive.
14081
old_archive_cmds=$lt_old_archive_cmds_CXX
14082
old_postinstall_cmds=$lt_old_postinstall_cmds
14083
old_postuninstall_cmds=$lt_old_postuninstall_cmds
14085
# Create an old-style archive from a shared archive.
14086
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14088
# Create a temporary old-style archive to link instead of a shared archive.
14089
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14091
# Commands used to build and install a shared archive.
14092
archive_cmds=$lt_archive_cmds_CXX
14093
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14094
postinstall_cmds=$lt_postinstall_cmds
14095
postuninstall_cmds=$lt_postuninstall_cmds
14097
# Commands used to build a loadable module (assumed same as above if empty)
14098
module_cmds=$lt_module_cmds_CXX
14099
module_expsym_cmds=$lt_module_expsym_cmds_CXX
14101
# Commands to strip libraries.
14102
old_striplib=$lt_old_striplib
14103
striplib=$lt_striplib
14105
# Dependencies to place before the objects being linked to create a
14107
predep_objects=$lt_predep_objects_CXX
14109
# Dependencies to place after the objects being linked to create a
14111
postdep_objects=$lt_postdep_objects_CXX
14113
# Dependencies to place before the objects being linked to create a
14115
predeps=$lt_predeps_CXX
14117
# Dependencies to place after the objects being linked to create a
14119
postdeps=$lt_postdeps_CXX
14121
# The directories searched by this compiler when creating a shared
14123
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14125
# The library search path used internally by the compiler when linking
14126
# a shared library.
14127
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14129
# Method to check whether dependent libraries are shared objects.
14130
deplibs_check_method=$lt_deplibs_check_method
14132
# Command to use when deplibs_check_method == file_magic.
14133
file_magic_cmd=$lt_file_magic_cmd
14135
# Flag that allows shared libraries with undefined symbols to be built.
14136
allow_undefined_flag=$lt_allow_undefined_flag_CXX
14138
# Flag that forces no undefined symbols.
14139
no_undefined_flag=$lt_no_undefined_flag_CXX
14141
# Commands used to finish a libtool library installation in a directory.
14142
finish_cmds=$lt_finish_cmds
14144
# Same as above, but a single script fragment to be evaled but not shown.
14145
finish_eval=$lt_finish_eval
14147
# Take the output of nm and produce a listing of raw symbols and C names.
14148
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14150
# Transform the output of nm in a proper C declaration
14151
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14153
# Transform the output of nm in a C name address pair
14154
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14156
# This is the shared library runtime path variable.
14157
runpath_var=$runpath_var
14159
# This is the shared library path variable.
14160
shlibpath_var=$shlibpath_var
14162
# Is shlibpath searched before the hard-coded library search path?
14163
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14165
# How to hardcode a shared library path into an executable.
14166
hardcode_action=$hardcode_action_CXX
14168
# Whether we should hardcode library paths into libraries.
14169
hardcode_into_libs=$hardcode_into_libs
14171
# Flag to hardcode \$libdir into a binary during linking.
14172
# This must work even if \$libdir does not exist.
14173
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14175
# If ld is used when linking, flag to hardcode \$libdir into
14176
# a binary during linking. This must work even if \$libdir does
14178
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14180
# Whether we need a single -rpath flag with a separated argument.
14181
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14183
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14184
# resulting binary.
14185
hardcode_direct=$hardcode_direct_CXX
14187
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14188
# resulting binary.
14189
hardcode_minus_L=$hardcode_minus_L_CXX
14191
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14192
# the resulting binary.
14193
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14195
# Set to yes if building a shared library automatically hardcodes DIR into the library
14196
# and all subsequent libraries and executables linked against it.
14197
hardcode_automatic=$hardcode_automatic_CXX
14199
# Variables whose values should be saved in libtool wrapper scripts and
14200
# restored at relink time.
14201
variables_saved_for_relink="$variables_saved_for_relink"
14203
# Whether libtool must link a program against all its dependency libraries.
14204
link_all_deplibs=$link_all_deplibs_CXX
14206
# Compile-time system search path for libraries
14207
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14209
# Run-time system search path for libraries
14210
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14212
# Fix the shell variable \$srcfile for the compiler.
14213
fix_srcfile_path=$lt_fix_srcfile_path
14215
# Set to yes if exported symbols are required.
14216
always_export_symbols=$always_export_symbols_CXX
14218
# The commands to list exported symbols.
14219
export_symbols_cmds=$lt_export_symbols_cmds_CXX
14221
# The commands to extract the exported symbol list from a shared archive.
14222
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14224
# Symbols that should not be listed in the preloaded symbols.
14225
exclude_expsyms=$lt_exclude_expsyms_CXX
14227
# Symbols that must always be exported.
14228
include_expsyms=$lt_include_expsyms_CXX
14230
# ### END LIBTOOL TAG CONFIG: $tagname
14236
# If there is no Makefile yet, we rely on a make rule to execute
14237
# `config.status --recheck' to rerun these tests and create the
14238
# libtool script then.
14239
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14240
if test -f "$ltmain_in"; then
14241
test -f Makefile && make "$ltmain"
14247
ac_cpp='$CPP $CPPFLAGS'
14248
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14249
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14250
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14256
with_gnu_ldcxx=$with_gnu_ld
14257
with_gnu_ld=$lt_save_with_gnu_ld
14258
lt_cv_path_LDCXX=$lt_cv_path_LD
14259
lt_cv_path_LD=$lt_save_path_LD
14260
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14261
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14269
if test -n "$F77" && test "X$F77" != "Xno"; then
14272
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14273
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14274
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14277
archive_cmds_need_lc_F77=no
14278
allow_undefined_flag_F77=
14279
always_export_symbols_F77=no
14280
archive_expsym_cmds_F77=
14281
export_dynamic_flag_spec_F77=
14282
hardcode_direct_F77=no
14283
hardcode_libdir_flag_spec_F77=
14284
hardcode_libdir_flag_spec_ld_F77=
14285
hardcode_libdir_separator_F77=
14286
hardcode_minus_L_F77=no
14287
hardcode_automatic_F77=no
14289
module_expsym_cmds_F77=
14290
link_all_deplibs_F77=unknown
14291
old_archive_cmds_F77=$old_archive_cmds
14292
no_undefined_flag_F77=
14293
whole_archive_flag_spec_F77=
14294
enable_shared_with_static_runtimes_F77=no
14296
# Source file extension for f77 test sources.
14299
# Object file extension for compiled f77 test sources.
14303
# Code to be used in simple compile tests
14304
lt_simple_compile_test_code="\
14310
# Code to be used in simple link tests
14311
lt_simple_link_test_code="\
14316
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14318
# If no C compiler was specified, use CC.
14321
# If no C compiler flags were specified, use CFLAGS.
14322
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14324
# Allow CC to be a program name with arguments.
14328
# save warnings/boilerplate of simple test code
14329
ac_outfile=conftest.$ac_objext
14330
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14331
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14332
_lt_compiler_boilerplate=`cat conftest.err`
14335
ac_outfile=conftest.$ac_objext
14336
echo "$lt_simple_link_test_code" >conftest.$ac_ext
14337
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14338
_lt_linker_boilerplate=`cat conftest.err`
14342
# Allow CC to be a program name with arguments.
14347
for cc_temp in $compiler""; do
14349
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14350
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14355
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14358
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14359
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
14360
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
14361
$as_echo "$can_build_shared" >&6; }
14363
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14364
$as_echo_n "checking whether to build shared libraries... " >&6; }
14365
test "$can_build_shared" = "no" && enable_shared=no
14367
# On AIX, shared libraries and static libraries use the same namespace, and
14368
# are all built from PIC.
14371
test "$enable_shared" = yes && enable_static=no
14372
if test -n "$RANLIB"; then
14373
archive_cmds="$archive_cmds~\$RANLIB \$lib"
14374
postinstall_cmds='$RANLIB $lib'
14378
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14379
test "$enable_shared" = yes && enable_static=no
14383
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
14384
$as_echo "$enable_shared" >&6; }
14386
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14387
$as_echo_n "checking whether to build static libraries... " >&6; }
14388
# Make sure either enable_shared or enable_static is yes.
14389
test "$enable_shared" = yes || enable_static=yes
14390
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
14391
$as_echo "$enable_static" >&6; }
14396
lt_prog_compiler_wl_F77=
14397
lt_prog_compiler_pic_F77=
14398
lt_prog_compiler_static_F77=
14400
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14401
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14403
if test "$GCC" = yes; then
14404
lt_prog_compiler_wl_F77='-Wl,'
14405
lt_prog_compiler_static_F77='-static'
14409
# All AIX code is PIC.
14410
if test "$host_cpu" = ia64; then
14411
# AIX 5 now supports IA64 processor
14412
lt_prog_compiler_static_F77='-Bstatic'
14417
# FIXME: we need at least 68020 code to build shared libraries, but
14418
# adding the `-m68020' flag to GCC prevents building anything better,
14420
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14423
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14424
# PIC is the default for these OSes.
14427
mingw* | cygwin* | pw32* | os2*)
14428
# This hack is so that the source file can tell whether it is being
14429
# built for inclusion in a dll (and should export symbols for example).
14430
# Although the cygwin gcc ignores -fPIC, still need this for old-style
14431
# (--disable-auto-import) libraries
14432
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14435
darwin* | rhapsody*)
14436
# PIC is the default on this platform
14437
# Common symbols not allowed in MH_DYLIB files
14438
lt_prog_compiler_pic_F77='-fno-common'
14442
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
14443
# Instead, we relocate shared libraries at runtime.
14447
# Just because we use GCC doesn't mean we suddenly get shared libraries
14448
# on systems that don't support them.
14449
lt_prog_compiler_can_build_shared_F77=no
14454
if test -d /usr/nec; then
14455
lt_prog_compiler_pic_F77=-Kconform_pic
14460
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14461
# not for PA HP-UX.
14467
lt_prog_compiler_pic_F77='-fPIC'
14473
lt_prog_compiler_pic_F77='-fPIC'
14477
# PORTME Check for flag to pass linker flags through the system compiler.
14480
lt_prog_compiler_wl_F77='-Wl,'
14481
if test "$host_cpu" = ia64; then
14482
# AIX 5 now supports IA64 processor
14483
lt_prog_compiler_static_F77='-Bstatic'
14485
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14489
# PIC is the default on this platform
14490
# Common symbols not allowed in MH_DYLIB files
14491
case $cc_basename in
14493
lt_prog_compiler_pic_F77='-qnocommon'
14494
lt_prog_compiler_wl_F77='-Wl,'
14499
mingw* | cygwin* | pw32* | os2*)
14500
# This hack is so that the source file can tell whether it is being
14501
# built for inclusion in a dll (and should export symbols for example).
14502
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14505
hpux9* | hpux10* | hpux11*)
14506
lt_prog_compiler_wl_F77='-Wl,'
14507
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14508
# not for PA HP-UX.
14514
lt_prog_compiler_pic_F77='+Z'
14517
# Is there a better lt_prog_compiler_static that works with the bundled CC?
14518
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14521
irix5* | irix6* | nonstopux*)
14522
lt_prog_compiler_wl_F77='-Wl,'
14523
# PIC (with -KPIC) is the default.
14524
lt_prog_compiler_static_F77='-non_shared'
14528
lt_prog_compiler_pic_F77='-KPIC'
14529
lt_prog_compiler_static_F77='-Bstatic'
14532
linux* | k*bsd*-gnu)
14533
case $cc_basename in
14535
lt_prog_compiler_wl_F77='-Wl,'
14536
lt_prog_compiler_pic_F77='-KPIC'
14537
lt_prog_compiler_static_F77='-static'
14539
pgcc* | pgf77* | pgf90* | pgf95*)
14540
# Portland Group compilers (*not* the Pentium gcc compiler,
14541
# which looks to be a dead project)
14542
lt_prog_compiler_wl_F77='-Wl,'
14543
lt_prog_compiler_pic_F77='-fpic'
14544
lt_prog_compiler_static_F77='-Bstatic'
14547
lt_prog_compiler_wl_F77='-Wl,'
14548
# All Alpha code is PIC.
14549
lt_prog_compiler_static_F77='-non_shared'
14552
case `$CC -V 2>&1 | sed 5q` in
14555
lt_prog_compiler_pic_F77='-KPIC'
14556
lt_prog_compiler_static_F77='-Bstatic'
14557
lt_prog_compiler_wl_F77='-Wl,'
14560
# Sun Fortran 8.3 passes all unrecognized flags to the linker
14561
lt_prog_compiler_pic_F77='-KPIC'
14562
lt_prog_compiler_static_F77='-Bstatic'
14563
lt_prog_compiler_wl_F77=''
14570
osf3* | osf4* | osf5*)
14571
lt_prog_compiler_wl_F77='-Wl,'
14572
# All OSF/1 code is PIC.
14573
lt_prog_compiler_static_F77='-non_shared'
14577
lt_prog_compiler_static_F77='-non_shared'
14581
lt_prog_compiler_pic_F77='-KPIC'
14582
lt_prog_compiler_static_F77='-Bstatic'
14583
case $cc_basename in
14584
f77* | f90* | f95*)
14585
lt_prog_compiler_wl_F77='-Qoption ld ';;
14587
lt_prog_compiler_wl_F77='-Wl,';;
14592
lt_prog_compiler_wl_F77='-Qoption ld '
14593
lt_prog_compiler_pic_F77='-PIC'
14594
lt_prog_compiler_static_F77='-Bstatic'
14597
sysv4 | sysv4.2uw2* | sysv4.3*)
14598
lt_prog_compiler_wl_F77='-Wl,'
14599
lt_prog_compiler_pic_F77='-KPIC'
14600
lt_prog_compiler_static_F77='-Bstatic'
14604
if test -d /usr/nec ;then
14605
lt_prog_compiler_pic_F77='-Kconform_pic'
14606
lt_prog_compiler_static_F77='-Bstatic'
14610
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14611
lt_prog_compiler_wl_F77='-Wl,'
14612
lt_prog_compiler_pic_F77='-KPIC'
14613
lt_prog_compiler_static_F77='-Bstatic'
14617
lt_prog_compiler_wl_F77='-Wl,'
14618
lt_prog_compiler_can_build_shared_F77=no
14622
lt_prog_compiler_pic_F77='-pic'
14623
lt_prog_compiler_static_F77='-Bstatic'
14627
lt_prog_compiler_can_build_shared_F77=no
14632
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14633
$as_echo "$lt_prog_compiler_pic_F77" >&6; }
14636
# Check to make sure the PIC flag actually works.
14638
if test -n "$lt_prog_compiler_pic_F77"; then
14640
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14641
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14642
if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14643
$as_echo_n "(cached) " >&6
14645
lt_cv_prog_compiler_pic_works_F77=no
14646
ac_outfile=conftest.$ac_objext
14647
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14648
lt_compiler_flag="$lt_prog_compiler_pic_F77"
14649
# Insert the option either (1) after the last *FLAGS variable, or
14650
# (2) before a word containing "conftest.", or (3) at the end.
14651
# Note that $ac_compile itself does not contain backslashes and begins
14652
# with a dollar sign (not a hyphen), so the echo should work correctly.
14653
# The option is referenced via a variable to avoid confusing sed.
14654
lt_compile=`echo "$ac_compile" | $SED \
14655
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14656
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14657
-e 's:$: $lt_compiler_flag:'`
14658
(eval echo "\"\$as_me:14658: $lt_compile\"" >&5)
14659
(eval "$lt_compile" 2>conftest.err)
14661
cat conftest.err >&5
14662
echo "$as_me:14662: \$? = $ac_status" >&5
14663
if (exit $ac_status) && test -s "$ac_outfile"; then
14664
# The compiler can only warn and ignore the option if not recognized
14665
# So say no if there are warnings other than the usual output.
14666
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14667
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14668
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14669
lt_cv_prog_compiler_pic_works_F77=yes
14675
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14676
$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
14678
if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14679
case $lt_prog_compiler_pic_F77 in
14681
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14684
lt_prog_compiler_pic_F77=
14685
lt_prog_compiler_can_build_shared_F77=no
14690
# For platforms which do not support PIC, -DPIC is meaningless:
14692
lt_prog_compiler_pic_F77=
14695
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14700
# Check to make sure the static flag actually works.
14702
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14703
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14704
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14705
if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14706
$as_echo_n "(cached) " >&6
14708
lt_cv_prog_compiler_static_works_F77=no
14709
save_LDFLAGS="$LDFLAGS"
14710
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14711
echo "$lt_simple_link_test_code" > conftest.$ac_ext
14712
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14713
# The linker can only warn and ignore the option if not recognized
14714
# So say no if there are warnings
14715
if test -s conftest.err; then
14716
# Append any errors to the config.log.
14717
cat conftest.err 1>&5
14718
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14719
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14720
if diff conftest.exp conftest.er2 >/dev/null; then
14721
lt_cv_prog_compiler_static_works_F77=yes
14724
lt_cv_prog_compiler_static_works_F77=yes
14728
LDFLAGS="$save_LDFLAGS"
14731
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14732
$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
14734
if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14737
lt_prog_compiler_static_F77=
14741
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14742
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14743
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14744
$as_echo_n "(cached) " >&6
14746
lt_cv_prog_compiler_c_o_F77=no
14747
$rm -r conftest 2>/dev/null
14751
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14753
lt_compiler_flag="-o out/conftest2.$ac_objext"
14754
# Insert the option either (1) after the last *FLAGS variable, or
14755
# (2) before a word containing "conftest.", or (3) at the end.
14756
# Note that $ac_compile itself does not contain backslashes and begins
14757
# with a dollar sign (not a hyphen), so the echo should work correctly.
14758
lt_compile=`echo "$ac_compile" | $SED \
14759
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14760
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14761
-e 's:$: $lt_compiler_flag:'`
14762
(eval echo "\"\$as_me:14762: $lt_compile\"" >&5)
14763
(eval "$lt_compile" 2>out/conftest.err)
14765
cat out/conftest.err >&5
14766
echo "$as_me:14766: \$? = $ac_status" >&5
14767
if (exit $ac_status) && test -s out/conftest2.$ac_objext
14769
# The compiler can only warn and ignore the option if not recognized
14770
# So say no if there are warnings
14771
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14772
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14773
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14774
lt_cv_prog_compiler_c_o_F77=yes
14779
# SGI C++ compiler will create directory out/ii_files/ for
14780
# template instantiation
14781
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14782
$rm out/* && rmdir out
14788
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14789
$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14792
hard_links="nottested"
14793
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14794
# do not overwrite the value of need_locks provided by the user
14795
{ $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14796
$as_echo_n "checking if we can lock with hard links... " >&6; }
14799
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14801
ln conftest.a conftest.b 2>&5 || hard_links=no
14802
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14803
{ $as_echo "$as_me:$LINENO: result: $hard_links" >&5
14804
$as_echo "$hard_links" >&6; }
14805
if test "$hard_links" = no; then
14806
{ $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14807
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14814
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14815
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14818
allow_undefined_flag_F77=
14819
enable_shared_with_static_runtimes_F77=no
14821
archive_expsym_cmds_F77=
14822
old_archive_From_new_cmds_F77=
14823
old_archive_from_expsyms_cmds_F77=
14824
export_dynamic_flag_spec_F77=
14825
whole_archive_flag_spec_F77=
14826
thread_safe_flag_spec_F77=
14827
hardcode_libdir_flag_spec_F77=
14828
hardcode_libdir_flag_spec_ld_F77=
14829
hardcode_libdir_separator_F77=
14830
hardcode_direct_F77=no
14831
hardcode_minus_L_F77=no
14832
hardcode_shlibpath_var_F77=unsupported
14833
link_all_deplibs_F77=unknown
14834
hardcode_automatic_F77=no
14836
module_expsym_cmds_F77=
14837
always_export_symbols_F77=no
14838
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14839
# include_expsyms should be a list of space-separated symbols to be *always*
14840
# included in the symbol list
14841
include_expsyms_F77=
14842
# exclude_expsyms can be an extended regexp of symbols to exclude
14843
# it will be wrapped by ` (' and `)$', so one must not match beginning or
14844
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14845
# as well as any symbol that contains `d'.
14846
exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14847
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14848
# platforms (ab)use it in PIC code, but their linkers get confused if
14849
# the symbol is explicitly referenced. Since portable code cannot
14850
# rely on this symbol name, it's probably fine to never include it in
14851
# preloaded symbol tables.
14852
# Exclude shared library initialization/finalization symbols.
14853
extract_expsyms_cmds=
14854
# Just being paranoid about ensuring that cc_basename is set.
14855
for cc_temp in $compiler""; do
14857
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14858
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14863
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14866
cygwin* | mingw* | pw32*)
14867
# FIXME: the MSVC++ port hasn't been tested in a loooong time
14868
# When not using gcc, we currently assume that we are using
14869
# Microsoft Visual C++.
14870
if test "$GCC" != yes; then
14875
# we just hope/assume this is gcc and not c89 (= MSVC++)
14884
if test "$with_gnu_ld" = yes; then
14885
# If archive_cmds runs LD, not CC, wlarc should be empty
14888
# Set some defaults for GNU ld with shared library support. These
14889
# are reset later if shared libraries are not supported. Putting them
14890
# here allows them to be overridden if necessary.
14891
runpath_var=LD_RUN_PATH
14892
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14893
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14894
# ancient GNU ld didn't support --whole-archive et. al.
14895
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14896
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14898
whole_archive_flag_spec_F77=
14900
supports_anon_versioning=no
14901
case `$LD -v 2>/dev/null` in
14902
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14903
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14904
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14905
*\ 2.11.*) ;; # other 2.11 versions
14906
*) supports_anon_versioning=yes ;;
14909
# See if GNU ld supports shared libraries.
14912
# On AIX/PPC, the GNU linker is very broken
14913
if test "$host_cpu" != ia64; then
14917
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14918
*** to be unable to reliably create shared libraries on AIX.
14919
*** Therefore, libtool is disabling shared libraries support. If you
14920
*** really care for shared libraries, you may want to modify your PATH
14921
*** so that a non-GNU linker is found, and then restart.
14928
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)'
14929
hardcode_libdir_flag_spec_F77='-L$libdir'
14930
hardcode_minus_L_F77=yes
14932
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14933
# that the semantics of dynamic libraries on AmigaOS, at least up
14934
# to version 4, is to share data among multiple programs linked
14935
# with the same dynamic library. Since this doesn't match the
14936
# behavior of shared libraries on other platforms, we can't use
14942
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14943
allow_undefined_flag_F77=unsupported
14944
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14945
# support --undefined. This deserves some investigation. FIXME
14946
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14952
cygwin* | mingw* | pw32*)
14953
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14954
# as there is no search path for DLLs.
14955
hardcode_libdir_flag_spec_F77='-L$libdir'
14956
allow_undefined_flag_F77=unsupported
14957
always_export_symbols_F77=no
14958
enable_shared_with_static_runtimes_F77=yes
14959
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14961
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14962
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14963
# If the export-symbols file already is a .def file (1st line
14964
# is EXPORTS), use it as is; otherwise, prepend...
14965
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14966
cp $export_symbols $output_objdir/$soname.def;
14968
echo EXPORTS > $output_objdir/$soname.def;
14969
cat $export_symbols >> $output_objdir/$soname.def;
14971
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14978
hardcode_direct_F77=no
14979
hardcode_shlibpath_var_F77=no
14980
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14981
export_dynamic_flag_spec_F77='${wl}-E'
14982
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14983
# Instead, shared libraries are loaded at an image base (0x10000000 by
14984
# default) and relocated if they conflict, which is a slow very memory
14985
# consuming and fragmenting process. To avoid this, we pick a random,
14986
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14987
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
14988
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'
14989
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'
14992
gnu* | linux* | k*bsd*-gnu)
14993
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14995
case $cc_basename,$host_cpu in
14996
pgcc*) # Portland Group C compiler
14997
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'
14998
tmp_addflag=' $pic_flag'
15000
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15001
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'
15002
tmp_addflag=' $pic_flag -Mnomain' ;;
15003
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15004
tmp_addflag=' -i_dynamic' ;;
15005
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15006
tmp_addflag=' -i_dynamic -nofor_main' ;;
15007
ifc* | ifort*) # Intel Fortran compiler
15008
tmp_addflag=' -nofor_main' ;;
15010
case `$CC -V 2>&1 | sed 5q` in
15011
*Sun\ C*) # Sun C 5.9
15012
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'
15013
tmp_sharedflag='-G' ;;
15014
*Sun\ F*) # Sun Fortran 8.3
15015
tmp_sharedflag='-G' ;;
15017
tmp_sharedflag='-shared' ;;
15019
archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15021
if test $supports_anon_versioning = yes; then
15022
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15023
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15024
$echo "local: *; };" >> $output_objdir/$libname.ver~
15025
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15033
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15034
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15037
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15038
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15043
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15047
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15048
*** create shared libraries on Solaris systems. Therefore, libtool
15049
*** is disabling shared libraries support. We urge you to upgrade GNU
15050
*** binutils to release 2.9.1 or newer. Another option is to modify
15051
*** your PATH or compiler configuration so that the native linker is
15052
*** used, and then restart.
15055
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15056
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15057
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15063
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15064
case `$LD -v 2>&1` in
15065
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15069
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15070
*** reliably create shared libraries on SCO systems. Therefore, libtool
15071
*** is disabling shared libraries support. We urge you to upgrade GNU
15072
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15073
*** your PATH or compiler configuration so that the native linker is
15074
*** used, and then restart.
15079
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15080
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15081
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15082
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15091
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15093
hardcode_direct_F77=yes
15094
hardcode_shlibpath_var_F77=no
15098
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15099
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15100
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15107
if test "$ld_shlibs_F77" = no; then
15109
hardcode_libdir_flag_spec_F77=
15110
export_dynamic_flag_spec_F77=
15111
whole_archive_flag_spec_F77=
15114
# PORTME fill in a description of your system's linker (not GNU ld)
15117
allow_undefined_flag_F77=unsupported
15118
always_export_symbols_F77=yes
15119
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'
15120
# Note: this linker hardcodes the directories in LIBPATH if there
15121
# are no directories specified by -L.
15122
hardcode_minus_L_F77=yes
15123
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15124
# Neither direct hardcoding nor static linking is supported with a
15126
hardcode_direct_F77=unsupported
15131
if test "$host_cpu" = ia64; then
15132
# On IA64, the linker does run time linking by default, so we don't
15133
# have to do anything special.
15134
aix_use_runtimelinking=no
15135
exp_sym_flag='-Bexport'
15138
# If we're using GNU nm, then we don't want the "-C" option.
15139
# -C means demangle to AIX nm, but means don't demangle with GNU nm
15140
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15141
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'
15143
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'
15145
aix_use_runtimelinking=no
15147
# Test if we are trying to use run time linking or normal
15148
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15149
# need to do runtime linking.
15150
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15151
for ld_flag in $LDFLAGS; do
15152
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15153
aix_use_runtimelinking=yes
15160
exp_sym_flag='-bexport'
15161
no_entry_flag='-bnoentry'
15164
# When large executables or shared objects are built, AIX ld can
15165
# have problems creating the table of contents. If linking a library
15166
# or program results in "error TOC overflow" add -mminimal-toc to
15167
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15168
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15170
archive_cmds_F77=''
15171
hardcode_direct_F77=yes
15172
hardcode_libdir_separator_F77=':'
15173
link_all_deplibs_F77=yes
15175
if test "$GCC" = yes; then
15176
case $host_os in aix4.[012]|aix4.[012].*)
15177
# We only want to do this on AIX 4.2 and lower, the check
15178
# below for broken collect2 doesn't work under 4.3+
15179
collect2name=`${CC} -print-prog-name=collect2`
15180
if test -f "$collect2name" && \
15181
strings "$collect2name" | grep resolve_lib_name >/dev/null
15183
# We have reworked collect2
15186
# We have old collect2
15187
hardcode_direct_F77=unsupported
15188
# It fails to find uninstalled libraries when the uninstalled
15189
# path is not listed in the libpath. Setting hardcode_minus_L
15190
# to unsupported forces relinking
15191
hardcode_minus_L_F77=yes
15192
hardcode_libdir_flag_spec_F77='-L$libdir'
15193
hardcode_libdir_separator_F77=
15197
shared_flag='-shared'
15198
if test "$aix_use_runtimelinking" = yes; then
15199
shared_flag="$shared_flag "'${wl}-G'
15203
if test "$host_cpu" = ia64; then
15204
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15205
# chokes on -Wl,-G. The following line is correct:
15208
if test "$aix_use_runtimelinking" = yes; then
15209
shared_flag='${wl}-G'
15211
shared_flag='${wl}-bM:SRE'
15216
# It seems that -bexpall does not export symbols beginning with
15217
# underscore (_), so it is better to generate a list of symbols to export.
15218
always_export_symbols_F77=yes
15219
if test "$aix_use_runtimelinking" = yes; then
15220
# Warning - without using the other runtime loading flags (-brtl),
15221
# -berok will link without error, but may produce a broken library.
15222
allow_undefined_flag_F77='-berok'
15223
# Determine the default libpath from the value encoded in an empty executable.
15224
cat >conftest.$ac_ext <<_ACEOF
15229
rm -f conftest.$ac_objext conftest$ac_exeext
15230
if { (ac_try="$ac_link"
15231
case "(($ac_try" in
15232
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15233
*) ac_try_echo=$ac_try;;
15235
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15236
$as_echo "$ac_try_echo") >&5
15237
(eval "$ac_link") 2>conftest.er1
15239
grep -v '^ *+' conftest.er1 >conftest.err
15241
cat conftest.err >&5
15242
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243
(exit $ac_status); } && {
15244
test -z "$ac_f77_werror_flag" ||
15245
test ! -s conftest.err
15246
} && test -s conftest$ac_exeext && {
15247
test "$cross_compiling" = yes ||
15248
$as_test_x conftest$ac_exeext
15251
lt_aix_libpath_sed='
15252
/Import File Strings/,/^$/ {
15258
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15259
# Check for a 64-bit object if we didn't find anything.
15260
if test -z "$aix_libpath"; then
15261
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15264
$as_echo "$as_me: failed program was:" >&5
15265
sed 's/^/| /' conftest.$ac_ext >&5
15270
rm -rf conftest.dSYM
15271
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15272
conftest$ac_exeext conftest.$ac_ext
15273
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15275
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15276
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"
15278
if test "$host_cpu" = ia64; then
15279
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15280
allow_undefined_flag_F77="-z nodefs"
15281
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"
15283
# Determine the default libpath from the value encoded in an empty executable.
15284
cat >conftest.$ac_ext <<_ACEOF
15289
rm -f conftest.$ac_objext conftest$ac_exeext
15290
if { (ac_try="$ac_link"
15291
case "(($ac_try" in
15292
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15293
*) ac_try_echo=$ac_try;;
15295
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15296
$as_echo "$ac_try_echo") >&5
15297
(eval "$ac_link") 2>conftest.er1
15299
grep -v '^ *+' conftest.er1 >conftest.err
15301
cat conftest.err >&5
15302
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15303
(exit $ac_status); } && {
15304
test -z "$ac_f77_werror_flag" ||
15305
test ! -s conftest.err
15306
} && test -s conftest$ac_exeext && {
15307
test "$cross_compiling" = yes ||
15308
$as_test_x conftest$ac_exeext
15311
lt_aix_libpath_sed='
15312
/Import File Strings/,/^$/ {
15318
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15319
# Check for a 64-bit object if we didn't find anything.
15320
if test -z "$aix_libpath"; then
15321
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15324
$as_echo "$as_me: failed program was:" >&5
15325
sed 's/^/| /' conftest.$ac_ext >&5
15330
rm -rf conftest.dSYM
15331
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15332
conftest$ac_exeext conftest.$ac_ext
15333
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15335
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15336
# Warning - without using the other run time loading flags,
15337
# -berok will link without error, but may produce a broken library.
15338
no_undefined_flag_F77=' ${wl}-bernotok'
15339
allow_undefined_flag_F77=' ${wl}-berok'
15340
# Exported symbols can be pulled into shared objects from archives
15341
whole_archive_flag_spec_F77='$convenience'
15342
archive_cmds_need_lc_F77=yes
15343
# This is similar to how AIX traditionally builds its shared libraries.
15344
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'
15350
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)'
15351
hardcode_libdir_flag_spec_F77='-L$libdir'
15352
hardcode_minus_L_F77=yes
15353
# see comment about different semantics on the GNU ld section
15358
export_dynamic_flag_spec_F77=-rdynamic
15361
cygwin* | mingw* | pw32*)
15362
# When not using gcc, we currently assume that we are using
15363
# Microsoft Visual C++.
15364
# hardcode_libdir_flag_spec is actually meaningless, as there is
15365
# no search path for DLLs.
15366
hardcode_libdir_flag_spec_F77=' '
15367
allow_undefined_flag_F77=unsupported
15368
# Tell ltmain to make .lib files, not .a files.
15370
# Tell ltmain to make .dll files, not .so files.
15372
# FIXME: Setting linknames here is a bad hack.
15373
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15374
# The linker will automatically build a .lib file if we build a DLL.
15375
old_archive_From_new_cmds_F77='true'
15376
# FIXME: Should let the user specify the lib program.
15377
old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15378
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15379
enable_shared_with_static_runtimes_F77=yes
15382
darwin* | rhapsody*)
15384
rhapsody* | darwin1.[012])
15385
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15388
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15389
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15391
case ${MACOSX_DEPLOYMENT_TARGET} in
15393
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15396
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15402
archive_cmds_need_lc_F77=no
15403
hardcode_direct_F77=no
15404
hardcode_automatic_F77=yes
15405
hardcode_shlibpath_var_F77=unsupported
15406
whole_archive_flag_spec_F77=''
15407
link_all_deplibs_F77=yes
15408
if test "$GCC" = yes ; then
15409
output_verbose_link_cmd='echo'
15410
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}"
15411
module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15412
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}"
15413
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}"
15415
case $cc_basename in
15417
output_verbose_link_cmd='echo'
15418
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15419
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15420
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15421
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}'
15422
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}'
15432
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15433
hardcode_libdir_flag_spec_F77='-L$libdir'
15434
hardcode_shlibpath_var_F77=no
15441
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15442
# support. Future versions do this automatically, but an explicit c++rt0.o
15443
# does not break anything, and helps significantly (at the cost of a little
15446
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15447
hardcode_libdir_flag_spec_F77='-R$libdir'
15448
hardcode_direct_F77=yes
15449
hardcode_shlibpath_var_F77=no
15452
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
15454
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15455
hardcode_direct_F77=yes
15456
hardcode_minus_L_F77=yes
15457
hardcode_shlibpath_var_F77=no
15460
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15461
freebsd* | dragonfly*)
15462
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15463
hardcode_libdir_flag_spec_F77='-R$libdir'
15464
hardcode_direct_F77=yes
15465
hardcode_shlibpath_var_F77=no
15469
if test "$GCC" = yes; then
15470
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'
15472
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'
15474
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15475
hardcode_libdir_separator_F77=:
15476
hardcode_direct_F77=yes
15478
# hardcode_minus_L: Not really in the search PATH,
15479
# but as the default location of the library.
15480
hardcode_minus_L_F77=yes
15481
export_dynamic_flag_spec_F77='${wl}-E'
15485
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15486
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15488
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15490
if test "$with_gnu_ld" = no; then
15491
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15492
hardcode_libdir_separator_F77=:
15494
hardcode_direct_F77=yes
15495
export_dynamic_flag_spec_F77='${wl}-E'
15497
# hardcode_minus_L: Not really in the search PATH,
15498
# but as the default location of the library.
15499
hardcode_minus_L_F77=yes
15504
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15507
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15510
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15513
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15519
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15522
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15525
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15529
if test "$with_gnu_ld" = no; then
15530
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15531
hardcode_libdir_separator_F77=:
15535
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15536
hardcode_direct_F77=no
15537
hardcode_shlibpath_var_F77=no
15540
hardcode_direct_F77=yes
15541
export_dynamic_flag_spec_F77='${wl}-E'
15543
# hardcode_minus_L: Not really in the search PATH,
15544
# but as the default location of the library.
15545
hardcode_minus_L_F77=yes
15551
irix5* | irix6* | nonstopux*)
15552
if test "$GCC" = yes; then
15553
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'
15555
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'
15556
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15558
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15559
hardcode_libdir_separator_F77=:
15560
link_all_deplibs_F77=yes
15564
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15565
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15567
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15569
hardcode_libdir_flag_spec_F77='-R$libdir'
15570
hardcode_direct_F77=yes
15571
hardcode_shlibpath_var_F77=no
15575
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15576
hardcode_direct_F77=yes
15577
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15578
hardcode_libdir_separator_F77=:
15579
hardcode_shlibpath_var_F77=no
15583
if test -f /usr/libexec/ld.so; then
15584
hardcode_direct_F77=yes
15585
hardcode_shlibpath_var_F77=no
15586
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15587
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15588
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15589
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15590
export_dynamic_flag_spec_F77='${wl}-E'
15593
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15594
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15595
hardcode_libdir_flag_spec_F77='-R$libdir'
15598
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15599
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15609
hardcode_libdir_flag_spec_F77='-L$libdir'
15610
hardcode_minus_L_F77=yes
15611
allow_undefined_flag_F77=unsupported
15612
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'
15613
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15617
if test "$GCC" = yes; then
15618
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15619
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'
15621
allow_undefined_flag_F77=' -expect_unresolved \*'
15622
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'
15624
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15625
hardcode_libdir_separator_F77=:
15628
osf4* | osf5*) # as osf3* with the addition of -msym flag
15629
if test "$GCC" = yes; then
15630
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15631
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'
15632
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15634
allow_undefined_flag_F77=' -expect_unresolved \*'
15635
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'
15636
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~
15637
$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'
15639
# Both c and cxx compiler support -rpath directly
15640
hardcode_libdir_flag_spec_F77='-rpath $libdir'
15642
hardcode_libdir_separator_F77=:
15646
no_undefined_flag_F77=' -z text'
15647
if test "$GCC" = yes; then
15649
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15650
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15651
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15654
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15655
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15656
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15658
hardcode_libdir_flag_spec_F77='-R$libdir'
15659
hardcode_shlibpath_var_F77=no
15661
solaris2.[0-5] | solaris2.[0-5].*) ;;
15663
# The compiler driver will combine and reorder linker options,
15664
# but understands `-z linker_flag'. GCC discards it without `$wl',
15665
# but is careful enough not to reorder.
15666
# Supported since Solaris 2.6 (maybe 2.5.1?)
15667
if test "$GCC" = yes; then
15668
whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15670
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15674
link_all_deplibs_F77=yes
15678
if test "x$host_vendor" = xsequent; then
15679
# Use $CC to link under sequent, because it throws in some extra .o
15680
# files that make .init and .fini sections work.
15681
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15683
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15685
hardcode_libdir_flag_spec_F77='-L$libdir'
15686
hardcode_direct_F77=yes
15687
hardcode_minus_L_F77=yes
15688
hardcode_shlibpath_var_F77=no
15692
case $host_vendor in
15694
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15695
hardcode_direct_F77=yes # is this really true???
15698
## LD is ld it makes a PLAMLIB
15699
## CC just makes a GrossModule.
15700
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15701
reload_cmds_F77='$CC -r -o $output$reload_objs'
15702
hardcode_direct_F77=no
15705
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15706
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15709
runpath_var='LD_RUN_PATH'
15710
hardcode_shlibpath_var_F77=no
15714
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15715
hardcode_shlibpath_var_F77=no
15716
export_dynamic_flag_spec_F77='-Bexport'
15720
if test -d /usr/nec; then
15721
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15722
hardcode_shlibpath_var_F77=no
15723
runpath_var=LD_RUN_PATH
15724
hardcode_runpath_var=yes
15729
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15730
no_undefined_flag_F77='${wl}-z,text'
15731
archive_cmds_need_lc_F77=no
15732
hardcode_shlibpath_var_F77=no
15733
runpath_var='LD_RUN_PATH'
15735
if test "$GCC" = yes; then
15736
archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15737
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15739
archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15740
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15744
sysv5* | sco3.2v5* | sco5v6*)
15745
# Note: We can NOT use -z defs as we might desire, because we do not
15746
# link with -lc, and that would cause any symbols used from libc to
15747
# always be unresolved, which means just about no library would
15748
# ever link correctly. If we're not using GNU ld we use -z text
15749
# though, which does catch some bad symbols but isn't as heavy-handed
15751
no_undefined_flag_F77='${wl}-z,text'
15752
allow_undefined_flag_F77='${wl}-z,nodefs'
15753
archive_cmds_need_lc_F77=no
15754
hardcode_shlibpath_var_F77=no
15755
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15756
hardcode_libdir_separator_F77=':'
15757
link_all_deplibs_F77=yes
15758
export_dynamic_flag_spec_F77='${wl}-Bexport'
15759
runpath_var='LD_RUN_PATH'
15761
if test "$GCC" = yes; then
15762
archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15763
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15765
archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15766
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15771
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15772
hardcode_libdir_flag_spec_F77='-L$libdir'
15773
hardcode_shlibpath_var_F77=no
15782
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15783
$as_echo "$ld_shlibs_F77" >&6; }
15784
test "$ld_shlibs_F77" = no && can_build_shared=no
15787
# Do we need to explicitly link libc?
15789
case "x$archive_cmds_need_lc_F77" in
15791
# Assume -lc should be added
15792
archive_cmds_need_lc_F77=yes
15794
if test "$enable_shared" = yes && test "$GCC" = yes; then
15795
case $archive_cmds_F77 in
15797
# FIXME: we may have to deal with multi-command sequences.
15800
# Test whether the compiler implicitly links with -lc since on some
15801
# systems, -lgcc has to come before -lc. If gcc already passes -lc
15802
# to ld, don't add -lc before -lgcc.
15803
{ $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15804
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15806
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15808
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15809
(eval $ac_compile) 2>&5
15811
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15812
(exit $ac_status); } 2>conftest.err; then
15815
libobjs=conftest.$ac_objext
15817
wl=$lt_prog_compiler_wl_F77
15818
pic_flag=$lt_prog_compiler_pic_F77
15824
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15825
allow_undefined_flag_F77=
15826
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15827
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15829
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15830
(exit $ac_status); }
15832
archive_cmds_need_lc_F77=no
15834
archive_cmds_need_lc_F77=yes
15836
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15838
cat conftest.err 1>&5
15841
{ $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15842
$as_echo "$archive_cmds_need_lc_F77" >&6; }
15849
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15850
$as_echo_n "checking dynamic linker characteristics... " >&6; }
15851
library_names_spec=
15852
libname_spec='lib$name'
15856
postuninstall_cmds=
15860
shlibpath_overrides_runpath=unknown
15862
dynamic_linker="$host_os ld.so"
15863
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15865
need_lib_prefix=unknown
15866
hardcode_into_libs=no
15868
# when you set need_version to no, make sure it does not cause -set_version
15869
# flags to be left without arguments
15870
need_version=unknown
15875
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15876
shlibpath_var=LIBPATH
15878
# AIX 3 has no versioning support, so we append a major version to the name.
15879
soname_spec='${libname}${release}${shared_ext}$major'
15886
hardcode_into_libs=yes
15887
if test "$host_cpu" = ia64; then
15888
# AIX 5 supports IA64
15889
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15890
shlibpath_var=LD_LIBRARY_PATH
15892
# With GCC up to 2.95.x, collect2 would create an import file
15893
# for dependence libraries. The import file would start with
15894
# the line `#! .'. This would cause the generated library to
15895
# depend on `.', always an invalid library. This was fixed in
15896
# development snapshots of GCC prior to 3.0.
15898
aix4 | aix4.[01] | aix4.[01].*)
15899
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15901
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15904
can_build_shared=no
15908
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15909
# soname into executable. Probably we can add versioning support to
15910
# collect2, so additional links can be useful in future.
15911
if test "$aix_use_runtimelinking" = yes; then
15912
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
15913
# instead of lib<name>.a to let people know that these are not
15914
# typical AIX shared libraries.
15915
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15917
# We preserve .a as extension for shared libraries through AIX4.2
15918
# and later when we are not doing run time linking.
15919
library_names_spec='${libname}${release}.a $libname.a'
15920
soname_spec='${libname}${release}${shared_ext}$major'
15922
shlibpath_var=LIBPATH
15927
library_names_spec='$libname.ixlibrary $libname.a'
15928
# Create ${libname}_ixlibrary.a entries in /sys/libs.
15929
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'
15933
library_names_spec='${libname}${shared_ext}'
15934
dynamic_linker="$host_os ld.so"
15935
shlibpath_var=LIBRARY_PATH
15941
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15942
soname_spec='${libname}${release}${shared_ext}$major'
15943
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15944
shlibpath_var=LD_LIBRARY_PATH
15945
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15946
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15947
# the default ld.so.conf also contains /usr/contrib/lib and
15948
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15949
# libtool to hard-code these into programs
15952
cygwin* | mingw* | pw32*)
15953
version_type=windows
15958
case $GCC,$host_os in
15959
yes,cygwin* | yes,mingw* | yes,pw32*)
15960
library_names_spec='$libname.dll.a'
15961
# DLL is installed to $(libdir)/../bin by postinstall_cmds
15962
postinstall_cmds='base_file=`basename \${file}`~
15963
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15964
dldir=$destdir/`dirname \$dlpath`~
15965
test -d \$dldir || mkdir -p \$dldir~
15966
$install_prog $dir/$dlname \$dldir/$dlname~
15967
chmod a+x \$dldir/$dlname'
15968
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15969
dlpath=$dir/\$dldll~
15971
shlibpath_overrides_runpath=yes
15975
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
15976
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15977
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15980
# MinGW DLLs use traditional 'lib' prefix
15981
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15982
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15983
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15984
# It is most probably a Windows format PATH printed by
15985
# mingw gcc, but we are running on Cygwin. Gcc prints its search
15986
# path with ; separators, and with drive letters. We can handle the
15987
# drive letters (cygwin fileutils understands them), so leave them,
15988
# especially as we might pass files found there to a mingw objdump,
15989
# which wouldn't understand a cygwinified path. Ahh.
15990
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15992
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15996
# pw32 DLLs use 'pw' prefix rather than 'lib'
15997
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16003
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16006
dynamic_linker='Win32 ld.exe'
16007
# FIXME: first we should search . and the directory the executable is in
16011
darwin* | rhapsody*)
16012
dynamic_linker="$host_os dyld"
16013
version_type=darwin
16016
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16017
soname_spec='${libname}${release}${major}$shared_ext'
16018
shlibpath_overrides_runpath=yes
16019
shlibpath_var=DYLD_LIBRARY_PATH
16020
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16022
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16029
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16030
soname_spec='${libname}${release}${shared_ext}$major'
16031
shlibpath_var=LD_LIBRARY_PATH
16038
freebsd* | dragonfly*)
16039
# DragonFly does not have aout. When/if they implement a new
16040
# versioning mechanism, adjust this.
16041
if test -x /usr/bin/objformat; then
16042
objformat=`/usr/bin/objformat`
16045
freebsd[123]*) objformat=aout ;;
16046
*) objformat=elf ;;
16049
version_type=freebsd-$objformat
16050
case $version_type in
16052
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16057
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16061
shlibpath_var=LD_LIBRARY_PATH
16064
shlibpath_overrides_runpath=yes
16066
freebsd3.[01]* | freebsdelf3.[01]*)
16067
shlibpath_overrides_runpath=yes
16068
hardcode_into_libs=yes
16070
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16071
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16072
shlibpath_overrides_runpath=no
16073
hardcode_into_libs=yes
16075
*) # from 4.6 on, and DragonFly
16076
shlibpath_overrides_runpath=yes
16077
hardcode_into_libs=yes
16086
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16087
soname_spec='${libname}${release}${shared_ext}$major'
16088
shlibpath_var=LD_LIBRARY_PATH
16089
hardcode_into_libs=yes
16092
hpux9* | hpux10* | hpux11*)
16093
# Give a soname corresponding to the major version so that dld.sl refuses to
16094
# link against other versions.
16101
hardcode_into_libs=yes
16102
dynamic_linker="$host_os dld.so"
16103
shlibpath_var=LD_LIBRARY_PATH
16104
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16105
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16106
soname_spec='${libname}${release}${shared_ext}$major'
16107
if test "X$HPUX_IA64_MODE" = X32; then
16108
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16110
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16112
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16116
hardcode_into_libs=yes
16117
dynamic_linker="$host_os dld.sl"
16118
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16119
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16120
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16121
soname_spec='${libname}${release}${shared_ext}$major'
16122
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16123
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16127
dynamic_linker="$host_os dld.sl"
16128
shlibpath_var=SHLIB_PATH
16129
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16130
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16131
soname_spec='${libname}${release}${shared_ext}$major'
16134
# HP-UX runs *really* slowly unless shared libraries are mode 555.
16135
postinstall_cmds='chmod 555 $lib'
16142
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16143
soname_spec='${libname}${release}${shared_ext}$major'
16144
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16145
shlibpath_var=LD_LIBRARY_PATH
16146
shlibpath_overrides_runpath=no
16147
hardcode_into_libs=yes
16150
irix5* | irix6* | nonstopux*)
16152
nonstopux*) version_type=nonstopux ;;
16154
if test "$lt_cv_prog_gnu_ld" = yes; then
16162
soname_spec='${libname}${release}${shared_ext}$major'
16163
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16165
irix5* | nonstopux*)
16166
libsuff= shlibsuff=
16169
case $LD in # libtool.m4 will add one of these switches to LD
16170
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16171
libsuff= shlibsuff= libmagic=32-bit;;
16172
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16173
libsuff=32 shlibsuff=N32 libmagic=N32;;
16174
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16175
libsuff=64 shlibsuff=64 libmagic=64-bit;;
16176
*) libsuff= shlibsuff= libmagic=never-match;;
16180
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16181
shlibpath_overrides_runpath=no
16182
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16183
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16184
hardcode_into_libs=yes
16187
# No shared lib support for Linux oldld, aout, or coff.
16188
linux*oldld* | linux*aout* | linux*coff*)
16192
# This must be Linux ELF.
16193
linux* | k*bsd*-gnu)
16197
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16198
soname_spec='${libname}${release}${shared_ext}$major'
16199
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16200
shlibpath_var=LD_LIBRARY_PATH
16201
shlibpath_overrides_runpath=no
16202
# This implies no fast_install, which is unacceptable.
16203
# Some rework will be needed to allow for fast_install
16204
# before this can be enabled.
16205
hardcode_into_libs=yes
16206
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16207
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16209
# Append ld.so.conf contents to the search path
16210
if test -f /etc/ld.so.conf; then
16211
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' ' '`
16212
sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16215
# We used to test for /lib/ld.so.1 and disable shared libraries on
16216
# powerpc, because MkLinux only supported shared libraries with the
16217
# GNU dynamic linker. Since this was broken with cross compilers,
16218
# most powerpc-linux boxes support dynamic linking these days and
16219
# people can always --disable-shared, the test was removed, and we
16220
# assume the GNU/Linux dynamic linker is in use.
16221
dynamic_linker='GNU/Linux ld.so'
16228
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16229
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16230
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16231
dynamic_linker='NetBSD (a.out) ld.so'
16233
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16234
soname_spec='${libname}${release}${shared_ext}$major'
16235
dynamic_linker='NetBSD ld.elf_so'
16237
shlibpath_var=LD_LIBRARY_PATH
16238
shlibpath_overrides_runpath=yes
16239
hardcode_into_libs=yes
16244
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16245
shlibpath_var=LD_LIBRARY_PATH
16246
shlibpath_overrides_runpath=yes
16253
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16254
soname_spec='${libname}${release}${shared_ext}$major'
16255
shlibpath_var=LD_LIBRARY_PATH
16256
shlibpath_overrides_runpath=yes
16261
sys_lib_dlsearch_path_spec="/usr/lib"
16263
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16265
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16266
*) need_version=no ;;
16268
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16269
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16270
shlibpath_var=LD_LIBRARY_PATH
16271
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16273
openbsd2.[89] | openbsd2.[89].*)
16274
shlibpath_overrides_runpath=no
16277
shlibpath_overrides_runpath=yes
16281
shlibpath_overrides_runpath=yes
16286
libname_spec='$name'
16289
library_names_spec='$libname${shared_ext} $libname.a'
16290
dynamic_linker='OS/2 ld.exe'
16291
shlibpath_var=LIBPATH
16294
osf3* | osf4* | osf5*)
16298
soname_spec='${libname}${release}${shared_ext}$major'
16299
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16300
shlibpath_var=LD_LIBRARY_PATH
16301
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16302
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16313
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16314
soname_spec='${libname}${release}${shared_ext}$major'
16315
shlibpath_var=LD_LIBRARY_PATH
16316
shlibpath_overrides_runpath=yes
16317
hardcode_into_libs=yes
16318
# ldd complains unless libraries are executable
16319
postinstall_cmds='chmod +x $lib'
16324
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16325
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16326
shlibpath_var=LD_LIBRARY_PATH
16327
shlibpath_overrides_runpath=yes
16328
if test "$with_gnu_ld" = yes; then
16336
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16337
soname_spec='${libname}${release}${shared_ext}$major'
16338
shlibpath_var=LD_LIBRARY_PATH
16339
case $host_vendor in
16341
shlibpath_overrides_runpath=no
16343
export_dynamic_flag_spec='${wl}-Blargedynsym'
16344
runpath_var=LD_RUN_PATH
16352
shlibpath_overrides_runpath=no
16353
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16359
if test -d /usr/nec ;then
16361
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16362
soname_spec='$libname${shared_ext}.$major'
16363
shlibpath_var=LD_LIBRARY_PATH
16367
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16368
version_type=freebsd-elf
16371
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16372
soname_spec='${libname}${release}${shared_ext}$major'
16373
shlibpath_var=LD_LIBRARY_PATH
16374
hardcode_into_libs=yes
16375
if test "$with_gnu_ld" = yes; then
16376
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16377
shlibpath_overrides_runpath=no
16379
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16380
shlibpath_overrides_runpath=yes
16383
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16387
sys_lib_dlsearch_path_spec='/usr/lib'
16392
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16393
soname_spec='${libname}${release}${shared_ext}$major'
16394
shlibpath_var=LD_LIBRARY_PATH
16401
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16402
$as_echo "$dynamic_linker" >&6; }
16403
test "$dynamic_linker" = no && can_build_shared=no
16405
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16406
$as_echo_n "(cached) " >&6
16408
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16411
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16412
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16413
$as_echo_n "(cached) " >&6
16415
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16418
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16420
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16421
if test "$GCC" = yes; then
16422
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16425
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16426
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16427
hardcode_action_F77=
16428
if test -n "$hardcode_libdir_flag_spec_F77" || \
16429
test -n "$runpath_var_F77" || \
16430
test "X$hardcode_automatic_F77" = "Xyes" ; then
16432
# We can hardcode non-existant directories.
16433
if test "$hardcode_direct_F77" != no &&
16434
# If the only mechanism to avoid hardcoding is shlibpath_var, we
16435
# have to relink, otherwise we might link with an installed library
16436
# when we should be linking with a yet-to-be-installed one
16437
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16438
test "$hardcode_minus_L_F77" != no; then
16439
# Linking always hardcodes the temporary library directory.
16440
hardcode_action_F77=relink
16442
# We can link without hardcoding, and we can hardcode nonexisting dirs.
16443
hardcode_action_F77=immediate
16446
# We cannot hardcode anything, or else we can only hardcode existing
16448
hardcode_action_F77=unsupported
16450
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16451
$as_echo "$hardcode_action_F77" >&6; }
16453
if test "$hardcode_action_F77" = relink; then
16454
# Fast installation is not supported
16455
enable_fast_install=no
16456
elif test "$shlibpath_overrides_runpath" = yes ||
16457
test "$enable_shared" = no; then
16458
# Fast installation is not necessary
16459
enable_fast_install=needless
16463
# The else clause should only fire when bootstrapping the
16464
# libtool distribution, otherwise you forgot to ship ltmain.sh
16465
# with your package, and you will get complaints that there are
16466
# no rules to generate ltmain.sh.
16467
if test -f "$ltmain"; then
16468
# See if we are running on zsh, and set the options which allow our commands through
16469
# without removal of \ escapes.
16470
if test -n "${ZSH_VERSION+set}" ; then
16471
setopt NO_GLOB_SUBST
16473
# Now quote all the things that may contain metacharacters while being
16474
# careful not to overquote the AC_SUBSTed values. We take copies of the
16475
# variables and quote the copies for generation of the libtool script.
16476
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16478
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16479
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16480
deplibs_check_method reload_flag reload_cmds need_locks \
16481
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16482
lt_cv_sys_global_symbol_to_c_name_address \
16483
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16484
old_postinstall_cmds old_postuninstall_cmds \
16488
lt_prog_compiler_wl_F77 \
16489
lt_prog_compiler_pic_F77 \
16490
lt_prog_compiler_static_F77 \
16491
lt_prog_compiler_no_builtin_flag_F77 \
16492
export_dynamic_flag_spec_F77 \
16493
thread_safe_flag_spec_F77 \
16494
whole_archive_flag_spec_F77 \
16495
enable_shared_with_static_runtimes_F77 \
16496
old_archive_cmds_F77 \
16497
old_archive_from_new_cmds_F77 \
16498
predep_objects_F77 \
16499
postdep_objects_F77 \
16502
compiler_lib_search_path_F77 \
16503
compiler_lib_search_dirs_F77 \
16505
archive_expsym_cmds_F77 \
16506
postinstall_cmds_F77 \
16507
postuninstall_cmds_F77 \
16508
old_archive_from_expsyms_cmds_F77 \
16509
allow_undefined_flag_F77 \
16510
no_undefined_flag_F77 \
16511
export_symbols_cmds_F77 \
16512
hardcode_libdir_flag_spec_F77 \
16513
hardcode_libdir_flag_spec_ld_F77 \
16514
hardcode_libdir_separator_F77 \
16515
hardcode_automatic_F77 \
16517
module_expsym_cmds_F77 \
16518
lt_cv_prog_compiler_c_o_F77 \
16519
fix_srcfile_path_F77 \
16520
exclude_expsyms_F77 \
16521
include_expsyms_F77; do
16524
old_archive_cmds_F77 | \
16525
old_archive_from_new_cmds_F77 | \
16526
archive_cmds_F77 | \
16527
archive_expsym_cmds_F77 | \
16528
module_cmds_F77 | \
16529
module_expsym_cmds_F77 | \
16530
old_archive_from_expsyms_cmds_F77 | \
16531
export_symbols_cmds_F77 | \
16532
extract_expsyms_cmds | reload_cmds | finish_cmds | \
16533
postinstall_cmds | postuninstall_cmds | \
16534
old_postinstall_cmds | old_postuninstall_cmds | \
16535
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16536
# Double-quote double-evaled strings.
16537
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16540
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16546
*'\$0 --fallback-echo"')
16547
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16553
cat <<__EOF__ >> "$cfgfile"
16554
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16556
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16558
# Shell to use when invoking shell scripts.
16561
# Whether or not to build shared libraries.
16562
build_libtool_libs=$enable_shared
16564
# Whether or not to build static libraries.
16565
build_old_libs=$enable_static
16567
# Whether or not to add -lc for building shared libraries.
16568
build_libtool_need_lc=$archive_cmds_need_lc_F77
16570
# Whether or not to disallow shared libs when runtime libs are static
16571
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16573
# Whether or not to optimize for fast installation.
16574
fast_install=$enable_fast_install
16577
host_alias=$host_alias
16581
# The build system.
16582
build_alias=$build_alias
16586
# An echo program that does not interpret backslashes.
16591
AR_FLAGS=$lt_AR_FLAGS
16596
# LTCC compiler flags.
16597
LTCFLAGS=$lt_LTCFLAGS
16599
# A language-specific compiler.
16600
CC=$lt_compiler_F77
16602
# Is the compiler the GNU C compiler?
16608
# The linker used to build libraries.
16611
# Whether we need hard or soft links.
16614
# A BSD-compatible nm program.
16617
# A symbol stripping program
16620
# Used to examine libraries when file_magic_cmd begins "file"
16621
MAGIC_CMD=$MAGIC_CMD
16623
# Used on cygwin: DLL creation program.
16626
# Used on cygwin: object dumper.
16629
# Used on cygwin: assembler.
16632
# The name of the directory that contains temporary libtool files.
16635
# How to create reloadable object files.
16636
reload_flag=$lt_reload_flag
16637
reload_cmds=$lt_reload_cmds
16639
# How to pass a linker flag through the compiler.
16640
wl=$lt_lt_prog_compiler_wl_F77
16642
# Object file suffix (normally "o").
16643
objext="$ac_objext"
16645
# Old archive suffix (normally "a").
16648
# Shared library suffix (normally ".so").
16649
shrext_cmds='$shrext_cmds'
16651
# Executable file suffix (normally "").
16654
# Additional compiler flags for building library objects.
16655
pic_flag=$lt_lt_prog_compiler_pic_F77
16658
# What is the maximum length of a command?
16659
max_cmd_len=$lt_cv_sys_max_cmd_len
16661
# Does compiler simultaneously support -c and -o options?
16662
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16664
# Must we lock files when doing compilation?
16665
need_locks=$lt_need_locks
16667
# Do we need the lib prefix for modules?
16668
need_lib_prefix=$need_lib_prefix
16670
# Do we need a version for libraries?
16671
need_version=$need_version
16673
# Whether dlopen is supported.
16674
dlopen_support=$enable_dlopen
16676
# Whether dlopen of programs is supported.
16677
dlopen_self=$enable_dlopen_self
16679
# Whether dlopen of statically linked programs is supported.
16680
dlopen_self_static=$enable_dlopen_self_static
16682
# Compiler flag to prevent dynamic linking.
16683
link_static_flag=$lt_lt_prog_compiler_static_F77
16685
# Compiler flag to turn off builtin functions.
16686
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16688
# Compiler flag to allow reflexive dlopens.
16689
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16691
# Compiler flag to generate shared objects directly from archives.
16692
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16694
# Compiler flag to generate thread-safe objects.
16695
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16697
# Library versioning type.
16698
version_type=$version_type
16700
# Format of library name prefix.
16701
libname_spec=$lt_libname_spec
16703
# List of archive names. First name is the real one, the rest are links.
16704
# The last name is the one that the linker finds with -lNAME.
16705
library_names_spec=$lt_library_names_spec
16707
# The coded name of the library, if different from the real name.
16708
soname_spec=$lt_soname_spec
16710
# Commands used to build and install an old-style archive.
16712
old_archive_cmds=$lt_old_archive_cmds_F77
16713
old_postinstall_cmds=$lt_old_postinstall_cmds
16714
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16716
# Create an old-style archive from a shared archive.
16717
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16719
# Create a temporary old-style archive to link instead of a shared archive.
16720
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16722
# Commands used to build and install a shared archive.
16723
archive_cmds=$lt_archive_cmds_F77
16724
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16725
postinstall_cmds=$lt_postinstall_cmds
16726
postuninstall_cmds=$lt_postuninstall_cmds
16728
# Commands used to build a loadable module (assumed same as above if empty)
16729
module_cmds=$lt_module_cmds_F77
16730
module_expsym_cmds=$lt_module_expsym_cmds_F77
16732
# Commands to strip libraries.
16733
old_striplib=$lt_old_striplib
16734
striplib=$lt_striplib
16736
# Dependencies to place before the objects being linked to create a
16738
predep_objects=$lt_predep_objects_F77
16740
# Dependencies to place after the objects being linked to create a
16742
postdep_objects=$lt_postdep_objects_F77
16744
# Dependencies to place before the objects being linked to create a
16746
predeps=$lt_predeps_F77
16748
# Dependencies to place after the objects being linked to create a
16750
postdeps=$lt_postdeps_F77
16752
# The directories searched by this compiler when creating a shared
16754
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16756
# The library search path used internally by the compiler when linking
16757
# a shared library.
16758
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16760
# Method to check whether dependent libraries are shared objects.
16761
deplibs_check_method=$lt_deplibs_check_method
16763
# Command to use when deplibs_check_method == file_magic.
16764
file_magic_cmd=$lt_file_magic_cmd
16766
# Flag that allows shared libraries with undefined symbols to be built.
16767
allow_undefined_flag=$lt_allow_undefined_flag_F77
16769
# Flag that forces no undefined symbols.
16770
no_undefined_flag=$lt_no_undefined_flag_F77
16772
# Commands used to finish a libtool library installation in a directory.
16773
finish_cmds=$lt_finish_cmds
16775
# Same as above, but a single script fragment to be evaled but not shown.
16776
finish_eval=$lt_finish_eval
16778
# Take the output of nm and produce a listing of raw symbols and C names.
16779
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16781
# Transform the output of nm in a proper C declaration
16782
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16784
# Transform the output of nm in a C name address pair
16785
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16787
# This is the shared library runtime path variable.
16788
runpath_var=$runpath_var
16790
# This is the shared library path variable.
16791
shlibpath_var=$shlibpath_var
16793
# Is shlibpath searched before the hard-coded library search path?
16794
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16796
# How to hardcode a shared library path into an executable.
16797
hardcode_action=$hardcode_action_F77
16799
# Whether we should hardcode library paths into libraries.
16800
hardcode_into_libs=$hardcode_into_libs
16802
# Flag to hardcode \$libdir into a binary during linking.
16803
# This must work even if \$libdir does not exist.
16804
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16806
# If ld is used when linking, flag to hardcode \$libdir into
16807
# a binary during linking. This must work even if \$libdir does
16809
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16811
# Whether we need a single -rpath flag with a separated argument.
16812
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16814
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16815
# resulting binary.
16816
hardcode_direct=$hardcode_direct_F77
16818
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16819
# resulting binary.
16820
hardcode_minus_L=$hardcode_minus_L_F77
16822
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16823
# the resulting binary.
16824
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16826
# Set to yes if building a shared library automatically hardcodes DIR into the library
16827
# and all subsequent libraries and executables linked against it.
16828
hardcode_automatic=$hardcode_automatic_F77
16830
# Variables whose values should be saved in libtool wrapper scripts and
16831
# restored at relink time.
16832
variables_saved_for_relink="$variables_saved_for_relink"
16834
# Whether libtool must link a program against all its dependency libraries.
16835
link_all_deplibs=$link_all_deplibs_F77
16837
# Compile-time system search path for libraries
16838
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16840
# Run-time system search path for libraries
16841
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16843
# Fix the shell variable \$srcfile for the compiler.
16844
fix_srcfile_path=$lt_fix_srcfile_path
16846
# Set to yes if exported symbols are required.
16847
always_export_symbols=$always_export_symbols_F77
16849
# The commands to list exported symbols.
16850
export_symbols_cmds=$lt_export_symbols_cmds_F77
16852
# The commands to extract the exported symbol list from a shared archive.
16853
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16855
# Symbols that should not be listed in the preloaded symbols.
16856
exclude_expsyms=$lt_exclude_expsyms_F77
16858
# Symbols that must always be exported.
16859
include_expsyms=$lt_include_expsyms_F77
16861
# ### END LIBTOOL TAG CONFIG: $tagname
16867
# If there is no Makefile yet, we rely on a make rule to execute
16868
# `config.status --recheck' to rerun these tests and create the
16869
# libtool script then.
16870
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16871
if test -f "$ltmain_in"; then
16872
test -f Makefile && make "$ltmain"
16878
ac_cpp='$CPP $CPPFLAGS'
16879
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16880
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16881
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16891
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16894
# Source file extension for Java test sources.
16897
# Object file extension for compiled Java test sources.
16901
# Code to be used in simple compile tests
16902
lt_simple_compile_test_code="class foo {}"
16904
# Code to be used in simple link tests
16905
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16907
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16909
# If no C compiler was specified, use CC.
16912
# If no C compiler flags were specified, use CFLAGS.
16913
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16915
# Allow CC to be a program name with arguments.
16919
# save warnings/boilerplate of simple test code
16920
ac_outfile=conftest.$ac_objext
16921
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16922
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16923
_lt_compiler_boilerplate=`cat conftest.err`
16926
ac_outfile=conftest.$ac_objext
16927
echo "$lt_simple_link_test_code" >conftest.$ac_ext
16928
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16929
_lt_linker_boilerplate=`cat conftest.err`
16933
# Allow CC to be a program name with arguments.
16938
for cc_temp in $compiler""; do
16940
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16941
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16946
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16949
# GCJ did not exist at the time GCC didn't implicitly link libc in.
16950
archive_cmds_need_lc_GCJ=no
16952
old_archive_cmds_GCJ=$old_archive_cmds
16955
lt_prog_compiler_no_builtin_flag_GCJ=
16957
if test "$GCC" = yes; then
16958
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16961
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16962
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16963
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16964
$as_echo_n "(cached) " >&6
16966
lt_cv_prog_compiler_rtti_exceptions=no
16967
ac_outfile=conftest.$ac_objext
16968
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16969
lt_compiler_flag="-fno-rtti -fno-exceptions"
16970
# Insert the option either (1) after the last *FLAGS variable, or
16971
# (2) before a word containing "conftest.", or (3) at the end.
16972
# Note that $ac_compile itself does not contain backslashes and begins
16973
# with a dollar sign (not a hyphen), so the echo should work correctly.
16974
# The option is referenced via a variable to avoid confusing sed.
16975
lt_compile=`echo "$ac_compile" | $SED \
16976
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16977
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16978
-e 's:$: $lt_compiler_flag:'`
16979
(eval echo "\"\$as_me:16979: $lt_compile\"" >&5)
16980
(eval "$lt_compile" 2>conftest.err)
16982
cat conftest.err >&5
16983
echo "$as_me:16983: \$? = $ac_status" >&5
16984
if (exit $ac_status) && test -s "$ac_outfile"; then
16985
# The compiler can only warn and ignore the option if not recognized
16986
# So say no if there are warnings other than the usual output.
16987
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16988
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16989
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16990
lt_cv_prog_compiler_rtti_exceptions=yes
16996
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16997
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16999
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17000
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17007
lt_prog_compiler_wl_GCJ=
17008
lt_prog_compiler_pic_GCJ=
17009
lt_prog_compiler_static_GCJ=
17011
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17012
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17014
if test "$GCC" = yes; then
17015
lt_prog_compiler_wl_GCJ='-Wl,'
17016
lt_prog_compiler_static_GCJ='-static'
17020
# All AIX code is PIC.
17021
if test "$host_cpu" = ia64; then
17022
# AIX 5 now supports IA64 processor
17023
lt_prog_compiler_static_GCJ='-Bstatic'
17028
# FIXME: we need at least 68020 code to build shared libraries, but
17029
# adding the `-m68020' flag to GCC prevents building anything better,
17031
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17034
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17035
# PIC is the default for these OSes.
17038
mingw* | cygwin* | pw32* | os2*)
17039
# This hack is so that the source file can tell whether it is being
17040
# built for inclusion in a dll (and should export symbols for example).
17041
# Although the cygwin gcc ignores -fPIC, still need this for old-style
17042
# (--disable-auto-import) libraries
17046
darwin* | rhapsody*)
17047
# PIC is the default on this platform
17048
# Common symbols not allowed in MH_DYLIB files
17049
lt_prog_compiler_pic_GCJ='-fno-common'
17053
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
17054
# Instead, we relocate shared libraries at runtime.
17058
# Just because we use GCC doesn't mean we suddenly get shared libraries
17059
# on systems that don't support them.
17060
lt_prog_compiler_can_build_shared_GCJ=no
17065
if test -d /usr/nec; then
17066
lt_prog_compiler_pic_GCJ=-Kconform_pic
17071
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17072
# not for PA HP-UX.
17078
lt_prog_compiler_pic_GCJ='-fPIC'
17084
lt_prog_compiler_pic_GCJ='-fPIC'
17088
# PORTME Check for flag to pass linker flags through the system compiler.
17091
lt_prog_compiler_wl_GCJ='-Wl,'
17092
if test "$host_cpu" = ia64; then
17093
# AIX 5 now supports IA64 processor
17094
lt_prog_compiler_static_GCJ='-Bstatic'
17096
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17100
# PIC is the default on this platform
17101
# Common symbols not allowed in MH_DYLIB files
17102
case $cc_basename in
17104
lt_prog_compiler_pic_GCJ='-qnocommon'
17105
lt_prog_compiler_wl_GCJ='-Wl,'
17110
mingw* | cygwin* | pw32* | os2*)
17111
# This hack is so that the source file can tell whether it is being
17112
# built for inclusion in a dll (and should export symbols for example).
17116
hpux9* | hpux10* | hpux11*)
17117
lt_prog_compiler_wl_GCJ='-Wl,'
17118
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17119
# not for PA HP-UX.
17125
lt_prog_compiler_pic_GCJ='+Z'
17128
# Is there a better lt_prog_compiler_static that works with the bundled CC?
17129
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17132
irix5* | irix6* | nonstopux*)
17133
lt_prog_compiler_wl_GCJ='-Wl,'
17134
# PIC (with -KPIC) is the default.
17135
lt_prog_compiler_static_GCJ='-non_shared'
17139
lt_prog_compiler_pic_GCJ='-KPIC'
17140
lt_prog_compiler_static_GCJ='-Bstatic'
17143
linux* | k*bsd*-gnu)
17144
case $cc_basename in
17146
lt_prog_compiler_wl_GCJ='-Wl,'
17147
lt_prog_compiler_pic_GCJ='-KPIC'
17148
lt_prog_compiler_static_GCJ='-static'
17150
pgcc* | pgf77* | pgf90* | pgf95*)
17151
# Portland Group compilers (*not* the Pentium gcc compiler,
17152
# which looks to be a dead project)
17153
lt_prog_compiler_wl_GCJ='-Wl,'
17154
lt_prog_compiler_pic_GCJ='-fpic'
17155
lt_prog_compiler_static_GCJ='-Bstatic'
17158
lt_prog_compiler_wl_GCJ='-Wl,'
17159
# All Alpha code is PIC.
17160
lt_prog_compiler_static_GCJ='-non_shared'
17163
case `$CC -V 2>&1 | sed 5q` in
17166
lt_prog_compiler_pic_GCJ='-KPIC'
17167
lt_prog_compiler_static_GCJ='-Bstatic'
17168
lt_prog_compiler_wl_GCJ='-Wl,'
17171
# Sun Fortran 8.3 passes all unrecognized flags to the linker
17172
lt_prog_compiler_pic_GCJ='-KPIC'
17173
lt_prog_compiler_static_GCJ='-Bstatic'
17174
lt_prog_compiler_wl_GCJ=''
17181
osf3* | osf4* | osf5*)
17182
lt_prog_compiler_wl_GCJ='-Wl,'
17183
# All OSF/1 code is PIC.
17184
lt_prog_compiler_static_GCJ='-non_shared'
17188
lt_prog_compiler_static_GCJ='-non_shared'
17192
lt_prog_compiler_pic_GCJ='-KPIC'
17193
lt_prog_compiler_static_GCJ='-Bstatic'
17194
case $cc_basename in
17195
f77* | f90* | f95*)
17196
lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17198
lt_prog_compiler_wl_GCJ='-Wl,';;
17203
lt_prog_compiler_wl_GCJ='-Qoption ld '
17204
lt_prog_compiler_pic_GCJ='-PIC'
17205
lt_prog_compiler_static_GCJ='-Bstatic'
17208
sysv4 | sysv4.2uw2* | sysv4.3*)
17209
lt_prog_compiler_wl_GCJ='-Wl,'
17210
lt_prog_compiler_pic_GCJ='-KPIC'
17211
lt_prog_compiler_static_GCJ='-Bstatic'
17215
if test -d /usr/nec ;then
17216
lt_prog_compiler_pic_GCJ='-Kconform_pic'
17217
lt_prog_compiler_static_GCJ='-Bstatic'
17221
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17222
lt_prog_compiler_wl_GCJ='-Wl,'
17223
lt_prog_compiler_pic_GCJ='-KPIC'
17224
lt_prog_compiler_static_GCJ='-Bstatic'
17228
lt_prog_compiler_wl_GCJ='-Wl,'
17229
lt_prog_compiler_can_build_shared_GCJ=no
17233
lt_prog_compiler_pic_GCJ='-pic'
17234
lt_prog_compiler_static_GCJ='-Bstatic'
17238
lt_prog_compiler_can_build_shared_GCJ=no
17243
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17244
$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17247
# Check to make sure the PIC flag actually works.
17249
if test -n "$lt_prog_compiler_pic_GCJ"; then
17251
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17252
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17253
if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17254
$as_echo_n "(cached) " >&6
17256
lt_cv_prog_compiler_pic_works_GCJ=no
17257
ac_outfile=conftest.$ac_objext
17258
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17259
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17260
# Insert the option either (1) after the last *FLAGS variable, or
17261
# (2) before a word containing "conftest.", or (3) at the end.
17262
# Note that $ac_compile itself does not contain backslashes and begins
17263
# with a dollar sign (not a hyphen), so the echo should work correctly.
17264
# The option is referenced via a variable to avoid confusing sed.
17265
lt_compile=`echo "$ac_compile" | $SED \
17266
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17267
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17268
-e 's:$: $lt_compiler_flag:'`
17269
(eval echo "\"\$as_me:17269: $lt_compile\"" >&5)
17270
(eval "$lt_compile" 2>conftest.err)
17272
cat conftest.err >&5
17273
echo "$as_me:17273: \$? = $ac_status" >&5
17274
if (exit $ac_status) && test -s "$ac_outfile"; then
17275
# The compiler can only warn and ignore the option if not recognized
17276
# So say no if there are warnings other than the usual output.
17277
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17278
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17279
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17280
lt_cv_prog_compiler_pic_works_GCJ=yes
17286
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17287
$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17289
if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17290
case $lt_prog_compiler_pic_GCJ in
17292
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17295
lt_prog_compiler_pic_GCJ=
17296
lt_prog_compiler_can_build_shared_GCJ=no
17301
# For platforms which do not support PIC, -DPIC is meaningless:
17303
lt_prog_compiler_pic_GCJ=
17306
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17311
# Check to make sure the static flag actually works.
17313
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17314
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17315
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17316
if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17317
$as_echo_n "(cached) " >&6
17319
lt_cv_prog_compiler_static_works_GCJ=no
17320
save_LDFLAGS="$LDFLAGS"
17321
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17322
echo "$lt_simple_link_test_code" > conftest.$ac_ext
17323
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17324
# The linker can only warn and ignore the option if not recognized
17325
# So say no if there are warnings
17326
if test -s conftest.err; then
17327
# Append any errors to the config.log.
17328
cat conftest.err 1>&5
17329
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17330
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17331
if diff conftest.exp conftest.er2 >/dev/null; then
17332
lt_cv_prog_compiler_static_works_GCJ=yes
17335
lt_cv_prog_compiler_static_works_GCJ=yes
17339
LDFLAGS="$save_LDFLAGS"
17342
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17343
$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17345
if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17348
lt_prog_compiler_static_GCJ=
17352
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17353
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17354
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17355
$as_echo_n "(cached) " >&6
17357
lt_cv_prog_compiler_c_o_GCJ=no
17358
$rm -r conftest 2>/dev/null
17362
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17364
lt_compiler_flag="-o out/conftest2.$ac_objext"
17365
# Insert the option either (1) after the last *FLAGS variable, or
17366
# (2) before a word containing "conftest.", or (3) at the end.
17367
# Note that $ac_compile itself does not contain backslashes and begins
17368
# with a dollar sign (not a hyphen), so the echo should work correctly.
17369
lt_compile=`echo "$ac_compile" | $SED \
17370
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17371
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17372
-e 's:$: $lt_compiler_flag:'`
17373
(eval echo "\"\$as_me:17373: $lt_compile\"" >&5)
17374
(eval "$lt_compile" 2>out/conftest.err)
17376
cat out/conftest.err >&5
17377
echo "$as_me:17377: \$? = $ac_status" >&5
17378
if (exit $ac_status) && test -s out/conftest2.$ac_objext
17380
# The compiler can only warn and ignore the option if not recognized
17381
# So say no if there are warnings
17382
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17383
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17384
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17385
lt_cv_prog_compiler_c_o_GCJ=yes
17390
# SGI C++ compiler will create directory out/ii_files/ for
17391
# template instantiation
17392
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17393
$rm out/* && rmdir out
17399
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17400
$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17403
hard_links="nottested"
17404
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17405
# do not overwrite the value of need_locks provided by the user
17406
{ $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17407
$as_echo_n "checking if we can lock with hard links... " >&6; }
17410
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17412
ln conftest.a conftest.b 2>&5 || hard_links=no
17413
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17414
{ $as_echo "$as_me:$LINENO: result: $hard_links" >&5
17415
$as_echo "$hard_links" >&6; }
17416
if test "$hard_links" = no; then
17417
{ $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17418
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17425
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17426
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17429
allow_undefined_flag_GCJ=
17430
enable_shared_with_static_runtimes_GCJ=no
17432
archive_expsym_cmds_GCJ=
17433
old_archive_From_new_cmds_GCJ=
17434
old_archive_from_expsyms_cmds_GCJ=
17435
export_dynamic_flag_spec_GCJ=
17436
whole_archive_flag_spec_GCJ=
17437
thread_safe_flag_spec_GCJ=
17438
hardcode_libdir_flag_spec_GCJ=
17439
hardcode_libdir_flag_spec_ld_GCJ=
17440
hardcode_libdir_separator_GCJ=
17441
hardcode_direct_GCJ=no
17442
hardcode_minus_L_GCJ=no
17443
hardcode_shlibpath_var_GCJ=unsupported
17444
link_all_deplibs_GCJ=unknown
17445
hardcode_automatic_GCJ=no
17447
module_expsym_cmds_GCJ=
17448
always_export_symbols_GCJ=no
17449
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17450
# include_expsyms should be a list of space-separated symbols to be *always*
17451
# included in the symbol list
17452
include_expsyms_GCJ=
17453
# exclude_expsyms can be an extended regexp of symbols to exclude
17454
# it will be wrapped by ` (' and `)$', so one must not match beginning or
17455
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17456
# as well as any symbol that contains `d'.
17457
exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17458
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17459
# platforms (ab)use it in PIC code, but their linkers get confused if
17460
# the symbol is explicitly referenced. Since portable code cannot
17461
# rely on this symbol name, it's probably fine to never include it in
17462
# preloaded symbol tables.
17463
# Exclude shared library initialization/finalization symbols.
17464
extract_expsyms_cmds=
17465
# Just being paranoid about ensuring that cc_basename is set.
17466
for cc_temp in $compiler""; do
17468
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17469
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17474
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17477
cygwin* | mingw* | pw32*)
17478
# FIXME: the MSVC++ port hasn't been tested in a loooong time
17479
# When not using gcc, we currently assume that we are using
17480
# Microsoft Visual C++.
17481
if test "$GCC" != yes; then
17486
# we just hope/assume this is gcc and not c89 (= MSVC++)
17495
if test "$with_gnu_ld" = yes; then
17496
# If archive_cmds runs LD, not CC, wlarc should be empty
17499
# Set some defaults for GNU ld with shared library support. These
17500
# are reset later if shared libraries are not supported. Putting them
17501
# here allows them to be overridden if necessary.
17502
runpath_var=LD_RUN_PATH
17503
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17504
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17505
# ancient GNU ld didn't support --whole-archive et. al.
17506
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17507
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17509
whole_archive_flag_spec_GCJ=
17511
supports_anon_versioning=no
17512
case `$LD -v 2>/dev/null` in
17513
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17514
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17515
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17516
*\ 2.11.*) ;; # other 2.11 versions
17517
*) supports_anon_versioning=yes ;;
17520
# See if GNU ld supports shared libraries.
17523
# On AIX/PPC, the GNU linker is very broken
17524
if test "$host_cpu" != ia64; then
17528
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17529
*** to be unable to reliably create shared libraries on AIX.
17530
*** Therefore, libtool is disabling shared libraries support. If you
17531
*** really care for shared libraries, you may want to modify your PATH
17532
*** so that a non-GNU linker is found, and then restart.
17539
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)'
17540
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17541
hardcode_minus_L_GCJ=yes
17543
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17544
# that the semantics of dynamic libraries on AmigaOS, at least up
17545
# to version 4, is to share data among multiple programs linked
17546
# with the same dynamic library. Since this doesn't match the
17547
# behavior of shared libraries on other platforms, we can't use
17553
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17554
allow_undefined_flag_GCJ=unsupported
17555
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17556
# support --undefined. This deserves some investigation. FIXME
17557
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17563
cygwin* | mingw* | pw32*)
17564
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17565
# as there is no search path for DLLs.
17566
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17567
allow_undefined_flag_GCJ=unsupported
17568
always_export_symbols_GCJ=no
17569
enable_shared_with_static_runtimes_GCJ=yes
17570
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17572
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17573
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17574
# If the export-symbols file already is a .def file (1st line
17575
# is EXPORTS), use it as is; otherwise, prepend...
17576
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17577
cp $export_symbols $output_objdir/$soname.def;
17579
echo EXPORTS > $output_objdir/$soname.def;
17580
cat $export_symbols >> $output_objdir/$soname.def;
17582
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17589
hardcode_direct_GCJ=no
17590
hardcode_shlibpath_var_GCJ=no
17591
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17592
export_dynamic_flag_spec_GCJ='${wl}-E'
17593
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17594
# Instead, shared libraries are loaded at an image base (0x10000000 by
17595
# default) and relocated if they conflict, which is a slow very memory
17596
# consuming and fragmenting process. To avoid this, we pick a random,
17597
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17598
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
17599
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'
17600
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'
17603
gnu* | linux* | k*bsd*-gnu)
17604
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17606
case $cc_basename,$host_cpu in
17607
pgcc*) # Portland Group C compiler
17608
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'
17609
tmp_addflag=' $pic_flag'
17611
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17612
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'
17613
tmp_addflag=' $pic_flag -Mnomain' ;;
17614
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17615
tmp_addflag=' -i_dynamic' ;;
17616
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17617
tmp_addflag=' -i_dynamic -nofor_main' ;;
17618
ifc* | ifort*) # Intel Fortran compiler
17619
tmp_addflag=' -nofor_main' ;;
17621
case `$CC -V 2>&1 | sed 5q` in
17622
*Sun\ C*) # Sun C 5.9
17623
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'
17624
tmp_sharedflag='-G' ;;
17625
*Sun\ F*) # Sun Fortran 8.3
17626
tmp_sharedflag='-G' ;;
17628
tmp_sharedflag='-shared' ;;
17630
archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17632
if test $supports_anon_versioning = yes; then
17633
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17634
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17635
$echo "local: *; };" >> $output_objdir/$libname.ver~
17636
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17644
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17645
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17648
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17649
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17654
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17658
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17659
*** create shared libraries on Solaris systems. Therefore, libtool
17660
*** is disabling shared libraries support. We urge you to upgrade GNU
17661
*** binutils to release 2.9.1 or newer. Another option is to modify
17662
*** your PATH or compiler configuration so that the native linker is
17663
*** used, and then restart.
17666
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17667
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17668
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17674
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17675
case `$LD -v 2>&1` in
17676
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17680
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17681
*** reliably create shared libraries on SCO systems. Therefore, libtool
17682
*** is disabling shared libraries support. We urge you to upgrade GNU
17683
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17684
*** your PATH or compiler configuration so that the native linker is
17685
*** used, and then restart.
17690
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17691
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17692
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17693
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17702
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17704
hardcode_direct_GCJ=yes
17705
hardcode_shlibpath_var_GCJ=no
17709
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17710
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17711
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17718
if test "$ld_shlibs_GCJ" = no; then
17720
hardcode_libdir_flag_spec_GCJ=
17721
export_dynamic_flag_spec_GCJ=
17722
whole_archive_flag_spec_GCJ=
17725
# PORTME fill in a description of your system's linker (not GNU ld)
17728
allow_undefined_flag_GCJ=unsupported
17729
always_export_symbols_GCJ=yes
17730
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'
17731
# Note: this linker hardcodes the directories in LIBPATH if there
17732
# are no directories specified by -L.
17733
hardcode_minus_L_GCJ=yes
17734
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17735
# Neither direct hardcoding nor static linking is supported with a
17737
hardcode_direct_GCJ=unsupported
17742
if test "$host_cpu" = ia64; then
17743
# On IA64, the linker does run time linking by default, so we don't
17744
# have to do anything special.
17745
aix_use_runtimelinking=no
17746
exp_sym_flag='-Bexport'
17749
# If we're using GNU nm, then we don't want the "-C" option.
17750
# -C means demangle to AIX nm, but means don't demangle with GNU nm
17751
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17752
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'
17754
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'
17756
aix_use_runtimelinking=no
17758
# Test if we are trying to use run time linking or normal
17759
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17760
# need to do runtime linking.
17761
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17762
for ld_flag in $LDFLAGS; do
17763
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17764
aix_use_runtimelinking=yes
17771
exp_sym_flag='-bexport'
17772
no_entry_flag='-bnoentry'
17775
# When large executables or shared objects are built, AIX ld can
17776
# have problems creating the table of contents. If linking a library
17777
# or program results in "error TOC overflow" add -mminimal-toc to
17778
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17779
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17781
archive_cmds_GCJ=''
17782
hardcode_direct_GCJ=yes
17783
hardcode_libdir_separator_GCJ=':'
17784
link_all_deplibs_GCJ=yes
17786
if test "$GCC" = yes; then
17787
case $host_os in aix4.[012]|aix4.[012].*)
17788
# We only want to do this on AIX 4.2 and lower, the check
17789
# below for broken collect2 doesn't work under 4.3+
17790
collect2name=`${CC} -print-prog-name=collect2`
17791
if test -f "$collect2name" && \
17792
strings "$collect2name" | grep resolve_lib_name >/dev/null
17794
# We have reworked collect2
17797
# We have old collect2
17798
hardcode_direct_GCJ=unsupported
17799
# It fails to find uninstalled libraries when the uninstalled
17800
# path is not listed in the libpath. Setting hardcode_minus_L
17801
# to unsupported forces relinking
17802
hardcode_minus_L_GCJ=yes
17803
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17804
hardcode_libdir_separator_GCJ=
17808
shared_flag='-shared'
17809
if test "$aix_use_runtimelinking" = yes; then
17810
shared_flag="$shared_flag "'${wl}-G'
17814
if test "$host_cpu" = ia64; then
17815
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17816
# chokes on -Wl,-G. The following line is correct:
17819
if test "$aix_use_runtimelinking" = yes; then
17820
shared_flag='${wl}-G'
17822
shared_flag='${wl}-bM:SRE'
17827
# It seems that -bexpall does not export symbols beginning with
17828
# underscore (_), so it is better to generate a list of symbols to export.
17829
always_export_symbols_GCJ=yes
17830
if test "$aix_use_runtimelinking" = yes; then
17831
# Warning - without using the other runtime loading flags (-brtl),
17832
# -berok will link without error, but may produce a broken library.
17833
allow_undefined_flag_GCJ='-berok'
17834
# Determine the default libpath from the value encoded in an empty executable.
17835
cat >conftest.$ac_ext <<_ACEOF
17838
cat confdefs.h >>conftest.$ac_ext
17839
cat >>conftest.$ac_ext <<_ACEOF
17840
/* end confdefs.h. */
17850
rm -f conftest.$ac_objext conftest$ac_exeext
17851
if { (ac_try="$ac_link"
17852
case "(($ac_try" in
17853
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17854
*) ac_try_echo=$ac_try;;
17856
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17857
$as_echo "$ac_try_echo") >&5
17858
(eval "$ac_link") 2>conftest.er1
17860
grep -v '^ *+' conftest.er1 >conftest.err
17862
cat conftest.err >&5
17863
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864
(exit $ac_status); } && {
17865
test -z "$ac_c_werror_flag" ||
17866
test ! -s conftest.err
17867
} && test -s conftest$ac_exeext && {
17868
test "$cross_compiling" = yes ||
17869
$as_test_x conftest$ac_exeext
17872
lt_aix_libpath_sed='
17873
/Import File Strings/,/^$/ {
17879
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17880
# Check for a 64-bit object if we didn't find anything.
17881
if test -z "$aix_libpath"; then
17882
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17885
$as_echo "$as_me: failed program was:" >&5
17886
sed 's/^/| /' conftest.$ac_ext >&5
17891
rm -rf conftest.dSYM
17892
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17893
conftest$ac_exeext conftest.$ac_ext
17894
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17896
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17897
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"
17899
if test "$host_cpu" = ia64; then
17900
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17901
allow_undefined_flag_GCJ="-z nodefs"
17902
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"
17904
# Determine the default libpath from the value encoded in an empty executable.
17905
cat >conftest.$ac_ext <<_ACEOF
17908
cat confdefs.h >>conftest.$ac_ext
17909
cat >>conftest.$ac_ext <<_ACEOF
17910
/* end confdefs.h. */
17920
rm -f conftest.$ac_objext conftest$ac_exeext
17921
if { (ac_try="$ac_link"
17922
case "(($ac_try" in
17923
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17924
*) ac_try_echo=$ac_try;;
17926
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17927
$as_echo "$ac_try_echo") >&5
17928
(eval "$ac_link") 2>conftest.er1
17930
grep -v '^ *+' conftest.er1 >conftest.err
17932
cat conftest.err >&5
17933
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17934
(exit $ac_status); } && {
17935
test -z "$ac_c_werror_flag" ||
17936
test ! -s conftest.err
17937
} && test -s conftest$ac_exeext && {
17938
test "$cross_compiling" = yes ||
17939
$as_test_x conftest$ac_exeext
17942
lt_aix_libpath_sed='
17943
/Import File Strings/,/^$/ {
17949
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17950
# Check for a 64-bit object if we didn't find anything.
17951
if test -z "$aix_libpath"; then
17952
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17955
$as_echo "$as_me: failed program was:" >&5
17956
sed 's/^/| /' conftest.$ac_ext >&5
17961
rm -rf conftest.dSYM
17962
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17963
conftest$ac_exeext conftest.$ac_ext
17964
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17966
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17967
# Warning - without using the other run time loading flags,
17968
# -berok will link without error, but may produce a broken library.
17969
no_undefined_flag_GCJ=' ${wl}-bernotok'
17970
allow_undefined_flag_GCJ=' ${wl}-berok'
17971
# Exported symbols can be pulled into shared objects from archives
17972
whole_archive_flag_spec_GCJ='$convenience'
17973
archive_cmds_need_lc_GCJ=yes
17974
# This is similar to how AIX traditionally builds its shared libraries.
17975
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'
17981
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)'
17982
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17983
hardcode_minus_L_GCJ=yes
17984
# see comment about different semantics on the GNU ld section
17989
export_dynamic_flag_spec_GCJ=-rdynamic
17992
cygwin* | mingw* | pw32*)
17993
# When not using gcc, we currently assume that we are using
17994
# Microsoft Visual C++.
17995
# hardcode_libdir_flag_spec is actually meaningless, as there is
17996
# no search path for DLLs.
17997
hardcode_libdir_flag_spec_GCJ=' '
17998
allow_undefined_flag_GCJ=unsupported
17999
# Tell ltmain to make .lib files, not .a files.
18001
# Tell ltmain to make .dll files, not .so files.
18003
# FIXME: Setting linknames here is a bad hack.
18004
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18005
# The linker will automatically build a .lib file if we build a DLL.
18006
old_archive_From_new_cmds_GCJ='true'
18007
# FIXME: Should let the user specify the lib program.
18008
old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18009
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18010
enable_shared_with_static_runtimes_GCJ=yes
18013
darwin* | rhapsody*)
18015
rhapsody* | darwin1.[012])
18016
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18019
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18020
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18022
case ${MACOSX_DEPLOYMENT_TARGET} in
18024
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18027
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18033
archive_cmds_need_lc_GCJ=no
18034
hardcode_direct_GCJ=no
18035
hardcode_automatic_GCJ=yes
18036
hardcode_shlibpath_var_GCJ=unsupported
18037
whole_archive_flag_spec_GCJ=''
18038
link_all_deplibs_GCJ=yes
18039
if test "$GCC" = yes ; then
18040
output_verbose_link_cmd='echo'
18041
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}"
18042
module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18043
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}"
18044
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}"
18046
case $cc_basename in
18048
output_verbose_link_cmd='echo'
18049
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18050
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18051
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18052
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}'
18053
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}'
18063
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18064
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18065
hardcode_shlibpath_var_GCJ=no
18072
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18073
# support. Future versions do this automatically, but an explicit c++rt0.o
18074
# does not break anything, and helps significantly (at the cost of a little
18077
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18078
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18079
hardcode_direct_GCJ=yes
18080
hardcode_shlibpath_var_GCJ=no
18083
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
18085
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18086
hardcode_direct_GCJ=yes
18087
hardcode_minus_L_GCJ=yes
18088
hardcode_shlibpath_var_GCJ=no
18091
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18092
freebsd* | dragonfly*)
18093
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18094
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18095
hardcode_direct_GCJ=yes
18096
hardcode_shlibpath_var_GCJ=no
18100
if test "$GCC" = yes; then
18101
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'
18103
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'
18105
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18106
hardcode_libdir_separator_GCJ=:
18107
hardcode_direct_GCJ=yes
18109
# hardcode_minus_L: Not really in the search PATH,
18110
# but as the default location of the library.
18111
hardcode_minus_L_GCJ=yes
18112
export_dynamic_flag_spec_GCJ='${wl}-E'
18116
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18117
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18119
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18121
if test "$with_gnu_ld" = no; then
18122
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18123
hardcode_libdir_separator_GCJ=:
18125
hardcode_direct_GCJ=yes
18126
export_dynamic_flag_spec_GCJ='${wl}-E'
18128
# hardcode_minus_L: Not really in the search PATH,
18129
# but as the default location of the library.
18130
hardcode_minus_L_GCJ=yes
18135
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18138
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18141
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18144
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18150
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18153
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18156
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18160
if test "$with_gnu_ld" = no; then
18161
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18162
hardcode_libdir_separator_GCJ=:
18166
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18167
hardcode_direct_GCJ=no
18168
hardcode_shlibpath_var_GCJ=no
18171
hardcode_direct_GCJ=yes
18172
export_dynamic_flag_spec_GCJ='${wl}-E'
18174
# hardcode_minus_L: Not really in the search PATH,
18175
# but as the default location of the library.
18176
hardcode_minus_L_GCJ=yes
18182
irix5* | irix6* | nonstopux*)
18183
if test "$GCC" = yes; then
18184
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'
18186
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'
18187
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18189
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18190
hardcode_libdir_separator_GCJ=:
18191
link_all_deplibs_GCJ=yes
18195
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18196
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18198
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18200
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18201
hardcode_direct_GCJ=yes
18202
hardcode_shlibpath_var_GCJ=no
18206
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18207
hardcode_direct_GCJ=yes
18208
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18209
hardcode_libdir_separator_GCJ=:
18210
hardcode_shlibpath_var_GCJ=no
18214
if test -f /usr/libexec/ld.so; then
18215
hardcode_direct_GCJ=yes
18216
hardcode_shlibpath_var_GCJ=no
18217
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18218
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18219
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18220
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18221
export_dynamic_flag_spec_GCJ='${wl}-E'
18224
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18225
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18226
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18229
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18230
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18240
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18241
hardcode_minus_L_GCJ=yes
18242
allow_undefined_flag_GCJ=unsupported
18243
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'
18244
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18248
if test "$GCC" = yes; then
18249
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18250
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'
18252
allow_undefined_flag_GCJ=' -expect_unresolved \*'
18253
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'
18255
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18256
hardcode_libdir_separator_GCJ=:
18259
osf4* | osf5*) # as osf3* with the addition of -msym flag
18260
if test "$GCC" = yes; then
18261
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18262
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'
18263
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18265
allow_undefined_flag_GCJ=' -expect_unresolved \*'
18266
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'
18267
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~
18268
$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'
18270
# Both c and cxx compiler support -rpath directly
18271
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18273
hardcode_libdir_separator_GCJ=:
18277
no_undefined_flag_GCJ=' -z text'
18278
if test "$GCC" = yes; then
18280
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18281
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18282
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18285
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18286
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18287
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18289
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18290
hardcode_shlibpath_var_GCJ=no
18292
solaris2.[0-5] | solaris2.[0-5].*) ;;
18294
# The compiler driver will combine and reorder linker options,
18295
# but understands `-z linker_flag'. GCC discards it without `$wl',
18296
# but is careful enough not to reorder.
18297
# Supported since Solaris 2.6 (maybe 2.5.1?)
18298
if test "$GCC" = yes; then
18299
whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18301
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18305
link_all_deplibs_GCJ=yes
18309
if test "x$host_vendor" = xsequent; then
18310
# Use $CC to link under sequent, because it throws in some extra .o
18311
# files that make .init and .fini sections work.
18312
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18314
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18316
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18317
hardcode_direct_GCJ=yes
18318
hardcode_minus_L_GCJ=yes
18319
hardcode_shlibpath_var_GCJ=no
18323
case $host_vendor in
18325
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18326
hardcode_direct_GCJ=yes # is this really true???
18329
## LD is ld it makes a PLAMLIB
18330
## CC just makes a GrossModule.
18331
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18332
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18333
hardcode_direct_GCJ=no
18336
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18337
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18340
runpath_var='LD_RUN_PATH'
18341
hardcode_shlibpath_var_GCJ=no
18345
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18346
hardcode_shlibpath_var_GCJ=no
18347
export_dynamic_flag_spec_GCJ='-Bexport'
18351
if test -d /usr/nec; then
18352
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18353
hardcode_shlibpath_var_GCJ=no
18354
runpath_var=LD_RUN_PATH
18355
hardcode_runpath_var=yes
18360
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18361
no_undefined_flag_GCJ='${wl}-z,text'
18362
archive_cmds_need_lc_GCJ=no
18363
hardcode_shlibpath_var_GCJ=no
18364
runpath_var='LD_RUN_PATH'
18366
if test "$GCC" = yes; then
18367
archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18368
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18370
archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18371
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18375
sysv5* | sco3.2v5* | sco5v6*)
18376
# Note: We can NOT use -z defs as we might desire, because we do not
18377
# link with -lc, and that would cause any symbols used from libc to
18378
# always be unresolved, which means just about no library would
18379
# ever link correctly. If we're not using GNU ld we use -z text
18380
# though, which does catch some bad symbols but isn't as heavy-handed
18382
no_undefined_flag_GCJ='${wl}-z,text'
18383
allow_undefined_flag_GCJ='${wl}-z,nodefs'
18384
archive_cmds_need_lc_GCJ=no
18385
hardcode_shlibpath_var_GCJ=no
18386
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18387
hardcode_libdir_separator_GCJ=':'
18388
link_all_deplibs_GCJ=yes
18389
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18390
runpath_var='LD_RUN_PATH'
18392
if test "$GCC" = yes; then
18393
archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18394
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18396
archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18397
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18402
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18403
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18404
hardcode_shlibpath_var_GCJ=no
18413
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18414
$as_echo "$ld_shlibs_GCJ" >&6; }
18415
test "$ld_shlibs_GCJ" = no && can_build_shared=no
18418
# Do we need to explicitly link libc?
18420
case "x$archive_cmds_need_lc_GCJ" in
18422
# Assume -lc should be added
18423
archive_cmds_need_lc_GCJ=yes
18425
if test "$enable_shared" = yes && test "$GCC" = yes; then
18426
case $archive_cmds_GCJ in
18428
# FIXME: we may have to deal with multi-command sequences.
18431
# Test whether the compiler implicitly links with -lc since on some
18432
# systems, -lgcc has to come before -lc. If gcc already passes -lc
18433
# to ld, don't add -lc before -lgcc.
18434
{ $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18435
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18437
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18439
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18440
(eval $ac_compile) 2>&5
18442
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18443
(exit $ac_status); } 2>conftest.err; then
18446
libobjs=conftest.$ac_objext
18448
wl=$lt_prog_compiler_wl_GCJ
18449
pic_flag=$lt_prog_compiler_pic_GCJ
18455
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18456
allow_undefined_flag_GCJ=
18457
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18458
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18460
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18461
(exit $ac_status); }
18463
archive_cmds_need_lc_GCJ=no
18465
archive_cmds_need_lc_GCJ=yes
18467
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18469
cat conftest.err 1>&5
18472
{ $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18473
$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
18480
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18481
$as_echo_n "checking dynamic linker characteristics... " >&6; }
18482
library_names_spec=
18483
libname_spec='lib$name'
18487
postuninstall_cmds=
18491
shlibpath_overrides_runpath=unknown
18493
dynamic_linker="$host_os ld.so"
18494
sys_lib_dlsearch_path_spec="/lib /usr/lib"
18496
need_lib_prefix=unknown
18497
hardcode_into_libs=no
18499
# when you set need_version to no, make sure it does not cause -set_version
18500
# flags to be left without arguments
18501
need_version=unknown
18506
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18507
shlibpath_var=LIBPATH
18509
# AIX 3 has no versioning support, so we append a major version to the name.
18510
soname_spec='${libname}${release}${shared_ext}$major'
18517
hardcode_into_libs=yes
18518
if test "$host_cpu" = ia64; then
18519
# AIX 5 supports IA64
18520
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18521
shlibpath_var=LD_LIBRARY_PATH
18523
# With GCC up to 2.95.x, collect2 would create an import file
18524
# for dependence libraries. The import file would start with
18525
# the line `#! .'. This would cause the generated library to
18526
# depend on `.', always an invalid library. This was fixed in
18527
# development snapshots of GCC prior to 3.0.
18529
aix4 | aix4.[01] | aix4.[01].*)
18530
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18532
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18535
can_build_shared=no
18539
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18540
# soname into executable. Probably we can add versioning support to
18541
# collect2, so additional links can be useful in future.
18542
if test "$aix_use_runtimelinking" = yes; then
18543
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
18544
# instead of lib<name>.a to let people know that these are not
18545
# typical AIX shared libraries.
18546
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18548
# We preserve .a as extension for shared libraries through AIX4.2
18549
# and later when we are not doing run time linking.
18550
library_names_spec='${libname}${release}.a $libname.a'
18551
soname_spec='${libname}${release}${shared_ext}$major'
18553
shlibpath_var=LIBPATH
18558
library_names_spec='$libname.ixlibrary $libname.a'
18559
# Create ${libname}_ixlibrary.a entries in /sys/libs.
18560
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'
18564
library_names_spec='${libname}${shared_ext}'
18565
dynamic_linker="$host_os ld.so"
18566
shlibpath_var=LIBRARY_PATH
18572
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18573
soname_spec='${libname}${release}${shared_ext}$major'
18574
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18575
shlibpath_var=LD_LIBRARY_PATH
18576
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18577
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18578
# the default ld.so.conf also contains /usr/contrib/lib and
18579
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18580
# libtool to hard-code these into programs
18583
cygwin* | mingw* | pw32*)
18584
version_type=windows
18589
case $GCC,$host_os in
18590
yes,cygwin* | yes,mingw* | yes,pw32*)
18591
library_names_spec='$libname.dll.a'
18592
# DLL is installed to $(libdir)/../bin by postinstall_cmds
18593
postinstall_cmds='base_file=`basename \${file}`~
18594
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18595
dldir=$destdir/`dirname \$dlpath`~
18596
test -d \$dldir || mkdir -p \$dldir~
18597
$install_prog $dir/$dlname \$dldir/$dlname~
18598
chmod a+x \$dldir/$dlname'
18599
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18600
dlpath=$dir/\$dldll~
18602
shlibpath_overrides_runpath=yes
18606
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
18607
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18608
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18611
# MinGW DLLs use traditional 'lib' prefix
18612
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18613
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18614
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18615
# It is most probably a Windows format PATH printed by
18616
# mingw gcc, but we are running on Cygwin. Gcc prints its search
18617
# path with ; separators, and with drive letters. We can handle the
18618
# drive letters (cygwin fileutils understands them), so leave them,
18619
# especially as we might pass files found there to a mingw objdump,
18620
# which wouldn't understand a cygwinified path. Ahh.
18621
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18623
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18627
# pw32 DLLs use 'pw' prefix rather than 'lib'
18628
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18634
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18637
dynamic_linker='Win32 ld.exe'
18638
# FIXME: first we should search . and the directory the executable is in
18642
darwin* | rhapsody*)
18643
dynamic_linker="$host_os dyld"
18644
version_type=darwin
18647
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18648
soname_spec='${libname}${release}${major}$shared_ext'
18649
shlibpath_overrides_runpath=yes
18650
shlibpath_var=DYLD_LIBRARY_PATH
18651
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18653
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18660
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18661
soname_spec='${libname}${release}${shared_ext}$major'
18662
shlibpath_var=LD_LIBRARY_PATH
18669
freebsd* | dragonfly*)
18670
# DragonFly does not have aout. When/if they implement a new
18671
# versioning mechanism, adjust this.
18672
if test -x /usr/bin/objformat; then
18673
objformat=`/usr/bin/objformat`
18676
freebsd[123]*) objformat=aout ;;
18677
*) objformat=elf ;;
18680
version_type=freebsd-$objformat
18681
case $version_type in
18683
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18688
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18692
shlibpath_var=LD_LIBRARY_PATH
18695
shlibpath_overrides_runpath=yes
18697
freebsd3.[01]* | freebsdelf3.[01]*)
18698
shlibpath_overrides_runpath=yes
18699
hardcode_into_libs=yes
18701
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18702
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18703
shlibpath_overrides_runpath=no
18704
hardcode_into_libs=yes
18706
*) # from 4.6 on, and DragonFly
18707
shlibpath_overrides_runpath=yes
18708
hardcode_into_libs=yes
18717
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18718
soname_spec='${libname}${release}${shared_ext}$major'
18719
shlibpath_var=LD_LIBRARY_PATH
18720
hardcode_into_libs=yes
18723
hpux9* | hpux10* | hpux11*)
18724
# Give a soname corresponding to the major version so that dld.sl refuses to
18725
# link against other versions.
18732
hardcode_into_libs=yes
18733
dynamic_linker="$host_os dld.so"
18734
shlibpath_var=LD_LIBRARY_PATH
18735
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18736
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18737
soname_spec='${libname}${release}${shared_ext}$major'
18738
if test "X$HPUX_IA64_MODE" = X32; then
18739
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18741
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18743
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18747
hardcode_into_libs=yes
18748
dynamic_linker="$host_os dld.sl"
18749
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18750
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18751
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18752
soname_spec='${libname}${release}${shared_ext}$major'
18753
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18754
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18758
dynamic_linker="$host_os dld.sl"
18759
shlibpath_var=SHLIB_PATH
18760
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18761
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18762
soname_spec='${libname}${release}${shared_ext}$major'
18765
# HP-UX runs *really* slowly unless shared libraries are mode 555.
18766
postinstall_cmds='chmod 555 $lib'
18773
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18774
soname_spec='${libname}${release}${shared_ext}$major'
18775
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18776
shlibpath_var=LD_LIBRARY_PATH
18777
shlibpath_overrides_runpath=no
18778
hardcode_into_libs=yes
18781
irix5* | irix6* | nonstopux*)
18783
nonstopux*) version_type=nonstopux ;;
18785
if test "$lt_cv_prog_gnu_ld" = yes; then
18793
soname_spec='${libname}${release}${shared_ext}$major'
18794
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18796
irix5* | nonstopux*)
18797
libsuff= shlibsuff=
18800
case $LD in # libtool.m4 will add one of these switches to LD
18801
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18802
libsuff= shlibsuff= libmagic=32-bit;;
18803
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18804
libsuff=32 shlibsuff=N32 libmagic=N32;;
18805
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18806
libsuff=64 shlibsuff=64 libmagic=64-bit;;
18807
*) libsuff= shlibsuff= libmagic=never-match;;
18811
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18812
shlibpath_overrides_runpath=no
18813
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18814
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18815
hardcode_into_libs=yes
18818
# No shared lib support for Linux oldld, aout, or coff.
18819
linux*oldld* | linux*aout* | linux*coff*)
18823
# This must be Linux ELF.
18824
linux* | k*bsd*-gnu)
18828
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18829
soname_spec='${libname}${release}${shared_ext}$major'
18830
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18831
shlibpath_var=LD_LIBRARY_PATH
18832
shlibpath_overrides_runpath=no
18833
# This implies no fast_install, which is unacceptable.
18834
# Some rework will be needed to allow for fast_install
18835
# before this can be enabled.
18836
hardcode_into_libs=yes
18837
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18838
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18840
# Append ld.so.conf contents to the search path
18841
if test -f /etc/ld.so.conf; then
18842
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' ' '`
18843
sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18846
# We used to test for /lib/ld.so.1 and disable shared libraries on
18847
# powerpc, because MkLinux only supported shared libraries with the
18848
# GNU dynamic linker. Since this was broken with cross compilers,
18849
# most powerpc-linux boxes support dynamic linking these days and
18850
# people can always --disable-shared, the test was removed, and we
18851
# assume the GNU/Linux dynamic linker is in use.
18852
dynamic_linker='GNU/Linux ld.so'
18859
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18860
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18861
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18862
dynamic_linker='NetBSD (a.out) ld.so'
18864
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18865
soname_spec='${libname}${release}${shared_ext}$major'
18866
dynamic_linker='NetBSD ld.elf_so'
18868
shlibpath_var=LD_LIBRARY_PATH
18869
shlibpath_overrides_runpath=yes
18870
hardcode_into_libs=yes
18875
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18876
shlibpath_var=LD_LIBRARY_PATH
18877
shlibpath_overrides_runpath=yes
18884
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18885
soname_spec='${libname}${release}${shared_ext}$major'
18886
shlibpath_var=LD_LIBRARY_PATH
18887
shlibpath_overrides_runpath=yes
18892
sys_lib_dlsearch_path_spec="/usr/lib"
18894
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18896
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18897
*) need_version=no ;;
18899
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18900
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18901
shlibpath_var=LD_LIBRARY_PATH
18902
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18904
openbsd2.[89] | openbsd2.[89].*)
18905
shlibpath_overrides_runpath=no
18908
shlibpath_overrides_runpath=yes
18912
shlibpath_overrides_runpath=yes
18917
libname_spec='$name'
18920
library_names_spec='$libname${shared_ext} $libname.a'
18921
dynamic_linker='OS/2 ld.exe'
18922
shlibpath_var=LIBPATH
18925
osf3* | osf4* | osf5*)
18929
soname_spec='${libname}${release}${shared_ext}$major'
18930
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18931
shlibpath_var=LD_LIBRARY_PATH
18932
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18933
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18944
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18945
soname_spec='${libname}${release}${shared_ext}$major'
18946
shlibpath_var=LD_LIBRARY_PATH
18947
shlibpath_overrides_runpath=yes
18948
hardcode_into_libs=yes
18949
# ldd complains unless libraries are executable
18950
postinstall_cmds='chmod +x $lib'
18955
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18956
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18957
shlibpath_var=LD_LIBRARY_PATH
18958
shlibpath_overrides_runpath=yes
18959
if test "$with_gnu_ld" = yes; then
18967
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18968
soname_spec='${libname}${release}${shared_ext}$major'
18969
shlibpath_var=LD_LIBRARY_PATH
18970
case $host_vendor in
18972
shlibpath_overrides_runpath=no
18974
export_dynamic_flag_spec='${wl}-Blargedynsym'
18975
runpath_var=LD_RUN_PATH
18983
shlibpath_overrides_runpath=no
18984
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18990
if test -d /usr/nec ;then
18992
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18993
soname_spec='$libname${shared_ext}.$major'
18994
shlibpath_var=LD_LIBRARY_PATH
18998
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18999
version_type=freebsd-elf
19002
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19003
soname_spec='${libname}${release}${shared_ext}$major'
19004
shlibpath_var=LD_LIBRARY_PATH
19005
hardcode_into_libs=yes
19006
if test "$with_gnu_ld" = yes; then
19007
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19008
shlibpath_overrides_runpath=no
19010
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19011
shlibpath_overrides_runpath=yes
19014
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19018
sys_lib_dlsearch_path_spec='/usr/lib'
19023
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19024
soname_spec='${libname}${release}${shared_ext}$major'
19025
shlibpath_var=LD_LIBRARY_PATH
19032
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19033
$as_echo "$dynamic_linker" >&6; }
19034
test "$dynamic_linker" = no && can_build_shared=no
19036
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19037
$as_echo_n "(cached) " >&6
19039
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19042
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19043
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19044
$as_echo_n "(cached) " >&6
19046
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19049
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19051
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19052
if test "$GCC" = yes; then
19053
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19056
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19057
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19058
hardcode_action_GCJ=
19059
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19060
test -n "$runpath_var_GCJ" || \
19061
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19063
# We can hardcode non-existant directories.
19064
if test "$hardcode_direct_GCJ" != no &&
19065
# If the only mechanism to avoid hardcoding is shlibpath_var, we
19066
# have to relink, otherwise we might link with an installed library
19067
# when we should be linking with a yet-to-be-installed one
19068
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19069
test "$hardcode_minus_L_GCJ" != no; then
19070
# Linking always hardcodes the temporary library directory.
19071
hardcode_action_GCJ=relink
19073
# We can link without hardcoding, and we can hardcode nonexisting dirs.
19074
hardcode_action_GCJ=immediate
19077
# We cannot hardcode anything, or else we can only hardcode existing
19079
hardcode_action_GCJ=unsupported
19081
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19082
$as_echo "$hardcode_action_GCJ" >&6; }
19084
if test "$hardcode_action_GCJ" = relink; then
19085
# Fast installation is not supported
19086
enable_fast_install=no
19087
elif test "$shlibpath_overrides_runpath" = yes ||
19088
test "$enable_shared" = no; then
19089
# Fast installation is not necessary
19090
enable_fast_install=needless
19094
# The else clause should only fire when bootstrapping the
19095
# libtool distribution, otherwise you forgot to ship ltmain.sh
19096
# with your package, and you will get complaints that there are
19097
# no rules to generate ltmain.sh.
19098
if test -f "$ltmain"; then
19099
# See if we are running on zsh, and set the options which allow our commands through
19100
# without removal of \ escapes.
19101
if test -n "${ZSH_VERSION+set}" ; then
19102
setopt NO_GLOB_SUBST
19104
# Now quote all the things that may contain metacharacters while being
19105
# careful not to overquote the AC_SUBSTed values. We take copies of the
19106
# variables and quote the copies for generation of the libtool script.
19107
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19109
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19110
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19111
deplibs_check_method reload_flag reload_cmds need_locks \
19112
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19113
lt_cv_sys_global_symbol_to_c_name_address \
19114
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19115
old_postinstall_cmds old_postuninstall_cmds \
19119
lt_prog_compiler_wl_GCJ \
19120
lt_prog_compiler_pic_GCJ \
19121
lt_prog_compiler_static_GCJ \
19122
lt_prog_compiler_no_builtin_flag_GCJ \
19123
export_dynamic_flag_spec_GCJ \
19124
thread_safe_flag_spec_GCJ \
19125
whole_archive_flag_spec_GCJ \
19126
enable_shared_with_static_runtimes_GCJ \
19127
old_archive_cmds_GCJ \
19128
old_archive_from_new_cmds_GCJ \
19129
predep_objects_GCJ \
19130
postdep_objects_GCJ \
19133
compiler_lib_search_path_GCJ \
19134
compiler_lib_search_dirs_GCJ \
19136
archive_expsym_cmds_GCJ \
19137
postinstall_cmds_GCJ \
19138
postuninstall_cmds_GCJ \
19139
old_archive_from_expsyms_cmds_GCJ \
19140
allow_undefined_flag_GCJ \
19141
no_undefined_flag_GCJ \
19142
export_symbols_cmds_GCJ \
19143
hardcode_libdir_flag_spec_GCJ \
19144
hardcode_libdir_flag_spec_ld_GCJ \
19145
hardcode_libdir_separator_GCJ \
19146
hardcode_automatic_GCJ \
19148
module_expsym_cmds_GCJ \
19149
lt_cv_prog_compiler_c_o_GCJ \
19150
fix_srcfile_path_GCJ \
19151
exclude_expsyms_GCJ \
19152
include_expsyms_GCJ; do
19155
old_archive_cmds_GCJ | \
19156
old_archive_from_new_cmds_GCJ | \
19157
archive_cmds_GCJ | \
19158
archive_expsym_cmds_GCJ | \
19159
module_cmds_GCJ | \
19160
module_expsym_cmds_GCJ | \
19161
old_archive_from_expsyms_cmds_GCJ | \
19162
export_symbols_cmds_GCJ | \
19163
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19164
postinstall_cmds | postuninstall_cmds | \
19165
old_postinstall_cmds | old_postuninstall_cmds | \
19166
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19167
# Double-quote double-evaled strings.
19168
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19171
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19177
*'\$0 --fallback-echo"')
19178
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19184
cat <<__EOF__ >> "$cfgfile"
19185
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19187
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19189
# Shell to use when invoking shell scripts.
19192
# Whether or not to build shared libraries.
19193
build_libtool_libs=$enable_shared
19195
# Whether or not to build static libraries.
19196
build_old_libs=$enable_static
19198
# Whether or not to add -lc for building shared libraries.
19199
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19201
# Whether or not to disallow shared libs when runtime libs are static
19202
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19204
# Whether or not to optimize for fast installation.
19205
fast_install=$enable_fast_install
19208
host_alias=$host_alias
19212
# The build system.
19213
build_alias=$build_alias
19217
# An echo program that does not interpret backslashes.
19222
AR_FLAGS=$lt_AR_FLAGS
19227
# LTCC compiler flags.
19228
LTCFLAGS=$lt_LTCFLAGS
19230
# A language-specific compiler.
19231
CC=$lt_compiler_GCJ
19233
# Is the compiler the GNU C compiler?
19239
# The linker used to build libraries.
19242
# Whether we need hard or soft links.
19245
# A BSD-compatible nm program.
19248
# A symbol stripping program
19251
# Used to examine libraries when file_magic_cmd begins "file"
19252
MAGIC_CMD=$MAGIC_CMD
19254
# Used on cygwin: DLL creation program.
19257
# Used on cygwin: object dumper.
19260
# Used on cygwin: assembler.
19263
# The name of the directory that contains temporary libtool files.
19266
# How to create reloadable object files.
19267
reload_flag=$lt_reload_flag
19268
reload_cmds=$lt_reload_cmds
19270
# How to pass a linker flag through the compiler.
19271
wl=$lt_lt_prog_compiler_wl_GCJ
19273
# Object file suffix (normally "o").
19274
objext="$ac_objext"
19276
# Old archive suffix (normally "a").
19279
# Shared library suffix (normally ".so").
19280
shrext_cmds='$shrext_cmds'
19282
# Executable file suffix (normally "").
19285
# Additional compiler flags for building library objects.
19286
pic_flag=$lt_lt_prog_compiler_pic_GCJ
19289
# What is the maximum length of a command?
19290
max_cmd_len=$lt_cv_sys_max_cmd_len
19292
# Does compiler simultaneously support -c and -o options?
19293
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19295
# Must we lock files when doing compilation?
19296
need_locks=$lt_need_locks
19298
# Do we need the lib prefix for modules?
19299
need_lib_prefix=$need_lib_prefix
19301
# Do we need a version for libraries?
19302
need_version=$need_version
19304
# Whether dlopen is supported.
19305
dlopen_support=$enable_dlopen
19307
# Whether dlopen of programs is supported.
19308
dlopen_self=$enable_dlopen_self
19310
# Whether dlopen of statically linked programs is supported.
19311
dlopen_self_static=$enable_dlopen_self_static
19313
# Compiler flag to prevent dynamic linking.
19314
link_static_flag=$lt_lt_prog_compiler_static_GCJ
19316
# Compiler flag to turn off builtin functions.
19317
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19319
# Compiler flag to allow reflexive dlopens.
19320
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19322
# Compiler flag to generate shared objects directly from archives.
19323
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19325
# Compiler flag to generate thread-safe objects.
19326
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19328
# Library versioning type.
19329
version_type=$version_type
19331
# Format of library name prefix.
19332
libname_spec=$lt_libname_spec
19334
# List of archive names. First name is the real one, the rest are links.
19335
# The last name is the one that the linker finds with -lNAME.
19336
library_names_spec=$lt_library_names_spec
19338
# The coded name of the library, if different from the real name.
19339
soname_spec=$lt_soname_spec
19341
# Commands used to build and install an old-style archive.
19343
old_archive_cmds=$lt_old_archive_cmds_GCJ
19344
old_postinstall_cmds=$lt_old_postinstall_cmds
19345
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19347
# Create an old-style archive from a shared archive.
19348
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19350
# Create a temporary old-style archive to link instead of a shared archive.
19351
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19353
# Commands used to build and install a shared archive.
19354
archive_cmds=$lt_archive_cmds_GCJ
19355
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19356
postinstall_cmds=$lt_postinstall_cmds
19357
postuninstall_cmds=$lt_postuninstall_cmds
19359
# Commands used to build a loadable module (assumed same as above if empty)
19360
module_cmds=$lt_module_cmds_GCJ
19361
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19363
# Commands to strip libraries.
19364
old_striplib=$lt_old_striplib
19365
striplib=$lt_striplib
19367
# Dependencies to place before the objects being linked to create a
19369
predep_objects=$lt_predep_objects_GCJ
19371
# Dependencies to place after the objects being linked to create a
19373
postdep_objects=$lt_postdep_objects_GCJ
19375
# Dependencies to place before the objects being linked to create a
19377
predeps=$lt_predeps_GCJ
19379
# Dependencies to place after the objects being linked to create a
19381
postdeps=$lt_postdeps_GCJ
19383
# The directories searched by this compiler when creating a shared
19385
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19387
# The library search path used internally by the compiler when linking
19388
# a shared library.
19389
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19391
# Method to check whether dependent libraries are shared objects.
19392
deplibs_check_method=$lt_deplibs_check_method
19394
# Command to use when deplibs_check_method == file_magic.
19395
file_magic_cmd=$lt_file_magic_cmd
19397
# Flag that allows shared libraries with undefined symbols to be built.
19398
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19400
# Flag that forces no undefined symbols.
19401
no_undefined_flag=$lt_no_undefined_flag_GCJ
19403
# Commands used to finish a libtool library installation in a directory.
19404
finish_cmds=$lt_finish_cmds
19406
# Same as above, but a single script fragment to be evaled but not shown.
19407
finish_eval=$lt_finish_eval
19409
# Take the output of nm and produce a listing of raw symbols and C names.
19410
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19412
# Transform the output of nm in a proper C declaration
19413
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19415
# Transform the output of nm in a C name address pair
19416
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19418
# This is the shared library runtime path variable.
19419
runpath_var=$runpath_var
19421
# This is the shared library path variable.
19422
shlibpath_var=$shlibpath_var
19424
# Is shlibpath searched before the hard-coded library search path?
19425
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19427
# How to hardcode a shared library path into an executable.
19428
hardcode_action=$hardcode_action_GCJ
19430
# Whether we should hardcode library paths into libraries.
19431
hardcode_into_libs=$hardcode_into_libs
19433
# Flag to hardcode \$libdir into a binary during linking.
19434
# This must work even if \$libdir does not exist.
19435
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19437
# If ld is used when linking, flag to hardcode \$libdir into
19438
# a binary during linking. This must work even if \$libdir does
19440
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19442
# Whether we need a single -rpath flag with a separated argument.
19443
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19445
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19446
# resulting binary.
19447
hardcode_direct=$hardcode_direct_GCJ
19449
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19450
# resulting binary.
19451
hardcode_minus_L=$hardcode_minus_L_GCJ
19453
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19454
# the resulting binary.
19455
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19457
# Set to yes if building a shared library automatically hardcodes DIR into the library
19458
# and all subsequent libraries and executables linked against it.
19459
hardcode_automatic=$hardcode_automatic_GCJ
19461
# Variables whose values should be saved in libtool wrapper scripts and
19462
# restored at relink time.
19463
variables_saved_for_relink="$variables_saved_for_relink"
19465
# Whether libtool must link a program against all its dependency libraries.
19466
link_all_deplibs=$link_all_deplibs_GCJ
19468
# Compile-time system search path for libraries
19469
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19471
# Run-time system search path for libraries
19472
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19474
# Fix the shell variable \$srcfile for the compiler.
19475
fix_srcfile_path=$lt_fix_srcfile_path
19477
# Set to yes if exported symbols are required.
19478
always_export_symbols=$always_export_symbols_GCJ
19480
# The commands to list exported symbols.
19481
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19483
# The commands to extract the exported symbol list from a shared archive.
19484
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19486
# Symbols that should not be listed in the preloaded symbols.
19487
exclude_expsyms=$lt_exclude_expsyms_GCJ
19489
# Symbols that must always be exported.
19490
include_expsyms=$lt_include_expsyms_GCJ
19492
# ### END LIBTOOL TAG CONFIG: $tagname
19498
# If there is no Makefile yet, we rely on a make rule to execute
19499
# `config.status --recheck' to rerun these tests and create the
19500
# libtool script then.
19501
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19502
if test -f "$ltmain_in"; then
19503
test -f Makefile && make "$ltmain"
19509
ac_cpp='$CPP $CPPFLAGS'
19510
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19511
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19512
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19524
# Source file extension for RC test sources.
19527
# Object file extension for compiled RC test sources.
19531
# Code to be used in simple compile tests
19532
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19534
# Code to be used in simple link tests
19535
lt_simple_link_test_code="$lt_simple_compile_test_code"
19537
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19539
# If no C compiler was specified, use CC.
19542
# If no C compiler flags were specified, use CFLAGS.
19543
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19545
# Allow CC to be a program name with arguments.
19549
# save warnings/boilerplate of simple test code
19550
ac_outfile=conftest.$ac_objext
19551
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19552
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19553
_lt_compiler_boilerplate=`cat conftest.err`
19556
ac_outfile=conftest.$ac_objext
19557
echo "$lt_simple_link_test_code" >conftest.$ac_ext
19558
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19559
_lt_linker_boilerplate=`cat conftest.err`
19563
# Allow CC to be a program name with arguments.
19568
for cc_temp in $compiler""; do
19570
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19571
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19576
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19578
lt_cv_prog_compiler_c_o_RC=yes
19580
# The else clause should only fire when bootstrapping the
19581
# libtool distribution, otherwise you forgot to ship ltmain.sh
19582
# with your package, and you will get complaints that there are
19583
# no rules to generate ltmain.sh.
19584
if test -f "$ltmain"; then
19585
# See if we are running on zsh, and set the options which allow our commands through
19586
# without removal of \ escapes.
19587
if test -n "${ZSH_VERSION+set}" ; then
19588
setopt NO_GLOB_SUBST
19590
# Now quote all the things that may contain metacharacters while being
19591
# careful not to overquote the AC_SUBSTed values. We take copies of the
19592
# variables and quote the copies for generation of the libtool script.
19593
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19595
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19596
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19597
deplibs_check_method reload_flag reload_cmds need_locks \
19598
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19599
lt_cv_sys_global_symbol_to_c_name_address \
19600
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19601
old_postinstall_cmds old_postuninstall_cmds \
19605
lt_prog_compiler_wl_RC \
19606
lt_prog_compiler_pic_RC \
19607
lt_prog_compiler_static_RC \
19608
lt_prog_compiler_no_builtin_flag_RC \
19609
export_dynamic_flag_spec_RC \
19610
thread_safe_flag_spec_RC \
19611
whole_archive_flag_spec_RC \
19612
enable_shared_with_static_runtimes_RC \
19613
old_archive_cmds_RC \
19614
old_archive_from_new_cmds_RC \
19615
predep_objects_RC \
19616
postdep_objects_RC \
19619
compiler_lib_search_path_RC \
19620
compiler_lib_search_dirs_RC \
19622
archive_expsym_cmds_RC \
19623
postinstall_cmds_RC \
19624
postuninstall_cmds_RC \
19625
old_archive_from_expsyms_cmds_RC \
19626
allow_undefined_flag_RC \
19627
no_undefined_flag_RC \
19628
export_symbols_cmds_RC \
19629
hardcode_libdir_flag_spec_RC \
19630
hardcode_libdir_flag_spec_ld_RC \
19631
hardcode_libdir_separator_RC \
19632
hardcode_automatic_RC \
19634
module_expsym_cmds_RC \
19635
lt_cv_prog_compiler_c_o_RC \
19636
fix_srcfile_path_RC \
19637
exclude_expsyms_RC \
19638
include_expsyms_RC; do
19641
old_archive_cmds_RC | \
19642
old_archive_from_new_cmds_RC | \
19643
archive_cmds_RC | \
19644
archive_expsym_cmds_RC | \
19646
module_expsym_cmds_RC | \
19647
old_archive_from_expsyms_cmds_RC | \
19648
export_symbols_cmds_RC | \
19649
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19650
postinstall_cmds | postuninstall_cmds | \
19651
old_postinstall_cmds | old_postuninstall_cmds | \
19652
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19653
# Double-quote double-evaled strings.
19654
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19657
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19663
*'\$0 --fallback-echo"')
19664
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19670
cat <<__EOF__ >> "$cfgfile"
19671
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19673
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19675
# Shell to use when invoking shell scripts.
19678
# Whether or not to build shared libraries.
19679
build_libtool_libs=$enable_shared
19681
# Whether or not to build static libraries.
19682
build_old_libs=$enable_static
19684
# Whether or not to add -lc for building shared libraries.
19685
build_libtool_need_lc=$archive_cmds_need_lc_RC
19687
# Whether or not to disallow shared libs when runtime libs are static
19688
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19690
# Whether or not to optimize for fast installation.
19691
fast_install=$enable_fast_install
19694
host_alias=$host_alias
19698
# The build system.
19699
build_alias=$build_alias
19703
# An echo program that does not interpret backslashes.
19708
AR_FLAGS=$lt_AR_FLAGS
19713
# LTCC compiler flags.
19714
LTCFLAGS=$lt_LTCFLAGS
19716
# A language-specific compiler.
19719
# Is the compiler the GNU C compiler?
19725
# The linker used to build libraries.
19728
# Whether we need hard or soft links.
19731
# A BSD-compatible nm program.
19734
# A symbol stripping program
19737
# Used to examine libraries when file_magic_cmd begins "file"
19738
MAGIC_CMD=$MAGIC_CMD
19740
# Used on cygwin: DLL creation program.
19743
# Used on cygwin: object dumper.
19746
# Used on cygwin: assembler.
19749
# The name of the directory that contains temporary libtool files.
19752
# How to create reloadable object files.
19753
reload_flag=$lt_reload_flag
19754
reload_cmds=$lt_reload_cmds
19756
# How to pass a linker flag through the compiler.
19757
wl=$lt_lt_prog_compiler_wl_RC
19759
# Object file suffix (normally "o").
19760
objext="$ac_objext"
19762
# Old archive suffix (normally "a").
19765
# Shared library suffix (normally ".so").
19766
shrext_cmds='$shrext_cmds'
19768
# Executable file suffix (normally "").
19771
# Additional compiler flags for building library objects.
19772
pic_flag=$lt_lt_prog_compiler_pic_RC
19775
# What is the maximum length of a command?
19776
max_cmd_len=$lt_cv_sys_max_cmd_len
19778
# Does compiler simultaneously support -c and -o options?
19779
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19781
# Must we lock files when doing compilation?
19782
need_locks=$lt_need_locks
19784
# Do we need the lib prefix for modules?
19785
need_lib_prefix=$need_lib_prefix
19787
# Do we need a version for libraries?
19788
need_version=$need_version
19790
# Whether dlopen is supported.
19791
dlopen_support=$enable_dlopen
19793
# Whether dlopen of programs is supported.
19794
dlopen_self=$enable_dlopen_self
19796
# Whether dlopen of statically linked programs is supported.
19797
dlopen_self_static=$enable_dlopen_self_static
19799
# Compiler flag to prevent dynamic linking.
19800
link_static_flag=$lt_lt_prog_compiler_static_RC
19802
# Compiler flag to turn off builtin functions.
19803
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19805
# Compiler flag to allow reflexive dlopens.
19806
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19808
# Compiler flag to generate shared objects directly from archives.
19809
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19811
# Compiler flag to generate thread-safe objects.
19812
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19814
# Library versioning type.
19815
version_type=$version_type
19817
# Format of library name prefix.
19818
libname_spec=$lt_libname_spec
19820
# List of archive names. First name is the real one, the rest are links.
19821
# The last name is the one that the linker finds with -lNAME.
19822
library_names_spec=$lt_library_names_spec
19824
# The coded name of the library, if different from the real name.
19825
soname_spec=$lt_soname_spec
19827
# Commands used to build and install an old-style archive.
19829
old_archive_cmds=$lt_old_archive_cmds_RC
19830
old_postinstall_cmds=$lt_old_postinstall_cmds
19831
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19833
# Create an old-style archive from a shared archive.
19834
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19836
# Create a temporary old-style archive to link instead of a shared archive.
19837
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19839
# Commands used to build and install a shared archive.
19840
archive_cmds=$lt_archive_cmds_RC
19841
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19842
postinstall_cmds=$lt_postinstall_cmds
19843
postuninstall_cmds=$lt_postuninstall_cmds
19845
# Commands used to build a loadable module (assumed same as above if empty)
19846
module_cmds=$lt_module_cmds_RC
19847
module_expsym_cmds=$lt_module_expsym_cmds_RC
19849
# Commands to strip libraries.
19850
old_striplib=$lt_old_striplib
19851
striplib=$lt_striplib
19853
# Dependencies to place before the objects being linked to create a
19855
predep_objects=$lt_predep_objects_RC
19857
# Dependencies to place after the objects being linked to create a
19859
postdep_objects=$lt_postdep_objects_RC
19861
# Dependencies to place before the objects being linked to create a
19863
predeps=$lt_predeps_RC
19865
# Dependencies to place after the objects being linked to create a
19867
postdeps=$lt_postdeps_RC
19869
# The directories searched by this compiler when creating a shared
19871
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19873
# The library search path used internally by the compiler when linking
19874
# a shared library.
19875
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19877
# Method to check whether dependent libraries are shared objects.
19878
deplibs_check_method=$lt_deplibs_check_method
19880
# Command to use when deplibs_check_method == file_magic.
19881
file_magic_cmd=$lt_file_magic_cmd
19883
# Flag that allows shared libraries with undefined symbols to be built.
19884
allow_undefined_flag=$lt_allow_undefined_flag_RC
19886
# Flag that forces no undefined symbols.
19887
no_undefined_flag=$lt_no_undefined_flag_RC
19889
# Commands used to finish a libtool library installation in a directory.
19890
finish_cmds=$lt_finish_cmds
19892
# Same as above, but a single script fragment to be evaled but not shown.
19893
finish_eval=$lt_finish_eval
19895
# Take the output of nm and produce a listing of raw symbols and C names.
19896
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19898
# Transform the output of nm in a proper C declaration
19899
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19901
# Transform the output of nm in a C name address pair
19902
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19904
# This is the shared library runtime path variable.
19905
runpath_var=$runpath_var
19907
# This is the shared library path variable.
19908
shlibpath_var=$shlibpath_var
19910
# Is shlibpath searched before the hard-coded library search path?
19911
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19913
# How to hardcode a shared library path into an executable.
19914
hardcode_action=$hardcode_action_RC
19916
# Whether we should hardcode library paths into libraries.
19917
hardcode_into_libs=$hardcode_into_libs
19919
# Flag to hardcode \$libdir into a binary during linking.
19920
# This must work even if \$libdir does not exist.
19921
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19923
# If ld is used when linking, flag to hardcode \$libdir into
19924
# a binary during linking. This must work even if \$libdir does
19926
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19928
# Whether we need a single -rpath flag with a separated argument.
19929
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19931
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19932
# resulting binary.
19933
hardcode_direct=$hardcode_direct_RC
19935
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19936
# resulting binary.
19937
hardcode_minus_L=$hardcode_minus_L_RC
19939
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19940
# the resulting binary.
19941
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19943
# Set to yes if building a shared library automatically hardcodes DIR into the library
19944
# and all subsequent libraries and executables linked against it.
19945
hardcode_automatic=$hardcode_automatic_RC
19947
# Variables whose values should be saved in libtool wrapper scripts and
19948
# restored at relink time.
19949
variables_saved_for_relink="$variables_saved_for_relink"
19951
# Whether libtool must link a program against all its dependency libraries.
19952
link_all_deplibs=$link_all_deplibs_RC
19954
# Compile-time system search path for libraries
19955
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19957
# Run-time system search path for libraries
19958
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19960
# Fix the shell variable \$srcfile for the compiler.
19961
fix_srcfile_path=$lt_fix_srcfile_path
19963
# Set to yes if exported symbols are required.
19964
always_export_symbols=$always_export_symbols_RC
19966
# The commands to list exported symbols.
19967
export_symbols_cmds=$lt_export_symbols_cmds_RC
19969
# The commands to extract the exported symbol list from a shared archive.
19970
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19972
# Symbols that should not be listed in the preloaded symbols.
19973
exclude_expsyms=$lt_exclude_expsyms_RC
19975
# Symbols that must always be exported.
19976
include_expsyms=$lt_include_expsyms_RC
19978
# ### END LIBTOOL TAG CONFIG: $tagname
19984
# If there is no Makefile yet, we rely on a make rule to execute
19985
# `config.status --recheck' to rerun these tests and create the
19986
# libtool script then.
19987
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19988
if test -f "$ltmain_in"; then
19989
test -f Makefile && make "$ltmain"
19995
ac_cpp='$CPP $CPPFLAGS'
19996
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19997
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19998
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20005
{ { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20006
$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20007
{ (exit 1); exit 1; }; }
20011
# Append the new tag name to the list of available tags.
20012
if test -n "$tagname" ; then
20013
available_tags="$available_tags $tagname"
20019
# Now substitute the updated list of available tags.
20020
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20021
mv "${ofile}T" "$ofile"
20025
{ { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20026
$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20027
{ (exit 1); exit 1; }; }
20033
# This can be used to rebuild libtool when needed
20034
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20036
# Always use our own libtool.
20037
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20039
# Prevent multiple expansion