12406
# Report which library types will actually be built
12407
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12408
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12409
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
12410
echo "${ECHO_T}$can_build_shared" >&6; }
12412
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12413
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12414
test "$can_build_shared" = "no" && enable_shared=no
12416
# On AIX, shared libraries and static libraries use the same namespace, and
12417
# are all built from PIC.
12420
test "$enable_shared" = yes && enable_static=no
12421
if test -n "$RANLIB"; then
12422
archive_cmds="$archive_cmds~\$RANLIB \$lib"
12423
postinstall_cmds='$RANLIB $lib'
12428
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12429
test "$enable_shared" = yes && enable_static=no
12433
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
12434
echo "${ECHO_T}$enable_shared" >&6; }
12436
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12437
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12438
# Make sure either enable_shared or enable_static is yes.
12439
test "$enable_shared" = yes || enable_static=yes
12440
{ echo "$as_me:$LINENO: result: $enable_static" >&5
12441
echo "${ECHO_T}$enable_static" >&6; }
12443
# The else clause should only fire when bootstrapping the
12444
# libtool distribution, otherwise you forgot to ship ltmain.sh
12445
# with your package, and you will get complaints that there are
12446
# no rules to generate ltmain.sh.
12447
if test -f "$ltmain"; then
12448
# See if we are running on zsh, and set the options which allow our commands through
12449
# without removal of \ escapes.
12450
if test -n "${ZSH_VERSION+set}" ; then
12451
setopt NO_GLOB_SUBST
12453
# Now quote all the things that may contain metacharacters while being
12454
# careful not to overquote the AC_SUBSTed values. We take copies of the
12455
# variables and quote the copies for generation of the libtool script.
12456
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12458
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12459
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12460
deplibs_check_method reload_flag reload_cmds need_locks \
12461
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12462
lt_cv_sys_global_symbol_to_c_name_address \
12463
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12464
old_postinstall_cmds old_postuninstall_cmds \
12468
lt_prog_compiler_wl \
12469
lt_prog_compiler_pic \
12470
lt_prog_compiler_static \
12471
lt_prog_compiler_no_builtin_flag \
12472
export_dynamic_flag_spec \
12473
thread_safe_flag_spec \
12474
whole_archive_flag_spec \
12475
enable_shared_with_static_runtimes \
12477
old_archive_from_new_cmds \
12482
compiler_lib_search_path \
12483
compiler_lib_search_dirs \
12485
archive_expsym_cmds \
12487
postuninstall_cmds \
12488
old_archive_from_expsyms_cmds \
12489
allow_undefined_flag \
12490
no_undefined_flag \
12491
export_symbols_cmds \
12492
hardcode_libdir_flag_spec \
12493
hardcode_libdir_flag_spec_ld \
12494
hardcode_libdir_separator \
12495
hardcode_automatic \
12497
module_expsym_cmds \
12498
lt_cv_prog_compiler_c_o \
12501
include_expsyms; do
12504
old_archive_cmds | \
12505
old_archive_from_new_cmds | \
12507
archive_expsym_cmds | \
12509
module_expsym_cmds | \
12510
old_archive_from_expsyms_cmds | \
12511
export_symbols_cmds | \
12512
extract_expsyms_cmds | reload_cmds | finish_cmds | \
12513
postinstall_cmds | postuninstall_cmds | \
12514
old_postinstall_cmds | old_postuninstall_cmds | \
12515
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12516
# Double-quote double-evaled strings.
12517
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12520
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12526
*'\$0 --fallback-echo"')
12527
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12531
cfgfile="${ofile}T"
12532
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
12534
{ echo "$as_me:$LINENO: creating $ofile" >&5
12535
echo "$as_me: creating $ofile" >&6;}
12537
cat <<__EOF__ >> "$cfgfile"
12540
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12541
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
12542
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
12544
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
12545
# Free Software Foundation, Inc.
12547
# This file is part of GNU Libtool:
12548
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
12550
# This program is free software; you can redistribute it and/or modify
12551
# it under the terms of the GNU General Public License as published by
12552
# the Free Software Foundation; either version 2 of the License, or
12553
# (at your option) any later version.
12555
# This program is distributed in the hope that it will be useful, but
12556
# WITHOUT ANY WARRANTY; without even the implied warranty of
12557
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12558
# General Public License for more details.
12560
# You should have received a copy of the GNU General Public License
12561
# along with this program; if not, write to the Free Software
12562
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12564
# As a special exception to the GNU General Public License, if you
12565
# distribute this file as part of a program that contains a
12566
# configuration script generated by Autoconf, you may include it under
12567
# the same distribution terms that you use for the rest of that program.
12569
# A sed program that does not truncate output.
12572
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
12573
Xsed="$SED -e 1s/^X//"
12575
# The HP-UX ksh and POSIX shell print the target directory to stdout
12576
# if CDPATH is set.
12577
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12579
# The names of the tagged configurations supported by this script.
12582
# ### BEGIN LIBTOOL CONFIG
12584
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12586
# Shell to use when invoking shell scripts.
12589
# Whether or not to build shared libraries.
12590
build_libtool_libs=$enable_shared
12592
# Whether or not to build static libraries.
12593
build_old_libs=$enable_static
12595
# Whether or not to add -lc for building shared libraries.
12596
build_libtool_need_lc=$archive_cmds_need_lc
12598
# Whether or not to disallow shared libs when runtime libs are static
12599
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12601
# Whether or not to optimize for fast installation.
12602
fast_install=$enable_fast_install
12605
host_alias=$host_alias
12609
# The build system.
12610
build_alias=$build_alias
12614
# An echo program that does not interpret backslashes.
12619
AR_FLAGS=$lt_AR_FLAGS
12624
# LTCC compiler flags.
12625
LTCFLAGS=$lt_LTCFLAGS
12627
# A language-specific compiler.
12630
# Is the compiler the GNU C compiler?
12636
# The linker used to build libraries.
12639
# Whether we need hard or soft links.
12642
# A BSD-compatible nm program.
12645
# A symbol stripping program
12648
# Used to examine libraries when file_magic_cmd begins "file"
12649
MAGIC_CMD=$MAGIC_CMD
12651
# Used on cygwin: DLL creation program.
12654
# Used on cygwin: object dumper.
12657
# Used on cygwin: assembler.
12660
# The name of the directory that contains temporary libtool files.
12663
# How to create reloadable object files.
12664
reload_flag=$lt_reload_flag
12665
reload_cmds=$lt_reload_cmds
12667
# How to pass a linker flag through the compiler.
12668
wl=$lt_lt_prog_compiler_wl
12670
# Object file suffix (normally "o").
12671
objext="$ac_objext"
12673
# Old archive suffix (normally "a").
12676
# Shared library suffix (normally ".so").
12677
shrext_cmds='$shrext_cmds'
12679
# Executable file suffix (normally "").
12682
# Additional compiler flags for building library objects.
12683
pic_flag=$lt_lt_prog_compiler_pic
12686
# What is the maximum length of a command?
12687
max_cmd_len=$lt_cv_sys_max_cmd_len
12689
# Does compiler simultaneously support -c and -o options?
12690
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12692
# Must we lock files when doing compilation?
12693
need_locks=$lt_need_locks
12695
# Do we need the lib prefix for modules?
12696
need_lib_prefix=$need_lib_prefix
12698
# Do we need a version for libraries?
12699
need_version=$need_version
12701
# Whether dlopen is supported.
12702
dlopen_support=$enable_dlopen
12704
# Whether dlopen of programs is supported.
12705
dlopen_self=$enable_dlopen_self
12707
# Whether dlopen of statically linked programs is supported.
12708
dlopen_self_static=$enable_dlopen_self_static
12710
# Compiler flag to prevent dynamic linking.
12711
link_static_flag=$lt_lt_prog_compiler_static
12713
# Compiler flag to turn off builtin functions.
12714
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12716
# Compiler flag to allow reflexive dlopens.
12717
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12719
# Compiler flag to generate shared objects directly from archives.
12720
whole_archive_flag_spec=$lt_whole_archive_flag_spec
12722
# Compiler flag to generate thread-safe objects.
12723
thread_safe_flag_spec=$lt_thread_safe_flag_spec
12725
# Library versioning type.
12726
version_type=$version_type
12728
# Format of library name prefix.
12729
libname_spec=$lt_libname_spec
12731
# List of archive names. First name is the real one, the rest are links.
12732
# The last name is the one that the linker finds with -lNAME.
12733
library_names_spec=$lt_library_names_spec
12735
# The coded name of the library, if different from the real name.
12736
soname_spec=$lt_soname_spec
12738
# Commands used to build and install an old-style archive.
12740
old_archive_cmds=$lt_old_archive_cmds
12741
old_postinstall_cmds=$lt_old_postinstall_cmds
12742
old_postuninstall_cmds=$lt_old_postuninstall_cmds
12744
# Create an old-style archive from a shared archive.
12745
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12747
# Create a temporary old-style archive to link instead of a shared archive.
12748
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12750
# Commands used to build and install a shared archive.
12751
archive_cmds=$lt_archive_cmds
12752
archive_expsym_cmds=$lt_archive_expsym_cmds
12753
postinstall_cmds=$lt_postinstall_cmds
12754
postuninstall_cmds=$lt_postuninstall_cmds
12756
# Commands used to build a loadable module (assumed same as above if empty)
12757
module_cmds=$lt_module_cmds
12758
module_expsym_cmds=$lt_module_expsym_cmds
12760
# Commands to strip libraries.
12761
old_striplib=$lt_old_striplib
12762
striplib=$lt_striplib
12764
# Dependencies to place before the objects being linked to create a
12766
predep_objects=$lt_predep_objects
12768
# Dependencies to place after the objects being linked to create a
12770
postdep_objects=$lt_postdep_objects
12772
# Dependencies to place before the objects being linked to create a
12774
predeps=$lt_predeps
12776
# Dependencies to place after the objects being linked to create a
12778
postdeps=$lt_postdeps
12780
# The directories searched by this compiler when creating a shared
12782
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
12784
# The library search path used internally by the compiler when linking
12785
# a shared library.
12786
compiler_lib_search_path=$lt_compiler_lib_search_path
12788
# Method to check whether dependent libraries are shared objects.
12789
deplibs_check_method=$lt_deplibs_check_method
12791
# Command to use when deplibs_check_method == file_magic.
12792
file_magic_cmd=$lt_file_magic_cmd
12794
# Flag that allows shared libraries with undefined symbols to be built.
12795
allow_undefined_flag=$lt_allow_undefined_flag
12797
# Flag that forces no undefined symbols.
12798
no_undefined_flag=$lt_no_undefined_flag
12800
# Commands used to finish a libtool library installation in a directory.
12801
finish_cmds=$lt_finish_cmds
12803
# Same as above, but a single script fragment to be evaled but not shown.
12804
finish_eval=$lt_finish_eval
12806
# Take the output of nm and produce a listing of raw symbols and C names.
12807
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12809
# Transform the output of nm in a proper C declaration
12810
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12812
# Transform the output of nm in a C name address pair
12813
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12815
# This is the shared library runtime path variable.
12816
runpath_var=$runpath_var
12818
# This is the shared library path variable.
12819
shlibpath_var=$shlibpath_var
12821
# Is shlibpath searched before the hard-coded library search path?
12822
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12824
# How to hardcode a shared library path into an executable.
12825
hardcode_action=$hardcode_action
12827
# Whether we should hardcode library paths into libraries.
12828
hardcode_into_libs=$hardcode_into_libs
12830
# Flag to hardcode \$libdir into a binary during linking.
12831
# This must work even if \$libdir does not exist.
12832
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12834
# If ld is used when linking, flag to hardcode \$libdir into
12835
# a binary during linking. This must work even if \$libdir does
12837
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12839
# Whether we need a single -rpath flag with a separated argument.
12840
hardcode_libdir_separator=$lt_hardcode_libdir_separator
12842
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12843
# resulting binary.
12844
hardcode_direct=$hardcode_direct
12846
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12847
# resulting binary.
12848
hardcode_minus_L=$hardcode_minus_L
12850
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12851
# the resulting binary.
12852
hardcode_shlibpath_var=$hardcode_shlibpath_var
12854
# Set to yes if building a shared library automatically hardcodes DIR into the library
12855
# and all subsequent libraries and executables linked against it.
12856
hardcode_automatic=$hardcode_automatic
12858
# Variables whose values should be saved in libtool wrapper scripts and
12859
# restored at relink time.
12860
variables_saved_for_relink="$variables_saved_for_relink"
12862
# Whether libtool must link a program against all its dependency libraries.
12863
link_all_deplibs=$link_all_deplibs
12865
# Compile-time system search path for libraries
12866
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12868
# Run-time system search path for libraries
12869
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12871
# Fix the shell variable \$srcfile for the compiler.
12872
fix_srcfile_path=$lt_fix_srcfile_path
12874
# Set to yes if exported symbols are required.
12875
always_export_symbols=$always_export_symbols
12877
# The commands to list exported symbols.
12878
export_symbols_cmds=$lt_export_symbols_cmds
12880
# The commands to extract the exported symbol list from a shared archive.
12881
extract_expsyms_cmds=$lt_extract_expsyms_cmds
12883
# Symbols that should not be listed in the preloaded symbols.
12884
exclude_expsyms=$lt_exclude_expsyms
12886
# Symbols that must always be exported.
12887
include_expsyms=$lt_include_expsyms
12889
# ### END LIBTOOL CONFIG
12896
cat <<\EOF >> "$cfgfile"
12898
# AIX sometimes has problems with the GCC collect2 program. For some
12899
# reason, if we set the COLLECT_NAMES environment variable, the problems
12900
# vanish in a puff of smoke.
12901
if test "X${COLLECT_NAMES+set}" != Xset; then
12903
export COLLECT_NAMES
12909
# We use sed instead of cat because bash on DJGPP gets confused if
12910
# if finds mixed CR/LF and LF-only lines. Since sed operates in
12911
# text mode, it properly converts lines to CR/LF. This bash problem
12912
# is reportedly fixed, but why not run on old versions too?
12913
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12915
mv -f "$cfgfile" "$ofile" || \
12916
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12920
# If there is no Makefile yet, we rely on a make rule to execute
12921
# `config.status --recheck' to rerun these tests and create the
12922
# libtool script then.
12923
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12924
if test -f "$ltmain_in"; then
12925
test -f Makefile && make "$ltmain"
12931
ac_cpp='$CPP $CPPFLAGS'
12932
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12933
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12934
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12939
# Check whether --with-tags was given.
12940
if test "${with_tags+set}" = set; then
12941
withval=$with_tags; tagnames="$withval"
12945
if test -f "$ltmain" && test -n "$tagnames"; then
12946
if test ! -f "${ofile}"; then
12947
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12948
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12951
if test -z "$LTCC"; then
12952
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12953
if test -z "$LTCC"; then
12954
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12955
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12957
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12958
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12961
if test -z "$LTCFLAGS"; then
12962
eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
12965
# Extract list of available tagged configurations in $ofile.
12966
# Note that this assumes the entire list is on one line.
12967
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12969
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12970
for tagname in $tagnames; do
12972
# Check whether tagname contains only valid characters
12973
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12975
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12976
echo "$as_me: error: invalid tag name: $tagname" >&2;}
12977
{ (exit 1); exit 1; }; }
12981
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12983
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12984
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12985
{ (exit 1); exit 1; }; }
12988
# Update the list of available tags.
12989
if test -n "$tagname"; then
12990
echo appending configuration tag \"$tagname\" to $ofile
12994
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12995
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12996
(test "X$CXX" != "Xg++"))) ; then
12998
ac_cpp='$CXXCPP $CPPFLAGS'
12999
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13000
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13001
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13006
archive_cmds_need_lc_CXX=no
13007
allow_undefined_flag_CXX=
13008
always_export_symbols_CXX=no
13009
archive_expsym_cmds_CXX=
13010
export_dynamic_flag_spec_CXX=
13011
hardcode_direct_CXX=no
13012
hardcode_libdir_flag_spec_CXX=
13013
hardcode_libdir_flag_spec_ld_CXX=
13014
hardcode_libdir_separator_CXX=
13015
hardcode_minus_L_CXX=no
13016
hardcode_shlibpath_var_CXX=unsupported
13017
hardcode_automatic_CXX=no
13019
module_expsym_cmds_CXX=
13020
link_all_deplibs_CXX=unknown
13021
old_archive_cmds_CXX=$old_archive_cmds
13022
no_undefined_flag_CXX=
13023
whole_archive_flag_spec_CXX=
13024
enable_shared_with_static_runtimes_CXX=no
13026
# Dependencies to place before and after the object being linked:
13027
predep_objects_CXX=
13028
postdep_objects_CXX=
13031
compiler_lib_search_path_CXX=
13032
compiler_lib_search_dirs_CXX=
13034
# Source file extension for C++ test sources.
13037
# Object file extension for compiled C++ test sources.
13041
# Code to be used in simple compile tests
13042
lt_simple_compile_test_code="int some_variable = 0;"
13044
# Code to be used in simple link tests
13045
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13047
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13049
# If no C compiler was specified, use CC.
13052
# If no C compiler flags were specified, use CFLAGS.
13053
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13055
# Allow CC to be a program name with arguments.
13059
# save warnings/boilerplate of simple test code
13060
ac_outfile=conftest.$ac_objext
13061
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13062
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13063
_lt_compiler_boilerplate=`cat conftest.err`
13066
ac_outfile=conftest.$ac_objext
13067
echo "$lt_simple_link_test_code" >conftest.$ac_ext
13068
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13069
_lt_linker_boilerplate=`cat conftest.err`
13073
# Allow CC to be a program name with arguments.
13078
lt_save_with_gnu_ld=$with_gnu_ld
13079
lt_save_path_LD=$lt_cv_path_LD
13080
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13081
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13083
$as_unset lt_cv_prog_gnu_ld
13085
if test -n "${lt_cv_path_LDCXX+set}"; then
13086
lt_cv_path_LD=$lt_cv_path_LDCXX
13088
$as_unset lt_cv_path_LD
13090
test -z "${LDCXX+set}" || LD=$LDCXX
13094
for cc_temp in $compiler""; do
13096
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13097
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13102
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13105
# We don't want -fno-exception wen compiling C++ code, so set the
13106
# no_builtin_flag separately
13107
if test "$GXX" = yes; then
13108
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13110
lt_prog_compiler_no_builtin_flag_CXX=
13113
if test "$GXX" = yes; then
13114
# Set up default GNU C++ configuration
13117
# Check whether --with-gnu-ld was given.
13118
if test "${with_gnu_ld+set}" = set; then
13119
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13125
if test "$GCC" = yes; then
13126
# Check if gcc -print-prog-name=ld gives a path.
13127
{ echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13128
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
13131
# gcc leaves a trailing carriage return which upsets mingw
13132
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13134
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13137
# Accept absolute paths.
13139
re_direlt='/[^/][^/]*/\.\./'
13140
# Canonicalize the pathname of ld
13141
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
13142
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13143
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
13145
test -z "$LD" && LD="$ac_prog"
13148
# If it fails, then pretend we aren't using GCC.
13152
# If it is relative, then search for the first ld in PATH.
13153
with_gnu_ld=unknown
13156
elif test "$with_gnu_ld" = yes; then
13157
{ echo "$as_me:$LINENO: checking for GNU ld" >&5
13158
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
13160
{ echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13161
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
13163
if test "${lt_cv_path_LD+set}" = set; then
13164
echo $ECHO_N "(cached) $ECHO_C" >&6
13166
if test -z "$LD"; then
13167
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13168
for ac_dir in $PATH; do
13170
test -z "$ac_dir" && ac_dir=.
13171
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13172
lt_cv_path_LD="$ac_dir/$ac_prog"
13173
# Check to see if the program is GNU ld. I'd rather use --version,
13174
# but apparently some variants of GNU ld only accept -v.
13175
# Break only if it was the GNU/non-GNU ld that we prefer.
13176
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13177
*GNU* | *'with BFD'*)
13178
test "$with_gnu_ld" != no && break
13181
test "$with_gnu_ld" != yes && break
13188
lt_cv_path_LD="$LD" # Let the user override the test with a path.
13192
LD="$lt_cv_path_LD"
13193
if test -n "$LD"; then
13194
{ echo "$as_me:$LINENO: result: $LD" >&5
13195
echo "${ECHO_T}$LD" >&6; }
13197
{ echo "$as_me:$LINENO: result: no" >&5
13198
echo "${ECHO_T}no" >&6; }
13200
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13201
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13202
{ (exit 1); exit 1; }; }
13203
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13204
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
13205
if test "${lt_cv_prog_gnu_ld+set}" = set; then
13206
echo $ECHO_N "(cached) $ECHO_C" >&6
13208
# I'd rather use --version here, but apparently some GNU lds only accept -v.
13209
case `$LD -v 2>&1 </dev/null` in
13210
*GNU* | *'with BFD'*)
13211
lt_cv_prog_gnu_ld=yes
13214
lt_cv_prog_gnu_ld=no
13218
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13219
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
13220
with_gnu_ld=$lt_cv_prog_gnu_ld
13224
# Check if GNU C++ uses GNU ld as the underlying linker, since the
13225
# archiving commands below assume that GNU ld is being used.
13226
if test "$with_gnu_ld" = yes; then
13227
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13228
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'
13230
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13231
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13233
# If archive_cmds runs LD, not CC, wlarc should be empty
13234
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13235
# investigate it a little bit more. (MM)
13238
# ancient GNU ld didn't support --whole-archive et. al.
13239
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
13240
grep 'no-whole-archive' > /dev/null; then
13241
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13243
whole_archive_flag_spec_CXX=
13249
# A generic and very simple default shared library creation
13250
# command for GNU C++ for the case where it uses the native
13251
# linker, instead of GNU ld. If possible, this setting should
13252
# overridden to take advantage of the native linker features on
13253
# the platform it is being used on.
13254
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13257
# Commands to make compiler produce verbose output that lists
13258
# what "hidden" libraries, object files and flags are used when
13259
# linking a shared library.
13260
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13268
# PORTME: fill in a description of your system's C++ link characteristics
13269
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13270
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13274
# FIXME: insert proper C++ library support
13278
if test "$host_cpu" = ia64; then
13279
# On IA64, the linker does run time linking by default, so we don't
13280
# have to do anything special.
13281
aix_use_runtimelinking=no
13282
exp_sym_flag='-Bexport'
13285
aix_use_runtimelinking=no
13287
# Test if we are trying to use run time linking or normal
13288
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
13289
# need to do runtime linking.
13290
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13291
for ld_flag in $LDFLAGS; do
13294
aix_use_runtimelinking=yes
13302
exp_sym_flag='-bexport'
13303
no_entry_flag='-bnoentry'
13306
# When large executables or shared objects are built, AIX ld can
13307
# have problems creating the table of contents. If linking a library
13308
# or program results in "error TOC overflow" add -mminimal-toc to
13309
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13310
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13312
archive_cmds_CXX=''
13313
hardcode_direct_CXX=yes
13314
hardcode_libdir_separator_CXX=':'
13315
link_all_deplibs_CXX=yes
13317
if test "$GXX" = yes; then
13318
case $host_os in aix4.[012]|aix4.[012].*)
13319
# We only want to do this on AIX 4.2 and lower, the check
13320
# below for broken collect2 doesn't work under 4.3+
13321
collect2name=`${CC} -print-prog-name=collect2`
13322
if test -f "$collect2name" && \
13323
strings "$collect2name" | grep resolve_lib_name >/dev/null
13325
# We have reworked collect2
13328
# We have old collect2
13329
hardcode_direct_CXX=unsupported
13330
# It fails to find uninstalled libraries when the uninstalled
13331
# path is not listed in the libpath. Setting hardcode_minus_L
13332
# to unsupported forces relinking
13333
hardcode_minus_L_CXX=yes
13334
hardcode_libdir_flag_spec_CXX='-L$libdir'
13335
hardcode_libdir_separator_CXX=
13339
shared_flag='-shared'
13340
if test "$aix_use_runtimelinking" = yes; then
13341
shared_flag="$shared_flag "'${wl}-G'
13345
if test "$host_cpu" = ia64; then
13346
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13347
# chokes on -Wl,-G. The following line is correct:
13350
if test "$aix_use_runtimelinking" = yes; then
13351
shared_flag='${wl}-G'
13353
shared_flag='${wl}-bM:SRE'
13358
# It seems that -bexpall does not export symbols beginning with
13359
# underscore (_), so it is better to generate a list of symbols to export.
13360
always_export_symbols_CXX=yes
13361
if test "$aix_use_runtimelinking" = yes; then
13362
# Warning - without using the other runtime loading flags (-brtl),
13363
# -berok will link without error, but may produce a broken library.
13364
allow_undefined_flag_CXX='-berok'
13365
# Determine the default libpath from the value encoded in an empty executable.
13366
cat >conftest.$ac_ext <<_ACEOF
13369
cat confdefs.h >>conftest.$ac_ext
13370
cat >>conftest.$ac_ext <<_ACEOF
13371
/* end confdefs.h. */
13381
rm -f conftest.$ac_objext conftest$ac_exeext
13382
if { (ac_try="$ac_link"
13383
case "(($ac_try" in
13384
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13385
*) ac_try_echo=$ac_try;;
13387
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13388
(eval "$ac_link") 2>conftest.er1
13390
grep -v '^ *+' conftest.er1 >conftest.err
13392
cat conftest.err >&5
13393
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13394
(exit $ac_status); } && {
13395
test -z "$ac_cxx_werror_flag" ||
13396
test ! -s conftest.err
13397
} && test -s conftest$ac_exeext &&
13398
$as_test_x conftest$ac_exeext; then
13400
lt_aix_libpath_sed='
13401
/Import File Strings/,/^$/ {
13407
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13408
# Check for a 64-bit object if we didn't find anything.
13409
if test -z "$aix_libpath"; then
13410
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13413
echo "$as_me: failed program was:" >&5
13414
sed 's/^/| /' conftest.$ac_ext >&5
13419
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13420
conftest$ac_exeext conftest.$ac_ext
13421
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13423
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13425
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"
13427
if test "$host_cpu" = ia64; then
13428
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13429
allow_undefined_flag_CXX="-z nodefs"
13430
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"
13432
# Determine the default libpath from the value encoded in an empty executable.
13433
cat >conftest.$ac_ext <<_ACEOF
13436
cat confdefs.h >>conftest.$ac_ext
13437
cat >>conftest.$ac_ext <<_ACEOF
13438
/* end confdefs.h. */
13448
rm -f conftest.$ac_objext conftest$ac_exeext
13449
if { (ac_try="$ac_link"
13450
case "(($ac_try" in
13451
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13452
*) ac_try_echo=$ac_try;;
13454
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13455
(eval "$ac_link") 2>conftest.er1
13457
grep -v '^ *+' conftest.er1 >conftest.err
13459
cat conftest.err >&5
13460
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461
(exit $ac_status); } && {
13462
test -z "$ac_cxx_werror_flag" ||
13463
test ! -s conftest.err
13464
} && test -s conftest$ac_exeext &&
13465
$as_test_x conftest$ac_exeext; then
13467
lt_aix_libpath_sed='
13468
/Import File Strings/,/^$/ {
13474
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13475
# Check for a 64-bit object if we didn't find anything.
13476
if test -z "$aix_libpath"; then
13477
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13480
echo "$as_me: failed program was:" >&5
13481
sed 's/^/| /' conftest.$ac_ext >&5
13486
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13487
conftest$ac_exeext conftest.$ac_ext
13488
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13490
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13491
# Warning - without using the other run time loading flags,
13492
# -berok will link without error, but may produce a broken library.
13493
no_undefined_flag_CXX=' ${wl}-bernotok'
13494
allow_undefined_flag_CXX=' ${wl}-berok'
13495
# Exported symbols can be pulled into shared objects from archives
13496
whole_archive_flag_spec_CXX='$convenience'
13497
archive_cmds_need_lc_CXX=yes
13498
# This is similar to how AIX traditionally builds its shared libraries.
13499
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'
13505
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13506
allow_undefined_flag_CXX=unsupported
13507
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13508
# support --undefined. This deserves some investigation. FIXME
13509
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13516
case $cc_basename in
13518
# FIXME: insert proper C++ library support
13524
cygwin* | mingw* | pw32*)
13525
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13526
# as there is no search path for DLLs.
13527
hardcode_libdir_flag_spec_CXX='-L$libdir'
13528
allow_undefined_flag_CXX=unsupported
13529
always_export_symbols_CXX=no
13530
enable_shared_with_static_runtimes_CXX=yes
13532
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13533
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'
13534
# If the export-symbols file already is a .def file (1st line
13535
# is EXPORTS), use it as is; otherwise, prepend...
13536
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13537
cp $export_symbols $output_objdir/$soname.def;
13539
echo EXPORTS > $output_objdir/$soname.def;
13540
cat $export_symbols >> $output_objdir/$soname.def;
13542
$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'
13547
darwin* | rhapsody*)
13548
archive_cmds_need_lc_CXX=no
13549
hardcode_direct_CXX=no
13550
hardcode_automatic_CXX=yes
13551
hardcode_shlibpath_var_CXX=unsupported
13552
whole_archive_flag_spec_CXX=''
13553
link_all_deplibs_CXX=yes
13554
allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13555
if test "$GXX" = yes ; then
13556
output_verbose_link_cmd='echo'
13557
archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13558
module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13559
archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
13560
module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
13561
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13562
archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13563
archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
13566
case $cc_basename in
13568
output_verbose_link_cmd='echo'
13569
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'
13570
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13571
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13572
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}'
13573
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}'
13583
case $cc_basename in
13585
# FIXME: insert proper C++ library support
13589
# Green Hills C++ Compiler
13590
# FIXME: insert proper C++ library support
13594
# FIXME: insert proper C++ library support
13600
# C++ shared libraries reported to be fairly broken before switch to ELF
13604
archive_cmds_need_lc_CXX=no
13606
freebsd* | dragonfly*)
13607
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13614
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13615
hardcode_libdir_separator_CXX=:
13616
export_dynamic_flag_spec_CXX='${wl}-E'
13617
hardcode_direct_CXX=yes
13618
hardcode_minus_L_CXX=yes # Not in the search PATH,
13619
# but as the default
13620
# location of the library.
13622
case $cc_basename in
13624
# FIXME: insert proper C++ library support
13628
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'
13629
# Commands to make compiler produce verbose output that lists
13630
# what "hidden" libraries, object files and flags are used when
13631
# linking a shared library.
13633
# There doesn't appear to be a way to prevent this compiler from
13634
# explicitly linking system object files so we need to strip them
13635
# from the output so that they don't get included in the library
13637
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'
13640
if test "$GXX" = yes; then
13641
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'
13643
# FIXME: insert proper C++ library support
13650
if test $with_gnu_ld = no; then
13651
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13652
hardcode_libdir_separator_CXX=:
13657
export_dynamic_flag_spec_CXX='${wl}-E'
13663
hardcode_direct_CXX=no
13664
hardcode_shlibpath_var_CXX=no
13667
hardcode_direct_CXX=yes
13668
hardcode_minus_L_CXX=yes # Not in the search PATH,
13669
# but as the default
13670
# location of the library.
13674
case $cc_basename in
13676
# FIXME: insert proper C++ library support
13682
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13685
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13688
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13691
# Commands to make compiler produce verbose output that lists
13692
# what "hidden" libraries, object files and flags are used when
13693
# linking a shared library.
13695
# There doesn't appear to be a way to prevent this compiler from
13696
# explicitly linking system object files so we need to strip them
13697
# from the output so that they don't get included in the library
13699
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'
13702
if test "$GXX" = yes; then
13703
if test $with_gnu_ld = no; then
13706
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13709
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13712
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'
13717
# FIXME: insert proper C++ library support
13724
hardcode_direct_CXX=no
13725
hardcode_shlibpath_var_CXX=no
13726
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13727
export_dynamic_flag_spec_CXX='${wl}-E'
13728
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13729
# Instead, shared libraries are loaded at an image base (0x10000000 by
13730
# default) and relocated if they conflict, which is a slow very memory
13731
# consuming and fragmenting process. To avoid this, we pick a random,
13732
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13733
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
13734
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'
13735
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'
13738
case $cc_basename in
13741
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'
13743
# Archives containing C++ object files must be created using
13744
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
13745
# necessary to make sure instantiated templates are included
13747
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13750
if test "$GXX" = yes; then
13751
if test "$with_gnu_ld" = no; then
13752
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'
13754
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'
13757
link_all_deplibs_CXX=yes
13760
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13761
hardcode_libdir_separator_CXX=:
13763
linux* | k*bsd*-gnu)
13764
case $cc_basename in
13766
# Kuck and Associates, Inc. (KAI) C++ Compiler
13768
# KCC will only create a shared library if the output file
13769
# ends with ".so" (or ".sl" for HP-UX), so rename the library
13770
# to its proper name (with version) after linking.
13771
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'
13772
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'
13773
# Commands to make compiler produce verbose output that lists
13774
# what "hidden" libraries, object files and flags are used when
13775
# linking a shared library.
13777
# There doesn't appear to be a way to prevent this compiler from
13778
# explicitly linking system object files so we need to strip them
13779
# from the output so that they don't get included in the library
13781
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'
13783
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
13784
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13786
# Archives containing C++ object files must be created using
13787
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
13788
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13793
# version 8.0 and above of icpc choke on multiply defined symbols
13794
# if we add $predep_objects and $postdep_objects, however 7.1 and
13795
# earlier do not add the objects themselves.
13796
case `$CC -V 2>&1` in
13798
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13799
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'
13801
*) # Version 8.0 or newer
13804
ia64*) tmp_idyn=' -i_dynamic';;
13806
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13807
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'
13810
archive_cmds_need_lc_CXX=no
13811
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13812
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13813
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13816
# Portland Group C++ compiler
13817
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13818
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'
13820
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13821
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13822
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'
13826
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13827
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'
13829
runpath_var=LD_RUN_PATH
13830
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13831
hardcode_libdir_separator_CXX=:
13833
# Commands to make compiler produce verbose output that lists
13834
# what "hidden" libraries, object files and flags are used when
13835
# linking a shared library.
13837
# There doesn't appear to be a way to prevent this compiler from
13838
# explicitly linking system object files so we need to strip them
13839
# from the output so that they don't get included in the library
13841
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'
13844
case `$CC -V 2>&1 | sed 5q` in
13847
no_undefined_flag_CXX=' -zdefs'
13848
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13849
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'
13850
hardcode_libdir_flag_spec_CXX='-R$libdir'
13851
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'
13853
# Not sure whether something based on
13854
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13856
output_verbose_link_cmd='echo'
13858
# Archives containing C++ object files must be created using
13859
# "CC -xar", where "CC" is the Sun C++ compiler. This is
13860
# necessary to make sure instantiated templates are included
13862
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13869
# FIXME: insert proper C++ library support
13873
# FIXME: insert proper C++ library support
13877
case $cc_basename in
13879
# FIXME: insert proper C++ library support
13883
# FIXME: insert proper C++ library support
13888
netbsd* | netbsdelf*-gnu)
13889
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13890
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13892
hardcode_libdir_flag_spec_CXX='-R$libdir'
13893
hardcode_direct_CXX=yes
13894
hardcode_shlibpath_var_CXX=no
13896
# Workaround some broken pre-1.5 toolchains
13897
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13900
# C++ shared libraries are fairly broken
13904
if test -f /usr/libexec/ld.so; then
13905
hardcode_direct_CXX=yes
13906
hardcode_shlibpath_var_CXX=no
13907
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13908
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13909
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13910
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13911
export_dynamic_flag_spec_CXX='${wl}-E'
13912
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13914
output_verbose_link_cmd='echo'
13920
case $cc_basename in
13922
# Kuck and Associates, Inc. (KAI) C++ Compiler
13924
# KCC will only create a shared library if the output file
13925
# ends with ".so" (or ".sl" for HP-UX), so rename the library
13926
# to its proper name (with version) after linking.
13927
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'
13929
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13930
hardcode_libdir_separator_CXX=:
13932
# Archives containing C++ object files must be created using
13933
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
13934
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13938
# Rational C++ 2.4.1
13939
# FIXME: insert proper C++ library support
13943
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13944
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'
13946
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13947
hardcode_libdir_separator_CXX=:
13949
# Commands to make compiler produce verbose output that lists
13950
# what "hidden" libraries, object files and flags are used when
13951
# linking a shared library.
13953
# There doesn't appear to be a way to prevent this compiler from
13954
# explicitly linking system object files so we need to strip them
13955
# from the output so that they don't get included in the library
13957
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'
13960
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13961
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13962
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'
13964
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13965
hardcode_libdir_separator_CXX=:
13967
# Commands to make compiler produce verbose output that lists
13968
# what "hidden" libraries, object files and flags are used when
13969
# linking a shared library.
13970
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13973
# FIXME: insert proper C++ library support
13980
case $cc_basename in
13982
# Kuck and Associates, Inc. (KAI) C++ Compiler
13984
# KCC will only create a shared library if the output file
13985
# ends with ".so" (or ".sl" for HP-UX), so rename the library
13986
# to its proper name (with version) after linking.
13987
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'
13989
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13990
hardcode_libdir_separator_CXX=:
13992
# Archives containing C++ object files must be created using
13993
# the KAI C++ compiler.
13994
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13997
# Rational C++ 2.4.1
13998
# FIXME: insert proper C++ library support
14002
allow_undefined_flag_CXX=' -expect_unresolved \*'
14003
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'
14004
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14005
echo "-hidden">> $lib.exp~
14006
$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~
14009
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14010
hardcode_libdir_separator_CXX=:
14012
# Commands to make compiler produce verbose output that lists
14013
# what "hidden" libraries, object files and flags are used when
14014
# linking a shared library.
14016
# There doesn't appear to be a way to prevent this compiler from
14017
# explicitly linking system object files so we need to strip them
14018
# from the output so that they don't get included in the library
14020
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'
14023
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14024
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14025
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'
14027
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14028
hardcode_libdir_separator_CXX=:
14030
# Commands to make compiler produce verbose output that lists
14031
# what "hidden" libraries, object files and flags are used when
14032
# linking a shared library.
14033
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
14036
# FIXME: insert proper C++ library support
14043
# FIXME: insert proper C++ library support
14047
case $cc_basename in
14050
# FIXME: insert proper C++ library support
14055
# FIXME: insert proper C++ library support
14059
# FIXME: insert proper C++ library support
14065
case $cc_basename in
14067
# Sun C++ 4.2, 5.x and Centerline C++
14068
archive_cmds_need_lc_CXX=yes
14069
no_undefined_flag_CXX=' -zdefs'
14070
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14071
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14072
$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'
14074
hardcode_libdir_flag_spec_CXX='-R$libdir'
14075
hardcode_shlibpath_var_CXX=no
14077
solaris2.[0-5] | solaris2.[0-5].*) ;;
14079
# The compiler driver will combine and reorder linker options,
14080
# but understands `-z linker_flag'.
14081
# Supported since Solaris 2.6 (maybe 2.5.1?)
14082
whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14085
link_all_deplibs_CXX=yes
14087
output_verbose_link_cmd='echo'
14089
# Archives containing C++ object files must be created using
14090
# "CC -xar", where "CC" is the Sun C++ compiler. This is
14091
# necessary to make sure instantiated templates are included
14093
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14096
# Green Hills C++ Compiler
14097
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14099
# The C++ compiler must be used to create the archive.
14100
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14103
# GNU C++ compiler with Solaris linker
14104
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14105
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14106
if $CC --version | grep -v '^2\.7' > /dev/null; then
14107
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14108
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14109
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
14111
# Commands to make compiler produce verbose output that lists
14112
# what "hidden" libraries, object files and flags are used when
14113
# linking a shared library.
14114
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
14116
# g++ 2.7 appears to require `-G' NOT `-shared' on this
14118
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14119
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14120
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
14122
# Commands to make compiler produce verbose output that lists
14123
# what "hidden" libraries, object files and flags are used when
14124
# linking a shared library.
14125
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
14128
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14130
solaris2.[0-5] | solaris2.[0-5].*) ;;
14132
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14139
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14140
no_undefined_flag_CXX='${wl}-z,text'
14141
archive_cmds_need_lc_CXX=no
14142
hardcode_shlibpath_var_CXX=no
14143
runpath_var='LD_RUN_PATH'
14145
case $cc_basename in
14147
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14148
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14151
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14152
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14156
sysv5* | sco3.2v5* | sco5v6*)
14157
# Note: We can NOT use -z defs as we might desire, because we do not
14158
# link with -lc, and that would cause any symbols used from libc to
14159
# always be unresolved, which means just about no library would
14160
# ever link correctly. If we're not using GNU ld we use -z text
14161
# though, which does catch some bad symbols but isn't as heavy-handed
14163
# For security reasons, it is highly recommended that you always
14164
# use absolute paths for naming shared libraries, and exclude the
14165
# DT_RUNPATH tag from executables and libraries. But doing so
14166
# requires that you compile everything twice, which is a pain.
14167
# So that behaviour is only enabled if SCOABSPATH is set to a
14168
# non-empty value in the environment. Most likely only useful for
14169
# creating official distributions of packages.
14170
# This is a hack until libtool officially supports absolute path
14171
# names for shared libraries.
14172
no_undefined_flag_CXX='${wl}-z,text'
14173
allow_undefined_flag_CXX='${wl}-z,nodefs'
14174
archive_cmds_need_lc_CXX=no
14175
hardcode_shlibpath_var_CXX=no
14176
hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14177
hardcode_libdir_separator_CXX=':'
14178
link_all_deplibs_CXX=yes
14179
export_dynamic_flag_spec_CXX='${wl}-Bexport'
14180
runpath_var='LD_RUN_PATH'
14182
case $cc_basename in
14184
archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14185
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14188
archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14189
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14194
case $cc_basename in
14196
# NonStop-UX NCC 3.20
14197
# FIXME: insert proper C++ library support
14201
# FIXME: insert proper C++ library support
14207
# FIXME: insert proper C++ library support
14211
# FIXME: insert proper C++ library support
14215
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14216
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14217
test "$ld_shlibs_CXX" = no && can_build_shared=no
14222
cat > conftest.$ac_ext <<EOF
14226
Foo (void) { a = 0; }
14232
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14233
(eval $ac_compile) 2>&5
14235
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236
(exit $ac_status); }; then
14237
# Parse the compiler output and extract the necessary
14238
# objects, libraries and library flags.
14240
# Sentinel used to keep track of whether or not we are before
14241
# the conftest object file.
14242
pre_test_object_deps_done=no
14244
# The `*' in the case matches for architectures that use `case' in
14245
# $output_verbose_cmd can trigger glob expansion during the loop
14246
# eval without this substitution.
14247
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
14249
for p in `eval $output_verbose_link_cmd`; do
14253
# Some compilers place space between "-{L,R}" and the path.
14254
# Remove the space.
14255
if test $p = "-L" \
14256
|| test $p = "-R"; then
14263
if test "$pre_test_object_deps_done" = no; then
14266
# Internal compiler library paths should come after those
14267
# provided the user. The postdeps already come after the
14268
# user supplied libs so there is no need to process them.
14269
if test -z "$compiler_lib_search_path_CXX"; then
14270
compiler_lib_search_path_CXX="${prev}${p}"
14272
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14275
# The "-l" case would never come before the object being
14276
# linked, so don't bother handling this case.
14279
if test -z "$postdeps_CXX"; then
14280
postdeps_CXX="${prev}${p}"
14282
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14288
# This assumes that the test object file only shows up
14289
# once in the compiler output.
14290
if test "$p" = "conftest.$objext"; then
14291
pre_test_object_deps_done=yes
14295
if test "$pre_test_object_deps_done" = no; then
14296
if test -z "$predep_objects_CXX"; then
14297
predep_objects_CXX="$p"
14299
predep_objects_CXX="$predep_objects_CXX $p"
14302
if test -z "$postdep_objects_CXX"; then
14303
postdep_objects_CXX="$p"
14305
postdep_objects_CXX="$postdep_objects_CXX $p"
14310
*) ;; # Ignore the rest.
14318
echo "libtool.m4: error: problem compiling CXX test program"
14321
$rm -f confest.$objext
14323
compiler_lib_search_dirs_CXX=
14324
if test -n "$compiler_lib_search_path_CXX"; then
14325
compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14328
# PORTME: override above test on systems where it is broken
14331
# Interix 3.5 installs completely hosed .la files for C++, so rather than
14332
# hack all around it, let's just trust "g++" to DTRT.
14333
predep_objects_CXX=
14334
postdep_objects_CXX=
14339
case `$CC -V 2>&1 | sed 5q` in
14343
# The more standards-conforming stlport4 library is
14344
# incompatible with the Cstd library. Avoid specifying
14345
# it if it's in CXXFLAGS. Ignore libCrun as
14346
# -library=stlport4 depends on it.
14347
case " $CXX $CXXFLAGS " in
14348
*" -library=stlport4 "*)
14349
solaris_use_stlport4=yes
14352
if test "$solaris_use_stlport4" != yes; then
14353
postdeps_CXX='-library=Cstd -library=Crun'
14360
case $cc_basename in
14362
# The more standards-conforming stlport4 library is
14363
# incompatible with the Cstd library. Avoid specifying
14364
# it if it's in CXXFLAGS. Ignore libCrun as
14365
# -library=stlport4 depends on it.
14366
case " $CXX $CXXFLAGS " in
14367
*" -library=stlport4 "*)
14368
solaris_use_stlport4=yes
14372
# Adding this requires a known-good setup of shared libraries for
14373
# Sun compiler versions before 5.6, else PIC objects from an old
14374
# archive will be linked into the output, leading to subtle bugs.
14375
if test "$solaris_use_stlport4" != yes; then
14376
postdeps_CXX='-library=Cstd -library=Crun'
14383
case " $postdeps_CXX " in
14384
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14387
lt_prog_compiler_wl_CXX=
14388
lt_prog_compiler_pic_CXX=
14389
lt_prog_compiler_static_CXX=
14391
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14392
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14394
# C++ specific cases for pic, static, wl, etc.
14395
if test "$GXX" = yes; then
14396
lt_prog_compiler_wl_CXX='-Wl,'
14397
lt_prog_compiler_static_CXX='-static'
14401
# All AIX code is PIC.
14402
if test "$host_cpu" = ia64; then
14403
# AIX 5 now supports IA64 processor
14404
lt_prog_compiler_static_CXX='-Bstatic'
14408
# FIXME: we need at least 68020 code to build shared libraries, but
14409
# adding the `-m68020' flag to GCC prevents building anything better,
14411
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14413
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14414
# PIC is the default for these OSes.
14416
mingw* | cygwin* | os2* | pw32*)
14417
# This hack is so that the source file can tell whether it is being
14418
# built for inclusion in a dll (and should export symbols for example).
14419
# Although the cygwin gcc ignores -fPIC, still need this for old-style
14420
# (--disable-auto-import) libraries
14421
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14423
darwin* | rhapsody*)
14424
# PIC is the default on this platform
14425
# Common symbols not allowed in MH_DYLIB files
14426
lt_prog_compiler_pic_CXX='-fno-common'
14429
# DJGPP does not support shared libraries at all
14430
lt_prog_compiler_pic_CXX=
14433
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
14434
# Instead, we relocate shared libraries at runtime.
14437
if test -d /usr/nec; then
14438
lt_prog_compiler_pic_CXX=-Kconform_pic
14442
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14443
# not for PA HP-UX.
14448
lt_prog_compiler_pic_CXX='-fPIC'
14453
lt_prog_compiler_pic_CXX='-fPIC'
14459
# All AIX code is PIC.
14460
if test "$host_cpu" = ia64; then
14461
# AIX 5 now supports IA64 processor
14462
lt_prog_compiler_static_CXX='-Bstatic'
14464
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14468
case $cc_basename in
14470
# Green Hills C++ Compiler
14471
# _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"
14476
# PIC is the default on this platform
14477
# Common symbols not allowed in MH_DYLIB files
14478
case $cc_basename in
14480
lt_prog_compiler_pic_CXX='-qnocommon'
14481
lt_prog_compiler_wl_CXX='-Wl,'
14486
case $cc_basename in
14488
lt_prog_compiler_pic_CXX='-KPIC'
14491
# Green Hills C++ Compiler
14492
lt_prog_compiler_pic_CXX='-pic'
14498
freebsd* | dragonfly*)
14499
# FreeBSD uses GNU C++
14501
hpux9* | hpux10* | hpux11*)
14502
case $cc_basename in
14504
lt_prog_compiler_wl_CXX='-Wl,'
14505
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14506
if test "$host_cpu" != ia64; then
14507
lt_prog_compiler_pic_CXX='+Z'
14511
lt_prog_compiler_wl_CXX='-Wl,'
14512
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14518
lt_prog_compiler_pic_CXX='+Z'
14527
# This is c89, which is MS Visual C++ (no shared libs)
14528
# Anyone wants to do a port?
14530
irix5* | irix6* | nonstopux*)
14531
case $cc_basename in
14533
lt_prog_compiler_wl_CXX='-Wl,'
14534
lt_prog_compiler_static_CXX='-non_shared'
14535
# CC pic flag -KPIC is the default.
14541
linux* | k*bsd*-gnu)
14542
case $cc_basename in
14545
lt_prog_compiler_wl_CXX='--backend -Wl,'
14546
lt_prog_compiler_pic_CXX='-fPIC'
14550
lt_prog_compiler_wl_CXX='-Wl,'
14551
lt_prog_compiler_pic_CXX='-KPIC'
14552
lt_prog_compiler_static_CXX='-static'
14555
# Portland Group C++ compiler.
14556
lt_prog_compiler_wl_CXX='-Wl,'
14557
lt_prog_compiler_pic_CXX='-fpic'
14558
lt_prog_compiler_static_CXX='-Bstatic'
14562
# Make sure the PIC flag is empty. It appears that all Alpha
14563
# Linux and Compaq Tru64 Unix objects are PIC.
14564
lt_prog_compiler_pic_CXX=
14565
lt_prog_compiler_static_CXX='-non_shared'
14568
case `$CC -V 2>&1 | sed 5q` in
14571
lt_prog_compiler_pic_CXX='-KPIC'
14572
lt_prog_compiler_static_CXX='-Bstatic'
14573
lt_prog_compiler_wl_CXX='-Qoption ld '
14584
case $cc_basename in
14586
lt_prog_compiler_pic_CXX='-W c,exportall'
14592
netbsd* | netbsdelf*-gnu)
14594
osf3* | osf4* | osf5*)
14595
case $cc_basename in
14597
lt_prog_compiler_wl_CXX='--backend -Wl,'
14600
# Rational C++ 2.4.1
14601
lt_prog_compiler_pic_CXX='-pic'
14604
# Digital/Compaq C++
14605
lt_prog_compiler_wl_CXX='-Wl,'
14606
# Make sure the PIC flag is empty. It appears that all Alpha
14607
# Linux and Compaq Tru64 Unix objects are PIC.
14608
lt_prog_compiler_pic_CXX=
14609
lt_prog_compiler_static_CXX='-non_shared'
14618
case $cc_basename in
14620
# Sun C++ 4.2, 5.x and Centerline C++
14621
lt_prog_compiler_pic_CXX='-KPIC'
14622
lt_prog_compiler_static_CXX='-Bstatic'
14623
lt_prog_compiler_wl_CXX='-Qoption ld '
14626
# Green Hills C++ Compiler
14627
lt_prog_compiler_pic_CXX='-PIC'
14634
case $cc_basename in
14637
lt_prog_compiler_pic_CXX='-pic'
14638
lt_prog_compiler_static_CXX='-Bstatic'
14642
lt_prog_compiler_pic_CXX='-pic'
14649
case $cc_basename in
14651
# NonStop-UX NCC 3.20
14652
lt_prog_compiler_pic_CXX='-KPIC'
14658
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14659
case $cc_basename in
14661
lt_prog_compiler_wl_CXX='-Wl,'
14662
lt_prog_compiler_pic_CXX='-KPIC'
14663
lt_prog_compiler_static_CXX='-Bstatic'
14670
lt_prog_compiler_can_build_shared_CXX=no
14675
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14676
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14679
# Check to make sure the PIC flag actually works.
14681
if test -n "$lt_prog_compiler_pic_CXX"; then
14683
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14684
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14685
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14686
echo $ECHO_N "(cached) $ECHO_C" >&6
14688
lt_cv_prog_compiler_pic_works_CXX=no
14689
ac_outfile=conftest.$ac_objext
14690
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14691
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14692
# Insert the option either (1) after the last *FLAGS variable, or
14693
# (2) before a word containing "conftest.", or (3) at the end.
14694
# Note that $ac_compile itself does not contain backslashes and begins
14695
# with a dollar sign (not a hyphen), so the echo should work correctly.
14696
# The option is referenced via a variable to avoid confusing sed.
14697
lt_compile=`echo "$ac_compile" | $SED \
14698
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14699
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14700
-e 's:$: $lt_compiler_flag:'`
14701
(eval echo "\"\$as_me:14701: $lt_compile\"" >&5)
14702
(eval "$lt_compile" 2>conftest.err)
14704
cat conftest.err >&5
14705
echo "$as_me:14705: \$? = $ac_status" >&5
14706
if (exit $ac_status) && test -s "$ac_outfile"; then
14707
# The compiler can only warn and ignore the option if not recognized
14708
# So say no if there are warnings other than the usual output.
14709
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14710
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14711
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14712
lt_cv_prog_compiler_pic_works_CXX=yes
14718
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14719
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14721
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14722
case $lt_prog_compiler_pic_CXX in
14724
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14727
lt_prog_compiler_pic_CXX=
14728
lt_prog_compiler_can_build_shared_CXX=no
14733
# For platforms which do not support PIC, -DPIC is meaningless:
14735
lt_prog_compiler_pic_CXX=
14738
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14743
# Check to make sure the static flag actually works.
14745
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14746
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14747
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14748
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14749
echo $ECHO_N "(cached) $ECHO_C" >&6
14751
lt_cv_prog_compiler_static_works_CXX=no
14752
save_LDFLAGS="$LDFLAGS"
14753
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14754
echo "$lt_simple_link_test_code" > conftest.$ac_ext
14755
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14756
# The linker can only warn and ignore the option if not recognized
14757
# So say no if there are warnings
14758
if test -s conftest.err; then
14759
# Append any errors to the config.log.
14760
cat conftest.err 1>&5
14761
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14762
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14763
if diff conftest.exp conftest.er2 >/dev/null; then
14764
lt_cv_prog_compiler_static_works_CXX=yes
14767
lt_cv_prog_compiler_static_works_CXX=yes
14771
LDFLAGS="$save_LDFLAGS"
14774
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14775
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
14777
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14780
lt_prog_compiler_static_CXX=
14784
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14785
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14786
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14787
echo $ECHO_N "(cached) $ECHO_C" >&6
14789
lt_cv_prog_compiler_c_o_CXX=no
14790
$rm -r conftest 2>/dev/null
14794
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14796
lt_compiler_flag="-o out/conftest2.$ac_objext"
14797
# Insert the option either (1) after the last *FLAGS variable, or
14798
# (2) before a word containing "conftest.", or (3) at the end.
14799
# Note that $ac_compile itself does not contain backslashes and begins
14800
# with a dollar sign (not a hyphen), so the echo should work correctly.
14801
lt_compile=`echo "$ac_compile" | $SED \
14802
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14803
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14804
-e 's:$: $lt_compiler_flag:'`
14805
(eval echo "\"\$as_me:14805: $lt_compile\"" >&5)
14806
(eval "$lt_compile" 2>out/conftest.err)
14808
cat out/conftest.err >&5
14809
echo "$as_me:14809: \$? = $ac_status" >&5
14810
if (exit $ac_status) && test -s out/conftest2.$ac_objext
14812
# The compiler can only warn and ignore the option if not recognized
14813
# So say no if there are warnings
14814
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14815
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14816
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14817
lt_cv_prog_compiler_c_o_CXX=yes
14822
# SGI C++ compiler will create directory out/ii_files/ for
14823
# template instantiation
14824
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14825
$rm out/* && rmdir out
14831
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14832
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14835
hard_links="nottested"
14836
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14837
# do not overwrite the value of need_locks provided by the user
14838
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14839
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14842
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14844
ln conftest.a conftest.b 2>&5 || hard_links=no
14845
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14846
{ echo "$as_me:$LINENO: result: $hard_links" >&5
14847
echo "${ECHO_T}$hard_links" >&6; }
14848
if test "$hard_links" = no; then
14849
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14850
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14857
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14858
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14860
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14863
# If we're using GNU nm, then we don't want the "-C" option.
14864
# -C means demangle to AIX nm, but means don't demangle with GNU nm
14865
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14866
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'
14868
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'
14872
export_symbols_cmds_CXX="$ltdll_cmds"
14875
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'
14877
linux* | k*bsd*-gnu)
14878
link_all_deplibs_CXX=no
14881
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14884
exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14886
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14887
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14888
test "$ld_shlibs_CXX" = no && can_build_shared=no
14891
# Do we need to explicitly link libc?
14893
case "x$archive_cmds_need_lc_CXX" in
14895
# Assume -lc should be added
14896
archive_cmds_need_lc_CXX=yes
14898
if test "$enable_shared" = yes && test "$GCC" = yes; then
14899
case $archive_cmds_CXX in
14901
# FIXME: we may have to deal with multi-command sequences.
14904
# Test whether the compiler implicitly links with -lc since on some
14905
# systems, -lgcc has to come before -lc. If gcc already passes -lc
14906
# to ld, don't add -lc before -lgcc.
14907
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14908
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14910
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14912
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14913
(eval $ac_compile) 2>&5
14915
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916
(exit $ac_status); } 2>conftest.err; then
14919
libobjs=conftest.$ac_objext
14921
wl=$lt_prog_compiler_wl_CXX
14922
pic_flag=$lt_prog_compiler_pic_CXX
14928
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14929
allow_undefined_flag_CXX=
14930
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14931
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14933
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14934
(exit $ac_status); }
14936
archive_cmds_need_lc_CXX=no
14938
archive_cmds_need_lc_CXX=yes
14940
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14942
cat conftest.err 1>&5
14945
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14946
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
14953
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14954
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14955
library_names_spec=
14956
libname_spec='lib$name'
14960
postuninstall_cmds=
14964
shlibpath_overrides_runpath=unknown
14966
dynamic_linker="$host_os ld.so"
14967
sys_lib_dlsearch_path_spec="/lib /usr/lib"
14969
need_lib_prefix=unknown
14970
hardcode_into_libs=no
14972
# when you set need_version to no, make sure it does not cause -set_version
14973
# flags to be left without arguments
14974
need_version=unknown
14979
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14980
shlibpath_var=LIBPATH
14982
# AIX 3 has no versioning support, so we append a major version to the name.
14983
soname_spec='${libname}${release}${shared_ext}$major'
14990
hardcode_into_libs=yes
14991
if test "$host_cpu" = ia64; then
14992
# AIX 5 supports IA64
14993
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14994
shlibpath_var=LD_LIBRARY_PATH
14996
# With GCC up to 2.95.x, collect2 would create an import file
14997
# for dependence libraries. The import file would start with
14998
# the line `#! .'. This would cause the generated library to
14999
# depend on `.', always an invalid library. This was fixed in
15000
# development snapshots of GCC prior to 3.0.
15002
aix4 | aix4.[01] | aix4.[01].*)
15003
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15005
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15008
can_build_shared=no
15012
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15013
# soname into executable. Probably we can add versioning support to
15014
# collect2, so additional links can be useful in future.
15015
if test "$aix_use_runtimelinking" = yes; then
15016
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
15017
# instead of lib<name>.a to let people know that these are not
15018
# typical AIX shared libraries.
15019
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15021
# We preserve .a as extension for shared libraries through AIX4.2
15022
# and later when we are not doing run time linking.
15023
library_names_spec='${libname}${release}.a $libname.a'
15024
soname_spec='${libname}${release}${shared_ext}$major'
15026
shlibpath_var=LIBPATH
15031
library_names_spec='$libname.ixlibrary $libname.a'
15032
# Create ${libname}_ixlibrary.a entries in /sys/libs.
15033
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'
15037
library_names_spec='${libname}${shared_ext}'
15038
dynamic_linker="$host_os ld.so"
15039
shlibpath_var=LIBRARY_PATH
15045
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15046
soname_spec='${libname}${release}${shared_ext}$major'
15047
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15048
shlibpath_var=LD_LIBRARY_PATH
15049
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15050
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15051
# the default ld.so.conf also contains /usr/contrib/lib and
15052
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15053
# libtool to hard-code these into programs
15056
cygwin* | mingw* | pw32*)
15057
version_type=windows
15062
case $GCC,$host_os in
15063
yes,cygwin* | yes,mingw* | yes,pw32*)
15064
library_names_spec='$libname.dll.a'
15065
# DLL is installed to $(libdir)/../bin by postinstall_cmds
15066
postinstall_cmds='base_file=`basename \${file}`~
15067
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15068
dldir=$destdir/`dirname \$dlpath`~
15069
test -d \$dldir || mkdir -p \$dldir~
15070
$install_prog $dir/$dlname \$dldir/$dlname~
15071
chmod a+x \$dldir/$dlname'
15072
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15073
dlpath=$dir/\$dldll~
15075
shlibpath_overrides_runpath=yes
15079
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
15080
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15081
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15084
# MinGW DLLs use traditional 'lib' prefix
15085
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15086
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15087
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15088
# It is most probably a Windows format PATH printed by
15089
# mingw gcc, but we are running on Cygwin. Gcc prints its search
15090
# path with ; separators, and with drive letters. We can handle the
15091
# drive letters (cygwin fileutils understands them), so leave them,
15092
# especially as we might pass files found there to a mingw objdump,
15093
# which wouldn't understand a cygwinified path. Ahh.
15094
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15096
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15100
# pw32 DLLs use 'pw' prefix rather than 'lib'
15101
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15107
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15110
dynamic_linker='Win32 ld.exe'
15111
# FIXME: first we should search . and the directory the executable is in
15115
darwin* | rhapsody*)
15116
dynamic_linker="$host_os dyld"
15117
version_type=darwin
15120
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15121
soname_spec='${libname}${release}${major}$shared_ext'
15122
shlibpath_overrides_runpath=yes
15123
shlibpath_var=DYLD_LIBRARY_PATH
15124
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15126
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15133
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15134
soname_spec='${libname}${release}${shared_ext}$major'
15135
shlibpath_var=LD_LIBRARY_PATH
15142
freebsd* | dragonfly*)
15143
# DragonFly does not have aout. When/if they implement a new
15144
# versioning mechanism, adjust this.
15145
if test -x /usr/bin/objformat; then
15146
objformat=`/usr/bin/objformat`
15149
freebsd[123]*) objformat=aout ;;
15150
*) objformat=elf ;;
15153
version_type=freebsd-$objformat
15154
case $version_type in
15156
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15161
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15165
shlibpath_var=LD_LIBRARY_PATH
15168
shlibpath_overrides_runpath=yes
15170
freebsd3.[01]* | freebsdelf3.[01]*)
15171
shlibpath_overrides_runpath=yes
15172
hardcode_into_libs=yes
15174
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15175
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15176
shlibpath_overrides_runpath=no
15177
hardcode_into_libs=yes
15179
*) # from 4.6 on, and DragonFly
15180
shlibpath_overrides_runpath=yes
15181
hardcode_into_libs=yes
15190
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15191
soname_spec='${libname}${release}${shared_ext}$major'
15192
shlibpath_var=LD_LIBRARY_PATH
15193
hardcode_into_libs=yes
15196
hpux9* | hpux10* | hpux11*)
15197
# Give a soname corresponding to the major version so that dld.sl refuses to
15198
# link against other versions.
15205
hardcode_into_libs=yes
15206
dynamic_linker="$host_os dld.so"
15207
shlibpath_var=LD_LIBRARY_PATH
15208
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15209
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15210
soname_spec='${libname}${release}${shared_ext}$major'
15211
if test "X$HPUX_IA64_MODE" = X32; then
15212
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15214
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15216
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15220
hardcode_into_libs=yes
15221
dynamic_linker="$host_os dld.sl"
15222
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15223
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15224
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15225
soname_spec='${libname}${release}${shared_ext}$major'
15226
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15227
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15231
dynamic_linker="$host_os dld.sl"
15232
shlibpath_var=SHLIB_PATH
15233
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15234
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15235
soname_spec='${libname}${release}${shared_ext}$major'
15238
# HP-UX runs *really* slowly unless shared libraries are mode 555.
15239
postinstall_cmds='chmod 555 $lib'
15246
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15247
soname_spec='${libname}${release}${shared_ext}$major'
15248
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15249
shlibpath_var=LD_LIBRARY_PATH
15250
shlibpath_overrides_runpath=no
15251
hardcode_into_libs=yes
15254
irix5* | irix6* | nonstopux*)
15256
nonstopux*) version_type=nonstopux ;;
15258
if test "$lt_cv_prog_gnu_ld" = yes; then
15266
soname_spec='${libname}${release}${shared_ext}$major'
15267
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15269
irix5* | nonstopux*)
15270
libsuff= shlibsuff=
15273
case $LD in # libtool.m4 will add one of these switches to LD
15274
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15275
libsuff= shlibsuff= libmagic=32-bit;;
15276
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15277
libsuff=32 shlibsuff=N32 libmagic=N32;;
15278
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15279
libsuff=64 shlibsuff=64 libmagic=64-bit;;
15280
*) libsuff= shlibsuff= libmagic=never-match;;
15284
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15285
shlibpath_overrides_runpath=no
15286
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15287
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15288
hardcode_into_libs=yes
15291
# No shared lib support for Linux oldld, aout, or coff.
15292
linux*oldld* | linux*aout* | linux*coff*)
15296
# This must be Linux ELF.
15297
linux* | k*bsd*-gnu)
15301
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15302
soname_spec='${libname}${release}${shared_ext}$major'
15303
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15304
shlibpath_var=LD_LIBRARY_PATH
15305
shlibpath_overrides_runpath=no
15306
# This implies no fast_install, which is unacceptable.
15307
# Some rework will be needed to allow for fast_install
15308
# before this can be enabled.
15309
hardcode_into_libs=yes
15311
# Append ld.so.conf contents to the search path
15312
if test -f /etc/ld.so.conf; then
15313
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' ' '`
15314
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15317
# We used to test for /lib/ld.so.1 and disable shared libraries on
15318
# powerpc, because MkLinux only supported shared libraries with the
15319
# GNU dynamic linker. Since this was broken with cross compilers,
15320
# most powerpc-linux boxes support dynamic linking these days and
15321
# people can always --disable-shared, the test was removed, and we
15322
# assume the GNU/Linux dynamic linker is in use.
15323
dynamic_linker='GNU/Linux ld.so'
15330
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15331
soname_spec='${libname}${release}${shared_ext}$major'
15332
shlibpath_var=LD_LIBRARY_PATH
15333
shlibpath_overrides_runpath=no
15334
hardcode_into_libs=yes
15335
dynamic_linker='NetBSD ld.elf_so'
15342
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15343
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15344
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15345
dynamic_linker='NetBSD (a.out) ld.so'
15347
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15348
soname_spec='${libname}${release}${shared_ext}$major'
15349
dynamic_linker='NetBSD ld.elf_so'
15351
shlibpath_var=LD_LIBRARY_PATH
15352
shlibpath_overrides_runpath=yes
15353
hardcode_into_libs=yes
15358
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15359
shlibpath_var=LD_LIBRARY_PATH
15360
shlibpath_overrides_runpath=yes
15367
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15368
soname_spec='${libname}${release}${shared_ext}$major'
15369
shlibpath_var=LD_LIBRARY_PATH
15370
shlibpath_overrides_runpath=yes
15375
sys_lib_dlsearch_path_spec="/usr/lib"
15377
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15379
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15380
*) need_version=no ;;
15382
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15383
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15384
shlibpath_var=LD_LIBRARY_PATH
15385
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15387
openbsd2.[89] | openbsd2.[89].*)
15388
shlibpath_overrides_runpath=no
15391
shlibpath_overrides_runpath=yes
15395
shlibpath_overrides_runpath=yes
15400
libname_spec='$name'
15403
library_names_spec='$libname${shared_ext} $libname.a'
15404
dynamic_linker='OS/2 ld.exe'
15405
shlibpath_var=LIBPATH
15408
osf3* | osf4* | osf5*)
15412
soname_spec='${libname}${release}${shared_ext}$major'
15413
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15414
shlibpath_var=LD_LIBRARY_PATH
15415
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15416
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15427
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15428
soname_spec='${libname}${release}${shared_ext}$major'
15429
shlibpath_var=LD_LIBRARY_PATH
15430
shlibpath_overrides_runpath=yes
15431
hardcode_into_libs=yes
15432
# ldd complains unless libraries are executable
15433
postinstall_cmds='chmod +x $lib'
15438
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15439
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15440
shlibpath_var=LD_LIBRARY_PATH
15441
shlibpath_overrides_runpath=yes
15442
if test "$with_gnu_ld" = yes; then
15450
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15451
soname_spec='${libname}${release}${shared_ext}$major'
15452
shlibpath_var=LD_LIBRARY_PATH
15453
case $host_vendor in
15455
shlibpath_overrides_runpath=no
15457
export_dynamic_flag_spec='${wl}-Blargedynsym'
15458
runpath_var=LD_RUN_PATH
15466
shlibpath_overrides_runpath=no
15467
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15473
if test -d /usr/nec ;then
15475
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15476
soname_spec='$libname${shared_ext}.$major'
15477
shlibpath_var=LD_LIBRARY_PATH
15481
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15482
version_type=freebsd-elf
15485
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15486
soname_spec='${libname}${release}${shared_ext}$major'
15487
shlibpath_var=LD_LIBRARY_PATH
15488
hardcode_into_libs=yes
15489
if test "$with_gnu_ld" = yes; then
15490
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15491
shlibpath_overrides_runpath=no
15493
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15494
shlibpath_overrides_runpath=yes
15497
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15501
sys_lib_dlsearch_path_spec='/usr/lib'
15506
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15507
soname_spec='${libname}${release}${shared_ext}$major'
15508
shlibpath_var=LD_LIBRARY_PATH
15515
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15516
echo "${ECHO_T}$dynamic_linker" >&6; }
15517
test "$dynamic_linker" = no && can_build_shared=no
15519
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15520
echo $ECHO_N "(cached) $ECHO_C" >&6
15522
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
15525
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15526
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15527
echo $ECHO_N "(cached) $ECHO_C" >&6
15529
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
15532
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15534
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15535
if test "$GCC" = yes; then
15536
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15539
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15540
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15541
hardcode_action_CXX=
15542
if test -n "$hardcode_libdir_flag_spec_CXX" || \
15543
test -n "$runpath_var_CXX" || \
15544
test "X$hardcode_automatic_CXX" = "Xyes" ; then
15546
# We can hardcode non-existant directories.
15547
if test "$hardcode_direct_CXX" != no &&
15548
# If the only mechanism to avoid hardcoding is shlibpath_var, we
15549
# have to relink, otherwise we might link with an installed library
15550
# when we should be linking with a yet-to-be-installed one
15551
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15552
test "$hardcode_minus_L_CXX" != no; then
15553
# Linking always hardcodes the temporary library directory.
15554
hardcode_action_CXX=relink
15556
# We can link without hardcoding, and we can hardcode nonexisting dirs.
15557
hardcode_action_CXX=immediate
15560
# We cannot hardcode anything, or else we can only hardcode existing
15562
hardcode_action_CXX=unsupported
15564
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15565
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15567
if test "$hardcode_action_CXX" = relink; then
15568
# Fast installation is not supported
15569
enable_fast_install=no
15570
elif test "$shlibpath_overrides_runpath" = yes ||
15571
test "$enable_shared" = no; then
15572
# Fast installation is not necessary
15573
enable_fast_install=needless
15577
# The else clause should only fire when bootstrapping the
15578
# libtool distribution, otherwise you forgot to ship ltmain.sh
15579
# with your package, and you will get complaints that there are
15580
# no rules to generate ltmain.sh.
15581
if test -f "$ltmain"; then
15582
# See if we are running on zsh, and set the options which allow our commands through
15583
# without removal of \ escapes.
15584
if test -n "${ZSH_VERSION+set}" ; then
15585
setopt NO_GLOB_SUBST
15587
# Now quote all the things that may contain metacharacters while being
15588
# careful not to overquote the AC_SUBSTed values. We take copies of the
15589
# variables and quote the copies for generation of the libtool script.
15590
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15592
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15593
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15594
deplibs_check_method reload_flag reload_cmds need_locks \
15595
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15596
lt_cv_sys_global_symbol_to_c_name_address \
15597
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15598
old_postinstall_cmds old_postuninstall_cmds \
15602
lt_prog_compiler_wl_CXX \
15603
lt_prog_compiler_pic_CXX \
15604
lt_prog_compiler_static_CXX \
15605
lt_prog_compiler_no_builtin_flag_CXX \
15606
export_dynamic_flag_spec_CXX \
15607
thread_safe_flag_spec_CXX \
15608
whole_archive_flag_spec_CXX \
15609
enable_shared_with_static_runtimes_CXX \
15610
old_archive_cmds_CXX \
15611
old_archive_from_new_cmds_CXX \
15612
predep_objects_CXX \
15613
postdep_objects_CXX \
15616
compiler_lib_search_path_CXX \
15617
compiler_lib_search_dirs_CXX \
15619
archive_expsym_cmds_CXX \
15620
postinstall_cmds_CXX \
15621
postuninstall_cmds_CXX \
15622
old_archive_from_expsyms_cmds_CXX \
15623
allow_undefined_flag_CXX \
15624
no_undefined_flag_CXX \
15625
export_symbols_cmds_CXX \
15626
hardcode_libdir_flag_spec_CXX \
15627
hardcode_libdir_flag_spec_ld_CXX \
15628
hardcode_libdir_separator_CXX \
15629
hardcode_automatic_CXX \
15631
module_expsym_cmds_CXX \
15632
lt_cv_prog_compiler_c_o_CXX \
15633
fix_srcfile_path_CXX \
15634
exclude_expsyms_CXX \
15635
include_expsyms_CXX; do
15638
old_archive_cmds_CXX | \
15639
old_archive_from_new_cmds_CXX | \
15640
archive_cmds_CXX | \
15641
archive_expsym_cmds_CXX | \
15642
module_cmds_CXX | \
15643
module_expsym_cmds_CXX | \
15644
old_archive_from_expsyms_cmds_CXX | \
15645
export_symbols_cmds_CXX | \
15646
extract_expsyms_cmds | reload_cmds | finish_cmds | \
15647
postinstall_cmds | postuninstall_cmds | \
15648
old_postinstall_cmds | old_postuninstall_cmds | \
15649
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15650
# Double-quote double-evaled strings.
15651
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15654
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15660
*'\$0 --fallback-echo"')
15661
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15667
cat <<__EOF__ >> "$cfgfile"
15668
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15670
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15672
# Shell to use when invoking shell scripts.
15675
# Whether or not to build shared libraries.
15676
build_libtool_libs=$enable_shared
15678
# Whether or not to build static libraries.
15679
build_old_libs=$enable_static
15681
# Whether or not to add -lc for building shared libraries.
15682
build_libtool_need_lc=$archive_cmds_need_lc_CXX
15684
# Whether or not to disallow shared libs when runtime libs are static
15685
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
15687
# Whether or not to optimize for fast installation.
15688
fast_install=$enable_fast_install
15691
host_alias=$host_alias
15695
# The build system.
15696
build_alias=$build_alias
15700
# An echo program that does not interpret backslashes.
15705
AR_FLAGS=$lt_AR_FLAGS
15710
# LTCC compiler flags.
15711
LTCFLAGS=$lt_LTCFLAGS
15713
# A language-specific compiler.
15714
CC=$lt_compiler_CXX
15716
# Is the compiler the GNU C compiler?
15722
# The linker used to build libraries.
15725
# Whether we need hard or soft links.
15728
# A BSD-compatible nm program.
15731
# A symbol stripping program
15734
# Used to examine libraries when file_magic_cmd begins "file"
15735
MAGIC_CMD=$MAGIC_CMD
15737
# Used on cygwin: DLL creation program.
15740
# Used on cygwin: object dumper.
15743
# Used on cygwin: assembler.
15746
# The name of the directory that contains temporary libtool files.
15749
# How to create reloadable object files.
15750
reload_flag=$lt_reload_flag
15751
reload_cmds=$lt_reload_cmds
15753
# How to pass a linker flag through the compiler.
15754
wl=$lt_lt_prog_compiler_wl_CXX
15756
# Object file suffix (normally "o").
15757
objext="$ac_objext"
15759
# Old archive suffix (normally "a").
15762
# Shared library suffix (normally ".so").
15763
shrext_cmds='$shrext_cmds'
15765
# Executable file suffix (normally "").
15768
# Additional compiler flags for building library objects.
15769
pic_flag=$lt_lt_prog_compiler_pic_CXX
15772
# What is the maximum length of a command?
15773
max_cmd_len=$lt_cv_sys_max_cmd_len
15775
# Does compiler simultaneously support -c and -o options?
15776
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15778
# Must we lock files when doing compilation?
15779
need_locks=$lt_need_locks
15781
# Do we need the lib prefix for modules?
15782
need_lib_prefix=$need_lib_prefix
15784
# Do we need a version for libraries?
15785
need_version=$need_version
15787
# Whether dlopen is supported.
15788
dlopen_support=$enable_dlopen
15790
# Whether dlopen of programs is supported.
15791
dlopen_self=$enable_dlopen_self
15793
# Whether dlopen of statically linked programs is supported.
15794
dlopen_self_static=$enable_dlopen_self_static
15796
# Compiler flag to prevent dynamic linking.
15797
link_static_flag=$lt_lt_prog_compiler_static_CXX
15799
# Compiler flag to turn off builtin functions.
15800
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15802
# Compiler flag to allow reflexive dlopens.
15803
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15805
# Compiler flag to generate shared objects directly from archives.
15806
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15808
# Compiler flag to generate thread-safe objects.
15809
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15811
# Library versioning type.
15812
version_type=$version_type
15814
# Format of library name prefix.
15815
libname_spec=$lt_libname_spec
15817
# List of archive names. First name is the real one, the rest are links.
15818
# The last name is the one that the linker finds with -lNAME.
15819
library_names_spec=$lt_library_names_spec
15821
# The coded name of the library, if different from the real name.
15822
soname_spec=$lt_soname_spec
15824
# Commands used to build and install an old-style archive.
15826
old_archive_cmds=$lt_old_archive_cmds_CXX
15827
old_postinstall_cmds=$lt_old_postinstall_cmds
15828
old_postuninstall_cmds=$lt_old_postuninstall_cmds
15830
# Create an old-style archive from a shared archive.
15831
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15833
# Create a temporary old-style archive to link instead of a shared archive.
15834
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15836
# Commands used to build and install a shared archive.
15837
archive_cmds=$lt_archive_cmds_CXX
15838
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15839
postinstall_cmds=$lt_postinstall_cmds
15840
postuninstall_cmds=$lt_postuninstall_cmds
15842
# Commands used to build a loadable module (assumed same as above if empty)
15843
module_cmds=$lt_module_cmds_CXX
15844
module_expsym_cmds=$lt_module_expsym_cmds_CXX
15846
# Commands to strip libraries.
15847
old_striplib=$lt_old_striplib
15848
striplib=$lt_striplib
15850
# Dependencies to place before the objects being linked to create a
15852
predep_objects=$lt_predep_objects_CXX
15854
# Dependencies to place after the objects being linked to create a
15856
postdep_objects=$lt_postdep_objects_CXX
15858
# Dependencies to place before the objects being linked to create a
15860
predeps=$lt_predeps_CXX
15862
# Dependencies to place after the objects being linked to create a
15864
postdeps=$lt_postdeps_CXX
15866
# The directories searched by this compiler when creating a shared
15868
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
15870
# The library search path used internally by the compiler when linking
15871
# a shared library.
15872
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15874
# Method to check whether dependent libraries are shared objects.
15875
deplibs_check_method=$lt_deplibs_check_method
15877
# Command to use when deplibs_check_method == file_magic.
15878
file_magic_cmd=$lt_file_magic_cmd
15880
# Flag that allows shared libraries with undefined symbols to be built.
15881
allow_undefined_flag=$lt_allow_undefined_flag_CXX
15883
# Flag that forces no undefined symbols.
15884
no_undefined_flag=$lt_no_undefined_flag_CXX
15886
# Commands used to finish a libtool library installation in a directory.
15887
finish_cmds=$lt_finish_cmds
15889
# Same as above, but a single script fragment to be evaled but not shown.
15890
finish_eval=$lt_finish_eval
15892
# Take the output of nm and produce a listing of raw symbols and C names.
15893
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15895
# Transform the output of nm in a proper C declaration
15896
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15898
# Transform the output of nm in a C name address pair
15899
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15901
# This is the shared library runtime path variable.
15902
runpath_var=$runpath_var
15904
# This is the shared library path variable.
15905
shlibpath_var=$shlibpath_var
15907
# Is shlibpath searched before the hard-coded library search path?
15908
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15910
# How to hardcode a shared library path into an executable.
15911
hardcode_action=$hardcode_action_CXX
15913
# Whether we should hardcode library paths into libraries.
15914
hardcode_into_libs=$hardcode_into_libs
15916
# Flag to hardcode \$libdir into a binary during linking.
15917
# This must work even if \$libdir does not exist.
15918
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15920
# If ld is used when linking, flag to hardcode \$libdir into
15921
# a binary during linking. This must work even if \$libdir does
15923
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15925
# Whether we need a single -rpath flag with a separated argument.
15926
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15928
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15929
# resulting binary.
15930
hardcode_direct=$hardcode_direct_CXX
15932
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15933
# resulting binary.
15934
hardcode_minus_L=$hardcode_minus_L_CXX
15936
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15937
# the resulting binary.
15938
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15940
# Set to yes if building a shared library automatically hardcodes DIR into the library
15941
# and all subsequent libraries and executables linked against it.
15942
hardcode_automatic=$hardcode_automatic_CXX
15944
# Variables whose values should be saved in libtool wrapper scripts and
15945
# restored at relink time.
15946
variables_saved_for_relink="$variables_saved_for_relink"
15948
# Whether libtool must link a program against all its dependency libraries.
15949
link_all_deplibs=$link_all_deplibs_CXX
15951
# Compile-time system search path for libraries
15952
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15954
# Run-time system search path for libraries
15955
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15957
# Fix the shell variable \$srcfile for the compiler.
15958
fix_srcfile_path=$lt_fix_srcfile_path
15960
# Set to yes if exported symbols are required.
15961
always_export_symbols=$always_export_symbols_CXX
15963
# The commands to list exported symbols.
15964
export_symbols_cmds=$lt_export_symbols_cmds_CXX
15966
# The commands to extract the exported symbol list from a shared archive.
15967
extract_expsyms_cmds=$lt_extract_expsyms_cmds
15969
# Symbols that should not be listed in the preloaded symbols.
15970
exclude_expsyms=$lt_exclude_expsyms_CXX
15972
# Symbols that must always be exported.
15973
include_expsyms=$lt_include_expsyms_CXX
15975
# ### END LIBTOOL TAG CONFIG: $tagname
15981
# If there is no Makefile yet, we rely on a make rule to execute
15982
# `config.status --recheck' to rerun these tests and create the
15983
# libtool script then.
15984
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15985
if test -f "$ltmain_in"; then
15986
test -f Makefile && make "$ltmain"
15992
ac_cpp='$CPP $CPPFLAGS'
15993
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15994
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15995
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16001
with_gnu_ldcxx=$with_gnu_ld
16002
with_gnu_ld=$lt_save_with_gnu_ld
16003
lt_cv_path_LDCXX=$lt_cv_path_LD
16004
lt_cv_path_LD=$lt_save_path_LD
16005
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16006
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16014
if test -n "$F77" && test "X$F77" != "Xno"; then
16017
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
16018
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16019
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
16022
archive_cmds_need_lc_F77=no
16023
allow_undefined_flag_F77=
16024
always_export_symbols_F77=no
16025
archive_expsym_cmds_F77=
16026
export_dynamic_flag_spec_F77=
16027
hardcode_direct_F77=no
16028
hardcode_libdir_flag_spec_F77=
16029
hardcode_libdir_flag_spec_ld_F77=
16030
hardcode_libdir_separator_F77=
16031
hardcode_minus_L_F77=no
16032
hardcode_automatic_F77=no
16034
module_expsym_cmds_F77=
16035
link_all_deplibs_F77=unknown
16036
old_archive_cmds_F77=$old_archive_cmds
16037
no_undefined_flag_F77=
16038
whole_archive_flag_spec_F77=
16039
enable_shared_with_static_runtimes_F77=no
16041
# Source file extension for f77 test sources.
16044
# Object file extension for compiled f77 test sources.
16048
# Code to be used in simple compile tests
16049
lt_simple_compile_test_code="\
16055
# Code to be used in simple link tests
16056
lt_simple_link_test_code="\
16061
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16063
# If no C compiler was specified, use CC.
16066
# If no C compiler flags were specified, use CFLAGS.
16067
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16069
# Allow CC to be a program name with arguments.
16073
# save warnings/boilerplate of simple test code
16074
ac_outfile=conftest.$ac_objext
16075
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16076
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16077
_lt_compiler_boilerplate=`cat conftest.err`
16080
ac_outfile=conftest.$ac_objext
16081
echo "$lt_simple_link_test_code" >conftest.$ac_ext
16082
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16083
_lt_linker_boilerplate=`cat conftest.err`
16087
# Allow CC to be a program name with arguments.
16092
for cc_temp in $compiler""; do
16094
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16095
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16100
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16103
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
16104
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
16105
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
16106
echo "${ECHO_T}$can_build_shared" >&6; }
16108
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
16109
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
16110
test "$can_build_shared" = "no" && enable_shared=no
16112
# On AIX, shared libraries and static libraries use the same namespace, and
16113
# are all built from PIC.
16116
test "$enable_shared" = yes && enable_static=no
16117
if test -n "$RANLIB"; then
16118
archive_cmds="$archive_cmds~\$RANLIB \$lib"
16119
postinstall_cmds='$RANLIB $lib'
16123
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16124
test "$enable_shared" = yes && enable_static=no
16128
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
16129
echo "${ECHO_T}$enable_shared" >&6; }
16131
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
16132
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
16133
# Make sure either enable_shared or enable_static is yes.
16134
test "$enable_shared" = yes || enable_static=yes
16135
{ echo "$as_me:$LINENO: result: $enable_static" >&5
16136
echo "${ECHO_T}$enable_static" >&6; }
16141
lt_prog_compiler_wl_F77=
16142
lt_prog_compiler_pic_F77=
16143
lt_prog_compiler_static_F77=
16145
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16146
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16148
if test "$GCC" = yes; then
16149
lt_prog_compiler_wl_F77='-Wl,'
16150
lt_prog_compiler_static_F77='-static'
16154
# All AIX code is PIC.
16155
if test "$host_cpu" = ia64; then
16156
# AIX 5 now supports IA64 processor
16157
lt_prog_compiler_static_F77='-Bstatic'
16162
# FIXME: we need at least 68020 code to build shared libraries, but
16163
# adding the `-m68020' flag to GCC prevents building anything better,
16165
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
16168
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16169
# PIC is the default for these OSes.
16172
mingw* | cygwin* | pw32* | os2*)
16173
# This hack is so that the source file can tell whether it is being
16174
# built for inclusion in a dll (and should export symbols for example).
16175
# Although the cygwin gcc ignores -fPIC, still need this for old-style
16176
# (--disable-auto-import) libraries
16177
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
16180
darwin* | rhapsody*)
16181
# PIC is the default on this platform
16182
# Common symbols not allowed in MH_DYLIB files
16183
lt_prog_compiler_pic_F77='-fno-common'
16187
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
16188
# Instead, we relocate shared libraries at runtime.
16192
# Just because we use GCC doesn't mean we suddenly get shared libraries
16193
# on systems that don't support them.
16194
lt_prog_compiler_can_build_shared_F77=no
16199
if test -d /usr/nec; then
16200
lt_prog_compiler_pic_F77=-Kconform_pic
16205
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16206
# not for PA HP-UX.
16212
lt_prog_compiler_pic_F77='-fPIC'
16218
lt_prog_compiler_pic_F77='-fPIC'
16222
# PORTME Check for flag to pass linker flags through the system compiler.
16225
lt_prog_compiler_wl_F77='-Wl,'
16226
if test "$host_cpu" = ia64; then
16227
# AIX 5 now supports IA64 processor
16228
lt_prog_compiler_static_F77='-Bstatic'
16230
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
16234
# PIC is the default on this platform
16235
# Common symbols not allowed in MH_DYLIB files
16236
case $cc_basename in
16238
lt_prog_compiler_pic_F77='-qnocommon'
16239
lt_prog_compiler_wl_F77='-Wl,'
16244
mingw* | cygwin* | pw32* | os2*)
16245
# This hack is so that the source file can tell whether it is being
16246
# built for inclusion in a dll (and should export symbols for example).
16247
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
16250
hpux9* | hpux10* | hpux11*)
16251
lt_prog_compiler_wl_F77='-Wl,'
16252
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16253
# not for PA HP-UX.
16259
lt_prog_compiler_pic_F77='+Z'
16262
# Is there a better lt_prog_compiler_static that works with the bundled CC?
16263
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
16266
irix5* | irix6* | nonstopux*)
16267
lt_prog_compiler_wl_F77='-Wl,'
16268
# PIC (with -KPIC) is the default.
16269
lt_prog_compiler_static_F77='-non_shared'
16273
lt_prog_compiler_pic_F77='-KPIC'
16274
lt_prog_compiler_static_F77='-Bstatic'
16277
linux* | k*bsd*-gnu)
16278
case $cc_basename in
16280
lt_prog_compiler_wl_F77='-Wl,'
16281
lt_prog_compiler_pic_F77='-KPIC'
16282
lt_prog_compiler_static_F77='-static'
16284
pgcc* | pgf77* | pgf90* | pgf95*)
16285
# Portland Group compilers (*not* the Pentium gcc compiler,
16286
# which looks to be a dead project)
16287
lt_prog_compiler_wl_F77='-Wl,'
16288
lt_prog_compiler_pic_F77='-fpic'
16289
lt_prog_compiler_static_F77='-Bstatic'
16292
lt_prog_compiler_wl_F77='-Wl,'
16293
# All Alpha code is PIC.
16294
lt_prog_compiler_static_F77='-non_shared'
16297
case `$CC -V 2>&1 | sed 5q` in
16300
lt_prog_compiler_pic_F77='-KPIC'
16301
lt_prog_compiler_static_F77='-Bstatic'
16302
lt_prog_compiler_wl_F77='-Wl,'
16305
# Sun Fortran 8.3 passes all unrecognized flags to the linker
16306
lt_prog_compiler_pic_F77='-KPIC'
16307
lt_prog_compiler_static_F77='-Bstatic'
16308
lt_prog_compiler_wl_F77=''
16315
osf3* | osf4* | osf5*)
16316
lt_prog_compiler_wl_F77='-Wl,'
16317
# All OSF/1 code is PIC.
16318
lt_prog_compiler_static_F77='-non_shared'
16322
lt_prog_compiler_static_F77='-non_shared'
16326
lt_prog_compiler_pic_F77='-KPIC'
16327
lt_prog_compiler_static_F77='-Bstatic'
16328
case $cc_basename in
16329
f77* | f90* | f95*)
16330
lt_prog_compiler_wl_F77='-Qoption ld ';;
16332
lt_prog_compiler_wl_F77='-Wl,';;
16337
lt_prog_compiler_wl_F77='-Qoption ld '
16338
lt_prog_compiler_pic_F77='-PIC'
16339
lt_prog_compiler_static_F77='-Bstatic'
16342
sysv4 | sysv4.2uw2* | sysv4.3*)
16343
lt_prog_compiler_wl_F77='-Wl,'
16344
lt_prog_compiler_pic_F77='-KPIC'
16345
lt_prog_compiler_static_F77='-Bstatic'
16349
if test -d /usr/nec ;then
16350
lt_prog_compiler_pic_F77='-Kconform_pic'
16351
lt_prog_compiler_static_F77='-Bstatic'
16355
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16356
lt_prog_compiler_wl_F77='-Wl,'
16357
lt_prog_compiler_pic_F77='-KPIC'
16358
lt_prog_compiler_static_F77='-Bstatic'
16362
lt_prog_compiler_wl_F77='-Wl,'
16363
lt_prog_compiler_can_build_shared_F77=no
16367
lt_prog_compiler_pic_F77='-pic'
16368
lt_prog_compiler_static_F77='-Bstatic'
16372
lt_prog_compiler_can_build_shared_F77=no
16377
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
16378
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
16381
# Check to make sure the PIC flag actually works.
16383
if test -n "$lt_prog_compiler_pic_F77"; then
16385
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
16386
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
16387
if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
16388
echo $ECHO_N "(cached) $ECHO_C" >&6
16390
lt_cv_prog_compiler_pic_works_F77=no
16391
ac_outfile=conftest.$ac_objext
16392
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16393
lt_compiler_flag="$lt_prog_compiler_pic_F77"
16394
# Insert the option either (1) after the last *FLAGS variable, or
16395
# (2) before a word containing "conftest.", or (3) at the end.
16396
# Note that $ac_compile itself does not contain backslashes and begins
16397
# with a dollar sign (not a hyphen), so the echo should work correctly.
16398
# The option is referenced via a variable to avoid confusing sed.
16399
lt_compile=`echo "$ac_compile" | $SED \
16400
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16401
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16402
-e 's:$: $lt_compiler_flag:'`
16403
(eval echo "\"\$as_me:16403: $lt_compile\"" >&5)
16404
(eval "$lt_compile" 2>conftest.err)
16406
cat conftest.err >&5
16407
echo "$as_me:16407: \$? = $ac_status" >&5
16408
if (exit $ac_status) && test -s "$ac_outfile"; then
16409
# The compiler can only warn and ignore the option if not recognized
16410
# So say no if there are warnings other than the usual output.
16411
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16412
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16413
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16414
lt_cv_prog_compiler_pic_works_F77=yes
16420
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
16421
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
16423
if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
16424
case $lt_prog_compiler_pic_F77 in
16426
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
16429
lt_prog_compiler_pic_F77=
16430
lt_prog_compiler_can_build_shared_F77=no
16435
# For platforms which do not support PIC, -DPIC is meaningless:
16437
lt_prog_compiler_pic_F77=
16440
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
16445
# Check to make sure the static flag actually works.
16447
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
16448
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16449
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16450
if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
16451
echo $ECHO_N "(cached) $ECHO_C" >&6
16453
lt_cv_prog_compiler_static_works_F77=no
16454
save_LDFLAGS="$LDFLAGS"
16455
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16456
echo "$lt_simple_link_test_code" > conftest.$ac_ext
16457
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16458
# The linker can only warn and ignore the option if not recognized
16459
# So say no if there are warnings
16460
if test -s conftest.err; then
16461
# Append any errors to the config.log.
16462
cat conftest.err 1>&5
16463
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16464
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16465
if diff conftest.exp conftest.er2 >/dev/null; then
16466
lt_cv_prog_compiler_static_works_F77=yes
16469
lt_cv_prog_compiler_static_works_F77=yes
16473
LDFLAGS="$save_LDFLAGS"
16476
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
16477
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
16479
if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
16482
lt_prog_compiler_static_F77=
16486
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16487
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16488
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
16489
echo $ECHO_N "(cached) $ECHO_C" >&6
16491
lt_cv_prog_compiler_c_o_F77=no
16492
$rm -r conftest 2>/dev/null
16496
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16498
lt_compiler_flag="-o out/conftest2.$ac_objext"
16499
# Insert the option either (1) after the last *FLAGS variable, or
16500
# (2) before a word containing "conftest.", or (3) at the end.
16501
# Note that $ac_compile itself does not contain backslashes and begins
16502
# with a dollar sign (not a hyphen), so the echo should work correctly.
16503
lt_compile=`echo "$ac_compile" | $SED \
16504
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16505
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16506
-e 's:$: $lt_compiler_flag:'`
16507
(eval echo "\"\$as_me:16507: $lt_compile\"" >&5)
16508
(eval "$lt_compile" 2>out/conftest.err)
16510
cat out/conftest.err >&5
16511
echo "$as_me:16511: \$? = $ac_status" >&5
16512
if (exit $ac_status) && test -s out/conftest2.$ac_objext
16514
# The compiler can only warn and ignore the option if not recognized
16515
# So say no if there are warnings
16516
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16517
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16518
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16519
lt_cv_prog_compiler_c_o_F77=yes
16524
# SGI C++ compiler will create directory out/ii_files/ for
16525
# template instantiation
16526
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16527
$rm out/* && rmdir out
16533
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
16534
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
16537
hard_links="nottested"
16538
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
16539
# do not overwrite the value of need_locks provided by the user
16540
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16541
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16544
ln conftest.a conftest.b 2>/dev/null && hard_links=no
16546
ln conftest.a conftest.b 2>&5 || hard_links=no
16547
ln conftest.a conftest.b 2>/dev/null && hard_links=no
16548
{ echo "$as_me:$LINENO: result: $hard_links" >&5
16549
echo "${ECHO_T}$hard_links" >&6; }
16550
if test "$hard_links" = no; then
16551
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16552
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16559
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16560
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16563
allow_undefined_flag_F77=
16564
enable_shared_with_static_runtimes_F77=no
16566
archive_expsym_cmds_F77=
16567
old_archive_From_new_cmds_F77=
16568
old_archive_from_expsyms_cmds_F77=
16569
export_dynamic_flag_spec_F77=
16570
whole_archive_flag_spec_F77=
16571
thread_safe_flag_spec_F77=
16572
hardcode_libdir_flag_spec_F77=
16573
hardcode_libdir_flag_spec_ld_F77=
16574
hardcode_libdir_separator_F77=
16575
hardcode_direct_F77=no
16576
hardcode_minus_L_F77=no
16577
hardcode_shlibpath_var_F77=unsupported
16578
link_all_deplibs_F77=unknown
16579
hardcode_automatic_F77=no
16581
module_expsym_cmds_F77=
16582
always_export_symbols_F77=no
16583
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16584
# include_expsyms should be a list of space-separated symbols to be *always*
16585
# included in the symbol list
16586
include_expsyms_F77=
16587
# exclude_expsyms can be an extended regexp of symbols to exclude
16588
# it will be wrapped by ` (' and `)$', so one must not match beginning or
16589
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16590
# as well as any symbol that contains `d'.
16591
exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16592
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16593
# platforms (ab)use it in PIC code, but their linkers get confused if
16594
# the symbol is explicitly referenced. Since portable code cannot
16595
# rely on this symbol name, it's probably fine to never include it in
16596
# preloaded symbol tables.
16597
# Exclude shared library initialization/finalization symbols.
16598
extract_expsyms_cmds=
16599
# Just being paranoid about ensuring that cc_basename is set.
16600
for cc_temp in $compiler""; do
16602
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16603
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16608
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16611
cygwin* | mingw* | pw32*)
16612
# FIXME: the MSVC++ port hasn't been tested in a loooong time
16613
# When not using gcc, we currently assume that we are using
16614
# Microsoft Visual C++.
16615
if test "$GCC" != yes; then
16620
# we just hope/assume this is gcc and not c89 (= MSVC++)
16629
if test "$with_gnu_ld" = yes; then
16630
# If archive_cmds runs LD, not CC, wlarc should be empty
16633
# Set some defaults for GNU ld with shared library support. These
16634
# are reset later if shared libraries are not supported. Putting them
16635
# here allows them to be overridden if necessary.
16636
runpath_var=LD_RUN_PATH
16637
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
16638
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
16639
# ancient GNU ld didn't support --whole-archive et. al.
16640
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16641
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16643
whole_archive_flag_spec_F77=
16645
supports_anon_versioning=no
16646
case `$LD -v 2>/dev/null` in
16647
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16648
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16649
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16650
*\ 2.11.*) ;; # other 2.11 versions
16651
*) supports_anon_versioning=yes ;;
16654
# See if GNU ld supports shared libraries.
16657
# On AIX/PPC, the GNU linker is very broken
16658
if test "$host_cpu" != ia64; then
16662
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16663
*** to be unable to reliably create shared libraries on AIX.
16664
*** Therefore, libtool is disabling shared libraries support. If you
16665
*** really care for shared libraries, you may want to modify your PATH
16666
*** so that a non-GNU linker is found, and then restart.
16673
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)'
16674
hardcode_libdir_flag_spec_F77='-L$libdir'
16675
hardcode_minus_L_F77=yes
16677
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16678
# that the semantics of dynamic libraries on AmigaOS, at least up
16679
# to version 4, is to share data among multiple programs linked
16680
# with the same dynamic library. Since this doesn't match the
16681
# behavior of shared libraries on other platforms, we can't use
16687
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16688
allow_undefined_flag_F77=unsupported
16689
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16690
# support --undefined. This deserves some investigation. FIXME
16691
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16697
cygwin* | mingw* | pw32*)
16698
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
16699
# as there is no search path for DLLs.
16700
hardcode_libdir_flag_spec_F77='-L$libdir'
16701
allow_undefined_flag_F77=unsupported
16702
always_export_symbols_F77=no
16703
enable_shared_with_static_runtimes_F77=yes
16704
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16706
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16707
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16708
# If the export-symbols file already is a .def file (1st line
16709
# is EXPORTS), use it as is; otherwise, prepend...
16710
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16711
cp $export_symbols $output_objdir/$soname.def;
16713
echo EXPORTS > $output_objdir/$soname.def;
16714
cat $export_symbols >> $output_objdir/$soname.def;
16716
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16723
hardcode_direct_F77=no
16724
hardcode_shlibpath_var_F77=no
16725
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16726
export_dynamic_flag_spec_F77='${wl}-E'
16727
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16728
# Instead, shared libraries are loaded at an image base (0x10000000 by
16729
# default) and relocated if they conflict, which is a slow very memory
16730
# consuming and fragmenting process. To avoid this, we pick a random,
16731
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16732
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
16733
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'
16734
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'
16737
gnu* | linux* | k*bsd*-gnu)
16738
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16740
case $cc_basename,$host_cpu in
16741
pgcc*) # Portland Group C compiler
16742
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'
16743
tmp_addflag=' $pic_flag'
16745
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16746
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'
16747
tmp_addflag=' $pic_flag -Mnomain' ;;
16748
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16749
tmp_addflag=' -i_dynamic' ;;
16750
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16751
tmp_addflag=' -i_dynamic -nofor_main' ;;
16752
ifc* | ifort*) # Intel Fortran compiler
16753
tmp_addflag=' -nofor_main' ;;
16755
case `$CC -V 2>&1 | sed 5q` in
16756
*Sun\ C*) # Sun C 5.9
16757
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'
16758
tmp_sharedflag='-G' ;;
16759
*Sun\ F*) # Sun Fortran 8.3
16760
tmp_sharedflag='-G' ;;
16762
tmp_sharedflag='-shared' ;;
16764
archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16766
if test $supports_anon_versioning = yes; then
16767
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16768
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16769
$echo "local: *; };" >> $output_objdir/$libname.ver~
16770
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16772
link_all_deplibs_F77=no
16778
netbsd* | netbsdelf*-gnu)
16779
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16780
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16783
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16784
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16789
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16793
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16794
*** create shared libraries on Solaris systems. Therefore, libtool
16795
*** is disabling shared libraries support. We urge you to upgrade GNU
16796
*** binutils to release 2.9.1 or newer. Another option is to modify
16797
*** your PATH or compiler configuration so that the native linker is
16798
*** used, and then restart.
16801
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16802
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16803
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16809
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16810
case `$LD -v 2>&1` in
16811
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16815
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16816
*** reliably create shared libraries on SCO systems. Therefore, libtool
16817
*** is disabling shared libraries support. We urge you to upgrade GNU
16818
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16819
*** your PATH or compiler configuration so that the native linker is
16820
*** used, and then restart.
16825
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16826
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16827
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16828
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16837
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16839
hardcode_direct_F77=yes
16840
hardcode_shlibpath_var_F77=no
16844
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16845
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16846
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16853
if test "$ld_shlibs_F77" = no; then
16855
hardcode_libdir_flag_spec_F77=
16856
export_dynamic_flag_spec_F77=
16857
whole_archive_flag_spec_F77=
16860
# PORTME fill in a description of your system's linker (not GNU ld)
16863
allow_undefined_flag_F77=unsupported
16864
always_export_symbols_F77=yes
16865
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'
16866
# Note: this linker hardcodes the directories in LIBPATH if there
16867
# are no directories specified by -L.
16868
hardcode_minus_L_F77=yes
16869
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16870
# Neither direct hardcoding nor static linking is supported with a
16872
hardcode_direct_F77=unsupported
16877
if test "$host_cpu" = ia64; then
16878
# On IA64, the linker does run time linking by default, so we don't
16879
# have to do anything special.
16880
aix_use_runtimelinking=no
16881
exp_sym_flag='-Bexport'
16884
# If we're using GNU nm, then we don't want the "-C" option.
16885
# -C means demangle to AIX nm, but means don't demangle with GNU nm
16886
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16887
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'
16889
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'
16891
aix_use_runtimelinking=no
16893
# Test if we are trying to use run time linking or normal
16894
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16895
# need to do runtime linking.
16896
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16897
for ld_flag in $LDFLAGS; do
16898
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16899
aix_use_runtimelinking=yes
16906
exp_sym_flag='-bexport'
16907
no_entry_flag='-bnoentry'
16910
# When large executables or shared objects are built, AIX ld can
16911
# have problems creating the table of contents. If linking a library
16912
# or program results in "error TOC overflow" add -mminimal-toc to
16913
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16914
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16916
archive_cmds_F77=''
16917
hardcode_direct_F77=yes
16918
hardcode_libdir_separator_F77=':'
16919
link_all_deplibs_F77=yes
16921
if test "$GCC" = yes; then
16922
case $host_os in aix4.[012]|aix4.[012].*)
16923
# We only want to do this on AIX 4.2 and lower, the check
16924
# below for broken collect2 doesn't work under 4.3+
16925
collect2name=`${CC} -print-prog-name=collect2`
16926
if test -f "$collect2name" && \
16927
strings "$collect2name" | grep resolve_lib_name >/dev/null
16929
# We have reworked collect2
16932
# We have old collect2
16933
hardcode_direct_F77=unsupported
16934
# It fails to find uninstalled libraries when the uninstalled
16935
# path is not listed in the libpath. Setting hardcode_minus_L
16936
# to unsupported forces relinking
16937
hardcode_minus_L_F77=yes
16938
hardcode_libdir_flag_spec_F77='-L$libdir'
16939
hardcode_libdir_separator_F77=
16943
shared_flag='-shared'
16944
if test "$aix_use_runtimelinking" = yes; then
16945
shared_flag="$shared_flag "'${wl}-G'
16949
if test "$host_cpu" = ia64; then
16950
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16951
# chokes on -Wl,-G. The following line is correct:
16954
if test "$aix_use_runtimelinking" = yes; then
16955
shared_flag='${wl}-G'
16957
shared_flag='${wl}-bM:SRE'
16962
# It seems that -bexpall does not export symbols beginning with
16963
# underscore (_), so it is better to generate a list of symbols to export.
16964
always_export_symbols_F77=yes
16965
if test "$aix_use_runtimelinking" = yes; then
16966
# Warning - without using the other runtime loading flags (-brtl),
16967
# -berok will link without error, but may produce a broken library.
16968
allow_undefined_flag_F77='-berok'
16969
# Determine the default libpath from the value encoded in an empty executable.
16970
cat >conftest.$ac_ext <<_ACEOF
16975
rm -f conftest.$ac_objext conftest$ac_exeext
16976
if { (ac_try="$ac_link"
16977
case "(($ac_try" in
16978
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16979
*) ac_try_echo=$ac_try;;
16981
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16982
(eval "$ac_link") 2>conftest.er1
16984
grep -v '^ *+' conftest.er1 >conftest.err
16986
cat conftest.err >&5
16987
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16988
(exit $ac_status); } && {
16989
test -z "$ac_f77_werror_flag" ||
16990
test ! -s conftest.err
16991
} && test -s conftest$ac_exeext &&
16992
$as_test_x conftest$ac_exeext; then
16994
lt_aix_libpath_sed='
16995
/Import File Strings/,/^$/ {
17001
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17002
# Check for a 64-bit object if we didn't find anything.
17003
if test -z "$aix_libpath"; then
17004
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17007
echo "$as_me: failed program was:" >&5
17008
sed 's/^/| /' conftest.$ac_ext >&5
17013
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17014
conftest$ac_exeext conftest.$ac_ext
17015
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17017
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
17018
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"
17020
if test "$host_cpu" = ia64; then
17021
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
17022
allow_undefined_flag_F77="-z nodefs"
17023
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"
17025
# Determine the default libpath from the value encoded in an empty executable.
17026
cat >conftest.$ac_ext <<_ACEOF
17031
rm -f conftest.$ac_objext conftest$ac_exeext
17032
if { (ac_try="$ac_link"
17033
case "(($ac_try" in
17034
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17035
*) ac_try_echo=$ac_try;;
17037
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17038
(eval "$ac_link") 2>conftest.er1
17040
grep -v '^ *+' conftest.er1 >conftest.err
17042
cat conftest.err >&5
17043
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17044
(exit $ac_status); } && {
17045
test -z "$ac_f77_werror_flag" ||
17046
test ! -s conftest.err
17047
} && test -s conftest$ac_exeext &&
17048
$as_test_x conftest$ac_exeext; then
17050
lt_aix_libpath_sed='
17051
/Import File Strings/,/^$/ {
17057
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17058
# Check for a 64-bit object if we didn't find anything.
17059
if test -z "$aix_libpath"; then
17060
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17063
echo "$as_me: failed program was:" >&5
17064
sed 's/^/| /' conftest.$ac_ext >&5
17069
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17070
conftest$ac_exeext conftest.$ac_ext
17071
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17073
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
17074
# Warning - without using the other run time loading flags,
17075
# -berok will link without error, but may produce a broken library.
17076
no_undefined_flag_F77=' ${wl}-bernotok'
17077
allow_undefined_flag_F77=' ${wl}-berok'
17078
# Exported symbols can be pulled into shared objects from archives
17079
whole_archive_flag_spec_F77='$convenience'
17080
archive_cmds_need_lc_F77=yes
17081
# This is similar to how AIX traditionally builds its shared libraries.
17082
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'
17088
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)'
17089
hardcode_libdir_flag_spec_F77='-L$libdir'
17090
hardcode_minus_L_F77=yes
17091
# see comment about different semantics on the GNU ld section
17096
export_dynamic_flag_spec_F77=-rdynamic
17099
cygwin* | mingw* | pw32*)
17100
# When not using gcc, we currently assume that we are using
17101
# Microsoft Visual C++.
17102
# hardcode_libdir_flag_spec is actually meaningless, as there is
17103
# no search path for DLLs.
17104
hardcode_libdir_flag_spec_F77=' '
17105
allow_undefined_flag_F77=unsupported
17106
# Tell ltmain to make .lib files, not .a files.
17108
# Tell ltmain to make .dll files, not .so files.
17110
# FIXME: Setting linknames here is a bad hack.
17111
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17112
# The linker will automatically build a .lib file if we build a DLL.
17113
old_archive_From_new_cmds_F77='true'
17114
# FIXME: Should let the user specify the lib program.
17115
old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
17116
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
17117
enable_shared_with_static_runtimes_F77=yes
17120
darwin* | rhapsody*)
17122
rhapsody* | darwin1.[012])
17123
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
17126
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17127
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17129
case ${MACOSX_DEPLOYMENT_TARGET} in
17131
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17134
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
17140
archive_cmds_need_lc_F77=no
17141
hardcode_direct_F77=no
17142
hardcode_automatic_F77=yes
17143
hardcode_shlibpath_var_F77=unsupported
17144
whole_archive_flag_spec_F77=''
17145
link_all_deplibs_F77=yes
17146
if test "$GCC" = yes ; then
17147
output_verbose_link_cmd='echo'
17148
archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17149
module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17150
archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
17151
module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
17153
case $cc_basename in
17155
output_verbose_link_cmd='echo'
17156
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17157
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17158
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17159
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}'
17160
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}'
17170
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17171
hardcode_libdir_flag_spec_F77='-L$libdir'
17172
hardcode_shlibpath_var_F77=no
17179
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17180
# support. Future versions do this automatically, but an explicit c++rt0.o
17181
# does not break anything, and helps significantly (at the cost of a little
17184
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17185
hardcode_libdir_flag_spec_F77='-R$libdir'
17186
hardcode_direct_F77=yes
17187
hardcode_shlibpath_var_F77=no
17190
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
17192
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17193
hardcode_direct_F77=yes
17194
hardcode_minus_L_F77=yes
17195
hardcode_shlibpath_var_F77=no
17198
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17199
freebsd* | dragonfly*)
17200
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17201
hardcode_libdir_flag_spec_F77='-R$libdir'
17202
hardcode_direct_F77=yes
17203
hardcode_shlibpath_var_F77=no
17207
if test "$GCC" = yes; then
17208
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'
17210
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'
17212
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17213
hardcode_libdir_separator_F77=:
17214
hardcode_direct_F77=yes
17216
# hardcode_minus_L: Not really in the search PATH,
17217
# but as the default location of the library.
17218
hardcode_minus_L_F77=yes
17219
export_dynamic_flag_spec_F77='${wl}-E'
17223
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17224
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17226
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17228
if test "$with_gnu_ld" = no; then
17229
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17230
hardcode_libdir_separator_F77=:
17232
hardcode_direct_F77=yes
17233
export_dynamic_flag_spec_F77='${wl}-E'
17235
# hardcode_minus_L: Not really in the search PATH,
17236
# but as the default location of the library.
17237
hardcode_minus_L_F77=yes
17242
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17245
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17248
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17251
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17257
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17260
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17263
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17267
if test "$with_gnu_ld" = no; then
17268
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17269
hardcode_libdir_separator_F77=:
17273
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
17274
hardcode_direct_F77=no
17275
hardcode_shlibpath_var_F77=no
17278
hardcode_direct_F77=yes
17279
export_dynamic_flag_spec_F77='${wl}-E'
17281
# hardcode_minus_L: Not really in the search PATH,
17282
# but as the default location of the library.
17283
hardcode_minus_L_F77=yes
17289
irix5* | irix6* | nonstopux*)
17290
if test "$GCC" = yes; then
17291
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'
17293
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'
17294
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
17296
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17297
hardcode_libdir_separator_F77=:
17298
link_all_deplibs_F77=yes
17301
netbsd* | netbsdelf*-gnu)
17302
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17303
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17305
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17307
hardcode_libdir_flag_spec_F77='-R$libdir'
17308
hardcode_direct_F77=yes
17309
hardcode_shlibpath_var_F77=no
17313
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17314
hardcode_direct_F77=yes
17315
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17316
hardcode_libdir_separator_F77=:
17317
hardcode_shlibpath_var_F77=no
17321
if test -f /usr/libexec/ld.so; then
17322
hardcode_direct_F77=yes
17323
hardcode_shlibpath_var_F77=no
17324
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17325
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17326
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17327
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
17328
export_dynamic_flag_spec_F77='${wl}-E'
17331
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17332
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17333
hardcode_libdir_flag_spec_F77='-R$libdir'
17336
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17337
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
17347
hardcode_libdir_flag_spec_F77='-L$libdir'
17348
hardcode_minus_L_F77=yes
17349
allow_undefined_flag_F77=unsupported
17350
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'
17351
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17355
if test "$GCC" = yes; then
17356
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
17357
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'
17359
allow_undefined_flag_F77=' -expect_unresolved \*'
17360
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'
17362
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17363
hardcode_libdir_separator_F77=:
17366
osf4* | osf5*) # as osf3* with the addition of -msym flag
17367
if test "$GCC" = yes; then
17368
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
17369
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'
17370
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17372
allow_undefined_flag_F77=' -expect_unresolved \*'
17373
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'
17374
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~
17375
$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'
17377
# Both c and cxx compiler support -rpath directly
17378
hardcode_libdir_flag_spec_F77='-rpath $libdir'
17380
hardcode_libdir_separator_F77=:
17384
no_undefined_flag_F77=' -z text'
17385
if test "$GCC" = yes; then
17387
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17388
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17389
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17392
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17393
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17394
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17396
hardcode_libdir_flag_spec_F77='-R$libdir'
17397
hardcode_shlibpath_var_F77=no
17399
solaris2.[0-5] | solaris2.[0-5].*) ;;
17401
# The compiler driver will combine and reorder linker options,
17402
# but understands `-z linker_flag'. GCC discards it without `$wl',
17403
# but is careful enough not to reorder.
17404
# Supported since Solaris 2.6 (maybe 2.5.1?)
17405
if test "$GCC" = yes; then
17406
whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17408
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
17412
link_all_deplibs_F77=yes
17416
if test "x$host_vendor" = xsequent; then
17417
# Use $CC to link under sequent, because it throws in some extra .o
17418
# files that make .init and .fini sections work.
17419
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17421
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17423
hardcode_libdir_flag_spec_F77='-L$libdir'
17424
hardcode_direct_F77=yes
17425
hardcode_minus_L_F77=yes
17426
hardcode_shlibpath_var_F77=no
17430
case $host_vendor in
17432
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17433
hardcode_direct_F77=yes # is this really true???
17436
## LD is ld it makes a PLAMLIB
17437
## CC just makes a GrossModule.
17438
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17439
reload_cmds_F77='$CC -r -o $output$reload_objs'
17440
hardcode_direct_F77=no
17443
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17444
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
17447
runpath_var='LD_RUN_PATH'
17448
hardcode_shlibpath_var_F77=no
17452
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17453
hardcode_shlibpath_var_F77=no
17454
export_dynamic_flag_spec_F77='-Bexport'
17458
if test -d /usr/nec; then
17459
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17460
hardcode_shlibpath_var_F77=no
17461
runpath_var=LD_RUN_PATH
17462
hardcode_runpath_var=yes
17467
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17468
no_undefined_flag_F77='${wl}-z,text'
17469
archive_cmds_need_lc_F77=no
17470
hardcode_shlibpath_var_F77=no
17471
runpath_var='LD_RUN_PATH'
17473
if test "$GCC" = yes; then
17474
archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17475
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17477
archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17478
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17482
sysv5* | sco3.2v5* | sco5v6*)
17483
# Note: We can NOT use -z defs as we might desire, because we do not
17484
# link with -lc, and that would cause any symbols used from libc to
17485
# always be unresolved, which means just about no library would
17486
# ever link correctly. If we're not using GNU ld we use -z text
17487
# though, which does catch some bad symbols but isn't as heavy-handed
17489
no_undefined_flag_F77='${wl}-z,text'
17490
allow_undefined_flag_F77='${wl}-z,nodefs'
17491
archive_cmds_need_lc_F77=no
17492
hardcode_shlibpath_var_F77=no
17493
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17494
hardcode_libdir_separator_F77=':'
17495
link_all_deplibs_F77=yes
17496
export_dynamic_flag_spec_F77='${wl}-Bexport'
17497
runpath_var='LD_RUN_PATH'
17499
if test "$GCC" = yes; then
17500
archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17501
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17503
archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17504
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17509
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17510
hardcode_libdir_flag_spec_F77='-L$libdir'
17511
hardcode_shlibpath_var_F77=no
17520
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
17521
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
17522
test "$ld_shlibs_F77" = no && can_build_shared=no
17525
# Do we need to explicitly link libc?
17527
case "x$archive_cmds_need_lc_F77" in
17529
# Assume -lc should be added
17530
archive_cmds_need_lc_F77=yes
17532
if test "$enable_shared" = yes && test "$GCC" = yes; then
17533
case $archive_cmds_F77 in
17535
# FIXME: we may have to deal with multi-command sequences.
17538
# Test whether the compiler implicitly links with -lc since on some
17539
# systems, -lgcc has to come before -lc. If gcc already passes -lc
17540
# to ld, don't add -lc before -lgcc.
17541
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17542
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17544
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17546
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17547
(eval $ac_compile) 2>&5
17549
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17550
(exit $ac_status); } 2>conftest.err; then
17553
libobjs=conftest.$ac_objext
17555
wl=$lt_prog_compiler_wl_F77
17556
pic_flag=$lt_prog_compiler_pic_F77
17562
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
17563
allow_undefined_flag_F77=
17564
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17565
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17567
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17568
(exit $ac_status); }
17570
archive_cmds_need_lc_F77=no
17572
archive_cmds_need_lc_F77=yes
17574
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
17576
cat conftest.err 1>&5
17579
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
17580
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
17587
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17588
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17589
library_names_spec=
17590
libname_spec='lib$name'
17594
postuninstall_cmds=
17598
shlibpath_overrides_runpath=unknown
17600
dynamic_linker="$host_os ld.so"
17601
sys_lib_dlsearch_path_spec="/lib /usr/lib"
17603
need_lib_prefix=unknown
17604
hardcode_into_libs=no
17606
# when you set need_version to no, make sure it does not cause -set_version
17607
# flags to be left without arguments
17608
need_version=unknown
17613
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17614
shlibpath_var=LIBPATH
17616
# AIX 3 has no versioning support, so we append a major version to the name.
17617
soname_spec='${libname}${release}${shared_ext}$major'
17624
hardcode_into_libs=yes
17625
if test "$host_cpu" = ia64; then
17626
# AIX 5 supports IA64
17627
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17628
shlibpath_var=LD_LIBRARY_PATH
17630
# With GCC up to 2.95.x, collect2 would create an import file
17631
# for dependence libraries. The import file would start with
17632
# the line `#! .'. This would cause the generated library to
17633
# depend on `.', always an invalid library. This was fixed in
17634
# development snapshots of GCC prior to 3.0.
17636
aix4 | aix4.[01] | aix4.[01].*)
17637
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17639
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17642
can_build_shared=no
17646
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17647
# soname into executable. Probably we can add versioning support to
17648
# collect2, so additional links can be useful in future.
17649
if test "$aix_use_runtimelinking" = yes; then
17650
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
17651
# instead of lib<name>.a to let people know that these are not
17652
# typical AIX shared libraries.
17653
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17655
# We preserve .a as extension for shared libraries through AIX4.2
17656
# and later when we are not doing run time linking.
17657
library_names_spec='${libname}${release}.a $libname.a'
17658
soname_spec='${libname}${release}${shared_ext}$major'
17660
shlibpath_var=LIBPATH
17665
library_names_spec='$libname.ixlibrary $libname.a'
17666
# Create ${libname}_ixlibrary.a entries in /sys/libs.
17667
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'
17671
library_names_spec='${libname}${shared_ext}'
17672
dynamic_linker="$host_os ld.so"
17673
shlibpath_var=LIBRARY_PATH
17679
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17680
soname_spec='${libname}${release}${shared_ext}$major'
17681
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17682
shlibpath_var=LD_LIBRARY_PATH
17683
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17684
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17685
# the default ld.so.conf also contains /usr/contrib/lib and
17686
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17687
# libtool to hard-code these into programs
17690
cygwin* | mingw* | pw32*)
17691
version_type=windows
17696
case $GCC,$host_os in
17697
yes,cygwin* | yes,mingw* | yes,pw32*)
17698
library_names_spec='$libname.dll.a'
17699
# DLL is installed to $(libdir)/../bin by postinstall_cmds
17700
postinstall_cmds='base_file=`basename \${file}`~
17701
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17702
dldir=$destdir/`dirname \$dlpath`~
17703
test -d \$dldir || mkdir -p \$dldir~
17704
$install_prog $dir/$dlname \$dldir/$dlname~
17705
chmod a+x \$dldir/$dlname'
17706
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17707
dlpath=$dir/\$dldll~
17709
shlibpath_overrides_runpath=yes
17713
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
17714
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17715
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17718
# MinGW DLLs use traditional 'lib' prefix
17719
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17720
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17721
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17722
# It is most probably a Windows format PATH printed by
17723
# mingw gcc, but we are running on Cygwin. Gcc prints its search
17724
# path with ; separators, and with drive letters. We can handle the
17725
# drive letters (cygwin fileutils understands them), so leave them,
17726
# especially as we might pass files found there to a mingw objdump,
17727
# which wouldn't understand a cygwinified path. Ahh.
17728
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17730
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17734
# pw32 DLLs use 'pw' prefix rather than 'lib'
17735
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17741
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17744
dynamic_linker='Win32 ld.exe'
17745
# FIXME: first we should search . and the directory the executable is in
17749
darwin* | rhapsody*)
17750
dynamic_linker="$host_os dyld"
17751
version_type=darwin
17754
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17755
soname_spec='${libname}${release}${major}$shared_ext'
17756
shlibpath_overrides_runpath=yes
17757
shlibpath_var=DYLD_LIBRARY_PATH
17758
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17760
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17767
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17768
soname_spec='${libname}${release}${shared_ext}$major'
17769
shlibpath_var=LD_LIBRARY_PATH
17776
freebsd* | dragonfly*)
17777
# DragonFly does not have aout. When/if they implement a new
17778
# versioning mechanism, adjust this.
17779
if test -x /usr/bin/objformat; then
17780
objformat=`/usr/bin/objformat`
17783
freebsd[123]*) objformat=aout ;;
17784
*) objformat=elf ;;
17787
version_type=freebsd-$objformat
17788
case $version_type in
17790
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17795
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17799
shlibpath_var=LD_LIBRARY_PATH
17802
shlibpath_overrides_runpath=yes
17804
freebsd3.[01]* | freebsdelf3.[01]*)
17805
shlibpath_overrides_runpath=yes
17806
hardcode_into_libs=yes
17808
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17809
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17810
shlibpath_overrides_runpath=no
17811
hardcode_into_libs=yes
17813
*) # from 4.6 on, and DragonFly
17814
shlibpath_overrides_runpath=yes
17815
hardcode_into_libs=yes
17824
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17825
soname_spec='${libname}${release}${shared_ext}$major'
17826
shlibpath_var=LD_LIBRARY_PATH
17827
hardcode_into_libs=yes
17830
hpux9* | hpux10* | hpux11*)
17831
# Give a soname corresponding to the major version so that dld.sl refuses to
17832
# link against other versions.
17839
hardcode_into_libs=yes
17840
dynamic_linker="$host_os dld.so"
17841
shlibpath_var=LD_LIBRARY_PATH
17842
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17843
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17844
soname_spec='${libname}${release}${shared_ext}$major'
17845
if test "X$HPUX_IA64_MODE" = X32; then
17846
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17848
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17850
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17854
hardcode_into_libs=yes
17855
dynamic_linker="$host_os dld.sl"
17856
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17857
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17858
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17859
soname_spec='${libname}${release}${shared_ext}$major'
17860
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17861
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17865
dynamic_linker="$host_os dld.sl"
17866
shlibpath_var=SHLIB_PATH
17867
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17868
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17869
soname_spec='${libname}${release}${shared_ext}$major'
17872
# HP-UX runs *really* slowly unless shared libraries are mode 555.
17873
postinstall_cmds='chmod 555 $lib'
17880
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17881
soname_spec='${libname}${release}${shared_ext}$major'
17882
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17883
shlibpath_var=LD_LIBRARY_PATH
17884
shlibpath_overrides_runpath=no
17885
hardcode_into_libs=yes
17888
irix5* | irix6* | nonstopux*)
17890
nonstopux*) version_type=nonstopux ;;
17892
if test "$lt_cv_prog_gnu_ld" = yes; then
17900
soname_spec='${libname}${release}${shared_ext}$major'
17901
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17903
irix5* | nonstopux*)
17904
libsuff= shlibsuff=
17907
case $LD in # libtool.m4 will add one of these switches to LD
17908
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17909
libsuff= shlibsuff= libmagic=32-bit;;
17910
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17911
libsuff=32 shlibsuff=N32 libmagic=N32;;
17912
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17913
libsuff=64 shlibsuff=64 libmagic=64-bit;;
17914
*) libsuff= shlibsuff= libmagic=never-match;;
17918
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17919
shlibpath_overrides_runpath=no
17920
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17921
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17922
hardcode_into_libs=yes
17925
# No shared lib support for Linux oldld, aout, or coff.
17926
linux*oldld* | linux*aout* | linux*coff*)
17930
# This must be Linux ELF.
17931
linux* | k*bsd*-gnu)
17935
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17936
soname_spec='${libname}${release}${shared_ext}$major'
17937
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17938
shlibpath_var=LD_LIBRARY_PATH
17939
shlibpath_overrides_runpath=no
17940
# This implies no fast_install, which is unacceptable.
17941
# Some rework will be needed to allow for fast_install
17942
# before this can be enabled.
17943
hardcode_into_libs=yes
17945
# Append ld.so.conf contents to the search path
17946
if test -f /etc/ld.so.conf; then
17947
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' ' '`
17948
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17951
# We used to test for /lib/ld.so.1 and disable shared libraries on
17952
# powerpc, because MkLinux only supported shared libraries with the
17953
# GNU dynamic linker. Since this was broken with cross compilers,
17954
# most powerpc-linux boxes support dynamic linking these days and
17955
# people can always --disable-shared, the test was removed, and we
17956
# assume the GNU/Linux dynamic linker is in use.
17957
dynamic_linker='GNU/Linux ld.so'
17964
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17965
soname_spec='${libname}${release}${shared_ext}$major'
17966
shlibpath_var=LD_LIBRARY_PATH
17967
shlibpath_overrides_runpath=no
17968
hardcode_into_libs=yes
17969
dynamic_linker='NetBSD ld.elf_so'
17976
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17977
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17978
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17979
dynamic_linker='NetBSD (a.out) ld.so'
17981
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17982
soname_spec='${libname}${release}${shared_ext}$major'
17983
dynamic_linker='NetBSD ld.elf_so'
17985
shlibpath_var=LD_LIBRARY_PATH
17986
shlibpath_overrides_runpath=yes
17987
hardcode_into_libs=yes
17992
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17993
shlibpath_var=LD_LIBRARY_PATH
17994
shlibpath_overrides_runpath=yes
18001
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18002
soname_spec='${libname}${release}${shared_ext}$major'
18003
shlibpath_var=LD_LIBRARY_PATH
18004
shlibpath_overrides_runpath=yes
18009
sys_lib_dlsearch_path_spec="/usr/lib"
18011
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18013
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18014
*) need_version=no ;;
18016
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18017
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18018
shlibpath_var=LD_LIBRARY_PATH
18019
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18021
openbsd2.[89] | openbsd2.[89].*)
18022
shlibpath_overrides_runpath=no
18025
shlibpath_overrides_runpath=yes
18029
shlibpath_overrides_runpath=yes
18034
libname_spec='$name'
18037
library_names_spec='$libname${shared_ext} $libname.a'
18038
dynamic_linker='OS/2 ld.exe'
18039
shlibpath_var=LIBPATH
18042
osf3* | osf4* | osf5*)
18046
soname_spec='${libname}${release}${shared_ext}$major'
18047
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18048
shlibpath_var=LD_LIBRARY_PATH
18049
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18050
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18061
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18062
soname_spec='${libname}${release}${shared_ext}$major'
18063
shlibpath_var=LD_LIBRARY_PATH
18064
shlibpath_overrides_runpath=yes
18065
hardcode_into_libs=yes
18066
# ldd complains unless libraries are executable
18067
postinstall_cmds='chmod +x $lib'
18072
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18073
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18074
shlibpath_var=LD_LIBRARY_PATH
18075
shlibpath_overrides_runpath=yes
18076
if test "$with_gnu_ld" = yes; then
18084
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18085
soname_spec='${libname}${release}${shared_ext}$major'
18086
shlibpath_var=LD_LIBRARY_PATH
18087
case $host_vendor in
18089
shlibpath_overrides_runpath=no
18091
export_dynamic_flag_spec='${wl}-Blargedynsym'
18092
runpath_var=LD_RUN_PATH
18100
shlibpath_overrides_runpath=no
18101
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18107
if test -d /usr/nec ;then
18109
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18110
soname_spec='$libname${shared_ext}.$major'
18111
shlibpath_var=LD_LIBRARY_PATH
18115
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18116
version_type=freebsd-elf
18119
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18120
soname_spec='${libname}${release}${shared_ext}$major'
18121
shlibpath_var=LD_LIBRARY_PATH
18122
hardcode_into_libs=yes
18123
if test "$with_gnu_ld" = yes; then
18124
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18125
shlibpath_overrides_runpath=no
18127
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18128
shlibpath_overrides_runpath=yes
18131
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18135
sys_lib_dlsearch_path_spec='/usr/lib'
18140
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18141
soname_spec='${libname}${release}${shared_ext}$major'
18142
shlibpath_var=LD_LIBRARY_PATH
18149
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18150
echo "${ECHO_T}$dynamic_linker" >&6; }
18151
test "$dynamic_linker" = no && can_build_shared=no
18153
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18154
echo $ECHO_N "(cached) $ECHO_C" >&6
18156
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18159
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18160
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18161
echo $ECHO_N "(cached) $ECHO_C" >&6
18163
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18166
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18168
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18169
if test "$GCC" = yes; then
18170
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18173
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18174
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18175
hardcode_action_F77=
18176
if test -n "$hardcode_libdir_flag_spec_F77" || \
18177
test -n "$runpath_var_F77" || \
18178
test "X$hardcode_automatic_F77" = "Xyes" ; then
18180
# We can hardcode non-existant directories.
18181
if test "$hardcode_direct_F77" != no &&
18182
# If the only mechanism to avoid hardcoding is shlibpath_var, we
18183
# have to relink, otherwise we might link with an installed library
18184
# when we should be linking with a yet-to-be-installed one
18185
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
18186
test "$hardcode_minus_L_F77" != no; then
18187
# Linking always hardcodes the temporary library directory.
18188
hardcode_action_F77=relink
18190
# We can link without hardcoding, and we can hardcode nonexisting dirs.
18191
hardcode_action_F77=immediate
18194
# We cannot hardcode anything, or else we can only hardcode existing
18196
hardcode_action_F77=unsupported
18198
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
18199
echo "${ECHO_T}$hardcode_action_F77" >&6; }
18201
if test "$hardcode_action_F77" = relink; then
18202
# Fast installation is not supported
18203
enable_fast_install=no
18204
elif test "$shlibpath_overrides_runpath" = yes ||
18205
test "$enable_shared" = no; then
18206
# Fast installation is not necessary
18207
enable_fast_install=needless
18211
# The else clause should only fire when bootstrapping the
18212
# libtool distribution, otherwise you forgot to ship ltmain.sh
18213
# with your package, and you will get complaints that there are
18214
# no rules to generate ltmain.sh.
18215
if test -f "$ltmain"; then
18216
# See if we are running on zsh, and set the options which allow our commands through
18217
# without removal of \ escapes.
18218
if test -n "${ZSH_VERSION+set}" ; then
18219
setopt NO_GLOB_SUBST
18221
# Now quote all the things that may contain metacharacters while being
18222
# careful not to overquote the AC_SUBSTed values. We take copies of the
18223
# variables and quote the copies for generation of the libtool script.
18224
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18226
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18227
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18228
deplibs_check_method reload_flag reload_cmds need_locks \
18229
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18230
lt_cv_sys_global_symbol_to_c_name_address \
18231
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18232
old_postinstall_cmds old_postuninstall_cmds \
18236
lt_prog_compiler_wl_F77 \
18237
lt_prog_compiler_pic_F77 \
18238
lt_prog_compiler_static_F77 \
18239
lt_prog_compiler_no_builtin_flag_F77 \
18240
export_dynamic_flag_spec_F77 \
18241
thread_safe_flag_spec_F77 \
18242
whole_archive_flag_spec_F77 \
18243
enable_shared_with_static_runtimes_F77 \
18244
old_archive_cmds_F77 \
18245
old_archive_from_new_cmds_F77 \
18246
predep_objects_F77 \
18247
postdep_objects_F77 \
18250
compiler_lib_search_path_F77 \
18251
compiler_lib_search_dirs_F77 \
18253
archive_expsym_cmds_F77 \
18254
postinstall_cmds_F77 \
18255
postuninstall_cmds_F77 \
18256
old_archive_from_expsyms_cmds_F77 \
18257
allow_undefined_flag_F77 \
18258
no_undefined_flag_F77 \
18259
export_symbols_cmds_F77 \
18260
hardcode_libdir_flag_spec_F77 \
18261
hardcode_libdir_flag_spec_ld_F77 \
18262
hardcode_libdir_separator_F77 \
18263
hardcode_automatic_F77 \
18265
module_expsym_cmds_F77 \
18266
lt_cv_prog_compiler_c_o_F77 \
18267
fix_srcfile_path_F77 \
18268
exclude_expsyms_F77 \
18269
include_expsyms_F77; do
18272
old_archive_cmds_F77 | \
18273
old_archive_from_new_cmds_F77 | \
18274
archive_cmds_F77 | \
18275
archive_expsym_cmds_F77 | \
18276
module_cmds_F77 | \
18277
module_expsym_cmds_F77 | \
18278
old_archive_from_expsyms_cmds_F77 | \
18279
export_symbols_cmds_F77 | \
18280
extract_expsyms_cmds | reload_cmds | finish_cmds | \
18281
postinstall_cmds | postuninstall_cmds | \
18282
old_postinstall_cmds | old_postuninstall_cmds | \
18283
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18284
# Double-quote double-evaled strings.
18285
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18288
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18294
*'\$0 --fallback-echo"')
18295
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18301
cat <<__EOF__ >> "$cfgfile"
18302
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18304
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18306
# Shell to use when invoking shell scripts.
18309
# Whether or not to build shared libraries.
18310
build_libtool_libs=$enable_shared
18312
# Whether or not to build static libraries.
18313
build_old_libs=$enable_static
18315
# Whether or not to add -lc for building shared libraries.
18316
build_libtool_need_lc=$archive_cmds_need_lc_F77
18318
# Whether or not to disallow shared libs when runtime libs are static
18319
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
18321
# Whether or not to optimize for fast installation.
18322
fast_install=$enable_fast_install
18325
host_alias=$host_alias
18329
# The build system.
18330
build_alias=$build_alias
18334
# An echo program that does not interpret backslashes.
18339
AR_FLAGS=$lt_AR_FLAGS
18344
# LTCC compiler flags.
18345
LTCFLAGS=$lt_LTCFLAGS
18347
# A language-specific compiler.
18348
CC=$lt_compiler_F77
18350
# Is the compiler the GNU C compiler?
18356
# The linker used to build libraries.
18359
# Whether we need hard or soft links.
18362
# A BSD-compatible nm program.
18365
# A symbol stripping program
18368
# Used to examine libraries when file_magic_cmd begins "file"
18369
MAGIC_CMD=$MAGIC_CMD
18371
# Used on cygwin: DLL creation program.
18374
# Used on cygwin: object dumper.
18377
# Used on cygwin: assembler.
18380
# The name of the directory that contains temporary libtool files.
18383
# How to create reloadable object files.
18384
reload_flag=$lt_reload_flag
18385
reload_cmds=$lt_reload_cmds
18387
# How to pass a linker flag through the compiler.
18388
wl=$lt_lt_prog_compiler_wl_F77
18390
# Object file suffix (normally "o").
18391
objext="$ac_objext"
18393
# Old archive suffix (normally "a").
18396
# Shared library suffix (normally ".so").
18397
shrext_cmds='$shrext_cmds'
18399
# Executable file suffix (normally "").
18402
# Additional compiler flags for building library objects.
18403
pic_flag=$lt_lt_prog_compiler_pic_F77
18406
# What is the maximum length of a command?
18407
max_cmd_len=$lt_cv_sys_max_cmd_len
18409
# Does compiler simultaneously support -c and -o options?
18410
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
18412
# Must we lock files when doing compilation?
18413
need_locks=$lt_need_locks
18415
# Do we need the lib prefix for modules?
18416
need_lib_prefix=$need_lib_prefix
18418
# Do we need a version for libraries?
18419
need_version=$need_version
18421
# Whether dlopen is supported.
18422
dlopen_support=$enable_dlopen
18424
# Whether dlopen of programs is supported.
18425
dlopen_self=$enable_dlopen_self
18427
# Whether dlopen of statically linked programs is supported.
18428
dlopen_self_static=$enable_dlopen_self_static
18430
# Compiler flag to prevent dynamic linking.
18431
link_static_flag=$lt_lt_prog_compiler_static_F77
18433
# Compiler flag to turn off builtin functions.
18434
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
18436
# Compiler flag to allow reflexive dlopens.
18437
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
18439
# Compiler flag to generate shared objects directly from archives.
18440
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
18442
# Compiler flag to generate thread-safe objects.
18443
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
18445
# Library versioning type.
18446
version_type=$version_type
18448
# Format of library name prefix.
18449
libname_spec=$lt_libname_spec
18451
# List of archive names. First name is the real one, the rest are links.
18452
# The last name is the one that the linker finds with -lNAME.
18453
library_names_spec=$lt_library_names_spec
18455
# The coded name of the library, if different from the real name.
18456
soname_spec=$lt_soname_spec
18458
# Commands used to build and install an old-style archive.
18460
old_archive_cmds=$lt_old_archive_cmds_F77
18461
old_postinstall_cmds=$lt_old_postinstall_cmds
18462
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18464
# Create an old-style archive from a shared archive.
18465
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
18467
# Create a temporary old-style archive to link instead of a shared archive.
18468
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
18470
# Commands used to build and install a shared archive.
18471
archive_cmds=$lt_archive_cmds_F77
18472
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
18473
postinstall_cmds=$lt_postinstall_cmds
18474
postuninstall_cmds=$lt_postuninstall_cmds
18476
# Commands used to build a loadable module (assumed same as above if empty)
18477
module_cmds=$lt_module_cmds_F77
18478
module_expsym_cmds=$lt_module_expsym_cmds_F77
18480
# Commands to strip libraries.
18481
old_striplib=$lt_old_striplib
18482
striplib=$lt_striplib
18484
# Dependencies to place before the objects being linked to create a
18486
predep_objects=$lt_predep_objects_F77
18488
# Dependencies to place after the objects being linked to create a
18490
postdep_objects=$lt_postdep_objects_F77
18492
# Dependencies to place before the objects being linked to create a
18494
predeps=$lt_predeps_F77
18496
# Dependencies to place after the objects being linked to create a
18498
postdeps=$lt_postdeps_F77
18500
# The directories searched by this compiler when creating a shared
18502
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
18504
# The library search path used internally by the compiler when linking
18505
# a shared library.
18506
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
18508
# Method to check whether dependent libraries are shared objects.
18509
deplibs_check_method=$lt_deplibs_check_method
18511
# Command to use when deplibs_check_method == file_magic.
18512
file_magic_cmd=$lt_file_magic_cmd
18514
# Flag that allows shared libraries with undefined symbols to be built.
18515
allow_undefined_flag=$lt_allow_undefined_flag_F77
18517
# Flag that forces no undefined symbols.
18518
no_undefined_flag=$lt_no_undefined_flag_F77
18520
# Commands used to finish a libtool library installation in a directory.
18521
finish_cmds=$lt_finish_cmds
18523
# Same as above, but a single script fragment to be evaled but not shown.
18524
finish_eval=$lt_finish_eval
18526
# Take the output of nm and produce a listing of raw symbols and C names.
18527
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18529
# Transform the output of nm in a proper C declaration
18530
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18532
# Transform the output of nm in a C name address pair
18533
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18535
# This is the shared library runtime path variable.
18536
runpath_var=$runpath_var
18538
# This is the shared library path variable.
18539
shlibpath_var=$shlibpath_var
18541
# Is shlibpath searched before the hard-coded library search path?
18542
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18544
# How to hardcode a shared library path into an executable.
18545
hardcode_action=$hardcode_action_F77
18547
# Whether we should hardcode library paths into libraries.
18548
hardcode_into_libs=$hardcode_into_libs
18550
# Flag to hardcode \$libdir into a binary during linking.
18551
# This must work even if \$libdir does not exist.
18552
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
18554
# If ld is used when linking, flag to hardcode \$libdir into
18555
# a binary during linking. This must work even if \$libdir does
18557
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
18559
# Whether we need a single -rpath flag with a separated argument.
18560
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
18562
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18563
# resulting binary.
18564
hardcode_direct=$hardcode_direct_F77
18566
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18567
# resulting binary.
18568
hardcode_minus_L=$hardcode_minus_L_F77
18570
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18571
# the resulting binary.
18572
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
18574
# Set to yes if building a shared library automatically hardcodes DIR into the library
18575
# and all subsequent libraries and executables linked against it.
18576
hardcode_automatic=$hardcode_automatic_F77
18578
# Variables whose values should be saved in libtool wrapper scripts and
18579
# restored at relink time.
18580
variables_saved_for_relink="$variables_saved_for_relink"
18582
# Whether libtool must link a program against all its dependency libraries.
18583
link_all_deplibs=$link_all_deplibs_F77
18585
# Compile-time system search path for libraries
18586
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18588
# Run-time system search path for libraries
18589
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18591
# Fix the shell variable \$srcfile for the compiler.
18592
fix_srcfile_path=$lt_fix_srcfile_path
18594
# Set to yes if exported symbols are required.
18595
always_export_symbols=$always_export_symbols_F77
18597
# The commands to list exported symbols.
18598
export_symbols_cmds=$lt_export_symbols_cmds_F77
18600
# The commands to extract the exported symbol list from a shared archive.
18601
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18603
# Symbols that should not be listed in the preloaded symbols.
18604
exclude_expsyms=$lt_exclude_expsyms_F77
18606
# Symbols that must always be exported.
18607
include_expsyms=$lt_include_expsyms_F77
18609
# ### END LIBTOOL TAG CONFIG: $tagname
18615
# If there is no Makefile yet, we rely on a make rule to execute
18616
# `config.status --recheck' to rerun these tests and create the
18617
# libtool script then.
18618
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18619
if test -f "$ltmain_in"; then
18620
test -f Makefile && make "$ltmain"
18626
ac_cpp='$CPP $CPPFLAGS'
18627
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18628
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18629
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18639
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
18642
# Source file extension for Java test sources.
18645
# Object file extension for compiled Java test sources.
18649
# Code to be used in simple compile tests
18650
lt_simple_compile_test_code="class foo {}"
18652
# Code to be used in simple link tests
18653
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
18655
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18657
# If no C compiler was specified, use CC.
18660
# If no C compiler flags were specified, use CFLAGS.
18661
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18663
# Allow CC to be a program name with arguments.
18667
# save warnings/boilerplate of simple test code
18668
ac_outfile=conftest.$ac_objext
18669
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18670
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18671
_lt_compiler_boilerplate=`cat conftest.err`
18674
ac_outfile=conftest.$ac_objext
18675
echo "$lt_simple_link_test_code" >conftest.$ac_ext
18676
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18677
_lt_linker_boilerplate=`cat conftest.err`
18681
# Allow CC to be a program name with arguments.
18686
for cc_temp in $compiler""; do
18688
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18689
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18694
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18697
# GCJ did not exist at the time GCC didn't implicitly link libc in.
18698
archive_cmds_need_lc_GCJ=no
18700
old_archive_cmds_GCJ=$old_archive_cmds
18703
lt_prog_compiler_no_builtin_flag_GCJ=
18705
if test "$GCC" = yes; then
18706
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
18709
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
18710
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
18711
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
18712
echo $ECHO_N "(cached) $ECHO_C" >&6
18714
lt_cv_prog_compiler_rtti_exceptions=no
18715
ac_outfile=conftest.$ac_objext
18716
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18717
lt_compiler_flag="-fno-rtti -fno-exceptions"
18718
# Insert the option either (1) after the last *FLAGS variable, or
18719
# (2) before a word containing "conftest.", or (3) at the end.
18720
# Note that $ac_compile itself does not contain backslashes and begins
18721
# with a dollar sign (not a hyphen), so the echo should work correctly.
18722
# The option is referenced via a variable to avoid confusing sed.
18723
lt_compile=`echo "$ac_compile" | $SED \
18724
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18725
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18726
-e 's:$: $lt_compiler_flag:'`
18727
(eval echo "\"\$as_me:18727: $lt_compile\"" >&5)
18728
(eval "$lt_compile" 2>conftest.err)
18730
cat conftest.err >&5
18731
echo "$as_me:18731: \$? = $ac_status" >&5
18732
if (exit $ac_status) && test -s "$ac_outfile"; then
18733
# The compiler can only warn and ignore the option if not recognized
18734
# So say no if there are warnings other than the usual output.
18735
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18736
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18737
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18738
lt_cv_prog_compiler_rtti_exceptions=yes
18744
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18745
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
18747
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18748
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18755
lt_prog_compiler_wl_GCJ=
18756
lt_prog_compiler_pic_GCJ=
18757
lt_prog_compiler_static_GCJ=
18759
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18760
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
18762
if test "$GCC" = yes; then
18763
lt_prog_compiler_wl_GCJ='-Wl,'
18764
lt_prog_compiler_static_GCJ='-static'
18768
# All AIX code is PIC.
18769
if test "$host_cpu" = ia64; then
18770
# AIX 5 now supports IA64 processor
18771
lt_prog_compiler_static_GCJ='-Bstatic'
18776
# FIXME: we need at least 68020 code to build shared libraries, but
18777
# adding the `-m68020' flag to GCC prevents building anything better,
18779
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18782
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18783
# PIC is the default for these OSes.
18786
mingw* | cygwin* | pw32* | os2*)
18787
# This hack is so that the source file can tell whether it is being
18788
# built for inclusion in a dll (and should export symbols for example).
18789
# Although the cygwin gcc ignores -fPIC, still need this for old-style
18790
# (--disable-auto-import) libraries
18794
darwin* | rhapsody*)
18795
# PIC is the default on this platform
18796
# Common symbols not allowed in MH_DYLIB files
18797
lt_prog_compiler_pic_GCJ='-fno-common'
18801
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
18802
# Instead, we relocate shared libraries at runtime.
18806
# Just because we use GCC doesn't mean we suddenly get shared libraries
18807
# on systems that don't support them.
18808
lt_prog_compiler_can_build_shared_GCJ=no
18813
if test -d /usr/nec; then
18814
lt_prog_compiler_pic_GCJ=-Kconform_pic
18819
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18820
# not for PA HP-UX.
18826
lt_prog_compiler_pic_GCJ='-fPIC'
18832
lt_prog_compiler_pic_GCJ='-fPIC'
18836
# PORTME Check for flag to pass linker flags through the system compiler.
18839
lt_prog_compiler_wl_GCJ='-Wl,'
18840
if test "$host_cpu" = ia64; then
18841
# AIX 5 now supports IA64 processor
18842
lt_prog_compiler_static_GCJ='-Bstatic'
18844
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18848
# PIC is the default on this platform
18849
# Common symbols not allowed in MH_DYLIB files
18850
case $cc_basename in
18852
lt_prog_compiler_pic_GCJ='-qnocommon'
18853
lt_prog_compiler_wl_GCJ='-Wl,'
18858
mingw* | cygwin* | pw32* | os2*)
18859
# This hack is so that the source file can tell whether it is being
18860
# built for inclusion in a dll (and should export symbols for example).
18864
hpux9* | hpux10* | hpux11*)
18865
lt_prog_compiler_wl_GCJ='-Wl,'
18866
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18867
# not for PA HP-UX.
18873
lt_prog_compiler_pic_GCJ='+Z'
18876
# Is there a better lt_prog_compiler_static that works with the bundled CC?
18877
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18880
irix5* | irix6* | nonstopux*)
18881
lt_prog_compiler_wl_GCJ='-Wl,'
18882
# PIC (with -KPIC) is the default.
18883
lt_prog_compiler_static_GCJ='-non_shared'
18887
lt_prog_compiler_pic_GCJ='-KPIC'
18888
lt_prog_compiler_static_GCJ='-Bstatic'
18891
linux* | k*bsd*-gnu)
18892
case $cc_basename in
18894
lt_prog_compiler_wl_GCJ='-Wl,'
18895
lt_prog_compiler_pic_GCJ='-KPIC'
18896
lt_prog_compiler_static_GCJ='-static'
18898
pgcc* | pgf77* | pgf90* | pgf95*)
18899
# Portland Group compilers (*not* the Pentium gcc compiler,
18900
# which looks to be a dead project)
18901
lt_prog_compiler_wl_GCJ='-Wl,'
18902
lt_prog_compiler_pic_GCJ='-fpic'
18903
lt_prog_compiler_static_GCJ='-Bstatic'
18906
lt_prog_compiler_wl_GCJ='-Wl,'
18907
# All Alpha code is PIC.
18908
lt_prog_compiler_static_GCJ='-non_shared'
18911
case `$CC -V 2>&1 | sed 5q` in
18914
lt_prog_compiler_pic_GCJ='-KPIC'
18915
lt_prog_compiler_static_GCJ='-Bstatic'
18916
lt_prog_compiler_wl_GCJ='-Wl,'
18919
# Sun Fortran 8.3 passes all unrecognized flags to the linker
18920
lt_prog_compiler_pic_GCJ='-KPIC'
18921
lt_prog_compiler_static_GCJ='-Bstatic'
18922
lt_prog_compiler_wl_GCJ=''
18929
osf3* | osf4* | osf5*)
18930
lt_prog_compiler_wl_GCJ='-Wl,'
18931
# All OSF/1 code is PIC.
18932
lt_prog_compiler_static_GCJ='-non_shared'
18936
lt_prog_compiler_static_GCJ='-non_shared'
18940
lt_prog_compiler_pic_GCJ='-KPIC'
18941
lt_prog_compiler_static_GCJ='-Bstatic'
18942
case $cc_basename in
18943
f77* | f90* | f95*)
18944
lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18946
lt_prog_compiler_wl_GCJ='-Wl,';;
18951
lt_prog_compiler_wl_GCJ='-Qoption ld '
18952
lt_prog_compiler_pic_GCJ='-PIC'
18953
lt_prog_compiler_static_GCJ='-Bstatic'
18956
sysv4 | sysv4.2uw2* | sysv4.3*)
18957
lt_prog_compiler_wl_GCJ='-Wl,'
18958
lt_prog_compiler_pic_GCJ='-KPIC'
18959
lt_prog_compiler_static_GCJ='-Bstatic'
18963
if test -d /usr/nec ;then
18964
lt_prog_compiler_pic_GCJ='-Kconform_pic'
18965
lt_prog_compiler_static_GCJ='-Bstatic'
18969
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18970
lt_prog_compiler_wl_GCJ='-Wl,'
18971
lt_prog_compiler_pic_GCJ='-KPIC'
18972
lt_prog_compiler_static_GCJ='-Bstatic'
18976
lt_prog_compiler_wl_GCJ='-Wl,'
18977
lt_prog_compiler_can_build_shared_GCJ=no
18981
lt_prog_compiler_pic_GCJ='-pic'
18982
lt_prog_compiler_static_GCJ='-Bstatic'
18986
lt_prog_compiler_can_build_shared_GCJ=no
18991
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18992
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
18995
# Check to make sure the PIC flag actually works.
18997
if test -n "$lt_prog_compiler_pic_GCJ"; then
18999
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
19000
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
19001
if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
19002
echo $ECHO_N "(cached) $ECHO_C" >&6
19004
lt_cv_prog_compiler_pic_works_GCJ=no
19005
ac_outfile=conftest.$ac_objext
19006
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19007
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
19008
# Insert the option either (1) after the last *FLAGS variable, or
19009
# (2) before a word containing "conftest.", or (3) at the end.
19010
# Note that $ac_compile itself does not contain backslashes and begins
19011
# with a dollar sign (not a hyphen), so the echo should work correctly.
19012
# The option is referenced via a variable to avoid confusing sed.
19013
lt_compile=`echo "$ac_compile" | $SED \
19014
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19015
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19016
-e 's:$: $lt_compiler_flag:'`
19017
(eval echo "\"\$as_me:19017: $lt_compile\"" >&5)
19018
(eval "$lt_compile" 2>conftest.err)
19020
cat conftest.err >&5
19021
echo "$as_me:19021: \$? = $ac_status" >&5
19022
if (exit $ac_status) && test -s "$ac_outfile"; then
19023
# The compiler can only warn and ignore the option if not recognized
19024
# So say no if there are warnings other than the usual output.
19025
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19026
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19027
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19028
lt_cv_prog_compiler_pic_works_GCJ=yes
19034
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
19035
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
19037
if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
19038
case $lt_prog_compiler_pic_GCJ in
19040
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
19043
lt_prog_compiler_pic_GCJ=
19044
lt_prog_compiler_can_build_shared_GCJ=no
19049
# For platforms which do not support PIC, -DPIC is meaningless:
19051
lt_prog_compiler_pic_GCJ=
19054
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
19059
# Check to make sure the static flag actually works.
19061
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
19062
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19063
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19064
if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
19065
echo $ECHO_N "(cached) $ECHO_C" >&6
19067
lt_cv_prog_compiler_static_works_GCJ=no
19068
save_LDFLAGS="$LDFLAGS"
19069
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19070
echo "$lt_simple_link_test_code" > conftest.$ac_ext
19071
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19072
# The linker can only warn and ignore the option if not recognized
19073
# So say no if there are warnings
19074
if test -s conftest.err; then
19075
# Append any errors to the config.log.
19076
cat conftest.err 1>&5
19077
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19078
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19079
if diff conftest.exp conftest.er2 >/dev/null; then
19080
lt_cv_prog_compiler_static_works_GCJ=yes
19083
lt_cv_prog_compiler_static_works_GCJ=yes
19087
LDFLAGS="$save_LDFLAGS"
19090
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
19091
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
19093
if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
19096
lt_prog_compiler_static_GCJ=
19100
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19101
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19102
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
19103
echo $ECHO_N "(cached) $ECHO_C" >&6
19105
lt_cv_prog_compiler_c_o_GCJ=no
19106
$rm -r conftest 2>/dev/null
19110
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19112
lt_compiler_flag="-o out/conftest2.$ac_objext"
19113
# Insert the option either (1) after the last *FLAGS variable, or
19114
# (2) before a word containing "conftest.", or (3) at the end.
19115
# Note that $ac_compile itself does not contain backslashes and begins
19116
# with a dollar sign (not a hyphen), so the echo should work correctly.
19117
lt_compile=`echo "$ac_compile" | $SED \
19118
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19119
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19120
-e 's:$: $lt_compiler_flag:'`
19121
(eval echo "\"\$as_me:19121: $lt_compile\"" >&5)
19122
(eval "$lt_compile" 2>out/conftest.err)
19124
cat out/conftest.err >&5
19125
echo "$as_me:19125: \$? = $ac_status" >&5
19126
if (exit $ac_status) && test -s out/conftest2.$ac_objext
19128
# The compiler can only warn and ignore the option if not recognized
19129
# So say no if there are warnings
19130
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19131
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19132
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19133
lt_cv_prog_compiler_c_o_GCJ=yes
19138
# SGI C++ compiler will create directory out/ii_files/ for
19139
# template instantiation
19140
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19141
$rm out/* && rmdir out
19147
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
19148
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
19151
hard_links="nottested"
19152
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
19153
# do not overwrite the value of need_locks provided by the user
19154
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19155
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19158
ln conftest.a conftest.b 2>/dev/null && hard_links=no
19160
ln conftest.a conftest.b 2>&5 || hard_links=no
19161
ln conftest.a conftest.b 2>/dev/null && hard_links=no
19162
{ echo "$as_me:$LINENO: result: $hard_links" >&5
19163
echo "${ECHO_T}$hard_links" >&6; }
19164
if test "$hard_links" = no; then
19165
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19166
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19173
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19174
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19177
allow_undefined_flag_GCJ=
19178
enable_shared_with_static_runtimes_GCJ=no
19180
archive_expsym_cmds_GCJ=
19181
old_archive_From_new_cmds_GCJ=
19182
old_archive_from_expsyms_cmds_GCJ=
19183
export_dynamic_flag_spec_GCJ=
19184
whole_archive_flag_spec_GCJ=
19185
thread_safe_flag_spec_GCJ=
19186
hardcode_libdir_flag_spec_GCJ=
19187
hardcode_libdir_flag_spec_ld_GCJ=
19188
hardcode_libdir_separator_GCJ=
19189
hardcode_direct_GCJ=no
19190
hardcode_minus_L_GCJ=no
19191
hardcode_shlibpath_var_GCJ=unsupported
19192
link_all_deplibs_GCJ=unknown
19193
hardcode_automatic_GCJ=no
19195
module_expsym_cmds_GCJ=
19196
always_export_symbols_GCJ=no
19197
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19198
# include_expsyms should be a list of space-separated symbols to be *always*
19199
# included in the symbol list
19200
include_expsyms_GCJ=
19201
# exclude_expsyms can be an extended regexp of symbols to exclude
19202
# it will be wrapped by ` (' and `)$', so one must not match beginning or
19203
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19204
# as well as any symbol that contains `d'.
19205
exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19206
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19207
# platforms (ab)use it in PIC code, but their linkers get confused if
19208
# the symbol is explicitly referenced. Since portable code cannot
19209
# rely on this symbol name, it's probably fine to never include it in
19210
# preloaded symbol tables.
19211
# Exclude shared library initialization/finalization symbols.
19212
extract_expsyms_cmds=
19213
# Just being paranoid about ensuring that cc_basename is set.
19214
for cc_temp in $compiler""; do
19216
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19217
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19222
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19225
cygwin* | mingw* | pw32*)
19226
# FIXME: the MSVC++ port hasn't been tested in a loooong time
19227
# When not using gcc, we currently assume that we are using
19228
# Microsoft Visual C++.
19229
if test "$GCC" != yes; then
19234
# we just hope/assume this is gcc and not c89 (= MSVC++)
19243
if test "$with_gnu_ld" = yes; then
19244
# If archive_cmds runs LD, not CC, wlarc should be empty
19247
# Set some defaults for GNU ld with shared library support. These
19248
# are reset later if shared libraries are not supported. Putting them
19249
# here allows them to be overridden if necessary.
19250
runpath_var=LD_RUN_PATH
19251
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
19252
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
19253
# ancient GNU ld didn't support --whole-archive et. al.
19254
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19255
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19257
whole_archive_flag_spec_GCJ=
19259
supports_anon_versioning=no
19260
case `$LD -v 2>/dev/null` in
19261
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19262
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19263
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19264
*\ 2.11.*) ;; # other 2.11 versions
19265
*) supports_anon_versioning=yes ;;
19268
# See if GNU ld supports shared libraries.
19271
# On AIX/PPC, the GNU linker is very broken
19272
if test "$host_cpu" != ia64; then
19276
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
19277
*** to be unable to reliably create shared libraries on AIX.
19278
*** Therefore, libtool is disabling shared libraries support. If you
19279
*** really care for shared libraries, you may want to modify your PATH
19280
*** so that a non-GNU linker is found, and then restart.
19287
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)'
19288
hardcode_libdir_flag_spec_GCJ='-L$libdir'
19289
hardcode_minus_L_GCJ=yes
19291
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19292
# that the semantics of dynamic libraries on AmigaOS, at least up
19293
# to version 4, is to share data among multiple programs linked
19294
# with the same dynamic library. Since this doesn't match the
19295
# behavior of shared libraries on other platforms, we can't use
19301
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19302
allow_undefined_flag_GCJ=unsupported
19303
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19304
# support --undefined. This deserves some investigation. FIXME
19305
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19311
cygwin* | mingw* | pw32*)
19312
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
19313
# as there is no search path for DLLs.
19314
hardcode_libdir_flag_spec_GCJ='-L$libdir'
19315
allow_undefined_flag_GCJ=unsupported
19316
always_export_symbols_GCJ=no
19317
enable_shared_with_static_runtimes_GCJ=yes
19318
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
19320
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19321
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19322
# If the export-symbols file already is a .def file (1st line
19323
# is EXPORTS), use it as is; otherwise, prepend...
19324
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19325
cp $export_symbols $output_objdir/$soname.def;
19327
echo EXPORTS > $output_objdir/$soname.def;
19328
cat $export_symbols >> $output_objdir/$soname.def;
19330
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19337
hardcode_direct_GCJ=no
19338
hardcode_shlibpath_var_GCJ=no
19339
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19340
export_dynamic_flag_spec_GCJ='${wl}-E'
19341
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19342
# Instead, shared libraries are loaded at an image base (0x10000000 by
19343
# default) and relocated if they conflict, which is a slow very memory
19344
# consuming and fragmenting process. To avoid this, we pick a random,
19345
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19346
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
19347
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'
19348
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'
19351
gnu* | linux* | k*bsd*-gnu)
19352
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19354
case $cc_basename,$host_cpu in
19355
pgcc*) # Portland Group C compiler
19356
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'
19357
tmp_addflag=' $pic_flag'
19359
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
19360
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'
19361
tmp_addflag=' $pic_flag -Mnomain' ;;
19362
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
19363
tmp_addflag=' -i_dynamic' ;;
19364
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
19365
tmp_addflag=' -i_dynamic -nofor_main' ;;
19366
ifc* | ifort*) # Intel Fortran compiler
19367
tmp_addflag=' -nofor_main' ;;
19369
case `$CC -V 2>&1 | sed 5q` in
19370
*Sun\ C*) # Sun C 5.9
19371
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'
19372
tmp_sharedflag='-G' ;;
19373
*Sun\ F*) # Sun Fortran 8.3
19374
tmp_sharedflag='-G' ;;
19376
tmp_sharedflag='-shared' ;;
19378
archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19380
if test $supports_anon_versioning = yes; then
19381
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
19382
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19383
$echo "local: *; };" >> $output_objdir/$libname.ver~
19384
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19386
link_all_deplibs_GCJ=no
19392
netbsd* | netbsdelf*-gnu)
19393
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19394
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19397
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19398
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19403
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19407
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
19408
*** create shared libraries on Solaris systems. Therefore, libtool
19409
*** is disabling shared libraries support. We urge you to upgrade GNU
19410
*** binutils to release 2.9.1 or newer. Another option is to modify
19411
*** your PATH or compiler configuration so that the native linker is
19412
*** used, and then restart.
19415
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19416
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19417
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19423
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
19424
case `$LD -v 2>&1` in
19425
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
19429
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
19430
*** reliably create shared libraries on SCO systems. Therefore, libtool
19431
*** is disabling shared libraries support. We urge you to upgrade GNU
19432
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
19433
*** your PATH or compiler configuration so that the native linker is
19434
*** used, and then restart.
19439
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19440
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
19441
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
19442
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
19451
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19453
hardcode_direct_GCJ=yes
19454
hardcode_shlibpath_var_GCJ=no
19458
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19459
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19460
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19467
if test "$ld_shlibs_GCJ" = no; then
19469
hardcode_libdir_flag_spec_GCJ=
19470
export_dynamic_flag_spec_GCJ=
19471
whole_archive_flag_spec_GCJ=
19474
# PORTME fill in a description of your system's linker (not GNU ld)
19477
allow_undefined_flag_GCJ=unsupported
19478
always_export_symbols_GCJ=yes
19479
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'
19480
# Note: this linker hardcodes the directories in LIBPATH if there
19481
# are no directories specified by -L.
19482
hardcode_minus_L_GCJ=yes
19483
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
19484
# Neither direct hardcoding nor static linking is supported with a
19486
hardcode_direct_GCJ=unsupported
19491
if test "$host_cpu" = ia64; then
19492
# On IA64, the linker does run time linking by default, so we don't
19493
# have to do anything special.
19494
aix_use_runtimelinking=no
19495
exp_sym_flag='-Bexport'
19498
# If we're using GNU nm, then we don't want the "-C" option.
19499
# -C means demangle to AIX nm, but means don't demangle with GNU nm
19500
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19501
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'
19503
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'
19505
aix_use_runtimelinking=no
19507
# Test if we are trying to use run time linking or normal
19508
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
19509
# need to do runtime linking.
19510
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19511
for ld_flag in $LDFLAGS; do
19512
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19513
aix_use_runtimelinking=yes
19520
exp_sym_flag='-bexport'
19521
no_entry_flag='-bnoentry'
19524
# When large executables or shared objects are built, AIX ld can
19525
# have problems creating the table of contents. If linking a library
19526
# or program results in "error TOC overflow" add -mminimal-toc to
19527
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19528
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19530
archive_cmds_GCJ=''
19531
hardcode_direct_GCJ=yes
19532
hardcode_libdir_separator_GCJ=':'
19533
link_all_deplibs_GCJ=yes
19535
if test "$GCC" = yes; then
19536
case $host_os in aix4.[012]|aix4.[012].*)
19537
# We only want to do this on AIX 4.2 and lower, the check
19538
# below for broken collect2 doesn't work under 4.3+
19539
collect2name=`${CC} -print-prog-name=collect2`
19540
if test -f "$collect2name" && \
19541
strings "$collect2name" | grep resolve_lib_name >/dev/null
19543
# We have reworked collect2
19546
# We have old collect2
19547
hardcode_direct_GCJ=unsupported
19548
# It fails to find uninstalled libraries when the uninstalled
19549
# path is not listed in the libpath. Setting hardcode_minus_L
19550
# to unsupported forces relinking
19551
hardcode_minus_L_GCJ=yes
19552
hardcode_libdir_flag_spec_GCJ='-L$libdir'
19553
hardcode_libdir_separator_GCJ=
19557
shared_flag='-shared'
19558
if test "$aix_use_runtimelinking" = yes; then
19559
shared_flag="$shared_flag "'${wl}-G'
19563
if test "$host_cpu" = ia64; then
19564
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19565
# chokes on -Wl,-G. The following line is correct:
19568
if test "$aix_use_runtimelinking" = yes; then
19569
shared_flag='${wl}-G'
19571
shared_flag='${wl}-bM:SRE'
19576
# It seems that -bexpall does not export symbols beginning with
19577
# underscore (_), so it is better to generate a list of symbols to export.
19578
always_export_symbols_GCJ=yes
19579
if test "$aix_use_runtimelinking" = yes; then
19580
# Warning - without using the other runtime loading flags (-brtl),
19581
# -berok will link without error, but may produce a broken library.
19582
allow_undefined_flag_GCJ='-berok'
19583
# Determine the default libpath from the value encoded in an empty executable.
19584
cat >conftest.$ac_ext <<_ACEOF
19587
cat confdefs.h >>conftest.$ac_ext
19588
cat >>conftest.$ac_ext <<_ACEOF
19589
/* end confdefs.h. */
19599
rm -f conftest.$ac_objext conftest$ac_exeext
19600
if { (ac_try="$ac_link"
19601
case "(($ac_try" in
19602
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19603
*) ac_try_echo=$ac_try;;
19605
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19606
(eval "$ac_link") 2>conftest.er1
19608
grep -v '^ *+' conftest.er1 >conftest.err
19610
cat conftest.err >&5
19611
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19612
(exit $ac_status); } && {
19613
test -z "$ac_c_werror_flag" ||
19614
test ! -s conftest.err
19615
} && test -s conftest$ac_exeext &&
19616
$as_test_x conftest$ac_exeext; then
19618
lt_aix_libpath_sed='
19619
/Import File Strings/,/^$/ {
19625
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19626
# Check for a 64-bit object if we didn't find anything.
19627
if test -z "$aix_libpath"; then
19628
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19631
echo "$as_me: failed program was:" >&5
19632
sed 's/^/| /' conftest.$ac_ext >&5
19637
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19638
conftest$ac_exeext conftest.$ac_ext
19639
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19641
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19642
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"
19644
if test "$host_cpu" = ia64; then
19645
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
19646
allow_undefined_flag_GCJ="-z nodefs"
19647
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"
19649
# Determine the default libpath from the value encoded in an empty executable.
19650
cat >conftest.$ac_ext <<_ACEOF
19653
cat confdefs.h >>conftest.$ac_ext
19654
cat >>conftest.$ac_ext <<_ACEOF
19655
/* end confdefs.h. */
19665
rm -f conftest.$ac_objext conftest$ac_exeext
19666
if { (ac_try="$ac_link"
19667
case "(($ac_try" in
19668
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19669
*) ac_try_echo=$ac_try;;
19671
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19672
(eval "$ac_link") 2>conftest.er1
19674
grep -v '^ *+' conftest.er1 >conftest.err
19676
cat conftest.err >&5
19677
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19678
(exit $ac_status); } && {
19679
test -z "$ac_c_werror_flag" ||
19680
test ! -s conftest.err
19681
} && test -s conftest$ac_exeext &&
19682
$as_test_x conftest$ac_exeext; then
19684
lt_aix_libpath_sed='
19685
/Import File Strings/,/^$/ {
19691
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19692
# Check for a 64-bit object if we didn't find anything.
19693
if test -z "$aix_libpath"; then
19694
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19697
echo "$as_me: failed program was:" >&5
19698
sed 's/^/| /' conftest.$ac_ext >&5
19703
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19704
conftest$ac_exeext conftest.$ac_ext
19705
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19707
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19708
# Warning - without using the other run time loading flags,
19709
# -berok will link without error, but may produce a broken library.
19710
no_undefined_flag_GCJ=' ${wl}-bernotok'
19711
allow_undefined_flag_GCJ=' ${wl}-berok'
19712
# Exported symbols can be pulled into shared objects from archives
19713
whole_archive_flag_spec_GCJ='$convenience'
19714
archive_cmds_need_lc_GCJ=yes
19715
# This is similar to how AIX traditionally builds its shared libraries.
19716
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'
19722
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)'
19723
hardcode_libdir_flag_spec_GCJ='-L$libdir'
19724
hardcode_minus_L_GCJ=yes
19725
# see comment about different semantics on the GNU ld section
19730
export_dynamic_flag_spec_GCJ=-rdynamic
19733
cygwin* | mingw* | pw32*)
19734
# When not using gcc, we currently assume that we are using
19735
# Microsoft Visual C++.
19736
# hardcode_libdir_flag_spec is actually meaningless, as there is
19737
# no search path for DLLs.
19738
hardcode_libdir_flag_spec_GCJ=' '
19739
allow_undefined_flag_GCJ=unsupported
19740
# Tell ltmain to make .lib files, not .a files.
19742
# Tell ltmain to make .dll files, not .so files.
19744
# FIXME: Setting linknames here is a bad hack.
19745
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19746
# The linker will automatically build a .lib file if we build a DLL.
19747
old_archive_From_new_cmds_GCJ='true'
19748
# FIXME: Should let the user specify the lib program.
19749
old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
19750
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
19751
enable_shared_with_static_runtimes_GCJ=yes
19754
darwin* | rhapsody*)
19756
rhapsody* | darwin1.[012])
19757
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
19760
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19761
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19763
case ${MACOSX_DEPLOYMENT_TARGET} in
19765
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19768
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
19774
archive_cmds_need_lc_GCJ=no
19775
hardcode_direct_GCJ=no
19776
hardcode_automatic_GCJ=yes
19777
hardcode_shlibpath_var_GCJ=unsupported
19778
whole_archive_flag_spec_GCJ=''
19779
link_all_deplibs_GCJ=yes
19780
if test "$GCC" = yes ; then
19781
output_verbose_link_cmd='echo'
19782
archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
19783
module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19784
archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
19785
module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
19787
case $cc_basename in
19789
output_verbose_link_cmd='echo'
19790
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
19791
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19792
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19793
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}'
19794
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}'
19804
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19805
hardcode_libdir_flag_spec_GCJ='-L$libdir'
19806
hardcode_shlibpath_var_GCJ=no
19813
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19814
# support. Future versions do this automatically, but an explicit c++rt0.o
19815
# does not break anything, and helps significantly (at the cost of a little
19818
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19819
hardcode_libdir_flag_spec_GCJ='-R$libdir'
19820
hardcode_direct_GCJ=yes
19821
hardcode_shlibpath_var_GCJ=no
19824
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
19826
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19827
hardcode_direct_GCJ=yes
19828
hardcode_minus_L_GCJ=yes
19829
hardcode_shlibpath_var_GCJ=no
19832
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19833
freebsd* | dragonfly*)
19834
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19835
hardcode_libdir_flag_spec_GCJ='-R$libdir'
19836
hardcode_direct_GCJ=yes
19837
hardcode_shlibpath_var_GCJ=no
19841
if test "$GCC" = yes; then
19842
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'
19844
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'
19846
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19847
hardcode_libdir_separator_GCJ=:
19848
hardcode_direct_GCJ=yes
19850
# hardcode_minus_L: Not really in the search PATH,
19851
# but as the default location of the library.
19852
hardcode_minus_L_GCJ=yes
19853
export_dynamic_flag_spec_GCJ='${wl}-E'
19857
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19858
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19860
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19862
if test "$with_gnu_ld" = no; then
19863
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19864
hardcode_libdir_separator_GCJ=:
19866
hardcode_direct_GCJ=yes
19867
export_dynamic_flag_spec_GCJ='${wl}-E'
19869
# hardcode_minus_L: Not really in the search PATH,
19870
# but as the default location of the library.
19871
hardcode_minus_L_GCJ=yes
19876
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19879
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19882
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19885
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19891
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19894
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19897
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19901
if test "$with_gnu_ld" = no; then
19902
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19903
hardcode_libdir_separator_GCJ=:
19907
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19908
hardcode_direct_GCJ=no
19909
hardcode_shlibpath_var_GCJ=no
19912
hardcode_direct_GCJ=yes
19913
export_dynamic_flag_spec_GCJ='${wl}-E'
19915
# hardcode_minus_L: Not really in the search PATH,
19916
# but as the default location of the library.
19917
hardcode_minus_L_GCJ=yes
19923
irix5* | irix6* | nonstopux*)
19924
if test "$GCC" = yes; then
19925
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'
19927
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'
19928
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19930
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19931
hardcode_libdir_separator_GCJ=:
19932
link_all_deplibs_GCJ=yes
19935
netbsd* | netbsdelf*-gnu)
19936
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19937
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19939
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19941
hardcode_libdir_flag_spec_GCJ='-R$libdir'
19942
hardcode_direct_GCJ=yes
19943
hardcode_shlibpath_var_GCJ=no
19947
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19948
hardcode_direct_GCJ=yes
19949
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19950
hardcode_libdir_separator_GCJ=:
19951
hardcode_shlibpath_var_GCJ=no
19955
if test -f /usr/libexec/ld.so; then
19956
hardcode_direct_GCJ=yes
19957
hardcode_shlibpath_var_GCJ=no
19958
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19959
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19960
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19961
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19962
export_dynamic_flag_spec_GCJ='${wl}-E'
19965
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19966
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19967
hardcode_libdir_flag_spec_GCJ='-R$libdir'
19970
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19971
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19981
hardcode_libdir_flag_spec_GCJ='-L$libdir'
19982
hardcode_minus_L_GCJ=yes
19983
allow_undefined_flag_GCJ=unsupported
19984
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'
19985
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19989
if test "$GCC" = yes; then
19990
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19991
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'
19993
allow_undefined_flag_GCJ=' -expect_unresolved \*'
19994
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'
19996
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19997
hardcode_libdir_separator_GCJ=:
20000
osf4* | osf5*) # as osf3* with the addition of -msym flag
20001
if test "$GCC" = yes; then
20002
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
20003
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'
20004
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20006
allow_undefined_flag_GCJ=' -expect_unresolved \*'
20007
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'
20008
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~
20009
$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'
20011
# Both c and cxx compiler support -rpath directly
20012
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
20014
hardcode_libdir_separator_GCJ=:
20018
no_undefined_flag_GCJ=' -z text'
20019
if test "$GCC" = yes; then
20021
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20022
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20023
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
20026
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20027
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20028
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20030
hardcode_libdir_flag_spec_GCJ='-R$libdir'
20031
hardcode_shlibpath_var_GCJ=no
20033
solaris2.[0-5] | solaris2.[0-5].*) ;;
20035
# The compiler driver will combine and reorder linker options,
20036
# but understands `-z linker_flag'. GCC discards it without `$wl',
20037
# but is careful enough not to reorder.
20038
# Supported since Solaris 2.6 (maybe 2.5.1?)
20039
if test "$GCC" = yes; then
20040
whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20042
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
20046
link_all_deplibs_GCJ=yes
20050
if test "x$host_vendor" = xsequent; then
20051
# Use $CC to link under sequent, because it throws in some extra .o
20052
# files that make .init and .fini sections work.
20053
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
20055
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
20057
hardcode_libdir_flag_spec_GCJ='-L$libdir'
20058
hardcode_direct_GCJ=yes
20059
hardcode_minus_L_GCJ=yes
20060
hardcode_shlibpath_var_GCJ=no
20064
case $host_vendor in
20066
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20067
hardcode_direct_GCJ=yes # is this really true???
20070
## LD is ld it makes a PLAMLIB
20071
## CC just makes a GrossModule.
20072
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20073
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
20074
hardcode_direct_GCJ=no
20077
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20078
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
20081
runpath_var='LD_RUN_PATH'
20082
hardcode_shlibpath_var_GCJ=no
20086
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20087
hardcode_shlibpath_var_GCJ=no
20088
export_dynamic_flag_spec_GCJ='-Bexport'
20092
if test -d /usr/nec; then
20093
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20094
hardcode_shlibpath_var_GCJ=no
20095
runpath_var=LD_RUN_PATH
20096
hardcode_runpath_var=yes
20101
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20102
no_undefined_flag_GCJ='${wl}-z,text'
20103
archive_cmds_need_lc_GCJ=no
20104
hardcode_shlibpath_var_GCJ=no
20105
runpath_var='LD_RUN_PATH'
20107
if test "$GCC" = yes; then
20108
archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20109
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20111
archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20112
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20116
sysv5* | sco3.2v5* | sco5v6*)
20117
# Note: We can NOT use -z defs as we might desire, because we do not
20118
# link with -lc, and that would cause any symbols used from libc to
20119
# always be unresolved, which means just about no library would
20120
# ever link correctly. If we're not using GNU ld we use -z text
20121
# though, which does catch some bad symbols but isn't as heavy-handed
20123
no_undefined_flag_GCJ='${wl}-z,text'
20124
allow_undefined_flag_GCJ='${wl}-z,nodefs'
20125
archive_cmds_need_lc_GCJ=no
20126
hardcode_shlibpath_var_GCJ=no
20127
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
20128
hardcode_libdir_separator_GCJ=':'
20129
link_all_deplibs_GCJ=yes
20130
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
20131
runpath_var='LD_RUN_PATH'
20133
if test "$GCC" = yes; then
20134
archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20135
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20137
archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20138
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20143
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20144
hardcode_libdir_flag_spec_GCJ='-L$libdir'
20145
hardcode_shlibpath_var_GCJ=no
20154
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
20155
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
20156
test "$ld_shlibs_GCJ" = no && can_build_shared=no
20159
# Do we need to explicitly link libc?
20161
case "x$archive_cmds_need_lc_GCJ" in
20163
# Assume -lc should be added
20164
archive_cmds_need_lc_GCJ=yes
20166
if test "$enable_shared" = yes && test "$GCC" = yes; then
20167
case $archive_cmds_GCJ in
20169
# FIXME: we may have to deal with multi-command sequences.
20172
# Test whether the compiler implicitly links with -lc since on some
20173
# systems, -lgcc has to come before -lc. If gcc already passes -lc
20174
# to ld, don't add -lc before -lgcc.
20175
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20176
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
20178
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20180
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20181
(eval $ac_compile) 2>&5
20183
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20184
(exit $ac_status); } 2>conftest.err; then
20187
libobjs=conftest.$ac_objext
20189
wl=$lt_prog_compiler_wl_GCJ
20190
pic_flag=$lt_prog_compiler_pic_GCJ
20196
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
20197
allow_undefined_flag_GCJ=
20198
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20199
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20201
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20202
(exit $ac_status); }
20204
archive_cmds_need_lc_GCJ=no
20206
archive_cmds_need_lc_GCJ=yes
20208
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
20210
cat conftest.err 1>&5
20213
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
20214
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
20221
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20222
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20223
library_names_spec=
20224
libname_spec='lib$name'
20228
postuninstall_cmds=
20232
shlibpath_overrides_runpath=unknown
20234
dynamic_linker="$host_os ld.so"
20235
sys_lib_dlsearch_path_spec="/lib /usr/lib"
20237
need_lib_prefix=unknown
20238
hardcode_into_libs=no
20240
# when you set need_version to no, make sure it does not cause -set_version
20241
# flags to be left without arguments
20242
need_version=unknown
20247
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20248
shlibpath_var=LIBPATH
20250
# AIX 3 has no versioning support, so we append a major version to the name.
20251
soname_spec='${libname}${release}${shared_ext}$major'
20258
hardcode_into_libs=yes
20259
if test "$host_cpu" = ia64; then
20260
# AIX 5 supports IA64
20261
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20262
shlibpath_var=LD_LIBRARY_PATH
20264
# With GCC up to 2.95.x, collect2 would create an import file
20265
# for dependence libraries. The import file would start with
20266
# the line `#! .'. This would cause the generated library to
20267
# depend on `.', always an invalid library. This was fixed in
20268
# development snapshots of GCC prior to 3.0.
20270
aix4 | aix4.[01] | aix4.[01].*)
20271
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20273
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20276
can_build_shared=no
20280
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20281
# soname into executable. Probably we can add versioning support to
20282
# collect2, so additional links can be useful in future.
20283
if test "$aix_use_runtimelinking" = yes; then
20284
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
20285
# instead of lib<name>.a to let people know that these are not
20286
# typical AIX shared libraries.
20287
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20289
# We preserve .a as extension for shared libraries through AIX4.2
20290
# and later when we are not doing run time linking.
20291
library_names_spec='${libname}${release}.a $libname.a'
20292
soname_spec='${libname}${release}${shared_ext}$major'
20294
shlibpath_var=LIBPATH
20299
library_names_spec='$libname.ixlibrary $libname.a'
20300
# Create ${libname}_ixlibrary.a entries in /sys/libs.
20301
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'
20305
library_names_spec='${libname}${shared_ext}'
20306
dynamic_linker="$host_os ld.so"
20307
shlibpath_var=LIBRARY_PATH
20313
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20314
soname_spec='${libname}${release}${shared_ext}$major'
20315
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20316
shlibpath_var=LD_LIBRARY_PATH
20317
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20318
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20319
# the default ld.so.conf also contains /usr/contrib/lib and
20320
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20321
# libtool to hard-code these into programs
20324
cygwin* | mingw* | pw32*)
20325
version_type=windows
20330
case $GCC,$host_os in
20331
yes,cygwin* | yes,mingw* | yes,pw32*)
20332
library_names_spec='$libname.dll.a'
20333
# DLL is installed to $(libdir)/../bin by postinstall_cmds
20334
postinstall_cmds='base_file=`basename \${file}`~
20335
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20336
dldir=$destdir/`dirname \$dlpath`~
20337
test -d \$dldir || mkdir -p \$dldir~
20338
$install_prog $dir/$dlname \$dldir/$dlname~
20339
chmod a+x \$dldir/$dlname'
20340
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20341
dlpath=$dir/\$dldll~
20343
shlibpath_overrides_runpath=yes
20347
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
20348
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20349
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20352
# MinGW DLLs use traditional 'lib' prefix
20353
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20354
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20355
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20356
# It is most probably a Windows format PATH printed by
20357
# mingw gcc, but we are running on Cygwin. Gcc prints its search
20358
# path with ; separators, and with drive letters. We can handle the
20359
# drive letters (cygwin fileutils understands them), so leave them,
20360
# especially as we might pass files found there to a mingw objdump,
20361
# which wouldn't understand a cygwinified path. Ahh.
20362
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20364
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20368
# pw32 DLLs use 'pw' prefix rather than 'lib'
20369
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20375
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20378
dynamic_linker='Win32 ld.exe'
20379
# FIXME: first we should search . and the directory the executable is in
20383
darwin* | rhapsody*)
20384
dynamic_linker="$host_os dyld"
20385
version_type=darwin
20388
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20389
soname_spec='${libname}${release}${major}$shared_ext'
20390
shlibpath_overrides_runpath=yes
20391
shlibpath_var=DYLD_LIBRARY_PATH
20392
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20394
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20401
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20402
soname_spec='${libname}${release}${shared_ext}$major'
20403
shlibpath_var=LD_LIBRARY_PATH
20410
freebsd* | dragonfly*)
20411
# DragonFly does not have aout. When/if they implement a new
20412
# versioning mechanism, adjust this.
20413
if test -x /usr/bin/objformat; then
20414
objformat=`/usr/bin/objformat`
20417
freebsd[123]*) objformat=aout ;;
20418
*) objformat=elf ;;
20421
version_type=freebsd-$objformat
20422
case $version_type in
20424
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20429
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20433
shlibpath_var=LD_LIBRARY_PATH
20436
shlibpath_overrides_runpath=yes
20438
freebsd3.[01]* | freebsdelf3.[01]*)
20439
shlibpath_overrides_runpath=yes
20440
hardcode_into_libs=yes
20442
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20443
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20444
shlibpath_overrides_runpath=no
20445
hardcode_into_libs=yes
20447
*) # from 4.6 on, and DragonFly
20448
shlibpath_overrides_runpath=yes
20449
hardcode_into_libs=yes
20458
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20459
soname_spec='${libname}${release}${shared_ext}$major'
20460
shlibpath_var=LD_LIBRARY_PATH
20461
hardcode_into_libs=yes
20464
hpux9* | hpux10* | hpux11*)
20465
# Give a soname corresponding to the major version so that dld.sl refuses to
20466
# link against other versions.
20473
hardcode_into_libs=yes
20474
dynamic_linker="$host_os dld.so"
20475
shlibpath_var=LD_LIBRARY_PATH
20476
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20477
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20478
soname_spec='${libname}${release}${shared_ext}$major'
20479
if test "X$HPUX_IA64_MODE" = X32; then
20480
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20482
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20484
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20488
hardcode_into_libs=yes
20489
dynamic_linker="$host_os dld.sl"
20490
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20491
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20492
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20493
soname_spec='${libname}${release}${shared_ext}$major'
20494
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20495
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20499
dynamic_linker="$host_os dld.sl"
20500
shlibpath_var=SHLIB_PATH
20501
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20502
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20503
soname_spec='${libname}${release}${shared_ext}$major'
20506
# HP-UX runs *really* slowly unless shared libraries are mode 555.
20507
postinstall_cmds='chmod 555 $lib'
20514
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20515
soname_spec='${libname}${release}${shared_ext}$major'
20516
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20517
shlibpath_var=LD_LIBRARY_PATH
20518
shlibpath_overrides_runpath=no
20519
hardcode_into_libs=yes
20522
irix5* | irix6* | nonstopux*)
20524
nonstopux*) version_type=nonstopux ;;
20526
if test "$lt_cv_prog_gnu_ld" = yes; then
20534
soname_spec='${libname}${release}${shared_ext}$major'
20535
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20537
irix5* | nonstopux*)
20538
libsuff= shlibsuff=
20541
case $LD in # libtool.m4 will add one of these switches to LD
20542
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20543
libsuff= shlibsuff= libmagic=32-bit;;
20544
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20545
libsuff=32 shlibsuff=N32 libmagic=N32;;
20546
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20547
libsuff=64 shlibsuff=64 libmagic=64-bit;;
20548
*) libsuff= shlibsuff= libmagic=never-match;;
20552
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20553
shlibpath_overrides_runpath=no
20554
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20555
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20556
hardcode_into_libs=yes
20559
# No shared lib support for Linux oldld, aout, or coff.
20560
linux*oldld* | linux*aout* | linux*coff*)
20564
# This must be Linux ELF.
20565
linux* | k*bsd*-gnu)
20569
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20570
soname_spec='${libname}${release}${shared_ext}$major'
20571
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20572
shlibpath_var=LD_LIBRARY_PATH
20573
shlibpath_overrides_runpath=no
20574
# This implies no fast_install, which is unacceptable.
20575
# Some rework will be needed to allow for fast_install
20576
# before this can be enabled.
20577
hardcode_into_libs=yes
20579
# Append ld.so.conf contents to the search path
20580
if test -f /etc/ld.so.conf; then
20581
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' ' '`
20582
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20585
# We used to test for /lib/ld.so.1 and disable shared libraries on
20586
# powerpc, because MkLinux only supported shared libraries with the
20587
# GNU dynamic linker. Since this was broken with cross compilers,
20588
# most powerpc-linux boxes support dynamic linking these days and
20589
# people can always --disable-shared, the test was removed, and we
20590
# assume the GNU/Linux dynamic linker is in use.
20591
dynamic_linker='GNU/Linux ld.so'
20598
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20599
soname_spec='${libname}${release}${shared_ext}$major'
20600
shlibpath_var=LD_LIBRARY_PATH
20601
shlibpath_overrides_runpath=no
20602
hardcode_into_libs=yes
20603
dynamic_linker='NetBSD ld.elf_so'
20610
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20611
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20612
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20613
dynamic_linker='NetBSD (a.out) ld.so'
20615
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20616
soname_spec='${libname}${release}${shared_ext}$major'
20617
dynamic_linker='NetBSD ld.elf_so'
20619
shlibpath_var=LD_LIBRARY_PATH
20620
shlibpath_overrides_runpath=yes
20621
hardcode_into_libs=yes
20626
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20627
shlibpath_var=LD_LIBRARY_PATH
20628
shlibpath_overrides_runpath=yes
20635
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20636
soname_spec='${libname}${release}${shared_ext}$major'
20637
shlibpath_var=LD_LIBRARY_PATH
20638
shlibpath_overrides_runpath=yes
20643
sys_lib_dlsearch_path_spec="/usr/lib"
20645
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20647
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20648
*) need_version=no ;;
20650
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20651
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20652
shlibpath_var=LD_LIBRARY_PATH
20653
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20655
openbsd2.[89] | openbsd2.[89].*)
20656
shlibpath_overrides_runpath=no
20659
shlibpath_overrides_runpath=yes
20663
shlibpath_overrides_runpath=yes
20668
libname_spec='$name'
20671
library_names_spec='$libname${shared_ext} $libname.a'
20672
dynamic_linker='OS/2 ld.exe'
20673
shlibpath_var=LIBPATH
20676
osf3* | osf4* | osf5*)
20680
soname_spec='${libname}${release}${shared_ext}$major'
20681
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20682
shlibpath_var=LD_LIBRARY_PATH
20683
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20684
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20695
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20696
soname_spec='${libname}${release}${shared_ext}$major'
20697
shlibpath_var=LD_LIBRARY_PATH
20698
shlibpath_overrides_runpath=yes
20699
hardcode_into_libs=yes
20700
# ldd complains unless libraries are executable
20701
postinstall_cmds='chmod +x $lib'
20706
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20707
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20708
shlibpath_var=LD_LIBRARY_PATH
20709
shlibpath_overrides_runpath=yes
20710
if test "$with_gnu_ld" = yes; then
20718
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20719
soname_spec='${libname}${release}${shared_ext}$major'
20720
shlibpath_var=LD_LIBRARY_PATH
20721
case $host_vendor in
20723
shlibpath_overrides_runpath=no
20725
export_dynamic_flag_spec='${wl}-Blargedynsym'
20726
runpath_var=LD_RUN_PATH
20734
shlibpath_overrides_runpath=no
20735
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20741
if test -d /usr/nec ;then
20743
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20744
soname_spec='$libname${shared_ext}.$major'
20745
shlibpath_var=LD_LIBRARY_PATH
20749
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20750
version_type=freebsd-elf
20753
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20754
soname_spec='${libname}${release}${shared_ext}$major'
20755
shlibpath_var=LD_LIBRARY_PATH
20756
hardcode_into_libs=yes
20757
if test "$with_gnu_ld" = yes; then
20758
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20759
shlibpath_overrides_runpath=no
20761
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20762
shlibpath_overrides_runpath=yes
20765
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20769
sys_lib_dlsearch_path_spec='/usr/lib'
20774
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20775
soname_spec='${libname}${release}${shared_ext}$major'
20776
shlibpath_var=LD_LIBRARY_PATH
20783
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20784
echo "${ECHO_T}$dynamic_linker" >&6; }
20785
test "$dynamic_linker" = no && can_build_shared=no
20787
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20788
echo $ECHO_N "(cached) $ECHO_C" >&6
20790
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
20793
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20794
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20795
echo $ECHO_N "(cached) $ECHO_C" >&6
20797
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
20800
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20802
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20803
if test "$GCC" = yes; then
20804
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20807
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20808
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20809
hardcode_action_GCJ=
20810
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20811
test -n "$runpath_var_GCJ" || \
20812
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20814
# We can hardcode non-existant directories.
20815
if test "$hardcode_direct_GCJ" != no &&
20816
# If the only mechanism to avoid hardcoding is shlibpath_var, we
20817
# have to relink, otherwise we might link with an installed library
20818
# when we should be linking with a yet-to-be-installed one
20819
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20820
test "$hardcode_minus_L_GCJ" != no; then
20821
# Linking always hardcodes the temporary library directory.
20822
hardcode_action_GCJ=relink
20824
# We can link without hardcoding, and we can hardcode nonexisting dirs.
20825
hardcode_action_GCJ=immediate
20828
# We cannot hardcode anything, or else we can only hardcode existing
20830
hardcode_action_GCJ=unsupported
20832
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20833
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
20835
if test "$hardcode_action_GCJ" = relink; then
20836
# Fast installation is not supported
20837
enable_fast_install=no
20838
elif test "$shlibpath_overrides_runpath" = yes ||
20839
test "$enable_shared" = no; then
20840
# Fast installation is not necessary
20841
enable_fast_install=needless
20845
# The else clause should only fire when bootstrapping the
20846
# libtool distribution, otherwise you forgot to ship ltmain.sh
20847
# with your package, and you will get complaints that there are
20848
# no rules to generate ltmain.sh.
20849
if test -f "$ltmain"; then
20850
# See if we are running on zsh, and set the options which allow our commands through
20851
# without removal of \ escapes.
20852
if test -n "${ZSH_VERSION+set}" ; then
20853
setopt NO_GLOB_SUBST
20855
# Now quote all the things that may contain metacharacters while being
20856
# careful not to overquote the AC_SUBSTed values. We take copies of the
20857
# variables and quote the copies for generation of the libtool script.
20858
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20860
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20861
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20862
deplibs_check_method reload_flag reload_cmds need_locks \
20863
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20864
lt_cv_sys_global_symbol_to_c_name_address \
20865
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20866
old_postinstall_cmds old_postuninstall_cmds \
20870
lt_prog_compiler_wl_GCJ \
20871
lt_prog_compiler_pic_GCJ \
20872
lt_prog_compiler_static_GCJ \
20873
lt_prog_compiler_no_builtin_flag_GCJ \
20874
export_dynamic_flag_spec_GCJ \
20875
thread_safe_flag_spec_GCJ \
20876
whole_archive_flag_spec_GCJ \
20877
enable_shared_with_static_runtimes_GCJ \
20878
old_archive_cmds_GCJ \
20879
old_archive_from_new_cmds_GCJ \
20880
predep_objects_GCJ \
20881
postdep_objects_GCJ \
20884
compiler_lib_search_path_GCJ \
20885
compiler_lib_search_dirs_GCJ \
20887
archive_expsym_cmds_GCJ \
20888
postinstall_cmds_GCJ \
20889
postuninstall_cmds_GCJ \
20890
old_archive_from_expsyms_cmds_GCJ \
20891
allow_undefined_flag_GCJ \
20892
no_undefined_flag_GCJ \
20893
export_symbols_cmds_GCJ \
20894
hardcode_libdir_flag_spec_GCJ \
20895
hardcode_libdir_flag_spec_ld_GCJ \
20896
hardcode_libdir_separator_GCJ \
20897
hardcode_automatic_GCJ \
20899
module_expsym_cmds_GCJ \
20900
lt_cv_prog_compiler_c_o_GCJ \
20901
fix_srcfile_path_GCJ \
20902
exclude_expsyms_GCJ \
20903
include_expsyms_GCJ; do
20906
old_archive_cmds_GCJ | \
20907
old_archive_from_new_cmds_GCJ | \
20908
archive_cmds_GCJ | \
20909
archive_expsym_cmds_GCJ | \
20910
module_cmds_GCJ | \
20911
module_expsym_cmds_GCJ | \
20912
old_archive_from_expsyms_cmds_GCJ | \
20913
export_symbols_cmds_GCJ | \
20914
extract_expsyms_cmds | reload_cmds | finish_cmds | \
20915
postinstall_cmds | postuninstall_cmds | \
20916
old_postinstall_cmds | old_postuninstall_cmds | \
20917
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20918
# Double-quote double-evaled strings.
20919
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20922
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20928
*'\$0 --fallback-echo"')
20929
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20935
cat <<__EOF__ >> "$cfgfile"
20936
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20938
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20940
# Shell to use when invoking shell scripts.
20943
# Whether or not to build shared libraries.
20944
build_libtool_libs=$enable_shared
20946
# Whether or not to build static libraries.
20947
build_old_libs=$enable_static
20949
# Whether or not to add -lc for building shared libraries.
20950
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20952
# Whether or not to disallow shared libs when runtime libs are static
20953
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20955
# Whether or not to optimize for fast installation.
20956
fast_install=$enable_fast_install
20959
host_alias=$host_alias
20963
# The build system.
20964
build_alias=$build_alias
20968
# An echo program that does not interpret backslashes.
20973
AR_FLAGS=$lt_AR_FLAGS
20978
# LTCC compiler flags.
20979
LTCFLAGS=$lt_LTCFLAGS
20981
# A language-specific compiler.
20982
CC=$lt_compiler_GCJ
20984
# Is the compiler the GNU C compiler?
20990
# The linker used to build libraries.
20993
# Whether we need hard or soft links.
20996
# A BSD-compatible nm program.
20999
# A symbol stripping program
21002
# Used to examine libraries when file_magic_cmd begins "file"
21003
MAGIC_CMD=$MAGIC_CMD
21005
# Used on cygwin: DLL creation program.
21008
# Used on cygwin: object dumper.
21011
# Used on cygwin: assembler.
21014
# The name of the directory that contains temporary libtool files.
21017
# How to create reloadable object files.
21018
reload_flag=$lt_reload_flag
21019
reload_cmds=$lt_reload_cmds
21021
# How to pass a linker flag through the compiler.
21022
wl=$lt_lt_prog_compiler_wl_GCJ
21024
# Object file suffix (normally "o").
21025
objext="$ac_objext"
21027
# Old archive suffix (normally "a").
21030
# Shared library suffix (normally ".so").
21031
shrext_cmds='$shrext_cmds'
21033
# Executable file suffix (normally "").
21036
# Additional compiler flags for building library objects.
21037
pic_flag=$lt_lt_prog_compiler_pic_GCJ
21040
# What is the maximum length of a command?
21041
max_cmd_len=$lt_cv_sys_max_cmd_len
21043
# Does compiler simultaneously support -c and -o options?
21044
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
21046
# Must we lock files when doing compilation?
21047
need_locks=$lt_need_locks
21049
# Do we need the lib prefix for modules?
21050
need_lib_prefix=$need_lib_prefix
21052
# Do we need a version for libraries?
21053
need_version=$need_version
21055
# Whether dlopen is supported.
21056
dlopen_support=$enable_dlopen
21058
# Whether dlopen of programs is supported.
21059
dlopen_self=$enable_dlopen_self
21061
# Whether dlopen of statically linked programs is supported.
21062
dlopen_self_static=$enable_dlopen_self_static
21064
# Compiler flag to prevent dynamic linking.
21065
link_static_flag=$lt_lt_prog_compiler_static_GCJ
21067
# Compiler flag to turn off builtin functions.
21068
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
21070
# Compiler flag to allow reflexive dlopens.
21071
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
21073
# Compiler flag to generate shared objects directly from archives.
21074
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
21076
# Compiler flag to generate thread-safe objects.
21077
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
21079
# Library versioning type.
21080
version_type=$version_type
21082
# Format of library name prefix.
21083
libname_spec=$lt_libname_spec
21085
# List of archive names. First name is the real one, the rest are links.
21086
# The last name is the one that the linker finds with -lNAME.
21087
library_names_spec=$lt_library_names_spec
21089
# The coded name of the library, if different from the real name.
21090
soname_spec=$lt_soname_spec
21092
# Commands used to build and install an old-style archive.
21094
old_archive_cmds=$lt_old_archive_cmds_GCJ
21095
old_postinstall_cmds=$lt_old_postinstall_cmds
21096
old_postuninstall_cmds=$lt_old_postuninstall_cmds
21098
# Create an old-style archive from a shared archive.
21099
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
21101
# Create a temporary old-style archive to link instead of a shared archive.
21102
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
21104
# Commands used to build and install a shared archive.
21105
archive_cmds=$lt_archive_cmds_GCJ
21106
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
21107
postinstall_cmds=$lt_postinstall_cmds
21108
postuninstall_cmds=$lt_postuninstall_cmds
21110
# Commands used to build a loadable module (assumed same as above if empty)
21111
module_cmds=$lt_module_cmds_GCJ
21112
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
21114
# Commands to strip libraries.
21115
old_striplib=$lt_old_striplib
21116
striplib=$lt_striplib
21118
# Dependencies to place before the objects being linked to create a
21120
predep_objects=$lt_predep_objects_GCJ
21122
# Dependencies to place after the objects being linked to create a
21124
postdep_objects=$lt_postdep_objects_GCJ
21126
# Dependencies to place before the objects being linked to create a
21128
predeps=$lt_predeps_GCJ
21130
# Dependencies to place after the objects being linked to create a
21132
postdeps=$lt_postdeps_GCJ
21134
# The directories searched by this compiler when creating a shared
21136
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
21138
# The library search path used internally by the compiler when linking
21139
# a shared library.
21140
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
21142
# Method to check whether dependent libraries are shared objects.
21143
deplibs_check_method=$lt_deplibs_check_method
21145
# Command to use when deplibs_check_method == file_magic.
21146
file_magic_cmd=$lt_file_magic_cmd
21148
# Flag that allows shared libraries with undefined symbols to be built.
21149
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
21151
# Flag that forces no undefined symbols.
21152
no_undefined_flag=$lt_no_undefined_flag_GCJ
21154
# Commands used to finish a libtool library installation in a directory.
21155
finish_cmds=$lt_finish_cmds
21157
# Same as above, but a single script fragment to be evaled but not shown.
21158
finish_eval=$lt_finish_eval
21160
# Take the output of nm and produce a listing of raw symbols and C names.
21161
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21163
# Transform the output of nm in a proper C declaration
21164
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21166
# Transform the output of nm in a C name address pair
21167
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21169
# This is the shared library runtime path variable.
21170
runpath_var=$runpath_var
21172
# This is the shared library path variable.
21173
shlibpath_var=$shlibpath_var
21175
# Is shlibpath searched before the hard-coded library search path?
21176
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21178
# How to hardcode a shared library path into an executable.
21179
hardcode_action=$hardcode_action_GCJ
21181
# Whether we should hardcode library paths into libraries.
21182
hardcode_into_libs=$hardcode_into_libs
21184
# Flag to hardcode \$libdir into a binary during linking.
21185
# This must work even if \$libdir does not exist.
21186
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
21188
# If ld is used when linking, flag to hardcode \$libdir into
21189
# a binary during linking. This must work even if \$libdir does
21191
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
21193
# Whether we need a single -rpath flag with a separated argument.
21194
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
21196
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21197
# resulting binary.
21198
hardcode_direct=$hardcode_direct_GCJ
21200
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21201
# resulting binary.
21202
hardcode_minus_L=$hardcode_minus_L_GCJ
21204
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21205
# the resulting binary.
21206
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
21208
# Set to yes if building a shared library automatically hardcodes DIR into the library
21209
# and all subsequent libraries and executables linked against it.
21210
hardcode_automatic=$hardcode_automatic_GCJ
21212
# Variables whose values should be saved in libtool wrapper scripts and
21213
# restored at relink time.
21214
variables_saved_for_relink="$variables_saved_for_relink"
21216
# Whether libtool must link a program against all its dependency libraries.
21217
link_all_deplibs=$link_all_deplibs_GCJ
21219
# Compile-time system search path for libraries
21220
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21222
# Run-time system search path for libraries
21223
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21225
# Fix the shell variable \$srcfile for the compiler.
21226
fix_srcfile_path=$lt_fix_srcfile_path
21228
# Set to yes if exported symbols are required.
21229
always_export_symbols=$always_export_symbols_GCJ
21231
# The commands to list exported symbols.
21232
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
21234
# The commands to extract the exported symbol list from a shared archive.
21235
extract_expsyms_cmds=$lt_extract_expsyms_cmds
21237
# Symbols that should not be listed in the preloaded symbols.
21238
exclude_expsyms=$lt_exclude_expsyms_GCJ
21240
# Symbols that must always be exported.
21241
include_expsyms=$lt_include_expsyms_GCJ
21243
# ### END LIBTOOL TAG CONFIG: $tagname
21249
# If there is no Makefile yet, we rely on a make rule to execute
21250
# `config.status --recheck' to rerun these tests and create the
21251
# libtool script then.
21252
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21253
if test -f "$ltmain_in"; then
21254
test -f Makefile && make "$ltmain"
21260
ac_cpp='$CPP $CPPFLAGS'
21261
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21262
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21263
ac_compiler_gnu=$ac_cv_c_compiler_gnu
21275
# Source file extension for RC test sources.
21278
# Object file extension for compiled RC test sources.
21282
# Code to be used in simple compile tests
21283
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
21285
# Code to be used in simple link tests
21286
lt_simple_link_test_code="$lt_simple_compile_test_code"
21288
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21290
# If no C compiler was specified, use CC.
21293
# If no C compiler flags were specified, use CFLAGS.
21294
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21296
# Allow CC to be a program name with arguments.
21300
# save warnings/boilerplate of simple test code
21301
ac_outfile=conftest.$ac_objext
21302
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
21303
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21304
_lt_compiler_boilerplate=`cat conftest.err`
21307
ac_outfile=conftest.$ac_objext
21308
echo "$lt_simple_link_test_code" >conftest.$ac_ext
21309
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21310
_lt_linker_boilerplate=`cat conftest.err`
21314
# Allow CC to be a program name with arguments.
21319
for cc_temp in $compiler""; do
21321
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21322
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21327
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21329
lt_cv_prog_compiler_c_o_RC=yes
21331
# The else clause should only fire when bootstrapping the
21332
# libtool distribution, otherwise you forgot to ship ltmain.sh
21333
# with your package, and you will get complaints that there are
21334
# no rules to generate ltmain.sh.
21335
if test -f "$ltmain"; then
21336
# See if we are running on zsh, and set the options which allow our commands through
21337
# without removal of \ escapes.
21338
if test -n "${ZSH_VERSION+set}" ; then
21339
setopt NO_GLOB_SUBST
21341
# Now quote all the things that may contain metacharacters while being
21342
# careful not to overquote the AC_SUBSTed values. We take copies of the
21343
# variables and quote the copies for generation of the libtool script.
21344
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
21346
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21347
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21348
deplibs_check_method reload_flag reload_cmds need_locks \
21349
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21350
lt_cv_sys_global_symbol_to_c_name_address \
21351
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21352
old_postinstall_cmds old_postuninstall_cmds \
21356
lt_prog_compiler_wl_RC \
21357
lt_prog_compiler_pic_RC \
21358
lt_prog_compiler_static_RC \
21359
lt_prog_compiler_no_builtin_flag_RC \
21360
export_dynamic_flag_spec_RC \
21361
thread_safe_flag_spec_RC \
21362
whole_archive_flag_spec_RC \
21363
enable_shared_with_static_runtimes_RC \
21364
old_archive_cmds_RC \
21365
old_archive_from_new_cmds_RC \
21366
predep_objects_RC \
21367
postdep_objects_RC \
21370
compiler_lib_search_path_RC \
21371
compiler_lib_search_dirs_RC \
21373
archive_expsym_cmds_RC \
21374
postinstall_cmds_RC \
21375
postuninstall_cmds_RC \
21376
old_archive_from_expsyms_cmds_RC \
21377
allow_undefined_flag_RC \
21378
no_undefined_flag_RC \
21379
export_symbols_cmds_RC \
21380
hardcode_libdir_flag_spec_RC \
21381
hardcode_libdir_flag_spec_ld_RC \
21382
hardcode_libdir_separator_RC \
21383
hardcode_automatic_RC \
21385
module_expsym_cmds_RC \
21386
lt_cv_prog_compiler_c_o_RC \
21387
fix_srcfile_path_RC \
21388
exclude_expsyms_RC \
21389
include_expsyms_RC; do
21392
old_archive_cmds_RC | \
21393
old_archive_from_new_cmds_RC | \
21394
archive_cmds_RC | \
21395
archive_expsym_cmds_RC | \
21397
module_expsym_cmds_RC | \
21398
old_archive_from_expsyms_cmds_RC | \
21399
export_symbols_cmds_RC | \
21400
extract_expsyms_cmds | reload_cmds | finish_cmds | \
21401
postinstall_cmds | postuninstall_cmds | \
21402
old_postinstall_cmds | old_postuninstall_cmds | \
21403
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21404
# Double-quote double-evaled strings.
21405
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21408
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21414
*'\$0 --fallback-echo"')
21415
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21421
cat <<__EOF__ >> "$cfgfile"
21422
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
21424
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21426
# Shell to use when invoking shell scripts.
21429
# Whether or not to build shared libraries.
21430
build_libtool_libs=$enable_shared
21432
# Whether or not to build static libraries.
21433
build_old_libs=$enable_static
21435
# Whether or not to add -lc for building shared libraries.
21436
build_libtool_need_lc=$archive_cmds_need_lc_RC
21438
# Whether or not to disallow shared libs when runtime libs are static
21439
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
21441
# Whether or not to optimize for fast installation.
21442
fast_install=$enable_fast_install
21445
host_alias=$host_alias
21449
# The build system.
21450
build_alias=$build_alias
21454
# An echo program that does not interpret backslashes.
21459
AR_FLAGS=$lt_AR_FLAGS
21464
# LTCC compiler flags.
21465
LTCFLAGS=$lt_LTCFLAGS
21467
# A language-specific compiler.
21470
# Is the compiler the GNU C compiler?
21476
# The linker used to build libraries.
21479
# Whether we need hard or soft links.
21482
# A BSD-compatible nm program.
21485
# A symbol stripping program
21488
# Used to examine libraries when file_magic_cmd begins "file"
21489
MAGIC_CMD=$MAGIC_CMD
21491
# Used on cygwin: DLL creation program.
21494
# Used on cygwin: object dumper.
21497
# Used on cygwin: assembler.
21500
# The name of the directory that contains temporary libtool files.
21503
# How to create reloadable object files.
21504
reload_flag=$lt_reload_flag
21505
reload_cmds=$lt_reload_cmds
21507
# How to pass a linker flag through the compiler.
21508
wl=$lt_lt_prog_compiler_wl_RC
21510
# Object file suffix (normally "o").
21511
objext="$ac_objext"
21513
# Old archive suffix (normally "a").
21516
# Shared library suffix (normally ".so").
21517
shrext_cmds='$shrext_cmds'
21519
# Executable file suffix (normally "").
21522
# Additional compiler flags for building library objects.
21523
pic_flag=$lt_lt_prog_compiler_pic_RC
21526
# What is the maximum length of a command?
21527
max_cmd_len=$lt_cv_sys_max_cmd_len
21529
# Does compiler simultaneously support -c and -o options?
21530
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
21532
# Must we lock files when doing compilation?
21533
need_locks=$lt_need_locks
21535
# Do we need the lib prefix for modules?
21536
need_lib_prefix=$need_lib_prefix
21538
# Do we need a version for libraries?
21539
need_version=$need_version
21541
# Whether dlopen is supported.
21542
dlopen_support=$enable_dlopen
21544
# Whether dlopen of programs is supported.
21545
dlopen_self=$enable_dlopen_self
21547
# Whether dlopen of statically linked programs is supported.
21548
dlopen_self_static=$enable_dlopen_self_static
21550
# Compiler flag to prevent dynamic linking.
21551
link_static_flag=$lt_lt_prog_compiler_static_RC
21553
# Compiler flag to turn off builtin functions.
21554
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
21556
# Compiler flag to allow reflexive dlopens.
21557
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
21559
# Compiler flag to generate shared objects directly from archives.
21560
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
21562
# Compiler flag to generate thread-safe objects.
21563
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
21565
# Library versioning type.
21566
version_type=$version_type
21568
# Format of library name prefix.
21569
libname_spec=$lt_libname_spec
21571
# List of archive names. First name is the real one, the rest are links.
21572
# The last name is the one that the linker finds with -lNAME.
21573
library_names_spec=$lt_library_names_spec
21575
# The coded name of the library, if different from the real name.
21576
soname_spec=$lt_soname_spec
21578
# Commands used to build and install an old-style archive.
21580
old_archive_cmds=$lt_old_archive_cmds_RC
21581
old_postinstall_cmds=$lt_old_postinstall_cmds
21582
old_postuninstall_cmds=$lt_old_postuninstall_cmds
21584
# Create an old-style archive from a shared archive.
21585
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
21587
# Create a temporary old-style archive to link instead of a shared archive.
21588
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
21590
# Commands used to build and install a shared archive.
21591
archive_cmds=$lt_archive_cmds_RC
21592
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
21593
postinstall_cmds=$lt_postinstall_cmds
21594
postuninstall_cmds=$lt_postuninstall_cmds
21596
# Commands used to build a loadable module (assumed same as above if empty)
21597
module_cmds=$lt_module_cmds_RC
21598
module_expsym_cmds=$lt_module_expsym_cmds_RC
21600
# Commands to strip libraries.
21601
old_striplib=$lt_old_striplib
21602
striplib=$lt_striplib
21604
# Dependencies to place before the objects being linked to create a
21606
predep_objects=$lt_predep_objects_RC
21608
# Dependencies to place after the objects being linked to create a
21610
postdep_objects=$lt_postdep_objects_RC
21612
# Dependencies to place before the objects being linked to create a
21614
predeps=$lt_predeps_RC
21616
# Dependencies to place after the objects being linked to create a
21618
postdeps=$lt_postdeps_RC
21620
# The directories searched by this compiler when creating a shared
21622
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
21624
# The library search path used internally by the compiler when linking
21625
# a shared library.
21626
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
21628
# Method to check whether dependent libraries are shared objects.
21629
deplibs_check_method=$lt_deplibs_check_method
21631
# Command to use when deplibs_check_method == file_magic.
21632
file_magic_cmd=$lt_file_magic_cmd
21634
# Flag that allows shared libraries with undefined symbols to be built.
21635
allow_undefined_flag=$lt_allow_undefined_flag_RC
21637
# Flag that forces no undefined symbols.
21638
no_undefined_flag=$lt_no_undefined_flag_RC
21640
# Commands used to finish a libtool library installation in a directory.
21641
finish_cmds=$lt_finish_cmds
21643
# Same as above, but a single script fragment to be evaled but not shown.
21644
finish_eval=$lt_finish_eval
21646
# Take the output of nm and produce a listing of raw symbols and C names.
21647
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21649
# Transform the output of nm in a proper C declaration
21650
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21652
# Transform the output of nm in a C name address pair
21653
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21655
# This is the shared library runtime path variable.
21656
runpath_var=$runpath_var
21658
# This is the shared library path variable.
21659
shlibpath_var=$shlibpath_var
21661
# Is shlibpath searched before the hard-coded library search path?
21662
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21664
# How to hardcode a shared library path into an executable.
21665
hardcode_action=$hardcode_action_RC
21667
# Whether we should hardcode library paths into libraries.
21668
hardcode_into_libs=$hardcode_into_libs
21670
# Flag to hardcode \$libdir into a binary during linking.
21671
# This must work even if \$libdir does not exist.
21672
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
21674
# If ld is used when linking, flag to hardcode \$libdir into
21675
# a binary during linking. This must work even if \$libdir does
21677
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
21679
# Whether we need a single -rpath flag with a separated argument.
21680
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
21682
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21683
# resulting binary.
21684
hardcode_direct=$hardcode_direct_RC
21686
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21687
# resulting binary.
21688
hardcode_minus_L=$hardcode_minus_L_RC
21690
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21691
# the resulting binary.
21692
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
21694
# Set to yes if building a shared library automatically hardcodes DIR into the library
21695
# and all subsequent libraries and executables linked against it.
21696
hardcode_automatic=$hardcode_automatic_RC
21698
# Variables whose values should be saved in libtool wrapper scripts and
21699
# restored at relink time.
21700
variables_saved_for_relink="$variables_saved_for_relink"
21702
# Whether libtool must link a program against all its dependency libraries.
21703
link_all_deplibs=$link_all_deplibs_RC
21705
# Compile-time system search path for libraries
21706
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21708
# Run-time system search path for libraries
21709
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21711
# Fix the shell variable \$srcfile for the compiler.
21712
fix_srcfile_path=$lt_fix_srcfile_path
21714
# Set to yes if exported symbols are required.
21715
always_export_symbols=$always_export_symbols_RC
21717
# The commands to list exported symbols.
21718
export_symbols_cmds=$lt_export_symbols_cmds_RC
21720
# The commands to extract the exported symbol list from a shared archive.
21721
extract_expsyms_cmds=$lt_extract_expsyms_cmds
21723
# Symbols that should not be listed in the preloaded symbols.
21724
exclude_expsyms=$lt_exclude_expsyms_RC
21726
# Symbols that must always be exported.
21727
include_expsyms=$lt_include_expsyms_RC
21729
# ### END LIBTOOL TAG CONFIG: $tagname
21735
# If there is no Makefile yet, we rely on a make rule to execute
21736
# `config.status --recheck' to rerun these tests and create the
21737
# libtool script then.
21738
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21739
if test -f "$ltmain_in"; then
21740
test -f Makefile && make "$ltmain"
21746
ac_cpp='$CPP $CPPFLAGS'
21747
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21748
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21749
ac_compiler_gnu=$ac_cv_c_compiler_gnu
21756
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21757
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21758
{ (exit 1); exit 1; }; }
21762
# Append the new tag name to the list of available tags.
21763
if test -n "$tagname" ; then
21764
available_tags="$available_tags $tagname"
21770
# Now substitute the updated list of available tags.
21771
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21772
mv "${ofile}T" "$ofile"
21776
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21777
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21778
{ (exit 1); exit 1; }; }
21784
# This can be used to rebuild libtool when needed
21785
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21787
# Always use our own libtool.
21788
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21790
# Prevent multiple expansion
12742
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12743
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12744
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12745
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12746
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12747
{ echo "$as_me:$LINENO: result: yes" >&5
12748
echo "${ECHO_T}yes" >&6; }
12750
# FIXME - insert some real tests, host_os isn't really good enough
12753
if test -n "$STRIP" ; then
12754
striplib="$STRIP -x"
12755
old_striplib="$STRIP -S"
12756
{ echo "$as_me:$LINENO: result: yes" >&5
12757
echo "${ECHO_T}yes" >&6; }
12759
{ echo "$as_me:$LINENO: result: no" >&5
12760
echo "${ECHO_T}no" >&6; }
12764
{ echo "$as_me:$LINENO: result: no" >&5
12765
echo "${ECHO_T}no" >&6; }
12781
# Report which library types will actually be built
12782
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12783
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12784
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
12785
echo "${ECHO_T}$can_build_shared" >&6; }
12787
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12788
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12789
test "$can_build_shared" = "no" && enable_shared=no
12791
# On AIX, shared libraries and static libraries use the same namespace, and
12792
# are all built from PIC.
12795
test "$enable_shared" = yes && enable_static=no
12796
if test -n "$RANLIB"; then
12797
archive_cmds="$archive_cmds~\$RANLIB \$lib"
12798
postinstall_cmds='$RANLIB $lib'
12803
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12804
test "$enable_shared" = yes && enable_static=no
12808
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
12809
echo "${ECHO_T}$enable_shared" >&6; }
12811
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12812
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12813
# Make sure either enable_shared or enable_static is yes.
12814
test "$enable_shared" = yes || enable_static=yes
12815
{ echo "$as_me:$LINENO: result: $enable_static" >&5
12816
echo "${ECHO_T}$enable_static" >&6; }
12823
ac_cpp='$CPP $CPPFLAGS'
12824
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12825
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12826
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12842
ac_config_commands="$ac_config_commands libtool"
12847
# Only expand once:
21811
12850
# Extract the first word of "glib-genmarshal", so it can be a program name with args.