11635
# Report which library types will actually be built
11636
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11637
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11638
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
11639
echo "${ECHO_T}$can_build_shared" >&6; }
11641
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11642
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11643
test "$can_build_shared" = "no" && enable_shared=no
11645
# On AIX, shared libraries and static libraries use the same namespace, and
11646
# are all built from PIC.
11649
test "$enable_shared" = yes && enable_static=no
11650
if test -n "$RANLIB"; then
11651
archive_cmds="$archive_cmds~\$RANLIB \$lib"
11652
postinstall_cmds='$RANLIB $lib'
11657
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11658
test "$enable_shared" = yes && enable_static=no
11662
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
11663
echo "${ECHO_T}$enable_shared" >&6; }
11665
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11666
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11667
# Make sure either enable_shared or enable_static is yes.
11668
test "$enable_shared" = yes || enable_static=yes
11669
{ echo "$as_me:$LINENO: result: $enable_static" >&5
11670
echo "${ECHO_T}$enable_static" >&6; }
11672
# The else clause should only fire when bootstrapping the
11673
# libtool distribution, otherwise you forgot to ship ltmain.sh
11674
# with your package, and you will get complaints that there are
11675
# no rules to generate ltmain.sh.
11676
if test -f "$ltmain"; then
11677
# See if we are running on zsh, and set the options which allow our commands through
11678
# without removal of \ escapes.
11679
if test -n "${ZSH_VERSION+set}" ; then
11680
setopt NO_GLOB_SUBST
11682
# Now quote all the things that may contain metacharacters while being
11683
# careful not to overquote the AC_SUBSTed values. We take copies of the
11684
# variables and quote the copies for generation of the libtool script.
11685
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11687
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11688
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11689
deplibs_check_method reload_flag reload_cmds need_locks \
11690
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11691
lt_cv_sys_global_symbol_to_c_name_address \
11692
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11693
old_postinstall_cmds old_postuninstall_cmds \
11697
lt_prog_compiler_wl \
11698
lt_prog_compiler_pic \
11699
lt_prog_compiler_static \
11700
lt_prog_compiler_no_builtin_flag \
11701
export_dynamic_flag_spec \
11702
thread_safe_flag_spec \
11703
whole_archive_flag_spec \
11704
enable_shared_with_static_runtimes \
11706
old_archive_from_new_cmds \
11711
compiler_lib_search_path \
11713
archive_expsym_cmds \
11715
postuninstall_cmds \
11716
old_archive_from_expsyms_cmds \
11717
allow_undefined_flag \
11718
no_undefined_flag \
11719
export_symbols_cmds \
11720
hardcode_libdir_flag_spec \
11721
hardcode_libdir_flag_spec_ld \
11722
hardcode_libdir_separator \
11723
hardcode_automatic \
11725
module_expsym_cmds \
11726
lt_cv_prog_compiler_c_o \
11729
include_expsyms; do
11732
old_archive_cmds | \
11733
old_archive_from_new_cmds | \
11735
archive_expsym_cmds | \
11737
module_expsym_cmds | \
11738
old_archive_from_expsyms_cmds | \
11739
export_symbols_cmds | \
11740
extract_expsyms_cmds | reload_cmds | finish_cmds | \
11741
postinstall_cmds | postuninstall_cmds | \
11742
old_postinstall_cmds | old_postuninstall_cmds | \
11743
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11744
# Double-quote double-evaled strings.
11745
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11748
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11754
*'\$0 --fallback-echo"')
11755
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11759
cfgfile="${ofile}T"
11760
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11762
{ echo "$as_me:$LINENO: creating $ofile" >&5
11763
echo "$as_me: creating $ofile" >&6;}
11765
cat <<__EOF__ >> "$cfgfile"
11768
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11769
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11770
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
11772
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
11773
# Free Software Foundation, Inc.
11775
# This file is part of GNU Libtool:
11776
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11778
# This program is free software; you can redistribute it and/or modify
11779
# it under the terms of the GNU General Public License as published by
11780
# the Free Software Foundation; either version 2 of the License, or
11781
# (at your option) any later version.
11783
# This program is distributed in the hope that it will be useful, but
11784
# WITHOUT ANY WARRANTY; without even the implied warranty of
11785
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11786
# General Public License for more details.
11788
# You should have received a copy of the GNU General Public License
11789
# along with this program; if not, write to the Free Software
11790
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11792
# As a special exception to the GNU General Public License, if you
11793
# distribute this file as part of a program that contains a
11794
# configuration script generated by Autoconf, you may include it under
11795
# the same distribution terms that you use for the rest of that program.
11797
# A sed program that does not truncate output.
11800
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
11801
Xsed="$SED -e 1s/^X//"
11803
# The HP-UX ksh and POSIX shell print the target directory to stdout
11804
# if CDPATH is set.
11805
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11807
# The names of the tagged configurations supported by this script.
11810
# ### BEGIN LIBTOOL CONFIG
11812
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11814
# Shell to use when invoking shell scripts.
11817
# Whether or not to build shared libraries.
11818
build_libtool_libs=$enable_shared
11820
# Whether or not to build static libraries.
11821
build_old_libs=$enable_static
11823
# Whether or not to add -lc for building shared libraries.
11824
build_libtool_need_lc=$archive_cmds_need_lc
11826
# Whether or not to disallow shared libs when runtime libs are static
11827
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11829
# Whether or not to optimize for fast installation.
11830
fast_install=$enable_fast_install
11833
host_alias=$host_alias
11837
# The build system.
11838
build_alias=$build_alias
11842
# An echo program that does not interpret backslashes.
11847
AR_FLAGS=$lt_AR_FLAGS
11852
# LTCC compiler flags.
11853
LTCFLAGS=$lt_LTCFLAGS
11855
# A language-specific compiler.
11858
# Is the compiler the GNU C compiler?
11864
# The linker used to build libraries.
11867
# Whether we need hard or soft links.
11870
# A BSD-compatible nm program.
11873
# A symbol stripping program
11876
# Used to examine libraries when file_magic_cmd begins "file"
11877
MAGIC_CMD=$MAGIC_CMD
11879
# Used on cygwin: DLL creation program.
11882
# Used on cygwin: object dumper.
11885
# Used on cygwin: assembler.
11888
# The name of the directory that contains temporary libtool files.
11891
# How to create reloadable object files.
11892
reload_flag=$lt_reload_flag
11893
reload_cmds=$lt_reload_cmds
11895
# How to pass a linker flag through the compiler.
11896
wl=$lt_lt_prog_compiler_wl
11898
# Object file suffix (normally "o").
11899
objext="$ac_objext"
11901
# Old archive suffix (normally "a").
11904
# Shared library suffix (normally ".so").
11905
shrext_cmds='$shrext_cmds'
11907
# Executable file suffix (normally "").
11910
# Additional compiler flags for building library objects.
11911
pic_flag=$lt_lt_prog_compiler_pic
11914
# What is the maximum length of a command?
11915
max_cmd_len=$lt_cv_sys_max_cmd_len
11917
# Does compiler simultaneously support -c and -o options?
11918
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11920
# Must we lock files when doing compilation?
11921
need_locks=$lt_need_locks
11923
# Do we need the lib prefix for modules?
11924
need_lib_prefix=$need_lib_prefix
11926
# Do we need a version for libraries?
11927
need_version=$need_version
11929
# Whether dlopen is supported.
11930
dlopen_support=$enable_dlopen
11932
# Whether dlopen of programs is supported.
11933
dlopen_self=$enable_dlopen_self
11935
# Whether dlopen of statically linked programs is supported.
11936
dlopen_self_static=$enable_dlopen_self_static
11938
# Compiler flag to prevent dynamic linking.
11939
link_static_flag=$lt_lt_prog_compiler_static
11941
# Compiler flag to turn off builtin functions.
11942
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11944
# Compiler flag to allow reflexive dlopens.
11945
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11947
# Compiler flag to generate shared objects directly from archives.
11948
whole_archive_flag_spec=$lt_whole_archive_flag_spec
11950
# Compiler flag to generate thread-safe objects.
11951
thread_safe_flag_spec=$lt_thread_safe_flag_spec
11953
# Library versioning type.
11954
version_type=$version_type
11956
# Format of library name prefix.
11957
libname_spec=$lt_libname_spec
11959
# List of archive names. First name is the real one, the rest are links.
11960
# The last name is the one that the linker finds with -lNAME.
11961
library_names_spec=$lt_library_names_spec
11963
# The coded name of the library, if different from the real name.
11964
soname_spec=$lt_soname_spec
11966
# Commands used to build and install an old-style archive.
11968
old_archive_cmds=$lt_old_archive_cmds
11969
old_postinstall_cmds=$lt_old_postinstall_cmds
11970
old_postuninstall_cmds=$lt_old_postuninstall_cmds
11972
# Create an old-style archive from a shared archive.
11973
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11975
# Create a temporary old-style archive to link instead of a shared archive.
11976
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11978
# Commands used to build and install a shared archive.
11979
archive_cmds=$lt_archive_cmds
11980
archive_expsym_cmds=$lt_archive_expsym_cmds
11981
postinstall_cmds=$lt_postinstall_cmds
11982
postuninstall_cmds=$lt_postuninstall_cmds
11984
# Commands used to build a loadable module (assumed same as above if empty)
11985
module_cmds=$lt_module_cmds
11986
module_expsym_cmds=$lt_module_expsym_cmds
11988
# Commands to strip libraries.
11989
old_striplib=$lt_old_striplib
11990
striplib=$lt_striplib
11992
# Dependencies to place before the objects being linked to create a
11994
predep_objects=$lt_predep_objects
11996
# Dependencies to place after the objects being linked to create a
11998
postdep_objects=$lt_postdep_objects
12000
# Dependencies to place before the objects being linked to create a
12002
predeps=$lt_predeps
12004
# Dependencies to place after the objects being linked to create a
12006
postdeps=$lt_postdeps
12008
# The library search path used internally by the compiler when linking
12009
# a shared library.
12010
compiler_lib_search_path=$lt_compiler_lib_search_path
12012
# Method to check whether dependent libraries are shared objects.
12013
deplibs_check_method=$lt_deplibs_check_method
12015
# Command to use when deplibs_check_method == file_magic.
12016
file_magic_cmd=$lt_file_magic_cmd
12018
# Flag that allows shared libraries with undefined symbols to be built.
12019
allow_undefined_flag=$lt_allow_undefined_flag
12021
# Flag that forces no undefined symbols.
12022
no_undefined_flag=$lt_no_undefined_flag
12024
# Commands used to finish a libtool library installation in a directory.
12025
finish_cmds=$lt_finish_cmds
12027
# Same as above, but a single script fragment to be evaled but not shown.
12028
finish_eval=$lt_finish_eval
12030
# Take the output of nm and produce a listing of raw symbols and C names.
12031
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12033
# Transform the output of nm in a proper C declaration
12034
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12036
# Transform the output of nm in a C name address pair
12037
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12039
# This is the shared library runtime path variable.
12040
runpath_var=$runpath_var
12042
# This is the shared library path variable.
12043
shlibpath_var=$shlibpath_var
12045
# Is shlibpath searched before the hard-coded library search path?
12046
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12048
# How to hardcode a shared library path into an executable.
12049
hardcode_action=$hardcode_action
12051
# Whether we should hardcode library paths into libraries.
12052
hardcode_into_libs=$hardcode_into_libs
12054
# Flag to hardcode \$libdir into a binary during linking.
12055
# This must work even if \$libdir does not exist.
12056
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12058
# If ld is used when linking, flag to hardcode \$libdir into
12059
# a binary during linking. This must work even if \$libdir does
12061
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12063
# Whether we need a single -rpath flag with a separated argument.
12064
hardcode_libdir_separator=$lt_hardcode_libdir_separator
12066
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12067
# resulting binary.
12068
hardcode_direct=$hardcode_direct
12070
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12071
# resulting binary.
12072
hardcode_minus_L=$hardcode_minus_L
12074
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12075
# the resulting binary.
12076
hardcode_shlibpath_var=$hardcode_shlibpath_var
12078
# Set to yes if building a shared library automatically hardcodes DIR into the library
12079
# and all subsequent libraries and executables linked against it.
12080
hardcode_automatic=$hardcode_automatic
12082
# Variables whose values should be saved in libtool wrapper scripts and
12083
# restored at relink time.
12084
variables_saved_for_relink="$variables_saved_for_relink"
12086
# Whether libtool must link a program against all its dependency libraries.
12087
link_all_deplibs=$link_all_deplibs
12089
# Compile-time system search path for libraries
12090
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12092
# Run-time system search path for libraries
12093
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12095
# Fix the shell variable \$srcfile for the compiler.
12096
fix_srcfile_path=$lt_fix_srcfile_path
12098
# Set to yes if exported symbols are required.
12099
always_export_symbols=$always_export_symbols
12101
# The commands to list exported symbols.
12102
export_symbols_cmds=$lt_export_symbols_cmds
12104
# The commands to extract the exported symbol list from a shared archive.
12105
extract_expsyms_cmds=$lt_extract_expsyms_cmds
12107
# Symbols that should not be listed in the preloaded symbols.
12108
exclude_expsyms=$lt_exclude_expsyms
12110
# Symbols that must always be exported.
12111
include_expsyms=$lt_include_expsyms
12113
# ### END LIBTOOL CONFIG
12120
cat <<\EOF >> "$cfgfile"
12122
# AIX sometimes has problems with the GCC collect2 program. For some
12123
# reason, if we set the COLLECT_NAMES environment variable, the problems
12124
# vanish in a puff of smoke.
12125
if test "X${COLLECT_NAMES+set}" != Xset; then
12127
export COLLECT_NAMES
12133
# We use sed instead of cat because bash on DJGPP gets confused if
12134
# if finds mixed CR/LF and LF-only lines. Since sed operates in
12135
# text mode, it properly converts lines to CR/LF. This bash problem
12136
# is reportedly fixed, but why not run on old versions too?
12137
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12139
mv -f "$cfgfile" "$ofile" || \
12140
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12144
# If there is no Makefile yet, we rely on a make rule to execute
12145
# `config.status --recheck' to rerun these tests and create the
12146
# libtool script then.
12147
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12148
if test -f "$ltmain_in"; then
12149
test -f Makefile && make "$ltmain"
12155
ac_cpp='$CPP $CPPFLAGS'
12156
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12157
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12158
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12163
# Check whether --with-tags was given.
12164
if test "${with_tags+set}" = set; then
12165
withval=$with_tags; tagnames="$withval"
12169
if test -f "$ltmain" && test -n "$tagnames"; then
12170
if test ! -f "${ofile}"; then
12171
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12172
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12175
if test -z "$LTCC"; then
12176
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12177
if test -z "$LTCC"; then
12178
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12179
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12181
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12182
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12185
if test -z "$LTCFLAGS"; then
12186
eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
12189
# Extract list of available tagged configurations in $ofile.
12190
# Note that this assumes the entire list is on one line.
12191
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12193
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12194
for tagname in $tagnames; do
12196
# Check whether tagname contains only valid characters
12197
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12199
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12200
echo "$as_me: error: invalid tag name: $tagname" >&2;}
12201
{ (exit 1); exit 1; }; }
12205
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12207
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12208
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12209
{ (exit 1); exit 1; }; }
12212
# Update the list of available tags.
12213
if test -n "$tagname"; then
12214
echo appending configuration tag \"$tagname\" to $ofile
12218
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12219
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12220
(test "X$CXX" != "Xg++"))) ; then
12222
ac_cpp='$CXXCPP $CPPFLAGS'
12223
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12224
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12225
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12230
archive_cmds_need_lc_CXX=no
12231
allow_undefined_flag_CXX=
12232
always_export_symbols_CXX=no
12233
archive_expsym_cmds_CXX=
12234
export_dynamic_flag_spec_CXX=
12235
hardcode_direct_CXX=no
12236
hardcode_libdir_flag_spec_CXX=
12237
hardcode_libdir_flag_spec_ld_CXX=
12238
hardcode_libdir_separator_CXX=
12239
hardcode_minus_L_CXX=no
12240
hardcode_shlibpath_var_CXX=unsupported
12241
hardcode_automatic_CXX=no
12243
module_expsym_cmds_CXX=
12244
link_all_deplibs_CXX=unknown
12245
old_archive_cmds_CXX=$old_archive_cmds
12246
no_undefined_flag_CXX=
12247
whole_archive_flag_spec_CXX=
12248
enable_shared_with_static_runtimes_CXX=no
12250
# Dependencies to place before and after the object being linked:
12251
predep_objects_CXX=
12252
postdep_objects_CXX=
12255
compiler_lib_search_path_CXX=
12257
# Source file extension for C++ test sources.
12260
# Object file extension for compiled C++ test sources.
12264
# Code to be used in simple compile tests
12265
lt_simple_compile_test_code="int some_variable = 0;"
12267
# Code to be used in simple link tests
12268
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12270
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12272
# If no C compiler was specified, use CC.
12275
# If no C compiler flags were specified, use CFLAGS.
12276
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12278
# Allow CC to be a program name with arguments.
12282
# save warnings/boilerplate of simple test code
12283
ac_outfile=conftest.$ac_objext
12284
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12285
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12286
_lt_compiler_boilerplate=`cat conftest.err`
12289
ac_outfile=conftest.$ac_objext
12290
echo "$lt_simple_link_test_code" >conftest.$ac_ext
12291
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12292
_lt_linker_boilerplate=`cat conftest.err`
12296
# Allow CC to be a program name with arguments.
12301
lt_save_with_gnu_ld=$with_gnu_ld
12302
lt_save_path_LD=$lt_cv_path_LD
12303
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12304
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12306
$as_unset lt_cv_prog_gnu_ld
12308
if test -n "${lt_cv_path_LDCXX+set}"; then
12309
lt_cv_path_LD=$lt_cv_path_LDCXX
12311
$as_unset lt_cv_path_LD
12313
test -z "${LDCXX+set}" || LD=$LDCXX
12317
for cc_temp in $compiler""; do
12319
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12320
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12325
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12328
# We don't want -fno-exception wen compiling C++ code, so set the
12329
# no_builtin_flag separately
12330
if test "$GXX" = yes; then
12331
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12333
lt_prog_compiler_no_builtin_flag_CXX=
12336
if test "$GXX" = yes; then
12337
# Set up default GNU C++ configuration
12340
# Check whether --with-gnu-ld was given.
12341
if test "${with_gnu_ld+set}" = set; then
12342
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12348
if test "$GCC" = yes; then
12349
# Check if gcc -print-prog-name=ld gives a path.
12350
{ echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12351
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12354
# gcc leaves a trailing carriage return which upsets mingw
12355
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12357
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12360
# Accept absolute paths.
12362
re_direlt='/[^/][^/]*/\.\./'
12363
# Canonicalize the pathname of ld
12364
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12365
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12366
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12368
test -z "$LD" && LD="$ac_prog"
12371
# If it fails, then pretend we aren't using GCC.
12375
# If it is relative, then search for the first ld in PATH.
12376
with_gnu_ld=unknown
12379
elif test "$with_gnu_ld" = yes; then
12380
{ echo "$as_me:$LINENO: checking for GNU ld" >&5
12381
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12383
{ echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12384
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12386
if test "${lt_cv_path_LD+set}" = set; then
12387
echo $ECHO_N "(cached) $ECHO_C" >&6
12389
if test -z "$LD"; then
12390
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12391
for ac_dir in $PATH; do
12393
test -z "$ac_dir" && ac_dir=.
12394
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12395
lt_cv_path_LD="$ac_dir/$ac_prog"
12396
# Check to see if the program is GNU ld. I'd rather use --version,
12397
# but apparently some variants of GNU ld only accept -v.
12398
# Break only if it was the GNU/non-GNU ld that we prefer.
12399
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12400
*GNU* | *'with BFD'*)
12401
test "$with_gnu_ld" != no && break
12404
test "$with_gnu_ld" != yes && break
12411
lt_cv_path_LD="$LD" # Let the user override the test with a path.
12415
LD="$lt_cv_path_LD"
12416
if test -n "$LD"; then
12417
{ echo "$as_me:$LINENO: result: $LD" >&5
12418
echo "${ECHO_T}$LD" >&6; }
12420
{ echo "$as_me:$LINENO: result: no" >&5
12421
echo "${ECHO_T}no" >&6; }
12423
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12424
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12425
{ (exit 1); exit 1; }; }
12426
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12427
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12428
if test "${lt_cv_prog_gnu_ld+set}" = set; then
12429
echo $ECHO_N "(cached) $ECHO_C" >&6
12431
# I'd rather use --version here, but apparently some GNU lds only accept -v.
12432
case `$LD -v 2>&1 </dev/null` in
12433
*GNU* | *'with BFD'*)
12434
lt_cv_prog_gnu_ld=yes
12437
lt_cv_prog_gnu_ld=no
12441
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12442
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12443
with_gnu_ld=$lt_cv_prog_gnu_ld
12447
# Check if GNU C++ uses GNU ld as the underlying linker, since the
12448
# archiving commands below assume that GNU ld is being used.
12449
if test "$with_gnu_ld" = yes; then
12450
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12451
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'
12453
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12454
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12456
# If archive_cmds runs LD, not CC, wlarc should be empty
12457
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12458
# investigate it a little bit more. (MM)
12461
# ancient GNU ld didn't support --whole-archive et. al.
12462
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12463
grep 'no-whole-archive' > /dev/null; then
12464
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12466
whole_archive_flag_spec_CXX=
12472
# A generic and very simple default shared library creation
12473
# command for GNU C++ for the case where it uses the native
12474
# linker, instead of GNU ld. If possible, this setting should
12475
# overridden to take advantage of the native linker features on
12476
# the platform it is being used on.
12477
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12480
# Commands to make compiler produce verbose output that lists
12481
# what "hidden" libraries, object files and flags are used when
12482
# linking a shared library.
12483
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12491
# PORTME: fill in a description of your system's C++ link characteristics
12492
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12493
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12497
# FIXME: insert proper C++ library support
12501
if test "$host_cpu" = ia64; then
12502
# On IA64, the linker does run time linking by default, so we don't
12503
# have to do anything special.
12504
aix_use_runtimelinking=no
12505
exp_sym_flag='-Bexport'
12508
aix_use_runtimelinking=no
12510
# Test if we are trying to use run time linking or normal
12511
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
12512
# need to do runtime linking.
12513
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12514
for ld_flag in $LDFLAGS; do
12517
aix_use_runtimelinking=yes
12525
exp_sym_flag='-bexport'
12526
no_entry_flag='-bnoentry'
12529
# When large executables or shared objects are built, AIX ld can
12530
# have problems creating the table of contents. If linking a library
12531
# or program results in "error TOC overflow" add -mminimal-toc to
12532
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12533
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12535
archive_cmds_CXX=''
12536
hardcode_direct_CXX=yes
12537
hardcode_libdir_separator_CXX=':'
12538
link_all_deplibs_CXX=yes
12540
if test "$GXX" = yes; then
12541
case $host_os in aix4.[012]|aix4.[012].*)
12542
# We only want to do this on AIX 4.2 and lower, the check
12543
# below for broken collect2 doesn't work under 4.3+
12544
collect2name=`${CC} -print-prog-name=collect2`
12545
if test -f "$collect2name" && \
12546
strings "$collect2name" | grep resolve_lib_name >/dev/null
12548
# We have reworked collect2
12551
# We have old collect2
12552
hardcode_direct_CXX=unsupported
12553
# It fails to find uninstalled libraries when the uninstalled
12554
# path is not listed in the libpath. Setting hardcode_minus_L
12555
# to unsupported forces relinking
12556
hardcode_minus_L_CXX=yes
12557
hardcode_libdir_flag_spec_CXX='-L$libdir'
12558
hardcode_libdir_separator_CXX=
12562
shared_flag='-shared'
12563
if test "$aix_use_runtimelinking" = yes; then
12564
shared_flag="$shared_flag "'${wl}-G'
12568
if test "$host_cpu" = ia64; then
12569
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12570
# chokes on -Wl,-G. The following line is correct:
12573
if test "$aix_use_runtimelinking" = yes; then
12574
shared_flag='${wl}-G'
12576
shared_flag='${wl}-bM:SRE'
12581
# It seems that -bexpall does not export symbols beginning with
12582
# underscore (_), so it is better to generate a list of symbols to export.
12583
always_export_symbols_CXX=yes
12584
if test "$aix_use_runtimelinking" = yes; then
12585
# Warning - without using the other runtime loading flags (-brtl),
12586
# -berok will link without error, but may produce a broken library.
12587
allow_undefined_flag_CXX='-berok'
12588
# Determine the default libpath from the value encoded in an empty executable.
12589
cat >conftest.$ac_ext <<_ACEOF
12592
cat confdefs.h >>conftest.$ac_ext
12593
cat >>conftest.$ac_ext <<_ACEOF
12594
/* end confdefs.h. */
12604
rm -f conftest.$ac_objext conftest$ac_exeext
12605
if { (ac_try="$ac_link"
12606
case "(($ac_try" in
12607
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12608
*) ac_try_echo=$ac_try;;
12610
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12611
(eval "$ac_link") 2>conftest.er1
12613
grep -v '^ *+' conftest.er1 >conftest.err
12615
cat conftest.err >&5
12616
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12617
(exit $ac_status); } && {
12618
test -z "$ac_cxx_werror_flag" ||
12619
test ! -s conftest.err
12620
} && test -s conftest$ac_exeext &&
12621
$as_test_x conftest$ac_exeext; then
12623
lt_aix_libpath_sed='
12624
/Import File Strings/,/^$/ {
12630
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12631
# Check for a 64-bit object if we didn't find anything.
12632
if test -z "$aix_libpath"; then
12633
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12636
echo "$as_me: failed program was:" >&5
12637
sed 's/^/| /' conftest.$ac_ext >&5
12642
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12643
conftest$ac_exeext conftest.$ac_ext
12644
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12646
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12648
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"
12650
if test "$host_cpu" = ia64; then
12651
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12652
allow_undefined_flag_CXX="-z nodefs"
12653
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"
12655
# Determine the default libpath from the value encoded in an empty executable.
12656
cat >conftest.$ac_ext <<_ACEOF
12659
cat confdefs.h >>conftest.$ac_ext
12660
cat >>conftest.$ac_ext <<_ACEOF
12661
/* end confdefs.h. */
12671
rm -f conftest.$ac_objext conftest$ac_exeext
12672
if { (ac_try="$ac_link"
12673
case "(($ac_try" in
12674
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12675
*) ac_try_echo=$ac_try;;
12677
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12678
(eval "$ac_link") 2>conftest.er1
12680
grep -v '^ *+' conftest.er1 >conftest.err
12682
cat conftest.err >&5
12683
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684
(exit $ac_status); } && {
12685
test -z "$ac_cxx_werror_flag" ||
12686
test ! -s conftest.err
12687
} && test -s conftest$ac_exeext &&
12688
$as_test_x conftest$ac_exeext; then
12690
lt_aix_libpath_sed='
12691
/Import File Strings/,/^$/ {
12697
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12698
# Check for a 64-bit object if we didn't find anything.
12699
if test -z "$aix_libpath"; then
12700
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12703
echo "$as_me: failed program was:" >&5
12704
sed 's/^/| /' conftest.$ac_ext >&5
12709
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12710
conftest$ac_exeext conftest.$ac_ext
12711
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12713
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12714
# Warning - without using the other run time loading flags,
12715
# -berok will link without error, but may produce a broken library.
12716
no_undefined_flag_CXX=' ${wl}-bernotok'
12717
allow_undefined_flag_CXX=' ${wl}-berok'
12718
# Exported symbols can be pulled into shared objects from archives
12719
whole_archive_flag_spec_CXX='$convenience'
12720
archive_cmds_need_lc_CXX=yes
12721
# This is similar to how AIX traditionally builds its shared libraries.
12722
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'
12728
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12729
allow_undefined_flag_CXX=unsupported
12730
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12731
# support --undefined. This deserves some investigation. FIXME
12732
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12739
case $cc_basename in
12741
# FIXME: insert proper C++ library support
12747
cygwin* | mingw* | pw32*)
12748
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12749
# as there is no search path for DLLs.
12750
hardcode_libdir_flag_spec_CXX='-L$libdir'
12751
allow_undefined_flag_CXX=unsupported
12752
always_export_symbols_CXX=no
12753
enable_shared_with_static_runtimes_CXX=yes
12755
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12756
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'
12757
# If the export-symbols file already is a .def file (1st line
12758
# is EXPORTS), use it as is; otherwise, prepend...
12759
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12760
cp $export_symbols $output_objdir/$soname.def;
12762
echo EXPORTS > $output_objdir/$soname.def;
12763
cat $export_symbols >> $output_objdir/$soname.def;
12765
$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'
12770
darwin* | rhapsody*)
12772
rhapsody* | darwin1.[012])
12773
allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12776
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12777
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12779
case ${MACOSX_DEPLOYMENT_TARGET} in
12781
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12784
allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12790
archive_cmds_need_lc_CXX=no
12791
hardcode_direct_CXX=no
12792
hardcode_automatic_CXX=yes
12793
hardcode_shlibpath_var_CXX=unsupported
12794
whole_archive_flag_spec_CXX=''
12795
link_all_deplibs_CXX=yes
12797
if test "$GXX" = yes ; then
12798
lt_int_apple_cc_single_mod=no
12799
output_verbose_link_cmd='echo'
12800
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12801
lt_int_apple_cc_single_mod=yes
12803
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12804
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12806
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'
12808
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12809
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12810
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12811
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12813
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12815
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}'
12817
case $cc_basename in
12819
output_verbose_link_cmd='echo'
12820
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'
12821
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12822
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12823
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}'
12824
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}'
12834
case $cc_basename in
12836
# FIXME: insert proper C++ library support
12840
# Green Hills C++ Compiler
12841
# FIXME: insert proper C++ library support
12845
# FIXME: insert proper C++ library support
12851
# C++ shared libraries reported to be fairly broken before switch to ELF
12855
archive_cmds_need_lc_CXX=no
12857
freebsd* | dragonfly*)
12858
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12865
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12866
hardcode_libdir_separator_CXX=:
12867
export_dynamic_flag_spec_CXX='${wl}-E'
12868
hardcode_direct_CXX=yes
12869
hardcode_minus_L_CXX=yes # Not in the search PATH,
12870
# but as the default
12871
# location of the library.
12873
case $cc_basename in
12875
# FIXME: insert proper C++ library support
12879
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'
12880
# Commands to make compiler produce verbose output that lists
12881
# what "hidden" libraries, object files and flags are used when
12882
# linking a shared library.
12884
# There doesn't appear to be a way to prevent this compiler from
12885
# explicitly linking system object files so we need to strip them
12886
# from the output so that they don't get included in the library
12888
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'
12891
if test "$GXX" = yes; then
12892
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'
12894
# FIXME: insert proper C++ library support
12901
if test $with_gnu_ld = no; then
12902
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12903
hardcode_libdir_separator_CXX=:
12908
export_dynamic_flag_spec_CXX='${wl}-E'
12914
hardcode_direct_CXX=no
12915
hardcode_shlibpath_var_CXX=no
12918
hardcode_direct_CXX=yes
12919
hardcode_minus_L_CXX=yes # Not in the search PATH,
12920
# but as the default
12921
# location of the library.
12925
case $cc_basename in
12927
# FIXME: insert proper C++ library support
12933
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12936
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12939
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12942
# Commands to make compiler produce verbose output that lists
12943
# what "hidden" libraries, object files and flags are used when
12944
# linking a shared library.
12946
# There doesn't appear to be a way to prevent this compiler from
12947
# explicitly linking system object files so we need to strip them
12948
# from the output so that they don't get included in the library
12950
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'
12953
if test "$GXX" = yes; then
12954
if test $with_gnu_ld = no; then
12957
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12960
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12963
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'
12968
# FIXME: insert proper C++ library support
12975
hardcode_direct_CXX=no
12976
hardcode_shlibpath_var_CXX=no
12977
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12978
export_dynamic_flag_spec_CXX='${wl}-E'
12979
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12980
# Instead, shared libraries are loaded at an image base (0x10000000 by
12981
# default) and relocated if they conflict, which is a slow very memory
12982
# consuming and fragmenting process. To avoid this, we pick a random,
12983
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12984
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
12985
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'
12986
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'
12989
case $cc_basename in
12992
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'
12994
# Archives containing C++ object files must be created using
12995
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
12996
# necessary to make sure instantiated templates are included
12998
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13001
if test "$GXX" = yes; then
13002
if test "$with_gnu_ld" = no; then
13003
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'
13005
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'
13008
link_all_deplibs_CXX=yes
13011
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13012
hardcode_libdir_separator_CXX=:
13014
linux* | k*bsd*-gnu)
13015
case $cc_basename in
13017
# Kuck and Associates, Inc. (KAI) C++ Compiler
13019
# KCC will only create a shared library if the output file
13020
# ends with ".so" (or ".sl" for HP-UX), so rename the library
13021
# to its proper name (with version) after linking.
13022
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'
13023
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'
13024
# Commands to make compiler produce verbose output that lists
13025
# what "hidden" libraries, object files and flags are used when
13026
# linking a shared library.
13028
# There doesn't appear to be a way to prevent this compiler from
13029
# explicitly linking system object files so we need to strip them
13030
# from the output so that they don't get included in the library
13032
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'
13034
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
13035
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13037
# Archives containing C++ object files must be created using
13038
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
13039
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13044
# version 8.0 and above of icpc choke on multiply defined symbols
13045
# if we add $predep_objects and $postdep_objects, however 7.1 and
13046
# earlier do not add the objects themselves.
13047
case `$CC -V 2>&1` in
13049
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13050
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'
13052
*) # Version 8.0 or newer
13055
ia64*) tmp_idyn=' -i_dynamic';;
13057
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13058
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'
13061
archive_cmds_need_lc_CXX=no
13062
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13063
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13064
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13067
# Portland Group C++ compiler
13068
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13069
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'
13071
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13072
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13073
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'
13077
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13078
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'
13080
runpath_var=LD_RUN_PATH
13081
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13082
hardcode_libdir_separator_CXX=:
13084
# Commands to make compiler produce verbose output that lists
13085
# what "hidden" libraries, object files and flags are used when
13086
# linking a shared library.
13088
# There doesn't appear to be a way to prevent this compiler from
13089
# explicitly linking system object files so we need to strip them
13090
# from the output so that they don't get included in the library
13092
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'
13095
case `$CC -V 2>&1 | sed 5q` in
13098
no_undefined_flag_CXX=' -zdefs'
13099
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13100
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'
13101
hardcode_libdir_flag_spec_CXX='-R$libdir'
13102
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'
13104
# Not sure whether something based on
13105
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13107
output_verbose_link_cmd='echo'
13109
# Archives containing C++ object files must be created using
13110
# "CC -xar", where "CC" is the Sun C++ compiler. This is
13111
# necessary to make sure instantiated templates are included
13113
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13120
# FIXME: insert proper C++ library support
13124
# FIXME: insert proper C++ library support
13128
case $cc_basename in
13130
# FIXME: insert proper C++ library support
13134
# FIXME: insert proper C++ library support
13140
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13141
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13143
hardcode_libdir_flag_spec_CXX='-R$libdir'
13144
hardcode_direct_CXX=yes
13145
hardcode_shlibpath_var_CXX=no
13147
# Workaround some broken pre-1.5 toolchains
13148
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13151
# C++ shared libraries are fairly broken
13155
if test -f /usr/libexec/ld.so; then
13156
hardcode_direct_CXX=yes
13157
hardcode_shlibpath_var_CXX=no
13158
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13159
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13160
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13161
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13162
export_dynamic_flag_spec_CXX='${wl}-E'
13163
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13165
output_verbose_link_cmd='echo'
13171
case $cc_basename in
13173
# Kuck and Associates, Inc. (KAI) C++ Compiler
13175
# KCC will only create a shared library if the output file
13176
# ends with ".so" (or ".sl" for HP-UX), so rename the library
13177
# to its proper name (with version) after linking.
13178
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'
13180
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13181
hardcode_libdir_separator_CXX=:
13183
# Archives containing C++ object files must be created using
13184
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
13185
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13189
# Rational C++ 2.4.1
13190
# FIXME: insert proper C++ library support
13194
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13195
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'
13197
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13198
hardcode_libdir_separator_CXX=:
13200
# Commands to make compiler produce verbose output that lists
13201
# what "hidden" libraries, object files and flags are used when
13202
# linking a shared library.
13204
# There doesn't appear to be a way to prevent this compiler from
13205
# explicitly linking system object files so we need to strip them
13206
# from the output so that they don't get included in the library
13208
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'
13211
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13212
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13213
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'
13215
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13216
hardcode_libdir_separator_CXX=:
13218
# Commands to make compiler produce verbose output that lists
13219
# what "hidden" libraries, object files and flags are used when
13220
# linking a shared library.
13221
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13224
# FIXME: insert proper C++ library support
13231
case $cc_basename in
13233
# Kuck and Associates, Inc. (KAI) C++ Compiler
13235
# KCC will only create a shared library if the output file
13236
# ends with ".so" (or ".sl" for HP-UX), so rename the library
13237
# to its proper name (with version) after linking.
13238
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'
13240
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13241
hardcode_libdir_separator_CXX=:
13243
# Archives containing C++ object files must be created using
13244
# the KAI C++ compiler.
13245
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13248
# Rational C++ 2.4.1
13249
# FIXME: insert proper C++ library support
13253
allow_undefined_flag_CXX=' -expect_unresolved \*'
13254
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'
13255
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13256
echo "-hidden">> $lib.exp~
13257
$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~
13260
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13261
hardcode_libdir_separator_CXX=:
13263
# Commands to make compiler produce verbose output that lists
13264
# what "hidden" libraries, object files and flags are used when
13265
# linking a shared library.
13267
# There doesn't appear to be a way to prevent this compiler from
13268
# explicitly linking system object files so we need to strip them
13269
# from the output so that they don't get included in the library
13271
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'
13274
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13275
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13276
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'
13278
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13279
hardcode_libdir_separator_CXX=:
13281
# Commands to make compiler produce verbose output that lists
13282
# what "hidden" libraries, object files and flags are used when
13283
# linking a shared library.
13284
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13287
# FIXME: insert proper C++ library support
13294
# FIXME: insert proper C++ library support
13298
case $cc_basename in
13301
# FIXME: insert proper C++ library support
13306
# FIXME: insert proper C++ library support
13310
# FIXME: insert proper C++ library support
13316
case $cc_basename in
13318
# Sun C++ 4.2, 5.x and Centerline C++
13319
archive_cmds_need_lc_CXX=yes
13320
no_undefined_flag_CXX=' -zdefs'
13321
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13322
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13323
$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'
13325
hardcode_libdir_flag_spec_CXX='-R$libdir'
13326
hardcode_shlibpath_var_CXX=no
13328
solaris2.[0-5] | solaris2.[0-5].*) ;;
13330
# The compiler driver will combine and reorder linker options,
13331
# but understands `-z linker_flag'.
13332
# Supported since Solaris 2.6 (maybe 2.5.1?)
13333
whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13336
link_all_deplibs_CXX=yes
13338
output_verbose_link_cmd='echo'
13340
# Archives containing C++ object files must be created using
13341
# "CC -xar", where "CC" is the Sun C++ compiler. This is
13342
# necessary to make sure instantiated templates are included
13344
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13347
# Green Hills C++ Compiler
13348
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13350
# The C++ compiler must be used to create the archive.
13351
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13354
# GNU C++ compiler with Solaris linker
13355
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13356
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13357
if $CC --version | grep -v '^2\.7' > /dev/null; then
13358
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13359
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13360
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13362
# Commands to make compiler produce verbose output that lists
13363
# what "hidden" libraries, object files and flags are used when
13364
# linking a shared library.
13365
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13367
# g++ 2.7 appears to require `-G' NOT `-shared' on this
13369
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13370
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13371
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13373
# Commands to make compiler produce verbose output that lists
13374
# what "hidden" libraries, object files and flags are used when
13375
# linking a shared library.
13376
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13379
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13381
solaris2.[0-5] | solaris2.[0-5].*) ;;
13383
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13390
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13391
no_undefined_flag_CXX='${wl}-z,text'
13392
archive_cmds_need_lc_CXX=no
13393
hardcode_shlibpath_var_CXX=no
13394
runpath_var='LD_RUN_PATH'
13396
case $cc_basename in
13398
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13399
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13402
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13403
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13407
sysv5* | sco3.2v5* | sco5v6*)
13408
# Note: We can NOT use -z defs as we might desire, because we do not
13409
# link with -lc, and that would cause any symbols used from libc to
13410
# always be unresolved, which means just about no library would
13411
# ever link correctly. If we're not using GNU ld we use -z text
13412
# though, which does catch some bad symbols but isn't as heavy-handed
13414
# For security reasons, it is highly recommended that you always
13415
# use absolute paths for naming shared libraries, and exclude the
13416
# DT_RUNPATH tag from executables and libraries. But doing so
13417
# requires that you compile everything twice, which is a pain.
13418
# So that behaviour is only enabled if SCOABSPATH is set to a
13419
# non-empty value in the environment. Most likely only useful for
13420
# creating official distributions of packages.
13421
# This is a hack until libtool officially supports absolute path
13422
# names for shared libraries.
13423
no_undefined_flag_CXX='${wl}-z,text'
13424
allow_undefined_flag_CXX='${wl}-z,nodefs'
13425
archive_cmds_need_lc_CXX=no
13426
hardcode_shlibpath_var_CXX=no
13427
hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13428
hardcode_libdir_separator_CXX=':'
13429
link_all_deplibs_CXX=yes
13430
export_dynamic_flag_spec_CXX='${wl}-Bexport'
13431
runpath_var='LD_RUN_PATH'
13433
case $cc_basename in
13435
archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13436
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13439
archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13440
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13445
case $cc_basename in
13447
# NonStop-UX NCC 3.20
13448
# FIXME: insert proper C++ library support
13452
# FIXME: insert proper C++ library support
13458
# FIXME: insert proper C++ library support
13462
# FIXME: insert proper C++ library support
13466
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13467
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13468
test "$ld_shlibs_CXX" = no && can_build_shared=no
13474
cat > conftest.$ac_ext <<EOF
13478
Foo (void) { a = 0; }
13484
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13485
(eval $ac_compile) 2>&5
13487
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13488
(exit $ac_status); }; then
13489
# Parse the compiler output and extract the necessary
13490
# objects, libraries and library flags.
13492
# Sentinel used to keep track of whether or not we are before
13493
# the conftest object file.
13494
pre_test_object_deps_done=no
13496
# The `*' in the case matches for architectures that use `case' in
13497
# $output_verbose_cmd can trigger glob expansion during the loop
13498
# eval without this substitution.
13499
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13501
for p in `eval $output_verbose_link_cmd`; do
13505
# Some compilers place space between "-{L,R}" and the path.
13506
# Remove the space.
13507
if test $p = "-L" \
13508
|| test $p = "-R"; then
13515
if test "$pre_test_object_deps_done" = no; then
13518
# Internal compiler library paths should come after those
13519
# provided the user. The postdeps already come after the
13520
# user supplied libs so there is no need to process them.
13521
if test -z "$compiler_lib_search_path_CXX"; then
13522
compiler_lib_search_path_CXX="${prev}${p}"
13524
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13527
# The "-l" case would never come before the object being
13528
# linked, so don't bother handling this case.
13531
if test -z "$postdeps_CXX"; then
13532
postdeps_CXX="${prev}${p}"
13534
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13540
# This assumes that the test object file only shows up
13541
# once in the compiler output.
13542
if test "$p" = "conftest.$objext"; then
13543
pre_test_object_deps_done=yes
13547
if test "$pre_test_object_deps_done" = no; then
13548
if test -z "$predep_objects_CXX"; then
13549
predep_objects_CXX="$p"
13551
predep_objects_CXX="$predep_objects_CXX $p"
13554
if test -z "$postdep_objects_CXX"; then
13555
postdep_objects_CXX="$p"
13557
postdep_objects_CXX="$postdep_objects_CXX $p"
13562
*) ;; # Ignore the rest.
13570
echo "libtool.m4: error: problem compiling CXX test program"
13573
$rm -f confest.$objext
13575
# PORTME: override above test on systems where it is broken
13578
# Interix 3.5 installs completely hosed .la files for C++, so rather than
13579
# hack all around it, let's just trust "g++" to DTRT.
13580
predep_objects_CXX=
13581
postdep_objects_CXX=
13586
case `$CC -V 2>&1 | sed 5q` in
13590
# The more standards-conforming stlport4 library is
13591
# incompatible with the Cstd library. Avoid specifying
13592
# it if it's in CXXFLAGS. Ignore libCrun as
13593
# -library=stlport4 depends on it.
13594
case " $CXX $CXXFLAGS " in
13595
*" -library=stlport4 "*)
13596
solaris_use_stlport4=yes
13599
if test "$solaris_use_stlport4" != yes; then
13600
postdeps_CXX='-library=Cstd -library=Crun'
13607
case $cc_basename in
13609
# The more standards-conforming stlport4 library is
13610
# incompatible with the Cstd library. Avoid specifying
13611
# it if it's in CXXFLAGS. Ignore libCrun as
13612
# -library=stlport4 depends on it.
13613
case " $CXX $CXXFLAGS " in
13614
*" -library=stlport4 "*)
13615
solaris_use_stlport4=yes
13619
# Adding this requires a known-good setup of shared libraries for
13620
# Sun compiler versions before 5.6, else PIC objects from an old
13621
# archive will be linked into the output, leading to subtle bugs.
13622
if test "$solaris_use_stlport4" != yes; then
13623
postdeps_CXX='-library=Cstd -library=Crun'
13631
case " $postdeps_CXX " in
13632
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13635
lt_prog_compiler_wl_CXX=
13636
lt_prog_compiler_pic_CXX=
13637
lt_prog_compiler_static_CXX=
13639
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13640
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13642
# C++ specific cases for pic, static, wl, etc.
13643
if test "$GXX" = yes; then
13644
lt_prog_compiler_wl_CXX='-Wl,'
13645
lt_prog_compiler_static_CXX='-static'
13649
# All AIX code is PIC.
13650
if test "$host_cpu" = ia64; then
13651
# AIX 5 now supports IA64 processor
13652
lt_prog_compiler_static_CXX='-Bstatic'
13656
# FIXME: we need at least 68020 code to build shared libraries, but
13657
# adding the `-m68020' flag to GCC prevents building anything better,
13659
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13661
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13662
# PIC is the default for these OSes.
13664
mingw* | cygwin* | os2* | pw32*)
13665
# This hack is so that the source file can tell whether it is being
13666
# built for inclusion in a dll (and should export symbols for example).
13667
# Although the cygwin gcc ignores -fPIC, still need this for old-style
13668
# (--disable-auto-import) libraries
13669
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13671
darwin* | rhapsody*)
13672
# PIC is the default on this platform
13673
# Common symbols not allowed in MH_DYLIB files
13674
lt_prog_compiler_pic_CXX='-fno-common'
13677
# DJGPP does not support shared libraries at all
13678
lt_prog_compiler_pic_CXX=
13681
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
13682
# Instead, we relocate shared libraries at runtime.
13685
if test -d /usr/nec; then
13686
lt_prog_compiler_pic_CXX=-Kconform_pic
13690
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13691
# not for PA HP-UX.
13696
lt_prog_compiler_pic_CXX='-fPIC'
13701
lt_prog_compiler_pic_CXX='-fPIC'
13707
# All AIX code is PIC.
13708
if test "$host_cpu" = ia64; then
13709
# AIX 5 now supports IA64 processor
13710
lt_prog_compiler_static_CXX='-Bstatic'
13712
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13716
case $cc_basename in
13718
# Green Hills C++ Compiler
13719
# _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"
13724
# PIC is the default on this platform
13725
# Common symbols not allowed in MH_DYLIB files
13726
case $cc_basename in
13728
lt_prog_compiler_pic_CXX='-qnocommon'
13729
lt_prog_compiler_wl_CXX='-Wl,'
13734
case $cc_basename in
13736
lt_prog_compiler_pic_CXX='-KPIC'
13739
# Green Hills C++ Compiler
13740
lt_prog_compiler_pic_CXX='-pic'
13746
freebsd* | dragonfly*)
13747
# FreeBSD uses GNU C++
13749
hpux9* | hpux10* | hpux11*)
13750
case $cc_basename in
13752
lt_prog_compiler_wl_CXX='-Wl,'
13753
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13754
if test "$host_cpu" != ia64; then
13755
lt_prog_compiler_pic_CXX='+Z'
13759
lt_prog_compiler_wl_CXX='-Wl,'
13760
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13766
lt_prog_compiler_pic_CXX='+Z'
13775
# This is c89, which is MS Visual C++ (no shared libs)
13776
# Anyone wants to do a port?
13778
irix5* | irix6* | nonstopux*)
13779
case $cc_basename in
13781
lt_prog_compiler_wl_CXX='-Wl,'
13782
lt_prog_compiler_static_CXX='-non_shared'
13783
# CC pic flag -KPIC is the default.
13789
linux* | k*bsd*-gnu)
13790
case $cc_basename in
13793
lt_prog_compiler_wl_CXX='--backend -Wl,'
13794
lt_prog_compiler_pic_CXX='-fPIC'
13798
lt_prog_compiler_wl_CXX='-Wl,'
13799
lt_prog_compiler_pic_CXX='-KPIC'
13800
lt_prog_compiler_static_CXX='-static'
13803
# Portland Group C++ compiler.
13804
lt_prog_compiler_wl_CXX='-Wl,'
13805
lt_prog_compiler_pic_CXX='-fpic'
13806
lt_prog_compiler_static_CXX='-Bstatic'
13810
# Make sure the PIC flag is empty. It appears that all Alpha
13811
# Linux and Compaq Tru64 Unix objects are PIC.
13812
lt_prog_compiler_pic_CXX=
13813
lt_prog_compiler_static_CXX='-non_shared'
13816
case `$CC -V 2>&1 | sed 5q` in
13819
lt_prog_compiler_pic_CXX='-KPIC'
13820
lt_prog_compiler_static_CXX='-Bstatic'
13821
lt_prog_compiler_wl_CXX='-Qoption ld '
13832
case $cc_basename in
13834
lt_prog_compiler_pic_CXX='-W c,exportall'
13842
osf3* | osf4* | osf5*)
13843
case $cc_basename in
13845
lt_prog_compiler_wl_CXX='--backend -Wl,'
13848
# Rational C++ 2.4.1
13849
lt_prog_compiler_pic_CXX='-pic'
13852
# Digital/Compaq C++
13853
lt_prog_compiler_wl_CXX='-Wl,'
13854
# Make sure the PIC flag is empty. It appears that all Alpha
13855
# Linux and Compaq Tru64 Unix objects are PIC.
13856
lt_prog_compiler_pic_CXX=
13857
lt_prog_compiler_static_CXX='-non_shared'
13866
case $cc_basename in
13868
# Sun C++ 4.2, 5.x and Centerline C++
13869
lt_prog_compiler_pic_CXX='-KPIC'
13870
lt_prog_compiler_static_CXX='-Bstatic'
13871
lt_prog_compiler_wl_CXX='-Qoption ld '
13874
# Green Hills C++ Compiler
13875
lt_prog_compiler_pic_CXX='-PIC'
13882
case $cc_basename in
13885
lt_prog_compiler_pic_CXX='-pic'
13886
lt_prog_compiler_static_CXX='-Bstatic'
13890
lt_prog_compiler_pic_CXX='-pic'
13897
case $cc_basename in
13899
# NonStop-UX NCC 3.20
13900
lt_prog_compiler_pic_CXX='-KPIC'
13906
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13907
case $cc_basename in
13909
lt_prog_compiler_wl_CXX='-Wl,'
13910
lt_prog_compiler_pic_CXX='-KPIC'
13911
lt_prog_compiler_static_CXX='-Bstatic'
13918
lt_prog_compiler_can_build_shared_CXX=no
13923
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13924
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13927
# Check to make sure the PIC flag actually works.
13929
if test -n "$lt_prog_compiler_pic_CXX"; then
13931
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13932
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13933
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13934
echo $ECHO_N "(cached) $ECHO_C" >&6
13936
lt_prog_compiler_pic_works_CXX=no
13937
ac_outfile=conftest.$ac_objext
13938
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13939
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13940
# Insert the option either (1) after the last *FLAGS variable, or
13941
# (2) before a word containing "conftest.", or (3) at the end.
13942
# Note that $ac_compile itself does not contain backslashes and begins
13943
# with a dollar sign (not a hyphen), so the echo should work correctly.
13944
# The option is referenced via a variable to avoid confusing sed.
13945
lt_compile=`echo "$ac_compile" | $SED \
13946
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13947
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13948
-e 's:$: $lt_compiler_flag:'`
13949
(eval echo "\"\$as_me:13949: $lt_compile\"" >&5)
13950
(eval "$lt_compile" 2>conftest.err)
13952
cat conftest.err >&5
13953
echo "$as_me:13953: \$? = $ac_status" >&5
13954
if (exit $ac_status) && test -s "$ac_outfile"; then
13955
# The compiler can only warn and ignore the option if not recognized
13956
# So say no if there are warnings other than the usual output.
13957
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13958
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13959
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13960
lt_prog_compiler_pic_works_CXX=yes
13966
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13967
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
13969
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13970
case $lt_prog_compiler_pic_CXX in
13972
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13975
lt_prog_compiler_pic_CXX=
13976
lt_prog_compiler_can_build_shared_CXX=no
13981
# For platforms which do not support PIC, -DPIC is meaningless:
13983
lt_prog_compiler_pic_CXX=
13986
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13991
# Check to make sure the static flag actually works.
13993
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13994
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13995
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13996
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13997
echo $ECHO_N "(cached) $ECHO_C" >&6
13999
lt_prog_compiler_static_works_CXX=no
14000
save_LDFLAGS="$LDFLAGS"
14001
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14002
echo "$lt_simple_link_test_code" > conftest.$ac_ext
14003
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14004
# The linker can only warn and ignore the option if not recognized
14005
# So say no if there are warnings
14006
if test -s conftest.err; then
14007
# Append any errors to the config.log.
14008
cat conftest.err 1>&5
14009
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14010
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14011
if diff conftest.exp conftest.er2 >/dev/null; then
14012
lt_prog_compiler_static_works_CXX=yes
14015
lt_prog_compiler_static_works_CXX=yes
14019
LDFLAGS="$save_LDFLAGS"
14022
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
14023
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
14025
if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
14028
lt_prog_compiler_static_CXX=
14032
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14033
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14034
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14035
echo $ECHO_N "(cached) $ECHO_C" >&6
14037
lt_cv_prog_compiler_c_o_CXX=no
14038
$rm -r conftest 2>/dev/null
14042
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14044
lt_compiler_flag="-o out/conftest2.$ac_objext"
14045
# Insert the option either (1) after the last *FLAGS variable, or
14046
# (2) before a word containing "conftest.", or (3) at the end.
14047
# Note that $ac_compile itself does not contain backslashes and begins
14048
# with a dollar sign (not a hyphen), so the echo should work correctly.
14049
lt_compile=`echo "$ac_compile" | $SED \
14050
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14051
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14052
-e 's:$: $lt_compiler_flag:'`
14053
(eval echo "\"\$as_me:14053: $lt_compile\"" >&5)
14054
(eval "$lt_compile" 2>out/conftest.err)
14056
cat out/conftest.err >&5
14057
echo "$as_me:14057: \$? = $ac_status" >&5
14058
if (exit $ac_status) && test -s out/conftest2.$ac_objext
14060
# The compiler can only warn and ignore the option if not recognized
14061
# So say no if there are warnings
14062
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14063
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14064
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14065
lt_cv_prog_compiler_c_o_CXX=yes
14070
# SGI C++ compiler will create directory out/ii_files/ for
14071
# template instantiation
14072
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14073
$rm out/* && rmdir out
14079
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14080
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14083
hard_links="nottested"
14084
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14085
# do not overwrite the value of need_locks provided by the user
14086
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14087
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14090
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14092
ln conftest.a conftest.b 2>&5 || hard_links=no
14093
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14094
{ echo "$as_me:$LINENO: result: $hard_links" >&5
14095
echo "${ECHO_T}$hard_links" >&6; }
14096
if test "$hard_links" = no; then
14097
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14098
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14105
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14106
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14108
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14111
# If we're using GNU nm, then we don't want the "-C" option.
14112
# -C means demangle to AIX nm, but means don't demangle with GNU nm
14113
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14114
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'
14116
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'
14120
export_symbols_cmds_CXX="$ltdll_cmds"
14123
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'
14126
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14130
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14131
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14132
test "$ld_shlibs_CXX" = no && can_build_shared=no
14135
# Do we need to explicitly link libc?
14137
case "x$archive_cmds_need_lc_CXX" in
14139
# Assume -lc should be added
14140
archive_cmds_need_lc_CXX=yes
14142
if test "$enable_shared" = yes && test "$GCC" = yes; then
14143
case $archive_cmds_CXX in
14145
# FIXME: we may have to deal with multi-command sequences.
14148
# Test whether the compiler implicitly links with -lc since on some
14149
# systems, -lgcc has to come before -lc. If gcc already passes -lc
14150
# to ld, don't add -lc before -lgcc.
14151
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14152
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14154
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14156
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14157
(eval $ac_compile) 2>&5
14159
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160
(exit $ac_status); } 2>conftest.err; then
14163
libobjs=conftest.$ac_objext
14165
wl=$lt_prog_compiler_wl_CXX
14166
pic_flag=$lt_prog_compiler_pic_CXX
14172
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14173
allow_undefined_flag_CXX=
14174
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14175
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14177
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14178
(exit $ac_status); }
14180
archive_cmds_need_lc_CXX=no
14182
archive_cmds_need_lc_CXX=yes
14184
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14186
cat conftest.err 1>&5
14189
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14190
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
14197
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14198
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14199
library_names_spec=
14200
libname_spec='lib$name'
14204
postuninstall_cmds=
14208
shlibpath_overrides_runpath=unknown
14210
dynamic_linker="$host_os ld.so"
14211
sys_lib_dlsearch_path_spec="/lib /usr/lib"
14213
need_lib_prefix=unknown
14214
hardcode_into_libs=no
14216
# when you set need_version to no, make sure it does not cause -set_version
14217
# flags to be left without arguments
14218
need_version=unknown
14223
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14224
shlibpath_var=LIBPATH
14226
# AIX 3 has no versioning support, so we append a major version to the name.
14227
soname_spec='${libname}${release}${shared_ext}$major'
14234
hardcode_into_libs=yes
14235
if test "$host_cpu" = ia64; then
14236
# AIX 5 supports IA64
14237
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14238
shlibpath_var=LD_LIBRARY_PATH
14240
# With GCC up to 2.95.x, collect2 would create an import file
14241
# for dependence libraries. The import file would start with
14242
# the line `#! .'. This would cause the generated library to
14243
# depend on `.', always an invalid library. This was fixed in
14244
# development snapshots of GCC prior to 3.0.
14246
aix4 | aix4.[01] | aix4.[01].*)
14247
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14249
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14252
can_build_shared=no
14256
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14257
# soname into executable. Probably we can add versioning support to
14258
# collect2, so additional links can be useful in future.
14259
if test "$aix_use_runtimelinking" = yes; then
14260
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
14261
# instead of lib<name>.a to let people know that these are not
14262
# typical AIX shared libraries.
14263
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14265
# We preserve .a as extension for shared libraries through AIX4.2
14266
# and later when we are not doing run time linking.
14267
library_names_spec='${libname}${release}.a $libname.a'
14268
soname_spec='${libname}${release}${shared_ext}$major'
14270
shlibpath_var=LIBPATH
14275
library_names_spec='$libname.ixlibrary $libname.a'
14276
# Create ${libname}_ixlibrary.a entries in /sys/libs.
14277
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'
14281
library_names_spec='${libname}${shared_ext}'
14282
dynamic_linker="$host_os ld.so"
14283
shlibpath_var=LIBRARY_PATH
14289
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14290
soname_spec='${libname}${release}${shared_ext}$major'
14291
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14292
shlibpath_var=LD_LIBRARY_PATH
14293
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14294
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14295
# the default ld.so.conf also contains /usr/contrib/lib and
14296
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14297
# libtool to hard-code these into programs
14300
cygwin* | mingw* | pw32*)
14301
version_type=windows
14306
case $GCC,$host_os in
14307
yes,cygwin* | yes,mingw* | yes,pw32*)
14308
library_names_spec='$libname.dll.a'
14309
# DLL is installed to $(libdir)/../bin by postinstall_cmds
14310
postinstall_cmds='base_file=`basename \${file}`~
14311
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14312
dldir=$destdir/`dirname \$dlpath`~
14313
test -d \$dldir || mkdir -p \$dldir~
14314
$install_prog $dir/$dlname \$dldir/$dlname~
14315
chmod a+x \$dldir/$dlname'
14316
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14317
dlpath=$dir/\$dldll~
14319
shlibpath_overrides_runpath=yes
14323
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
14324
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14325
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14328
# MinGW DLLs use traditional 'lib' prefix
14329
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14330
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14331
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14332
# It is most probably a Windows format PATH printed by
14333
# mingw gcc, but we are running on Cygwin. Gcc prints its search
14334
# path with ; separators, and with drive letters. We can handle the
14335
# drive letters (cygwin fileutils understands them), so leave them,
14336
# especially as we might pass files found there to a mingw objdump,
14337
# which wouldn't understand a cygwinified path. Ahh.
14338
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14340
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14344
# pw32 DLLs use 'pw' prefix rather than 'lib'
14345
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14351
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14354
dynamic_linker='Win32 ld.exe'
14355
# FIXME: first we should search . and the directory the executable is in
14359
darwin* | rhapsody*)
14360
dynamic_linker="$host_os dyld"
14361
version_type=darwin
14364
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14365
soname_spec='${libname}${release}${major}$shared_ext'
14366
shlibpath_overrides_runpath=yes
14367
shlibpath_var=DYLD_LIBRARY_PATH
14368
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14370
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14377
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14378
soname_spec='${libname}${release}${shared_ext}$major'
14379
shlibpath_var=LD_LIBRARY_PATH
14386
freebsd* | dragonfly*)
14387
# DragonFly does not have aout. When/if they implement a new
14388
# versioning mechanism, adjust this.
14389
if test -x /usr/bin/objformat; then
14390
objformat=`/usr/bin/objformat`
14393
freebsd[123]*) objformat=aout ;;
14394
*) objformat=elf ;;
14397
version_type=freebsd-$objformat
14398
case $version_type in
14400
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14405
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14409
shlibpath_var=LD_LIBRARY_PATH
14412
shlibpath_overrides_runpath=yes
14414
freebsd3.[01]* | freebsdelf3.[01]*)
14415
shlibpath_overrides_runpath=yes
14416
hardcode_into_libs=yes
14418
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14419
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14420
shlibpath_overrides_runpath=no
14421
hardcode_into_libs=yes
14423
*) # from 4.6 on, and DragonFly
14424
shlibpath_overrides_runpath=yes
14425
hardcode_into_libs=yes
14434
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14435
soname_spec='${libname}${release}${shared_ext}$major'
14436
shlibpath_var=LD_LIBRARY_PATH
14437
hardcode_into_libs=yes
14440
hpux9* | hpux10* | hpux11*)
14441
# Give a soname corresponding to the major version so that dld.sl refuses to
14442
# link against other versions.
14449
hardcode_into_libs=yes
14450
dynamic_linker="$host_os dld.so"
14451
shlibpath_var=LD_LIBRARY_PATH
14452
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14453
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14454
soname_spec='${libname}${release}${shared_ext}$major'
14455
if test "X$HPUX_IA64_MODE" = X32; then
14456
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14458
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14460
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14464
hardcode_into_libs=yes
14465
dynamic_linker="$host_os dld.sl"
14466
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14467
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14468
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14469
soname_spec='${libname}${release}${shared_ext}$major'
14470
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14471
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14475
dynamic_linker="$host_os dld.sl"
14476
shlibpath_var=SHLIB_PATH
14477
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14478
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14479
soname_spec='${libname}${release}${shared_ext}$major'
14482
# HP-UX runs *really* slowly unless shared libraries are mode 555.
14483
postinstall_cmds='chmod 555 $lib'
14490
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14491
soname_spec='${libname}${release}${shared_ext}$major'
14492
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14493
shlibpath_var=LD_LIBRARY_PATH
14494
shlibpath_overrides_runpath=no
14495
hardcode_into_libs=yes
14498
irix5* | irix6* | nonstopux*)
14500
nonstopux*) version_type=nonstopux ;;
14502
if test "$lt_cv_prog_gnu_ld" = yes; then
14510
soname_spec='${libname}${release}${shared_ext}$major'
14511
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14513
irix5* | nonstopux*)
14514
libsuff= shlibsuff=
14517
case $LD in # libtool.m4 will add one of these switches to LD
14518
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14519
libsuff= shlibsuff= libmagic=32-bit;;
14520
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14521
libsuff=32 shlibsuff=N32 libmagic=N32;;
14522
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14523
libsuff=64 shlibsuff=64 libmagic=64-bit;;
14524
*) libsuff= shlibsuff= libmagic=never-match;;
14528
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14529
shlibpath_overrides_runpath=no
14530
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14531
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14532
hardcode_into_libs=yes
14535
# No shared lib support for Linux oldld, aout, or coff.
14536
linux*oldld* | linux*aout* | linux*coff*)
14540
# This must be Linux ELF.
14541
linux* | k*bsd*-gnu)
14545
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14546
soname_spec='${libname}${release}${shared_ext}$major'
14547
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14548
shlibpath_var=LD_LIBRARY_PATH
14549
shlibpath_overrides_runpath=no
14550
# This implies no fast_install, which is unacceptable.
14551
# Some rework will be needed to allow for fast_install
14552
# before this can be enabled.
14553
hardcode_into_libs=yes
14555
# Append ld.so.conf contents to the search path
14556
if test -f /etc/ld.so.conf; then
14557
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' ' '`
14558
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14561
# We used to test for /lib/ld.so.1 and disable shared libraries on
14562
# powerpc, because MkLinux only supported shared libraries with the
14563
# GNU dynamic linker. Since this was broken with cross compilers,
14564
# most powerpc-linux boxes support dynamic linking these days and
14565
# people can always --disable-shared, the test was removed, and we
14566
# assume the GNU/Linux dynamic linker is in use.
14567
dynamic_linker='GNU/Linux ld.so'
14574
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14575
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14576
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14577
dynamic_linker='NetBSD (a.out) ld.so'
14579
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14580
soname_spec='${libname}${release}${shared_ext}$major'
14581
dynamic_linker='NetBSD ld.elf_so'
14583
shlibpath_var=LD_LIBRARY_PATH
14584
shlibpath_overrides_runpath=yes
14585
hardcode_into_libs=yes
14590
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14591
shlibpath_var=LD_LIBRARY_PATH
14592
shlibpath_overrides_runpath=yes
14599
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14600
soname_spec='${libname}${release}${shared_ext}$major'
14601
shlibpath_var=LD_LIBRARY_PATH
14602
shlibpath_overrides_runpath=yes
14607
sys_lib_dlsearch_path_spec="/usr/lib"
14609
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14611
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14612
*) need_version=no ;;
14614
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14615
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14616
shlibpath_var=LD_LIBRARY_PATH
14617
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14619
openbsd2.[89] | openbsd2.[89].*)
14620
shlibpath_overrides_runpath=no
14623
shlibpath_overrides_runpath=yes
14627
shlibpath_overrides_runpath=yes
14632
libname_spec='$name'
14635
library_names_spec='$libname${shared_ext} $libname.a'
14636
dynamic_linker='OS/2 ld.exe'
14637
shlibpath_var=LIBPATH
14640
osf3* | osf4* | osf5*)
14644
soname_spec='${libname}${release}${shared_ext}$major'
14645
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14646
shlibpath_var=LD_LIBRARY_PATH
14647
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14648
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14659
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14660
soname_spec='${libname}${release}${shared_ext}$major'
14661
shlibpath_var=LD_LIBRARY_PATH
14662
shlibpath_overrides_runpath=yes
14663
hardcode_into_libs=yes
14664
# ldd complains unless libraries are executable
14665
postinstall_cmds='chmod +x $lib'
14670
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14671
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14672
shlibpath_var=LD_LIBRARY_PATH
14673
shlibpath_overrides_runpath=yes
14674
if test "$with_gnu_ld" = yes; then
14682
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14683
soname_spec='${libname}${release}${shared_ext}$major'
14684
shlibpath_var=LD_LIBRARY_PATH
14685
case $host_vendor in
14687
shlibpath_overrides_runpath=no
14689
export_dynamic_flag_spec='${wl}-Blargedynsym'
14690
runpath_var=LD_RUN_PATH
14698
shlibpath_overrides_runpath=no
14699
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14705
if test -d /usr/nec ;then
14707
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14708
soname_spec='$libname${shared_ext}.$major'
14709
shlibpath_var=LD_LIBRARY_PATH
14713
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14714
version_type=freebsd-elf
14717
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14718
soname_spec='${libname}${release}${shared_ext}$major'
14719
shlibpath_var=LD_LIBRARY_PATH
14720
hardcode_into_libs=yes
14721
if test "$with_gnu_ld" = yes; then
14722
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14723
shlibpath_overrides_runpath=no
14725
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14726
shlibpath_overrides_runpath=yes
14729
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14733
sys_lib_dlsearch_path_spec='/usr/lib'
14738
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14739
soname_spec='${libname}${release}${shared_ext}$major'
14740
shlibpath_var=LD_LIBRARY_PATH
14747
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14748
echo "${ECHO_T}$dynamic_linker" >&6; }
14749
test "$dynamic_linker" = no && can_build_shared=no
14751
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14752
if test "$GCC" = yes; then
14753
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14756
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14757
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14758
hardcode_action_CXX=
14759
if test -n "$hardcode_libdir_flag_spec_CXX" || \
14760
test -n "$runpath_var_CXX" || \
14761
test "X$hardcode_automatic_CXX" = "Xyes" ; then
14763
# We can hardcode non-existant directories.
14764
if test "$hardcode_direct_CXX" != no &&
14765
# If the only mechanism to avoid hardcoding is shlibpath_var, we
14766
# have to relink, otherwise we might link with an installed library
14767
# when we should be linking with a yet-to-be-installed one
14768
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14769
test "$hardcode_minus_L_CXX" != no; then
14770
# Linking always hardcodes the temporary library directory.
14771
hardcode_action_CXX=relink
14773
# We can link without hardcoding, and we can hardcode nonexisting dirs.
14774
hardcode_action_CXX=immediate
14777
# We cannot hardcode anything, or else we can only hardcode existing
14779
hardcode_action_CXX=unsupported
14781
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14782
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14784
if test "$hardcode_action_CXX" = relink; then
14785
# Fast installation is not supported
14786
enable_fast_install=no
14787
elif test "$shlibpath_overrides_runpath" = yes ||
14788
test "$enable_shared" = no; then
14789
# Fast installation is not necessary
14790
enable_fast_install=needless
14794
# The else clause should only fire when bootstrapping the
14795
# libtool distribution, otherwise you forgot to ship ltmain.sh
14796
# with your package, and you will get complaints that there are
14797
# no rules to generate ltmain.sh.
14798
if test -f "$ltmain"; then
14799
# See if we are running on zsh, and set the options which allow our commands through
14800
# without removal of \ escapes.
14801
if test -n "${ZSH_VERSION+set}" ; then
14802
setopt NO_GLOB_SUBST
14804
# Now quote all the things that may contain metacharacters while being
14805
# careful not to overquote the AC_SUBSTed values. We take copies of the
14806
# variables and quote the copies for generation of the libtool script.
14807
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14809
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14810
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14811
deplibs_check_method reload_flag reload_cmds need_locks \
14812
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14813
lt_cv_sys_global_symbol_to_c_name_address \
14814
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14815
old_postinstall_cmds old_postuninstall_cmds \
14819
lt_prog_compiler_wl_CXX \
14820
lt_prog_compiler_pic_CXX \
14821
lt_prog_compiler_static_CXX \
14822
lt_prog_compiler_no_builtin_flag_CXX \
14823
export_dynamic_flag_spec_CXX \
14824
thread_safe_flag_spec_CXX \
14825
whole_archive_flag_spec_CXX \
14826
enable_shared_with_static_runtimes_CXX \
14827
old_archive_cmds_CXX \
14828
old_archive_from_new_cmds_CXX \
14829
predep_objects_CXX \
14830
postdep_objects_CXX \
14833
compiler_lib_search_path_CXX \
14835
archive_expsym_cmds_CXX \
14836
postinstall_cmds_CXX \
14837
postuninstall_cmds_CXX \
14838
old_archive_from_expsyms_cmds_CXX \
14839
allow_undefined_flag_CXX \
14840
no_undefined_flag_CXX \
14841
export_symbols_cmds_CXX \
14842
hardcode_libdir_flag_spec_CXX \
14843
hardcode_libdir_flag_spec_ld_CXX \
14844
hardcode_libdir_separator_CXX \
14845
hardcode_automatic_CXX \
14847
module_expsym_cmds_CXX \
14848
lt_cv_prog_compiler_c_o_CXX \
14849
fix_srcfile_path_CXX \
14850
exclude_expsyms_CXX \
14851
include_expsyms_CXX; do
14854
old_archive_cmds_CXX | \
14855
old_archive_from_new_cmds_CXX | \
14856
archive_cmds_CXX | \
14857
archive_expsym_cmds_CXX | \
14858
module_cmds_CXX | \
14859
module_expsym_cmds_CXX | \
14860
old_archive_from_expsyms_cmds_CXX | \
14861
export_symbols_cmds_CXX | \
14862
extract_expsyms_cmds | reload_cmds | finish_cmds | \
14863
postinstall_cmds | postuninstall_cmds | \
14864
old_postinstall_cmds | old_postuninstall_cmds | \
14865
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14866
# Double-quote double-evaled strings.
14867
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14870
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14876
*'\$0 --fallback-echo"')
14877
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14883
cat <<__EOF__ >> "$cfgfile"
14884
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14886
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14888
# Shell to use when invoking shell scripts.
14891
# Whether or not to build shared libraries.
14892
build_libtool_libs=$enable_shared
14894
# Whether or not to build static libraries.
14895
build_old_libs=$enable_static
14897
# Whether or not to add -lc for building shared libraries.
14898
build_libtool_need_lc=$archive_cmds_need_lc_CXX
14900
# Whether or not to disallow shared libs when runtime libs are static
14901
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14903
# Whether or not to optimize for fast installation.
14904
fast_install=$enable_fast_install
14907
host_alias=$host_alias
14911
# The build system.
14912
build_alias=$build_alias
14916
# An echo program that does not interpret backslashes.
14921
AR_FLAGS=$lt_AR_FLAGS
14926
# LTCC compiler flags.
14927
LTCFLAGS=$lt_LTCFLAGS
14929
# A language-specific compiler.
14930
CC=$lt_compiler_CXX
14932
# Is the compiler the GNU C compiler?
14938
# The linker used to build libraries.
14941
# Whether we need hard or soft links.
14944
# A BSD-compatible nm program.
14947
# A symbol stripping program
14950
# Used to examine libraries when file_magic_cmd begins "file"
14951
MAGIC_CMD=$MAGIC_CMD
14953
# Used on cygwin: DLL creation program.
14956
# Used on cygwin: object dumper.
14959
# Used on cygwin: assembler.
14962
# The name of the directory that contains temporary libtool files.
14965
# How to create reloadable object files.
14966
reload_flag=$lt_reload_flag
14967
reload_cmds=$lt_reload_cmds
14969
# How to pass a linker flag through the compiler.
14970
wl=$lt_lt_prog_compiler_wl_CXX
14972
# Object file suffix (normally "o").
14973
objext="$ac_objext"
14975
# Old archive suffix (normally "a").
14978
# Shared library suffix (normally ".so").
14979
shrext_cmds='$shrext_cmds'
14981
# Executable file suffix (normally "").
14984
# Additional compiler flags for building library objects.
14985
pic_flag=$lt_lt_prog_compiler_pic_CXX
14988
# What is the maximum length of a command?
14989
max_cmd_len=$lt_cv_sys_max_cmd_len
14991
# Does compiler simultaneously support -c and -o options?
14992
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14994
# Must we lock files when doing compilation?
14995
need_locks=$lt_need_locks
14997
# Do we need the lib prefix for modules?
14998
need_lib_prefix=$need_lib_prefix
15000
# Do we need a version for libraries?
15001
need_version=$need_version
15003
# Whether dlopen is supported.
15004
dlopen_support=$enable_dlopen
15006
# Whether dlopen of programs is supported.
15007
dlopen_self=$enable_dlopen_self
15009
# Whether dlopen of statically linked programs is supported.
15010
dlopen_self_static=$enable_dlopen_self_static
15012
# Compiler flag to prevent dynamic linking.
15013
link_static_flag=$lt_lt_prog_compiler_static_CXX
15015
# Compiler flag to turn off builtin functions.
15016
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15018
# Compiler flag to allow reflexive dlopens.
15019
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15021
# Compiler flag to generate shared objects directly from archives.
15022
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15024
# Compiler flag to generate thread-safe objects.
15025
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15027
# Library versioning type.
15028
version_type=$version_type
15030
# Format of library name prefix.
15031
libname_spec=$lt_libname_spec
15033
# List of archive names. First name is the real one, the rest are links.
15034
# The last name is the one that the linker finds with -lNAME.
15035
library_names_spec=$lt_library_names_spec
15037
# The coded name of the library, if different from the real name.
15038
soname_spec=$lt_soname_spec
15040
# Commands used to build and install an old-style archive.
15042
old_archive_cmds=$lt_old_archive_cmds_CXX
15043
old_postinstall_cmds=$lt_old_postinstall_cmds
15044
old_postuninstall_cmds=$lt_old_postuninstall_cmds
15046
# Create an old-style archive from a shared archive.
15047
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15049
# Create a temporary old-style archive to link instead of a shared archive.
15050
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15052
# Commands used to build and install a shared archive.
15053
archive_cmds=$lt_archive_cmds_CXX
15054
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15055
postinstall_cmds=$lt_postinstall_cmds
15056
postuninstall_cmds=$lt_postuninstall_cmds
15058
# Commands used to build a loadable module (assumed same as above if empty)
15059
module_cmds=$lt_module_cmds_CXX
15060
module_expsym_cmds=$lt_module_expsym_cmds_CXX
15062
# Commands to strip libraries.
15063
old_striplib=$lt_old_striplib
15064
striplib=$lt_striplib
15066
# Dependencies to place before the objects being linked to create a
15068
predep_objects=$lt_predep_objects_CXX
15070
# Dependencies to place after the objects being linked to create a
15072
postdep_objects=$lt_postdep_objects_CXX
15074
# Dependencies to place before the objects being linked to create a
15076
predeps=$lt_predeps_CXX
15078
# Dependencies to place after the objects being linked to create a
15080
postdeps=$lt_postdeps_CXX
15082
# The library search path used internally by the compiler when linking
15083
# a shared library.
15084
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15086
# Method to check whether dependent libraries are shared objects.
15087
deplibs_check_method=$lt_deplibs_check_method
15089
# Command to use when deplibs_check_method == file_magic.
15090
file_magic_cmd=$lt_file_magic_cmd
15092
# Flag that allows shared libraries with undefined symbols to be built.
15093
allow_undefined_flag=$lt_allow_undefined_flag_CXX
15095
# Flag that forces no undefined symbols.
15096
no_undefined_flag=$lt_no_undefined_flag_CXX
15098
# Commands used to finish a libtool library installation in a directory.
15099
finish_cmds=$lt_finish_cmds
15101
# Same as above, but a single script fragment to be evaled but not shown.
15102
finish_eval=$lt_finish_eval
15104
# Take the output of nm and produce a listing of raw symbols and C names.
15105
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15107
# Transform the output of nm in a proper C declaration
15108
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15110
# Transform the output of nm in a C name address pair
15111
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15113
# This is the shared library runtime path variable.
15114
runpath_var=$runpath_var
15116
# This is the shared library path variable.
15117
shlibpath_var=$shlibpath_var
15119
# Is shlibpath searched before the hard-coded library search path?
15120
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15122
# How to hardcode a shared library path into an executable.
15123
hardcode_action=$hardcode_action_CXX
15125
# Whether we should hardcode library paths into libraries.
15126
hardcode_into_libs=$hardcode_into_libs
15128
# Flag to hardcode \$libdir into a binary during linking.
15129
# This must work even if \$libdir does not exist.
15130
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15132
# If ld is used when linking, flag to hardcode \$libdir into
15133
# a binary during linking. This must work even if \$libdir does
15135
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15137
# Whether we need a single -rpath flag with a separated argument.
15138
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15140
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15141
# resulting binary.
15142
hardcode_direct=$hardcode_direct_CXX
15144
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15145
# resulting binary.
15146
hardcode_minus_L=$hardcode_minus_L_CXX
15148
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15149
# the resulting binary.
15150
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15152
# Set to yes if building a shared library automatically hardcodes DIR into the library
15153
# and all subsequent libraries and executables linked against it.
15154
hardcode_automatic=$hardcode_automatic_CXX
15156
# Variables whose values should be saved in libtool wrapper scripts and
15157
# restored at relink time.
15158
variables_saved_for_relink="$variables_saved_for_relink"
15160
# Whether libtool must link a program against all its dependency libraries.
15161
link_all_deplibs=$link_all_deplibs_CXX
15163
# Compile-time system search path for libraries
15164
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15166
# Run-time system search path for libraries
15167
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15169
# Fix the shell variable \$srcfile for the compiler.
15170
fix_srcfile_path=$lt_fix_srcfile_path
15172
# Set to yes if exported symbols are required.
15173
always_export_symbols=$always_export_symbols_CXX
15175
# The commands to list exported symbols.
15176
export_symbols_cmds=$lt_export_symbols_cmds_CXX
15178
# The commands to extract the exported symbol list from a shared archive.
15179
extract_expsyms_cmds=$lt_extract_expsyms_cmds
15181
# Symbols that should not be listed in the preloaded symbols.
15182
exclude_expsyms=$lt_exclude_expsyms_CXX
15184
# Symbols that must always be exported.
15185
include_expsyms=$lt_include_expsyms_CXX
15187
# ### END LIBTOOL TAG CONFIG: $tagname
15193
# If there is no Makefile yet, we rely on a make rule to execute
15194
# `config.status --recheck' to rerun these tests and create the
15195
# libtool script then.
15196
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15197
if test -f "$ltmain_in"; then
15198
test -f Makefile && make "$ltmain"
15204
ac_cpp='$CPP $CPPFLAGS'
15205
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15206
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15207
ac_compiler_gnu=$ac_cv_c_compiler_gnu
15213
with_gnu_ldcxx=$with_gnu_ld
15214
with_gnu_ld=$lt_save_with_gnu_ld
15215
lt_cv_path_LDCXX=$lt_cv_path_LD
15216
lt_cv_path_LD=$lt_save_path_LD
15217
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15218
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15226
if test -n "$F77" && test "X$F77" != "Xno"; then
15229
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15230
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15231
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15234
archive_cmds_need_lc_F77=no
15235
allow_undefined_flag_F77=
15236
always_export_symbols_F77=no
15237
archive_expsym_cmds_F77=
15238
export_dynamic_flag_spec_F77=
15239
hardcode_direct_F77=no
15240
hardcode_libdir_flag_spec_F77=
15241
hardcode_libdir_flag_spec_ld_F77=
15242
hardcode_libdir_separator_F77=
15243
hardcode_minus_L_F77=no
15244
hardcode_automatic_F77=no
15246
module_expsym_cmds_F77=
15247
link_all_deplibs_F77=unknown
15248
old_archive_cmds_F77=$old_archive_cmds
15249
no_undefined_flag_F77=
15250
whole_archive_flag_spec_F77=
15251
enable_shared_with_static_runtimes_F77=no
15253
# Source file extension for f77 test sources.
15256
# Object file extension for compiled f77 test sources.
15260
# Code to be used in simple compile tests
15261
lt_simple_compile_test_code="\
15267
# Code to be used in simple link tests
15268
lt_simple_link_test_code="\
15273
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15275
# If no C compiler was specified, use CC.
15278
# If no C compiler flags were specified, use CFLAGS.
15279
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15281
# Allow CC to be a program name with arguments.
15285
# save warnings/boilerplate of simple test code
15286
ac_outfile=conftest.$ac_objext
15287
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15288
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15289
_lt_compiler_boilerplate=`cat conftest.err`
15292
ac_outfile=conftest.$ac_objext
15293
echo "$lt_simple_link_test_code" >conftest.$ac_ext
15294
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15295
_lt_linker_boilerplate=`cat conftest.err`
15299
# Allow CC to be a program name with arguments.
15304
for cc_temp in $compiler""; do
15306
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15307
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15312
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15315
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15316
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
15317
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
15318
echo "${ECHO_T}$can_build_shared" >&6; }
15320
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15321
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
15322
test "$can_build_shared" = "no" && enable_shared=no
15324
# On AIX, shared libraries and static libraries use the same namespace, and
15325
# are all built from PIC.
15328
test "$enable_shared" = yes && enable_static=no
15329
if test -n "$RANLIB"; then
15330
archive_cmds="$archive_cmds~\$RANLIB \$lib"
15331
postinstall_cmds='$RANLIB $lib'
15335
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15336
test "$enable_shared" = yes && enable_static=no
15340
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
15341
echo "${ECHO_T}$enable_shared" >&6; }
15343
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15344
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
15345
# Make sure either enable_shared or enable_static is yes.
15346
test "$enable_shared" = yes || enable_static=yes
15347
{ echo "$as_me:$LINENO: result: $enable_static" >&5
15348
echo "${ECHO_T}$enable_static" >&6; }
15353
lt_prog_compiler_wl_F77=
15354
lt_prog_compiler_pic_F77=
15355
lt_prog_compiler_static_F77=
15357
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15358
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15360
if test "$GCC" = yes; then
15361
lt_prog_compiler_wl_F77='-Wl,'
15362
lt_prog_compiler_static_F77='-static'
15366
# All AIX code is PIC.
15367
if test "$host_cpu" = ia64; then
15368
# AIX 5 now supports IA64 processor
15369
lt_prog_compiler_static_F77='-Bstatic'
15374
# FIXME: we need at least 68020 code to build shared libraries, but
15375
# adding the `-m68020' flag to GCC prevents building anything better,
15377
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15380
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15381
# PIC is the default for these OSes.
15384
mingw* | cygwin* | pw32* | os2*)
15385
# This hack is so that the source file can tell whether it is being
15386
# built for inclusion in a dll (and should export symbols for example).
15387
# Although the cygwin gcc ignores -fPIC, still need this for old-style
15388
# (--disable-auto-import) libraries
15389
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15392
darwin* | rhapsody*)
15393
# PIC is the default on this platform
15394
# Common symbols not allowed in MH_DYLIB files
15395
lt_prog_compiler_pic_F77='-fno-common'
15399
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
15400
# Instead, we relocate shared libraries at runtime.
15404
# Just because we use GCC doesn't mean we suddenly get shared libraries
15405
# on systems that don't support them.
15406
lt_prog_compiler_can_build_shared_F77=no
15411
if test -d /usr/nec; then
15412
lt_prog_compiler_pic_F77=-Kconform_pic
15417
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15418
# not for PA HP-UX.
15424
lt_prog_compiler_pic_F77='-fPIC'
15430
lt_prog_compiler_pic_F77='-fPIC'
15434
# PORTME Check for flag to pass linker flags through the system compiler.
15437
lt_prog_compiler_wl_F77='-Wl,'
15438
if test "$host_cpu" = ia64; then
15439
# AIX 5 now supports IA64 processor
15440
lt_prog_compiler_static_F77='-Bstatic'
15442
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15446
# PIC is the default on this platform
15447
# Common symbols not allowed in MH_DYLIB files
15448
case $cc_basename in
15450
lt_prog_compiler_pic_F77='-qnocommon'
15451
lt_prog_compiler_wl_F77='-Wl,'
15456
mingw* | cygwin* | pw32* | os2*)
15457
# This hack is so that the source file can tell whether it is being
15458
# built for inclusion in a dll (and should export symbols for example).
15459
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15462
hpux9* | hpux10* | hpux11*)
15463
lt_prog_compiler_wl_F77='-Wl,'
15464
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15465
# not for PA HP-UX.
15471
lt_prog_compiler_pic_F77='+Z'
15474
# Is there a better lt_prog_compiler_static that works with the bundled CC?
15475
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15478
irix5* | irix6* | nonstopux*)
15479
lt_prog_compiler_wl_F77='-Wl,'
15480
# PIC (with -KPIC) is the default.
15481
lt_prog_compiler_static_F77='-non_shared'
15485
lt_prog_compiler_pic_F77='-KPIC'
15486
lt_prog_compiler_static_F77='-Bstatic'
15489
linux* | k*bsd*-gnu)
15490
case $cc_basename in
15492
lt_prog_compiler_wl_F77='-Wl,'
15493
lt_prog_compiler_pic_F77='-KPIC'
15494
lt_prog_compiler_static_F77='-static'
15496
pgcc* | pgf77* | pgf90* | pgf95*)
15497
# Portland Group compilers (*not* the Pentium gcc compiler,
15498
# which looks to be a dead project)
15499
lt_prog_compiler_wl_F77='-Wl,'
15500
lt_prog_compiler_pic_F77='-fpic'
15501
lt_prog_compiler_static_F77='-Bstatic'
15504
lt_prog_compiler_wl_F77='-Wl,'
15505
# All Alpha code is PIC.
15506
lt_prog_compiler_static_F77='-non_shared'
15509
case `$CC -V 2>&1 | sed 5q` in
15512
lt_prog_compiler_pic_F77='-KPIC'
15513
lt_prog_compiler_static_F77='-Bstatic'
15514
lt_prog_compiler_wl_F77='-Wl,'
15517
# Sun Fortran 8.3 passes all unrecognized flags to the linker
15518
lt_prog_compiler_pic_F77='-KPIC'
15519
lt_prog_compiler_static_F77='-Bstatic'
15520
lt_prog_compiler_wl_F77=''
15527
osf3* | osf4* | osf5*)
15528
lt_prog_compiler_wl_F77='-Wl,'
15529
# All OSF/1 code is PIC.
15530
lt_prog_compiler_static_F77='-non_shared'
15534
lt_prog_compiler_static_F77='-non_shared'
15538
lt_prog_compiler_pic_F77='-KPIC'
15539
lt_prog_compiler_static_F77='-Bstatic'
15540
case $cc_basename in
15541
f77* | f90* | f95*)
15542
lt_prog_compiler_wl_F77='-Qoption ld ';;
15544
lt_prog_compiler_wl_F77='-Wl,';;
15549
lt_prog_compiler_wl_F77='-Qoption ld '
15550
lt_prog_compiler_pic_F77='-PIC'
15551
lt_prog_compiler_static_F77='-Bstatic'
15554
sysv4 | sysv4.2uw2* | sysv4.3*)
15555
lt_prog_compiler_wl_F77='-Wl,'
15556
lt_prog_compiler_pic_F77='-KPIC'
15557
lt_prog_compiler_static_F77='-Bstatic'
15561
if test -d /usr/nec ;then
15562
lt_prog_compiler_pic_F77='-Kconform_pic'
15563
lt_prog_compiler_static_F77='-Bstatic'
15567
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15568
lt_prog_compiler_wl_F77='-Wl,'
15569
lt_prog_compiler_pic_F77='-KPIC'
15570
lt_prog_compiler_static_F77='-Bstatic'
15574
lt_prog_compiler_wl_F77='-Wl,'
15575
lt_prog_compiler_can_build_shared_F77=no
15579
lt_prog_compiler_pic_F77='-pic'
15580
lt_prog_compiler_static_F77='-Bstatic'
15584
lt_prog_compiler_can_build_shared_F77=no
15589
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15590
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15593
# Check to make sure the PIC flag actually works.
15595
if test -n "$lt_prog_compiler_pic_F77"; then
15597
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15598
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15599
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15600
echo $ECHO_N "(cached) $ECHO_C" >&6
15602
lt_prog_compiler_pic_works_F77=no
15603
ac_outfile=conftest.$ac_objext
15604
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15605
lt_compiler_flag="$lt_prog_compiler_pic_F77"
15606
# Insert the option either (1) after the last *FLAGS variable, or
15607
# (2) before a word containing "conftest.", or (3) at the end.
15608
# Note that $ac_compile itself does not contain backslashes and begins
15609
# with a dollar sign (not a hyphen), so the echo should work correctly.
15610
# The option is referenced via a variable to avoid confusing sed.
15611
lt_compile=`echo "$ac_compile" | $SED \
15612
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15613
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15614
-e 's:$: $lt_compiler_flag:'`
15615
(eval echo "\"\$as_me:15615: $lt_compile\"" >&5)
15616
(eval "$lt_compile" 2>conftest.err)
15618
cat conftest.err >&5
15619
echo "$as_me:15619: \$? = $ac_status" >&5
15620
if (exit $ac_status) && test -s "$ac_outfile"; then
15621
# The compiler can only warn and ignore the option if not recognized
15622
# So say no if there are warnings other than the usual output.
15623
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15624
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15625
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15626
lt_prog_compiler_pic_works_F77=yes
15632
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15633
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
15635
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15636
case $lt_prog_compiler_pic_F77 in
15638
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15641
lt_prog_compiler_pic_F77=
15642
lt_prog_compiler_can_build_shared_F77=no
15647
# For platforms which do not support PIC, -DPIC is meaningless:
15649
lt_prog_compiler_pic_F77=
15652
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15657
# Check to make sure the static flag actually works.
15659
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15660
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15661
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15662
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15663
echo $ECHO_N "(cached) $ECHO_C" >&6
15665
lt_prog_compiler_static_works_F77=no
15666
save_LDFLAGS="$LDFLAGS"
15667
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15668
echo "$lt_simple_link_test_code" > conftest.$ac_ext
15669
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15670
# The linker can only warn and ignore the option if not recognized
15671
# So say no if there are warnings
15672
if test -s conftest.err; then
15673
# Append any errors to the config.log.
15674
cat conftest.err 1>&5
15675
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15676
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15677
if diff conftest.exp conftest.er2 >/dev/null; then
15678
lt_prog_compiler_static_works_F77=yes
15681
lt_prog_compiler_static_works_F77=yes
15685
LDFLAGS="$save_LDFLAGS"
15688
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15689
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
15691
if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15694
lt_prog_compiler_static_F77=
15698
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15699
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15700
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15701
echo $ECHO_N "(cached) $ECHO_C" >&6
15703
lt_cv_prog_compiler_c_o_F77=no
15704
$rm -r conftest 2>/dev/null
15708
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15710
lt_compiler_flag="-o out/conftest2.$ac_objext"
15711
# Insert the option either (1) after the last *FLAGS variable, or
15712
# (2) before a word containing "conftest.", or (3) at the end.
15713
# Note that $ac_compile itself does not contain backslashes and begins
15714
# with a dollar sign (not a hyphen), so the echo should work correctly.
15715
lt_compile=`echo "$ac_compile" | $SED \
15716
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15717
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15718
-e 's:$: $lt_compiler_flag:'`
15719
(eval echo "\"\$as_me:15719: $lt_compile\"" >&5)
15720
(eval "$lt_compile" 2>out/conftest.err)
15722
cat out/conftest.err >&5
15723
echo "$as_me:15723: \$? = $ac_status" >&5
15724
if (exit $ac_status) && test -s out/conftest2.$ac_objext
15726
# The compiler can only warn and ignore the option if not recognized
15727
# So say no if there are warnings
15728
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15729
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15730
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15731
lt_cv_prog_compiler_c_o_F77=yes
15736
# SGI C++ compiler will create directory out/ii_files/ for
15737
# template instantiation
15738
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15739
$rm out/* && rmdir out
15745
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15746
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15749
hard_links="nottested"
15750
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15751
# do not overwrite the value of need_locks provided by the user
15752
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15753
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15756
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15758
ln conftest.a conftest.b 2>&5 || hard_links=no
15759
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15760
{ echo "$as_me:$LINENO: result: $hard_links" >&5
15761
echo "${ECHO_T}$hard_links" >&6; }
15762
if test "$hard_links" = no; then
15763
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15764
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15771
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15772
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15775
allow_undefined_flag_F77=
15776
enable_shared_with_static_runtimes_F77=no
15778
archive_expsym_cmds_F77=
15779
old_archive_From_new_cmds_F77=
15780
old_archive_from_expsyms_cmds_F77=
15781
export_dynamic_flag_spec_F77=
15782
whole_archive_flag_spec_F77=
15783
thread_safe_flag_spec_F77=
15784
hardcode_libdir_flag_spec_F77=
15785
hardcode_libdir_flag_spec_ld_F77=
15786
hardcode_libdir_separator_F77=
15787
hardcode_direct_F77=no
15788
hardcode_minus_L_F77=no
15789
hardcode_shlibpath_var_F77=unsupported
15790
link_all_deplibs_F77=unknown
15791
hardcode_automatic_F77=no
15793
module_expsym_cmds_F77=
15794
always_export_symbols_F77=no
15795
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15796
# include_expsyms should be a list of space-separated symbols to be *always*
15797
# included in the symbol list
15798
include_expsyms_F77=
15799
# exclude_expsyms can be an extended regexp of symbols to exclude
15800
# it will be wrapped by ` (' and `)$', so one must not match beginning or
15801
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15802
# as well as any symbol that contains `d'.
15803
exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15804
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15805
# platforms (ab)use it in PIC code, but their linkers get confused if
15806
# the symbol is explicitly referenced. Since portable code cannot
15807
# rely on this symbol name, it's probably fine to never include it in
15808
# preloaded symbol tables.
15809
extract_expsyms_cmds=
15810
# Just being paranoid about ensuring that cc_basename is set.
15811
for cc_temp in $compiler""; do
15813
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15814
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15819
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15822
cygwin* | mingw* | pw32*)
15823
# FIXME: the MSVC++ port hasn't been tested in a loooong time
15824
# When not using gcc, we currently assume that we are using
15825
# Microsoft Visual C++.
15826
if test "$GCC" != yes; then
15831
# we just hope/assume this is gcc and not c89 (= MSVC++)
15840
if test "$with_gnu_ld" = yes; then
15841
# If archive_cmds runs LD, not CC, wlarc should be empty
15844
# Set some defaults for GNU ld with shared library support. These
15845
# are reset later if shared libraries are not supported. Putting them
15846
# here allows them to be overridden if necessary.
15847
runpath_var=LD_RUN_PATH
15848
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15849
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15850
# ancient GNU ld didn't support --whole-archive et. al.
15851
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15852
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15854
whole_archive_flag_spec_F77=
15856
supports_anon_versioning=no
15857
case `$LD -v 2>/dev/null` in
15858
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15859
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15860
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15861
*\ 2.11.*) ;; # other 2.11 versions
15862
*) supports_anon_versioning=yes ;;
15865
# See if GNU ld supports shared libraries.
15867
aix3* | aix4* | aix5*)
15868
# On AIX/PPC, the GNU linker is very broken
15869
if test "$host_cpu" != ia64; then
15873
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15874
*** to be unable to reliably create shared libraries on AIX.
15875
*** Therefore, libtool is disabling shared libraries support. If you
15876
*** really care for shared libraries, you may want to modify your PATH
15877
*** so that a non-GNU linker is found, and then restart.
15884
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)'
15885
hardcode_libdir_flag_spec_F77='-L$libdir'
15886
hardcode_minus_L_F77=yes
15888
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15889
# that the semantics of dynamic libraries on AmigaOS, at least up
15890
# to version 4, is to share data among multiple programs linked
15891
# with the same dynamic library. Since this doesn't match the
15892
# behavior of shared libraries on other platforms, we can't use
15898
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15899
allow_undefined_flag_F77=unsupported
15900
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15901
# support --undefined. This deserves some investigation. FIXME
15902
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15908
cygwin* | mingw* | pw32*)
15909
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15910
# as there is no search path for DLLs.
15911
hardcode_libdir_flag_spec_F77='-L$libdir'
15912
allow_undefined_flag_F77=unsupported
15913
always_export_symbols_F77=no
15914
enable_shared_with_static_runtimes_F77=yes
15915
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15917
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15918
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15919
# If the export-symbols file already is a .def file (1st line
15920
# is EXPORTS), use it as is; otherwise, prepend...
15921
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15922
cp $export_symbols $output_objdir/$soname.def;
15924
echo EXPORTS > $output_objdir/$soname.def;
15925
cat $export_symbols >> $output_objdir/$soname.def;
15927
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15934
hardcode_direct_F77=no
15935
hardcode_shlibpath_var_F77=no
15936
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15937
export_dynamic_flag_spec_F77='${wl}-E'
15938
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15939
# Instead, shared libraries are loaded at an image base (0x10000000 by
15940
# default) and relocated if they conflict, which is a slow very memory
15941
# consuming and fragmenting process. To avoid this, we pick a random,
15942
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15943
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
15944
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'
15945
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'
15948
gnu* | linux* | k*bsd*-gnu)
15949
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15951
case $cc_basename,$host_cpu in
15952
pgcc*) # Portland Group C compiler
15953
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'
15954
tmp_addflag=' $pic_flag'
15956
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15957
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'
15958
tmp_addflag=' $pic_flag -Mnomain' ;;
15959
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15960
tmp_addflag=' -i_dynamic' ;;
15961
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15962
tmp_addflag=' -i_dynamic -nofor_main' ;;
15963
ifc* | ifort*) # Intel Fortran compiler
15964
tmp_addflag=' -nofor_main' ;;
15966
case `$CC -V 2>&1 | sed 5q` in
15967
*Sun\ C*) # Sun C 5.9
15968
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'
15969
tmp_sharedflag='-G' ;;
15970
*Sun\ F*) # Sun Fortran 8.3
15971
tmp_sharedflag='-G' ;;
15973
tmp_sharedflag='-shared' ;;
15975
archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15977
if test $supports_anon_versioning = yes; then
15978
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15979
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15980
$echo "local: *; };" >> $output_objdir/$libname.ver~
15981
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15989
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15990
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15993
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15994
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15999
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16003
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16004
*** create shared libraries on Solaris systems. Therefore, libtool
16005
*** is disabling shared libraries support. We urge you to upgrade GNU
16006
*** binutils to release 2.9.1 or newer. Another option is to modify
16007
*** your PATH or compiler configuration so that the native linker is
16008
*** used, and then restart.
16011
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16012
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16013
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16019
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16020
case `$LD -v 2>&1` in
16021
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16025
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16026
*** reliably create shared libraries on SCO systems. Therefore, libtool
16027
*** is disabling shared libraries support. We urge you to upgrade GNU
16028
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16029
*** your PATH or compiler configuration so that the native linker is
16030
*** used, and then restart.
16035
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16036
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16037
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16038
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16047
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16049
hardcode_direct_F77=yes
16050
hardcode_shlibpath_var_F77=no
16054
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16055
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16056
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16063
if test "$ld_shlibs_F77" = no; then
16065
hardcode_libdir_flag_spec_F77=
16066
export_dynamic_flag_spec_F77=
16067
whole_archive_flag_spec_F77=
16070
# PORTME fill in a description of your system's linker (not GNU ld)
16073
allow_undefined_flag_F77=unsupported
16074
always_export_symbols_F77=yes
16075
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'
16076
# Note: this linker hardcodes the directories in LIBPATH if there
16077
# are no directories specified by -L.
16078
hardcode_minus_L_F77=yes
16079
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16080
# Neither direct hardcoding nor static linking is supported with a
16082
hardcode_direct_F77=unsupported
16087
if test "$host_cpu" = ia64; then
16088
# On IA64, the linker does run time linking by default, so we don't
16089
# have to do anything special.
16090
aix_use_runtimelinking=no
16091
exp_sym_flag='-Bexport'
16094
# If we're using GNU nm, then we don't want the "-C" option.
16095
# -C means demangle to AIX nm, but means don't demangle with GNU nm
16096
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16097
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'
16099
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'
16101
aix_use_runtimelinking=no
16103
# Test if we are trying to use run time linking or normal
16104
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16105
# need to do runtime linking.
16106
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16107
for ld_flag in $LDFLAGS; do
16108
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16109
aix_use_runtimelinking=yes
16116
exp_sym_flag='-bexport'
16117
no_entry_flag='-bnoentry'
16120
# When large executables or shared objects are built, AIX ld can
16121
# have problems creating the table of contents. If linking a library
16122
# or program results in "error TOC overflow" add -mminimal-toc to
16123
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16124
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16126
archive_cmds_F77=''
16127
hardcode_direct_F77=yes
16128
hardcode_libdir_separator_F77=':'
16129
link_all_deplibs_F77=yes
16131
if test "$GCC" = yes; then
16132
case $host_os in aix4.[012]|aix4.[012].*)
16133
# We only want to do this on AIX 4.2 and lower, the check
16134
# below for broken collect2 doesn't work under 4.3+
16135
collect2name=`${CC} -print-prog-name=collect2`
16136
if test -f "$collect2name" && \
16137
strings "$collect2name" | grep resolve_lib_name >/dev/null
16139
# We have reworked collect2
16142
# We have old collect2
16143
hardcode_direct_F77=unsupported
16144
# It fails to find uninstalled libraries when the uninstalled
16145
# path is not listed in the libpath. Setting hardcode_minus_L
16146
# to unsupported forces relinking
16147
hardcode_minus_L_F77=yes
16148
hardcode_libdir_flag_spec_F77='-L$libdir'
16149
hardcode_libdir_separator_F77=
16153
shared_flag='-shared'
16154
if test "$aix_use_runtimelinking" = yes; then
16155
shared_flag="$shared_flag "'${wl}-G'
16159
if test "$host_cpu" = ia64; then
16160
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16161
# chokes on -Wl,-G. The following line is correct:
16164
if test "$aix_use_runtimelinking" = yes; then
16165
shared_flag='${wl}-G'
16167
shared_flag='${wl}-bM:SRE'
16172
# It seems that -bexpall does not export symbols beginning with
16173
# underscore (_), so it is better to generate a list of symbols to export.
16174
always_export_symbols_F77=yes
16175
if test "$aix_use_runtimelinking" = yes; then
16176
# Warning - without using the other runtime loading flags (-brtl),
16177
# -berok will link without error, but may produce a broken library.
16178
allow_undefined_flag_F77='-berok'
16179
# Determine the default libpath from the value encoded in an empty executable.
16180
cat >conftest.$ac_ext <<_ACEOF
16185
rm -f conftest.$ac_objext conftest$ac_exeext
16186
if { (ac_try="$ac_link"
16187
case "(($ac_try" in
16188
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16189
*) ac_try_echo=$ac_try;;
16191
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16192
(eval "$ac_link") 2>conftest.er1
16194
grep -v '^ *+' conftest.er1 >conftest.err
16196
cat conftest.err >&5
16197
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16198
(exit $ac_status); } && {
16199
test -z "$ac_f77_werror_flag" ||
16200
test ! -s conftest.err
16201
} && test -s conftest$ac_exeext &&
16202
$as_test_x conftest$ac_exeext; then
16204
lt_aix_libpath_sed='
16205
/Import File Strings/,/^$/ {
16211
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16212
# Check for a 64-bit object if we didn't find anything.
16213
if test -z "$aix_libpath"; then
16214
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16217
echo "$as_me: failed program was:" >&5
16218
sed 's/^/| /' conftest.$ac_ext >&5
16223
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16224
conftest$ac_exeext conftest.$ac_ext
16225
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16227
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16228
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"
16230
if test "$host_cpu" = ia64; then
16231
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16232
allow_undefined_flag_F77="-z nodefs"
16233
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"
16235
# Determine the default libpath from the value encoded in an empty executable.
16236
cat >conftest.$ac_ext <<_ACEOF
16241
rm -f conftest.$ac_objext conftest$ac_exeext
16242
if { (ac_try="$ac_link"
16243
case "(($ac_try" in
16244
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16245
*) ac_try_echo=$ac_try;;
16247
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16248
(eval "$ac_link") 2>conftest.er1
16250
grep -v '^ *+' conftest.er1 >conftest.err
16252
cat conftest.err >&5
16253
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16254
(exit $ac_status); } && {
16255
test -z "$ac_f77_werror_flag" ||
16256
test ! -s conftest.err
16257
} && test -s conftest$ac_exeext &&
16258
$as_test_x conftest$ac_exeext; then
16260
lt_aix_libpath_sed='
16261
/Import File Strings/,/^$/ {
16267
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16268
# Check for a 64-bit object if we didn't find anything.
16269
if test -z "$aix_libpath"; then
16270
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16273
echo "$as_me: failed program was:" >&5
16274
sed 's/^/| /' conftest.$ac_ext >&5
16279
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16280
conftest$ac_exeext conftest.$ac_ext
16281
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16283
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16284
# Warning - without using the other run time loading flags,
16285
# -berok will link without error, but may produce a broken library.
16286
no_undefined_flag_F77=' ${wl}-bernotok'
16287
allow_undefined_flag_F77=' ${wl}-berok'
16288
# Exported symbols can be pulled into shared objects from archives
16289
whole_archive_flag_spec_F77='$convenience'
16290
archive_cmds_need_lc_F77=yes
16291
# This is similar to how AIX traditionally builds its shared libraries.
16292
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'
16298
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)'
16299
hardcode_libdir_flag_spec_F77='-L$libdir'
16300
hardcode_minus_L_F77=yes
16301
# see comment about different semantics on the GNU ld section
16306
export_dynamic_flag_spec_F77=-rdynamic
16309
cygwin* | mingw* | pw32*)
16310
# When not using gcc, we currently assume that we are using
16311
# Microsoft Visual C++.
16312
# hardcode_libdir_flag_spec is actually meaningless, as there is
16313
# no search path for DLLs.
16314
hardcode_libdir_flag_spec_F77=' '
16315
allow_undefined_flag_F77=unsupported
16316
# Tell ltmain to make .lib files, not .a files.
16318
# Tell ltmain to make .dll files, not .so files.
16320
# FIXME: Setting linknames here is a bad hack.
16321
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16322
# The linker will automatically build a .lib file if we build a DLL.
16323
old_archive_From_new_cmds_F77='true'
16324
# FIXME: Should let the user specify the lib program.
16325
old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
16326
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16327
enable_shared_with_static_runtimes_F77=yes
16330
darwin* | rhapsody*)
16332
rhapsody* | darwin1.[012])
16333
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16336
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16337
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16339
case ${MACOSX_DEPLOYMENT_TARGET} in
16341
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16344
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16350
archive_cmds_need_lc_F77=no
16351
hardcode_direct_F77=no
16352
hardcode_automatic_F77=yes
16353
hardcode_shlibpath_var_F77=unsupported
16354
whole_archive_flag_spec_F77=''
16355
link_all_deplibs_F77=yes
16356
if test "$GCC" = yes ; then
16357
output_verbose_link_cmd='echo'
16358
archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16359
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16360
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16361
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16362
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}'
16364
case $cc_basename in
16366
output_verbose_link_cmd='echo'
16367
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
16368
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16369
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16370
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}'
16371
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}'
16381
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16382
hardcode_libdir_flag_spec_F77='-L$libdir'
16383
hardcode_shlibpath_var_F77=no
16390
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16391
# support. Future versions do this automatically, but an explicit c++rt0.o
16392
# does not break anything, and helps significantly (at the cost of a little
16395
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16396
hardcode_libdir_flag_spec_F77='-R$libdir'
16397
hardcode_direct_F77=yes
16398
hardcode_shlibpath_var_F77=no
16401
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
16403
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16404
hardcode_direct_F77=yes
16405
hardcode_minus_L_F77=yes
16406
hardcode_shlibpath_var_F77=no
16409
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16410
freebsd* | dragonfly*)
16411
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16412
hardcode_libdir_flag_spec_F77='-R$libdir'
16413
hardcode_direct_F77=yes
16414
hardcode_shlibpath_var_F77=no
16418
if test "$GCC" = yes; then
16419
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'
16421
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'
16423
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16424
hardcode_libdir_separator_F77=:
16425
hardcode_direct_F77=yes
16427
# hardcode_minus_L: Not really in the search PATH,
16428
# but as the default location of the library.
16429
hardcode_minus_L_F77=yes
16430
export_dynamic_flag_spec_F77='${wl}-E'
16434
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16435
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16437
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16439
if test "$with_gnu_ld" = no; then
16440
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16441
hardcode_libdir_separator_F77=:
16443
hardcode_direct_F77=yes
16444
export_dynamic_flag_spec_F77='${wl}-E'
16446
# hardcode_minus_L: Not really in the search PATH,
16447
# but as the default location of the library.
16448
hardcode_minus_L_F77=yes
16453
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16456
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16459
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16462
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16468
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16471
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16474
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16478
if test "$with_gnu_ld" = no; then
16479
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16480
hardcode_libdir_separator_F77=:
16484
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16485
hardcode_direct_F77=no
16486
hardcode_shlibpath_var_F77=no
16489
hardcode_direct_F77=yes
16490
export_dynamic_flag_spec_F77='${wl}-E'
16492
# hardcode_minus_L: Not really in the search PATH,
16493
# but as the default location of the library.
16494
hardcode_minus_L_F77=yes
16500
irix5* | irix6* | nonstopux*)
16501
if test "$GCC" = yes; then
16502
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'
16504
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'
16505
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16507
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16508
hardcode_libdir_separator_F77=:
16509
link_all_deplibs_F77=yes
16513
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16514
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16516
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16518
hardcode_libdir_flag_spec_F77='-R$libdir'
16519
hardcode_direct_F77=yes
16520
hardcode_shlibpath_var_F77=no
16524
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16525
hardcode_direct_F77=yes
16526
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16527
hardcode_libdir_separator_F77=:
16528
hardcode_shlibpath_var_F77=no
16532
if test -f /usr/libexec/ld.so; then
16533
hardcode_direct_F77=yes
16534
hardcode_shlibpath_var_F77=no
16535
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16536
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16537
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16538
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16539
export_dynamic_flag_spec_F77='${wl}-E'
16542
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16543
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16544
hardcode_libdir_flag_spec_F77='-R$libdir'
16547
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16548
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16558
hardcode_libdir_flag_spec_F77='-L$libdir'
16559
hardcode_minus_L_F77=yes
16560
allow_undefined_flag_F77=unsupported
16561
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'
16562
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16566
if test "$GCC" = yes; then
16567
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16568
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'
16570
allow_undefined_flag_F77=' -expect_unresolved \*'
16571
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'
16573
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16574
hardcode_libdir_separator_F77=:
16577
osf4* | osf5*) # as osf3* with the addition of -msym flag
16578
if test "$GCC" = yes; then
16579
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16580
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'
16581
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16583
allow_undefined_flag_F77=' -expect_unresolved \*'
16584
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'
16585
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~
16586
$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'
16588
# Both c and cxx compiler support -rpath directly
16589
hardcode_libdir_flag_spec_F77='-rpath $libdir'
16591
hardcode_libdir_separator_F77=:
16595
no_undefined_flag_F77=' -z text'
16596
if test "$GCC" = yes; then
16598
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16599
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16600
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16603
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16604
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16605
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16607
hardcode_libdir_flag_spec_F77='-R$libdir'
16608
hardcode_shlibpath_var_F77=no
16610
solaris2.[0-5] | solaris2.[0-5].*) ;;
16612
# The compiler driver will combine and reorder linker options,
16613
# but understands `-z linker_flag'. GCC discards it without `$wl',
16614
# but is careful enough not to reorder.
16615
# Supported since Solaris 2.6 (maybe 2.5.1?)
16616
if test "$GCC" = yes; then
16617
whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16619
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
16623
link_all_deplibs_F77=yes
16627
if test "x$host_vendor" = xsequent; then
16628
# Use $CC to link under sequent, because it throws in some extra .o
16629
# files that make .init and .fini sections work.
16630
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16632
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16634
hardcode_libdir_flag_spec_F77='-L$libdir'
16635
hardcode_direct_F77=yes
16636
hardcode_minus_L_F77=yes
16637
hardcode_shlibpath_var_F77=no
16641
case $host_vendor in
16643
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16644
hardcode_direct_F77=yes # is this really true???
16647
## LD is ld it makes a PLAMLIB
16648
## CC just makes a GrossModule.
16649
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16650
reload_cmds_F77='$CC -r -o $output$reload_objs'
16651
hardcode_direct_F77=no
16654
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16655
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16658
runpath_var='LD_RUN_PATH'
16659
hardcode_shlibpath_var_F77=no
16663
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16664
hardcode_shlibpath_var_F77=no
16665
export_dynamic_flag_spec_F77='-Bexport'
16669
if test -d /usr/nec; then
16670
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16671
hardcode_shlibpath_var_F77=no
16672
runpath_var=LD_RUN_PATH
16673
hardcode_runpath_var=yes
16678
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16679
no_undefined_flag_F77='${wl}-z,text'
16680
archive_cmds_need_lc_F77=no
16681
hardcode_shlibpath_var_F77=no
16682
runpath_var='LD_RUN_PATH'
16684
if test "$GCC" = yes; then
16685
archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16686
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16688
archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16689
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16693
sysv5* | sco3.2v5* | sco5v6*)
16694
# Note: We can NOT use -z defs as we might desire, because we do not
16695
# link with -lc, and that would cause any symbols used from libc to
16696
# always be unresolved, which means just about no library would
16697
# ever link correctly. If we're not using GNU ld we use -z text
16698
# though, which does catch some bad symbols but isn't as heavy-handed
16700
no_undefined_flag_F77='${wl}-z,text'
16701
allow_undefined_flag_F77='${wl}-z,nodefs'
16702
archive_cmds_need_lc_F77=no
16703
hardcode_shlibpath_var_F77=no
16704
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16705
hardcode_libdir_separator_F77=':'
16706
link_all_deplibs_F77=yes
16707
export_dynamic_flag_spec_F77='${wl}-Bexport'
16708
runpath_var='LD_RUN_PATH'
16710
if test "$GCC" = yes; then
16711
archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16712
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16714
archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16715
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16720
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16721
hardcode_libdir_flag_spec_F77='-L$libdir'
16722
hardcode_shlibpath_var_F77=no
16731
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16732
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16733
test "$ld_shlibs_F77" = no && can_build_shared=no
16736
# Do we need to explicitly link libc?
16738
case "x$archive_cmds_need_lc_F77" in
16740
# Assume -lc should be added
16741
archive_cmds_need_lc_F77=yes
16743
if test "$enable_shared" = yes && test "$GCC" = yes; then
16744
case $archive_cmds_F77 in
16746
# FIXME: we may have to deal with multi-command sequences.
16749
# Test whether the compiler implicitly links with -lc since on some
16750
# systems, -lgcc has to come before -lc. If gcc already passes -lc
16751
# to ld, don't add -lc before -lgcc.
16752
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16753
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16755
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16757
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16758
(eval $ac_compile) 2>&5
16760
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16761
(exit $ac_status); } 2>conftest.err; then
16764
libobjs=conftest.$ac_objext
16766
wl=$lt_prog_compiler_wl_F77
16767
pic_flag=$lt_prog_compiler_pic_F77
16773
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16774
allow_undefined_flag_F77=
16775
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16776
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16778
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16779
(exit $ac_status); }
16781
archive_cmds_need_lc_F77=no
16783
archive_cmds_need_lc_F77=yes
16785
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16787
cat conftest.err 1>&5
16790
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16791
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16798
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16799
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16800
library_names_spec=
16801
libname_spec='lib$name'
16805
postuninstall_cmds=
16809
shlibpath_overrides_runpath=unknown
16811
dynamic_linker="$host_os ld.so"
16812
sys_lib_dlsearch_path_spec="/lib /usr/lib"
16814
need_lib_prefix=unknown
16815
hardcode_into_libs=no
16817
# when you set need_version to no, make sure it does not cause -set_version
16818
# flags to be left without arguments
16819
need_version=unknown
16824
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16825
shlibpath_var=LIBPATH
16827
# AIX 3 has no versioning support, so we append a major version to the name.
16828
soname_spec='${libname}${release}${shared_ext}$major'
16835
hardcode_into_libs=yes
16836
if test "$host_cpu" = ia64; then
16837
# AIX 5 supports IA64
16838
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16839
shlibpath_var=LD_LIBRARY_PATH
16841
# With GCC up to 2.95.x, collect2 would create an import file
16842
# for dependence libraries. The import file would start with
16843
# the line `#! .'. This would cause the generated library to
16844
# depend on `.', always an invalid library. This was fixed in
16845
# development snapshots of GCC prior to 3.0.
16847
aix4 | aix4.[01] | aix4.[01].*)
16848
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16850
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16853
can_build_shared=no
16857
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16858
# soname into executable. Probably we can add versioning support to
16859
# collect2, so additional links can be useful in future.
16860
if test "$aix_use_runtimelinking" = yes; then
16861
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
16862
# instead of lib<name>.a to let people know that these are not
16863
# typical AIX shared libraries.
16864
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16866
# We preserve .a as extension for shared libraries through AIX4.2
16867
# and later when we are not doing run time linking.
16868
library_names_spec='${libname}${release}.a $libname.a'
16869
soname_spec='${libname}${release}${shared_ext}$major'
16871
shlibpath_var=LIBPATH
16876
library_names_spec='$libname.ixlibrary $libname.a'
16877
# Create ${libname}_ixlibrary.a entries in /sys/libs.
16878
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'
16882
library_names_spec='${libname}${shared_ext}'
16883
dynamic_linker="$host_os ld.so"
16884
shlibpath_var=LIBRARY_PATH
16890
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16891
soname_spec='${libname}${release}${shared_ext}$major'
16892
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16893
shlibpath_var=LD_LIBRARY_PATH
16894
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16895
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16896
# the default ld.so.conf also contains /usr/contrib/lib and
16897
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16898
# libtool to hard-code these into programs
16901
cygwin* | mingw* | pw32*)
16902
version_type=windows
16907
case $GCC,$host_os in
16908
yes,cygwin* | yes,mingw* | yes,pw32*)
16909
library_names_spec='$libname.dll.a'
16910
# DLL is installed to $(libdir)/../bin by postinstall_cmds
16911
postinstall_cmds='base_file=`basename \${file}`~
16912
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16913
dldir=$destdir/`dirname \$dlpath`~
16914
test -d \$dldir || mkdir -p \$dldir~
16915
$install_prog $dir/$dlname \$dldir/$dlname~
16916
chmod a+x \$dldir/$dlname'
16917
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16918
dlpath=$dir/\$dldll~
16920
shlibpath_overrides_runpath=yes
16924
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
16925
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16926
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16929
# MinGW DLLs use traditional 'lib' prefix
16930
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16931
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16932
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16933
# It is most probably a Windows format PATH printed by
16934
# mingw gcc, but we are running on Cygwin. Gcc prints its search
16935
# path with ; separators, and with drive letters. We can handle the
16936
# drive letters (cygwin fileutils understands them), so leave them,
16937
# especially as we might pass files found there to a mingw objdump,
16938
# which wouldn't understand a cygwinified path. Ahh.
16939
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16941
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16945
# pw32 DLLs use 'pw' prefix rather than 'lib'
16946
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16952
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16955
dynamic_linker='Win32 ld.exe'
16956
# FIXME: first we should search . and the directory the executable is in
16960
darwin* | rhapsody*)
16961
dynamic_linker="$host_os dyld"
16962
version_type=darwin
16965
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16966
soname_spec='${libname}${release}${major}$shared_ext'
16967
shlibpath_overrides_runpath=yes
16968
shlibpath_var=DYLD_LIBRARY_PATH
16969
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16971
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16978
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16979
soname_spec='${libname}${release}${shared_ext}$major'
16980
shlibpath_var=LD_LIBRARY_PATH
16987
freebsd* | dragonfly*)
16988
# DragonFly does not have aout. When/if they implement a new
16989
# versioning mechanism, adjust this.
16990
if test -x /usr/bin/objformat; then
16991
objformat=`/usr/bin/objformat`
16994
freebsd[123]*) objformat=aout ;;
16995
*) objformat=elf ;;
16998
version_type=freebsd-$objformat
16999
case $version_type in
17001
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17006
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17010
shlibpath_var=LD_LIBRARY_PATH
17013
shlibpath_overrides_runpath=yes
17015
freebsd3.[01]* | freebsdelf3.[01]*)
17016
shlibpath_overrides_runpath=yes
17017
hardcode_into_libs=yes
17019
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17020
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17021
shlibpath_overrides_runpath=no
17022
hardcode_into_libs=yes
17024
*) # from 4.6 on, and DragonFly
17025
shlibpath_overrides_runpath=yes
17026
hardcode_into_libs=yes
17035
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17036
soname_spec='${libname}${release}${shared_ext}$major'
17037
shlibpath_var=LD_LIBRARY_PATH
17038
hardcode_into_libs=yes
17041
hpux9* | hpux10* | hpux11*)
17042
# Give a soname corresponding to the major version so that dld.sl refuses to
17043
# link against other versions.
17050
hardcode_into_libs=yes
17051
dynamic_linker="$host_os dld.so"
17052
shlibpath_var=LD_LIBRARY_PATH
17053
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17054
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17055
soname_spec='${libname}${release}${shared_ext}$major'
17056
if test "X$HPUX_IA64_MODE" = X32; then
17057
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17059
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17061
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17065
hardcode_into_libs=yes
17066
dynamic_linker="$host_os dld.sl"
17067
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17068
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17069
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17070
soname_spec='${libname}${release}${shared_ext}$major'
17071
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17072
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17076
dynamic_linker="$host_os dld.sl"
17077
shlibpath_var=SHLIB_PATH
17078
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17079
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17080
soname_spec='${libname}${release}${shared_ext}$major'
17083
# HP-UX runs *really* slowly unless shared libraries are mode 555.
17084
postinstall_cmds='chmod 555 $lib'
17091
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17092
soname_spec='${libname}${release}${shared_ext}$major'
17093
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17094
shlibpath_var=LD_LIBRARY_PATH
17095
shlibpath_overrides_runpath=no
17096
hardcode_into_libs=yes
17099
irix5* | irix6* | nonstopux*)
17101
nonstopux*) version_type=nonstopux ;;
17103
if test "$lt_cv_prog_gnu_ld" = yes; then
17111
soname_spec='${libname}${release}${shared_ext}$major'
17112
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17114
irix5* | nonstopux*)
17115
libsuff= shlibsuff=
17118
case $LD in # libtool.m4 will add one of these switches to LD
17119
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17120
libsuff= shlibsuff= libmagic=32-bit;;
17121
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17122
libsuff=32 shlibsuff=N32 libmagic=N32;;
17123
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17124
libsuff=64 shlibsuff=64 libmagic=64-bit;;
17125
*) libsuff= shlibsuff= libmagic=never-match;;
17129
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17130
shlibpath_overrides_runpath=no
17131
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17132
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17133
hardcode_into_libs=yes
17136
# No shared lib support for Linux oldld, aout, or coff.
17137
linux*oldld* | linux*aout* | linux*coff*)
17141
# This must be Linux ELF.
17142
linux* | k*bsd*-gnu)
17146
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17147
soname_spec='${libname}${release}${shared_ext}$major'
17148
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17149
shlibpath_var=LD_LIBRARY_PATH
17150
shlibpath_overrides_runpath=no
17151
# This implies no fast_install, which is unacceptable.
17152
# Some rework will be needed to allow for fast_install
17153
# before this can be enabled.
17154
hardcode_into_libs=yes
17156
# Append ld.so.conf contents to the search path
17157
if test -f /etc/ld.so.conf; then
17158
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' ' '`
17159
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17162
# We used to test for /lib/ld.so.1 and disable shared libraries on
17163
# powerpc, because MkLinux only supported shared libraries with the
17164
# GNU dynamic linker. Since this was broken with cross compilers,
17165
# most powerpc-linux boxes support dynamic linking these days and
17166
# people can always --disable-shared, the test was removed, and we
17167
# assume the GNU/Linux dynamic linker is in use.
17168
dynamic_linker='GNU/Linux ld.so'
17175
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17176
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17177
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17178
dynamic_linker='NetBSD (a.out) ld.so'
17180
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17181
soname_spec='${libname}${release}${shared_ext}$major'
17182
dynamic_linker='NetBSD ld.elf_so'
17184
shlibpath_var=LD_LIBRARY_PATH
17185
shlibpath_overrides_runpath=yes
17186
hardcode_into_libs=yes
17191
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17192
shlibpath_var=LD_LIBRARY_PATH
17193
shlibpath_overrides_runpath=yes
17200
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17201
soname_spec='${libname}${release}${shared_ext}$major'
17202
shlibpath_var=LD_LIBRARY_PATH
17203
shlibpath_overrides_runpath=yes
17208
sys_lib_dlsearch_path_spec="/usr/lib"
17210
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17212
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17213
*) need_version=no ;;
17215
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17216
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17217
shlibpath_var=LD_LIBRARY_PATH
17218
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17220
openbsd2.[89] | openbsd2.[89].*)
17221
shlibpath_overrides_runpath=no
17224
shlibpath_overrides_runpath=yes
17228
shlibpath_overrides_runpath=yes
17233
libname_spec='$name'
17236
library_names_spec='$libname${shared_ext} $libname.a'
17237
dynamic_linker='OS/2 ld.exe'
17238
shlibpath_var=LIBPATH
17241
osf3* | osf4* | osf5*)
17245
soname_spec='${libname}${release}${shared_ext}$major'
17246
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17247
shlibpath_var=LD_LIBRARY_PATH
17248
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17249
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17260
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17261
soname_spec='${libname}${release}${shared_ext}$major'
17262
shlibpath_var=LD_LIBRARY_PATH
17263
shlibpath_overrides_runpath=yes
17264
hardcode_into_libs=yes
17265
# ldd complains unless libraries are executable
17266
postinstall_cmds='chmod +x $lib'
17271
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17272
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17273
shlibpath_var=LD_LIBRARY_PATH
17274
shlibpath_overrides_runpath=yes
17275
if test "$with_gnu_ld" = yes; then
17283
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17284
soname_spec='${libname}${release}${shared_ext}$major'
17285
shlibpath_var=LD_LIBRARY_PATH
17286
case $host_vendor in
17288
shlibpath_overrides_runpath=no
17290
export_dynamic_flag_spec='${wl}-Blargedynsym'
17291
runpath_var=LD_RUN_PATH
17299
shlibpath_overrides_runpath=no
17300
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17306
if test -d /usr/nec ;then
17308
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17309
soname_spec='$libname${shared_ext}.$major'
17310
shlibpath_var=LD_LIBRARY_PATH
17314
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17315
version_type=freebsd-elf
17318
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17319
soname_spec='${libname}${release}${shared_ext}$major'
17320
shlibpath_var=LD_LIBRARY_PATH
17321
hardcode_into_libs=yes
17322
if test "$with_gnu_ld" = yes; then
17323
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17324
shlibpath_overrides_runpath=no
17326
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17327
shlibpath_overrides_runpath=yes
17330
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17334
sys_lib_dlsearch_path_spec='/usr/lib'
17339
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17340
soname_spec='${libname}${release}${shared_ext}$major'
17341
shlibpath_var=LD_LIBRARY_PATH
17348
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17349
echo "${ECHO_T}$dynamic_linker" >&6; }
17350
test "$dynamic_linker" = no && can_build_shared=no
17352
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17353
if test "$GCC" = yes; then
17354
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17357
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17358
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17359
hardcode_action_F77=
17360
if test -n "$hardcode_libdir_flag_spec_F77" || \
17361
test -n "$runpath_var_F77" || \
17362
test "X$hardcode_automatic_F77" = "Xyes" ; then
17364
# We can hardcode non-existant directories.
17365
if test "$hardcode_direct_F77" != no &&
17366
# If the only mechanism to avoid hardcoding is shlibpath_var, we
17367
# have to relink, otherwise we might link with an installed library
17368
# when we should be linking with a yet-to-be-installed one
17369
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17370
test "$hardcode_minus_L_F77" != no; then
17371
# Linking always hardcodes the temporary library directory.
17372
hardcode_action_F77=relink
17374
# We can link without hardcoding, and we can hardcode nonexisting dirs.
17375
hardcode_action_F77=immediate
17378
# We cannot hardcode anything, or else we can only hardcode existing
17380
hardcode_action_F77=unsupported
17382
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17383
echo "${ECHO_T}$hardcode_action_F77" >&6; }
17385
if test "$hardcode_action_F77" = relink; then
17386
# Fast installation is not supported
17387
enable_fast_install=no
17388
elif test "$shlibpath_overrides_runpath" = yes ||
17389
test "$enable_shared" = no; then
17390
# Fast installation is not necessary
17391
enable_fast_install=needless
17395
# The else clause should only fire when bootstrapping the
17396
# libtool distribution, otherwise you forgot to ship ltmain.sh
17397
# with your package, and you will get complaints that there are
17398
# no rules to generate ltmain.sh.
17399
if test -f "$ltmain"; then
17400
# See if we are running on zsh, and set the options which allow our commands through
17401
# without removal of \ escapes.
17402
if test -n "${ZSH_VERSION+set}" ; then
17403
setopt NO_GLOB_SUBST
17405
# Now quote all the things that may contain metacharacters while being
17406
# careful not to overquote the AC_SUBSTed values. We take copies of the
17407
# variables and quote the copies for generation of the libtool script.
17408
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17410
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17411
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17412
deplibs_check_method reload_flag reload_cmds need_locks \
17413
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17414
lt_cv_sys_global_symbol_to_c_name_address \
17415
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17416
old_postinstall_cmds old_postuninstall_cmds \
17420
lt_prog_compiler_wl_F77 \
17421
lt_prog_compiler_pic_F77 \
17422
lt_prog_compiler_static_F77 \
17423
lt_prog_compiler_no_builtin_flag_F77 \
17424
export_dynamic_flag_spec_F77 \
17425
thread_safe_flag_spec_F77 \
17426
whole_archive_flag_spec_F77 \
17427
enable_shared_with_static_runtimes_F77 \
17428
old_archive_cmds_F77 \
17429
old_archive_from_new_cmds_F77 \
17430
predep_objects_F77 \
17431
postdep_objects_F77 \
17434
compiler_lib_search_path_F77 \
17436
archive_expsym_cmds_F77 \
17437
postinstall_cmds_F77 \
17438
postuninstall_cmds_F77 \
17439
old_archive_from_expsyms_cmds_F77 \
17440
allow_undefined_flag_F77 \
17441
no_undefined_flag_F77 \
17442
export_symbols_cmds_F77 \
17443
hardcode_libdir_flag_spec_F77 \
17444
hardcode_libdir_flag_spec_ld_F77 \
17445
hardcode_libdir_separator_F77 \
17446
hardcode_automatic_F77 \
17448
module_expsym_cmds_F77 \
17449
lt_cv_prog_compiler_c_o_F77 \
17450
fix_srcfile_path_F77 \
17451
exclude_expsyms_F77 \
17452
include_expsyms_F77; do
17455
old_archive_cmds_F77 | \
17456
old_archive_from_new_cmds_F77 | \
17457
archive_cmds_F77 | \
17458
archive_expsym_cmds_F77 | \
17459
module_cmds_F77 | \
17460
module_expsym_cmds_F77 | \
17461
old_archive_from_expsyms_cmds_F77 | \
17462
export_symbols_cmds_F77 | \
17463
extract_expsyms_cmds | reload_cmds | finish_cmds | \
17464
postinstall_cmds | postuninstall_cmds | \
17465
old_postinstall_cmds | old_postuninstall_cmds | \
17466
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17467
# Double-quote double-evaled strings.
17468
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17471
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17477
*'\$0 --fallback-echo"')
17478
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17484
cat <<__EOF__ >> "$cfgfile"
17485
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17487
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17489
# Shell to use when invoking shell scripts.
17492
# Whether or not to build shared libraries.
17493
build_libtool_libs=$enable_shared
17495
# Whether or not to build static libraries.
17496
build_old_libs=$enable_static
17498
# Whether or not to add -lc for building shared libraries.
17499
build_libtool_need_lc=$archive_cmds_need_lc_F77
17501
# Whether or not to disallow shared libs when runtime libs are static
17502
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17504
# Whether or not to optimize for fast installation.
17505
fast_install=$enable_fast_install
17508
host_alias=$host_alias
17512
# The build system.
17513
build_alias=$build_alias
17517
# An echo program that does not interpret backslashes.
17522
AR_FLAGS=$lt_AR_FLAGS
17527
# LTCC compiler flags.
17528
LTCFLAGS=$lt_LTCFLAGS
17530
# A language-specific compiler.
17531
CC=$lt_compiler_F77
17533
# Is the compiler the GNU C compiler?
17539
# The linker used to build libraries.
17542
# Whether we need hard or soft links.
17545
# A BSD-compatible nm program.
17548
# A symbol stripping program
17551
# Used to examine libraries when file_magic_cmd begins "file"
17552
MAGIC_CMD=$MAGIC_CMD
17554
# Used on cygwin: DLL creation program.
17557
# Used on cygwin: object dumper.
17560
# Used on cygwin: assembler.
17563
# The name of the directory that contains temporary libtool files.
17566
# How to create reloadable object files.
17567
reload_flag=$lt_reload_flag
17568
reload_cmds=$lt_reload_cmds
17570
# How to pass a linker flag through the compiler.
17571
wl=$lt_lt_prog_compiler_wl_F77
17573
# Object file suffix (normally "o").
17574
objext="$ac_objext"
17576
# Old archive suffix (normally "a").
17579
# Shared library suffix (normally ".so").
17580
shrext_cmds='$shrext_cmds'
17582
# Executable file suffix (normally "").
17585
# Additional compiler flags for building library objects.
17586
pic_flag=$lt_lt_prog_compiler_pic_F77
17589
# What is the maximum length of a command?
17590
max_cmd_len=$lt_cv_sys_max_cmd_len
17592
# Does compiler simultaneously support -c and -o options?
17593
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17595
# Must we lock files when doing compilation?
17596
need_locks=$lt_need_locks
17598
# Do we need the lib prefix for modules?
17599
need_lib_prefix=$need_lib_prefix
17601
# Do we need a version for libraries?
17602
need_version=$need_version
17604
# Whether dlopen is supported.
17605
dlopen_support=$enable_dlopen
17607
# Whether dlopen of programs is supported.
17608
dlopen_self=$enable_dlopen_self
17610
# Whether dlopen of statically linked programs is supported.
17611
dlopen_self_static=$enable_dlopen_self_static
17613
# Compiler flag to prevent dynamic linking.
17614
link_static_flag=$lt_lt_prog_compiler_static_F77
17616
# Compiler flag to turn off builtin functions.
17617
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17619
# Compiler flag to allow reflexive dlopens.
17620
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17622
# Compiler flag to generate shared objects directly from archives.
17623
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17625
# Compiler flag to generate thread-safe objects.
17626
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17628
# Library versioning type.
17629
version_type=$version_type
17631
# Format of library name prefix.
17632
libname_spec=$lt_libname_spec
17634
# List of archive names. First name is the real one, the rest are links.
17635
# The last name is the one that the linker finds with -lNAME.
17636
library_names_spec=$lt_library_names_spec
17638
# The coded name of the library, if different from the real name.
17639
soname_spec=$lt_soname_spec
17641
# Commands used to build and install an old-style archive.
17643
old_archive_cmds=$lt_old_archive_cmds_F77
17644
old_postinstall_cmds=$lt_old_postinstall_cmds
17645
old_postuninstall_cmds=$lt_old_postuninstall_cmds
17647
# Create an old-style archive from a shared archive.
17648
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17650
# Create a temporary old-style archive to link instead of a shared archive.
17651
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17653
# Commands used to build and install a shared archive.
17654
archive_cmds=$lt_archive_cmds_F77
17655
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17656
postinstall_cmds=$lt_postinstall_cmds
17657
postuninstall_cmds=$lt_postuninstall_cmds
17659
# Commands used to build a loadable module (assumed same as above if empty)
17660
module_cmds=$lt_module_cmds_F77
17661
module_expsym_cmds=$lt_module_expsym_cmds_F77
17663
# Commands to strip libraries.
17664
old_striplib=$lt_old_striplib
17665
striplib=$lt_striplib
17667
# Dependencies to place before the objects being linked to create a
17669
predep_objects=$lt_predep_objects_F77
17671
# Dependencies to place after the objects being linked to create a
17673
postdep_objects=$lt_postdep_objects_F77
17675
# Dependencies to place before the objects being linked to create a
17677
predeps=$lt_predeps_F77
17679
# Dependencies to place after the objects being linked to create a
17681
postdeps=$lt_postdeps_F77
17683
# The library search path used internally by the compiler when linking
17684
# a shared library.
17685
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17687
# Method to check whether dependent libraries are shared objects.
17688
deplibs_check_method=$lt_deplibs_check_method
17690
# Command to use when deplibs_check_method == file_magic.
17691
file_magic_cmd=$lt_file_magic_cmd
17693
# Flag that allows shared libraries with undefined symbols to be built.
17694
allow_undefined_flag=$lt_allow_undefined_flag_F77
17696
# Flag that forces no undefined symbols.
17697
no_undefined_flag=$lt_no_undefined_flag_F77
17699
# Commands used to finish a libtool library installation in a directory.
17700
finish_cmds=$lt_finish_cmds
17702
# Same as above, but a single script fragment to be evaled but not shown.
17703
finish_eval=$lt_finish_eval
17705
# Take the output of nm and produce a listing of raw symbols and C names.
17706
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17708
# Transform the output of nm in a proper C declaration
17709
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17711
# Transform the output of nm in a C name address pair
17712
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17714
# This is the shared library runtime path variable.
17715
runpath_var=$runpath_var
17717
# This is the shared library path variable.
17718
shlibpath_var=$shlibpath_var
17720
# Is shlibpath searched before the hard-coded library search path?
17721
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17723
# How to hardcode a shared library path into an executable.
17724
hardcode_action=$hardcode_action_F77
17726
# Whether we should hardcode library paths into libraries.
17727
hardcode_into_libs=$hardcode_into_libs
17729
# Flag to hardcode \$libdir into a binary during linking.
17730
# This must work even if \$libdir does not exist.
17731
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17733
# If ld is used when linking, flag to hardcode \$libdir into
17734
# a binary during linking. This must work even if \$libdir does
17736
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17738
# Whether we need a single -rpath flag with a separated argument.
17739
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17741
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17742
# resulting binary.
17743
hardcode_direct=$hardcode_direct_F77
17745
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17746
# resulting binary.
17747
hardcode_minus_L=$hardcode_minus_L_F77
17749
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17750
# the resulting binary.
17751
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17753
# Set to yes if building a shared library automatically hardcodes DIR into the library
17754
# and all subsequent libraries and executables linked against it.
17755
hardcode_automatic=$hardcode_automatic_F77
17757
# Variables whose values should be saved in libtool wrapper scripts and
17758
# restored at relink time.
17759
variables_saved_for_relink="$variables_saved_for_relink"
17761
# Whether libtool must link a program against all its dependency libraries.
17762
link_all_deplibs=$link_all_deplibs_F77
17764
# Compile-time system search path for libraries
17765
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17767
# Run-time system search path for libraries
17768
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17770
# Fix the shell variable \$srcfile for the compiler.
17771
fix_srcfile_path=$lt_fix_srcfile_path
17773
# Set to yes if exported symbols are required.
17774
always_export_symbols=$always_export_symbols_F77
17776
# The commands to list exported symbols.
17777
export_symbols_cmds=$lt_export_symbols_cmds_F77
17779
# The commands to extract the exported symbol list from a shared archive.
17780
extract_expsyms_cmds=$lt_extract_expsyms_cmds
17782
# Symbols that should not be listed in the preloaded symbols.
17783
exclude_expsyms=$lt_exclude_expsyms_F77
17785
# Symbols that must always be exported.
17786
include_expsyms=$lt_include_expsyms_F77
17788
# ### END LIBTOOL TAG CONFIG: $tagname
17794
# If there is no Makefile yet, we rely on a make rule to execute
17795
# `config.status --recheck' to rerun these tests and create the
17796
# libtool script then.
17797
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17798
if test -f "$ltmain_in"; then
17799
test -f Makefile && make "$ltmain"
17805
ac_cpp='$CPP $CPPFLAGS'
17806
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17807
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17808
ac_compiler_gnu=$ac_cv_c_compiler_gnu
17818
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17821
# Source file extension for Java test sources.
17824
# Object file extension for compiled Java test sources.
17828
# Code to be used in simple compile tests
17829
lt_simple_compile_test_code="class foo {}"
17831
# Code to be used in simple link tests
17832
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
17834
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17836
# If no C compiler was specified, use CC.
17839
# If no C compiler flags were specified, use CFLAGS.
17840
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17842
# Allow CC to be a program name with arguments.
17846
# save warnings/boilerplate of simple test code
17847
ac_outfile=conftest.$ac_objext
17848
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17849
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17850
_lt_compiler_boilerplate=`cat conftest.err`
17853
ac_outfile=conftest.$ac_objext
17854
echo "$lt_simple_link_test_code" >conftest.$ac_ext
17855
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17856
_lt_linker_boilerplate=`cat conftest.err`
17860
# Allow CC to be a program name with arguments.
17865
for cc_temp in $compiler""; do
17867
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17868
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17873
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17876
# GCJ did not exist at the time GCC didn't implicitly link libc in.
17877
archive_cmds_need_lc_GCJ=no
17879
old_archive_cmds_GCJ=$old_archive_cmds
17882
lt_prog_compiler_no_builtin_flag_GCJ=
17884
if test "$GCC" = yes; then
17885
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17888
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17889
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17890
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17891
echo $ECHO_N "(cached) $ECHO_C" >&6
17893
lt_cv_prog_compiler_rtti_exceptions=no
17894
ac_outfile=conftest.$ac_objext
17895
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17896
lt_compiler_flag="-fno-rtti -fno-exceptions"
17897
# Insert the option either (1) after the last *FLAGS variable, or
17898
# (2) before a word containing "conftest.", or (3) at the end.
17899
# Note that $ac_compile itself does not contain backslashes and begins
17900
# with a dollar sign (not a hyphen), so the echo should work correctly.
17901
# The option is referenced via a variable to avoid confusing sed.
17902
lt_compile=`echo "$ac_compile" | $SED \
17903
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17904
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17905
-e 's:$: $lt_compiler_flag:'`
17906
(eval echo "\"\$as_me:17906: $lt_compile\"" >&5)
17907
(eval "$lt_compile" 2>conftest.err)
17909
cat conftest.err >&5
17910
echo "$as_me:17910: \$? = $ac_status" >&5
17911
if (exit $ac_status) && test -s "$ac_outfile"; then
17912
# The compiler can only warn and ignore the option if not recognized
17913
# So say no if there are warnings other than the usual output.
17914
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17915
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17916
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17917
lt_cv_prog_compiler_rtti_exceptions=yes
17923
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17924
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17926
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17927
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17934
lt_prog_compiler_wl_GCJ=
17935
lt_prog_compiler_pic_GCJ=
17936
lt_prog_compiler_static_GCJ=
17938
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17939
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17941
if test "$GCC" = yes; then
17942
lt_prog_compiler_wl_GCJ='-Wl,'
17943
lt_prog_compiler_static_GCJ='-static'
17947
# All AIX code is PIC.
17948
if test "$host_cpu" = ia64; then
17949
# AIX 5 now supports IA64 processor
17950
lt_prog_compiler_static_GCJ='-Bstatic'
17955
# FIXME: we need at least 68020 code to build shared libraries, but
17956
# adding the `-m68020' flag to GCC prevents building anything better,
17958
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17961
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17962
# PIC is the default for these OSes.
17965
mingw* | cygwin* | pw32* | os2*)
17966
# This hack is so that the source file can tell whether it is being
17967
# built for inclusion in a dll (and should export symbols for example).
17968
# Although the cygwin gcc ignores -fPIC, still need this for old-style
17969
# (--disable-auto-import) libraries
17970
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17973
darwin* | rhapsody*)
17974
# PIC is the default on this platform
17975
# Common symbols not allowed in MH_DYLIB files
17976
lt_prog_compiler_pic_GCJ='-fno-common'
17980
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
17981
# Instead, we relocate shared libraries at runtime.
17985
# Just because we use GCC doesn't mean we suddenly get shared libraries
17986
# on systems that don't support them.
17987
lt_prog_compiler_can_build_shared_GCJ=no
17992
if test -d /usr/nec; then
17993
lt_prog_compiler_pic_GCJ=-Kconform_pic
17998
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17999
# not for PA HP-UX.
18005
lt_prog_compiler_pic_GCJ='-fPIC'
18011
lt_prog_compiler_pic_GCJ='-fPIC'
18015
# PORTME Check for flag to pass linker flags through the system compiler.
18018
lt_prog_compiler_wl_GCJ='-Wl,'
18019
if test "$host_cpu" = ia64; then
18020
# AIX 5 now supports IA64 processor
18021
lt_prog_compiler_static_GCJ='-Bstatic'
18023
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18027
# PIC is the default on this platform
18028
# Common symbols not allowed in MH_DYLIB files
18029
case $cc_basename in
18031
lt_prog_compiler_pic_GCJ='-qnocommon'
18032
lt_prog_compiler_wl_GCJ='-Wl,'
18037
mingw* | cygwin* | pw32* | os2*)
18038
# This hack is so that the source file can tell whether it is being
18039
# built for inclusion in a dll (and should export symbols for example).
18040
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18043
hpux9* | hpux10* | hpux11*)
18044
lt_prog_compiler_wl_GCJ='-Wl,'
18045
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18046
# not for PA HP-UX.
18052
lt_prog_compiler_pic_GCJ='+Z'
18055
# Is there a better lt_prog_compiler_static that works with the bundled CC?
18056
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18059
irix5* | irix6* | nonstopux*)
18060
lt_prog_compiler_wl_GCJ='-Wl,'
18061
# PIC (with -KPIC) is the default.
18062
lt_prog_compiler_static_GCJ='-non_shared'
18066
lt_prog_compiler_pic_GCJ='-KPIC'
18067
lt_prog_compiler_static_GCJ='-Bstatic'
18070
linux* | k*bsd*-gnu)
18071
case $cc_basename in
18073
lt_prog_compiler_wl_GCJ='-Wl,'
18074
lt_prog_compiler_pic_GCJ='-KPIC'
18075
lt_prog_compiler_static_GCJ='-static'
18077
pgcc* | pgf77* | pgf90* | pgf95*)
18078
# Portland Group compilers (*not* the Pentium gcc compiler,
18079
# which looks to be a dead project)
18080
lt_prog_compiler_wl_GCJ='-Wl,'
18081
lt_prog_compiler_pic_GCJ='-fpic'
18082
lt_prog_compiler_static_GCJ='-Bstatic'
18085
lt_prog_compiler_wl_GCJ='-Wl,'
18086
# All Alpha code is PIC.
18087
lt_prog_compiler_static_GCJ='-non_shared'
18090
case `$CC -V 2>&1 | sed 5q` in
18093
lt_prog_compiler_pic_GCJ='-KPIC'
18094
lt_prog_compiler_static_GCJ='-Bstatic'
18095
lt_prog_compiler_wl_GCJ='-Wl,'
18098
# Sun Fortran 8.3 passes all unrecognized flags to the linker
18099
lt_prog_compiler_pic_GCJ='-KPIC'
18100
lt_prog_compiler_static_GCJ='-Bstatic'
18101
lt_prog_compiler_wl_GCJ=''
18108
osf3* | osf4* | osf5*)
18109
lt_prog_compiler_wl_GCJ='-Wl,'
18110
# All OSF/1 code is PIC.
18111
lt_prog_compiler_static_GCJ='-non_shared'
18115
lt_prog_compiler_static_GCJ='-non_shared'
18119
lt_prog_compiler_pic_GCJ='-KPIC'
18120
lt_prog_compiler_static_GCJ='-Bstatic'
18121
case $cc_basename in
18122
f77* | f90* | f95*)
18123
lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18125
lt_prog_compiler_wl_GCJ='-Wl,';;
18130
lt_prog_compiler_wl_GCJ='-Qoption ld '
18131
lt_prog_compiler_pic_GCJ='-PIC'
18132
lt_prog_compiler_static_GCJ='-Bstatic'
18135
sysv4 | sysv4.2uw2* | sysv4.3*)
18136
lt_prog_compiler_wl_GCJ='-Wl,'
18137
lt_prog_compiler_pic_GCJ='-KPIC'
18138
lt_prog_compiler_static_GCJ='-Bstatic'
18142
if test -d /usr/nec ;then
18143
lt_prog_compiler_pic_GCJ='-Kconform_pic'
18144
lt_prog_compiler_static_GCJ='-Bstatic'
18148
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18149
lt_prog_compiler_wl_GCJ='-Wl,'
18150
lt_prog_compiler_pic_GCJ='-KPIC'
18151
lt_prog_compiler_static_GCJ='-Bstatic'
18155
lt_prog_compiler_wl_GCJ='-Wl,'
18156
lt_prog_compiler_can_build_shared_GCJ=no
18160
lt_prog_compiler_pic_GCJ='-pic'
18161
lt_prog_compiler_static_GCJ='-Bstatic'
18165
lt_prog_compiler_can_build_shared_GCJ=no
18170
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18171
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
18174
# Check to make sure the PIC flag actually works.
18176
if test -n "$lt_prog_compiler_pic_GCJ"; then
18178
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18179
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
18180
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18181
echo $ECHO_N "(cached) $ECHO_C" >&6
18183
lt_prog_compiler_pic_works_GCJ=no
18184
ac_outfile=conftest.$ac_objext
18185
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18186
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18187
# Insert the option either (1) after the last *FLAGS variable, or
18188
# (2) before a word containing "conftest.", or (3) at the end.
18189
# Note that $ac_compile itself does not contain backslashes and begins
18190
# with a dollar sign (not a hyphen), so the echo should work correctly.
18191
# The option is referenced via a variable to avoid confusing sed.
18192
lt_compile=`echo "$ac_compile" | $SED \
18193
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18194
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18195
-e 's:$: $lt_compiler_flag:'`
18196
(eval echo "\"\$as_me:18196: $lt_compile\"" >&5)
18197
(eval "$lt_compile" 2>conftest.err)
18199
cat conftest.err >&5
18200
echo "$as_me:18200: \$? = $ac_status" >&5
18201
if (exit $ac_status) && test -s "$ac_outfile"; then
18202
# The compiler can only warn and ignore the option if not recognized
18203
# So say no if there are warnings other than the usual output.
18204
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18205
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18206
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18207
lt_prog_compiler_pic_works_GCJ=yes
18213
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18214
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
18216
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18217
case $lt_prog_compiler_pic_GCJ in
18219
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18222
lt_prog_compiler_pic_GCJ=
18223
lt_prog_compiler_can_build_shared_GCJ=no
18228
# For platforms which do not support PIC, -DPIC is meaningless:
18230
lt_prog_compiler_pic_GCJ=
18233
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18238
# Check to make sure the static flag actually works.
18240
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
18241
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18242
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18243
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
18244
echo $ECHO_N "(cached) $ECHO_C" >&6
18246
lt_prog_compiler_static_works_GCJ=no
18247
save_LDFLAGS="$LDFLAGS"
18248
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18249
echo "$lt_simple_link_test_code" > conftest.$ac_ext
18250
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18251
# The linker can only warn and ignore the option if not recognized
18252
# So say no if there are warnings
18253
if test -s conftest.err; then
18254
# Append any errors to the config.log.
18255
cat conftest.err 1>&5
18256
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18257
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18258
if diff conftest.exp conftest.er2 >/dev/null; then
18259
lt_prog_compiler_static_works_GCJ=yes
18262
lt_prog_compiler_static_works_GCJ=yes
18266
LDFLAGS="$save_LDFLAGS"
18269
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
18270
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
18272
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
18275
lt_prog_compiler_static_GCJ=
18279
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18280
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18281
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18282
echo $ECHO_N "(cached) $ECHO_C" >&6
18284
lt_cv_prog_compiler_c_o_GCJ=no
18285
$rm -r conftest 2>/dev/null
18289
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18291
lt_compiler_flag="-o out/conftest2.$ac_objext"
18292
# Insert the option either (1) after the last *FLAGS variable, or
18293
# (2) before a word containing "conftest.", or (3) at the end.
18294
# Note that $ac_compile itself does not contain backslashes and begins
18295
# with a dollar sign (not a hyphen), so the echo should work correctly.
18296
lt_compile=`echo "$ac_compile" | $SED \
18297
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18298
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18299
-e 's:$: $lt_compiler_flag:'`
18300
(eval echo "\"\$as_me:18300: $lt_compile\"" >&5)
18301
(eval "$lt_compile" 2>out/conftest.err)
18303
cat out/conftest.err >&5
18304
echo "$as_me:18304: \$? = $ac_status" >&5
18305
if (exit $ac_status) && test -s out/conftest2.$ac_objext
18307
# The compiler can only warn and ignore the option if not recognized
18308
# So say no if there are warnings
18309
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18310
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18311
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18312
lt_cv_prog_compiler_c_o_GCJ=yes
18317
# SGI C++ compiler will create directory out/ii_files/ for
18318
# template instantiation
18319
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18320
$rm out/* && rmdir out
18326
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18327
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
18330
hard_links="nottested"
18331
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18332
# do not overwrite the value of need_locks provided by the user
18333
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18334
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18337
ln conftest.a conftest.b 2>/dev/null && hard_links=no
18339
ln conftest.a conftest.b 2>&5 || hard_links=no
18340
ln conftest.a conftest.b 2>/dev/null && hard_links=no
18341
{ echo "$as_me:$LINENO: result: $hard_links" >&5
18342
echo "${ECHO_T}$hard_links" >&6; }
18343
if test "$hard_links" = no; then
18344
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18345
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18352
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18353
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18356
allow_undefined_flag_GCJ=
18357
enable_shared_with_static_runtimes_GCJ=no
18359
archive_expsym_cmds_GCJ=
18360
old_archive_From_new_cmds_GCJ=
18361
old_archive_from_expsyms_cmds_GCJ=
18362
export_dynamic_flag_spec_GCJ=
18363
whole_archive_flag_spec_GCJ=
18364
thread_safe_flag_spec_GCJ=
18365
hardcode_libdir_flag_spec_GCJ=
18366
hardcode_libdir_flag_spec_ld_GCJ=
18367
hardcode_libdir_separator_GCJ=
18368
hardcode_direct_GCJ=no
18369
hardcode_minus_L_GCJ=no
18370
hardcode_shlibpath_var_GCJ=unsupported
18371
link_all_deplibs_GCJ=unknown
18372
hardcode_automatic_GCJ=no
18374
module_expsym_cmds_GCJ=
18375
always_export_symbols_GCJ=no
18376
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18377
# include_expsyms should be a list of space-separated symbols to be *always*
18378
# included in the symbol list
18379
include_expsyms_GCJ=
18380
# exclude_expsyms can be an extended regexp of symbols to exclude
18381
# it will be wrapped by ` (' and `)$', so one must not match beginning or
18382
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18383
# as well as any symbol that contains `d'.
18384
exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18385
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18386
# platforms (ab)use it in PIC code, but their linkers get confused if
18387
# the symbol is explicitly referenced. Since portable code cannot
18388
# rely on this symbol name, it's probably fine to never include it in
18389
# preloaded symbol tables.
18390
extract_expsyms_cmds=
18391
# Just being paranoid about ensuring that cc_basename is set.
18392
for cc_temp in $compiler""; do
18394
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18395
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18400
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18403
cygwin* | mingw* | pw32*)
18404
# FIXME: the MSVC++ port hasn't been tested in a loooong time
18405
# When not using gcc, we currently assume that we are using
18406
# Microsoft Visual C++.
18407
if test "$GCC" != yes; then
18412
# we just hope/assume this is gcc and not c89 (= MSVC++)
18421
if test "$with_gnu_ld" = yes; then
18422
# If archive_cmds runs LD, not CC, wlarc should be empty
18425
# Set some defaults for GNU ld with shared library support. These
18426
# are reset later if shared libraries are not supported. Putting them
18427
# here allows them to be overridden if necessary.
18428
runpath_var=LD_RUN_PATH
18429
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18430
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18431
# ancient GNU ld didn't support --whole-archive et. al.
18432
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18433
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18435
whole_archive_flag_spec_GCJ=
18437
supports_anon_versioning=no
18438
case `$LD -v 2>/dev/null` in
18439
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18440
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18441
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18442
*\ 2.11.*) ;; # other 2.11 versions
18443
*) supports_anon_versioning=yes ;;
18446
# See if GNU ld supports shared libraries.
18448
aix3* | aix4* | aix5*)
18449
# On AIX/PPC, the GNU linker is very broken
18450
if test "$host_cpu" != ia64; then
18454
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
18455
*** to be unable to reliably create shared libraries on AIX.
18456
*** Therefore, libtool is disabling shared libraries support. If you
18457
*** really care for shared libraries, you may want to modify your PATH
18458
*** so that a non-GNU linker is found, and then restart.
18465
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)'
18466
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18467
hardcode_minus_L_GCJ=yes
18469
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18470
# that the semantics of dynamic libraries on AmigaOS, at least up
18471
# to version 4, is to share data among multiple programs linked
18472
# with the same dynamic library. Since this doesn't match the
18473
# behavior of shared libraries on other platforms, we can't use
18479
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18480
allow_undefined_flag_GCJ=unsupported
18481
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18482
# support --undefined. This deserves some investigation. FIXME
18483
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18489
cygwin* | mingw* | pw32*)
18490
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18491
# as there is no search path for DLLs.
18492
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18493
allow_undefined_flag_GCJ=unsupported
18494
always_export_symbols_GCJ=no
18495
enable_shared_with_static_runtimes_GCJ=yes
18496
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
18498
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18499
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18500
# If the export-symbols file already is a .def file (1st line
18501
# is EXPORTS), use it as is; otherwise, prepend...
18502
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18503
cp $export_symbols $output_objdir/$soname.def;
18505
echo EXPORTS > $output_objdir/$soname.def;
18506
cat $export_symbols >> $output_objdir/$soname.def;
18508
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18515
hardcode_direct_GCJ=no
18516
hardcode_shlibpath_var_GCJ=no
18517
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18518
export_dynamic_flag_spec_GCJ='${wl}-E'
18519
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18520
# Instead, shared libraries are loaded at an image base (0x10000000 by
18521
# default) and relocated if they conflict, which is a slow very memory
18522
# consuming and fragmenting process. To avoid this, we pick a random,
18523
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18524
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
18525
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'
18526
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'
18529
gnu* | linux* | k*bsd*-gnu)
18530
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18532
case $cc_basename,$host_cpu in
18533
pgcc*) # Portland Group C compiler
18534
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'
18535
tmp_addflag=' $pic_flag'
18537
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
18538
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'
18539
tmp_addflag=' $pic_flag -Mnomain' ;;
18540
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18541
tmp_addflag=' -i_dynamic' ;;
18542
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18543
tmp_addflag=' -i_dynamic -nofor_main' ;;
18544
ifc* | ifort*) # Intel Fortran compiler
18545
tmp_addflag=' -nofor_main' ;;
18547
case `$CC -V 2>&1 | sed 5q` in
18548
*Sun\ C*) # Sun C 5.9
18549
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'
18550
tmp_sharedflag='-G' ;;
18551
*Sun\ F*) # Sun Fortran 8.3
18552
tmp_sharedflag='-G' ;;
18554
tmp_sharedflag='-shared' ;;
18556
archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18558
if test $supports_anon_versioning = yes; then
18559
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18560
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18561
$echo "local: *; };" >> $output_objdir/$libname.ver~
18562
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18570
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18571
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18574
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18575
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18580
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18584
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
18585
*** create shared libraries on Solaris systems. Therefore, libtool
18586
*** is disabling shared libraries support. We urge you to upgrade GNU
18587
*** binutils to release 2.9.1 or newer. Another option is to modify
18588
*** your PATH or compiler configuration so that the native linker is
18589
*** used, and then restart.
18592
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18593
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18594
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18600
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18601
case `$LD -v 2>&1` in
18602
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18606
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18607
*** reliably create shared libraries on SCO systems. Therefore, libtool
18608
*** is disabling shared libraries support. We urge you to upgrade GNU
18609
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18610
*** your PATH or compiler configuration so that the native linker is
18611
*** used, and then restart.
18616
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18617
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18618
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18619
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18628
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18630
hardcode_direct_GCJ=yes
18631
hardcode_shlibpath_var_GCJ=no
18635
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18636
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18637
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18644
if test "$ld_shlibs_GCJ" = no; then
18646
hardcode_libdir_flag_spec_GCJ=
18647
export_dynamic_flag_spec_GCJ=
18648
whole_archive_flag_spec_GCJ=
18651
# PORTME fill in a description of your system's linker (not GNU ld)
18654
allow_undefined_flag_GCJ=unsupported
18655
always_export_symbols_GCJ=yes
18656
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'
18657
# Note: this linker hardcodes the directories in LIBPATH if there
18658
# are no directories specified by -L.
18659
hardcode_minus_L_GCJ=yes
18660
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18661
# Neither direct hardcoding nor static linking is supported with a
18663
hardcode_direct_GCJ=unsupported
18668
if test "$host_cpu" = ia64; then
18669
# On IA64, the linker does run time linking by default, so we don't
18670
# have to do anything special.
18671
aix_use_runtimelinking=no
18672
exp_sym_flag='-Bexport'
18675
# If we're using GNU nm, then we don't want the "-C" option.
18676
# -C means demangle to AIX nm, but means don't demangle with GNU nm
18677
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18678
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'
18680
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'
18682
aix_use_runtimelinking=no
18684
# Test if we are trying to use run time linking or normal
18685
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
18686
# need to do runtime linking.
18687
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18688
for ld_flag in $LDFLAGS; do
18689
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18690
aix_use_runtimelinking=yes
18697
exp_sym_flag='-bexport'
18698
no_entry_flag='-bnoentry'
18701
# When large executables or shared objects are built, AIX ld can
18702
# have problems creating the table of contents. If linking a library
18703
# or program results in "error TOC overflow" add -mminimal-toc to
18704
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18705
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18707
archive_cmds_GCJ=''
18708
hardcode_direct_GCJ=yes
18709
hardcode_libdir_separator_GCJ=':'
18710
link_all_deplibs_GCJ=yes
18712
if test "$GCC" = yes; then
18713
case $host_os in aix4.[012]|aix4.[012].*)
18714
# We only want to do this on AIX 4.2 and lower, the check
18715
# below for broken collect2 doesn't work under 4.3+
18716
collect2name=`${CC} -print-prog-name=collect2`
18717
if test -f "$collect2name" && \
18718
strings "$collect2name" | grep resolve_lib_name >/dev/null
18720
# We have reworked collect2
18723
# We have old collect2
18724
hardcode_direct_GCJ=unsupported
18725
# It fails to find uninstalled libraries when the uninstalled
18726
# path is not listed in the libpath. Setting hardcode_minus_L
18727
# to unsupported forces relinking
18728
hardcode_minus_L_GCJ=yes
18729
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18730
hardcode_libdir_separator_GCJ=
18734
shared_flag='-shared'
18735
if test "$aix_use_runtimelinking" = yes; then
18736
shared_flag="$shared_flag "'${wl}-G'
18740
if test "$host_cpu" = ia64; then
18741
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18742
# chokes on -Wl,-G. The following line is correct:
18745
if test "$aix_use_runtimelinking" = yes; then
18746
shared_flag='${wl}-G'
18748
shared_flag='${wl}-bM:SRE'
18753
# It seems that -bexpall does not export symbols beginning with
18754
# underscore (_), so it is better to generate a list of symbols to export.
18755
always_export_symbols_GCJ=yes
18756
if test "$aix_use_runtimelinking" = yes; then
18757
# Warning - without using the other runtime loading flags (-brtl),
18758
# -berok will link without error, but may produce a broken library.
18759
allow_undefined_flag_GCJ='-berok'
18760
# Determine the default libpath from the value encoded in an empty executable.
18761
cat >conftest.$ac_ext <<_ACEOF
18764
cat confdefs.h >>conftest.$ac_ext
18765
cat >>conftest.$ac_ext <<_ACEOF
18766
/* end confdefs.h. */
18776
rm -f conftest.$ac_objext conftest$ac_exeext
18777
if { (ac_try="$ac_link"
18778
case "(($ac_try" in
18779
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18780
*) ac_try_echo=$ac_try;;
18782
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18783
(eval "$ac_link") 2>conftest.er1
18785
grep -v '^ *+' conftest.er1 >conftest.err
18787
cat conftest.err >&5
18788
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18789
(exit $ac_status); } && {
18790
test -z "$ac_c_werror_flag" ||
18791
test ! -s conftest.err
18792
} && test -s conftest$ac_exeext &&
18793
$as_test_x conftest$ac_exeext; then
18795
lt_aix_libpath_sed='
18796
/Import File Strings/,/^$/ {
18802
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18803
# Check for a 64-bit object if we didn't find anything.
18804
if test -z "$aix_libpath"; then
18805
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18808
echo "$as_me: failed program was:" >&5
18809
sed 's/^/| /' conftest.$ac_ext >&5
18814
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18815
conftest$ac_exeext conftest.$ac_ext
18816
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18818
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18819
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"
18821
if test "$host_cpu" = ia64; then
18822
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18823
allow_undefined_flag_GCJ="-z nodefs"
18824
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"
18826
# Determine the default libpath from the value encoded in an empty executable.
18827
cat >conftest.$ac_ext <<_ACEOF
18830
cat confdefs.h >>conftest.$ac_ext
18831
cat >>conftest.$ac_ext <<_ACEOF
18832
/* end confdefs.h. */
18842
rm -f conftest.$ac_objext conftest$ac_exeext
18843
if { (ac_try="$ac_link"
18844
case "(($ac_try" in
18845
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18846
*) ac_try_echo=$ac_try;;
18848
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18849
(eval "$ac_link") 2>conftest.er1
18851
grep -v '^ *+' conftest.er1 >conftest.err
18853
cat conftest.err >&5
18854
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855
(exit $ac_status); } && {
18856
test -z "$ac_c_werror_flag" ||
18857
test ! -s conftest.err
18858
} && test -s conftest$ac_exeext &&
18859
$as_test_x conftest$ac_exeext; then
18861
lt_aix_libpath_sed='
18862
/Import File Strings/,/^$/ {
18868
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18869
# Check for a 64-bit object if we didn't find anything.
18870
if test -z "$aix_libpath"; then
18871
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18874
echo "$as_me: failed program was:" >&5
18875
sed 's/^/| /' conftest.$ac_ext >&5
18880
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18881
conftest$ac_exeext conftest.$ac_ext
18882
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18884
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18885
# Warning - without using the other run time loading flags,
18886
# -berok will link without error, but may produce a broken library.
18887
no_undefined_flag_GCJ=' ${wl}-bernotok'
18888
allow_undefined_flag_GCJ=' ${wl}-berok'
18889
# Exported symbols can be pulled into shared objects from archives
18890
whole_archive_flag_spec_GCJ='$convenience'
18891
archive_cmds_need_lc_GCJ=yes
18892
# This is similar to how AIX traditionally builds its shared libraries.
18893
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'
18899
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)'
18900
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18901
hardcode_minus_L_GCJ=yes
18902
# see comment about different semantics on the GNU ld section
18907
export_dynamic_flag_spec_GCJ=-rdynamic
18910
cygwin* | mingw* | pw32*)
18911
# When not using gcc, we currently assume that we are using
18912
# Microsoft Visual C++.
18913
# hardcode_libdir_flag_spec is actually meaningless, as there is
18914
# no search path for DLLs.
18915
hardcode_libdir_flag_spec_GCJ=' '
18916
allow_undefined_flag_GCJ=unsupported
18917
# Tell ltmain to make .lib files, not .a files.
18919
# Tell ltmain to make .dll files, not .so files.
18921
# FIXME: Setting linknames here is a bad hack.
18922
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18923
# The linker will automatically build a .lib file if we build a DLL.
18924
old_archive_From_new_cmds_GCJ='true'
18925
# FIXME: Should let the user specify the lib program.
18926
old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18927
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18928
enable_shared_with_static_runtimes_GCJ=yes
18931
darwin* | rhapsody*)
18933
rhapsody* | darwin1.[012])
18934
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18937
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18938
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18940
case ${MACOSX_DEPLOYMENT_TARGET} in
18942
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18945
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18951
archive_cmds_need_lc_GCJ=no
18952
hardcode_direct_GCJ=no
18953
hardcode_automatic_GCJ=yes
18954
hardcode_shlibpath_var_GCJ=unsupported
18955
whole_archive_flag_spec_GCJ=''
18956
link_all_deplibs_GCJ=yes
18957
if test "$GCC" = yes ; then
18958
output_verbose_link_cmd='echo'
18959
archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18960
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18961
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18962
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18963
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}'
18965
case $cc_basename in
18967
output_verbose_link_cmd='echo'
18968
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18969
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18970
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18971
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}'
18972
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}'
18982
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18983
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18984
hardcode_shlibpath_var_GCJ=no
18991
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18992
# support. Future versions do this automatically, but an explicit c++rt0.o
18993
# does not break anything, and helps significantly (at the cost of a little
18996
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18997
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18998
hardcode_direct_GCJ=yes
18999
hardcode_shlibpath_var_GCJ=no
19002
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
19004
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19005
hardcode_direct_GCJ=yes
19006
hardcode_minus_L_GCJ=yes
19007
hardcode_shlibpath_var_GCJ=no
19010
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19011
freebsd* | dragonfly*)
19012
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19013
hardcode_libdir_flag_spec_GCJ='-R$libdir'
19014
hardcode_direct_GCJ=yes
19015
hardcode_shlibpath_var_GCJ=no
19019
if test "$GCC" = yes; then
19020
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'
19022
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'
19024
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19025
hardcode_libdir_separator_GCJ=:
19026
hardcode_direct_GCJ=yes
19028
# hardcode_minus_L: Not really in the search PATH,
19029
# but as the default location of the library.
19030
hardcode_minus_L_GCJ=yes
19031
export_dynamic_flag_spec_GCJ='${wl}-E'
19035
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19036
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19038
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19040
if test "$with_gnu_ld" = no; then
19041
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19042
hardcode_libdir_separator_GCJ=:
19044
hardcode_direct_GCJ=yes
19045
export_dynamic_flag_spec_GCJ='${wl}-E'
19047
# hardcode_minus_L: Not really in the search PATH,
19048
# but as the default location of the library.
19049
hardcode_minus_L_GCJ=yes
19054
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19057
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19060
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19063
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19069
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19072
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19075
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19079
if test "$with_gnu_ld" = no; then
19080
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19081
hardcode_libdir_separator_GCJ=:
19085
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19086
hardcode_direct_GCJ=no
19087
hardcode_shlibpath_var_GCJ=no
19090
hardcode_direct_GCJ=yes
19091
export_dynamic_flag_spec_GCJ='${wl}-E'
19093
# hardcode_minus_L: Not really in the search PATH,
19094
# but as the default location of the library.
19095
hardcode_minus_L_GCJ=yes
19101
irix5* | irix6* | nonstopux*)
19102
if test "$GCC" = yes; then
19103
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'
19105
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'
19106
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19108
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19109
hardcode_libdir_separator_GCJ=:
19110
link_all_deplibs_GCJ=yes
19114
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19115
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19117
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19119
hardcode_libdir_flag_spec_GCJ='-R$libdir'
19120
hardcode_direct_GCJ=yes
19121
hardcode_shlibpath_var_GCJ=no
19125
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19126
hardcode_direct_GCJ=yes
19127
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19128
hardcode_libdir_separator_GCJ=:
19129
hardcode_shlibpath_var_GCJ=no
19133
if test -f /usr/libexec/ld.so; then
19134
hardcode_direct_GCJ=yes
19135
hardcode_shlibpath_var_GCJ=no
19136
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19137
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19138
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19139
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19140
export_dynamic_flag_spec_GCJ='${wl}-E'
19143
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19144
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19145
hardcode_libdir_flag_spec_GCJ='-R$libdir'
19148
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19149
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19159
hardcode_libdir_flag_spec_GCJ='-L$libdir'
19160
hardcode_minus_L_GCJ=yes
19161
allow_undefined_flag_GCJ=unsupported
19162
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'
19163
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19167
if test "$GCC" = yes; then
19168
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19169
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'
19171
allow_undefined_flag_GCJ=' -expect_unresolved \*'
19172
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'
19174
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19175
hardcode_libdir_separator_GCJ=:
19178
osf4* | osf5*) # as osf3* with the addition of -msym flag
19179
if test "$GCC" = yes; then
19180
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19181
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'
19182
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19184
allow_undefined_flag_GCJ=' -expect_unresolved \*'
19185
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'
19186
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~
19187
$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'
19189
# Both c and cxx compiler support -rpath directly
19190
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19192
hardcode_libdir_separator_GCJ=:
19196
no_undefined_flag_GCJ=' -z text'
19197
if test "$GCC" = yes; then
19199
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19200
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19201
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19204
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19205
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19206
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19208
hardcode_libdir_flag_spec_GCJ='-R$libdir'
19209
hardcode_shlibpath_var_GCJ=no
19211
solaris2.[0-5] | solaris2.[0-5].*) ;;
19213
# The compiler driver will combine and reorder linker options,
19214
# but understands `-z linker_flag'. GCC discards it without `$wl',
19215
# but is careful enough not to reorder.
19216
# Supported since Solaris 2.6 (maybe 2.5.1?)
19217
if test "$GCC" = yes; then
19218
whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19220
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
19224
link_all_deplibs_GCJ=yes
19228
if test "x$host_vendor" = xsequent; then
19229
# Use $CC to link under sequent, because it throws in some extra .o
19230
# files that make .init and .fini sections work.
19231
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19233
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19235
hardcode_libdir_flag_spec_GCJ='-L$libdir'
19236
hardcode_direct_GCJ=yes
19237
hardcode_minus_L_GCJ=yes
19238
hardcode_shlibpath_var_GCJ=no
19242
case $host_vendor in
19244
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19245
hardcode_direct_GCJ=yes # is this really true???
19248
## LD is ld it makes a PLAMLIB
19249
## CC just makes a GrossModule.
19250
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19251
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19252
hardcode_direct_GCJ=no
19255
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19256
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19259
runpath_var='LD_RUN_PATH'
19260
hardcode_shlibpath_var_GCJ=no
19264
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19265
hardcode_shlibpath_var_GCJ=no
19266
export_dynamic_flag_spec_GCJ='-Bexport'
19270
if test -d /usr/nec; then
19271
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19272
hardcode_shlibpath_var_GCJ=no
19273
runpath_var=LD_RUN_PATH
19274
hardcode_runpath_var=yes
19279
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19280
no_undefined_flag_GCJ='${wl}-z,text'
19281
archive_cmds_need_lc_GCJ=no
19282
hardcode_shlibpath_var_GCJ=no
19283
runpath_var='LD_RUN_PATH'
19285
if test "$GCC" = yes; then
19286
archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19287
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19289
archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19290
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19294
sysv5* | sco3.2v5* | sco5v6*)
19295
# Note: We can NOT use -z defs as we might desire, because we do not
19296
# link with -lc, and that would cause any symbols used from libc to
19297
# always be unresolved, which means just about no library would
19298
# ever link correctly. If we're not using GNU ld we use -z text
19299
# though, which does catch some bad symbols but isn't as heavy-handed
19301
no_undefined_flag_GCJ='${wl}-z,text'
19302
allow_undefined_flag_GCJ='${wl}-z,nodefs'
19303
archive_cmds_need_lc_GCJ=no
19304
hardcode_shlibpath_var_GCJ=no
19305
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19306
hardcode_libdir_separator_GCJ=':'
19307
link_all_deplibs_GCJ=yes
19308
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19309
runpath_var='LD_RUN_PATH'
19311
if test "$GCC" = yes; then
19312
archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19313
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19315
archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19316
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19321
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19322
hardcode_libdir_flag_spec_GCJ='-L$libdir'
19323
hardcode_shlibpath_var_GCJ=no
19332
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19333
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
19334
test "$ld_shlibs_GCJ" = no && can_build_shared=no
19337
# Do we need to explicitly link libc?
19339
case "x$archive_cmds_need_lc_GCJ" in
19341
# Assume -lc should be added
19342
archive_cmds_need_lc_GCJ=yes
19344
if test "$enable_shared" = yes && test "$GCC" = yes; then
19345
case $archive_cmds_GCJ in
19347
# FIXME: we may have to deal with multi-command sequences.
19350
# Test whether the compiler implicitly links with -lc since on some
19351
# systems, -lgcc has to come before -lc. If gcc already passes -lc
19352
# to ld, don't add -lc before -lgcc.
19353
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19354
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19356
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19358
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19359
(eval $ac_compile) 2>&5
19361
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19362
(exit $ac_status); } 2>conftest.err; then
19365
libobjs=conftest.$ac_objext
19367
wl=$lt_prog_compiler_wl_GCJ
19368
pic_flag=$lt_prog_compiler_pic_GCJ
19374
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19375
allow_undefined_flag_GCJ=
19376
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19377
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19379
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19380
(exit $ac_status); }
19382
archive_cmds_need_lc_GCJ=no
19384
archive_cmds_need_lc_GCJ=yes
19386
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19388
cat conftest.err 1>&5
19391
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19392
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
19399
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19400
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19401
library_names_spec=
19402
libname_spec='lib$name'
19406
postuninstall_cmds=
19410
shlibpath_overrides_runpath=unknown
19412
dynamic_linker="$host_os ld.so"
19413
sys_lib_dlsearch_path_spec="/lib /usr/lib"
19415
need_lib_prefix=unknown
19416
hardcode_into_libs=no
19418
# when you set need_version to no, make sure it does not cause -set_version
19419
# flags to be left without arguments
19420
need_version=unknown
19425
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19426
shlibpath_var=LIBPATH
19428
# AIX 3 has no versioning support, so we append a major version to the name.
19429
soname_spec='${libname}${release}${shared_ext}$major'
19436
hardcode_into_libs=yes
19437
if test "$host_cpu" = ia64; then
19438
# AIX 5 supports IA64
19439
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19440
shlibpath_var=LD_LIBRARY_PATH
19442
# With GCC up to 2.95.x, collect2 would create an import file
19443
# for dependence libraries. The import file would start with
19444
# the line `#! .'. This would cause the generated library to
19445
# depend on `.', always an invalid library. This was fixed in
19446
# development snapshots of GCC prior to 3.0.
19448
aix4 | aix4.[01] | aix4.[01].*)
19449
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19451
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19454
can_build_shared=no
19458
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19459
# soname into executable. Probably we can add versioning support to
19460
# collect2, so additional links can be useful in future.
19461
if test "$aix_use_runtimelinking" = yes; then
19462
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
19463
# instead of lib<name>.a to let people know that these are not
19464
# typical AIX shared libraries.
19465
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19467
# We preserve .a as extension for shared libraries through AIX4.2
19468
# and later when we are not doing run time linking.
19469
library_names_spec='${libname}${release}.a $libname.a'
19470
soname_spec='${libname}${release}${shared_ext}$major'
19472
shlibpath_var=LIBPATH
19477
library_names_spec='$libname.ixlibrary $libname.a'
19478
# Create ${libname}_ixlibrary.a entries in /sys/libs.
19479
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'
19483
library_names_spec='${libname}${shared_ext}'
19484
dynamic_linker="$host_os ld.so"
19485
shlibpath_var=LIBRARY_PATH
19491
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19492
soname_spec='${libname}${release}${shared_ext}$major'
19493
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19494
shlibpath_var=LD_LIBRARY_PATH
19495
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19496
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19497
# the default ld.so.conf also contains /usr/contrib/lib and
19498
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19499
# libtool to hard-code these into programs
19502
cygwin* | mingw* | pw32*)
19503
version_type=windows
19508
case $GCC,$host_os in
19509
yes,cygwin* | yes,mingw* | yes,pw32*)
19510
library_names_spec='$libname.dll.a'
19511
# DLL is installed to $(libdir)/../bin by postinstall_cmds
19512
postinstall_cmds='base_file=`basename \${file}`~
19513
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19514
dldir=$destdir/`dirname \$dlpath`~
19515
test -d \$dldir || mkdir -p \$dldir~
19516
$install_prog $dir/$dlname \$dldir/$dlname~
19517
chmod a+x \$dldir/$dlname'
19518
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19519
dlpath=$dir/\$dldll~
19521
shlibpath_overrides_runpath=yes
19525
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
19526
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19527
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19530
# MinGW DLLs use traditional 'lib' prefix
19531
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19532
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19533
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19534
# It is most probably a Windows format PATH printed by
19535
# mingw gcc, but we are running on Cygwin. Gcc prints its search
19536
# path with ; separators, and with drive letters. We can handle the
19537
# drive letters (cygwin fileutils understands them), so leave them,
19538
# especially as we might pass files found there to a mingw objdump,
19539
# which wouldn't understand a cygwinified path. Ahh.
19540
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19542
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19546
# pw32 DLLs use 'pw' prefix rather than 'lib'
19547
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19553
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19556
dynamic_linker='Win32 ld.exe'
19557
# FIXME: first we should search . and the directory the executable is in
19561
darwin* | rhapsody*)
19562
dynamic_linker="$host_os dyld"
19563
version_type=darwin
19566
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19567
soname_spec='${libname}${release}${major}$shared_ext'
19568
shlibpath_overrides_runpath=yes
19569
shlibpath_var=DYLD_LIBRARY_PATH
19570
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19572
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19579
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19580
soname_spec='${libname}${release}${shared_ext}$major'
19581
shlibpath_var=LD_LIBRARY_PATH
19588
freebsd* | dragonfly*)
19589
# DragonFly does not have aout. When/if they implement a new
19590
# versioning mechanism, adjust this.
19591
if test -x /usr/bin/objformat; then
19592
objformat=`/usr/bin/objformat`
19595
freebsd[123]*) objformat=aout ;;
19596
*) objformat=elf ;;
19599
version_type=freebsd-$objformat
19600
case $version_type in
19602
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19607
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19611
shlibpath_var=LD_LIBRARY_PATH
19614
shlibpath_overrides_runpath=yes
19616
freebsd3.[01]* | freebsdelf3.[01]*)
19617
shlibpath_overrides_runpath=yes
19618
hardcode_into_libs=yes
19620
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19621
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19622
shlibpath_overrides_runpath=no
19623
hardcode_into_libs=yes
19625
*) # from 4.6 on, and DragonFly
19626
shlibpath_overrides_runpath=yes
19627
hardcode_into_libs=yes
19636
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19637
soname_spec='${libname}${release}${shared_ext}$major'
19638
shlibpath_var=LD_LIBRARY_PATH
19639
hardcode_into_libs=yes
19642
hpux9* | hpux10* | hpux11*)
19643
# Give a soname corresponding to the major version so that dld.sl refuses to
19644
# link against other versions.
19651
hardcode_into_libs=yes
19652
dynamic_linker="$host_os dld.so"
19653
shlibpath_var=LD_LIBRARY_PATH
19654
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19655
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19656
soname_spec='${libname}${release}${shared_ext}$major'
19657
if test "X$HPUX_IA64_MODE" = X32; then
19658
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19660
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19662
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19666
hardcode_into_libs=yes
19667
dynamic_linker="$host_os dld.sl"
19668
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19669
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19670
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19671
soname_spec='${libname}${release}${shared_ext}$major'
19672
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19673
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19677
dynamic_linker="$host_os dld.sl"
19678
shlibpath_var=SHLIB_PATH
19679
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19680
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19681
soname_spec='${libname}${release}${shared_ext}$major'
19684
# HP-UX runs *really* slowly unless shared libraries are mode 555.
19685
postinstall_cmds='chmod 555 $lib'
19692
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19693
soname_spec='${libname}${release}${shared_ext}$major'
19694
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19695
shlibpath_var=LD_LIBRARY_PATH
19696
shlibpath_overrides_runpath=no
19697
hardcode_into_libs=yes
19700
irix5* | irix6* | nonstopux*)
19702
nonstopux*) version_type=nonstopux ;;
19704
if test "$lt_cv_prog_gnu_ld" = yes; then
19712
soname_spec='${libname}${release}${shared_ext}$major'
19713
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19715
irix5* | nonstopux*)
19716
libsuff= shlibsuff=
19719
case $LD in # libtool.m4 will add one of these switches to LD
19720
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19721
libsuff= shlibsuff= libmagic=32-bit;;
19722
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19723
libsuff=32 shlibsuff=N32 libmagic=N32;;
19724
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19725
libsuff=64 shlibsuff=64 libmagic=64-bit;;
19726
*) libsuff= shlibsuff= libmagic=never-match;;
19730
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19731
shlibpath_overrides_runpath=no
19732
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19733
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19734
hardcode_into_libs=yes
19737
# No shared lib support for Linux oldld, aout, or coff.
19738
linux*oldld* | linux*aout* | linux*coff*)
19742
# This must be Linux ELF.
19743
linux* | k*bsd*-gnu)
19747
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19748
soname_spec='${libname}${release}${shared_ext}$major'
19749
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19750
shlibpath_var=LD_LIBRARY_PATH
19751
shlibpath_overrides_runpath=no
19752
# This implies no fast_install, which is unacceptable.
19753
# Some rework will be needed to allow for fast_install
19754
# before this can be enabled.
19755
hardcode_into_libs=yes
19757
# Append ld.so.conf contents to the search path
19758
if test -f /etc/ld.so.conf; then
19759
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' ' '`
19760
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19763
# We used to test for /lib/ld.so.1 and disable shared libraries on
19764
# powerpc, because MkLinux only supported shared libraries with the
19765
# GNU dynamic linker. Since this was broken with cross compilers,
19766
# most powerpc-linux boxes support dynamic linking these days and
19767
# people can always --disable-shared, the test was removed, and we
19768
# assume the GNU/Linux dynamic linker is in use.
19769
dynamic_linker='GNU/Linux ld.so'
19776
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19777
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19778
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19779
dynamic_linker='NetBSD (a.out) ld.so'
19781
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19782
soname_spec='${libname}${release}${shared_ext}$major'
19783
dynamic_linker='NetBSD ld.elf_so'
19785
shlibpath_var=LD_LIBRARY_PATH
19786
shlibpath_overrides_runpath=yes
19787
hardcode_into_libs=yes
19792
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19793
shlibpath_var=LD_LIBRARY_PATH
19794
shlibpath_overrides_runpath=yes
19801
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19802
soname_spec='${libname}${release}${shared_ext}$major'
19803
shlibpath_var=LD_LIBRARY_PATH
19804
shlibpath_overrides_runpath=yes
19809
sys_lib_dlsearch_path_spec="/usr/lib"
19811
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19813
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19814
*) need_version=no ;;
19816
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19817
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19818
shlibpath_var=LD_LIBRARY_PATH
19819
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19821
openbsd2.[89] | openbsd2.[89].*)
19822
shlibpath_overrides_runpath=no
19825
shlibpath_overrides_runpath=yes
19829
shlibpath_overrides_runpath=yes
19834
libname_spec='$name'
19837
library_names_spec='$libname${shared_ext} $libname.a'
19838
dynamic_linker='OS/2 ld.exe'
19839
shlibpath_var=LIBPATH
19842
osf3* | osf4* | osf5*)
19846
soname_spec='${libname}${release}${shared_ext}$major'
19847
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19848
shlibpath_var=LD_LIBRARY_PATH
19849
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19850
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19861
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19862
soname_spec='${libname}${release}${shared_ext}$major'
19863
shlibpath_var=LD_LIBRARY_PATH
19864
shlibpath_overrides_runpath=yes
19865
hardcode_into_libs=yes
19866
# ldd complains unless libraries are executable
19867
postinstall_cmds='chmod +x $lib'
19872
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19873
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19874
shlibpath_var=LD_LIBRARY_PATH
19875
shlibpath_overrides_runpath=yes
19876
if test "$with_gnu_ld" = yes; then
19884
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19885
soname_spec='${libname}${release}${shared_ext}$major'
19886
shlibpath_var=LD_LIBRARY_PATH
19887
case $host_vendor in
19889
shlibpath_overrides_runpath=no
19891
export_dynamic_flag_spec='${wl}-Blargedynsym'
19892
runpath_var=LD_RUN_PATH
19900
shlibpath_overrides_runpath=no
19901
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19907
if test -d /usr/nec ;then
19909
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19910
soname_spec='$libname${shared_ext}.$major'
19911
shlibpath_var=LD_LIBRARY_PATH
19915
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19916
version_type=freebsd-elf
19919
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19920
soname_spec='${libname}${release}${shared_ext}$major'
19921
shlibpath_var=LD_LIBRARY_PATH
19922
hardcode_into_libs=yes
19923
if test "$with_gnu_ld" = yes; then
19924
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19925
shlibpath_overrides_runpath=no
19927
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19928
shlibpath_overrides_runpath=yes
19931
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19935
sys_lib_dlsearch_path_spec='/usr/lib'
19940
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19941
soname_spec='${libname}${release}${shared_ext}$major'
19942
shlibpath_var=LD_LIBRARY_PATH
19949
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19950
echo "${ECHO_T}$dynamic_linker" >&6; }
19951
test "$dynamic_linker" = no && can_build_shared=no
19953
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19954
if test "$GCC" = yes; then
19955
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19958
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19959
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19960
hardcode_action_GCJ=
19961
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19962
test -n "$runpath_var_GCJ" || \
19963
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19965
# We can hardcode non-existant directories.
19966
if test "$hardcode_direct_GCJ" != no &&
19967
# If the only mechanism to avoid hardcoding is shlibpath_var, we
19968
# have to relink, otherwise we might link with an installed library
19969
# when we should be linking with a yet-to-be-installed one
19970
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19971
test "$hardcode_minus_L_GCJ" != no; then
19972
# Linking always hardcodes the temporary library directory.
19973
hardcode_action_GCJ=relink
19975
# We can link without hardcoding, and we can hardcode nonexisting dirs.
19976
hardcode_action_GCJ=immediate
19979
# We cannot hardcode anything, or else we can only hardcode existing
19981
hardcode_action_GCJ=unsupported
19983
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19984
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19986
if test "$hardcode_action_GCJ" = relink; then
19987
# Fast installation is not supported
19988
enable_fast_install=no
19989
elif test "$shlibpath_overrides_runpath" = yes ||
19990
test "$enable_shared" = no; then
19991
# Fast installation is not necessary
19992
enable_fast_install=needless
19996
# The else clause should only fire when bootstrapping the
19997
# libtool distribution, otherwise you forgot to ship ltmain.sh
19998
# with your package, and you will get complaints that there are
19999
# no rules to generate ltmain.sh.
20000
if test -f "$ltmain"; then
20001
# See if we are running on zsh, and set the options which allow our commands through
20002
# without removal of \ escapes.
20003
if test -n "${ZSH_VERSION+set}" ; then
20004
setopt NO_GLOB_SUBST
20006
# Now quote all the things that may contain metacharacters while being
20007
# careful not to overquote the AC_SUBSTed values. We take copies of the
20008
# variables and quote the copies for generation of the libtool script.
20009
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20011
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20012
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20013
deplibs_check_method reload_flag reload_cmds need_locks \
20014
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20015
lt_cv_sys_global_symbol_to_c_name_address \
20016
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20017
old_postinstall_cmds old_postuninstall_cmds \
20021
lt_prog_compiler_wl_GCJ \
20022
lt_prog_compiler_pic_GCJ \
20023
lt_prog_compiler_static_GCJ \
20024
lt_prog_compiler_no_builtin_flag_GCJ \
20025
export_dynamic_flag_spec_GCJ \
20026
thread_safe_flag_spec_GCJ \
20027
whole_archive_flag_spec_GCJ \
20028
enable_shared_with_static_runtimes_GCJ \
20029
old_archive_cmds_GCJ \
20030
old_archive_from_new_cmds_GCJ \
20031
predep_objects_GCJ \
20032
postdep_objects_GCJ \
20035
compiler_lib_search_path_GCJ \
20037
archive_expsym_cmds_GCJ \
20038
postinstall_cmds_GCJ \
20039
postuninstall_cmds_GCJ \
20040
old_archive_from_expsyms_cmds_GCJ \
20041
allow_undefined_flag_GCJ \
20042
no_undefined_flag_GCJ \
20043
export_symbols_cmds_GCJ \
20044
hardcode_libdir_flag_spec_GCJ \
20045
hardcode_libdir_flag_spec_ld_GCJ \
20046
hardcode_libdir_separator_GCJ \
20047
hardcode_automatic_GCJ \
20049
module_expsym_cmds_GCJ \
20050
lt_cv_prog_compiler_c_o_GCJ \
20051
fix_srcfile_path_GCJ \
20052
exclude_expsyms_GCJ \
20053
include_expsyms_GCJ; do
20056
old_archive_cmds_GCJ | \
20057
old_archive_from_new_cmds_GCJ | \
20058
archive_cmds_GCJ | \
20059
archive_expsym_cmds_GCJ | \
20060
module_cmds_GCJ | \
20061
module_expsym_cmds_GCJ | \
20062
old_archive_from_expsyms_cmds_GCJ | \
20063
export_symbols_cmds_GCJ | \
20064
extract_expsyms_cmds | reload_cmds | finish_cmds | \
20065
postinstall_cmds | postuninstall_cmds | \
20066
old_postinstall_cmds | old_postuninstall_cmds | \
20067
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20068
# Double-quote double-evaled strings.
20069
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20072
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20078
*'\$0 --fallback-echo"')
20079
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20085
cat <<__EOF__ >> "$cfgfile"
20086
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20088
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20090
# Shell to use when invoking shell scripts.
20093
# Whether or not to build shared libraries.
20094
build_libtool_libs=$enable_shared
20096
# Whether or not to build static libraries.
20097
build_old_libs=$enable_static
20099
# Whether or not to add -lc for building shared libraries.
20100
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20102
# Whether or not to disallow shared libs when runtime libs are static
20103
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20105
# Whether or not to optimize for fast installation.
20106
fast_install=$enable_fast_install
20109
host_alias=$host_alias
20113
# The build system.
20114
build_alias=$build_alias
20118
# An echo program that does not interpret backslashes.
20123
AR_FLAGS=$lt_AR_FLAGS
20128
# LTCC compiler flags.
20129
LTCFLAGS=$lt_LTCFLAGS
20131
# A language-specific compiler.
20132
CC=$lt_compiler_GCJ
20134
# Is the compiler the GNU C compiler?
20140
# The linker used to build libraries.
20143
# Whether we need hard or soft links.
20146
# A BSD-compatible nm program.
20149
# A symbol stripping program
20152
# Used to examine libraries when file_magic_cmd begins "file"
20153
MAGIC_CMD=$MAGIC_CMD
20155
# Used on cygwin: DLL creation program.
20158
# Used on cygwin: object dumper.
20161
# Used on cygwin: assembler.
20164
# The name of the directory that contains temporary libtool files.
20167
# How to create reloadable object files.
20168
reload_flag=$lt_reload_flag
20169
reload_cmds=$lt_reload_cmds
20171
# How to pass a linker flag through the compiler.
20172
wl=$lt_lt_prog_compiler_wl_GCJ
20174
# Object file suffix (normally "o").
20175
objext="$ac_objext"
20177
# Old archive suffix (normally "a").
20180
# Shared library suffix (normally ".so").
20181
shrext_cmds='$shrext_cmds'
20183
# Executable file suffix (normally "").
20186
# Additional compiler flags for building library objects.
20187
pic_flag=$lt_lt_prog_compiler_pic_GCJ
20190
# What is the maximum length of a command?
20191
max_cmd_len=$lt_cv_sys_max_cmd_len
20193
# Does compiler simultaneously support -c and -o options?
20194
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20196
# Must we lock files when doing compilation?
20197
need_locks=$lt_need_locks
20199
# Do we need the lib prefix for modules?
20200
need_lib_prefix=$need_lib_prefix
20202
# Do we need a version for libraries?
20203
need_version=$need_version
20205
# Whether dlopen is supported.
20206
dlopen_support=$enable_dlopen
20208
# Whether dlopen of programs is supported.
20209
dlopen_self=$enable_dlopen_self
20211
# Whether dlopen of statically linked programs is supported.
20212
dlopen_self_static=$enable_dlopen_self_static
20214
# Compiler flag to prevent dynamic linking.
20215
link_static_flag=$lt_lt_prog_compiler_static_GCJ
20217
# Compiler flag to turn off builtin functions.
20218
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20220
# Compiler flag to allow reflexive dlopens.
20221
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20223
# Compiler flag to generate shared objects directly from archives.
20224
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20226
# Compiler flag to generate thread-safe objects.
20227
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20229
# Library versioning type.
20230
version_type=$version_type
20232
# Format of library name prefix.
20233
libname_spec=$lt_libname_spec
20235
# List of archive names. First name is the real one, the rest are links.
20236
# The last name is the one that the linker finds with -lNAME.
20237
library_names_spec=$lt_library_names_spec
20239
# The coded name of the library, if different from the real name.
20240
soname_spec=$lt_soname_spec
20242
# Commands used to build and install an old-style archive.
20244
old_archive_cmds=$lt_old_archive_cmds_GCJ
20245
old_postinstall_cmds=$lt_old_postinstall_cmds
20246
old_postuninstall_cmds=$lt_old_postuninstall_cmds
20248
# Create an old-style archive from a shared archive.
20249
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20251
# Create a temporary old-style archive to link instead of a shared archive.
20252
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20254
# Commands used to build and install a shared archive.
20255
archive_cmds=$lt_archive_cmds_GCJ
20256
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20257
postinstall_cmds=$lt_postinstall_cmds
20258
postuninstall_cmds=$lt_postuninstall_cmds
20260
# Commands used to build a loadable module (assumed same as above if empty)
20261
module_cmds=$lt_module_cmds_GCJ
20262
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20264
# Commands to strip libraries.
20265
old_striplib=$lt_old_striplib
20266
striplib=$lt_striplib
20268
# Dependencies to place before the objects being linked to create a
20270
predep_objects=$lt_predep_objects_GCJ
20272
# Dependencies to place after the objects being linked to create a
20274
postdep_objects=$lt_postdep_objects_GCJ
20276
# Dependencies to place before the objects being linked to create a
20278
predeps=$lt_predeps_GCJ
20280
# Dependencies to place after the objects being linked to create a
20282
postdeps=$lt_postdeps_GCJ
20284
# The library search path used internally by the compiler when linking
20285
# a shared library.
20286
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20288
# Method to check whether dependent libraries are shared objects.
20289
deplibs_check_method=$lt_deplibs_check_method
20291
# Command to use when deplibs_check_method == file_magic.
20292
file_magic_cmd=$lt_file_magic_cmd
20294
# Flag that allows shared libraries with undefined symbols to be built.
20295
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20297
# Flag that forces no undefined symbols.
20298
no_undefined_flag=$lt_no_undefined_flag_GCJ
20300
# Commands used to finish a libtool library installation in a directory.
20301
finish_cmds=$lt_finish_cmds
20303
# Same as above, but a single script fragment to be evaled but not shown.
20304
finish_eval=$lt_finish_eval
20306
# Take the output of nm and produce a listing of raw symbols and C names.
20307
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20309
# Transform the output of nm in a proper C declaration
20310
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20312
# Transform the output of nm in a C name address pair
20313
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20315
# This is the shared library runtime path variable.
20316
runpath_var=$runpath_var
20318
# This is the shared library path variable.
20319
shlibpath_var=$shlibpath_var
20321
# Is shlibpath searched before the hard-coded library search path?
20322
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20324
# How to hardcode a shared library path into an executable.
20325
hardcode_action=$hardcode_action_GCJ
20327
# Whether we should hardcode library paths into libraries.
20328
hardcode_into_libs=$hardcode_into_libs
20330
# Flag to hardcode \$libdir into a binary during linking.
20331
# This must work even if \$libdir does not exist.
20332
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20334
# If ld is used when linking, flag to hardcode \$libdir into
20335
# a binary during linking. This must work even if \$libdir does
20337
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20339
# Whether we need a single -rpath flag with a separated argument.
20340
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20342
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20343
# resulting binary.
20344
hardcode_direct=$hardcode_direct_GCJ
20346
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20347
# resulting binary.
20348
hardcode_minus_L=$hardcode_minus_L_GCJ
20350
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20351
# the resulting binary.
20352
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20354
# Set to yes if building a shared library automatically hardcodes DIR into the library
20355
# and all subsequent libraries and executables linked against it.
20356
hardcode_automatic=$hardcode_automatic_GCJ
20358
# Variables whose values should be saved in libtool wrapper scripts and
20359
# restored at relink time.
20360
variables_saved_for_relink="$variables_saved_for_relink"
20362
# Whether libtool must link a program against all its dependency libraries.
20363
link_all_deplibs=$link_all_deplibs_GCJ
20365
# Compile-time system search path for libraries
20366
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20368
# Run-time system search path for libraries
20369
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20371
# Fix the shell variable \$srcfile for the compiler.
20372
fix_srcfile_path=$lt_fix_srcfile_path
20374
# Set to yes if exported symbols are required.
20375
always_export_symbols=$always_export_symbols_GCJ
20377
# The commands to list exported symbols.
20378
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20380
# The commands to extract the exported symbol list from a shared archive.
20381
extract_expsyms_cmds=$lt_extract_expsyms_cmds
20383
# Symbols that should not be listed in the preloaded symbols.
20384
exclude_expsyms=$lt_exclude_expsyms_GCJ
20386
# Symbols that must always be exported.
20387
include_expsyms=$lt_include_expsyms_GCJ
20389
# ### END LIBTOOL TAG CONFIG: $tagname
20395
# If there is no Makefile yet, we rely on a make rule to execute
20396
# `config.status --recheck' to rerun these tests and create the
20397
# libtool script then.
20398
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20399
if test -f "$ltmain_in"; then
20400
test -f Makefile && make "$ltmain"
20406
ac_cpp='$CPP $CPPFLAGS'
20407
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20408
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20409
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20421
# Source file extension for RC test sources.
20424
# Object file extension for compiled RC test sources.
20428
# Code to be used in simple compile tests
20429
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
20431
# Code to be used in simple link tests
20432
lt_simple_link_test_code="$lt_simple_compile_test_code"
20434
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20436
# If no C compiler was specified, use CC.
20439
# If no C compiler flags were specified, use CFLAGS.
20440
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20442
# Allow CC to be a program name with arguments.
20446
# save warnings/boilerplate of simple test code
20447
ac_outfile=conftest.$ac_objext
20448
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
20449
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20450
_lt_compiler_boilerplate=`cat conftest.err`
20453
ac_outfile=conftest.$ac_objext
20454
echo "$lt_simple_link_test_code" >conftest.$ac_ext
20455
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20456
_lt_linker_boilerplate=`cat conftest.err`
20460
# Allow CC to be a program name with arguments.
20465
for cc_temp in $compiler""; do
20467
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20468
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20473
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20475
lt_cv_prog_compiler_c_o_RC=yes
20477
# The else clause should only fire when bootstrapping the
20478
# libtool distribution, otherwise you forgot to ship ltmain.sh
20479
# with your package, and you will get complaints that there are
20480
# no rules to generate ltmain.sh.
20481
if test -f "$ltmain"; then
20482
# See if we are running on zsh, and set the options which allow our commands through
20483
# without removal of \ escapes.
20484
if test -n "${ZSH_VERSION+set}" ; then
20485
setopt NO_GLOB_SUBST
20487
# Now quote all the things that may contain metacharacters while being
20488
# careful not to overquote the AC_SUBSTed values. We take copies of the
20489
# variables and quote the copies for generation of the libtool script.
20490
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20492
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20493
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20494
deplibs_check_method reload_flag reload_cmds need_locks \
20495
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20496
lt_cv_sys_global_symbol_to_c_name_address \
20497
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20498
old_postinstall_cmds old_postuninstall_cmds \
20502
lt_prog_compiler_wl_RC \
20503
lt_prog_compiler_pic_RC \
20504
lt_prog_compiler_static_RC \
20505
lt_prog_compiler_no_builtin_flag_RC \
20506
export_dynamic_flag_spec_RC \
20507
thread_safe_flag_spec_RC \
20508
whole_archive_flag_spec_RC \
20509
enable_shared_with_static_runtimes_RC \
20510
old_archive_cmds_RC \
20511
old_archive_from_new_cmds_RC \
20512
predep_objects_RC \
20513
postdep_objects_RC \
20516
compiler_lib_search_path_RC \
20518
archive_expsym_cmds_RC \
20519
postinstall_cmds_RC \
20520
postuninstall_cmds_RC \
20521
old_archive_from_expsyms_cmds_RC \
20522
allow_undefined_flag_RC \
20523
no_undefined_flag_RC \
20524
export_symbols_cmds_RC \
20525
hardcode_libdir_flag_spec_RC \
20526
hardcode_libdir_flag_spec_ld_RC \
20527
hardcode_libdir_separator_RC \
20528
hardcode_automatic_RC \
20530
module_expsym_cmds_RC \
20531
lt_cv_prog_compiler_c_o_RC \
20532
fix_srcfile_path_RC \
20533
exclude_expsyms_RC \
20534
include_expsyms_RC; do
20537
old_archive_cmds_RC | \
20538
old_archive_from_new_cmds_RC | \
20539
archive_cmds_RC | \
20540
archive_expsym_cmds_RC | \
20542
module_expsym_cmds_RC | \
20543
old_archive_from_expsyms_cmds_RC | \
20544
export_symbols_cmds_RC | \
20545
extract_expsyms_cmds | reload_cmds | finish_cmds | \
20546
postinstall_cmds | postuninstall_cmds | \
20547
old_postinstall_cmds | old_postuninstall_cmds | \
20548
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20549
# Double-quote double-evaled strings.
20550
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20553
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20559
*'\$0 --fallback-echo"')
20560
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20566
cat <<__EOF__ >> "$cfgfile"
20567
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20569
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20571
# Shell to use when invoking shell scripts.
20574
# Whether or not to build shared libraries.
20575
build_libtool_libs=$enable_shared
20577
# Whether or not to build static libraries.
20578
build_old_libs=$enable_static
20580
# Whether or not to add -lc for building shared libraries.
20581
build_libtool_need_lc=$archive_cmds_need_lc_RC
20583
# Whether or not to disallow shared libs when runtime libs are static
20584
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20586
# Whether or not to optimize for fast installation.
20587
fast_install=$enable_fast_install
20590
host_alias=$host_alias
20594
# The build system.
20595
build_alias=$build_alias
20599
# An echo program that does not interpret backslashes.
20604
AR_FLAGS=$lt_AR_FLAGS
20609
# LTCC compiler flags.
20610
LTCFLAGS=$lt_LTCFLAGS
20612
# A language-specific compiler.
20615
# Is the compiler the GNU C compiler?
20621
# The linker used to build libraries.
20624
# Whether we need hard or soft links.
20627
# A BSD-compatible nm program.
20630
# A symbol stripping program
20633
# Used to examine libraries when file_magic_cmd begins "file"
20634
MAGIC_CMD=$MAGIC_CMD
20636
# Used on cygwin: DLL creation program.
20639
# Used on cygwin: object dumper.
20642
# Used on cygwin: assembler.
20645
# The name of the directory that contains temporary libtool files.
20648
# How to create reloadable object files.
20649
reload_flag=$lt_reload_flag
20650
reload_cmds=$lt_reload_cmds
20652
# How to pass a linker flag through the compiler.
20653
wl=$lt_lt_prog_compiler_wl_RC
20655
# Object file suffix (normally "o").
20656
objext="$ac_objext"
20658
# Old archive suffix (normally "a").
20661
# Shared library suffix (normally ".so").
20662
shrext_cmds='$shrext_cmds'
20664
# Executable file suffix (normally "").
20667
# Additional compiler flags for building library objects.
20668
pic_flag=$lt_lt_prog_compiler_pic_RC
20671
# What is the maximum length of a command?
20672
max_cmd_len=$lt_cv_sys_max_cmd_len
20674
# Does compiler simultaneously support -c and -o options?
20675
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20677
# Must we lock files when doing compilation?
20678
need_locks=$lt_need_locks
20680
# Do we need the lib prefix for modules?
20681
need_lib_prefix=$need_lib_prefix
20683
# Do we need a version for libraries?
20684
need_version=$need_version
20686
# Whether dlopen is supported.
20687
dlopen_support=$enable_dlopen
20689
# Whether dlopen of programs is supported.
20690
dlopen_self=$enable_dlopen_self
20692
# Whether dlopen of statically linked programs is supported.
20693
dlopen_self_static=$enable_dlopen_self_static
20695
# Compiler flag to prevent dynamic linking.
20696
link_static_flag=$lt_lt_prog_compiler_static_RC
20698
# Compiler flag to turn off builtin functions.
20699
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20701
# Compiler flag to allow reflexive dlopens.
20702
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20704
# Compiler flag to generate shared objects directly from archives.
20705
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20707
# Compiler flag to generate thread-safe objects.
20708
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20710
# Library versioning type.
20711
version_type=$version_type
20713
# Format of library name prefix.
20714
libname_spec=$lt_libname_spec
20716
# List of archive names. First name is the real one, the rest are links.
20717
# The last name is the one that the linker finds with -lNAME.
20718
library_names_spec=$lt_library_names_spec
20720
# The coded name of the library, if different from the real name.
20721
soname_spec=$lt_soname_spec
20723
# Commands used to build and install an old-style archive.
20725
old_archive_cmds=$lt_old_archive_cmds_RC
20726
old_postinstall_cmds=$lt_old_postinstall_cmds
20727
old_postuninstall_cmds=$lt_old_postuninstall_cmds
20729
# Create an old-style archive from a shared archive.
20730
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20732
# Create a temporary old-style archive to link instead of a shared archive.
20733
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20735
# Commands used to build and install a shared archive.
20736
archive_cmds=$lt_archive_cmds_RC
20737
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20738
postinstall_cmds=$lt_postinstall_cmds
20739
postuninstall_cmds=$lt_postuninstall_cmds
20741
# Commands used to build a loadable module (assumed same as above if empty)
20742
module_cmds=$lt_module_cmds_RC
20743
module_expsym_cmds=$lt_module_expsym_cmds_RC
20745
# Commands to strip libraries.
20746
old_striplib=$lt_old_striplib
20747
striplib=$lt_striplib
20749
# Dependencies to place before the objects being linked to create a
20751
predep_objects=$lt_predep_objects_RC
20753
# Dependencies to place after the objects being linked to create a
20755
postdep_objects=$lt_postdep_objects_RC
20757
# Dependencies to place before the objects being linked to create a
20759
predeps=$lt_predeps_RC
20761
# Dependencies to place after the objects being linked to create a
20763
postdeps=$lt_postdeps_RC
20765
# The library search path used internally by the compiler when linking
20766
# a shared library.
20767
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20769
# Method to check whether dependent libraries are shared objects.
20770
deplibs_check_method=$lt_deplibs_check_method
20772
# Command to use when deplibs_check_method == file_magic.
20773
file_magic_cmd=$lt_file_magic_cmd
20775
# Flag that allows shared libraries with undefined symbols to be built.
20776
allow_undefined_flag=$lt_allow_undefined_flag_RC
20778
# Flag that forces no undefined symbols.
20779
no_undefined_flag=$lt_no_undefined_flag_RC
20781
# Commands used to finish a libtool library installation in a directory.
20782
finish_cmds=$lt_finish_cmds
20784
# Same as above, but a single script fragment to be evaled but not shown.
20785
finish_eval=$lt_finish_eval
20787
# Take the output of nm and produce a listing of raw symbols and C names.
20788
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20790
# Transform the output of nm in a proper C declaration
20791
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20793
# Transform the output of nm in a C name address pair
20794
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20796
# This is the shared library runtime path variable.
20797
runpath_var=$runpath_var
20799
# This is the shared library path variable.
20800
shlibpath_var=$shlibpath_var
20802
# Is shlibpath searched before the hard-coded library search path?
20803
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20805
# How to hardcode a shared library path into an executable.
20806
hardcode_action=$hardcode_action_RC
20808
# Whether we should hardcode library paths into libraries.
20809
hardcode_into_libs=$hardcode_into_libs
20811
# Flag to hardcode \$libdir into a binary during linking.
20812
# This must work even if \$libdir does not exist.
20813
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20815
# If ld is used when linking, flag to hardcode \$libdir into
20816
# a binary during linking. This must work even if \$libdir does
20818
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20820
# Whether we need a single -rpath flag with a separated argument.
20821
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20823
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20824
# resulting binary.
20825
hardcode_direct=$hardcode_direct_RC
20827
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20828
# resulting binary.
20829
hardcode_minus_L=$hardcode_minus_L_RC
20831
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20832
# the resulting binary.
20833
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20835
# Set to yes if building a shared library automatically hardcodes DIR into the library
20836
# and all subsequent libraries and executables linked against it.
20837
hardcode_automatic=$hardcode_automatic_RC
20839
# Variables whose values should be saved in libtool wrapper scripts and
20840
# restored at relink time.
20841
variables_saved_for_relink="$variables_saved_for_relink"
20843
# Whether libtool must link a program against all its dependency libraries.
20844
link_all_deplibs=$link_all_deplibs_RC
20846
# Compile-time system search path for libraries
20847
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20849
# Run-time system search path for libraries
20850
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20852
# Fix the shell variable \$srcfile for the compiler.
20853
fix_srcfile_path=$lt_fix_srcfile_path
20855
# Set to yes if exported symbols are required.
20856
always_export_symbols=$always_export_symbols_RC
20858
# The commands to list exported symbols.
20859
export_symbols_cmds=$lt_export_symbols_cmds_RC
20861
# The commands to extract the exported symbol list from a shared archive.
20862
extract_expsyms_cmds=$lt_extract_expsyms_cmds
20864
# Symbols that should not be listed in the preloaded symbols.
20865
exclude_expsyms=$lt_exclude_expsyms_RC
20867
# Symbols that must always be exported.
20868
include_expsyms=$lt_include_expsyms_RC
20870
# ### END LIBTOOL TAG CONFIG: $tagname
20876
# If there is no Makefile yet, we rely on a make rule to execute
20877
# `config.status --recheck' to rerun these tests and create the
20878
# libtool script then.
20879
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20880
if test -f "$ltmain_in"; then
20881
test -f Makefile && make "$ltmain"
20887
ac_cpp='$CPP $CPPFLAGS'
20888
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20889
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20890
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20897
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20898
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20899
{ (exit 1); exit 1; }; }
20903
# Append the new tag name to the list of available tags.
20904
if test -n "$tagname" ; then
20905
available_tags="$available_tags $tagname"
20911
# Now substitute the updated list of available tags.
20912
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20913
mv "${ofile}T" "$ofile"
20917
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20918
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20919
{ (exit 1); exit 1; }; }
20925
# This can be used to rebuild libtool when needed
20926
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20928
# Always use our own libtool.
20929
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20931
# Prevent multiple expansion
12641
{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12642
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12643
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12644
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12645
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12646
{ $as_echo "$as_me:$LINENO: result: yes" >&5
12647
$as_echo "yes" >&6; }
12649
# FIXME - insert some real tests, host_os isn't really good enough
12652
if test -n "$STRIP" ; then
12653
striplib="$STRIP -x"
12654
old_striplib="$STRIP -S"
12655
{ $as_echo "$as_me:$LINENO: result: yes" >&5
12656
$as_echo "yes" >&6; }
12658
{ $as_echo "$as_me:$LINENO: result: no" >&5
12659
$as_echo "no" >&6; }
12663
{ $as_echo "$as_me:$LINENO: result: no" >&5
12664
$as_echo "no" >&6; }
12680
# Report which library types will actually be built
12681
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12682
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12683
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
12684
$as_echo "$can_build_shared" >&6; }
12686
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12687
$as_echo_n "checking whether to build shared libraries... " >&6; }
12688
test "$can_build_shared" = "no" && enable_shared=no
12690
# On AIX, shared libraries and static libraries use the same namespace, and
12691
# are all built from PIC.
12694
test "$enable_shared" = yes && enable_static=no
12695
if test -n "$RANLIB"; then
12696
archive_cmds="$archive_cmds~\$RANLIB \$lib"
12697
postinstall_cmds='$RANLIB $lib'
12702
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12703
test "$enable_shared" = yes && enable_static=no
12707
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
12708
$as_echo "$enable_shared" >&6; }
12710
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12711
$as_echo_n "checking whether to build static libraries... " >&6; }
12712
# Make sure either enable_shared or enable_static is yes.
12713
test "$enable_shared" = yes || enable_static=yes
12714
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
12715
$as_echo "$enable_static" >&6; }
12722
ac_cpp='$CPP $CPPFLAGS'
12723
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12724
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12725
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12741
ac_config_commands="$ac_config_commands libtool"
12746
# Only expand once: