10560
# Report which library types will actually be built
10561
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10562
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10563
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10564
$as_echo "$can_build_shared" >&6; }
10566
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10567
$as_echo_n "checking whether to build shared libraries... " >&6; }
10568
test "$can_build_shared" = "no" && enable_shared=no
10570
# On AIX, shared libraries and static libraries use the same namespace, and
10571
# are all built from PIC.
10574
test "$enable_shared" = yes && enable_static=no
10575
if test -n "$RANLIB"; then
10576
archive_cmds="$archive_cmds~\$RANLIB \$lib"
10577
postinstall_cmds='$RANLIB $lib'
10582
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10583
test "$enable_shared" = yes && enable_static=no
10587
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10588
$as_echo "$enable_shared" >&6; }
10590
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10591
$as_echo_n "checking whether to build static libraries... " >&6; }
10592
# Make sure either enable_shared or enable_static is yes.
10593
test "$enable_shared" = yes || enable_static=yes
10594
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10595
$as_echo "$enable_static" >&6; }
10597
# The else clause should only fire when bootstrapping the
10598
# libtool distribution, otherwise you forgot to ship ltmain.sh
10599
# with your package, and you will get complaints that there are
10600
# no rules to generate ltmain.sh.
10601
if test -f "$ltmain"; then
10602
# See if we are running on zsh, and set the options which allow our commands through
10603
# without removal of \ escapes.
10604
if test -n "${ZSH_VERSION+set}" ; then
10605
setopt NO_GLOB_SUBST
10607
# Now quote all the things that may contain metacharacters while being
10608
# careful not to overquote the AC_SUBSTed values. We take copies of the
10609
# variables and quote the copies for generation of the libtool script.
10610
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10612
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10613
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10614
deplibs_check_method reload_flag reload_cmds need_locks \
10615
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10616
lt_cv_sys_global_symbol_to_c_name_address \
10617
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10618
old_postinstall_cmds old_postuninstall_cmds \
10622
lt_prog_compiler_wl \
10623
lt_prog_compiler_pic \
10624
lt_prog_compiler_static \
10625
lt_prog_compiler_no_builtin_flag \
10626
export_dynamic_flag_spec \
10627
thread_safe_flag_spec \
10628
whole_archive_flag_spec \
10629
enable_shared_with_static_runtimes \
10631
old_archive_from_new_cmds \
10636
compiler_lib_search_path \
10637
compiler_lib_search_dirs \
10639
archive_expsym_cmds \
10641
postuninstall_cmds \
10642
old_archive_from_expsyms_cmds \
10643
allow_undefined_flag \
10644
no_undefined_flag \
10645
export_symbols_cmds \
10646
hardcode_libdir_flag_spec \
10647
hardcode_libdir_flag_spec_ld \
10648
hardcode_libdir_separator \
10649
hardcode_automatic \
10651
module_expsym_cmds \
10652
lt_cv_prog_compiler_c_o \
10655
include_expsyms; do
10658
old_archive_cmds | \
10659
old_archive_from_new_cmds | \
10661
archive_expsym_cmds | \
10663
module_expsym_cmds | \
10664
old_archive_from_expsyms_cmds | \
10665
export_symbols_cmds | \
10666
extract_expsyms_cmds | reload_cmds | finish_cmds | \
10667
postinstall_cmds | postuninstall_cmds | \
10668
old_postinstall_cmds | old_postuninstall_cmds | \
10669
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10670
# Double-quote double-evaled strings.
10671
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10674
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10680
*'\$0 --fallback-echo"')
10681
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10685
cfgfile="${ofile}T"
10686
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10688
{ $as_echo "$as_me:$LINENO: creating $ofile" >&5
10689
$as_echo "$as_me: creating $ofile" >&6;}
10691
cat <<__EOF__ >> "$cfgfile"
10694
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10695
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10696
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10698
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10699
# Free Software Foundation, Inc.
10701
# This file is part of GNU Libtool:
10702
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10704
# This program is free software; you can redistribute it and/or modify
10705
# it under the terms of the GNU General Public License as published by
10706
# the Free Software Foundation; either version 2 of the License, or
10707
# (at your option) any later version.
10709
# This program is distributed in the hope that it will be useful, but
10710
# WITHOUT ANY WARRANTY; without even the implied warranty of
10711
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10712
# General Public License for more details.
10714
# You should have received a copy of the GNU General Public License
10715
# along with this program; if not, write to the Free Software
10716
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10718
# As a special exception to the GNU General Public License, if you
10719
# distribute this file as part of a program that contains a
10720
# configuration script generated by Autoconf, you may include it under
10721
# the same distribution terms that you use for the rest of that program.
10723
# A sed program that does not truncate output.
10726
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10727
Xsed="$SED -e 1s/^X//"
10729
# The HP-UX ksh and POSIX shell print the target directory to stdout
10730
# if CDPATH is set.
10731
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10733
# The names of the tagged configurations supported by this script.
10736
# ### BEGIN LIBTOOL CONFIG
10738
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10740
# Shell to use when invoking shell scripts.
10743
# Whether or not to build shared libraries.
10744
build_libtool_libs=$enable_shared
10746
# Whether or not to build static libraries.
10747
build_old_libs=$enable_static
10749
# Whether or not to add -lc for building shared libraries.
10750
build_libtool_need_lc=$archive_cmds_need_lc
10752
# Whether or not to disallow shared libs when runtime libs are static
10753
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10755
# Whether or not to optimize for fast installation.
10756
fast_install=$enable_fast_install
10759
host_alias=$host_alias
10763
# The build system.
10764
build_alias=$build_alias
10768
# An echo program that does not interpret backslashes.
10773
AR_FLAGS=$lt_AR_FLAGS
10778
# LTCC compiler flags.
10779
LTCFLAGS=$lt_LTCFLAGS
10781
# A language-specific compiler.
10784
# Is the compiler the GNU C compiler?
10790
# The linker used to build libraries.
10793
# Whether we need hard or soft links.
10796
# A BSD-compatible nm program.
10799
# A symbol stripping program
10802
# Used to examine libraries when file_magic_cmd begins "file"
10803
MAGIC_CMD=$MAGIC_CMD
10805
# Used on cygwin: DLL creation program.
10808
# Used on cygwin: object dumper.
10811
# Used on cygwin: assembler.
10814
# The name of the directory that contains temporary libtool files.
10817
# How to create reloadable object files.
10818
reload_flag=$lt_reload_flag
10819
reload_cmds=$lt_reload_cmds
10821
# How to pass a linker flag through the compiler.
10822
wl=$lt_lt_prog_compiler_wl
10824
# Object file suffix (normally "o").
10825
objext="$ac_objext"
10827
# Old archive suffix (normally "a").
10830
# Shared library suffix (normally ".so").
10831
shrext_cmds='$shrext_cmds'
10833
# Executable file suffix (normally "").
10836
# Additional compiler flags for building library objects.
10837
pic_flag=$lt_lt_prog_compiler_pic
10840
# What is the maximum length of a command?
10841
max_cmd_len=$lt_cv_sys_max_cmd_len
10843
# Does compiler simultaneously support -c and -o options?
10844
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10846
# Must we lock files when doing compilation?
10847
need_locks=$lt_need_locks
10849
# Do we need the lib prefix for modules?
10850
need_lib_prefix=$need_lib_prefix
10852
# Do we need a version for libraries?
10853
need_version=$need_version
10855
# Whether dlopen is supported.
10856
dlopen_support=$enable_dlopen
10858
# Whether dlopen of programs is supported.
10859
dlopen_self=$enable_dlopen_self
10861
# Whether dlopen of statically linked programs is supported.
10862
dlopen_self_static=$enable_dlopen_self_static
10864
# Compiler flag to prevent dynamic linking.
10865
link_static_flag=$lt_lt_prog_compiler_static
10867
# Compiler flag to turn off builtin functions.
10868
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10870
# Compiler flag to allow reflexive dlopens.
10871
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10873
# Compiler flag to generate shared objects directly from archives.
10874
whole_archive_flag_spec=$lt_whole_archive_flag_spec
10876
# Compiler flag to generate thread-safe objects.
10877
thread_safe_flag_spec=$lt_thread_safe_flag_spec
10879
# Library versioning type.
10880
version_type=$version_type
10882
# Format of library name prefix.
10883
libname_spec=$lt_libname_spec
10885
# List of archive names. First name is the real one, the rest are links.
10886
# The last name is the one that the linker finds with -lNAME.
10887
library_names_spec=$lt_library_names_spec
10889
# The coded name of the library, if different from the real name.
10890
soname_spec=$lt_soname_spec
10892
# Commands used to build and install an old-style archive.
10894
old_archive_cmds=$lt_old_archive_cmds
10895
old_postinstall_cmds=$lt_old_postinstall_cmds
10896
old_postuninstall_cmds=$lt_old_postuninstall_cmds
10898
# Create an old-style archive from a shared archive.
10899
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10901
# Create a temporary old-style archive to link instead of a shared archive.
10902
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10904
# Commands used to build and install a shared archive.
10905
archive_cmds=$lt_archive_cmds
10906
archive_expsym_cmds=$lt_archive_expsym_cmds
10907
postinstall_cmds=$lt_postinstall_cmds
10908
postuninstall_cmds=$lt_postuninstall_cmds
10910
# Commands used to build a loadable module (assumed same as above if empty)
10911
module_cmds=$lt_module_cmds
10912
module_expsym_cmds=$lt_module_expsym_cmds
10914
# Commands to strip libraries.
10915
old_striplib=$lt_old_striplib
10916
striplib=$lt_striplib
10918
# Dependencies to place before the objects being linked to create a
10920
predep_objects=$lt_predep_objects
10922
# Dependencies to place after the objects being linked to create a
10924
postdep_objects=$lt_postdep_objects
10926
# Dependencies to place before the objects being linked to create a
10928
predeps=$lt_predeps
10930
# Dependencies to place after the objects being linked to create a
10932
postdeps=$lt_postdeps
10934
# The directories searched by this compiler when creating a shared
10936
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10938
# The library search path used internally by the compiler when linking
10939
# a shared library.
10940
compiler_lib_search_path=$lt_compiler_lib_search_path
10942
# Method to check whether dependent libraries are shared objects.
10943
deplibs_check_method=$lt_deplibs_check_method
10945
# Command to use when deplibs_check_method == file_magic.
10946
file_magic_cmd=$lt_file_magic_cmd
10948
# Flag that allows shared libraries with undefined symbols to be built.
10949
allow_undefined_flag=$lt_allow_undefined_flag
10951
# Flag that forces no undefined symbols.
10952
no_undefined_flag=$lt_no_undefined_flag
10954
# Commands used to finish a libtool library installation in a directory.
10955
finish_cmds=$lt_finish_cmds
10957
# Same as above, but a single script fragment to be evaled but not shown.
10958
finish_eval=$lt_finish_eval
10960
# Take the output of nm and produce a listing of raw symbols and C names.
10961
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10963
# Transform the output of nm in a proper C declaration
10964
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10966
# Transform the output of nm in a C name address pair
10967
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10969
# This is the shared library runtime path variable.
10970
runpath_var=$runpath_var
10972
# This is the shared library path variable.
10973
shlibpath_var=$shlibpath_var
10975
# Is shlibpath searched before the hard-coded library search path?
10976
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10978
# How to hardcode a shared library path into an executable.
10979
hardcode_action=$hardcode_action
10981
# Whether we should hardcode library paths into libraries.
10982
hardcode_into_libs=$hardcode_into_libs
10984
# Flag to hardcode \$libdir into a binary during linking.
10985
# This must work even if \$libdir does not exist.
10986
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10988
# If ld is used when linking, flag to hardcode \$libdir into
10989
# a binary during linking. This must work even if \$libdir does
10991
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10993
# Whether we need a single -rpath flag with a separated argument.
10994
hardcode_libdir_separator=$lt_hardcode_libdir_separator
10996
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10997
# resulting binary.
10998
hardcode_direct=$hardcode_direct
11000
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11001
# resulting binary.
11002
hardcode_minus_L=$hardcode_minus_L
11004
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11005
# the resulting binary.
11006
hardcode_shlibpath_var=$hardcode_shlibpath_var
11008
# Set to yes if building a shared library automatically hardcodes DIR into the library
11009
# and all subsequent libraries and executables linked against it.
11010
hardcode_automatic=$hardcode_automatic
11012
# Variables whose values should be saved in libtool wrapper scripts and
11013
# restored at relink time.
11014
variables_saved_for_relink="$variables_saved_for_relink"
11016
# Whether libtool must link a program against all its dependency libraries.
11017
link_all_deplibs=$link_all_deplibs
11019
# Compile-time system search path for libraries
11020
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11022
# Run-time system search path for libraries
11023
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11025
# Fix the shell variable \$srcfile for the compiler.
11026
fix_srcfile_path=$lt_fix_srcfile_path
11028
# Set to yes if exported symbols are required.
11029
always_export_symbols=$always_export_symbols
11031
# The commands to list exported symbols.
11032
export_symbols_cmds=$lt_export_symbols_cmds
11034
# The commands to extract the exported symbol list from a shared archive.
11035
extract_expsyms_cmds=$lt_extract_expsyms_cmds
11037
# Symbols that should not be listed in the preloaded symbols.
11038
exclude_expsyms=$lt_exclude_expsyms
11040
# Symbols that must always be exported.
11041
include_expsyms=$lt_include_expsyms
11043
# ### END LIBTOOL CONFIG
11050
cat <<\EOF >> "$cfgfile"
11052
# AIX sometimes has problems with the GCC collect2 program. For some
11053
# reason, if we set the COLLECT_NAMES environment variable, the problems
11054
# vanish in a puff of smoke.
11055
if test "X${COLLECT_NAMES+set}" != Xset; then
11057
export COLLECT_NAMES
11063
# We use sed instead of cat because bash on DJGPP gets confused if
11064
# if finds mixed CR/LF and LF-only lines. Since sed operates in
11065
# text mode, it properly converts lines to CR/LF. This bash problem
11066
# is reportedly fixed, but why not run on old versions too?
11067
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11069
mv -f "$cfgfile" "$ofile" || \
11070
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11074
# If there is no Makefile yet, we rely on a make rule to execute
11075
# `config.status --recheck' to rerun these tests and create the
11076
# libtool script then.
11077
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11078
if test -f "$ltmain_in"; then
11079
test -f Makefile && make "$ltmain"
11085
ac_cpp='$CPP $CPPFLAGS'
11086
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11087
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11088
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11093
# Check whether --with-tags was given.
11094
if test "${with_tags+set}" = set; then
11095
withval=$with_tags; tagnames="$withval"
11099
if test -f "$ltmain" && test -n "$tagnames"; then
11100
if test ! -f "${ofile}"; then
11101
{ $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11102
$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11105
if test -z "$LTCC"; then
11106
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11107
if test -z "$LTCC"; then
11108
{ $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11109
$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11111
{ $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11112
$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11115
if test -z "$LTCFLAGS"; then
11116
eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11119
# Extract list of available tagged configurations in $ofile.
11120
# Note that this assumes the entire list is on one line.
11121
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11123
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11124
for tagname in $tagnames; do
11126
# Check whether tagname contains only valid characters
11127
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11129
*) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11130
$as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
11131
{ (exit 1); exit 1; }; }
11135
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11137
{ { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11138
$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11139
{ (exit 1); exit 1; }; }
11142
# Update the list of available tags.
11143
if test -n "$tagname"; then
11144
echo appending configuration tag \"$tagname\" to $ofile
11148
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11149
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11150
(test "X$CXX" != "Xg++"))) ; then
11152
ac_cpp='$CXXCPP $CPPFLAGS'
11153
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11154
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11155
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11160
archive_cmds_need_lc_CXX=no
11161
allow_undefined_flag_CXX=
11162
always_export_symbols_CXX=no
11163
archive_expsym_cmds_CXX=
11164
export_dynamic_flag_spec_CXX=
11165
hardcode_direct_CXX=no
11166
hardcode_libdir_flag_spec_CXX=
11167
hardcode_libdir_flag_spec_ld_CXX=
11168
hardcode_libdir_separator_CXX=
11169
hardcode_minus_L_CXX=no
11170
hardcode_shlibpath_var_CXX=unsupported
11171
hardcode_automatic_CXX=no
11173
module_expsym_cmds_CXX=
11174
link_all_deplibs_CXX=unknown
11175
old_archive_cmds_CXX=$old_archive_cmds
11176
no_undefined_flag_CXX=
11177
whole_archive_flag_spec_CXX=
11178
enable_shared_with_static_runtimes_CXX=no
11180
# Dependencies to place before and after the object being linked:
11181
predep_objects_CXX=
11182
postdep_objects_CXX=
11185
compiler_lib_search_path_CXX=
11186
compiler_lib_search_dirs_CXX=
11188
# Source file extension for C++ test sources.
11191
# Object file extension for compiled C++ test sources.
11195
# Code to be used in simple compile tests
11196
lt_simple_compile_test_code="int some_variable = 0;"
11198
# Code to be used in simple link tests
11199
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11201
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11203
# If no C compiler was specified, use CC.
11206
# If no C compiler flags were specified, use CFLAGS.
11207
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11209
# Allow CC to be a program name with arguments.
11213
# save warnings/boilerplate of simple test code
11214
ac_outfile=conftest.$ac_objext
11215
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11216
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11217
_lt_compiler_boilerplate=`cat conftest.err`
11220
ac_outfile=conftest.$ac_objext
11221
echo "$lt_simple_link_test_code" >conftest.$ac_ext
11222
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11223
_lt_linker_boilerplate=`cat conftest.err`
11227
# Allow CC to be a program name with arguments.
11232
lt_save_with_gnu_ld=$with_gnu_ld
11233
lt_save_path_LD=$lt_cv_path_LD
11234
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11235
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11237
$as_unset lt_cv_prog_gnu_ld
11239
if test -n "${lt_cv_path_LDCXX+set}"; then
11240
lt_cv_path_LD=$lt_cv_path_LDCXX
11242
$as_unset lt_cv_path_LD
11244
test -z "${LDCXX+set}" || LD=$LDCXX
11248
for cc_temp in $compiler""; do
11250
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11251
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11256
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11259
# We don't want -fno-exception wen compiling C++ code, so set the
11260
# no_builtin_flag separately
11261
if test "$GXX" = yes; then
11262
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11264
lt_prog_compiler_no_builtin_flag_CXX=
11267
if test "$GXX" = yes; then
11268
# Set up default GNU C++ configuration
11271
# Check whether --with-gnu-ld was given.
11272
if test "${with_gnu_ld+set}" = set; then
11273
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11279
if test "$GCC" = yes; then
11280
# Check if gcc -print-prog-name=ld gives a path.
11281
{ $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11282
$as_echo_n "checking for ld used by $CC... " >&6; }
11285
# gcc leaves a trailing carriage return which upsets mingw
11286
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11288
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11291
# Accept absolute paths.
11293
re_direlt='/[^/][^/]*/\.\./'
11294
# Canonicalize the pathname of ld
11295
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11296
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11297
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11299
test -z "$LD" && LD="$ac_prog"
11302
# If it fails, then pretend we aren't using GCC.
11306
# If it is relative, then search for the first ld in PATH.
11307
with_gnu_ld=unknown
11310
elif test "$with_gnu_ld" = yes; then
11311
{ $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
11312
$as_echo_n "checking for GNU ld... " >&6; }
11314
{ $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11315
$as_echo_n "checking for non-GNU ld... " >&6; }
11317
if test "${lt_cv_path_LD+set}" = set; then
11318
$as_echo_n "(cached) " >&6
11320
if test -z "$LD"; then
11321
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11322
for ac_dir in $PATH; do
11324
test -z "$ac_dir" && ac_dir=.
11325
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11326
lt_cv_path_LD="$ac_dir/$ac_prog"
11327
# Check to see if the program is GNU ld. I'd rather use --version,
11328
# but apparently some variants of GNU ld only accept -v.
11329
# Break only if it was the GNU/non-GNU ld that we prefer.
11330
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11331
*GNU* | *'with BFD'*)
11332
test "$with_gnu_ld" != no && break
11335
test "$with_gnu_ld" != yes && break
11342
lt_cv_path_LD="$LD" # Let the user override the test with a path.
11346
LD="$lt_cv_path_LD"
11347
if test -n "$LD"; then
11348
{ $as_echo "$as_me:$LINENO: result: $LD" >&5
11349
$as_echo "$LD" >&6; }
11351
{ $as_echo "$as_me:$LINENO: result: no" >&5
11352
$as_echo "no" >&6; }
11354
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11355
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11356
{ (exit 1); exit 1; }; }
11357
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11358
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11359
if test "${lt_cv_prog_gnu_ld+set}" = set; then
11360
$as_echo_n "(cached) " >&6
11362
# I'd rather use --version here, but apparently some GNU lds only accept -v.
11363
case `$LD -v 2>&1 </dev/null` in
11364
*GNU* | *'with BFD'*)
11365
lt_cv_prog_gnu_ld=yes
11368
lt_cv_prog_gnu_ld=no
11372
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11373
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11374
with_gnu_ld=$lt_cv_prog_gnu_ld
11378
# Check if GNU C++ uses GNU ld as the underlying linker, since the
11379
# archiving commands below assume that GNU ld is being used.
11380
if test "$with_gnu_ld" = yes; then
11381
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11382
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'
11384
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11385
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11387
# If archive_cmds runs LD, not CC, wlarc should be empty
11388
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11389
# investigate it a little bit more. (MM)
11392
# ancient GNU ld didn't support --whole-archive et. al.
11393
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11394
grep 'no-whole-archive' > /dev/null; then
11395
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11397
whole_archive_flag_spec_CXX=
11403
# A generic and very simple default shared library creation
11404
# command for GNU C++ for the case where it uses the native
11405
# linker, instead of GNU ld. If possible, this setting should
11406
# overridden to take advantage of the native linker features on
11407
# the platform it is being used on.
11408
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11411
# Commands to make compiler produce verbose output that lists
11412
# what "hidden" libraries, object files and flags are used when
11413
# linking a shared library.
11414
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11422
# PORTME: fill in a description of your system's C++ link characteristics
11423
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11424
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11428
# FIXME: insert proper C++ library support
11432
if test "$host_cpu" = ia64; then
11433
# On IA64, the linker does run time linking by default, so we don't
11434
# have to do anything special.
11435
aix_use_runtimelinking=no
11436
exp_sym_flag='-Bexport'
11439
aix_use_runtimelinking=no
11441
# Test if we are trying to use run time linking or normal
11442
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11443
# need to do runtime linking.
11444
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11445
for ld_flag in $LDFLAGS; do
11448
aix_use_runtimelinking=yes
11456
exp_sym_flag='-bexport'
11457
no_entry_flag='-bnoentry'
11460
# When large executables or shared objects are built, AIX ld can
11461
# have problems creating the table of contents. If linking a library
11462
# or program results in "error TOC overflow" add -mminimal-toc to
11463
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11464
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11466
archive_cmds_CXX=''
11467
hardcode_direct_CXX=yes
11468
hardcode_libdir_separator_CXX=':'
11469
link_all_deplibs_CXX=yes
11471
if test "$GXX" = yes; then
11472
case $host_os in aix4.[012]|aix4.[012].*)
11473
# We only want to do this on AIX 4.2 and lower, the check
11474
# below for broken collect2 doesn't work under 4.3+
11475
collect2name=`${CC} -print-prog-name=collect2`
11476
if test -f "$collect2name" && \
11477
strings "$collect2name" | grep resolve_lib_name >/dev/null
11479
# We have reworked collect2
11482
# We have old collect2
11483
hardcode_direct_CXX=unsupported
11484
# It fails to find uninstalled libraries when the uninstalled
11485
# path is not listed in the libpath. Setting hardcode_minus_L
11486
# to unsupported forces relinking
11487
hardcode_minus_L_CXX=yes
11488
hardcode_libdir_flag_spec_CXX='-L$libdir'
11489
hardcode_libdir_separator_CXX=
11493
shared_flag='-shared'
11494
if test "$aix_use_runtimelinking" = yes; then
11495
shared_flag="$shared_flag "'${wl}-G'
11499
if test "$host_cpu" = ia64; then
11500
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11501
# chokes on -Wl,-G. The following line is correct:
11504
if test "$aix_use_runtimelinking" = yes; then
11505
shared_flag='${wl}-G'
11507
shared_flag='${wl}-bM:SRE'
11512
# It seems that -bexpall does not export symbols beginning with
11513
# underscore (_), so it is better to generate a list of symbols to export.
11514
always_export_symbols_CXX=yes
11515
if test "$aix_use_runtimelinking" = yes; then
11516
# Warning - without using the other runtime loading flags (-brtl),
11517
# -berok will link without error, but may produce a broken library.
11518
allow_undefined_flag_CXX='-berok'
11519
# Determine the default libpath from the value encoded in an empty executable.
11520
cat >conftest.$ac_ext <<_ACEOF
11523
cat confdefs.h >>conftest.$ac_ext
11524
cat >>conftest.$ac_ext <<_ACEOF
11525
/* end confdefs.h. */
11535
rm -f conftest.$ac_objext conftest$ac_exeext
11536
if { (ac_try="$ac_link"
11537
case "(($ac_try" in
11538
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11539
*) ac_try_echo=$ac_try;;
11541
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11542
$as_echo "$ac_try_echo") >&5
11543
(eval "$ac_link") 2>conftest.er1
11545
grep -v '^ *+' conftest.er1 >conftest.err
11547
cat conftest.err >&5
11548
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11549
(exit $ac_status); } && {
11550
test -z "$ac_cxx_werror_flag" ||
11551
test ! -s conftest.err
11552
} && test -s conftest$ac_exeext && {
11553
test "$cross_compiling" = yes ||
11554
$as_test_x conftest$ac_exeext
11557
lt_aix_libpath_sed='
11558
/Import File Strings/,/^$/ {
11564
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11565
# Check for a 64-bit object if we didn't find anything.
11566
if test -z "$aix_libpath"; then
11567
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11570
$as_echo "$as_me: failed program was:" >&5
11571
sed 's/^/| /' conftest.$ac_ext >&5
11576
rm -rf conftest.dSYM
11577
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11578
conftest$ac_exeext conftest.$ac_ext
11579
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11581
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11583
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"
11585
if test "$host_cpu" = ia64; then
11586
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11587
allow_undefined_flag_CXX="-z nodefs"
11588
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"
11590
# Determine the default libpath from the value encoded in an empty executable.
11591
cat >conftest.$ac_ext <<_ACEOF
11594
cat confdefs.h >>conftest.$ac_ext
11595
cat >>conftest.$ac_ext <<_ACEOF
11596
/* end confdefs.h. */
11606
rm -f conftest.$ac_objext conftest$ac_exeext
11607
if { (ac_try="$ac_link"
11608
case "(($ac_try" in
11609
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11610
*) ac_try_echo=$ac_try;;
11612
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11613
$as_echo "$ac_try_echo") >&5
11614
(eval "$ac_link") 2>conftest.er1
11616
grep -v '^ *+' conftest.er1 >conftest.err
11618
cat conftest.err >&5
11619
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11620
(exit $ac_status); } && {
11621
test -z "$ac_cxx_werror_flag" ||
11622
test ! -s conftest.err
11623
} && test -s conftest$ac_exeext && {
11624
test "$cross_compiling" = yes ||
11625
$as_test_x conftest$ac_exeext
11628
lt_aix_libpath_sed='
11629
/Import File Strings/,/^$/ {
11635
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11636
# Check for a 64-bit object if we didn't find anything.
11637
if test -z "$aix_libpath"; then
11638
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11641
$as_echo "$as_me: failed program was:" >&5
11642
sed 's/^/| /' conftest.$ac_ext >&5
11647
rm -rf conftest.dSYM
11648
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11649
conftest$ac_exeext conftest.$ac_ext
11650
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11652
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11653
# Warning - without using the other run time loading flags,
11654
# -berok will link without error, but may produce a broken library.
11655
no_undefined_flag_CXX=' ${wl}-bernotok'
11656
allow_undefined_flag_CXX=' ${wl}-berok'
11657
# Exported symbols can be pulled into shared objects from archives
11658
whole_archive_flag_spec_CXX='$convenience'
11659
archive_cmds_need_lc_CXX=yes
11660
# This is similar to how AIX traditionally builds its shared libraries.
11661
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'
11667
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11668
allow_undefined_flag_CXX=unsupported
11669
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11670
# support --undefined. This deserves some investigation. FIXME
11671
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11678
case $cc_basename in
11680
# FIXME: insert proper C++ library support
11686
cygwin* | mingw* | pw32*)
11687
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11688
# as there is no search path for DLLs.
11689
hardcode_libdir_flag_spec_CXX='-L$libdir'
11690
allow_undefined_flag_CXX=unsupported
11691
always_export_symbols_CXX=no
11692
enable_shared_with_static_runtimes_CXX=yes
11694
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11695
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'
11696
# If the export-symbols file already is a .def file (1st line
11697
# is EXPORTS), use it as is; otherwise, prepend...
11698
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11699
cp $export_symbols $output_objdir/$soname.def;
11701
echo EXPORTS > $output_objdir/$soname.def;
11702
cat $export_symbols >> $output_objdir/$soname.def;
11704
$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'
11709
darwin* | rhapsody*)
11710
archive_cmds_need_lc_CXX=no
11711
hardcode_direct_CXX=no
11712
hardcode_automatic_CXX=yes
11713
hardcode_shlibpath_var_CXX=unsupported
11714
whole_archive_flag_spec_CXX=''
11715
link_all_deplibs_CXX=yes
11716
allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11717
if test "$GXX" = yes ; then
11718
output_verbose_link_cmd='echo'
11719
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}"
11720
module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11721
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}"
11722
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}"
11723
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11724
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}"
11725
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}"
11728
case $cc_basename in
11730
output_verbose_link_cmd='echo'
11731
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'
11732
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11733
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11734
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}'
11735
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}'
11745
case $cc_basename in
11747
# FIXME: insert proper C++ library support
11751
# Green Hills C++ Compiler
11752
# FIXME: insert proper C++ library support
11756
# FIXME: insert proper C++ library support
11762
# C++ shared libraries reported to be fairly broken before switch to ELF
11766
archive_cmds_need_lc_CXX=no
11768
freebsd* | dragonfly*)
11769
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11776
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11777
hardcode_libdir_separator_CXX=:
11778
export_dynamic_flag_spec_CXX='${wl}-E'
11779
hardcode_direct_CXX=yes
11780
hardcode_minus_L_CXX=yes # Not in the search PATH,
11781
# but as the default
11782
# location of the library.
11784
case $cc_basename in
11786
# FIXME: insert proper C++ library support
11790
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'
11791
# Commands to make compiler produce verbose output that lists
11792
# what "hidden" libraries, object files and flags are used when
11793
# linking a shared library.
11795
# There doesn't appear to be a way to prevent this compiler from
11796
# explicitly linking system object files so we need to strip them
11797
# from the output so that they don't get included in the library
11799
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'
11802
if test "$GXX" = yes; then
11803
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'
11805
# FIXME: insert proper C++ library support
11812
if test $with_gnu_ld = no; then
11813
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11814
hardcode_libdir_separator_CXX=:
11819
export_dynamic_flag_spec_CXX='${wl}-E'
11825
hardcode_direct_CXX=no
11826
hardcode_shlibpath_var_CXX=no
11829
hardcode_direct_CXX=yes
11830
hardcode_minus_L_CXX=yes # Not in the search PATH,
11831
# but as the default
11832
# location of the library.
11836
case $cc_basename in
11838
# FIXME: insert proper C++ library support
11844
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11847
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11850
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11853
# Commands to make compiler produce verbose output that lists
11854
# what "hidden" libraries, object files and flags are used when
11855
# linking a shared library.
11857
# There doesn't appear to be a way to prevent this compiler from
11858
# explicitly linking system object files so we need to strip them
11859
# from the output so that they don't get included in the library
11861
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'
11864
if test "$GXX" = yes; then
11865
if test $with_gnu_ld = no; then
11868
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11871
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11874
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'
11879
# FIXME: insert proper C++ library support
11886
hardcode_direct_CXX=no
11887
hardcode_shlibpath_var_CXX=no
11888
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11889
export_dynamic_flag_spec_CXX='${wl}-E'
11890
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11891
# Instead, shared libraries are loaded at an image base (0x10000000 by
11892
# default) and relocated if they conflict, which is a slow very memory
11893
# consuming and fragmenting process. To avoid this, we pick a random,
11894
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11895
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
11896
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'
11897
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'
11900
case $cc_basename in
11903
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'
11905
# Archives containing C++ object files must be created using
11906
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
11907
# necessary to make sure instantiated templates are included
11909
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11912
if test "$GXX" = yes; then
11913
if test "$with_gnu_ld" = no; then
11914
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'
11916
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'
11919
link_all_deplibs_CXX=yes
11922
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11923
hardcode_libdir_separator_CXX=:
11925
linux* | k*bsd*-gnu)
11926
case $cc_basename in
11928
# Kuck and Associates, Inc. (KAI) C++ Compiler
11930
# KCC will only create a shared library if the output file
11931
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11932
# to its proper name (with version) after linking.
11933
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'
11934
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'
11935
# Commands to make compiler produce verbose output that lists
11936
# what "hidden" libraries, object files and flags are used when
11937
# linking a shared library.
11939
# There doesn't appear to be a way to prevent this compiler from
11940
# explicitly linking system object files so we need to strip them
11941
# from the output so that they don't get included in the library
11943
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'
11945
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11946
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11948
# Archives containing C++ object files must be created using
11949
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11950
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11955
# version 8.0 and above of icpc choke on multiply defined symbols
11956
# if we add $predep_objects and $postdep_objects, however 7.1 and
11957
# earlier do not add the objects themselves.
11958
case `$CC -V 2>&1` in
11960
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11961
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'
11963
*) # Version 8.0 or newer
11966
ia64*) tmp_idyn=' -i_dynamic';;
11968
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11969
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'
11972
archive_cmds_need_lc_CXX=no
11973
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11974
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11975
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11978
# Portland Group C++ compiler
11979
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11980
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'
11982
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11983
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11984
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'
11988
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11989
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'
11991
runpath_var=LD_RUN_PATH
11992
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11993
hardcode_libdir_separator_CXX=:
11995
# Commands to make compiler produce verbose output that lists
11996
# what "hidden" libraries, object files and flags are used when
11997
# linking a shared library.
11999
# There doesn't appear to be a way to prevent this compiler from
12000
# explicitly linking system object files so we need to strip them
12001
# from the output so that they don't get included in the library
12003
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'
12006
case `$CC -V 2>&1 | sed 5q` in
12009
no_undefined_flag_CXX=' -zdefs'
12010
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12011
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'
12012
hardcode_libdir_flag_spec_CXX='-R$libdir'
12013
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'
12015
# Not sure whether something based on
12016
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12018
output_verbose_link_cmd='echo'
12020
# Archives containing C++ object files must be created using
12021
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12022
# necessary to make sure instantiated templates are included
12024
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12031
# FIXME: insert proper C++ library support
12035
# FIXME: insert proper C++ library support
12039
case $cc_basename in
12041
# FIXME: insert proper C++ library support
12045
# FIXME: insert proper C++ library support
12051
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12052
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12054
hardcode_libdir_flag_spec_CXX='-R$libdir'
12055
hardcode_direct_CXX=yes
12056
hardcode_shlibpath_var_CXX=no
12058
# Workaround some broken pre-1.5 toolchains
12059
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12062
# C++ shared libraries are fairly broken
12066
if test -f /usr/libexec/ld.so; then
12067
hardcode_direct_CXX=yes
12068
hardcode_shlibpath_var_CXX=no
12069
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12070
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12071
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12072
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12073
export_dynamic_flag_spec_CXX='${wl}-E'
12074
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12076
output_verbose_link_cmd='echo'
12082
case $cc_basename in
12084
# Kuck and Associates, Inc. (KAI) C++ Compiler
12086
# KCC will only create a shared library if the output file
12087
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12088
# to its proper name (with version) after linking.
12089
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'
12091
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12092
hardcode_libdir_separator_CXX=:
12094
# Archives containing C++ object files must be created using
12095
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12096
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12100
# Rational C++ 2.4.1
12101
# FIXME: insert proper C++ library support
12105
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12106
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'
12108
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12109
hardcode_libdir_separator_CXX=:
12111
# Commands to make compiler produce verbose output that lists
12112
# what "hidden" libraries, object files and flags are used when
12113
# linking a shared library.
12115
# There doesn't appear to be a way to prevent this compiler from
12116
# explicitly linking system object files so we need to strip them
12117
# from the output so that they don't get included in the library
12119
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'
12122
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12123
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12124
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'
12126
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12127
hardcode_libdir_separator_CXX=:
12129
# Commands to make compiler produce verbose output that lists
12130
# what "hidden" libraries, object files and flags are used when
12131
# linking a shared library.
12132
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12135
# FIXME: insert proper C++ library support
12142
case $cc_basename in
12144
# Kuck and Associates, Inc. (KAI) C++ Compiler
12146
# KCC will only create a shared library if the output file
12147
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12148
# to its proper name (with version) after linking.
12149
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'
12151
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12152
hardcode_libdir_separator_CXX=:
12154
# Archives containing C++ object files must be created using
12155
# the KAI C++ compiler.
12156
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12159
# Rational C++ 2.4.1
12160
# FIXME: insert proper C++ library support
12164
allow_undefined_flag_CXX=' -expect_unresolved \*'
12165
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'
12166
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12167
echo "-hidden">> $lib.exp~
12168
$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~
12171
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12172
hardcode_libdir_separator_CXX=:
12174
# Commands to make compiler produce verbose output that lists
12175
# what "hidden" libraries, object files and flags are used when
12176
# linking a shared library.
12178
# There doesn't appear to be a way to prevent this compiler from
12179
# explicitly linking system object files so we need to strip them
12180
# from the output so that they don't get included in the library
12182
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'
12185
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12186
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12187
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'
12189
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12190
hardcode_libdir_separator_CXX=:
12192
# Commands to make compiler produce verbose output that lists
12193
# what "hidden" libraries, object files and flags are used when
12194
# linking a shared library.
12195
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12198
# FIXME: insert proper C++ library support
12205
# FIXME: insert proper C++ library support
12209
case $cc_basename in
12212
# FIXME: insert proper C++ library support
12217
# FIXME: insert proper C++ library support
12221
# FIXME: insert proper C++ library support
12227
case $cc_basename in
12229
# Sun C++ 4.2, 5.x and Centerline C++
12230
archive_cmds_need_lc_CXX=yes
12231
no_undefined_flag_CXX=' -zdefs'
12232
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12233
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12234
$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'
12236
hardcode_libdir_flag_spec_CXX='-R$libdir'
12237
hardcode_shlibpath_var_CXX=no
12239
solaris2.[0-5] | solaris2.[0-5].*) ;;
12241
# The compiler driver will combine and reorder linker options,
12242
# but understands `-z linker_flag'.
12243
# Supported since Solaris 2.6 (maybe 2.5.1?)
12244
whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12247
link_all_deplibs_CXX=yes
12249
output_verbose_link_cmd='echo'
12251
# Archives containing C++ object files must be created using
12252
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12253
# necessary to make sure instantiated templates are included
12255
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12258
# Green Hills C++ Compiler
12259
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12261
# The C++ compiler must be used to create the archive.
12262
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12265
# GNU C++ compiler with Solaris linker
12266
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12267
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12268
if $CC --version | grep -v '^2\.7' > /dev/null; then
12269
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12270
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12271
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12273
# Commands to make compiler produce verbose output that lists
12274
# what "hidden" libraries, object files and flags are used when
12275
# linking a shared library.
12276
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12278
# g++ 2.7 appears to require `-G' NOT `-shared' on this
12280
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12281
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12282
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12284
# Commands to make compiler produce verbose output that lists
12285
# what "hidden" libraries, object files and flags are used when
12286
# linking a shared library.
12287
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12290
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12292
solaris2.[0-5] | solaris2.[0-5].*) ;;
12294
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12301
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12302
no_undefined_flag_CXX='${wl}-z,text'
12303
archive_cmds_need_lc_CXX=no
12304
hardcode_shlibpath_var_CXX=no
12305
runpath_var='LD_RUN_PATH'
12307
case $cc_basename in
12309
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12310
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12313
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12314
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12318
sysv5* | sco3.2v5* | sco5v6*)
12319
# Note: We can NOT use -z defs as we might desire, because we do not
12320
# link with -lc, and that would cause any symbols used from libc to
12321
# always be unresolved, which means just about no library would
12322
# ever link correctly. If we're not using GNU ld we use -z text
12323
# though, which does catch some bad symbols but isn't as heavy-handed
12325
# For security reasons, it is highly recommended that you always
12326
# use absolute paths for naming shared libraries, and exclude the
12327
# DT_RUNPATH tag from executables and libraries. But doing so
12328
# requires that you compile everything twice, which is a pain.
12329
# So that behaviour is only enabled if SCOABSPATH is set to a
12330
# non-empty value in the environment. Most likely only useful for
12331
# creating official distributions of packages.
12332
# This is a hack until libtool officially supports absolute path
12333
# names for shared libraries.
12334
no_undefined_flag_CXX='${wl}-z,text'
12335
allow_undefined_flag_CXX='${wl}-z,nodefs'
12336
archive_cmds_need_lc_CXX=no
12337
hardcode_shlibpath_var_CXX=no
12338
hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12339
hardcode_libdir_separator_CXX=':'
12340
link_all_deplibs_CXX=yes
12341
export_dynamic_flag_spec_CXX='${wl}-Bexport'
12342
runpath_var='LD_RUN_PATH'
12344
case $cc_basename in
12346
archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12347
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12350
archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12351
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12356
case $cc_basename in
12358
# NonStop-UX NCC 3.20
12359
# FIXME: insert proper C++ library support
12363
# FIXME: insert proper C++ library support
12369
# FIXME: insert proper C++ library support
12373
# FIXME: insert proper C++ library support
12377
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12378
$as_echo "$ld_shlibs_CXX" >&6; }
12379
test "$ld_shlibs_CXX" = no && can_build_shared=no
12384
cat > conftest.$ac_ext <<EOF
12388
Foo (void) { a = 0; }
12394
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12395
(eval $ac_compile) 2>&5
12397
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12398
(exit $ac_status); }; then
12399
# Parse the compiler output and extract the necessary
12400
# objects, libraries and library flags.
12402
# Sentinel used to keep track of whether or not we are before
12403
# the conftest object file.
12404
pre_test_object_deps_done=no
12406
# The `*' in the case matches for architectures that use `case' in
12407
# $output_verbose_cmd can trigger glob expansion during the loop
12408
# eval without this substitution.
12409
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12411
for p in `eval $output_verbose_link_cmd`; do
12415
# Some compilers place space between "-{L,R}" and the path.
12416
# Remove the space.
12417
if test $p = "-L" \
12418
|| test $p = "-R"; then
12425
if test "$pre_test_object_deps_done" = no; then
12428
# Internal compiler library paths should come after those
12429
# provided the user. The postdeps already come after the
12430
# user supplied libs so there is no need to process them.
12431
if test -z "$compiler_lib_search_path_CXX"; then
12432
compiler_lib_search_path_CXX="${prev}${p}"
12434
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12437
# The "-l" case would never come before the object being
12438
# linked, so don't bother handling this case.
12441
if test -z "$postdeps_CXX"; then
12442
postdeps_CXX="${prev}${p}"
12444
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12450
# This assumes that the test object file only shows up
12451
# once in the compiler output.
12452
if test "$p" = "conftest.$objext"; then
12453
pre_test_object_deps_done=yes
12457
if test "$pre_test_object_deps_done" = no; then
12458
if test -z "$predep_objects_CXX"; then
12459
predep_objects_CXX="$p"
12461
predep_objects_CXX="$predep_objects_CXX $p"
12464
if test -z "$postdep_objects_CXX"; then
12465
postdep_objects_CXX="$p"
12467
postdep_objects_CXX="$postdep_objects_CXX $p"
12472
*) ;; # Ignore the rest.
12480
echo "libtool.m4: error: problem compiling CXX test program"
12483
$rm -f confest.$objext
12485
compiler_lib_search_dirs_CXX=
12486
if test -n "$compiler_lib_search_path_CXX"; then
12487
compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12490
# PORTME: override above test on systems where it is broken
12493
# Interix 3.5 installs completely hosed .la files for C++, so rather than
12494
# hack all around it, let's just trust "g++" to DTRT.
12495
predep_objects_CXX=
12496
postdep_objects_CXX=
12501
case `$CC -V 2>&1 | sed 5q` in
12505
# The more standards-conforming stlport4 library is
12506
# incompatible with the Cstd library. Avoid specifying
12507
# it if it's in CXXFLAGS. Ignore libCrun as
12508
# -library=stlport4 depends on it.
12509
case " $CXX $CXXFLAGS " in
12510
*" -library=stlport4 "*)
12511
solaris_use_stlport4=yes
12514
if test "$solaris_use_stlport4" != yes; then
12515
postdeps_CXX='-library=Cstd -library=Crun'
12522
case $cc_basename in
12524
# The more standards-conforming stlport4 library is
12525
# incompatible with the Cstd library. Avoid specifying
12526
# it if it's in CXXFLAGS. Ignore libCrun as
12527
# -library=stlport4 depends on it.
12528
case " $CXX $CXXFLAGS " in
12529
*" -library=stlport4 "*)
12530
solaris_use_stlport4=yes
12534
# Adding this requires a known-good setup of shared libraries for
12535
# Sun compiler versions before 5.6, else PIC objects from an old
12536
# archive will be linked into the output, leading to subtle bugs.
12537
if test "$solaris_use_stlport4" != yes; then
12538
postdeps_CXX='-library=Cstd -library=Crun'
12545
case " $postdeps_CXX " in
12546
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12549
lt_prog_compiler_wl_CXX=
12550
lt_prog_compiler_pic_CXX=
12551
lt_prog_compiler_static_CXX=
12553
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12554
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12556
# C++ specific cases for pic, static, wl, etc.
12557
if test "$GXX" = yes; then
12558
lt_prog_compiler_wl_CXX='-Wl,'
12559
lt_prog_compiler_static_CXX='-static'
12563
# All AIX code is PIC.
12564
if test "$host_cpu" = ia64; then
12565
# AIX 5 now supports IA64 processor
12566
lt_prog_compiler_static_CXX='-Bstatic'
12570
# FIXME: we need at least 68020 code to build shared libraries, but
12571
# adding the `-m68020' flag to GCC prevents building anything better,
12573
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12575
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12576
# PIC is the default for these OSes.
12578
mingw* | cygwin* | os2* | pw32*)
12579
# This hack is so that the source file can tell whether it is being
12580
# built for inclusion in a dll (and should export symbols for example).
12581
# Although the cygwin gcc ignores -fPIC, still need this for old-style
12582
# (--disable-auto-import) libraries
12583
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12585
darwin* | rhapsody*)
12586
# PIC is the default on this platform
12587
# Common symbols not allowed in MH_DYLIB files
12588
lt_prog_compiler_pic_CXX='-fno-common'
12591
# DJGPP does not support shared libraries at all
12592
lt_prog_compiler_pic_CXX=
12595
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
12596
# Instead, we relocate shared libraries at runtime.
12599
if test -d /usr/nec; then
12600
lt_prog_compiler_pic_CXX=-Kconform_pic
12604
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12605
# not for PA HP-UX.
12610
lt_prog_compiler_pic_CXX='-fPIC'
12615
lt_prog_compiler_pic_CXX='-fPIC'
12621
# All AIX code is PIC.
12622
if test "$host_cpu" = ia64; then
12623
# AIX 5 now supports IA64 processor
12624
lt_prog_compiler_static_CXX='-Bstatic'
12626
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12630
case $cc_basename in
12632
# Green Hills C++ Compiler
12633
# _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"
12638
# PIC is the default on this platform
12639
# Common symbols not allowed in MH_DYLIB files
12640
case $cc_basename in
12642
lt_prog_compiler_pic_CXX='-qnocommon'
12643
lt_prog_compiler_wl_CXX='-Wl,'
12648
case $cc_basename in
12650
lt_prog_compiler_pic_CXX='-KPIC'
12653
# Green Hills C++ Compiler
12654
lt_prog_compiler_pic_CXX='-pic'
12660
freebsd* | dragonfly*)
12661
# FreeBSD uses GNU C++
12663
hpux9* | hpux10* | hpux11*)
12664
case $cc_basename in
12666
lt_prog_compiler_wl_CXX='-Wl,'
12667
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12668
if test "$host_cpu" != ia64; then
12669
lt_prog_compiler_pic_CXX='+Z'
12673
lt_prog_compiler_wl_CXX='-Wl,'
12674
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12680
lt_prog_compiler_pic_CXX='+Z'
12689
# This is c89, which is MS Visual C++ (no shared libs)
12690
# Anyone wants to do a port?
12692
irix5* | irix6* | nonstopux*)
12693
case $cc_basename in
12695
lt_prog_compiler_wl_CXX='-Wl,'
12696
lt_prog_compiler_static_CXX='-non_shared'
12697
# CC pic flag -KPIC is the default.
12703
linux* | k*bsd*-gnu)
12704
case $cc_basename in
12707
lt_prog_compiler_wl_CXX='--backend -Wl,'
12708
lt_prog_compiler_pic_CXX='-fPIC'
12712
lt_prog_compiler_wl_CXX='-Wl,'
12713
lt_prog_compiler_pic_CXX='-KPIC'
12714
lt_prog_compiler_static_CXX='-static'
12717
# Portland Group C++ compiler.
12718
lt_prog_compiler_wl_CXX='-Wl,'
12719
lt_prog_compiler_pic_CXX='-fpic'
12720
lt_prog_compiler_static_CXX='-Bstatic'
12724
# Make sure the PIC flag is empty. It appears that all Alpha
12725
# Linux and Compaq Tru64 Unix objects are PIC.
12726
lt_prog_compiler_pic_CXX=
12727
lt_prog_compiler_static_CXX='-non_shared'
12730
case `$CC -V 2>&1 | sed 5q` in
12733
lt_prog_compiler_pic_CXX='-KPIC'
12734
lt_prog_compiler_static_CXX='-Bstatic'
12735
lt_prog_compiler_wl_CXX='-Qoption ld '
12746
case $cc_basename in
12748
lt_prog_compiler_pic_CXX='-W c,exportall'
12756
osf3* | osf4* | osf5*)
12757
case $cc_basename in
12759
lt_prog_compiler_wl_CXX='--backend -Wl,'
12762
# Rational C++ 2.4.1
12763
lt_prog_compiler_pic_CXX='-pic'
12766
# Digital/Compaq C++
12767
lt_prog_compiler_wl_CXX='-Wl,'
12768
# Make sure the PIC flag is empty. It appears that all Alpha
12769
# Linux and Compaq Tru64 Unix objects are PIC.
12770
lt_prog_compiler_pic_CXX=
12771
lt_prog_compiler_static_CXX='-non_shared'
12780
case $cc_basename in
12782
# Sun C++ 4.2, 5.x and Centerline C++
12783
lt_prog_compiler_pic_CXX='-KPIC'
12784
lt_prog_compiler_static_CXX='-Bstatic'
12785
lt_prog_compiler_wl_CXX='-Qoption ld '
12788
# Green Hills C++ Compiler
12789
lt_prog_compiler_pic_CXX='-PIC'
12796
case $cc_basename in
12799
lt_prog_compiler_pic_CXX='-pic'
12800
lt_prog_compiler_static_CXX='-Bstatic'
12804
lt_prog_compiler_pic_CXX='-pic'
12811
case $cc_basename in
12813
# NonStop-UX NCC 3.20
12814
lt_prog_compiler_pic_CXX='-KPIC'
12820
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12821
case $cc_basename in
12823
lt_prog_compiler_wl_CXX='-Wl,'
12824
lt_prog_compiler_pic_CXX='-KPIC'
12825
lt_prog_compiler_static_CXX='-Bstatic'
12832
lt_prog_compiler_can_build_shared_CXX=no
12837
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12838
$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12841
# Check to make sure the PIC flag actually works.
12843
if test -n "$lt_prog_compiler_pic_CXX"; then
12845
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12846
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12847
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12848
$as_echo_n "(cached) " >&6
12850
lt_cv_prog_compiler_pic_works_CXX=no
12851
ac_outfile=conftest.$ac_objext
12852
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12853
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12854
# Insert the option either (1) after the last *FLAGS variable, or
12855
# (2) before a word containing "conftest.", or (3) at the end.
12856
# Note that $ac_compile itself does not contain backslashes and begins
12857
# with a dollar sign (not a hyphen), so the echo should work correctly.
12858
# The option is referenced via a variable to avoid confusing sed.
12859
lt_compile=`echo "$ac_compile" | $SED \
12860
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12861
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12862
-e 's:$: $lt_compiler_flag:'`
12863
(eval echo "\"\$as_me:12863: $lt_compile\"" >&5)
12864
(eval "$lt_compile" 2>conftest.err)
12866
cat conftest.err >&5
12867
echo "$as_me:12867: \$? = $ac_status" >&5
12868
if (exit $ac_status) && test -s "$ac_outfile"; then
12869
# The compiler can only warn and ignore the option if not recognized
12870
# So say no if there are warnings other than the usual output.
12871
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12872
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12873
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12874
lt_cv_prog_compiler_pic_works_CXX=yes
12880
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12881
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12883
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12884
case $lt_prog_compiler_pic_CXX in
12886
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12889
lt_prog_compiler_pic_CXX=
12890
lt_prog_compiler_can_build_shared_CXX=no
12895
# For platforms which do not support PIC, -DPIC is meaningless:
12897
lt_prog_compiler_pic_CXX=
12900
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12905
# Check to make sure the static flag actually works.
12907
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12908
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12909
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12910
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12911
$as_echo_n "(cached) " >&6
12913
lt_cv_prog_compiler_static_works_CXX=no
12914
save_LDFLAGS="$LDFLAGS"
12915
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12916
echo "$lt_simple_link_test_code" > conftest.$ac_ext
12917
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12918
# The linker can only warn and ignore the option if not recognized
12919
# So say no if there are warnings
12920
if test -s conftest.err; then
12921
# Append any errors to the config.log.
12922
cat conftest.err 1>&5
12923
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12924
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12925
if diff conftest.exp conftest.er2 >/dev/null; then
12926
lt_cv_prog_compiler_static_works_CXX=yes
12929
lt_cv_prog_compiler_static_works_CXX=yes
12933
LDFLAGS="$save_LDFLAGS"
12936
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12937
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
12939
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12942
lt_prog_compiler_static_CXX=
12946
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12947
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12948
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12949
$as_echo_n "(cached) " >&6
12951
lt_cv_prog_compiler_c_o_CXX=no
12952
$rm -r conftest 2>/dev/null
12956
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12958
lt_compiler_flag="-o out/conftest2.$ac_objext"
12959
# Insert the option either (1) after the last *FLAGS variable, or
12960
# (2) before a word containing "conftest.", or (3) at the end.
12961
# Note that $ac_compile itself does not contain backslashes and begins
12962
# with a dollar sign (not a hyphen), so the echo should work correctly.
12963
lt_compile=`echo "$ac_compile" | $SED \
12964
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12965
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12966
-e 's:$: $lt_compiler_flag:'`
12967
(eval echo "\"\$as_me:12967: $lt_compile\"" >&5)
12968
(eval "$lt_compile" 2>out/conftest.err)
12970
cat out/conftest.err >&5
12971
echo "$as_me:12971: \$? = $ac_status" >&5
12972
if (exit $ac_status) && test -s out/conftest2.$ac_objext
12974
# The compiler can only warn and ignore the option if not recognized
12975
# So say no if there are warnings
12976
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12977
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12978
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12979
lt_cv_prog_compiler_c_o_CXX=yes
12984
# SGI C++ compiler will create directory out/ii_files/ for
12985
# template instantiation
12986
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12987
$rm out/* && rmdir out
12993
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12994
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
12997
hard_links="nottested"
12998
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12999
# do not overwrite the value of need_locks provided by the user
13000
{ $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13001
$as_echo_n "checking if we can lock with hard links... " >&6; }
13004
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13006
ln conftest.a conftest.b 2>&5 || hard_links=no
13007
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13008
{ $as_echo "$as_me:$LINENO: result: $hard_links" >&5
13009
$as_echo "$hard_links" >&6; }
13010
if test "$hard_links" = no; then
13011
{ $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13012
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13019
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13020
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13022
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13025
# If we're using GNU nm, then we don't want the "-C" option.
13026
# -C means demangle to AIX nm, but means don't demangle with GNU nm
13027
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13028
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'
13030
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'
13034
export_symbols_cmds_CXX="$ltdll_cmds"
13037
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'
13040
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13043
exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13045
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13046
$as_echo "$ld_shlibs_CXX" >&6; }
13047
test "$ld_shlibs_CXX" = no && can_build_shared=no
13050
# Do we need to explicitly link libc?
13052
case "x$archive_cmds_need_lc_CXX" in
13054
# Assume -lc should be added
13055
archive_cmds_need_lc_CXX=yes
13057
if test "$enable_shared" = yes && test "$GCC" = yes; then
13058
case $archive_cmds_CXX in
13060
# FIXME: we may have to deal with multi-command sequences.
13063
# Test whether the compiler implicitly links with -lc since on some
13064
# systems, -lgcc has to come before -lc. If gcc already passes -lc
13065
# to ld, don't add -lc before -lgcc.
13066
{ $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13067
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13069
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13071
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13072
(eval $ac_compile) 2>&5
13074
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13075
(exit $ac_status); } 2>conftest.err; then
13078
libobjs=conftest.$ac_objext
13080
wl=$lt_prog_compiler_wl_CXX
13081
pic_flag=$lt_prog_compiler_pic_CXX
13087
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13088
allow_undefined_flag_CXX=
13089
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13090
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13092
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13093
(exit $ac_status); }
13095
archive_cmds_need_lc_CXX=no
13097
archive_cmds_need_lc_CXX=yes
13099
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13101
cat conftest.err 1>&5
13104
{ $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13105
$as_echo "$archive_cmds_need_lc_CXX" >&6; }
13112
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13113
$as_echo_n "checking dynamic linker characteristics... " >&6; }
13114
library_names_spec=
13115
libname_spec='lib$name'
13119
postuninstall_cmds=
13123
shlibpath_overrides_runpath=unknown
13125
dynamic_linker="$host_os ld.so"
13126
sys_lib_dlsearch_path_spec="/lib /usr/lib"
13128
need_lib_prefix=unknown
13129
hardcode_into_libs=no
13131
# when you set need_version to no, make sure it does not cause -set_version
13132
# flags to be left without arguments
13133
need_version=unknown
13138
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13139
shlibpath_var=LIBPATH
13141
# AIX 3 has no versioning support, so we append a major version to the name.
13142
soname_spec='${libname}${release}${shared_ext}$major'
13149
hardcode_into_libs=yes
13150
if test "$host_cpu" = ia64; then
13151
# AIX 5 supports IA64
13152
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13153
shlibpath_var=LD_LIBRARY_PATH
13155
# With GCC up to 2.95.x, collect2 would create an import file
13156
# for dependence libraries. The import file would start with
13157
# the line `#! .'. This would cause the generated library to
13158
# depend on `.', always an invalid library. This was fixed in
13159
# development snapshots of GCC prior to 3.0.
13161
aix4 | aix4.[01] | aix4.[01].*)
13162
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13164
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13167
can_build_shared=no
13171
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13172
# soname into executable. Probably we can add versioning support to
13173
# collect2, so additional links can be useful in future.
13174
if test "$aix_use_runtimelinking" = yes; then
13175
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
13176
# instead of lib<name>.a to let people know that these are not
13177
# typical AIX shared libraries.
13178
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13180
# We preserve .a as extension for shared libraries through AIX4.2
13181
# and later when we are not doing run time linking.
13182
library_names_spec='${libname}${release}.a $libname.a'
13183
soname_spec='${libname}${release}${shared_ext}$major'
13185
shlibpath_var=LIBPATH
13190
library_names_spec='$libname.ixlibrary $libname.a'
13191
# Create ${libname}_ixlibrary.a entries in /sys/libs.
13192
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'
13196
library_names_spec='${libname}${shared_ext}'
13197
dynamic_linker="$host_os ld.so"
13198
shlibpath_var=LIBRARY_PATH
13204
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13205
soname_spec='${libname}${release}${shared_ext}$major'
13206
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13207
shlibpath_var=LD_LIBRARY_PATH
13208
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13209
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13210
# the default ld.so.conf also contains /usr/contrib/lib and
13211
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13212
# libtool to hard-code these into programs
13215
cygwin* | mingw* | pw32*)
13216
version_type=windows
13221
case $GCC,$host_os in
13222
yes,cygwin* | yes,mingw* | yes,pw32*)
13223
library_names_spec='$libname.dll.a'
13224
# DLL is installed to $(libdir)/../bin by postinstall_cmds
13225
postinstall_cmds='base_file=`basename \${file}`~
13226
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13227
dldir=$destdir/`dirname \$dlpath`~
13228
test -d \$dldir || mkdir -p \$dldir~
13229
$install_prog $dir/$dlname \$dldir/$dlname~
13230
chmod a+x \$dldir/$dlname'
13231
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13232
dlpath=$dir/\$dldll~
13234
shlibpath_overrides_runpath=yes
13238
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
13239
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13240
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13243
# MinGW DLLs use traditional 'lib' prefix
13244
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13245
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13246
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13247
# It is most probably a Windows format PATH printed by
13248
# mingw gcc, but we are running on Cygwin. Gcc prints its search
13249
# path with ; separators, and with drive letters. We can handle the
13250
# drive letters (cygwin fileutils understands them), so leave them,
13251
# especially as we might pass files found there to a mingw objdump,
13252
# which wouldn't understand a cygwinified path. Ahh.
13253
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13255
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13259
# pw32 DLLs use 'pw' prefix rather than 'lib'
13260
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13266
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13269
dynamic_linker='Win32 ld.exe'
13270
# FIXME: first we should search . and the directory the executable is in
13274
darwin* | rhapsody*)
13275
dynamic_linker="$host_os dyld"
13276
version_type=darwin
13279
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13280
soname_spec='${libname}${release}${major}$shared_ext'
13281
shlibpath_overrides_runpath=yes
13282
shlibpath_var=DYLD_LIBRARY_PATH
13283
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13285
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13292
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13293
soname_spec='${libname}${release}${shared_ext}$major'
13294
shlibpath_var=LD_LIBRARY_PATH
13301
freebsd* | dragonfly*)
13302
# DragonFly does not have aout. When/if they implement a new
13303
# versioning mechanism, adjust this.
13304
if test -x /usr/bin/objformat; then
13305
objformat=`/usr/bin/objformat`
13308
freebsd[123]*) objformat=aout ;;
13309
*) objformat=elf ;;
13312
version_type=freebsd-$objformat
13313
case $version_type in
13315
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13320
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13324
shlibpath_var=LD_LIBRARY_PATH
13327
shlibpath_overrides_runpath=yes
13329
freebsd3.[01]* | freebsdelf3.[01]*)
13330
shlibpath_overrides_runpath=yes
13331
hardcode_into_libs=yes
13333
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13334
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13335
shlibpath_overrides_runpath=no
13336
hardcode_into_libs=yes
13338
*) # from 4.6 on, and DragonFly
13339
shlibpath_overrides_runpath=yes
13340
hardcode_into_libs=yes
13349
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13350
soname_spec='${libname}${release}${shared_ext}$major'
13351
shlibpath_var=LD_LIBRARY_PATH
13352
hardcode_into_libs=yes
13355
hpux9* | hpux10* | hpux11*)
13356
# Give a soname corresponding to the major version so that dld.sl refuses to
13357
# link against other versions.
13364
hardcode_into_libs=yes
13365
dynamic_linker="$host_os dld.so"
13366
shlibpath_var=LD_LIBRARY_PATH
13367
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13368
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13369
soname_spec='${libname}${release}${shared_ext}$major'
13370
if test "X$HPUX_IA64_MODE" = X32; then
13371
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13373
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13375
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13379
hardcode_into_libs=yes
13380
dynamic_linker="$host_os dld.sl"
13381
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13382
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13383
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13384
soname_spec='${libname}${release}${shared_ext}$major'
13385
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13386
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13390
dynamic_linker="$host_os dld.sl"
13391
shlibpath_var=SHLIB_PATH
13392
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13393
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13394
soname_spec='${libname}${release}${shared_ext}$major'
13397
# HP-UX runs *really* slowly unless shared libraries are mode 555.
13398
postinstall_cmds='chmod 555 $lib'
13405
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13406
soname_spec='${libname}${release}${shared_ext}$major'
13407
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13408
shlibpath_var=LD_LIBRARY_PATH
13409
shlibpath_overrides_runpath=no
13410
hardcode_into_libs=yes
13413
irix5* | irix6* | nonstopux*)
13415
nonstopux*) version_type=nonstopux ;;
13417
if test "$lt_cv_prog_gnu_ld" = yes; then
13425
soname_spec='${libname}${release}${shared_ext}$major'
13426
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13428
irix5* | nonstopux*)
13429
libsuff= shlibsuff=
13432
case $LD in # libtool.m4 will add one of these switches to LD
13433
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13434
libsuff= shlibsuff= libmagic=32-bit;;
13435
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13436
libsuff=32 shlibsuff=N32 libmagic=N32;;
13437
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13438
libsuff=64 shlibsuff=64 libmagic=64-bit;;
13439
*) libsuff= shlibsuff= libmagic=never-match;;
13443
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13444
shlibpath_overrides_runpath=no
13445
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13446
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13447
hardcode_into_libs=yes
13450
# No shared lib support for Linux oldld, aout, or coff.
13451
linux*oldld* | linux*aout* | linux*coff*)
13455
# This must be Linux ELF.
13456
linux* | k*bsd*-gnu)
13460
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13461
soname_spec='${libname}${release}${shared_ext}$major'
13462
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13463
shlibpath_var=LD_LIBRARY_PATH
13464
shlibpath_overrides_runpath=no
13465
# This implies no fast_install, which is unacceptable.
13466
# Some rework will be needed to allow for fast_install
13467
# before this can be enabled.
13468
hardcode_into_libs=yes
13469
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13470
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13472
# Append ld.so.conf contents to the search path
13473
if test -f /etc/ld.so.conf; then
13474
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' ' '`
13475
sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13478
# We used to test for /lib/ld.so.1 and disable shared libraries on
13479
# powerpc, because MkLinux only supported shared libraries with the
13480
# GNU dynamic linker. Since this was broken with cross compilers,
13481
# most powerpc-linux boxes support dynamic linking these days and
13482
# people can always --disable-shared, the test was removed, and we
13483
# assume the GNU/Linux dynamic linker is in use.
13484
dynamic_linker='GNU/Linux ld.so'
13491
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13492
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13493
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13494
dynamic_linker='NetBSD (a.out) ld.so'
13496
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13497
soname_spec='${libname}${release}${shared_ext}$major'
13498
dynamic_linker='NetBSD ld.elf_so'
13500
shlibpath_var=LD_LIBRARY_PATH
13501
shlibpath_overrides_runpath=yes
13502
hardcode_into_libs=yes
13507
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13508
shlibpath_var=LD_LIBRARY_PATH
13509
shlibpath_overrides_runpath=yes
13516
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13517
soname_spec='${libname}${release}${shared_ext}$major'
13518
shlibpath_var=LD_LIBRARY_PATH
13519
shlibpath_overrides_runpath=yes
13524
sys_lib_dlsearch_path_spec="/usr/lib"
13526
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13528
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13529
*) need_version=no ;;
13531
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13532
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13533
shlibpath_var=LD_LIBRARY_PATH
13534
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13536
openbsd2.[89] | openbsd2.[89].*)
13537
shlibpath_overrides_runpath=no
13540
shlibpath_overrides_runpath=yes
13544
shlibpath_overrides_runpath=yes
13549
libname_spec='$name'
13552
library_names_spec='$libname${shared_ext} $libname.a'
13553
dynamic_linker='OS/2 ld.exe'
13554
shlibpath_var=LIBPATH
13557
osf3* | osf4* | osf5*)
13561
soname_spec='${libname}${release}${shared_ext}$major'
13562
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13563
shlibpath_var=LD_LIBRARY_PATH
13564
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13565
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13576
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13577
soname_spec='${libname}${release}${shared_ext}$major'
13578
shlibpath_var=LD_LIBRARY_PATH
13579
shlibpath_overrides_runpath=yes
13580
hardcode_into_libs=yes
13581
# ldd complains unless libraries are executable
13582
postinstall_cmds='chmod +x $lib'
13587
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13588
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13589
shlibpath_var=LD_LIBRARY_PATH
13590
shlibpath_overrides_runpath=yes
13591
if test "$with_gnu_ld" = yes; then
13599
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13600
soname_spec='${libname}${release}${shared_ext}$major'
13601
shlibpath_var=LD_LIBRARY_PATH
13602
case $host_vendor in
13604
shlibpath_overrides_runpath=no
13606
export_dynamic_flag_spec='${wl}-Blargedynsym'
13607
runpath_var=LD_RUN_PATH
13615
shlibpath_overrides_runpath=no
13616
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13622
if test -d /usr/nec ;then
13624
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13625
soname_spec='$libname${shared_ext}.$major'
13626
shlibpath_var=LD_LIBRARY_PATH
13630
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13631
version_type=freebsd-elf
13634
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13635
soname_spec='${libname}${release}${shared_ext}$major'
13636
shlibpath_var=LD_LIBRARY_PATH
13637
hardcode_into_libs=yes
13638
if test "$with_gnu_ld" = yes; then
13639
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13640
shlibpath_overrides_runpath=no
13642
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13643
shlibpath_overrides_runpath=yes
13646
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13650
sys_lib_dlsearch_path_spec='/usr/lib'
13655
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13656
soname_spec='${libname}${release}${shared_ext}$major'
13657
shlibpath_var=LD_LIBRARY_PATH
13664
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13665
$as_echo "$dynamic_linker" >&6; }
13666
test "$dynamic_linker" = no && can_build_shared=no
13668
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13669
$as_echo_n "(cached) " >&6
13671
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13674
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13675
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13676
$as_echo_n "(cached) " >&6
13678
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13681
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13683
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13684
if test "$GCC" = yes; then
13685
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13688
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13689
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13690
hardcode_action_CXX=
13691
if test -n "$hardcode_libdir_flag_spec_CXX" || \
13692
test -n "$runpath_var_CXX" || \
13693
test "X$hardcode_automatic_CXX" = "Xyes" ; then
13695
# We can hardcode non-existant directories.
13696
if test "$hardcode_direct_CXX" != no &&
13697
# If the only mechanism to avoid hardcoding is shlibpath_var, we
13698
# have to relink, otherwise we might link with an installed library
13699
# when we should be linking with a yet-to-be-installed one
13700
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13701
test "$hardcode_minus_L_CXX" != no; then
13702
# Linking always hardcodes the temporary library directory.
13703
hardcode_action_CXX=relink
13705
# We can link without hardcoding, and we can hardcode nonexisting dirs.
13706
hardcode_action_CXX=immediate
13709
# We cannot hardcode anything, or else we can only hardcode existing
13711
hardcode_action_CXX=unsupported
13713
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13714
$as_echo "$hardcode_action_CXX" >&6; }
13716
if test "$hardcode_action_CXX" = relink; then
13717
# Fast installation is not supported
13718
enable_fast_install=no
13719
elif test "$shlibpath_overrides_runpath" = yes ||
13720
test "$enable_shared" = no; then
13721
# Fast installation is not necessary
13722
enable_fast_install=needless
13726
# The else clause should only fire when bootstrapping the
13727
# libtool distribution, otherwise you forgot to ship ltmain.sh
13728
# with your package, and you will get complaints that there are
13729
# no rules to generate ltmain.sh.
13730
if test -f "$ltmain"; then
13731
# See if we are running on zsh, and set the options which allow our commands through
13732
# without removal of \ escapes.
13733
if test -n "${ZSH_VERSION+set}" ; then
13734
setopt NO_GLOB_SUBST
13736
# Now quote all the things that may contain metacharacters while being
13737
# careful not to overquote the AC_SUBSTed values. We take copies of the
13738
# variables and quote the copies for generation of the libtool script.
13739
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13741
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13742
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13743
deplibs_check_method reload_flag reload_cmds need_locks \
13744
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13745
lt_cv_sys_global_symbol_to_c_name_address \
13746
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13747
old_postinstall_cmds old_postuninstall_cmds \
13751
lt_prog_compiler_wl_CXX \
13752
lt_prog_compiler_pic_CXX \
13753
lt_prog_compiler_static_CXX \
13754
lt_prog_compiler_no_builtin_flag_CXX \
13755
export_dynamic_flag_spec_CXX \
13756
thread_safe_flag_spec_CXX \
13757
whole_archive_flag_spec_CXX \
13758
enable_shared_with_static_runtimes_CXX \
13759
old_archive_cmds_CXX \
13760
old_archive_from_new_cmds_CXX \
13761
predep_objects_CXX \
13762
postdep_objects_CXX \
13765
compiler_lib_search_path_CXX \
13766
compiler_lib_search_dirs_CXX \
13768
archive_expsym_cmds_CXX \
13769
postinstall_cmds_CXX \
13770
postuninstall_cmds_CXX \
13771
old_archive_from_expsyms_cmds_CXX \
13772
allow_undefined_flag_CXX \
13773
no_undefined_flag_CXX \
13774
export_symbols_cmds_CXX \
13775
hardcode_libdir_flag_spec_CXX \
13776
hardcode_libdir_flag_spec_ld_CXX \
13777
hardcode_libdir_separator_CXX \
13778
hardcode_automatic_CXX \
13780
module_expsym_cmds_CXX \
13781
lt_cv_prog_compiler_c_o_CXX \
13782
fix_srcfile_path_CXX \
13783
exclude_expsyms_CXX \
13784
include_expsyms_CXX; do
13787
old_archive_cmds_CXX | \
13788
old_archive_from_new_cmds_CXX | \
13789
archive_cmds_CXX | \
13790
archive_expsym_cmds_CXX | \
13791
module_cmds_CXX | \
13792
module_expsym_cmds_CXX | \
13793
old_archive_from_expsyms_cmds_CXX | \
13794
export_symbols_cmds_CXX | \
13795
extract_expsyms_cmds | reload_cmds | finish_cmds | \
13796
postinstall_cmds | postuninstall_cmds | \
13797
old_postinstall_cmds | old_postuninstall_cmds | \
13798
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13799
# Double-quote double-evaled strings.
13800
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13803
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13809
*'\$0 --fallback-echo"')
13810
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13816
cat <<__EOF__ >> "$cfgfile"
13817
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13819
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13821
# Shell to use when invoking shell scripts.
13824
# Whether or not to build shared libraries.
13825
build_libtool_libs=$enable_shared
13827
# Whether or not to build static libraries.
13828
build_old_libs=$enable_static
13830
# Whether or not to add -lc for building shared libraries.
13831
build_libtool_need_lc=$archive_cmds_need_lc_CXX
13833
# Whether or not to disallow shared libs when runtime libs are static
13834
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13836
# Whether or not to optimize for fast installation.
13837
fast_install=$enable_fast_install
13840
host_alias=$host_alias
13844
# The build system.
13845
build_alias=$build_alias
13849
# An echo program that does not interpret backslashes.
13854
AR_FLAGS=$lt_AR_FLAGS
13859
# LTCC compiler flags.
13860
LTCFLAGS=$lt_LTCFLAGS
13862
# A language-specific compiler.
13863
CC=$lt_compiler_CXX
13865
# Is the compiler the GNU C compiler?
13871
# The linker used to build libraries.
13874
# Whether we need hard or soft links.
13877
# A BSD-compatible nm program.
13880
# A symbol stripping program
13883
# Used to examine libraries when file_magic_cmd begins "file"
13884
MAGIC_CMD=$MAGIC_CMD
13886
# Used on cygwin: DLL creation program.
13889
# Used on cygwin: object dumper.
13892
# Used on cygwin: assembler.
13895
# The name of the directory that contains temporary libtool files.
13898
# How to create reloadable object files.
13899
reload_flag=$lt_reload_flag
13900
reload_cmds=$lt_reload_cmds
13902
# How to pass a linker flag through the compiler.
13903
wl=$lt_lt_prog_compiler_wl_CXX
13905
# Object file suffix (normally "o").
13906
objext="$ac_objext"
13908
# Old archive suffix (normally "a").
13911
# Shared library suffix (normally ".so").
13912
shrext_cmds='$shrext_cmds'
13914
# Executable file suffix (normally "").
13917
# Additional compiler flags for building library objects.
13918
pic_flag=$lt_lt_prog_compiler_pic_CXX
13921
# What is the maximum length of a command?
13922
max_cmd_len=$lt_cv_sys_max_cmd_len
13924
# Does compiler simultaneously support -c and -o options?
13925
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13927
# Must we lock files when doing compilation?
13928
need_locks=$lt_need_locks
13930
# Do we need the lib prefix for modules?
13931
need_lib_prefix=$need_lib_prefix
13933
# Do we need a version for libraries?
13934
need_version=$need_version
13936
# Whether dlopen is supported.
13937
dlopen_support=$enable_dlopen
13939
# Whether dlopen of programs is supported.
13940
dlopen_self=$enable_dlopen_self
13942
# Whether dlopen of statically linked programs is supported.
13943
dlopen_self_static=$enable_dlopen_self_static
13945
# Compiler flag to prevent dynamic linking.
13946
link_static_flag=$lt_lt_prog_compiler_static_CXX
13948
# Compiler flag to turn off builtin functions.
13949
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13951
# Compiler flag to allow reflexive dlopens.
13952
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13954
# Compiler flag to generate shared objects directly from archives.
13955
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13957
# Compiler flag to generate thread-safe objects.
13958
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13960
# Library versioning type.
13961
version_type=$version_type
13963
# Format of library name prefix.
13964
libname_spec=$lt_libname_spec
13966
# List of archive names. First name is the real one, the rest are links.
13967
# The last name is the one that the linker finds with -lNAME.
13968
library_names_spec=$lt_library_names_spec
13970
# The coded name of the library, if different from the real name.
13971
soname_spec=$lt_soname_spec
13973
# Commands used to build and install an old-style archive.
13975
old_archive_cmds=$lt_old_archive_cmds_CXX
13976
old_postinstall_cmds=$lt_old_postinstall_cmds
13977
old_postuninstall_cmds=$lt_old_postuninstall_cmds
13979
# Create an old-style archive from a shared archive.
13980
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13982
# Create a temporary old-style archive to link instead of a shared archive.
13983
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13985
# Commands used to build and install a shared archive.
13986
archive_cmds=$lt_archive_cmds_CXX
13987
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13988
postinstall_cmds=$lt_postinstall_cmds
13989
postuninstall_cmds=$lt_postuninstall_cmds
13991
# Commands used to build a loadable module (assumed same as above if empty)
13992
module_cmds=$lt_module_cmds_CXX
13993
module_expsym_cmds=$lt_module_expsym_cmds_CXX
13995
# Commands to strip libraries.
13996
old_striplib=$lt_old_striplib
13997
striplib=$lt_striplib
13999
# Dependencies to place before the objects being linked to create a
14001
predep_objects=$lt_predep_objects_CXX
14003
# Dependencies to place after the objects being linked to create a
14005
postdep_objects=$lt_postdep_objects_CXX
14007
# Dependencies to place before the objects being linked to create a
14009
predeps=$lt_predeps_CXX
14011
# Dependencies to place after the objects being linked to create a
14013
postdeps=$lt_postdeps_CXX
14015
# The directories searched by this compiler when creating a shared
14017
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14019
# The library search path used internally by the compiler when linking
14020
# a shared library.
14021
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14023
# Method to check whether dependent libraries are shared objects.
14024
deplibs_check_method=$lt_deplibs_check_method
14026
# Command to use when deplibs_check_method == file_magic.
14027
file_magic_cmd=$lt_file_magic_cmd
14029
# Flag that allows shared libraries with undefined symbols to be built.
14030
allow_undefined_flag=$lt_allow_undefined_flag_CXX
14032
# Flag that forces no undefined symbols.
14033
no_undefined_flag=$lt_no_undefined_flag_CXX
14035
# Commands used to finish a libtool library installation in a directory.
14036
finish_cmds=$lt_finish_cmds
14038
# Same as above, but a single script fragment to be evaled but not shown.
14039
finish_eval=$lt_finish_eval
14041
# Take the output of nm and produce a listing of raw symbols and C names.
14042
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14044
# Transform the output of nm in a proper C declaration
14045
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14047
# Transform the output of nm in a C name address pair
14048
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14050
# This is the shared library runtime path variable.
14051
runpath_var=$runpath_var
14053
# This is the shared library path variable.
14054
shlibpath_var=$shlibpath_var
14056
# Is shlibpath searched before the hard-coded library search path?
14057
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14059
# How to hardcode a shared library path into an executable.
14060
hardcode_action=$hardcode_action_CXX
14062
# Whether we should hardcode library paths into libraries.
14063
hardcode_into_libs=$hardcode_into_libs
14065
# Flag to hardcode \$libdir into a binary during linking.
14066
# This must work even if \$libdir does not exist.
14067
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14069
# If ld is used when linking, flag to hardcode \$libdir into
14070
# a binary during linking. This must work even if \$libdir does
14072
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14074
# Whether we need a single -rpath flag with a separated argument.
14075
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14077
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14078
# resulting binary.
14079
hardcode_direct=$hardcode_direct_CXX
14081
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14082
# resulting binary.
14083
hardcode_minus_L=$hardcode_minus_L_CXX
14085
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14086
# the resulting binary.
14087
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14089
# Set to yes if building a shared library automatically hardcodes DIR into the library
14090
# and all subsequent libraries and executables linked against it.
14091
hardcode_automatic=$hardcode_automatic_CXX
14093
# Variables whose values should be saved in libtool wrapper scripts and
14094
# restored at relink time.
14095
variables_saved_for_relink="$variables_saved_for_relink"
14097
# Whether libtool must link a program against all its dependency libraries.
14098
link_all_deplibs=$link_all_deplibs_CXX
14100
# Compile-time system search path for libraries
14101
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14103
# Run-time system search path for libraries
14104
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14106
# Fix the shell variable \$srcfile for the compiler.
14107
fix_srcfile_path=$lt_fix_srcfile_path
14109
# Set to yes if exported symbols are required.
14110
always_export_symbols=$always_export_symbols_CXX
14112
# The commands to list exported symbols.
14113
export_symbols_cmds=$lt_export_symbols_cmds_CXX
14115
# The commands to extract the exported symbol list from a shared archive.
14116
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14118
# Symbols that should not be listed in the preloaded symbols.
14119
exclude_expsyms=$lt_exclude_expsyms_CXX
14121
# Symbols that must always be exported.
14122
include_expsyms=$lt_include_expsyms_CXX
14124
# ### END LIBTOOL TAG CONFIG: $tagname
14130
# If there is no Makefile yet, we rely on a make rule to execute
14131
# `config.status --recheck' to rerun these tests and create the
14132
# libtool script then.
14133
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14134
if test -f "$ltmain_in"; then
14135
test -f Makefile && make "$ltmain"
14141
ac_cpp='$CPP $CPPFLAGS'
14142
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14143
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14144
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14150
with_gnu_ldcxx=$with_gnu_ld
14151
with_gnu_ld=$lt_save_with_gnu_ld
14152
lt_cv_path_LDCXX=$lt_cv_path_LD
14153
lt_cv_path_LD=$lt_save_path_LD
14154
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14155
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14163
if test -n "$F77" && test "X$F77" != "Xno"; then
14166
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14167
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14168
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14171
archive_cmds_need_lc_F77=no
14172
allow_undefined_flag_F77=
14173
always_export_symbols_F77=no
14174
archive_expsym_cmds_F77=
14175
export_dynamic_flag_spec_F77=
14176
hardcode_direct_F77=no
14177
hardcode_libdir_flag_spec_F77=
14178
hardcode_libdir_flag_spec_ld_F77=
14179
hardcode_libdir_separator_F77=
14180
hardcode_minus_L_F77=no
14181
hardcode_automatic_F77=no
14183
module_expsym_cmds_F77=
14184
link_all_deplibs_F77=unknown
14185
old_archive_cmds_F77=$old_archive_cmds
14186
no_undefined_flag_F77=
14187
whole_archive_flag_spec_F77=
14188
enable_shared_with_static_runtimes_F77=no
14190
# Source file extension for f77 test sources.
14193
# Object file extension for compiled f77 test sources.
14197
# Code to be used in simple compile tests
14198
lt_simple_compile_test_code="\
14204
# Code to be used in simple link tests
14205
lt_simple_link_test_code="\
14210
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14212
# If no C compiler was specified, use CC.
14215
# If no C compiler flags were specified, use CFLAGS.
14216
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14218
# Allow CC to be a program name with arguments.
14222
# save warnings/boilerplate of simple test code
14223
ac_outfile=conftest.$ac_objext
14224
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14225
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14226
_lt_compiler_boilerplate=`cat conftest.err`
14229
ac_outfile=conftest.$ac_objext
14230
echo "$lt_simple_link_test_code" >conftest.$ac_ext
14231
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14232
_lt_linker_boilerplate=`cat conftest.err`
14236
# Allow CC to be a program name with arguments.
14241
for cc_temp in $compiler""; do
14243
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14244
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14249
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14252
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14253
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
14254
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
14255
$as_echo "$can_build_shared" >&6; }
14257
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14258
$as_echo_n "checking whether to build shared libraries... " >&6; }
14259
test "$can_build_shared" = "no" && enable_shared=no
14261
# On AIX, shared libraries and static libraries use the same namespace, and
14262
# are all built from PIC.
14265
test "$enable_shared" = yes && enable_static=no
14266
if test -n "$RANLIB"; then
14267
archive_cmds="$archive_cmds~\$RANLIB \$lib"
14268
postinstall_cmds='$RANLIB $lib'
14272
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14273
test "$enable_shared" = yes && enable_static=no
14277
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
14278
$as_echo "$enable_shared" >&6; }
14280
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14281
$as_echo_n "checking whether to build static libraries... " >&6; }
14282
# Make sure either enable_shared or enable_static is yes.
14283
test "$enable_shared" = yes || enable_static=yes
14284
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
14285
$as_echo "$enable_static" >&6; }
14290
lt_prog_compiler_wl_F77=
14291
lt_prog_compiler_pic_F77=
14292
lt_prog_compiler_static_F77=
14294
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14295
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14297
if test "$GCC" = yes; then
14298
lt_prog_compiler_wl_F77='-Wl,'
14299
lt_prog_compiler_static_F77='-static'
14303
# All AIX code is PIC.
14304
if test "$host_cpu" = ia64; then
14305
# AIX 5 now supports IA64 processor
14306
lt_prog_compiler_static_F77='-Bstatic'
14311
# FIXME: we need at least 68020 code to build shared libraries, but
14312
# adding the `-m68020' flag to GCC prevents building anything better,
14314
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14317
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14318
# PIC is the default for these OSes.
14321
mingw* | cygwin* | pw32* | os2*)
14322
# This hack is so that the source file can tell whether it is being
14323
# built for inclusion in a dll (and should export symbols for example).
14324
# Although the cygwin gcc ignores -fPIC, still need this for old-style
14325
# (--disable-auto-import) libraries
14326
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14329
darwin* | rhapsody*)
14330
# PIC is the default on this platform
14331
# Common symbols not allowed in MH_DYLIB files
14332
lt_prog_compiler_pic_F77='-fno-common'
14336
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
14337
# Instead, we relocate shared libraries at runtime.
14341
# Just because we use GCC doesn't mean we suddenly get shared libraries
14342
# on systems that don't support them.
14343
lt_prog_compiler_can_build_shared_F77=no
14348
if test -d /usr/nec; then
14349
lt_prog_compiler_pic_F77=-Kconform_pic
14354
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14355
# not for PA HP-UX.
14361
lt_prog_compiler_pic_F77='-fPIC'
14367
lt_prog_compiler_pic_F77='-fPIC'
14371
# PORTME Check for flag to pass linker flags through the system compiler.
14374
lt_prog_compiler_wl_F77='-Wl,'
14375
if test "$host_cpu" = ia64; then
14376
# AIX 5 now supports IA64 processor
14377
lt_prog_compiler_static_F77='-Bstatic'
14379
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14383
# PIC is the default on this platform
14384
# Common symbols not allowed in MH_DYLIB files
14385
case $cc_basename in
14387
lt_prog_compiler_pic_F77='-qnocommon'
14388
lt_prog_compiler_wl_F77='-Wl,'
14393
mingw* | cygwin* | pw32* | os2*)
14394
# This hack is so that the source file can tell whether it is being
14395
# built for inclusion in a dll (and should export symbols for example).
14396
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14399
hpux9* | hpux10* | hpux11*)
14400
lt_prog_compiler_wl_F77='-Wl,'
14401
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14402
# not for PA HP-UX.
14408
lt_prog_compiler_pic_F77='+Z'
14411
# Is there a better lt_prog_compiler_static that works with the bundled CC?
14412
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14415
irix5* | irix6* | nonstopux*)
14416
lt_prog_compiler_wl_F77='-Wl,'
14417
# PIC (with -KPIC) is the default.
14418
lt_prog_compiler_static_F77='-non_shared'
14422
lt_prog_compiler_pic_F77='-KPIC'
14423
lt_prog_compiler_static_F77='-Bstatic'
14426
linux* | k*bsd*-gnu)
14427
case $cc_basename in
14429
lt_prog_compiler_wl_F77='-Wl,'
14430
lt_prog_compiler_pic_F77='-KPIC'
14431
lt_prog_compiler_static_F77='-static'
14433
pgcc* | pgf77* | pgf90* | pgf95*)
14434
# Portland Group compilers (*not* the Pentium gcc compiler,
14435
# which looks to be a dead project)
14436
lt_prog_compiler_wl_F77='-Wl,'
14437
lt_prog_compiler_pic_F77='-fpic'
14438
lt_prog_compiler_static_F77='-Bstatic'
14441
lt_prog_compiler_wl_F77='-Wl,'
14442
# All Alpha code is PIC.
14443
lt_prog_compiler_static_F77='-non_shared'
14446
case `$CC -V 2>&1 | sed 5q` in
14449
lt_prog_compiler_pic_F77='-KPIC'
14450
lt_prog_compiler_static_F77='-Bstatic'
14451
lt_prog_compiler_wl_F77='-Wl,'
14454
# Sun Fortran 8.3 passes all unrecognized flags to the linker
14455
lt_prog_compiler_pic_F77='-KPIC'
14456
lt_prog_compiler_static_F77='-Bstatic'
14457
lt_prog_compiler_wl_F77=''
14464
osf3* | osf4* | osf5*)
14465
lt_prog_compiler_wl_F77='-Wl,'
14466
# All OSF/1 code is PIC.
14467
lt_prog_compiler_static_F77='-non_shared'
14471
lt_prog_compiler_static_F77='-non_shared'
14475
lt_prog_compiler_pic_F77='-KPIC'
14476
lt_prog_compiler_static_F77='-Bstatic'
14477
case $cc_basename in
14478
f77* | f90* | f95*)
14479
lt_prog_compiler_wl_F77='-Qoption ld ';;
14481
lt_prog_compiler_wl_F77='-Wl,';;
14486
lt_prog_compiler_wl_F77='-Qoption ld '
14487
lt_prog_compiler_pic_F77='-PIC'
14488
lt_prog_compiler_static_F77='-Bstatic'
14491
sysv4 | sysv4.2uw2* | sysv4.3*)
14492
lt_prog_compiler_wl_F77='-Wl,'
14493
lt_prog_compiler_pic_F77='-KPIC'
14494
lt_prog_compiler_static_F77='-Bstatic'
14498
if test -d /usr/nec ;then
14499
lt_prog_compiler_pic_F77='-Kconform_pic'
14500
lt_prog_compiler_static_F77='-Bstatic'
14504
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14505
lt_prog_compiler_wl_F77='-Wl,'
14506
lt_prog_compiler_pic_F77='-KPIC'
14507
lt_prog_compiler_static_F77='-Bstatic'
14511
lt_prog_compiler_wl_F77='-Wl,'
14512
lt_prog_compiler_can_build_shared_F77=no
14516
lt_prog_compiler_pic_F77='-pic'
14517
lt_prog_compiler_static_F77='-Bstatic'
14521
lt_prog_compiler_can_build_shared_F77=no
14526
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14527
$as_echo "$lt_prog_compiler_pic_F77" >&6; }
14530
# Check to make sure the PIC flag actually works.
14532
if test -n "$lt_prog_compiler_pic_F77"; then
14534
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14535
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14536
if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14537
$as_echo_n "(cached) " >&6
14539
lt_cv_prog_compiler_pic_works_F77=no
14540
ac_outfile=conftest.$ac_objext
14541
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14542
lt_compiler_flag="$lt_prog_compiler_pic_F77"
14543
# Insert the option either (1) after the last *FLAGS variable, or
14544
# (2) before a word containing "conftest.", or (3) at the end.
14545
# Note that $ac_compile itself does not contain backslashes and begins
14546
# with a dollar sign (not a hyphen), so the echo should work correctly.
14547
# The option is referenced via a variable to avoid confusing sed.
14548
lt_compile=`echo "$ac_compile" | $SED \
14549
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14550
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14551
-e 's:$: $lt_compiler_flag:'`
14552
(eval echo "\"\$as_me:14552: $lt_compile\"" >&5)
14553
(eval "$lt_compile" 2>conftest.err)
14555
cat conftest.err >&5
14556
echo "$as_me:14556: \$? = $ac_status" >&5
14557
if (exit $ac_status) && test -s "$ac_outfile"; then
14558
# The compiler can only warn and ignore the option if not recognized
14559
# So say no if there are warnings other than the usual output.
14560
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14561
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14562
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14563
lt_cv_prog_compiler_pic_works_F77=yes
14569
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14570
$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
14572
if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14573
case $lt_prog_compiler_pic_F77 in
14575
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14578
lt_prog_compiler_pic_F77=
14579
lt_prog_compiler_can_build_shared_F77=no
14584
# For platforms which do not support PIC, -DPIC is meaningless:
14586
lt_prog_compiler_pic_F77=
14589
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14594
# Check to make sure the static flag actually works.
14596
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14597
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14598
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14599
if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14600
$as_echo_n "(cached) " >&6
14602
lt_cv_prog_compiler_static_works_F77=no
14603
save_LDFLAGS="$LDFLAGS"
14604
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14605
echo "$lt_simple_link_test_code" > conftest.$ac_ext
14606
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14607
# The linker can only warn and ignore the option if not recognized
14608
# So say no if there are warnings
14609
if test -s conftest.err; then
14610
# Append any errors to the config.log.
14611
cat conftest.err 1>&5
14612
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14613
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14614
if diff conftest.exp conftest.er2 >/dev/null; then
14615
lt_cv_prog_compiler_static_works_F77=yes
14618
lt_cv_prog_compiler_static_works_F77=yes
14622
LDFLAGS="$save_LDFLAGS"
14625
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14626
$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
14628
if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14631
lt_prog_compiler_static_F77=
14635
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14636
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14637
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14638
$as_echo_n "(cached) " >&6
14640
lt_cv_prog_compiler_c_o_F77=no
14641
$rm -r conftest 2>/dev/null
14645
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14647
lt_compiler_flag="-o out/conftest2.$ac_objext"
14648
# Insert the option either (1) after the last *FLAGS variable, or
14649
# (2) before a word containing "conftest.", or (3) at the end.
14650
# Note that $ac_compile itself does not contain backslashes and begins
14651
# with a dollar sign (not a hyphen), so the echo should work correctly.
14652
lt_compile=`echo "$ac_compile" | $SED \
14653
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14654
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14655
-e 's:$: $lt_compiler_flag:'`
14656
(eval echo "\"\$as_me:14656: $lt_compile\"" >&5)
14657
(eval "$lt_compile" 2>out/conftest.err)
14659
cat out/conftest.err >&5
14660
echo "$as_me:14660: \$? = $ac_status" >&5
14661
if (exit $ac_status) && test -s out/conftest2.$ac_objext
14663
# The compiler can only warn and ignore the option if not recognized
14664
# So say no if there are warnings
14665
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14666
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14667
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14668
lt_cv_prog_compiler_c_o_F77=yes
14673
# SGI C++ compiler will create directory out/ii_files/ for
14674
# template instantiation
14675
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14676
$rm out/* && rmdir out
14682
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14683
$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14686
hard_links="nottested"
14687
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14688
# do not overwrite the value of need_locks provided by the user
14689
{ $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14690
$as_echo_n "checking if we can lock with hard links... " >&6; }
14693
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14695
ln conftest.a conftest.b 2>&5 || hard_links=no
14696
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14697
{ $as_echo "$as_me:$LINENO: result: $hard_links" >&5
14698
$as_echo "$hard_links" >&6; }
14699
if test "$hard_links" = no; then
14700
{ $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14701
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14708
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14709
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14712
allow_undefined_flag_F77=
14713
enable_shared_with_static_runtimes_F77=no
14715
archive_expsym_cmds_F77=
14716
old_archive_From_new_cmds_F77=
14717
old_archive_from_expsyms_cmds_F77=
14718
export_dynamic_flag_spec_F77=
14719
whole_archive_flag_spec_F77=
14720
thread_safe_flag_spec_F77=
14721
hardcode_libdir_flag_spec_F77=
14722
hardcode_libdir_flag_spec_ld_F77=
14723
hardcode_libdir_separator_F77=
14724
hardcode_direct_F77=no
14725
hardcode_minus_L_F77=no
14726
hardcode_shlibpath_var_F77=unsupported
14727
link_all_deplibs_F77=unknown
14728
hardcode_automatic_F77=no
14730
module_expsym_cmds_F77=
14731
always_export_symbols_F77=no
14732
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14733
# include_expsyms should be a list of space-separated symbols to be *always*
14734
# included in the symbol list
14735
include_expsyms_F77=
14736
# exclude_expsyms can be an extended regexp of symbols to exclude
14737
# it will be wrapped by ` (' and `)$', so one must not match beginning or
14738
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14739
# as well as any symbol that contains `d'.
14740
exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14741
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14742
# platforms (ab)use it in PIC code, but their linkers get confused if
14743
# the symbol is explicitly referenced. Since portable code cannot
14744
# rely on this symbol name, it's probably fine to never include it in
14745
# preloaded symbol tables.
14746
# Exclude shared library initialization/finalization symbols.
14747
extract_expsyms_cmds=
14748
# Just being paranoid about ensuring that cc_basename is set.
14749
for cc_temp in $compiler""; do
14751
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14752
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14757
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14760
cygwin* | mingw* | pw32*)
14761
# FIXME: the MSVC++ port hasn't been tested in a loooong time
14762
# When not using gcc, we currently assume that we are using
14763
# Microsoft Visual C++.
14764
if test "$GCC" != yes; then
14769
# we just hope/assume this is gcc and not c89 (= MSVC++)
14778
if test "$with_gnu_ld" = yes; then
14779
# If archive_cmds runs LD, not CC, wlarc should be empty
14782
# Set some defaults for GNU ld with shared library support. These
14783
# are reset later if shared libraries are not supported. Putting them
14784
# here allows them to be overridden if necessary.
14785
runpath_var=LD_RUN_PATH
14786
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14787
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14788
# ancient GNU ld didn't support --whole-archive et. al.
14789
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14790
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14792
whole_archive_flag_spec_F77=
14794
supports_anon_versioning=no
14795
case `$LD -v 2>/dev/null` in
14796
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14797
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14798
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14799
*\ 2.11.*) ;; # other 2.11 versions
14800
*) supports_anon_versioning=yes ;;
14803
# See if GNU ld supports shared libraries.
14806
# On AIX/PPC, the GNU linker is very broken
14807
if test "$host_cpu" != ia64; then
14811
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14812
*** to be unable to reliably create shared libraries on AIX.
14813
*** Therefore, libtool is disabling shared libraries support. If you
14814
*** really care for shared libraries, you may want to modify your PATH
14815
*** so that a non-GNU linker is found, and then restart.
14822
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)'
14823
hardcode_libdir_flag_spec_F77='-L$libdir'
14824
hardcode_minus_L_F77=yes
14826
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14827
# that the semantics of dynamic libraries on AmigaOS, at least up
14828
# to version 4, is to share data among multiple programs linked
14829
# with the same dynamic library. Since this doesn't match the
14830
# behavior of shared libraries on other platforms, we can't use
14836
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14837
allow_undefined_flag_F77=unsupported
14838
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14839
# support --undefined. This deserves some investigation. FIXME
14840
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14846
cygwin* | mingw* | pw32*)
14847
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14848
# as there is no search path for DLLs.
14849
hardcode_libdir_flag_spec_F77='-L$libdir'
14850
allow_undefined_flag_F77=unsupported
14851
always_export_symbols_F77=no
14852
enable_shared_with_static_runtimes_F77=yes
14853
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14855
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14856
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14857
# If the export-symbols file already is a .def file (1st line
14858
# is EXPORTS), use it as is; otherwise, prepend...
14859
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14860
cp $export_symbols $output_objdir/$soname.def;
14862
echo EXPORTS > $output_objdir/$soname.def;
14863
cat $export_symbols >> $output_objdir/$soname.def;
14865
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14872
hardcode_direct_F77=no
14873
hardcode_shlibpath_var_F77=no
14874
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14875
export_dynamic_flag_spec_F77='${wl}-E'
14876
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14877
# Instead, shared libraries are loaded at an image base (0x10000000 by
14878
# default) and relocated if they conflict, which is a slow very memory
14879
# consuming and fragmenting process. To avoid this, we pick a random,
14880
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14881
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
14882
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'
14883
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'
14886
gnu* | linux* | k*bsd*-gnu)
14887
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14889
case $cc_basename,$host_cpu in
14890
pgcc*) # Portland Group C compiler
14891
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'
14892
tmp_addflag=' $pic_flag'
14894
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14895
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'
14896
tmp_addflag=' $pic_flag -Mnomain' ;;
14897
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14898
tmp_addflag=' -i_dynamic' ;;
14899
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14900
tmp_addflag=' -i_dynamic -nofor_main' ;;
14901
ifc* | ifort*) # Intel Fortran compiler
14902
tmp_addflag=' -nofor_main' ;;
14904
case `$CC -V 2>&1 | sed 5q` in
14905
*Sun\ C*) # Sun C 5.9
14906
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'
14907
tmp_sharedflag='-G' ;;
14908
*Sun\ F*) # Sun Fortran 8.3
14909
tmp_sharedflag='-G' ;;
14911
tmp_sharedflag='-shared' ;;
14913
archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14915
if test $supports_anon_versioning = yes; then
14916
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14917
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14918
$echo "local: *; };" >> $output_objdir/$libname.ver~
14919
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14927
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14928
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14931
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14932
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14937
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14941
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14942
*** create shared libraries on Solaris systems. Therefore, libtool
14943
*** is disabling shared libraries support. We urge you to upgrade GNU
14944
*** binutils to release 2.9.1 or newer. Another option is to modify
14945
*** your PATH or compiler configuration so that the native linker is
14946
*** used, and then restart.
14949
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14950
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14951
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14957
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14958
case `$LD -v 2>&1` in
14959
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14963
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14964
*** reliably create shared libraries on SCO systems. Therefore, libtool
14965
*** is disabling shared libraries support. We urge you to upgrade GNU
14966
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14967
*** your PATH or compiler configuration so that the native linker is
14968
*** used, and then restart.
14973
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14974
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14975
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14976
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14985
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14987
hardcode_direct_F77=yes
14988
hardcode_shlibpath_var_F77=no
14992
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14993
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14994
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15001
if test "$ld_shlibs_F77" = no; then
15003
hardcode_libdir_flag_spec_F77=
15004
export_dynamic_flag_spec_F77=
15005
whole_archive_flag_spec_F77=
15008
# PORTME fill in a description of your system's linker (not GNU ld)
15011
allow_undefined_flag_F77=unsupported
15012
always_export_symbols_F77=yes
15013
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'
15014
# Note: this linker hardcodes the directories in LIBPATH if there
15015
# are no directories specified by -L.
15016
hardcode_minus_L_F77=yes
15017
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15018
# Neither direct hardcoding nor static linking is supported with a
15020
hardcode_direct_F77=unsupported
15025
if test "$host_cpu" = ia64; then
15026
# On IA64, the linker does run time linking by default, so we don't
15027
# have to do anything special.
15028
aix_use_runtimelinking=no
15029
exp_sym_flag='-Bexport'
15032
# If we're using GNU nm, then we don't want the "-C" option.
15033
# -C means demangle to AIX nm, but means don't demangle with GNU nm
15034
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15035
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'
15037
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'
15039
aix_use_runtimelinking=no
15041
# Test if we are trying to use run time linking or normal
15042
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15043
# need to do runtime linking.
15044
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15045
for ld_flag in $LDFLAGS; do
15046
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15047
aix_use_runtimelinking=yes
15054
exp_sym_flag='-bexport'
15055
no_entry_flag='-bnoentry'
15058
# When large executables or shared objects are built, AIX ld can
15059
# have problems creating the table of contents. If linking a library
15060
# or program results in "error TOC overflow" add -mminimal-toc to
15061
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15062
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15064
archive_cmds_F77=''
15065
hardcode_direct_F77=yes
15066
hardcode_libdir_separator_F77=':'
15067
link_all_deplibs_F77=yes
15069
if test "$GCC" = yes; then
15070
case $host_os in aix4.[012]|aix4.[012].*)
15071
# We only want to do this on AIX 4.2 and lower, the check
15072
# below for broken collect2 doesn't work under 4.3+
15073
collect2name=`${CC} -print-prog-name=collect2`
15074
if test -f "$collect2name" && \
15075
strings "$collect2name" | grep resolve_lib_name >/dev/null
15077
# We have reworked collect2
15080
# We have old collect2
15081
hardcode_direct_F77=unsupported
15082
# It fails to find uninstalled libraries when the uninstalled
15083
# path is not listed in the libpath. Setting hardcode_minus_L
15084
# to unsupported forces relinking
15085
hardcode_minus_L_F77=yes
15086
hardcode_libdir_flag_spec_F77='-L$libdir'
15087
hardcode_libdir_separator_F77=
15091
shared_flag='-shared'
15092
if test "$aix_use_runtimelinking" = yes; then
15093
shared_flag="$shared_flag "'${wl}-G'
15097
if test "$host_cpu" = ia64; then
15098
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15099
# chokes on -Wl,-G. The following line is correct:
15102
if test "$aix_use_runtimelinking" = yes; then
15103
shared_flag='${wl}-G'
15105
shared_flag='${wl}-bM:SRE'
15110
# It seems that -bexpall does not export symbols beginning with
15111
# underscore (_), so it is better to generate a list of symbols to export.
15112
always_export_symbols_F77=yes
15113
if test "$aix_use_runtimelinking" = yes; then
15114
# Warning - without using the other runtime loading flags (-brtl),
15115
# -berok will link without error, but may produce a broken library.
15116
allow_undefined_flag_F77='-berok'
15117
# Determine the default libpath from the value encoded in an empty executable.
15118
cat >conftest.$ac_ext <<_ACEOF
15123
rm -f conftest.$ac_objext conftest$ac_exeext
15124
if { (ac_try="$ac_link"
15125
case "(($ac_try" in
15126
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15127
*) ac_try_echo=$ac_try;;
15129
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15130
$as_echo "$ac_try_echo") >&5
15131
(eval "$ac_link") 2>conftest.er1
15133
grep -v '^ *+' conftest.er1 >conftest.err
15135
cat conftest.err >&5
15136
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137
(exit $ac_status); } && {
15138
test -z "$ac_f77_werror_flag" ||
15139
test ! -s conftest.err
15140
} && test -s conftest$ac_exeext && {
15141
test "$cross_compiling" = yes ||
15142
$as_test_x conftest$ac_exeext
15145
lt_aix_libpath_sed='
15146
/Import File Strings/,/^$/ {
15152
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15153
# Check for a 64-bit object if we didn't find anything.
15154
if test -z "$aix_libpath"; then
15155
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15158
$as_echo "$as_me: failed program was:" >&5
15159
sed 's/^/| /' conftest.$ac_ext >&5
15164
rm -rf conftest.dSYM
15165
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15166
conftest$ac_exeext conftest.$ac_ext
15167
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15169
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15170
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"
15172
if test "$host_cpu" = ia64; then
15173
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15174
allow_undefined_flag_F77="-z nodefs"
15175
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"
15177
# Determine the default libpath from the value encoded in an empty executable.
15178
cat >conftest.$ac_ext <<_ACEOF
15183
rm -f conftest.$ac_objext conftest$ac_exeext
15184
if { (ac_try="$ac_link"
15185
case "(($ac_try" in
15186
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15187
*) ac_try_echo=$ac_try;;
15189
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15190
$as_echo "$ac_try_echo") >&5
15191
(eval "$ac_link") 2>conftest.er1
15193
grep -v '^ *+' conftest.er1 >conftest.err
15195
cat conftest.err >&5
15196
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15197
(exit $ac_status); } && {
15198
test -z "$ac_f77_werror_flag" ||
15199
test ! -s conftest.err
15200
} && test -s conftest$ac_exeext && {
15201
test "$cross_compiling" = yes ||
15202
$as_test_x conftest$ac_exeext
15205
lt_aix_libpath_sed='
15206
/Import File Strings/,/^$/ {
15212
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15213
# Check for a 64-bit object if we didn't find anything.
15214
if test -z "$aix_libpath"; then
15215
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15218
$as_echo "$as_me: failed program was:" >&5
15219
sed 's/^/| /' conftest.$ac_ext >&5
15224
rm -rf conftest.dSYM
15225
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15226
conftest$ac_exeext conftest.$ac_ext
15227
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15229
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15230
# Warning - without using the other run time loading flags,
15231
# -berok will link without error, but may produce a broken library.
15232
no_undefined_flag_F77=' ${wl}-bernotok'
15233
allow_undefined_flag_F77=' ${wl}-berok'
15234
# Exported symbols can be pulled into shared objects from archives
15235
whole_archive_flag_spec_F77='$convenience'
15236
archive_cmds_need_lc_F77=yes
15237
# This is similar to how AIX traditionally builds its shared libraries.
15238
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'
15244
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)'
15245
hardcode_libdir_flag_spec_F77='-L$libdir'
15246
hardcode_minus_L_F77=yes
15247
# see comment about different semantics on the GNU ld section
15252
export_dynamic_flag_spec_F77=-rdynamic
15255
cygwin* | mingw* | pw32*)
15256
# When not using gcc, we currently assume that we are using
15257
# Microsoft Visual C++.
15258
# hardcode_libdir_flag_spec is actually meaningless, as there is
15259
# no search path for DLLs.
15260
hardcode_libdir_flag_spec_F77=' '
15261
allow_undefined_flag_F77=unsupported
15262
# Tell ltmain to make .lib files, not .a files.
15264
# Tell ltmain to make .dll files, not .so files.
15266
# FIXME: Setting linknames here is a bad hack.
15267
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15268
# The linker will automatically build a .lib file if we build a DLL.
15269
old_archive_From_new_cmds_F77='true'
15270
# FIXME: Should let the user specify the lib program.
15271
old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15272
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15273
enable_shared_with_static_runtimes_F77=yes
15276
darwin* | rhapsody*)
15278
rhapsody* | darwin1.[012])
15279
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15282
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15283
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15285
case ${MACOSX_DEPLOYMENT_TARGET} in
15287
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15290
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15296
archive_cmds_need_lc_F77=no
15297
hardcode_direct_F77=no
15298
hardcode_automatic_F77=yes
15299
hardcode_shlibpath_var_F77=unsupported
15300
whole_archive_flag_spec_F77=''
15301
link_all_deplibs_F77=yes
15302
if test "$GCC" = yes ; then
15303
output_verbose_link_cmd='echo'
15304
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}"
15305
module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15306
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}"
15307
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}"
15309
case $cc_basename in
15311
output_verbose_link_cmd='echo'
15312
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15313
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15314
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15315
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}'
15316
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}'
15326
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15327
hardcode_libdir_flag_spec_F77='-L$libdir'
15328
hardcode_shlibpath_var_F77=no
15335
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15336
# support. Future versions do this automatically, but an explicit c++rt0.o
15337
# does not break anything, and helps significantly (at the cost of a little
15340
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15341
hardcode_libdir_flag_spec_F77='-R$libdir'
15342
hardcode_direct_F77=yes
15343
hardcode_shlibpath_var_F77=no
15346
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
15348
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15349
hardcode_direct_F77=yes
15350
hardcode_minus_L_F77=yes
15351
hardcode_shlibpath_var_F77=no
15354
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15355
freebsd* | dragonfly*)
15356
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15357
hardcode_libdir_flag_spec_F77='-R$libdir'
15358
hardcode_direct_F77=yes
15359
hardcode_shlibpath_var_F77=no
15363
if test "$GCC" = yes; then
15364
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'
15366
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'
15368
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15369
hardcode_libdir_separator_F77=:
15370
hardcode_direct_F77=yes
15372
# hardcode_minus_L: Not really in the search PATH,
15373
# but as the default location of the library.
15374
hardcode_minus_L_F77=yes
15375
export_dynamic_flag_spec_F77='${wl}-E'
15379
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15380
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15382
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15384
if test "$with_gnu_ld" = no; then
15385
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15386
hardcode_libdir_separator_F77=:
15388
hardcode_direct_F77=yes
15389
export_dynamic_flag_spec_F77='${wl}-E'
15391
# hardcode_minus_L: Not really in the search PATH,
15392
# but as the default location of the library.
15393
hardcode_minus_L_F77=yes
15398
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15401
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15404
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15407
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15413
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15416
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15419
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15423
if test "$with_gnu_ld" = no; then
15424
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15425
hardcode_libdir_separator_F77=:
15429
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15430
hardcode_direct_F77=no
15431
hardcode_shlibpath_var_F77=no
15434
hardcode_direct_F77=yes
15435
export_dynamic_flag_spec_F77='${wl}-E'
15437
# hardcode_minus_L: Not really in the search PATH,
15438
# but as the default location of the library.
15439
hardcode_minus_L_F77=yes
15445
irix5* | irix6* | nonstopux*)
15446
if test "$GCC" = yes; then
15447
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'
15449
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'
15450
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15452
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15453
hardcode_libdir_separator_F77=:
15454
link_all_deplibs_F77=yes
15458
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15459
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15461
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15463
hardcode_libdir_flag_spec_F77='-R$libdir'
15464
hardcode_direct_F77=yes
15465
hardcode_shlibpath_var_F77=no
15469
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15470
hardcode_direct_F77=yes
15471
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15472
hardcode_libdir_separator_F77=:
15473
hardcode_shlibpath_var_F77=no
15477
if test -f /usr/libexec/ld.so; then
15478
hardcode_direct_F77=yes
15479
hardcode_shlibpath_var_F77=no
15480
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15481
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15482
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15483
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15484
export_dynamic_flag_spec_F77='${wl}-E'
15487
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15488
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15489
hardcode_libdir_flag_spec_F77='-R$libdir'
15492
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15493
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15503
hardcode_libdir_flag_spec_F77='-L$libdir'
15504
hardcode_minus_L_F77=yes
15505
allow_undefined_flag_F77=unsupported
15506
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'
15507
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15511
if test "$GCC" = yes; then
15512
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15513
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'
15515
allow_undefined_flag_F77=' -expect_unresolved \*'
15516
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'
15518
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15519
hardcode_libdir_separator_F77=:
15522
osf4* | osf5*) # as osf3* with the addition of -msym flag
15523
if test "$GCC" = yes; then
15524
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15525
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'
15526
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15528
allow_undefined_flag_F77=' -expect_unresolved \*'
15529
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'
15530
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~
15531
$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'
15533
# Both c and cxx compiler support -rpath directly
15534
hardcode_libdir_flag_spec_F77='-rpath $libdir'
15536
hardcode_libdir_separator_F77=:
15540
no_undefined_flag_F77=' -z text'
15541
if test "$GCC" = yes; then
15543
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15544
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15545
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15548
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15549
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15550
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15552
hardcode_libdir_flag_spec_F77='-R$libdir'
15553
hardcode_shlibpath_var_F77=no
15555
solaris2.[0-5] | solaris2.[0-5].*) ;;
15557
# The compiler driver will combine and reorder linker options,
15558
# but understands `-z linker_flag'. GCC discards it without `$wl',
15559
# but is careful enough not to reorder.
15560
# Supported since Solaris 2.6 (maybe 2.5.1?)
15561
if test "$GCC" = yes; then
15562
whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15564
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15568
link_all_deplibs_F77=yes
15572
if test "x$host_vendor" = xsequent; then
15573
# Use $CC to link under sequent, because it throws in some extra .o
15574
# files that make .init and .fini sections work.
15575
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15577
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15579
hardcode_libdir_flag_spec_F77='-L$libdir'
15580
hardcode_direct_F77=yes
15581
hardcode_minus_L_F77=yes
15582
hardcode_shlibpath_var_F77=no
15586
case $host_vendor in
15588
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15589
hardcode_direct_F77=yes # is this really true???
15592
## LD is ld it makes a PLAMLIB
15593
## CC just makes a GrossModule.
15594
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15595
reload_cmds_F77='$CC -r -o $output$reload_objs'
15596
hardcode_direct_F77=no
15599
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15600
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15603
runpath_var='LD_RUN_PATH'
15604
hardcode_shlibpath_var_F77=no
15608
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15609
hardcode_shlibpath_var_F77=no
15610
export_dynamic_flag_spec_F77='-Bexport'
15614
if test -d /usr/nec; then
15615
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15616
hardcode_shlibpath_var_F77=no
15617
runpath_var=LD_RUN_PATH
15618
hardcode_runpath_var=yes
15623
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15624
no_undefined_flag_F77='${wl}-z,text'
15625
archive_cmds_need_lc_F77=no
15626
hardcode_shlibpath_var_F77=no
15627
runpath_var='LD_RUN_PATH'
15629
if test "$GCC" = yes; then
15630
archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15631
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15633
archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15634
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15638
sysv5* | sco3.2v5* | sco5v6*)
15639
# Note: We can NOT use -z defs as we might desire, because we do not
15640
# link with -lc, and that would cause any symbols used from libc to
15641
# always be unresolved, which means just about no library would
15642
# ever link correctly. If we're not using GNU ld we use -z text
15643
# though, which does catch some bad symbols but isn't as heavy-handed
15645
no_undefined_flag_F77='${wl}-z,text'
15646
allow_undefined_flag_F77='${wl}-z,nodefs'
15647
archive_cmds_need_lc_F77=no
15648
hardcode_shlibpath_var_F77=no
15649
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15650
hardcode_libdir_separator_F77=':'
15651
link_all_deplibs_F77=yes
15652
export_dynamic_flag_spec_F77='${wl}-Bexport'
15653
runpath_var='LD_RUN_PATH'
15655
if test "$GCC" = yes; then
15656
archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15657
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15659
archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15660
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15665
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15666
hardcode_libdir_flag_spec_F77='-L$libdir'
15667
hardcode_shlibpath_var_F77=no
15676
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15677
$as_echo "$ld_shlibs_F77" >&6; }
15678
test "$ld_shlibs_F77" = no && can_build_shared=no
15681
# Do we need to explicitly link libc?
15683
case "x$archive_cmds_need_lc_F77" in
15685
# Assume -lc should be added
15686
archive_cmds_need_lc_F77=yes
15688
if test "$enable_shared" = yes && test "$GCC" = yes; then
15689
case $archive_cmds_F77 in
15691
# FIXME: we may have to deal with multi-command sequences.
15694
# Test whether the compiler implicitly links with -lc since on some
15695
# systems, -lgcc has to come before -lc. If gcc already passes -lc
15696
# to ld, don't add -lc before -lgcc.
15697
{ $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15698
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15700
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15702
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15703
(eval $ac_compile) 2>&5
15705
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15706
(exit $ac_status); } 2>conftest.err; then
15709
libobjs=conftest.$ac_objext
15711
wl=$lt_prog_compiler_wl_F77
15712
pic_flag=$lt_prog_compiler_pic_F77
15718
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15719
allow_undefined_flag_F77=
15720
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15721
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15723
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15724
(exit $ac_status); }
15726
archive_cmds_need_lc_F77=no
15728
archive_cmds_need_lc_F77=yes
15730
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15732
cat conftest.err 1>&5
15735
{ $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15736
$as_echo "$archive_cmds_need_lc_F77" >&6; }
15743
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15744
$as_echo_n "checking dynamic linker characteristics... " >&6; }
15745
library_names_spec=
15746
libname_spec='lib$name'
15750
postuninstall_cmds=
15754
shlibpath_overrides_runpath=unknown
15756
dynamic_linker="$host_os ld.so"
15757
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15759
need_lib_prefix=unknown
15760
hardcode_into_libs=no
15762
# when you set need_version to no, make sure it does not cause -set_version
15763
# flags to be left without arguments
15764
need_version=unknown
15769
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15770
shlibpath_var=LIBPATH
15772
# AIX 3 has no versioning support, so we append a major version to the name.
15773
soname_spec='${libname}${release}${shared_ext}$major'
15780
hardcode_into_libs=yes
15781
if test "$host_cpu" = ia64; then
15782
# AIX 5 supports IA64
15783
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15784
shlibpath_var=LD_LIBRARY_PATH
15786
# With GCC up to 2.95.x, collect2 would create an import file
15787
# for dependence libraries. The import file would start with
15788
# the line `#! .'. This would cause the generated library to
15789
# depend on `.', always an invalid library. This was fixed in
15790
# development snapshots of GCC prior to 3.0.
15792
aix4 | aix4.[01] | aix4.[01].*)
15793
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15795
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15798
can_build_shared=no
15802
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15803
# soname into executable. Probably we can add versioning support to
15804
# collect2, so additional links can be useful in future.
15805
if test "$aix_use_runtimelinking" = yes; then
15806
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
15807
# instead of lib<name>.a to let people know that these are not
15808
# typical AIX shared libraries.
15809
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15811
# We preserve .a as extension for shared libraries through AIX4.2
15812
# and later when we are not doing run time linking.
15813
library_names_spec='${libname}${release}.a $libname.a'
15814
soname_spec='${libname}${release}${shared_ext}$major'
15816
shlibpath_var=LIBPATH
15821
library_names_spec='$libname.ixlibrary $libname.a'
15822
# Create ${libname}_ixlibrary.a entries in /sys/libs.
15823
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'
15827
library_names_spec='${libname}${shared_ext}'
15828
dynamic_linker="$host_os ld.so"
15829
shlibpath_var=LIBRARY_PATH
15835
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15836
soname_spec='${libname}${release}${shared_ext}$major'
15837
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15838
shlibpath_var=LD_LIBRARY_PATH
15839
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15840
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15841
# the default ld.so.conf also contains /usr/contrib/lib and
15842
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15843
# libtool to hard-code these into programs
15846
cygwin* | mingw* | pw32*)
15847
version_type=windows
15852
case $GCC,$host_os in
15853
yes,cygwin* | yes,mingw* | yes,pw32*)
15854
library_names_spec='$libname.dll.a'
15855
# DLL is installed to $(libdir)/../bin by postinstall_cmds
15856
postinstall_cmds='base_file=`basename \${file}`~
15857
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15858
dldir=$destdir/`dirname \$dlpath`~
15859
test -d \$dldir || mkdir -p \$dldir~
15860
$install_prog $dir/$dlname \$dldir/$dlname~
15861
chmod a+x \$dldir/$dlname'
15862
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15863
dlpath=$dir/\$dldll~
15865
shlibpath_overrides_runpath=yes
15869
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
15870
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15871
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15874
# MinGW DLLs use traditional 'lib' prefix
15875
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15876
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15877
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15878
# It is most probably a Windows format PATH printed by
15879
# mingw gcc, but we are running on Cygwin. Gcc prints its search
15880
# path with ; separators, and with drive letters. We can handle the
15881
# drive letters (cygwin fileutils understands them), so leave them,
15882
# especially as we might pass files found there to a mingw objdump,
15883
# which wouldn't understand a cygwinified path. Ahh.
15884
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15886
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15890
# pw32 DLLs use 'pw' prefix rather than 'lib'
15891
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15897
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15900
dynamic_linker='Win32 ld.exe'
15901
# FIXME: first we should search . and the directory the executable is in
15905
darwin* | rhapsody*)
15906
dynamic_linker="$host_os dyld"
15907
version_type=darwin
15910
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15911
soname_spec='${libname}${release}${major}$shared_ext'
15912
shlibpath_overrides_runpath=yes
15913
shlibpath_var=DYLD_LIBRARY_PATH
15914
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15916
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15923
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15924
soname_spec='${libname}${release}${shared_ext}$major'
15925
shlibpath_var=LD_LIBRARY_PATH
15932
freebsd* | dragonfly*)
15933
# DragonFly does not have aout. When/if they implement a new
15934
# versioning mechanism, adjust this.
15935
if test -x /usr/bin/objformat; then
15936
objformat=`/usr/bin/objformat`
15939
freebsd[123]*) objformat=aout ;;
15940
*) objformat=elf ;;
15943
version_type=freebsd-$objformat
15944
case $version_type in
15946
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15951
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15955
shlibpath_var=LD_LIBRARY_PATH
15958
shlibpath_overrides_runpath=yes
15960
freebsd3.[01]* | freebsdelf3.[01]*)
15961
shlibpath_overrides_runpath=yes
15962
hardcode_into_libs=yes
15964
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15965
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15966
shlibpath_overrides_runpath=no
15967
hardcode_into_libs=yes
15969
*) # from 4.6 on, and DragonFly
15970
shlibpath_overrides_runpath=yes
15971
hardcode_into_libs=yes
15980
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15981
soname_spec='${libname}${release}${shared_ext}$major'
15982
shlibpath_var=LD_LIBRARY_PATH
15983
hardcode_into_libs=yes
15986
hpux9* | hpux10* | hpux11*)
15987
# Give a soname corresponding to the major version so that dld.sl refuses to
15988
# link against other versions.
15995
hardcode_into_libs=yes
15996
dynamic_linker="$host_os dld.so"
15997
shlibpath_var=LD_LIBRARY_PATH
15998
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15999
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16000
soname_spec='${libname}${release}${shared_ext}$major'
16001
if test "X$HPUX_IA64_MODE" = X32; then
16002
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16004
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16006
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16010
hardcode_into_libs=yes
16011
dynamic_linker="$host_os dld.sl"
16012
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16013
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16014
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16015
soname_spec='${libname}${release}${shared_ext}$major'
16016
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16017
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16021
dynamic_linker="$host_os dld.sl"
16022
shlibpath_var=SHLIB_PATH
16023
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16024
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16025
soname_spec='${libname}${release}${shared_ext}$major'
16028
# HP-UX runs *really* slowly unless shared libraries are mode 555.
16029
postinstall_cmds='chmod 555 $lib'
16036
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16037
soname_spec='${libname}${release}${shared_ext}$major'
16038
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16039
shlibpath_var=LD_LIBRARY_PATH
16040
shlibpath_overrides_runpath=no
16041
hardcode_into_libs=yes
16044
irix5* | irix6* | nonstopux*)
16046
nonstopux*) version_type=nonstopux ;;
16048
if test "$lt_cv_prog_gnu_ld" = yes; then
16056
soname_spec='${libname}${release}${shared_ext}$major'
16057
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16059
irix5* | nonstopux*)
16060
libsuff= shlibsuff=
16063
case $LD in # libtool.m4 will add one of these switches to LD
16064
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16065
libsuff= shlibsuff= libmagic=32-bit;;
16066
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16067
libsuff=32 shlibsuff=N32 libmagic=N32;;
16068
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16069
libsuff=64 shlibsuff=64 libmagic=64-bit;;
16070
*) libsuff= shlibsuff= libmagic=never-match;;
16074
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16075
shlibpath_overrides_runpath=no
16076
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16077
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16078
hardcode_into_libs=yes
16081
# No shared lib support for Linux oldld, aout, or coff.
16082
linux*oldld* | linux*aout* | linux*coff*)
16086
# This must be Linux ELF.
16087
linux* | k*bsd*-gnu)
16091
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16092
soname_spec='${libname}${release}${shared_ext}$major'
16093
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16094
shlibpath_var=LD_LIBRARY_PATH
16095
shlibpath_overrides_runpath=no
16096
# This implies no fast_install, which is unacceptable.
16097
# Some rework will be needed to allow for fast_install
16098
# before this can be enabled.
16099
hardcode_into_libs=yes
16100
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16101
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16103
# Append ld.so.conf contents to the search path
16104
if test -f /etc/ld.so.conf; then
16105
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' ' '`
16106
sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16109
# We used to test for /lib/ld.so.1 and disable shared libraries on
16110
# powerpc, because MkLinux only supported shared libraries with the
16111
# GNU dynamic linker. Since this was broken with cross compilers,
16112
# most powerpc-linux boxes support dynamic linking these days and
16113
# people can always --disable-shared, the test was removed, and we
16114
# assume the GNU/Linux dynamic linker is in use.
16115
dynamic_linker='GNU/Linux ld.so'
16122
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16123
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16124
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16125
dynamic_linker='NetBSD (a.out) ld.so'
16127
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16128
soname_spec='${libname}${release}${shared_ext}$major'
16129
dynamic_linker='NetBSD ld.elf_so'
16131
shlibpath_var=LD_LIBRARY_PATH
16132
shlibpath_overrides_runpath=yes
16133
hardcode_into_libs=yes
16138
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16139
shlibpath_var=LD_LIBRARY_PATH
16140
shlibpath_overrides_runpath=yes
16147
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16148
soname_spec='${libname}${release}${shared_ext}$major'
16149
shlibpath_var=LD_LIBRARY_PATH
16150
shlibpath_overrides_runpath=yes
16155
sys_lib_dlsearch_path_spec="/usr/lib"
16157
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16159
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16160
*) need_version=no ;;
16162
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16163
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16164
shlibpath_var=LD_LIBRARY_PATH
16165
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16167
openbsd2.[89] | openbsd2.[89].*)
16168
shlibpath_overrides_runpath=no
16171
shlibpath_overrides_runpath=yes
16175
shlibpath_overrides_runpath=yes
16180
libname_spec='$name'
16183
library_names_spec='$libname${shared_ext} $libname.a'
16184
dynamic_linker='OS/2 ld.exe'
16185
shlibpath_var=LIBPATH
16188
osf3* | osf4* | osf5*)
16192
soname_spec='${libname}${release}${shared_ext}$major'
16193
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16194
shlibpath_var=LD_LIBRARY_PATH
16195
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16196
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16207
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16208
soname_spec='${libname}${release}${shared_ext}$major'
16209
shlibpath_var=LD_LIBRARY_PATH
16210
shlibpath_overrides_runpath=yes
16211
hardcode_into_libs=yes
16212
# ldd complains unless libraries are executable
16213
postinstall_cmds='chmod +x $lib'
16218
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16219
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16220
shlibpath_var=LD_LIBRARY_PATH
16221
shlibpath_overrides_runpath=yes
16222
if test "$with_gnu_ld" = yes; then
16230
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16231
soname_spec='${libname}${release}${shared_ext}$major'
16232
shlibpath_var=LD_LIBRARY_PATH
16233
case $host_vendor in
16235
shlibpath_overrides_runpath=no
16237
export_dynamic_flag_spec='${wl}-Blargedynsym'
16238
runpath_var=LD_RUN_PATH
16246
shlibpath_overrides_runpath=no
16247
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16253
if test -d /usr/nec ;then
16255
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16256
soname_spec='$libname${shared_ext}.$major'
16257
shlibpath_var=LD_LIBRARY_PATH
16261
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16262
version_type=freebsd-elf
16265
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16266
soname_spec='${libname}${release}${shared_ext}$major'
16267
shlibpath_var=LD_LIBRARY_PATH
16268
hardcode_into_libs=yes
16269
if test "$with_gnu_ld" = yes; then
16270
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16271
shlibpath_overrides_runpath=no
16273
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16274
shlibpath_overrides_runpath=yes
16277
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16281
sys_lib_dlsearch_path_spec='/usr/lib'
16286
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16287
soname_spec='${libname}${release}${shared_ext}$major'
16288
shlibpath_var=LD_LIBRARY_PATH
16295
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16296
$as_echo "$dynamic_linker" >&6; }
16297
test "$dynamic_linker" = no && can_build_shared=no
16299
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16300
$as_echo_n "(cached) " >&6
16302
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16305
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16306
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16307
$as_echo_n "(cached) " >&6
16309
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16312
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16314
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16315
if test "$GCC" = yes; then
16316
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16319
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16320
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16321
hardcode_action_F77=
16322
if test -n "$hardcode_libdir_flag_spec_F77" || \
16323
test -n "$runpath_var_F77" || \
16324
test "X$hardcode_automatic_F77" = "Xyes" ; then
16326
# We can hardcode non-existant directories.
16327
if test "$hardcode_direct_F77" != no &&
16328
# If the only mechanism to avoid hardcoding is shlibpath_var, we
16329
# have to relink, otherwise we might link with an installed library
16330
# when we should be linking with a yet-to-be-installed one
16331
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16332
test "$hardcode_minus_L_F77" != no; then
16333
# Linking always hardcodes the temporary library directory.
16334
hardcode_action_F77=relink
16336
# We can link without hardcoding, and we can hardcode nonexisting dirs.
16337
hardcode_action_F77=immediate
16340
# We cannot hardcode anything, or else we can only hardcode existing
16342
hardcode_action_F77=unsupported
16344
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16345
$as_echo "$hardcode_action_F77" >&6; }
16347
if test "$hardcode_action_F77" = relink; then
16348
# Fast installation is not supported
16349
enable_fast_install=no
16350
elif test "$shlibpath_overrides_runpath" = yes ||
16351
test "$enable_shared" = no; then
16352
# Fast installation is not necessary
16353
enable_fast_install=needless
16357
# The else clause should only fire when bootstrapping the
16358
# libtool distribution, otherwise you forgot to ship ltmain.sh
16359
# with your package, and you will get complaints that there are
16360
# no rules to generate ltmain.sh.
16361
if test -f "$ltmain"; then
16362
# See if we are running on zsh, and set the options which allow our commands through
16363
# without removal of \ escapes.
16364
if test -n "${ZSH_VERSION+set}" ; then
16365
setopt NO_GLOB_SUBST
16367
# Now quote all the things that may contain metacharacters while being
16368
# careful not to overquote the AC_SUBSTed values. We take copies of the
16369
# variables and quote the copies for generation of the libtool script.
16370
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16372
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16373
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16374
deplibs_check_method reload_flag reload_cmds need_locks \
16375
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16376
lt_cv_sys_global_symbol_to_c_name_address \
16377
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16378
old_postinstall_cmds old_postuninstall_cmds \
16382
lt_prog_compiler_wl_F77 \
16383
lt_prog_compiler_pic_F77 \
16384
lt_prog_compiler_static_F77 \
16385
lt_prog_compiler_no_builtin_flag_F77 \
16386
export_dynamic_flag_spec_F77 \
16387
thread_safe_flag_spec_F77 \
16388
whole_archive_flag_spec_F77 \
16389
enable_shared_with_static_runtimes_F77 \
16390
old_archive_cmds_F77 \
16391
old_archive_from_new_cmds_F77 \
16392
predep_objects_F77 \
16393
postdep_objects_F77 \
16396
compiler_lib_search_path_F77 \
16397
compiler_lib_search_dirs_F77 \
16399
archive_expsym_cmds_F77 \
16400
postinstall_cmds_F77 \
16401
postuninstall_cmds_F77 \
16402
old_archive_from_expsyms_cmds_F77 \
16403
allow_undefined_flag_F77 \
16404
no_undefined_flag_F77 \
16405
export_symbols_cmds_F77 \
16406
hardcode_libdir_flag_spec_F77 \
16407
hardcode_libdir_flag_spec_ld_F77 \
16408
hardcode_libdir_separator_F77 \
16409
hardcode_automatic_F77 \
16411
module_expsym_cmds_F77 \
16412
lt_cv_prog_compiler_c_o_F77 \
16413
fix_srcfile_path_F77 \
16414
exclude_expsyms_F77 \
16415
include_expsyms_F77; do
16418
old_archive_cmds_F77 | \
16419
old_archive_from_new_cmds_F77 | \
16420
archive_cmds_F77 | \
16421
archive_expsym_cmds_F77 | \
16422
module_cmds_F77 | \
16423
module_expsym_cmds_F77 | \
16424
old_archive_from_expsyms_cmds_F77 | \
16425
export_symbols_cmds_F77 | \
16426
extract_expsyms_cmds | reload_cmds | finish_cmds | \
16427
postinstall_cmds | postuninstall_cmds | \
16428
old_postinstall_cmds | old_postuninstall_cmds | \
16429
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16430
# Double-quote double-evaled strings.
16431
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16434
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16440
*'\$0 --fallback-echo"')
16441
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16447
cat <<__EOF__ >> "$cfgfile"
16448
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16450
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16452
# Shell to use when invoking shell scripts.
16455
# Whether or not to build shared libraries.
16456
build_libtool_libs=$enable_shared
16458
# Whether or not to build static libraries.
16459
build_old_libs=$enable_static
16461
# Whether or not to add -lc for building shared libraries.
16462
build_libtool_need_lc=$archive_cmds_need_lc_F77
16464
# Whether or not to disallow shared libs when runtime libs are static
16465
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16467
# Whether or not to optimize for fast installation.
16468
fast_install=$enable_fast_install
16471
host_alias=$host_alias
16475
# The build system.
16476
build_alias=$build_alias
16480
# An echo program that does not interpret backslashes.
16485
AR_FLAGS=$lt_AR_FLAGS
16490
# LTCC compiler flags.
16491
LTCFLAGS=$lt_LTCFLAGS
16493
# A language-specific compiler.
16494
CC=$lt_compiler_F77
16496
# Is the compiler the GNU C compiler?
16502
# The linker used to build libraries.
16505
# Whether we need hard or soft links.
16508
# A BSD-compatible nm program.
16511
# A symbol stripping program
16514
# Used to examine libraries when file_magic_cmd begins "file"
16515
MAGIC_CMD=$MAGIC_CMD
16517
# Used on cygwin: DLL creation program.
16520
# Used on cygwin: object dumper.
16523
# Used on cygwin: assembler.
16526
# The name of the directory that contains temporary libtool files.
16529
# How to create reloadable object files.
16530
reload_flag=$lt_reload_flag
16531
reload_cmds=$lt_reload_cmds
16533
# How to pass a linker flag through the compiler.
16534
wl=$lt_lt_prog_compiler_wl_F77
16536
# Object file suffix (normally "o").
16537
objext="$ac_objext"
16539
# Old archive suffix (normally "a").
16542
# Shared library suffix (normally ".so").
16543
shrext_cmds='$shrext_cmds'
16545
# Executable file suffix (normally "").
16548
# Additional compiler flags for building library objects.
16549
pic_flag=$lt_lt_prog_compiler_pic_F77
16552
# What is the maximum length of a command?
16553
max_cmd_len=$lt_cv_sys_max_cmd_len
16555
# Does compiler simultaneously support -c and -o options?
16556
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16558
# Must we lock files when doing compilation?
16559
need_locks=$lt_need_locks
16561
# Do we need the lib prefix for modules?
16562
need_lib_prefix=$need_lib_prefix
16564
# Do we need a version for libraries?
16565
need_version=$need_version
16567
# Whether dlopen is supported.
16568
dlopen_support=$enable_dlopen
16570
# Whether dlopen of programs is supported.
16571
dlopen_self=$enable_dlopen_self
16573
# Whether dlopen of statically linked programs is supported.
16574
dlopen_self_static=$enable_dlopen_self_static
16576
# Compiler flag to prevent dynamic linking.
16577
link_static_flag=$lt_lt_prog_compiler_static_F77
16579
# Compiler flag to turn off builtin functions.
16580
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16582
# Compiler flag to allow reflexive dlopens.
16583
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16585
# Compiler flag to generate shared objects directly from archives.
16586
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16588
# Compiler flag to generate thread-safe objects.
16589
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16591
# Library versioning type.
16592
version_type=$version_type
16594
# Format of library name prefix.
16595
libname_spec=$lt_libname_spec
16597
# List of archive names. First name is the real one, the rest are links.
16598
# The last name is the one that the linker finds with -lNAME.
16599
library_names_spec=$lt_library_names_spec
16601
# The coded name of the library, if different from the real name.
16602
soname_spec=$lt_soname_spec
16604
# Commands used to build and install an old-style archive.
16606
old_archive_cmds=$lt_old_archive_cmds_F77
16607
old_postinstall_cmds=$lt_old_postinstall_cmds
16608
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16610
# Create an old-style archive from a shared archive.
16611
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16613
# Create a temporary old-style archive to link instead of a shared archive.
16614
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16616
# Commands used to build and install a shared archive.
16617
archive_cmds=$lt_archive_cmds_F77
16618
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16619
postinstall_cmds=$lt_postinstall_cmds
16620
postuninstall_cmds=$lt_postuninstall_cmds
16622
# Commands used to build a loadable module (assumed same as above if empty)
16623
module_cmds=$lt_module_cmds_F77
16624
module_expsym_cmds=$lt_module_expsym_cmds_F77
16626
# Commands to strip libraries.
16627
old_striplib=$lt_old_striplib
16628
striplib=$lt_striplib
16630
# Dependencies to place before the objects being linked to create a
16632
predep_objects=$lt_predep_objects_F77
16634
# Dependencies to place after the objects being linked to create a
16636
postdep_objects=$lt_postdep_objects_F77
16638
# Dependencies to place before the objects being linked to create a
16640
predeps=$lt_predeps_F77
16642
# Dependencies to place after the objects being linked to create a
16644
postdeps=$lt_postdeps_F77
16646
# The directories searched by this compiler when creating a shared
16648
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16650
# The library search path used internally by the compiler when linking
16651
# a shared library.
16652
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16654
# Method to check whether dependent libraries are shared objects.
16655
deplibs_check_method=$lt_deplibs_check_method
16657
# Command to use when deplibs_check_method == file_magic.
16658
file_magic_cmd=$lt_file_magic_cmd
16660
# Flag that allows shared libraries with undefined symbols to be built.
16661
allow_undefined_flag=$lt_allow_undefined_flag_F77
16663
# Flag that forces no undefined symbols.
16664
no_undefined_flag=$lt_no_undefined_flag_F77
16666
# Commands used to finish a libtool library installation in a directory.
16667
finish_cmds=$lt_finish_cmds
16669
# Same as above, but a single script fragment to be evaled but not shown.
16670
finish_eval=$lt_finish_eval
16672
# Take the output of nm and produce a listing of raw symbols and C names.
16673
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16675
# Transform the output of nm in a proper C declaration
16676
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16678
# Transform the output of nm in a C name address pair
16679
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16681
# This is the shared library runtime path variable.
16682
runpath_var=$runpath_var
16684
# This is the shared library path variable.
16685
shlibpath_var=$shlibpath_var
16687
# Is shlibpath searched before the hard-coded library search path?
16688
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16690
# How to hardcode a shared library path into an executable.
16691
hardcode_action=$hardcode_action_F77
16693
# Whether we should hardcode library paths into libraries.
16694
hardcode_into_libs=$hardcode_into_libs
16696
# Flag to hardcode \$libdir into a binary during linking.
16697
# This must work even if \$libdir does not exist.
16698
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16700
# If ld is used when linking, flag to hardcode \$libdir into
16701
# a binary during linking. This must work even if \$libdir does
16703
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16705
# Whether we need a single -rpath flag with a separated argument.
16706
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16708
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16709
# resulting binary.
16710
hardcode_direct=$hardcode_direct_F77
16712
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16713
# resulting binary.
16714
hardcode_minus_L=$hardcode_minus_L_F77
16716
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16717
# the resulting binary.
16718
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16720
# Set to yes if building a shared library automatically hardcodes DIR into the library
16721
# and all subsequent libraries and executables linked against it.
16722
hardcode_automatic=$hardcode_automatic_F77
16724
# Variables whose values should be saved in libtool wrapper scripts and
16725
# restored at relink time.
16726
variables_saved_for_relink="$variables_saved_for_relink"
16728
# Whether libtool must link a program against all its dependency libraries.
16729
link_all_deplibs=$link_all_deplibs_F77
16731
# Compile-time system search path for libraries
16732
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16734
# Run-time system search path for libraries
16735
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16737
# Fix the shell variable \$srcfile for the compiler.
16738
fix_srcfile_path=$lt_fix_srcfile_path
16740
# Set to yes if exported symbols are required.
16741
always_export_symbols=$always_export_symbols_F77
16743
# The commands to list exported symbols.
16744
export_symbols_cmds=$lt_export_symbols_cmds_F77
16746
# The commands to extract the exported symbol list from a shared archive.
16747
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16749
# Symbols that should not be listed in the preloaded symbols.
16750
exclude_expsyms=$lt_exclude_expsyms_F77
16752
# Symbols that must always be exported.
16753
include_expsyms=$lt_include_expsyms_F77
16755
# ### END LIBTOOL TAG CONFIG: $tagname
16761
# If there is no Makefile yet, we rely on a make rule to execute
16762
# `config.status --recheck' to rerun these tests and create the
16763
# libtool script then.
16764
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16765
if test -f "$ltmain_in"; then
16766
test -f Makefile && make "$ltmain"
16772
ac_cpp='$CPP $CPPFLAGS'
16773
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16774
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16775
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16785
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16788
# Source file extension for Java test sources.
16791
# Object file extension for compiled Java test sources.
16795
# Code to be used in simple compile tests
16796
lt_simple_compile_test_code="class foo {}"
16798
# Code to be used in simple link tests
16799
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16801
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16803
# If no C compiler was specified, use CC.
16806
# If no C compiler flags were specified, use CFLAGS.
16807
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16809
# Allow CC to be a program name with arguments.
16813
# save warnings/boilerplate of simple test code
16814
ac_outfile=conftest.$ac_objext
16815
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16816
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16817
_lt_compiler_boilerplate=`cat conftest.err`
16820
ac_outfile=conftest.$ac_objext
16821
echo "$lt_simple_link_test_code" >conftest.$ac_ext
16822
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16823
_lt_linker_boilerplate=`cat conftest.err`
16827
# Allow CC to be a program name with arguments.
16832
for cc_temp in $compiler""; do
16834
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16835
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16840
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16843
# GCJ did not exist at the time GCC didn't implicitly link libc in.
16844
archive_cmds_need_lc_GCJ=no
16846
old_archive_cmds_GCJ=$old_archive_cmds
16849
lt_prog_compiler_no_builtin_flag_GCJ=
16851
if test "$GCC" = yes; then
16852
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16855
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16856
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16857
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16858
$as_echo_n "(cached) " >&6
16860
lt_cv_prog_compiler_rtti_exceptions=no
16861
ac_outfile=conftest.$ac_objext
16862
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16863
lt_compiler_flag="-fno-rtti -fno-exceptions"
16864
# Insert the option either (1) after the last *FLAGS variable, or
16865
# (2) before a word containing "conftest.", or (3) at the end.
16866
# Note that $ac_compile itself does not contain backslashes and begins
16867
# with a dollar sign (not a hyphen), so the echo should work correctly.
16868
# The option is referenced via a variable to avoid confusing sed.
16869
lt_compile=`echo "$ac_compile" | $SED \
16870
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16871
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16872
-e 's:$: $lt_compiler_flag:'`
16873
(eval echo "\"\$as_me:16873: $lt_compile\"" >&5)
16874
(eval "$lt_compile" 2>conftest.err)
16876
cat conftest.err >&5
16877
echo "$as_me:16877: \$? = $ac_status" >&5
16878
if (exit $ac_status) && test -s "$ac_outfile"; then
16879
# The compiler can only warn and ignore the option if not recognized
16880
# So say no if there are warnings other than the usual output.
16881
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16882
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16883
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16884
lt_cv_prog_compiler_rtti_exceptions=yes
16890
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16891
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16893
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16894
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16901
lt_prog_compiler_wl_GCJ=
16902
lt_prog_compiler_pic_GCJ=
16903
lt_prog_compiler_static_GCJ=
16905
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16906
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16908
if test "$GCC" = yes; then
16909
lt_prog_compiler_wl_GCJ='-Wl,'
16910
lt_prog_compiler_static_GCJ='-static'
16914
# All AIX code is PIC.
16915
if test "$host_cpu" = ia64; then
16916
# AIX 5 now supports IA64 processor
16917
lt_prog_compiler_static_GCJ='-Bstatic'
16922
# FIXME: we need at least 68020 code to build shared libraries, but
16923
# adding the `-m68020' flag to GCC prevents building anything better,
16925
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16928
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16929
# PIC is the default for these OSes.
16932
mingw* | cygwin* | pw32* | os2*)
16933
# This hack is so that the source file can tell whether it is being
16934
# built for inclusion in a dll (and should export symbols for example).
16935
# Although the cygwin gcc ignores -fPIC, still need this for old-style
16936
# (--disable-auto-import) libraries
16940
darwin* | rhapsody*)
16941
# PIC is the default on this platform
16942
# Common symbols not allowed in MH_DYLIB files
16943
lt_prog_compiler_pic_GCJ='-fno-common'
16947
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
16948
# Instead, we relocate shared libraries at runtime.
16952
# Just because we use GCC doesn't mean we suddenly get shared libraries
16953
# on systems that don't support them.
16954
lt_prog_compiler_can_build_shared_GCJ=no
16959
if test -d /usr/nec; then
16960
lt_prog_compiler_pic_GCJ=-Kconform_pic
16965
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16966
# not for PA HP-UX.
16972
lt_prog_compiler_pic_GCJ='-fPIC'
16978
lt_prog_compiler_pic_GCJ='-fPIC'
16982
# PORTME Check for flag to pass linker flags through the system compiler.
16985
lt_prog_compiler_wl_GCJ='-Wl,'
16986
if test "$host_cpu" = ia64; then
16987
# AIX 5 now supports IA64 processor
16988
lt_prog_compiler_static_GCJ='-Bstatic'
16990
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16994
# PIC is the default on this platform
16995
# Common symbols not allowed in MH_DYLIB files
16996
case $cc_basename in
16998
lt_prog_compiler_pic_GCJ='-qnocommon'
16999
lt_prog_compiler_wl_GCJ='-Wl,'
17004
mingw* | cygwin* | pw32* | os2*)
17005
# This hack is so that the source file can tell whether it is being
17006
# built for inclusion in a dll (and should export symbols for example).
17010
hpux9* | hpux10* | hpux11*)
17011
lt_prog_compiler_wl_GCJ='-Wl,'
17012
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17013
# not for PA HP-UX.
17019
lt_prog_compiler_pic_GCJ='+Z'
17022
# Is there a better lt_prog_compiler_static that works with the bundled CC?
17023
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17026
irix5* | irix6* | nonstopux*)
17027
lt_prog_compiler_wl_GCJ='-Wl,'
17028
# PIC (with -KPIC) is the default.
17029
lt_prog_compiler_static_GCJ='-non_shared'
17033
lt_prog_compiler_pic_GCJ='-KPIC'
17034
lt_prog_compiler_static_GCJ='-Bstatic'
17037
linux* | k*bsd*-gnu)
17038
case $cc_basename in
17040
lt_prog_compiler_wl_GCJ='-Wl,'
17041
lt_prog_compiler_pic_GCJ='-KPIC'
17042
lt_prog_compiler_static_GCJ='-static'
17044
pgcc* | pgf77* | pgf90* | pgf95*)
17045
# Portland Group compilers (*not* the Pentium gcc compiler,
17046
# which looks to be a dead project)
17047
lt_prog_compiler_wl_GCJ='-Wl,'
17048
lt_prog_compiler_pic_GCJ='-fpic'
17049
lt_prog_compiler_static_GCJ='-Bstatic'
17052
lt_prog_compiler_wl_GCJ='-Wl,'
17053
# All Alpha code is PIC.
17054
lt_prog_compiler_static_GCJ='-non_shared'
17057
case `$CC -V 2>&1 | sed 5q` in
17060
lt_prog_compiler_pic_GCJ='-KPIC'
17061
lt_prog_compiler_static_GCJ='-Bstatic'
17062
lt_prog_compiler_wl_GCJ='-Wl,'
17065
# Sun Fortran 8.3 passes all unrecognized flags to the linker
17066
lt_prog_compiler_pic_GCJ='-KPIC'
17067
lt_prog_compiler_static_GCJ='-Bstatic'
17068
lt_prog_compiler_wl_GCJ=''
17075
osf3* | osf4* | osf5*)
17076
lt_prog_compiler_wl_GCJ='-Wl,'
17077
# All OSF/1 code is PIC.
17078
lt_prog_compiler_static_GCJ='-non_shared'
17082
lt_prog_compiler_static_GCJ='-non_shared'
17086
lt_prog_compiler_pic_GCJ='-KPIC'
17087
lt_prog_compiler_static_GCJ='-Bstatic'
17088
case $cc_basename in
17089
f77* | f90* | f95*)
17090
lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17092
lt_prog_compiler_wl_GCJ='-Wl,';;
17097
lt_prog_compiler_wl_GCJ='-Qoption ld '
17098
lt_prog_compiler_pic_GCJ='-PIC'
17099
lt_prog_compiler_static_GCJ='-Bstatic'
17102
sysv4 | sysv4.2uw2* | sysv4.3*)
17103
lt_prog_compiler_wl_GCJ='-Wl,'
17104
lt_prog_compiler_pic_GCJ='-KPIC'
17105
lt_prog_compiler_static_GCJ='-Bstatic'
17109
if test -d /usr/nec ;then
17110
lt_prog_compiler_pic_GCJ='-Kconform_pic'
17111
lt_prog_compiler_static_GCJ='-Bstatic'
17115
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17116
lt_prog_compiler_wl_GCJ='-Wl,'
17117
lt_prog_compiler_pic_GCJ='-KPIC'
17118
lt_prog_compiler_static_GCJ='-Bstatic'
17122
lt_prog_compiler_wl_GCJ='-Wl,'
17123
lt_prog_compiler_can_build_shared_GCJ=no
17127
lt_prog_compiler_pic_GCJ='-pic'
17128
lt_prog_compiler_static_GCJ='-Bstatic'
17132
lt_prog_compiler_can_build_shared_GCJ=no
17137
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17138
$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17141
# Check to make sure the PIC flag actually works.
17143
if test -n "$lt_prog_compiler_pic_GCJ"; then
17145
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17146
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17147
if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17148
$as_echo_n "(cached) " >&6
17150
lt_cv_prog_compiler_pic_works_GCJ=no
17151
ac_outfile=conftest.$ac_objext
17152
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17153
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17154
# Insert the option either (1) after the last *FLAGS variable, or
17155
# (2) before a word containing "conftest.", or (3) at the end.
17156
# Note that $ac_compile itself does not contain backslashes and begins
17157
# with a dollar sign (not a hyphen), so the echo should work correctly.
17158
# The option is referenced via a variable to avoid confusing sed.
17159
lt_compile=`echo "$ac_compile" | $SED \
17160
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17161
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17162
-e 's:$: $lt_compiler_flag:'`
17163
(eval echo "\"\$as_me:17163: $lt_compile\"" >&5)
17164
(eval "$lt_compile" 2>conftest.err)
17166
cat conftest.err >&5
17167
echo "$as_me:17167: \$? = $ac_status" >&5
17168
if (exit $ac_status) && test -s "$ac_outfile"; then
17169
# The compiler can only warn and ignore the option if not recognized
17170
# So say no if there are warnings other than the usual output.
17171
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17172
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17173
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17174
lt_cv_prog_compiler_pic_works_GCJ=yes
17180
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17181
$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17183
if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17184
case $lt_prog_compiler_pic_GCJ in
17186
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17189
lt_prog_compiler_pic_GCJ=
17190
lt_prog_compiler_can_build_shared_GCJ=no
17195
# For platforms which do not support PIC, -DPIC is meaningless:
17197
lt_prog_compiler_pic_GCJ=
17200
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17205
# Check to make sure the static flag actually works.
17207
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17208
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17209
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17210
if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17211
$as_echo_n "(cached) " >&6
17213
lt_cv_prog_compiler_static_works_GCJ=no
17214
save_LDFLAGS="$LDFLAGS"
17215
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17216
echo "$lt_simple_link_test_code" > conftest.$ac_ext
17217
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17218
# The linker can only warn and ignore the option if not recognized
17219
# So say no if there are warnings
17220
if test -s conftest.err; then
17221
# Append any errors to the config.log.
17222
cat conftest.err 1>&5
17223
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17224
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17225
if diff conftest.exp conftest.er2 >/dev/null; then
17226
lt_cv_prog_compiler_static_works_GCJ=yes
17229
lt_cv_prog_compiler_static_works_GCJ=yes
17233
LDFLAGS="$save_LDFLAGS"
17236
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17237
$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17239
if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17242
lt_prog_compiler_static_GCJ=
17246
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17247
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17248
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17249
$as_echo_n "(cached) " >&6
17251
lt_cv_prog_compiler_c_o_GCJ=no
17252
$rm -r conftest 2>/dev/null
17256
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17258
lt_compiler_flag="-o out/conftest2.$ac_objext"
17259
# Insert the option either (1) after the last *FLAGS variable, or
17260
# (2) before a word containing "conftest.", or (3) at the end.
17261
# Note that $ac_compile itself does not contain backslashes and begins
17262
# with a dollar sign (not a hyphen), so the echo should work correctly.
17263
lt_compile=`echo "$ac_compile" | $SED \
17264
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17265
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17266
-e 's:$: $lt_compiler_flag:'`
17267
(eval echo "\"\$as_me:17267: $lt_compile\"" >&5)
17268
(eval "$lt_compile" 2>out/conftest.err)
17270
cat out/conftest.err >&5
17271
echo "$as_me:17271: \$? = $ac_status" >&5
17272
if (exit $ac_status) && test -s out/conftest2.$ac_objext
17274
# The compiler can only warn and ignore the option if not recognized
17275
# So say no if there are warnings
17276
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17277
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17278
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17279
lt_cv_prog_compiler_c_o_GCJ=yes
17284
# SGI C++ compiler will create directory out/ii_files/ for
17285
# template instantiation
17286
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17287
$rm out/* && rmdir out
17293
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17294
$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17297
hard_links="nottested"
17298
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17299
# do not overwrite the value of need_locks provided by the user
17300
{ $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17301
$as_echo_n "checking if we can lock with hard links... " >&6; }
17304
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17306
ln conftest.a conftest.b 2>&5 || hard_links=no
17307
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17308
{ $as_echo "$as_me:$LINENO: result: $hard_links" >&5
17309
$as_echo "$hard_links" >&6; }
17310
if test "$hard_links" = no; then
17311
{ $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17312
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17319
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17320
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17323
allow_undefined_flag_GCJ=
17324
enable_shared_with_static_runtimes_GCJ=no
17326
archive_expsym_cmds_GCJ=
17327
old_archive_From_new_cmds_GCJ=
17328
old_archive_from_expsyms_cmds_GCJ=
17329
export_dynamic_flag_spec_GCJ=
17330
whole_archive_flag_spec_GCJ=
17331
thread_safe_flag_spec_GCJ=
17332
hardcode_libdir_flag_spec_GCJ=
17333
hardcode_libdir_flag_spec_ld_GCJ=
17334
hardcode_libdir_separator_GCJ=
17335
hardcode_direct_GCJ=no
17336
hardcode_minus_L_GCJ=no
17337
hardcode_shlibpath_var_GCJ=unsupported
17338
link_all_deplibs_GCJ=unknown
17339
hardcode_automatic_GCJ=no
17341
module_expsym_cmds_GCJ=
17342
always_export_symbols_GCJ=no
17343
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17344
# include_expsyms should be a list of space-separated symbols to be *always*
17345
# included in the symbol list
17346
include_expsyms_GCJ=
17347
# exclude_expsyms can be an extended regexp of symbols to exclude
17348
# it will be wrapped by ` (' and `)$', so one must not match beginning or
17349
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17350
# as well as any symbol that contains `d'.
17351
exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17352
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17353
# platforms (ab)use it in PIC code, but their linkers get confused if
17354
# the symbol is explicitly referenced. Since portable code cannot
17355
# rely on this symbol name, it's probably fine to never include it in
17356
# preloaded symbol tables.
17357
# Exclude shared library initialization/finalization symbols.
17358
extract_expsyms_cmds=
17359
# Just being paranoid about ensuring that cc_basename is set.
17360
for cc_temp in $compiler""; do
17362
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17363
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17368
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17371
cygwin* | mingw* | pw32*)
17372
# FIXME: the MSVC++ port hasn't been tested in a loooong time
17373
# When not using gcc, we currently assume that we are using
17374
# Microsoft Visual C++.
17375
if test "$GCC" != yes; then
17380
# we just hope/assume this is gcc and not c89 (= MSVC++)
17389
if test "$with_gnu_ld" = yes; then
17390
# If archive_cmds runs LD, not CC, wlarc should be empty
17393
# Set some defaults for GNU ld with shared library support. These
17394
# are reset later if shared libraries are not supported. Putting them
17395
# here allows them to be overridden if necessary.
17396
runpath_var=LD_RUN_PATH
17397
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17398
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17399
# ancient GNU ld didn't support --whole-archive et. al.
17400
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17401
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17403
whole_archive_flag_spec_GCJ=
17405
supports_anon_versioning=no
17406
case `$LD -v 2>/dev/null` in
17407
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17408
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17409
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17410
*\ 2.11.*) ;; # other 2.11 versions
17411
*) supports_anon_versioning=yes ;;
17414
# See if GNU ld supports shared libraries.
17417
# On AIX/PPC, the GNU linker is very broken
17418
if test "$host_cpu" != ia64; then
17422
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17423
*** to be unable to reliably create shared libraries on AIX.
17424
*** Therefore, libtool is disabling shared libraries support. If you
17425
*** really care for shared libraries, you may want to modify your PATH
17426
*** so that a non-GNU linker is found, and then restart.
17433
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)'
17434
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17435
hardcode_minus_L_GCJ=yes
17437
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17438
# that the semantics of dynamic libraries on AmigaOS, at least up
17439
# to version 4, is to share data among multiple programs linked
17440
# with the same dynamic library. Since this doesn't match the
17441
# behavior of shared libraries on other platforms, we can't use
17447
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17448
allow_undefined_flag_GCJ=unsupported
17449
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17450
# support --undefined. This deserves some investigation. FIXME
17451
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17457
cygwin* | mingw* | pw32*)
17458
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17459
# as there is no search path for DLLs.
17460
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17461
allow_undefined_flag_GCJ=unsupported
17462
always_export_symbols_GCJ=no
17463
enable_shared_with_static_runtimes_GCJ=yes
17464
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17466
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17467
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17468
# If the export-symbols file already is a .def file (1st line
17469
# is EXPORTS), use it as is; otherwise, prepend...
17470
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17471
cp $export_symbols $output_objdir/$soname.def;
17473
echo EXPORTS > $output_objdir/$soname.def;
17474
cat $export_symbols >> $output_objdir/$soname.def;
17476
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17483
hardcode_direct_GCJ=no
17484
hardcode_shlibpath_var_GCJ=no
17485
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17486
export_dynamic_flag_spec_GCJ='${wl}-E'
17487
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17488
# Instead, shared libraries are loaded at an image base (0x10000000 by
17489
# default) and relocated if they conflict, which is a slow very memory
17490
# consuming and fragmenting process. To avoid this, we pick a random,
17491
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17492
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
17493
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'
17494
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'
17497
gnu* | linux* | k*bsd*-gnu)
17498
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17500
case $cc_basename,$host_cpu in
17501
pgcc*) # Portland Group C compiler
17502
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'
17503
tmp_addflag=' $pic_flag'
17505
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17506
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'
17507
tmp_addflag=' $pic_flag -Mnomain' ;;
17508
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17509
tmp_addflag=' -i_dynamic' ;;
17510
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17511
tmp_addflag=' -i_dynamic -nofor_main' ;;
17512
ifc* | ifort*) # Intel Fortran compiler
17513
tmp_addflag=' -nofor_main' ;;
17515
case `$CC -V 2>&1 | sed 5q` in
17516
*Sun\ C*) # Sun C 5.9
17517
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'
17518
tmp_sharedflag='-G' ;;
17519
*Sun\ F*) # Sun Fortran 8.3
17520
tmp_sharedflag='-G' ;;
17522
tmp_sharedflag='-shared' ;;
17524
archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17526
if test $supports_anon_versioning = yes; then
17527
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17528
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17529
$echo "local: *; };" >> $output_objdir/$libname.ver~
17530
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17538
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17539
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17542
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17543
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17548
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17552
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17553
*** create shared libraries on Solaris systems. Therefore, libtool
17554
*** is disabling shared libraries support. We urge you to upgrade GNU
17555
*** binutils to release 2.9.1 or newer. Another option is to modify
17556
*** your PATH or compiler configuration so that the native linker is
17557
*** used, and then restart.
17560
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17561
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17562
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17568
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17569
case `$LD -v 2>&1` in
17570
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17574
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17575
*** reliably create shared libraries on SCO systems. Therefore, libtool
17576
*** is disabling shared libraries support. We urge you to upgrade GNU
17577
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17578
*** your PATH or compiler configuration so that the native linker is
17579
*** used, and then restart.
17584
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17585
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17586
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17587
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17596
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17598
hardcode_direct_GCJ=yes
17599
hardcode_shlibpath_var_GCJ=no
17603
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17604
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17605
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17612
if test "$ld_shlibs_GCJ" = no; then
17614
hardcode_libdir_flag_spec_GCJ=
17615
export_dynamic_flag_spec_GCJ=
17616
whole_archive_flag_spec_GCJ=
17619
# PORTME fill in a description of your system's linker (not GNU ld)
17622
allow_undefined_flag_GCJ=unsupported
17623
always_export_symbols_GCJ=yes
17624
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'
17625
# Note: this linker hardcodes the directories in LIBPATH if there
17626
# are no directories specified by -L.
17627
hardcode_minus_L_GCJ=yes
17628
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17629
# Neither direct hardcoding nor static linking is supported with a
17631
hardcode_direct_GCJ=unsupported
17636
if test "$host_cpu" = ia64; then
17637
# On IA64, the linker does run time linking by default, so we don't
17638
# have to do anything special.
17639
aix_use_runtimelinking=no
17640
exp_sym_flag='-Bexport'
17643
# If we're using GNU nm, then we don't want the "-C" option.
17644
# -C means demangle to AIX nm, but means don't demangle with GNU nm
17645
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17646
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'
17648
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'
17650
aix_use_runtimelinking=no
17652
# Test if we are trying to use run time linking or normal
17653
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17654
# need to do runtime linking.
17655
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17656
for ld_flag in $LDFLAGS; do
17657
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17658
aix_use_runtimelinking=yes
17665
exp_sym_flag='-bexport'
17666
no_entry_flag='-bnoentry'
17669
# When large executables or shared objects are built, AIX ld can
17670
# have problems creating the table of contents. If linking a library
17671
# or program results in "error TOC overflow" add -mminimal-toc to
17672
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17673
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17675
archive_cmds_GCJ=''
17676
hardcode_direct_GCJ=yes
17677
hardcode_libdir_separator_GCJ=':'
17678
link_all_deplibs_GCJ=yes
17680
if test "$GCC" = yes; then
17681
case $host_os in aix4.[012]|aix4.[012].*)
17682
# We only want to do this on AIX 4.2 and lower, the check
17683
# below for broken collect2 doesn't work under 4.3+
17684
collect2name=`${CC} -print-prog-name=collect2`
17685
if test -f "$collect2name" && \
17686
strings "$collect2name" | grep resolve_lib_name >/dev/null
17688
# We have reworked collect2
17691
# We have old collect2
17692
hardcode_direct_GCJ=unsupported
17693
# It fails to find uninstalled libraries when the uninstalled
17694
# path is not listed in the libpath. Setting hardcode_minus_L
17695
# to unsupported forces relinking
17696
hardcode_minus_L_GCJ=yes
17697
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17698
hardcode_libdir_separator_GCJ=
17702
shared_flag='-shared'
17703
if test "$aix_use_runtimelinking" = yes; then
17704
shared_flag="$shared_flag "'${wl}-G'
17708
if test "$host_cpu" = ia64; then
17709
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17710
# chokes on -Wl,-G. The following line is correct:
17713
if test "$aix_use_runtimelinking" = yes; then
17714
shared_flag='${wl}-G'
17716
shared_flag='${wl}-bM:SRE'
17721
# It seems that -bexpall does not export symbols beginning with
17722
# underscore (_), so it is better to generate a list of symbols to export.
17723
always_export_symbols_GCJ=yes
17724
if test "$aix_use_runtimelinking" = yes; then
17725
# Warning - without using the other runtime loading flags (-brtl),
17726
# -berok will link without error, but may produce a broken library.
17727
allow_undefined_flag_GCJ='-berok'
17728
# Determine the default libpath from the value encoded in an empty executable.
17729
cat >conftest.$ac_ext <<_ACEOF
17732
cat confdefs.h >>conftest.$ac_ext
17733
cat >>conftest.$ac_ext <<_ACEOF
17734
/* end confdefs.h. */
17744
rm -f conftest.$ac_objext conftest$ac_exeext
17745
if { (ac_try="$ac_link"
17746
case "(($ac_try" in
17747
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17748
*) ac_try_echo=$ac_try;;
17750
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17751
$as_echo "$ac_try_echo") >&5
17752
(eval "$ac_link") 2>conftest.er1
17754
grep -v '^ *+' conftest.er1 >conftest.err
17756
cat conftest.err >&5
17757
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17758
(exit $ac_status); } && {
17759
test -z "$ac_c_werror_flag" ||
17760
test ! -s conftest.err
17761
} && test -s conftest$ac_exeext && {
17762
test "$cross_compiling" = yes ||
17763
$as_test_x conftest$ac_exeext
17766
lt_aix_libpath_sed='
17767
/Import File Strings/,/^$/ {
17773
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17774
# Check for a 64-bit object if we didn't find anything.
17775
if test -z "$aix_libpath"; then
17776
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17779
$as_echo "$as_me: failed program was:" >&5
17780
sed 's/^/| /' conftest.$ac_ext >&5
17785
rm -rf conftest.dSYM
17786
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17787
conftest$ac_exeext conftest.$ac_ext
17788
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17790
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17791
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"
17793
if test "$host_cpu" = ia64; then
17794
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17795
allow_undefined_flag_GCJ="-z nodefs"
17796
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"
17798
# Determine the default libpath from the value encoded in an empty executable.
17799
cat >conftest.$ac_ext <<_ACEOF
17802
cat confdefs.h >>conftest.$ac_ext
17803
cat >>conftest.$ac_ext <<_ACEOF
17804
/* end confdefs.h. */
17814
rm -f conftest.$ac_objext conftest$ac_exeext
17815
if { (ac_try="$ac_link"
17816
case "(($ac_try" in
17817
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17818
*) ac_try_echo=$ac_try;;
17820
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17821
$as_echo "$ac_try_echo") >&5
17822
(eval "$ac_link") 2>conftest.er1
17824
grep -v '^ *+' conftest.er1 >conftest.err
17826
cat conftest.err >&5
17827
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17828
(exit $ac_status); } && {
17829
test -z "$ac_c_werror_flag" ||
17830
test ! -s conftest.err
17831
} && test -s conftest$ac_exeext && {
17832
test "$cross_compiling" = yes ||
17833
$as_test_x conftest$ac_exeext
17836
lt_aix_libpath_sed='
17837
/Import File Strings/,/^$/ {
17843
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17844
# Check for a 64-bit object if we didn't find anything.
17845
if test -z "$aix_libpath"; then
17846
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17849
$as_echo "$as_me: failed program was:" >&5
17850
sed 's/^/| /' conftest.$ac_ext >&5
17855
rm -rf conftest.dSYM
17856
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17857
conftest$ac_exeext conftest.$ac_ext
17858
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17860
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17861
# Warning - without using the other run time loading flags,
17862
# -berok will link without error, but may produce a broken library.
17863
no_undefined_flag_GCJ=' ${wl}-bernotok'
17864
allow_undefined_flag_GCJ=' ${wl}-berok'
17865
# Exported symbols can be pulled into shared objects from archives
17866
whole_archive_flag_spec_GCJ='$convenience'
17867
archive_cmds_need_lc_GCJ=yes
17868
# This is similar to how AIX traditionally builds its shared libraries.
17869
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'
17875
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)'
17876
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17877
hardcode_minus_L_GCJ=yes
17878
# see comment about different semantics on the GNU ld section
17883
export_dynamic_flag_spec_GCJ=-rdynamic
17886
cygwin* | mingw* | pw32*)
17887
# When not using gcc, we currently assume that we are using
17888
# Microsoft Visual C++.
17889
# hardcode_libdir_flag_spec is actually meaningless, as there is
17890
# no search path for DLLs.
17891
hardcode_libdir_flag_spec_GCJ=' '
17892
allow_undefined_flag_GCJ=unsupported
17893
# Tell ltmain to make .lib files, not .a files.
17895
# Tell ltmain to make .dll files, not .so files.
17897
# FIXME: Setting linknames here is a bad hack.
17898
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17899
# The linker will automatically build a .lib file if we build a DLL.
17900
old_archive_From_new_cmds_GCJ='true'
17901
# FIXME: Should let the user specify the lib program.
17902
old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17903
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17904
enable_shared_with_static_runtimes_GCJ=yes
17907
darwin* | rhapsody*)
17909
rhapsody* | darwin1.[012])
17910
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17913
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17914
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17916
case ${MACOSX_DEPLOYMENT_TARGET} in
17918
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17921
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17927
archive_cmds_need_lc_GCJ=no
17928
hardcode_direct_GCJ=no
17929
hardcode_automatic_GCJ=yes
17930
hardcode_shlibpath_var_GCJ=unsupported
17931
whole_archive_flag_spec_GCJ=''
17932
link_all_deplibs_GCJ=yes
17933
if test "$GCC" = yes ; then
17934
output_verbose_link_cmd='echo'
17935
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}"
17936
module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17937
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}"
17938
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}"
17940
case $cc_basename in
17942
output_verbose_link_cmd='echo'
17943
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17944
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17945
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17946
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}'
17947
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}'
17957
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17958
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17959
hardcode_shlibpath_var_GCJ=no
17966
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17967
# support. Future versions do this automatically, but an explicit c++rt0.o
17968
# does not break anything, and helps significantly (at the cost of a little
17971
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17972
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17973
hardcode_direct_GCJ=yes
17974
hardcode_shlibpath_var_GCJ=no
17977
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
17979
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17980
hardcode_direct_GCJ=yes
17981
hardcode_minus_L_GCJ=yes
17982
hardcode_shlibpath_var_GCJ=no
17985
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17986
freebsd* | dragonfly*)
17987
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17988
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17989
hardcode_direct_GCJ=yes
17990
hardcode_shlibpath_var_GCJ=no
17994
if test "$GCC" = yes; then
17995
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'
17997
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'
17999
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18000
hardcode_libdir_separator_GCJ=:
18001
hardcode_direct_GCJ=yes
18003
# hardcode_minus_L: Not really in the search PATH,
18004
# but as the default location of the library.
18005
hardcode_minus_L_GCJ=yes
18006
export_dynamic_flag_spec_GCJ='${wl}-E'
18010
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18011
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18013
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18015
if test "$with_gnu_ld" = no; then
18016
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18017
hardcode_libdir_separator_GCJ=:
18019
hardcode_direct_GCJ=yes
18020
export_dynamic_flag_spec_GCJ='${wl}-E'
18022
# hardcode_minus_L: Not really in the search PATH,
18023
# but as the default location of the library.
18024
hardcode_minus_L_GCJ=yes
18029
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18032
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18035
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18038
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18044
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18047
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18050
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18054
if test "$with_gnu_ld" = no; then
18055
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18056
hardcode_libdir_separator_GCJ=:
18060
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18061
hardcode_direct_GCJ=no
18062
hardcode_shlibpath_var_GCJ=no
18065
hardcode_direct_GCJ=yes
18066
export_dynamic_flag_spec_GCJ='${wl}-E'
18068
# hardcode_minus_L: Not really in the search PATH,
18069
# but as the default location of the library.
18070
hardcode_minus_L_GCJ=yes
18076
irix5* | irix6* | nonstopux*)
18077
if test "$GCC" = yes; then
18078
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'
18080
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'
18081
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18083
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18084
hardcode_libdir_separator_GCJ=:
18085
link_all_deplibs_GCJ=yes
18089
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18090
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18092
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18094
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18095
hardcode_direct_GCJ=yes
18096
hardcode_shlibpath_var_GCJ=no
18100
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18101
hardcode_direct_GCJ=yes
18102
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18103
hardcode_libdir_separator_GCJ=:
18104
hardcode_shlibpath_var_GCJ=no
18108
if test -f /usr/libexec/ld.so; then
18109
hardcode_direct_GCJ=yes
18110
hardcode_shlibpath_var_GCJ=no
18111
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18112
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18113
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18114
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18115
export_dynamic_flag_spec_GCJ='${wl}-E'
18118
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18119
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18120
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18123
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18124
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18134
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18135
hardcode_minus_L_GCJ=yes
18136
allow_undefined_flag_GCJ=unsupported
18137
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'
18138
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18142
if test "$GCC" = yes; then
18143
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18144
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'
18146
allow_undefined_flag_GCJ=' -expect_unresolved \*'
18147
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'
18149
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18150
hardcode_libdir_separator_GCJ=:
18153
osf4* | osf5*) # as osf3* with the addition of -msym flag
18154
if test "$GCC" = yes; then
18155
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18156
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'
18157
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18159
allow_undefined_flag_GCJ=' -expect_unresolved \*'
18160
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'
18161
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~
18162
$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'
18164
# Both c and cxx compiler support -rpath directly
18165
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18167
hardcode_libdir_separator_GCJ=:
18171
no_undefined_flag_GCJ=' -z text'
18172
if test "$GCC" = yes; then
18174
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18175
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18176
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18179
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18180
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18181
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18183
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18184
hardcode_shlibpath_var_GCJ=no
18186
solaris2.[0-5] | solaris2.[0-5].*) ;;
18188
# The compiler driver will combine and reorder linker options,
18189
# but understands `-z linker_flag'. GCC discards it without `$wl',
18190
# but is careful enough not to reorder.
18191
# Supported since Solaris 2.6 (maybe 2.5.1?)
18192
if test "$GCC" = yes; then
18193
whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18195
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18199
link_all_deplibs_GCJ=yes
18203
if test "x$host_vendor" = xsequent; then
18204
# Use $CC to link under sequent, because it throws in some extra .o
18205
# files that make .init and .fini sections work.
18206
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18208
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18210
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18211
hardcode_direct_GCJ=yes
18212
hardcode_minus_L_GCJ=yes
18213
hardcode_shlibpath_var_GCJ=no
18217
case $host_vendor in
18219
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18220
hardcode_direct_GCJ=yes # is this really true???
18223
## LD is ld it makes a PLAMLIB
18224
## CC just makes a GrossModule.
18225
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18226
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18227
hardcode_direct_GCJ=no
18230
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18231
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18234
runpath_var='LD_RUN_PATH'
18235
hardcode_shlibpath_var_GCJ=no
18239
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18240
hardcode_shlibpath_var_GCJ=no
18241
export_dynamic_flag_spec_GCJ='-Bexport'
18245
if test -d /usr/nec; then
18246
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18247
hardcode_shlibpath_var_GCJ=no
18248
runpath_var=LD_RUN_PATH
18249
hardcode_runpath_var=yes
18254
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18255
no_undefined_flag_GCJ='${wl}-z,text'
18256
archive_cmds_need_lc_GCJ=no
18257
hardcode_shlibpath_var_GCJ=no
18258
runpath_var='LD_RUN_PATH'
18260
if test "$GCC" = yes; then
18261
archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18262
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18264
archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18265
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18269
sysv5* | sco3.2v5* | sco5v6*)
18270
# Note: We can NOT use -z defs as we might desire, because we do not
18271
# link with -lc, and that would cause any symbols used from libc to
18272
# always be unresolved, which means just about no library would
18273
# ever link correctly. If we're not using GNU ld we use -z text
18274
# though, which does catch some bad symbols but isn't as heavy-handed
18276
no_undefined_flag_GCJ='${wl}-z,text'
18277
allow_undefined_flag_GCJ='${wl}-z,nodefs'
18278
archive_cmds_need_lc_GCJ=no
18279
hardcode_shlibpath_var_GCJ=no
18280
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18281
hardcode_libdir_separator_GCJ=':'
18282
link_all_deplibs_GCJ=yes
18283
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18284
runpath_var='LD_RUN_PATH'
18286
if test "$GCC" = yes; then
18287
archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18288
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18290
archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18291
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18296
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18297
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18298
hardcode_shlibpath_var_GCJ=no
18307
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18308
$as_echo "$ld_shlibs_GCJ" >&6; }
18309
test "$ld_shlibs_GCJ" = no && can_build_shared=no
18312
# Do we need to explicitly link libc?
18314
case "x$archive_cmds_need_lc_GCJ" in
18316
# Assume -lc should be added
18317
archive_cmds_need_lc_GCJ=yes
18319
if test "$enable_shared" = yes && test "$GCC" = yes; then
18320
case $archive_cmds_GCJ in
18322
# FIXME: we may have to deal with multi-command sequences.
18325
# Test whether the compiler implicitly links with -lc since on some
18326
# systems, -lgcc has to come before -lc. If gcc already passes -lc
18327
# to ld, don't add -lc before -lgcc.
18328
{ $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18329
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18331
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18333
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18334
(eval $ac_compile) 2>&5
18336
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18337
(exit $ac_status); } 2>conftest.err; then
18340
libobjs=conftest.$ac_objext
18342
wl=$lt_prog_compiler_wl_GCJ
18343
pic_flag=$lt_prog_compiler_pic_GCJ
18349
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18350
allow_undefined_flag_GCJ=
18351
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18352
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18354
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18355
(exit $ac_status); }
18357
archive_cmds_need_lc_GCJ=no
18359
archive_cmds_need_lc_GCJ=yes
18361
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18363
cat conftest.err 1>&5
18366
{ $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18367
$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
18374
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18375
$as_echo_n "checking dynamic linker characteristics... " >&6; }
18376
library_names_spec=
18377
libname_spec='lib$name'
18381
postuninstall_cmds=
18385
shlibpath_overrides_runpath=unknown
18387
dynamic_linker="$host_os ld.so"
18388
sys_lib_dlsearch_path_spec="/lib /usr/lib"
18390
need_lib_prefix=unknown
18391
hardcode_into_libs=no
18393
# when you set need_version to no, make sure it does not cause -set_version
18394
# flags to be left without arguments
18395
need_version=unknown
18400
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18401
shlibpath_var=LIBPATH
18403
# AIX 3 has no versioning support, so we append a major version to the name.
18404
soname_spec='${libname}${release}${shared_ext}$major'
18411
hardcode_into_libs=yes
18412
if test "$host_cpu" = ia64; then
18413
# AIX 5 supports IA64
18414
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18415
shlibpath_var=LD_LIBRARY_PATH
18417
# With GCC up to 2.95.x, collect2 would create an import file
18418
# for dependence libraries. The import file would start with
18419
# the line `#! .'. This would cause the generated library to
18420
# depend on `.', always an invalid library. This was fixed in
18421
# development snapshots of GCC prior to 3.0.
18423
aix4 | aix4.[01] | aix4.[01].*)
18424
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18426
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18429
can_build_shared=no
18433
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18434
# soname into executable. Probably we can add versioning support to
18435
# collect2, so additional links can be useful in future.
18436
if test "$aix_use_runtimelinking" = yes; then
18437
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
18438
# instead of lib<name>.a to let people know that these are not
18439
# typical AIX shared libraries.
18440
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18442
# We preserve .a as extension for shared libraries through AIX4.2
18443
# and later when we are not doing run time linking.
18444
library_names_spec='${libname}${release}.a $libname.a'
18445
soname_spec='${libname}${release}${shared_ext}$major'
18447
shlibpath_var=LIBPATH
18452
library_names_spec='$libname.ixlibrary $libname.a'
18453
# Create ${libname}_ixlibrary.a entries in /sys/libs.
18454
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'
18458
library_names_spec='${libname}${shared_ext}'
18459
dynamic_linker="$host_os ld.so"
18460
shlibpath_var=LIBRARY_PATH
18466
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18467
soname_spec='${libname}${release}${shared_ext}$major'
18468
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18469
shlibpath_var=LD_LIBRARY_PATH
18470
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18471
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18472
# the default ld.so.conf also contains /usr/contrib/lib and
18473
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18474
# libtool to hard-code these into programs
18477
cygwin* | mingw* | pw32*)
18478
version_type=windows
18483
case $GCC,$host_os in
18484
yes,cygwin* | yes,mingw* | yes,pw32*)
18485
library_names_spec='$libname.dll.a'
18486
# DLL is installed to $(libdir)/../bin by postinstall_cmds
18487
postinstall_cmds='base_file=`basename \${file}`~
18488
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18489
dldir=$destdir/`dirname \$dlpath`~
18490
test -d \$dldir || mkdir -p \$dldir~
18491
$install_prog $dir/$dlname \$dldir/$dlname~
18492
chmod a+x \$dldir/$dlname'
18493
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18494
dlpath=$dir/\$dldll~
18496
shlibpath_overrides_runpath=yes
18500
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
18501
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18502
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18505
# MinGW DLLs use traditional 'lib' prefix
18506
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18507
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18508
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18509
# It is most probably a Windows format PATH printed by
18510
# mingw gcc, but we are running on Cygwin. Gcc prints its search
18511
# path with ; separators, and with drive letters. We can handle the
18512
# drive letters (cygwin fileutils understands them), so leave them,
18513
# especially as we might pass files found there to a mingw objdump,
18514
# which wouldn't understand a cygwinified path. Ahh.
18515
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18517
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18521
# pw32 DLLs use 'pw' prefix rather than 'lib'
18522
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18528
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18531
dynamic_linker='Win32 ld.exe'
18532
# FIXME: first we should search . and the directory the executable is in
18536
darwin* | rhapsody*)
18537
dynamic_linker="$host_os dyld"
18538
version_type=darwin
18541
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18542
soname_spec='${libname}${release}${major}$shared_ext'
18543
shlibpath_overrides_runpath=yes
18544
shlibpath_var=DYLD_LIBRARY_PATH
18545
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18547
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18554
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18555
soname_spec='${libname}${release}${shared_ext}$major'
18556
shlibpath_var=LD_LIBRARY_PATH
18563
freebsd* | dragonfly*)
18564
# DragonFly does not have aout. When/if they implement a new
18565
# versioning mechanism, adjust this.
18566
if test -x /usr/bin/objformat; then
18567
objformat=`/usr/bin/objformat`
18570
freebsd[123]*) objformat=aout ;;
18571
*) objformat=elf ;;
18574
version_type=freebsd-$objformat
18575
case $version_type in
18577
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18582
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18586
shlibpath_var=LD_LIBRARY_PATH
18589
shlibpath_overrides_runpath=yes
18591
freebsd3.[01]* | freebsdelf3.[01]*)
18592
shlibpath_overrides_runpath=yes
18593
hardcode_into_libs=yes
18595
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18596
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18597
shlibpath_overrides_runpath=no
18598
hardcode_into_libs=yes
18600
*) # from 4.6 on, and DragonFly
18601
shlibpath_overrides_runpath=yes
18602
hardcode_into_libs=yes
18611
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18612
soname_spec='${libname}${release}${shared_ext}$major'
18613
shlibpath_var=LD_LIBRARY_PATH
18614
hardcode_into_libs=yes
18617
hpux9* | hpux10* | hpux11*)
18618
# Give a soname corresponding to the major version so that dld.sl refuses to
18619
# link against other versions.
18626
hardcode_into_libs=yes
18627
dynamic_linker="$host_os dld.so"
18628
shlibpath_var=LD_LIBRARY_PATH
18629
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18630
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18631
soname_spec='${libname}${release}${shared_ext}$major'
18632
if test "X$HPUX_IA64_MODE" = X32; then
18633
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18635
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18637
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18641
hardcode_into_libs=yes
18642
dynamic_linker="$host_os dld.sl"
18643
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18644
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18645
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18646
soname_spec='${libname}${release}${shared_ext}$major'
18647
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18648
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18652
dynamic_linker="$host_os dld.sl"
18653
shlibpath_var=SHLIB_PATH
18654
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18655
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18656
soname_spec='${libname}${release}${shared_ext}$major'
18659
# HP-UX runs *really* slowly unless shared libraries are mode 555.
18660
postinstall_cmds='chmod 555 $lib'
18667
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18668
soname_spec='${libname}${release}${shared_ext}$major'
18669
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18670
shlibpath_var=LD_LIBRARY_PATH
18671
shlibpath_overrides_runpath=no
18672
hardcode_into_libs=yes
18675
irix5* | irix6* | nonstopux*)
18677
nonstopux*) version_type=nonstopux ;;
18679
if test "$lt_cv_prog_gnu_ld" = yes; then
18687
soname_spec='${libname}${release}${shared_ext}$major'
18688
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18690
irix5* | nonstopux*)
18691
libsuff= shlibsuff=
18694
case $LD in # libtool.m4 will add one of these switches to LD
18695
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18696
libsuff= shlibsuff= libmagic=32-bit;;
18697
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18698
libsuff=32 shlibsuff=N32 libmagic=N32;;
18699
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18700
libsuff=64 shlibsuff=64 libmagic=64-bit;;
18701
*) libsuff= shlibsuff= libmagic=never-match;;
18705
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18706
shlibpath_overrides_runpath=no
18707
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18708
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18709
hardcode_into_libs=yes
18712
# No shared lib support for Linux oldld, aout, or coff.
18713
linux*oldld* | linux*aout* | linux*coff*)
18717
# This must be Linux ELF.
18718
linux* | k*bsd*-gnu)
18722
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18723
soname_spec='${libname}${release}${shared_ext}$major'
18724
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18725
shlibpath_var=LD_LIBRARY_PATH
18726
shlibpath_overrides_runpath=no
18727
# This implies no fast_install, which is unacceptable.
18728
# Some rework will be needed to allow for fast_install
18729
# before this can be enabled.
18730
hardcode_into_libs=yes
18731
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18732
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18734
# Append ld.so.conf contents to the search path
18735
if test -f /etc/ld.so.conf; then
18736
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' ' '`
18737
sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18740
# We used to test for /lib/ld.so.1 and disable shared libraries on
18741
# powerpc, because MkLinux only supported shared libraries with the
18742
# GNU dynamic linker. Since this was broken with cross compilers,
18743
# most powerpc-linux boxes support dynamic linking these days and
18744
# people can always --disable-shared, the test was removed, and we
18745
# assume the GNU/Linux dynamic linker is in use.
18746
dynamic_linker='GNU/Linux ld.so'
18753
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18754
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18755
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18756
dynamic_linker='NetBSD (a.out) ld.so'
18758
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18759
soname_spec='${libname}${release}${shared_ext}$major'
18760
dynamic_linker='NetBSD ld.elf_so'
18762
shlibpath_var=LD_LIBRARY_PATH
18763
shlibpath_overrides_runpath=yes
18764
hardcode_into_libs=yes
18769
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18770
shlibpath_var=LD_LIBRARY_PATH
18771
shlibpath_overrides_runpath=yes
18778
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18779
soname_spec='${libname}${release}${shared_ext}$major'
18780
shlibpath_var=LD_LIBRARY_PATH
18781
shlibpath_overrides_runpath=yes
18786
sys_lib_dlsearch_path_spec="/usr/lib"
18788
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18790
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18791
*) need_version=no ;;
18793
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18794
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18795
shlibpath_var=LD_LIBRARY_PATH
18796
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18798
openbsd2.[89] | openbsd2.[89].*)
18799
shlibpath_overrides_runpath=no
18802
shlibpath_overrides_runpath=yes
18806
shlibpath_overrides_runpath=yes
18811
libname_spec='$name'
18814
library_names_spec='$libname${shared_ext} $libname.a'
18815
dynamic_linker='OS/2 ld.exe'
18816
shlibpath_var=LIBPATH
18819
osf3* | osf4* | osf5*)
18823
soname_spec='${libname}${release}${shared_ext}$major'
18824
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18825
shlibpath_var=LD_LIBRARY_PATH
18826
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18827
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18838
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18839
soname_spec='${libname}${release}${shared_ext}$major'
18840
shlibpath_var=LD_LIBRARY_PATH
18841
shlibpath_overrides_runpath=yes
18842
hardcode_into_libs=yes
18843
# ldd complains unless libraries are executable
18844
postinstall_cmds='chmod +x $lib'
18849
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18850
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18851
shlibpath_var=LD_LIBRARY_PATH
18852
shlibpath_overrides_runpath=yes
18853
if test "$with_gnu_ld" = yes; then
18861
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18862
soname_spec='${libname}${release}${shared_ext}$major'
18863
shlibpath_var=LD_LIBRARY_PATH
18864
case $host_vendor in
18866
shlibpath_overrides_runpath=no
18868
export_dynamic_flag_spec='${wl}-Blargedynsym'
18869
runpath_var=LD_RUN_PATH
18877
shlibpath_overrides_runpath=no
18878
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18884
if test -d /usr/nec ;then
18886
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18887
soname_spec='$libname${shared_ext}.$major'
18888
shlibpath_var=LD_LIBRARY_PATH
18892
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18893
version_type=freebsd-elf
18896
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18897
soname_spec='${libname}${release}${shared_ext}$major'
18898
shlibpath_var=LD_LIBRARY_PATH
18899
hardcode_into_libs=yes
18900
if test "$with_gnu_ld" = yes; then
18901
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18902
shlibpath_overrides_runpath=no
18904
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18905
shlibpath_overrides_runpath=yes
18908
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18912
sys_lib_dlsearch_path_spec='/usr/lib'
18917
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18918
soname_spec='${libname}${release}${shared_ext}$major'
18919
shlibpath_var=LD_LIBRARY_PATH
18926
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18927
$as_echo "$dynamic_linker" >&6; }
18928
test "$dynamic_linker" = no && can_build_shared=no
18930
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18931
$as_echo_n "(cached) " >&6
18933
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18936
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18937
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18938
$as_echo_n "(cached) " >&6
18940
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18943
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18945
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18946
if test "$GCC" = yes; then
18947
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18950
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18951
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18952
hardcode_action_GCJ=
18953
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18954
test -n "$runpath_var_GCJ" || \
18955
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18957
# We can hardcode non-existant directories.
18958
if test "$hardcode_direct_GCJ" != no &&
18959
# If the only mechanism to avoid hardcoding is shlibpath_var, we
18960
# have to relink, otherwise we might link with an installed library
18961
# when we should be linking with a yet-to-be-installed one
18962
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18963
test "$hardcode_minus_L_GCJ" != no; then
18964
# Linking always hardcodes the temporary library directory.
18965
hardcode_action_GCJ=relink
18967
# We can link without hardcoding, and we can hardcode nonexisting dirs.
18968
hardcode_action_GCJ=immediate
18971
# We cannot hardcode anything, or else we can only hardcode existing
18973
hardcode_action_GCJ=unsupported
18975
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18976
$as_echo "$hardcode_action_GCJ" >&6; }
18978
if test "$hardcode_action_GCJ" = relink; then
18979
# Fast installation is not supported
18980
enable_fast_install=no
18981
elif test "$shlibpath_overrides_runpath" = yes ||
18982
test "$enable_shared" = no; then
18983
# Fast installation is not necessary
18984
enable_fast_install=needless
18988
# The else clause should only fire when bootstrapping the
18989
# libtool distribution, otherwise you forgot to ship ltmain.sh
18990
# with your package, and you will get complaints that there are
18991
# no rules to generate ltmain.sh.
18992
if test -f "$ltmain"; then
18993
# See if we are running on zsh, and set the options which allow our commands through
18994
# without removal of \ escapes.
18995
if test -n "${ZSH_VERSION+set}" ; then
18996
setopt NO_GLOB_SUBST
18998
# Now quote all the things that may contain metacharacters while being
18999
# careful not to overquote the AC_SUBSTed values. We take copies of the
19000
# variables and quote the copies for generation of the libtool script.
19001
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19003
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19004
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19005
deplibs_check_method reload_flag reload_cmds need_locks \
19006
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19007
lt_cv_sys_global_symbol_to_c_name_address \
19008
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19009
old_postinstall_cmds old_postuninstall_cmds \
19013
lt_prog_compiler_wl_GCJ \
19014
lt_prog_compiler_pic_GCJ \
19015
lt_prog_compiler_static_GCJ \
19016
lt_prog_compiler_no_builtin_flag_GCJ \
19017
export_dynamic_flag_spec_GCJ \
19018
thread_safe_flag_spec_GCJ \
19019
whole_archive_flag_spec_GCJ \
19020
enable_shared_with_static_runtimes_GCJ \
19021
old_archive_cmds_GCJ \
19022
old_archive_from_new_cmds_GCJ \
19023
predep_objects_GCJ \
19024
postdep_objects_GCJ \
19027
compiler_lib_search_path_GCJ \
19028
compiler_lib_search_dirs_GCJ \
19030
archive_expsym_cmds_GCJ \
19031
postinstall_cmds_GCJ \
19032
postuninstall_cmds_GCJ \
19033
old_archive_from_expsyms_cmds_GCJ \
19034
allow_undefined_flag_GCJ \
19035
no_undefined_flag_GCJ \
19036
export_symbols_cmds_GCJ \
19037
hardcode_libdir_flag_spec_GCJ \
19038
hardcode_libdir_flag_spec_ld_GCJ \
19039
hardcode_libdir_separator_GCJ \
19040
hardcode_automatic_GCJ \
19042
module_expsym_cmds_GCJ \
19043
lt_cv_prog_compiler_c_o_GCJ \
19044
fix_srcfile_path_GCJ \
19045
exclude_expsyms_GCJ \
19046
include_expsyms_GCJ; do
19049
old_archive_cmds_GCJ | \
19050
old_archive_from_new_cmds_GCJ | \
19051
archive_cmds_GCJ | \
19052
archive_expsym_cmds_GCJ | \
19053
module_cmds_GCJ | \
19054
module_expsym_cmds_GCJ | \
19055
old_archive_from_expsyms_cmds_GCJ | \
19056
export_symbols_cmds_GCJ | \
19057
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19058
postinstall_cmds | postuninstall_cmds | \
19059
old_postinstall_cmds | old_postuninstall_cmds | \
19060
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19061
# Double-quote double-evaled strings.
19062
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19065
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19071
*'\$0 --fallback-echo"')
19072
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19078
cat <<__EOF__ >> "$cfgfile"
19079
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19081
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19083
# Shell to use when invoking shell scripts.
19086
# Whether or not to build shared libraries.
19087
build_libtool_libs=$enable_shared
19089
# Whether or not to build static libraries.
19090
build_old_libs=$enable_static
19092
# Whether or not to add -lc for building shared libraries.
19093
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19095
# Whether or not to disallow shared libs when runtime libs are static
19096
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19098
# Whether or not to optimize for fast installation.
19099
fast_install=$enable_fast_install
19102
host_alias=$host_alias
19106
# The build system.
19107
build_alias=$build_alias
19111
# An echo program that does not interpret backslashes.
19116
AR_FLAGS=$lt_AR_FLAGS
19121
# LTCC compiler flags.
19122
LTCFLAGS=$lt_LTCFLAGS
19124
# A language-specific compiler.
19125
CC=$lt_compiler_GCJ
19127
# Is the compiler the GNU C compiler?
19133
# The linker used to build libraries.
19136
# Whether we need hard or soft links.
19139
# A BSD-compatible nm program.
19142
# A symbol stripping program
19145
# Used to examine libraries when file_magic_cmd begins "file"
19146
MAGIC_CMD=$MAGIC_CMD
19148
# Used on cygwin: DLL creation program.
19151
# Used on cygwin: object dumper.
19154
# Used on cygwin: assembler.
19157
# The name of the directory that contains temporary libtool files.
19160
# How to create reloadable object files.
19161
reload_flag=$lt_reload_flag
19162
reload_cmds=$lt_reload_cmds
19164
# How to pass a linker flag through the compiler.
19165
wl=$lt_lt_prog_compiler_wl_GCJ
19167
# Object file suffix (normally "o").
19168
objext="$ac_objext"
19170
# Old archive suffix (normally "a").
19173
# Shared library suffix (normally ".so").
19174
shrext_cmds='$shrext_cmds'
19176
# Executable file suffix (normally "").
19179
# Additional compiler flags for building library objects.
19180
pic_flag=$lt_lt_prog_compiler_pic_GCJ
19183
# What is the maximum length of a command?
19184
max_cmd_len=$lt_cv_sys_max_cmd_len
19186
# Does compiler simultaneously support -c and -o options?
19187
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19189
# Must we lock files when doing compilation?
19190
need_locks=$lt_need_locks
19192
# Do we need the lib prefix for modules?
19193
need_lib_prefix=$need_lib_prefix
19195
# Do we need a version for libraries?
19196
need_version=$need_version
19198
# Whether dlopen is supported.
19199
dlopen_support=$enable_dlopen
19201
# Whether dlopen of programs is supported.
19202
dlopen_self=$enable_dlopen_self
19204
# Whether dlopen of statically linked programs is supported.
19205
dlopen_self_static=$enable_dlopen_self_static
19207
# Compiler flag to prevent dynamic linking.
19208
link_static_flag=$lt_lt_prog_compiler_static_GCJ
19210
# Compiler flag to turn off builtin functions.
19211
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19213
# Compiler flag to allow reflexive dlopens.
19214
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19216
# Compiler flag to generate shared objects directly from archives.
19217
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19219
# Compiler flag to generate thread-safe objects.
19220
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19222
# Library versioning type.
19223
version_type=$version_type
19225
# Format of library name prefix.
19226
libname_spec=$lt_libname_spec
19228
# List of archive names. First name is the real one, the rest are links.
19229
# The last name is the one that the linker finds with -lNAME.
19230
library_names_spec=$lt_library_names_spec
19232
# The coded name of the library, if different from the real name.
19233
soname_spec=$lt_soname_spec
19235
# Commands used to build and install an old-style archive.
19237
old_archive_cmds=$lt_old_archive_cmds_GCJ
19238
old_postinstall_cmds=$lt_old_postinstall_cmds
19239
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19241
# Create an old-style archive from a shared archive.
19242
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19244
# Create a temporary old-style archive to link instead of a shared archive.
19245
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19247
# Commands used to build and install a shared archive.
19248
archive_cmds=$lt_archive_cmds_GCJ
19249
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19250
postinstall_cmds=$lt_postinstall_cmds
19251
postuninstall_cmds=$lt_postuninstall_cmds
19253
# Commands used to build a loadable module (assumed same as above if empty)
19254
module_cmds=$lt_module_cmds_GCJ
19255
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19257
# Commands to strip libraries.
19258
old_striplib=$lt_old_striplib
19259
striplib=$lt_striplib
19261
# Dependencies to place before the objects being linked to create a
19263
predep_objects=$lt_predep_objects_GCJ
19265
# Dependencies to place after the objects being linked to create a
19267
postdep_objects=$lt_postdep_objects_GCJ
19269
# Dependencies to place before the objects being linked to create a
19271
predeps=$lt_predeps_GCJ
19273
# Dependencies to place after the objects being linked to create a
19275
postdeps=$lt_postdeps_GCJ
19277
# The directories searched by this compiler when creating a shared
19279
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19281
# The library search path used internally by the compiler when linking
19282
# a shared library.
19283
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19285
# Method to check whether dependent libraries are shared objects.
19286
deplibs_check_method=$lt_deplibs_check_method
19288
# Command to use when deplibs_check_method == file_magic.
19289
file_magic_cmd=$lt_file_magic_cmd
19291
# Flag that allows shared libraries with undefined symbols to be built.
19292
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19294
# Flag that forces no undefined symbols.
19295
no_undefined_flag=$lt_no_undefined_flag_GCJ
19297
# Commands used to finish a libtool library installation in a directory.
19298
finish_cmds=$lt_finish_cmds
19300
# Same as above, but a single script fragment to be evaled but not shown.
19301
finish_eval=$lt_finish_eval
19303
# Take the output of nm and produce a listing of raw symbols and C names.
19304
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19306
# Transform the output of nm in a proper C declaration
19307
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19309
# Transform the output of nm in a C name address pair
19310
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19312
# This is the shared library runtime path variable.
19313
runpath_var=$runpath_var
19315
# This is the shared library path variable.
19316
shlibpath_var=$shlibpath_var
19318
# Is shlibpath searched before the hard-coded library search path?
19319
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19321
# How to hardcode a shared library path into an executable.
19322
hardcode_action=$hardcode_action_GCJ
19324
# Whether we should hardcode library paths into libraries.
19325
hardcode_into_libs=$hardcode_into_libs
19327
# Flag to hardcode \$libdir into a binary during linking.
19328
# This must work even if \$libdir does not exist.
19329
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19331
# If ld is used when linking, flag to hardcode \$libdir into
19332
# a binary during linking. This must work even if \$libdir does
19334
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19336
# Whether we need a single -rpath flag with a separated argument.
19337
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19339
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19340
# resulting binary.
19341
hardcode_direct=$hardcode_direct_GCJ
19343
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19344
# resulting binary.
19345
hardcode_minus_L=$hardcode_minus_L_GCJ
19347
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19348
# the resulting binary.
19349
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19351
# Set to yes if building a shared library automatically hardcodes DIR into the library
19352
# and all subsequent libraries and executables linked against it.
19353
hardcode_automatic=$hardcode_automatic_GCJ
19355
# Variables whose values should be saved in libtool wrapper scripts and
19356
# restored at relink time.
19357
variables_saved_for_relink="$variables_saved_for_relink"
19359
# Whether libtool must link a program against all its dependency libraries.
19360
link_all_deplibs=$link_all_deplibs_GCJ
19362
# Compile-time system search path for libraries
19363
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19365
# Run-time system search path for libraries
19366
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19368
# Fix the shell variable \$srcfile for the compiler.
19369
fix_srcfile_path=$lt_fix_srcfile_path
19371
# Set to yes if exported symbols are required.
19372
always_export_symbols=$always_export_symbols_GCJ
19374
# The commands to list exported symbols.
19375
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19377
# The commands to extract the exported symbol list from a shared archive.
19378
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19380
# Symbols that should not be listed in the preloaded symbols.
19381
exclude_expsyms=$lt_exclude_expsyms_GCJ
19383
# Symbols that must always be exported.
19384
include_expsyms=$lt_include_expsyms_GCJ
19386
# ### END LIBTOOL TAG CONFIG: $tagname
19392
# If there is no Makefile yet, we rely on a make rule to execute
19393
# `config.status --recheck' to rerun these tests and create the
19394
# libtool script then.
19395
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19396
if test -f "$ltmain_in"; then
19397
test -f Makefile && make "$ltmain"
19403
ac_cpp='$CPP $CPPFLAGS'
19404
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19405
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19406
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19418
# Source file extension for RC test sources.
19421
# Object file extension for compiled RC test sources.
19425
# Code to be used in simple compile tests
19426
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19428
# Code to be used in simple link tests
19429
lt_simple_link_test_code="$lt_simple_compile_test_code"
19431
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19433
# If no C compiler was specified, use CC.
19436
# If no C compiler flags were specified, use CFLAGS.
19437
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19439
# Allow CC to be a program name with arguments.
19443
# save warnings/boilerplate of simple test code
19444
ac_outfile=conftest.$ac_objext
19445
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19446
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19447
_lt_compiler_boilerplate=`cat conftest.err`
19450
ac_outfile=conftest.$ac_objext
19451
echo "$lt_simple_link_test_code" >conftest.$ac_ext
19452
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19453
_lt_linker_boilerplate=`cat conftest.err`
19457
# Allow CC to be a program name with arguments.
19462
for cc_temp in $compiler""; do
19464
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19465
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19470
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19472
lt_cv_prog_compiler_c_o_RC=yes
19474
# The else clause should only fire when bootstrapping the
19475
# libtool distribution, otherwise you forgot to ship ltmain.sh
19476
# with your package, and you will get complaints that there are
19477
# no rules to generate ltmain.sh.
19478
if test -f "$ltmain"; then
19479
# See if we are running on zsh, and set the options which allow our commands through
19480
# without removal of \ escapes.
19481
if test -n "${ZSH_VERSION+set}" ; then
19482
setopt NO_GLOB_SUBST
19484
# Now quote all the things that may contain metacharacters while being
19485
# careful not to overquote the AC_SUBSTed values. We take copies of the
19486
# variables and quote the copies for generation of the libtool script.
19487
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19489
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19490
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19491
deplibs_check_method reload_flag reload_cmds need_locks \
19492
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19493
lt_cv_sys_global_symbol_to_c_name_address \
19494
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19495
old_postinstall_cmds old_postuninstall_cmds \
19499
lt_prog_compiler_wl_RC \
19500
lt_prog_compiler_pic_RC \
19501
lt_prog_compiler_static_RC \
19502
lt_prog_compiler_no_builtin_flag_RC \
19503
export_dynamic_flag_spec_RC \
19504
thread_safe_flag_spec_RC \
19505
whole_archive_flag_spec_RC \
19506
enable_shared_with_static_runtimes_RC \
19507
old_archive_cmds_RC \
19508
old_archive_from_new_cmds_RC \
19509
predep_objects_RC \
19510
postdep_objects_RC \
19513
compiler_lib_search_path_RC \
19514
compiler_lib_search_dirs_RC \
19516
archive_expsym_cmds_RC \
19517
postinstall_cmds_RC \
19518
postuninstall_cmds_RC \
19519
old_archive_from_expsyms_cmds_RC \
19520
allow_undefined_flag_RC \
19521
no_undefined_flag_RC \
19522
export_symbols_cmds_RC \
19523
hardcode_libdir_flag_spec_RC \
19524
hardcode_libdir_flag_spec_ld_RC \
19525
hardcode_libdir_separator_RC \
19526
hardcode_automatic_RC \
19528
module_expsym_cmds_RC \
19529
lt_cv_prog_compiler_c_o_RC \
19530
fix_srcfile_path_RC \
19531
exclude_expsyms_RC \
19532
include_expsyms_RC; do
19535
old_archive_cmds_RC | \
19536
old_archive_from_new_cmds_RC | \
19537
archive_cmds_RC | \
19538
archive_expsym_cmds_RC | \
19540
module_expsym_cmds_RC | \
19541
old_archive_from_expsyms_cmds_RC | \
19542
export_symbols_cmds_RC | \
19543
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19544
postinstall_cmds | postuninstall_cmds | \
19545
old_postinstall_cmds | old_postuninstall_cmds | \
19546
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19547
# Double-quote double-evaled strings.
19548
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19551
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19557
*'\$0 --fallback-echo"')
19558
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19564
cat <<__EOF__ >> "$cfgfile"
19565
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19567
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19569
# Shell to use when invoking shell scripts.
19572
# Whether or not to build shared libraries.
19573
build_libtool_libs=$enable_shared
19575
# Whether or not to build static libraries.
19576
build_old_libs=$enable_static
19578
# Whether or not to add -lc for building shared libraries.
19579
build_libtool_need_lc=$archive_cmds_need_lc_RC
19581
# Whether or not to disallow shared libs when runtime libs are static
19582
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19584
# Whether or not to optimize for fast installation.
19585
fast_install=$enable_fast_install
19588
host_alias=$host_alias
19592
# The build system.
19593
build_alias=$build_alias
19597
# An echo program that does not interpret backslashes.
19602
AR_FLAGS=$lt_AR_FLAGS
19607
# LTCC compiler flags.
19608
LTCFLAGS=$lt_LTCFLAGS
19610
# A language-specific compiler.
19613
# Is the compiler the GNU C compiler?
19619
# The linker used to build libraries.
19622
# Whether we need hard or soft links.
19625
# A BSD-compatible nm program.
19628
# A symbol stripping program
19631
# Used to examine libraries when file_magic_cmd begins "file"
19632
MAGIC_CMD=$MAGIC_CMD
19634
# Used on cygwin: DLL creation program.
19637
# Used on cygwin: object dumper.
19640
# Used on cygwin: assembler.
19643
# The name of the directory that contains temporary libtool files.
19646
# How to create reloadable object files.
19647
reload_flag=$lt_reload_flag
19648
reload_cmds=$lt_reload_cmds
19650
# How to pass a linker flag through the compiler.
19651
wl=$lt_lt_prog_compiler_wl_RC
19653
# Object file suffix (normally "o").
19654
objext="$ac_objext"
19656
# Old archive suffix (normally "a").
19659
# Shared library suffix (normally ".so").
19660
shrext_cmds='$shrext_cmds'
19662
# Executable file suffix (normally "").
19665
# Additional compiler flags for building library objects.
19666
pic_flag=$lt_lt_prog_compiler_pic_RC
19669
# What is the maximum length of a command?
19670
max_cmd_len=$lt_cv_sys_max_cmd_len
19672
# Does compiler simultaneously support -c and -o options?
19673
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19675
# Must we lock files when doing compilation?
19676
need_locks=$lt_need_locks
19678
# Do we need the lib prefix for modules?
19679
need_lib_prefix=$need_lib_prefix
19681
# Do we need a version for libraries?
19682
need_version=$need_version
19684
# Whether dlopen is supported.
19685
dlopen_support=$enable_dlopen
19687
# Whether dlopen of programs is supported.
19688
dlopen_self=$enable_dlopen_self
19690
# Whether dlopen of statically linked programs is supported.
19691
dlopen_self_static=$enable_dlopen_self_static
19693
# Compiler flag to prevent dynamic linking.
19694
link_static_flag=$lt_lt_prog_compiler_static_RC
19696
# Compiler flag to turn off builtin functions.
19697
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19699
# Compiler flag to allow reflexive dlopens.
19700
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19702
# Compiler flag to generate shared objects directly from archives.
19703
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19705
# Compiler flag to generate thread-safe objects.
19706
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19708
# Library versioning type.
19709
version_type=$version_type
19711
# Format of library name prefix.
19712
libname_spec=$lt_libname_spec
19714
# List of archive names. First name is the real one, the rest are links.
19715
# The last name is the one that the linker finds with -lNAME.
19716
library_names_spec=$lt_library_names_spec
19718
# The coded name of the library, if different from the real name.
19719
soname_spec=$lt_soname_spec
19721
# Commands used to build and install an old-style archive.
19723
old_archive_cmds=$lt_old_archive_cmds_RC
19724
old_postinstall_cmds=$lt_old_postinstall_cmds
19725
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19727
# Create an old-style archive from a shared archive.
19728
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19730
# Create a temporary old-style archive to link instead of a shared archive.
19731
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19733
# Commands used to build and install a shared archive.
19734
archive_cmds=$lt_archive_cmds_RC
19735
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19736
postinstall_cmds=$lt_postinstall_cmds
19737
postuninstall_cmds=$lt_postuninstall_cmds
19739
# Commands used to build a loadable module (assumed same as above if empty)
19740
module_cmds=$lt_module_cmds_RC
19741
module_expsym_cmds=$lt_module_expsym_cmds_RC
19743
# Commands to strip libraries.
19744
old_striplib=$lt_old_striplib
19745
striplib=$lt_striplib
19747
# Dependencies to place before the objects being linked to create a
19749
predep_objects=$lt_predep_objects_RC
19751
# Dependencies to place after the objects being linked to create a
19753
postdep_objects=$lt_postdep_objects_RC
19755
# Dependencies to place before the objects being linked to create a
19757
predeps=$lt_predeps_RC
19759
# Dependencies to place after the objects being linked to create a
19761
postdeps=$lt_postdeps_RC
19763
# The directories searched by this compiler when creating a shared
19765
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19767
# The library search path used internally by the compiler when linking
19768
# a shared library.
19769
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19771
# Method to check whether dependent libraries are shared objects.
19772
deplibs_check_method=$lt_deplibs_check_method
19774
# Command to use when deplibs_check_method == file_magic.
19775
file_magic_cmd=$lt_file_magic_cmd
19777
# Flag that allows shared libraries with undefined symbols to be built.
19778
allow_undefined_flag=$lt_allow_undefined_flag_RC
19780
# Flag that forces no undefined symbols.
19781
no_undefined_flag=$lt_no_undefined_flag_RC
19783
# Commands used to finish a libtool library installation in a directory.
19784
finish_cmds=$lt_finish_cmds
19786
# Same as above, but a single script fragment to be evaled but not shown.
19787
finish_eval=$lt_finish_eval
19789
# Take the output of nm and produce a listing of raw symbols and C names.
19790
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19792
# Transform the output of nm in a proper C declaration
19793
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19795
# Transform the output of nm in a C name address pair
19796
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19798
# This is the shared library runtime path variable.
19799
runpath_var=$runpath_var
19801
# This is the shared library path variable.
19802
shlibpath_var=$shlibpath_var
19804
# Is shlibpath searched before the hard-coded library search path?
19805
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19807
# How to hardcode a shared library path into an executable.
19808
hardcode_action=$hardcode_action_RC
19810
# Whether we should hardcode library paths into libraries.
19811
hardcode_into_libs=$hardcode_into_libs
19813
# Flag to hardcode \$libdir into a binary during linking.
19814
# This must work even if \$libdir does not exist.
19815
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19817
# If ld is used when linking, flag to hardcode \$libdir into
19818
# a binary during linking. This must work even if \$libdir does
19820
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19822
# Whether we need a single -rpath flag with a separated argument.
19823
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19825
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19826
# resulting binary.
19827
hardcode_direct=$hardcode_direct_RC
19829
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19830
# resulting binary.
19831
hardcode_minus_L=$hardcode_minus_L_RC
19833
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19834
# the resulting binary.
19835
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19837
# Set to yes if building a shared library automatically hardcodes DIR into the library
19838
# and all subsequent libraries and executables linked against it.
19839
hardcode_automatic=$hardcode_automatic_RC
19841
# Variables whose values should be saved in libtool wrapper scripts and
19842
# restored at relink time.
19843
variables_saved_for_relink="$variables_saved_for_relink"
19845
# Whether libtool must link a program against all its dependency libraries.
19846
link_all_deplibs=$link_all_deplibs_RC
19848
# Compile-time system search path for libraries
19849
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19851
# Run-time system search path for libraries
19852
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19854
# Fix the shell variable \$srcfile for the compiler.
19855
fix_srcfile_path=$lt_fix_srcfile_path
19857
# Set to yes if exported symbols are required.
19858
always_export_symbols=$always_export_symbols_RC
19860
# The commands to list exported symbols.
19861
export_symbols_cmds=$lt_export_symbols_cmds_RC
19863
# The commands to extract the exported symbol list from a shared archive.
19864
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19866
# Symbols that should not be listed in the preloaded symbols.
19867
exclude_expsyms=$lt_exclude_expsyms_RC
19869
# Symbols that must always be exported.
19870
include_expsyms=$lt_include_expsyms_RC
19872
# ### END LIBTOOL TAG CONFIG: $tagname
19878
# If there is no Makefile yet, we rely on a make rule to execute
19879
# `config.status --recheck' to rerun these tests and create the
19880
# libtool script then.
19881
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19882
if test -f "$ltmain_in"; then
19883
test -f Makefile && make "$ltmain"
19889
ac_cpp='$CPP $CPPFLAGS'
19890
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19891
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19892
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19899
{ { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19900
$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19901
{ (exit 1); exit 1; }; }
19905
# Append the new tag name to the list of available tags.
19906
if test -n "$tagname" ; then
19907
available_tags="$available_tags $tagname"
19913
# Now substitute the updated list of available tags.
19914
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19915
mv "${ofile}T" "$ofile"
19919
{ { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19920
$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19921
{ (exit 1); exit 1; }; }
19927
# This can be used to rebuild libtool when needed
19928
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19930
# Always use our own libtool.
19931
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19933
# Prevent multiple expansion
11042
{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11043
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11044
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11045
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11046
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11047
{ $as_echo "$as_me:$LINENO: result: yes" >&5
11048
$as_echo "yes" >&6; }
11050
# FIXME - insert some real tests, host_os isn't really good enough
11053
if test -n "$STRIP" ; then
11054
striplib="$STRIP -x"
11055
old_striplib="$STRIP -S"
11056
{ $as_echo "$as_me:$LINENO: result: yes" >&5
11057
$as_echo "yes" >&6; }
11059
{ $as_echo "$as_me:$LINENO: result: no" >&5
11060
$as_echo "no" >&6; }
11064
{ $as_echo "$as_me:$LINENO: result: no" >&5
11065
$as_echo "no" >&6; }
11081
# Report which library types will actually be built
11082
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11083
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11084
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11085
$as_echo "$can_build_shared" >&6; }
11087
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11088
$as_echo_n "checking whether to build shared libraries... " >&6; }
11089
test "$can_build_shared" = "no" && enable_shared=no
11091
# On AIX, shared libraries and static libraries use the same namespace, and
11092
# are all built from PIC.
11095
test "$enable_shared" = yes && enable_static=no
11096
if test -n "$RANLIB"; then
11097
archive_cmds="$archive_cmds~\$RANLIB \$lib"
11098
postinstall_cmds='$RANLIB $lib'
11103
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11104
test "$enable_shared" = yes && enable_static=no
11108
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11109
$as_echo "$enable_shared" >&6; }
11111
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11112
$as_echo_n "checking whether to build static libraries... " >&6; }
11113
# Make sure either enable_shared or enable_static is yes.
11114
test "$enable_shared" = yes || enable_static=yes
11115
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11116
$as_echo "$enable_static" >&6; }
11123
ac_cpp='$CPP $CPPFLAGS'
11124
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11125
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11126
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11142
ac_config_commands="$ac_config_commands libtool"
11147
# Only expand once:
11150
{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
11151
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
11152
if test "${ac_cv_path_SED+set}" = set; then
11153
$as_echo_n "(cached) " >&6
11155
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11156
for ac_i in 1 2 3 4 5 6 7; do
11157
ac_script="$ac_script$as_nl$ac_script"
11159
echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11160
$as_unset ac_script || ac_script=
11161
if test -z "$SED"; then
11162
ac_path_SED_found=false
11163
# Loop through the user's path and test for each of PROGNAME-LIST
11164
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11165
for as_dir in $PATH
11168
test -z "$as_dir" && as_dir=.
11169
for ac_prog in sed gsed; do
11170
for ac_exec_ext in '' $ac_executable_extensions; do
11171
ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11172
{ test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
11173
# Check for GNU ac_path_SED and select it if it is found.
11174
# Check for GNU $ac_path_SED
11175
case `"$ac_path_SED" --version 2>&1` in
11177
ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11180
$as_echo_n 0123456789 >"conftest.in"
11183
cat "conftest.in" "conftest.in" >"conftest.tmp"
11184
mv "conftest.tmp" "conftest.in"
11185
cp "conftest.in" "conftest.nl"
11186
$as_echo '' >> "conftest.nl"
11187
"$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11188
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11189
ac_count=`expr $ac_count + 1`
11190
if test $ac_count -gt ${ac_path_SED_max-0}; then
11191
# Best one so far, save it but keep looking for a better one
11192
ac_cv_path_SED="$ac_path_SED"
11193
ac_path_SED_max=$ac_count
11195
# 10*(2^10) chars as input seems more than enough
11196
test $ac_count -gt 10 && break
11198
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11201
$ac_path_SED_found && break 3
11206
if test -z "$ac_cv_path_SED"; then
11207
{ { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
11208
$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
11209
{ (exit 1); exit 1; }; }
11212
ac_cv_path_SED=$SED
11216
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
11217
$as_echo "$ac_cv_path_SED" >&6; }
11218
SED="$ac_cv_path_SED"
11221
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
11222
$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11223
if test "${ac_cv_prog_cc_c99+set}" = set; then
11224
$as_echo_n "(cached) " >&6
11226
ac_cv_prog_cc_c99=no
11228
cat >conftest.$ac_ext <<_ACEOF
11231
cat confdefs.h >>conftest.$ac_ext
11232
cat >>conftest.$ac_ext <<_ACEOF
11233
/* end confdefs.h. */
11234
#include <stdarg.h>
11235
#include <stdbool.h>
11236
#include <stdlib.h>
11240
// Check varargs macros. These examples are taken from C99 6.10.3.5.
11241
#define debug(...) fprintf (stderr, __VA_ARGS__)
11242
#define showlist(...) puts (#__VA_ARGS__)
11243
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11245
test_varargs_macros (void)
11250
debug ("X = %d\n", x);
11251
showlist (The first, second, and third items.);
11252
report (x>y, "x is %d but y is %d", x, y);
11255
// Check long long types.
11256
#define BIG64 18446744073709551615ull
11257
#define BIG32 4294967295ul
11258
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11260
your preprocessor is broken;
11264
your preprocessor is broken;
11266
static long long int bignum = -9223372036854775807LL;
11267
static unsigned long long int ubignum = BIG64;
11269
struct incomplete_array
11275
struct named_init {
11277
const wchar_t *name;
11281
typedef const char *ccp;
11284
test_restrict (ccp restrict text)
11286
// See if C++-style comments work.
11287
// Iterate through items via the restricted pointer.
11288
// Also check for declarations in for loops.
11289
for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11294
// Check varargs and va_copy.
11296
test_varargs (const char *format, ...)
11299
va_start (args, format);
11301
va_copy (args_copy, args);
11311
case 's': // string
11312
str = va_arg (args_copy, const char *);
11315
number = va_arg (args_copy, int);
11318
fnumber = va_arg (args_copy, double);
11324
va_end (args_copy);
11333
_Bool success = false;
11336
if (test_restrict ("String literal") == 0)
11338
char *restrict newvar = "Another string";
11341
test_varargs ("s, d' f .", "string", 65, 34.234);
11342
test_varargs_macros ();
11344
// Check flexible array members.
11345
struct incomplete_array *ia =
11346
malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11348
for (int i = 0; i < ia->datasize; ++i)
11349
ia->data[i] = i * 1.234;
11351
// Check named initializers.
11352
struct named_init ni = {
11354
.name = L"Test wide string",
11355
.average = 543.34343,
11360
int dynamic_array[ni.number];
11361
dynamic_array[ni.number - 1] = 543;
11363
// work around unused variable warnings
11364
return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11365
|| dynamic_array[ni.number - 1] != 543);
11371
for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
11373
CC="$ac_save_CC $ac_arg"
11374
rm -f conftest.$ac_objext
11375
if { (ac_try="$ac_compile"
11376
case "(($ac_try" in
11377
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11378
*) ac_try_echo=$ac_try;;
11380
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11381
$as_echo "$ac_try_echo") >&5
11382
(eval "$ac_compile") 2>conftest.er1
11384
grep -v '^ *+' conftest.er1 >conftest.err
11386
cat conftest.err >&5
11387
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388
(exit $ac_status); } && {
11389
test -z "$ac_c_werror_flag" ||
11390
test ! -s conftest.err
11391
} && test -s conftest.$ac_objext; then
11392
ac_cv_prog_cc_c99=$ac_arg
11394
$as_echo "$as_me: failed program was:" >&5
11395
sed 's/^/| /' conftest.$ac_ext >&5
11400
rm -f core conftest.err conftest.$ac_objext
11401
test "x$ac_cv_prog_cc_c99" != "xno" && break
11403
rm -f conftest.$ac_ext
11408
case "x$ac_cv_prog_cc_c99" in
11410
{ $as_echo "$as_me:$LINENO: result: none needed" >&5
11411
$as_echo "none needed" >&6; } ;;
11413
{ $as_echo "$as_me:$LINENO: result: unsupported" >&5
11414
$as_echo "unsupported" >&6; } ;;
11416
CC="$CC $ac_cv_prog_cc_c99"
11417
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
11418
$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
11426
if test "x$GCC" = xyes ; then
11427
CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
11428
-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
11429
-Wbad-function-cast"
11430
case `$CC -dumpversion` in
11432
CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
11436
{ $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
11437
$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
11438
if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
11439
$as_echo_n "(cached) " >&6
11441
cat >conftest.$ac_ext <<_ACEOF
11444
cat confdefs.h >>conftest.$ac_ext
11445
cat >>conftest.$ac_ext <<_ACEOF
11446
/* end confdefs.h. */
11447
$ac_includes_default
11459
rm -f conftest.$ac_objext
11460
if { (ac_try="$ac_compile"
11461
case "(($ac_try" in
11462
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11463
*) ac_try_echo=$ac_try;;
11465
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11466
$as_echo "$ac_try_echo") >&5
11467
(eval "$ac_compile") 2>conftest.er1
11469
grep -v '^ *+' conftest.er1 >conftest.err
11471
cat conftest.err >&5
11472
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473
(exit $ac_status); } && {
11474
test -z "$ac_c_werror_flag" ||
11475
test ! -s conftest.err
11476
} && test -s conftest.$ac_objext; then
11477
ac_cv_have_decl___SUNPRO_C=yes
11479
$as_echo "$as_me: failed program was:" >&5
11480
sed 's/^/| /' conftest.$ac_ext >&5
11482
ac_cv_have_decl___SUNPRO_C=no
11485
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11487
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
11488
$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
11489
if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
11495
if test "x$SUNCC" = "xyes"; then
11500
# Check whether --enable-silent-rules was given.
11501
if test "${enable_silent_rules+set}" = set; then
11502
enableval=$enable_silent_rules;
11505
case $enable_silent_rules in
11506
yes) AM_DEFAULT_VERBOSITY=0;;
11507
no) AM_DEFAULT_VERBOSITY=1;;
11508
*) AM_DEFAULT_VERBOSITY=0;;
11518
# Check whether --enable-strict-compilation was given.
11519
if test "${enable_strict_compilation+set}" = set; then
11520
enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
11525
if test "x$STRICT_COMPILE" = "xyes"; then
11526
{ $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
11527
$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
11528
if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
11529
$as_echo_n "(cached) " >&6
11531
cat >conftest.$ac_ext <<_ACEOF
11534
cat confdefs.h >>conftest.$ac_ext
11535
cat >>conftest.$ac_ext <<_ACEOF
11536
/* end confdefs.h. */
11537
$ac_includes_default
11549
rm -f conftest.$ac_objext
11550
if { (ac_try="$ac_compile"
11551
case "(($ac_try" in
11552
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11553
*) ac_try_echo=$ac_try;;
11555
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11556
$as_echo "$ac_try_echo") >&5
11557
(eval "$ac_compile") 2>conftest.er1
11559
grep -v '^ *+' conftest.er1 >conftest.err
11561
cat conftest.err >&5
11562
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11563
(exit $ac_status); } && {
11564
test -z "$ac_c_werror_flag" ||
11565
test ! -s conftest.err
11566
} && test -s conftest.$ac_objext; then
11567
ac_cv_have_decl___SUNPRO_C=yes
11569
$as_echo "$as_me: failed program was:" >&5
11570
sed 's/^/| /' conftest.$ac_ext >&5
11572
ac_cv_have_decl___SUNPRO_C=no
11575
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11577
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
11578
$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
11579
if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
11585
{ $as_echo "$as_me:$LINENO: checking whether __INTEL_COMPILER is declared" >&5
11586
$as_echo_n "checking whether __INTEL_COMPILER is declared... " >&6; }
11587
if test "${ac_cv_have_decl___INTEL_COMPILER+set}" = set; then
11588
$as_echo_n "(cached) " >&6
11590
cat >conftest.$ac_ext <<_ACEOF
11593
cat confdefs.h >>conftest.$ac_ext
11594
cat >>conftest.$ac_ext <<_ACEOF
11595
/* end confdefs.h. */
11596
$ac_includes_default
11600
#ifndef __INTEL_COMPILER
11601
(void) __INTEL_COMPILER;
11608
rm -f conftest.$ac_objext
11609
if { (ac_try="$ac_compile"
11610
case "(($ac_try" in
11611
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11612
*) ac_try_echo=$ac_try;;
11614
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11615
$as_echo "$ac_try_echo") >&5
11616
(eval "$ac_compile") 2>conftest.er1
11618
grep -v '^ *+' conftest.er1 >conftest.err
11620
cat conftest.err >&5
11621
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11622
(exit $ac_status); } && {
11623
test -z "$ac_c_werror_flag" ||
11624
test ! -s conftest.err
11625
} && test -s conftest.$ac_objext; then
11626
ac_cv_have_decl___INTEL_COMPILER=yes
11628
$as_echo "$as_me: failed program was:" >&5
11629
sed 's/^/| /' conftest.$ac_ext >&5
11631
ac_cv_have_decl___INTEL_COMPILER=no
11634
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11636
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___INTEL_COMPILER" >&5
11637
$as_echo "$ac_cv_have_decl___INTEL_COMPILER" >&6; }
11638
if test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then
11644
if test "x$GCC" = xyes ; then
11645
STRICT_CFLAGS="-pedantic -Werror"
11646
elif test "x$SUNCC" = "xyes"; then
11647
STRICT_CFLAGS="-errwarn"
11648
elif test "x$INTELCC" = "xyes"; then
11649
STRICT_CFLAGS="-Werror"
11652
CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11657
# Check whether --with-release-version was given.
11658
if test "${with_release_version+set}" = set; then
11659
withval=$with_release_version; RELEASE_VERSION="$withval"
11664
if test "x$RELEASE_VERSION" != "x"; then
11665
PACKAGE="$PACKAGE-$RELEASE_VERSION"
11666
PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
11667
{ $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
11668
$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
11671
cat >>confdefs.h <<_ACEOF
11672
#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11675
PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11676
if test "x$PVM" = "x"; then
11680
cat >>confdefs.h <<_ACEOF
11681
#define PACKAGE_VERSION_MINOR $PVM
11684
PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11685
if test "x$PVP" = "x"; then
11689
cat >>confdefs.h <<_ACEOF
11690
#define PACKAGE_VERSION_PATCHLEVEL $PVP
11695
CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \
11696
mv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \
11697
echo 'git directory not found: installing possibly empty changelog.' >&2)"
11699
distcleancheck_listfiles='find . -type f ! -name ChangeLog -print'
11705
if test x$APP_MAN_SUFFIX = x ; then
11708
if test x$APP_MAN_DIR = x ; then
11709
APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11712
if test x$LIB_MAN_SUFFIX = x ; then
11715
if test x$LIB_MAN_DIR = x ; then
11716
LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11719
if test x$FILE_MAN_SUFFIX = x ; then
11721
solaris*) FILE_MAN_SUFFIX=4 ;;
11722
*) FILE_MAN_SUFFIX=5 ;;
11725
if test x$FILE_MAN_DIR = x ; then
11726
FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11729
if test x$MISC_MAN_SUFFIX = x ; then
11731
solaris*) MISC_MAN_SUFFIX=5 ;;
11732
*) MISC_MAN_SUFFIX=7 ;;
11735
if test x$MISC_MAN_DIR = x ; then
11736
MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11739
if test x$DRIVER_MAN_SUFFIX = x ; then
11741
solaris*) DRIVER_MAN_SUFFIX=7 ;;
11742
*) DRIVER_MAN_SUFFIX=4 ;;
11745
if test x$DRIVER_MAN_DIR = x ; then
11746
DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11749
if test x$ADMIN_MAN_SUFFIX = x ; then
11751
solaris*) ADMIN_MAN_SUFFIX=1m ;;
11752
*) ADMIN_MAN_SUFFIX=8 ;;
11755
if test x$ADMIN_MAN_DIR = x ; then
11756
ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'