10412
# Report which library types will actually be built
10413
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10414
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10415
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10416
echo "${ECHO_T}$can_build_shared" >&6; }
10418
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10419
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10420
test "$can_build_shared" = "no" && enable_shared=no
10422
# On AIX, shared libraries and static libraries use the same namespace, and
10423
# are all built from PIC.
10426
test "$enable_shared" = yes && enable_static=no
10427
if test -n "$RANLIB"; then
10428
archive_cmds="$archive_cmds~\$RANLIB \$lib"
10429
postinstall_cmds='$RANLIB $lib'
10434
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10435
test "$enable_shared" = yes && enable_static=no
10439
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10440
echo "${ECHO_T}$enable_shared" >&6; }
10442
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10443
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10444
# Make sure either enable_shared or enable_static is yes.
10445
test "$enable_shared" = yes || enable_static=yes
10446
{ echo "$as_me:$LINENO: result: $enable_static" >&5
10447
echo "${ECHO_T}$enable_static" >&6; }
10449
# The else clause should only fire when bootstrapping the
10450
# libtool distribution, otherwise you forgot to ship ltmain.sh
10451
# with your package, and you will get complaints that there are
10452
# no rules to generate ltmain.sh.
10453
if test -f "$ltmain"; then
10454
# See if we are running on zsh, and set the options which allow our commands through
10455
# without removal of \ escapes.
10456
if test -n "${ZSH_VERSION+set}" ; then
10457
setopt NO_GLOB_SUBST
10459
# Now quote all the things that may contain metacharacters while being
10460
# careful not to overquote the AC_SUBSTed values. We take copies of the
10461
# variables and quote the copies for generation of the libtool script.
10462
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10464
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10465
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10466
deplibs_check_method reload_flag reload_cmds need_locks \
10467
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10468
lt_cv_sys_global_symbol_to_c_name_address \
10469
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10470
old_postinstall_cmds old_postuninstall_cmds \
10474
lt_prog_compiler_wl \
10475
lt_prog_compiler_pic \
10476
lt_prog_compiler_static \
10477
lt_prog_compiler_no_builtin_flag \
10478
export_dynamic_flag_spec \
10479
thread_safe_flag_spec \
10480
whole_archive_flag_spec \
10481
enable_shared_with_static_runtimes \
10483
old_archive_from_new_cmds \
10488
compiler_lib_search_path \
10489
compiler_lib_search_dirs \
10491
archive_expsym_cmds \
10493
postuninstall_cmds \
10494
old_archive_from_expsyms_cmds \
10495
allow_undefined_flag \
10496
no_undefined_flag \
10497
export_symbols_cmds \
10498
hardcode_libdir_flag_spec \
10499
hardcode_libdir_flag_spec_ld \
10500
hardcode_libdir_separator \
10501
hardcode_automatic \
10503
module_expsym_cmds \
10504
lt_cv_prog_compiler_c_o \
10507
include_expsyms; do
10510
old_archive_cmds | \
10511
old_archive_from_new_cmds | \
10513
archive_expsym_cmds | \
10515
module_expsym_cmds | \
10516
old_archive_from_expsyms_cmds | \
10517
export_symbols_cmds | \
10518
extract_expsyms_cmds | reload_cmds | finish_cmds | \
10519
postinstall_cmds | postuninstall_cmds | \
10520
old_postinstall_cmds | old_postuninstall_cmds | \
10521
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10522
# Double-quote double-evaled strings.
10523
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10526
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10532
*'\$0 --fallback-echo"')
10533
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10537
cfgfile="${ofile}T"
10538
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10540
{ echo "$as_me:$LINENO: creating $ofile" >&5
10541
echo "$as_me: creating $ofile" >&6;}
10543
cat <<__EOF__ >> "$cfgfile"
10546
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10547
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10548
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10550
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10551
# Free Software Foundation, Inc.
10553
# This file is part of GNU Libtool:
10554
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10556
# This program is free software; you can redistribute it and/or modify
10557
# it under the terms of the GNU General Public License as published by
10558
# the Free Software Foundation; either version 2 of the License, or
10559
# (at your option) any later version.
10561
# This program is distributed in the hope that it will be useful, but
10562
# WITHOUT ANY WARRANTY; without even the implied warranty of
10563
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10564
# General Public License for more details.
10566
# You should have received a copy of the GNU General Public License
10567
# along with this program; if not, write to the Free Software
10568
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10570
# As a special exception to the GNU General Public License, if you
10571
# distribute this file as part of a program that contains a
10572
# configuration script generated by Autoconf, you may include it under
10573
# the same distribution terms that you use for the rest of that program.
10575
# A sed program that does not truncate output.
10578
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10579
Xsed="$SED -e 1s/^X//"
10581
# The HP-UX ksh and POSIX shell print the target directory to stdout
10582
# if CDPATH is set.
10583
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10585
# The names of the tagged configurations supported by this script.
10588
# ### BEGIN LIBTOOL CONFIG
10590
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10592
# Shell to use when invoking shell scripts.
10595
# Whether or not to build shared libraries.
10596
build_libtool_libs=$enable_shared
10598
# Whether or not to build static libraries.
10599
build_old_libs=$enable_static
10601
# Whether or not to add -lc for building shared libraries.
10602
build_libtool_need_lc=$archive_cmds_need_lc
10604
# Whether or not to disallow shared libs when runtime libs are static
10605
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10607
# Whether or not to optimize for fast installation.
10608
fast_install=$enable_fast_install
10611
host_alias=$host_alias
10615
# The build system.
10616
build_alias=$build_alias
10620
# An echo program that does not interpret backslashes.
10625
AR_FLAGS=$lt_AR_FLAGS
10630
# LTCC compiler flags.
10631
LTCFLAGS=$lt_LTCFLAGS
10633
# A language-specific compiler.
10636
# Is the compiler the GNU C compiler?
10642
# The linker used to build libraries.
10645
# Whether we need hard or soft links.
10648
# A BSD-compatible nm program.
10651
# A symbol stripping program
10654
# Used to examine libraries when file_magic_cmd begins "file"
10655
MAGIC_CMD=$MAGIC_CMD
10657
# Used on cygwin: DLL creation program.
10660
# Used on cygwin: object dumper.
10663
# Used on cygwin: assembler.
10666
# The name of the directory that contains temporary libtool files.
10669
# How to create reloadable object files.
10670
reload_flag=$lt_reload_flag
10671
reload_cmds=$lt_reload_cmds
10673
# How to pass a linker flag through the compiler.
10674
wl=$lt_lt_prog_compiler_wl
10676
# Object file suffix (normally "o").
10677
objext="$ac_objext"
10679
# Old archive suffix (normally "a").
10682
# Shared library suffix (normally ".so").
10683
shrext_cmds='$shrext_cmds'
10685
# Executable file suffix (normally "").
10688
# Additional compiler flags for building library objects.
10689
pic_flag=$lt_lt_prog_compiler_pic
10692
# What is the maximum length of a command?
10693
max_cmd_len=$lt_cv_sys_max_cmd_len
10695
# Does compiler simultaneously support -c and -o options?
10696
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10698
# Must we lock files when doing compilation?
10699
need_locks=$lt_need_locks
10701
# Do we need the lib prefix for modules?
10702
need_lib_prefix=$need_lib_prefix
10704
# Do we need a version for libraries?
10705
need_version=$need_version
10707
# Whether dlopen is supported.
10708
dlopen_support=$enable_dlopen
10710
# Whether dlopen of programs is supported.
10711
dlopen_self=$enable_dlopen_self
10713
# Whether dlopen of statically linked programs is supported.
10714
dlopen_self_static=$enable_dlopen_self_static
10716
# Compiler flag to prevent dynamic linking.
10717
link_static_flag=$lt_lt_prog_compiler_static
10719
# Compiler flag to turn off builtin functions.
10720
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10722
# Compiler flag to allow reflexive dlopens.
10723
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10725
# Compiler flag to generate shared objects directly from archives.
10726
whole_archive_flag_spec=$lt_whole_archive_flag_spec
10728
# Compiler flag to generate thread-safe objects.
10729
thread_safe_flag_spec=$lt_thread_safe_flag_spec
10731
# Library versioning type.
10732
version_type=$version_type
10734
# Format of library name prefix.
10735
libname_spec=$lt_libname_spec
10737
# List of archive names. First name is the real one, the rest are links.
10738
# The last name is the one that the linker finds with -lNAME.
10739
library_names_spec=$lt_library_names_spec
10741
# The coded name of the library, if different from the real name.
10742
soname_spec=$lt_soname_spec
10744
# Commands used to build and install an old-style archive.
10746
old_archive_cmds=$lt_old_archive_cmds
10747
old_postinstall_cmds=$lt_old_postinstall_cmds
10748
old_postuninstall_cmds=$lt_old_postuninstall_cmds
10750
# Create an old-style archive from a shared archive.
10751
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10753
# Create a temporary old-style archive to link instead of a shared archive.
10754
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10756
# Commands used to build and install a shared archive.
10757
archive_cmds=$lt_archive_cmds
10758
archive_expsym_cmds=$lt_archive_expsym_cmds
10759
postinstall_cmds=$lt_postinstall_cmds
10760
postuninstall_cmds=$lt_postuninstall_cmds
10762
# Commands used to build a loadable module (assumed same as above if empty)
10763
module_cmds=$lt_module_cmds
10764
module_expsym_cmds=$lt_module_expsym_cmds
10766
# Commands to strip libraries.
10767
old_striplib=$lt_old_striplib
10768
striplib=$lt_striplib
10770
# Dependencies to place before the objects being linked to create a
10772
predep_objects=$lt_predep_objects
10774
# Dependencies to place after the objects being linked to create a
10776
postdep_objects=$lt_postdep_objects
10778
# Dependencies to place before the objects being linked to create a
10780
predeps=$lt_predeps
10782
# Dependencies to place after the objects being linked to create a
10784
postdeps=$lt_postdeps
10786
# The directories searched by this compiler when creating a shared
10788
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10790
# The library search path used internally by the compiler when linking
10791
# a shared library.
10792
compiler_lib_search_path=$lt_compiler_lib_search_path
10794
# Method to check whether dependent libraries are shared objects.
10795
deplibs_check_method=$lt_deplibs_check_method
10797
# Command to use when deplibs_check_method == file_magic.
10798
file_magic_cmd=$lt_file_magic_cmd
10800
# Flag that allows shared libraries with undefined symbols to be built.
10801
allow_undefined_flag=$lt_allow_undefined_flag
10803
# Flag that forces no undefined symbols.
10804
no_undefined_flag=$lt_no_undefined_flag
10806
# Commands used to finish a libtool library installation in a directory.
10807
finish_cmds=$lt_finish_cmds
10809
# Same as above, but a single script fragment to be evaled but not shown.
10810
finish_eval=$lt_finish_eval
10812
# Take the output of nm and produce a listing of raw symbols and C names.
10813
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10815
# Transform the output of nm in a proper C declaration
10816
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10818
# Transform the output of nm in a C name address pair
10819
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10821
# This is the shared library runtime path variable.
10822
runpath_var=$runpath_var
10824
# This is the shared library path variable.
10825
shlibpath_var=$shlibpath_var
10827
# Is shlibpath searched before the hard-coded library search path?
10828
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10830
# How to hardcode a shared library path into an executable.
10831
hardcode_action=$hardcode_action
10833
# Whether we should hardcode library paths into libraries.
10834
hardcode_into_libs=$hardcode_into_libs
10836
# Flag to hardcode \$libdir into a binary during linking.
10837
# This must work even if \$libdir does not exist.
10838
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10840
# If ld is used when linking, flag to hardcode \$libdir into
10841
# a binary during linking. This must work even if \$libdir does
10843
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10845
# Whether we need a single -rpath flag with a separated argument.
10846
hardcode_libdir_separator=$lt_hardcode_libdir_separator
10848
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10849
# resulting binary.
10850
hardcode_direct=$hardcode_direct
10852
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10853
# resulting binary.
10854
hardcode_minus_L=$hardcode_minus_L
10856
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10857
# the resulting binary.
10858
hardcode_shlibpath_var=$hardcode_shlibpath_var
10860
# Set to yes if building a shared library automatically hardcodes DIR into the library
10861
# and all subsequent libraries and executables linked against it.
10862
hardcode_automatic=$hardcode_automatic
10864
# Variables whose values should be saved in libtool wrapper scripts and
10865
# restored at relink time.
10866
variables_saved_for_relink="$variables_saved_for_relink"
10868
# Whether libtool must link a program against all its dependency libraries.
10869
link_all_deplibs=$link_all_deplibs
10871
# Compile-time system search path for libraries
10872
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10874
# Run-time system search path for libraries
10875
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10877
# Fix the shell variable \$srcfile for the compiler.
10878
fix_srcfile_path=$lt_fix_srcfile_path
10880
# Set to yes if exported symbols are required.
10881
always_export_symbols=$always_export_symbols
10883
# The commands to list exported symbols.
10884
export_symbols_cmds=$lt_export_symbols_cmds
10886
# The commands to extract the exported symbol list from a shared archive.
10887
extract_expsyms_cmds=$lt_extract_expsyms_cmds
10889
# Symbols that should not be listed in the preloaded symbols.
10890
exclude_expsyms=$lt_exclude_expsyms
10892
# Symbols that must always be exported.
10893
include_expsyms=$lt_include_expsyms
10895
# ### END LIBTOOL CONFIG
10902
cat <<\EOF >> "$cfgfile"
10904
# AIX sometimes has problems with the GCC collect2 program. For some
10905
# reason, if we set the COLLECT_NAMES environment variable, the problems
10906
# vanish in a puff of smoke.
10907
if test "X${COLLECT_NAMES+set}" != Xset; then
10909
export COLLECT_NAMES
10915
# We use sed instead of cat because bash on DJGPP gets confused if
10916
# if finds mixed CR/LF and LF-only lines. Since sed operates in
10917
# text mode, it properly converts lines to CR/LF. This bash problem
10918
# is reportedly fixed, but why not run on old versions too?
10919
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10921
mv -f "$cfgfile" "$ofile" || \
10922
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10926
# If there is no Makefile yet, we rely on a make rule to execute
10927
# `config.status --recheck' to rerun these tests and create the
10928
# libtool script then.
10929
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10930
if test -f "$ltmain_in"; then
10931
test -f Makefile && make "$ltmain"
10937
ac_cpp='$CPP $CPPFLAGS'
10938
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10939
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10940
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10945
# Check whether --with-tags was given.
10946
if test "${with_tags+set}" = set; then
10947
withval=$with_tags; tagnames="$withval"
10951
if test -f "$ltmain" && test -n "$tagnames"; then
10952
if test ! -f "${ofile}"; then
10953
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10954
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10957
if test -z "$LTCC"; then
10958
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10959
if test -z "$LTCC"; then
10960
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10961
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10963
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10964
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10967
if test -z "$LTCFLAGS"; then
10968
eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10971
# Extract list of available tagged configurations in $ofile.
10972
# Note that this assumes the entire list is on one line.
10973
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10975
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10976
for tagname in $tagnames; do
10978
# Check whether tagname contains only valid characters
10979
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10981
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10982
echo "$as_me: error: invalid tag name: $tagname" >&2;}
10983
{ (exit 1); exit 1; }; }
10987
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10989
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10990
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10991
{ (exit 1); exit 1; }; }
10994
# Update the list of available tags.
10995
if test -n "$tagname"; then
10996
echo appending configuration tag \"$tagname\" to $ofile
11000
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11001
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11002
(test "X$CXX" != "Xg++"))) ; then
11004
ac_cpp='$CXXCPP $CPPFLAGS'
11005
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11006
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11007
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11012
archive_cmds_need_lc_CXX=no
11013
allow_undefined_flag_CXX=
11014
always_export_symbols_CXX=no
11015
archive_expsym_cmds_CXX=
11016
export_dynamic_flag_spec_CXX=
11017
hardcode_direct_CXX=no
11018
hardcode_libdir_flag_spec_CXX=
11019
hardcode_libdir_flag_spec_ld_CXX=
11020
hardcode_libdir_separator_CXX=
11021
hardcode_minus_L_CXX=no
11022
hardcode_shlibpath_var_CXX=unsupported
11023
hardcode_automatic_CXX=no
11025
module_expsym_cmds_CXX=
11026
link_all_deplibs_CXX=unknown
11027
old_archive_cmds_CXX=$old_archive_cmds
11028
no_undefined_flag_CXX=
11029
whole_archive_flag_spec_CXX=
11030
enable_shared_with_static_runtimes_CXX=no
11032
# Dependencies to place before and after the object being linked:
11033
predep_objects_CXX=
11034
postdep_objects_CXX=
11037
compiler_lib_search_path_CXX=
11038
compiler_lib_search_dirs_CXX=
11040
# Source file extension for C++ test sources.
11043
# Object file extension for compiled C++ test sources.
11047
# Code to be used in simple compile tests
11048
lt_simple_compile_test_code="int some_variable = 0;"
11050
# Code to be used in simple link tests
11051
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11053
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11055
# If no C compiler was specified, use CC.
11058
# If no C compiler flags were specified, use CFLAGS.
11059
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11061
# Allow CC to be a program name with arguments.
11065
# save warnings/boilerplate of simple test code
11066
ac_outfile=conftest.$ac_objext
11067
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11068
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11069
_lt_compiler_boilerplate=`cat conftest.err`
11072
ac_outfile=conftest.$ac_objext
11073
echo "$lt_simple_link_test_code" >conftest.$ac_ext
11074
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11075
_lt_linker_boilerplate=`cat conftest.err`
11079
# Allow CC to be a program name with arguments.
11084
lt_save_with_gnu_ld=$with_gnu_ld
11085
lt_save_path_LD=$lt_cv_path_LD
11086
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11087
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11089
$as_unset lt_cv_prog_gnu_ld
11091
if test -n "${lt_cv_path_LDCXX+set}"; then
11092
lt_cv_path_LD=$lt_cv_path_LDCXX
11094
$as_unset lt_cv_path_LD
11096
test -z "${LDCXX+set}" || LD=$LDCXX
11100
for cc_temp in $compiler""; do
11102
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11103
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11108
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11111
# We don't want -fno-exception wen compiling C++ code, so set the
11112
# no_builtin_flag separately
11113
if test "$GXX" = yes; then
11114
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11116
lt_prog_compiler_no_builtin_flag_CXX=
11119
if test "$GXX" = yes; then
11120
# Set up default GNU C++ configuration
11123
# Check whether --with-gnu-ld was given.
11124
if test "${with_gnu_ld+set}" = set; then
11125
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11131
if test "$GCC" = yes; then
11132
# Check if gcc -print-prog-name=ld gives a path.
11133
{ echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11134
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11137
# gcc leaves a trailing carriage return which upsets mingw
11138
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11140
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11143
# Accept absolute paths.
11145
re_direlt='/[^/][^/]*/\.\./'
11146
# Canonicalize the pathname of ld
11147
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11148
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11149
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11151
test -z "$LD" && LD="$ac_prog"
11154
# If it fails, then pretend we aren't using GCC.
11158
# If it is relative, then search for the first ld in PATH.
11159
with_gnu_ld=unknown
11162
elif test "$with_gnu_ld" = yes; then
11163
{ echo "$as_me:$LINENO: checking for GNU ld" >&5
11164
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11166
{ echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11167
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11169
if test "${lt_cv_path_LD+set}" = set; then
11170
echo $ECHO_N "(cached) $ECHO_C" >&6
11172
if test -z "$LD"; then
11173
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11174
for ac_dir in $PATH; do
11176
test -z "$ac_dir" && ac_dir=.
11177
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11178
lt_cv_path_LD="$ac_dir/$ac_prog"
11179
# Check to see if the program is GNU ld. I'd rather use --version,
11180
# but apparently some variants of GNU ld only accept -v.
11181
# Break only if it was the GNU/non-GNU ld that we prefer.
11182
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11183
*GNU* | *'with BFD'*)
11184
test "$with_gnu_ld" != no && break
11187
test "$with_gnu_ld" != yes && break
11194
lt_cv_path_LD="$LD" # Let the user override the test with a path.
11198
LD="$lt_cv_path_LD"
11199
if test -n "$LD"; then
11200
{ echo "$as_me:$LINENO: result: $LD" >&5
11201
echo "${ECHO_T}$LD" >&6; }
11203
{ echo "$as_me:$LINENO: result: no" >&5
11204
echo "${ECHO_T}no" >&6; }
11206
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11207
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11208
{ (exit 1); exit 1; }; }
11209
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11210
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11211
if test "${lt_cv_prog_gnu_ld+set}" = set; then
11212
echo $ECHO_N "(cached) $ECHO_C" >&6
11214
# I'd rather use --version here, but apparently some GNU lds only accept -v.
11215
case `$LD -v 2>&1 </dev/null` in
11216
*GNU* | *'with BFD'*)
11217
lt_cv_prog_gnu_ld=yes
11220
lt_cv_prog_gnu_ld=no
11224
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11225
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11226
with_gnu_ld=$lt_cv_prog_gnu_ld
11230
# Check if GNU C++ uses GNU ld as the underlying linker, since the
11231
# archiving commands below assume that GNU ld is being used.
11232
if test "$with_gnu_ld" = yes; then
11233
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11234
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'
11236
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11237
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11239
# If archive_cmds runs LD, not CC, wlarc should be empty
11240
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11241
# investigate it a little bit more. (MM)
11244
# ancient GNU ld didn't support --whole-archive et. al.
11245
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11246
grep 'no-whole-archive' > /dev/null; then
11247
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11249
whole_archive_flag_spec_CXX=
11255
# A generic and very simple default shared library creation
11256
# command for GNU C++ for the case where it uses the native
11257
# linker, instead of GNU ld. If possible, this setting should
11258
# overridden to take advantage of the native linker features on
11259
# the platform it is being used on.
11260
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11263
# Commands to make compiler produce verbose output that lists
11264
# what "hidden" libraries, object files and flags are used when
11265
# linking a shared library.
11266
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11274
# PORTME: fill in a description of your system's C++ link characteristics
11275
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11276
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11280
# FIXME: insert proper C++ library support
11284
if test "$host_cpu" = ia64; then
11285
# On IA64, the linker does run time linking by default, so we don't
11286
# have to do anything special.
11287
aix_use_runtimelinking=no
11288
exp_sym_flag='-Bexport'
11291
aix_use_runtimelinking=no
11293
# Test if we are trying to use run time linking or normal
11294
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11295
# need to do runtime linking.
11296
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11297
for ld_flag in $LDFLAGS; do
11300
aix_use_runtimelinking=yes
11308
exp_sym_flag='-bexport'
11309
no_entry_flag='-bnoentry'
11312
# When large executables or shared objects are built, AIX ld can
11313
# have problems creating the table of contents. If linking a library
11314
# or program results in "error TOC overflow" add -mminimal-toc to
11315
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11316
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11318
archive_cmds_CXX=''
11319
hardcode_direct_CXX=yes
11320
hardcode_libdir_separator_CXX=':'
11321
link_all_deplibs_CXX=yes
11323
if test "$GXX" = yes; then
11324
case $host_os in aix4.[012]|aix4.[012].*)
11325
# We only want to do this on AIX 4.2 and lower, the check
11326
# below for broken collect2 doesn't work under 4.3+
11327
collect2name=`${CC} -print-prog-name=collect2`
11328
if test -f "$collect2name" && \
11329
strings "$collect2name" | grep resolve_lib_name >/dev/null
11331
# We have reworked collect2
11334
# We have old collect2
11335
hardcode_direct_CXX=unsupported
11336
# It fails to find uninstalled libraries when the uninstalled
11337
# path is not listed in the libpath. Setting hardcode_minus_L
11338
# to unsupported forces relinking
11339
hardcode_minus_L_CXX=yes
11340
hardcode_libdir_flag_spec_CXX='-L$libdir'
11341
hardcode_libdir_separator_CXX=
11345
shared_flag='-shared'
11346
if test "$aix_use_runtimelinking" = yes; then
11347
shared_flag="$shared_flag "'${wl}-G'
11351
if test "$host_cpu" = ia64; then
11352
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11353
# chokes on -Wl,-G. The following line is correct:
11356
if test "$aix_use_runtimelinking" = yes; then
11357
shared_flag='${wl}-G'
11359
shared_flag='${wl}-bM:SRE'
11364
# It seems that -bexpall does not export symbols beginning with
11365
# underscore (_), so it is better to generate a list of symbols to export.
11366
always_export_symbols_CXX=yes
11367
if test "$aix_use_runtimelinking" = yes; then
11368
# Warning - without using the other runtime loading flags (-brtl),
11369
# -berok will link without error, but may produce a broken library.
11370
allow_undefined_flag_CXX='-berok'
11371
# Determine the default libpath from the value encoded in an empty executable.
11372
cat >conftest.$ac_ext <<_ACEOF
11375
cat confdefs.h >>conftest.$ac_ext
11376
cat >>conftest.$ac_ext <<_ACEOF
11377
/* end confdefs.h. */
11387
rm -f conftest.$ac_objext conftest$ac_exeext
11388
if { (ac_try="$ac_link"
11389
case "(($ac_try" in
11390
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11391
*) ac_try_echo=$ac_try;;
11393
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11394
(eval "$ac_link") 2>conftest.er1
11396
grep -v '^ *+' conftest.er1 >conftest.err
11398
cat conftest.err >&5
11399
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11400
(exit $ac_status); } && {
11401
test -z "$ac_cxx_werror_flag" ||
11402
test ! -s conftest.err
11403
} && test -s conftest$ac_exeext &&
11404
$as_test_x conftest$ac_exeext; then
11406
lt_aix_libpath_sed='
11407
/Import File Strings/,/^$/ {
11413
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11414
# Check for a 64-bit object if we didn't find anything.
11415
if test -z "$aix_libpath"; then
11416
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11419
echo "$as_me: failed program was:" >&5
11420
sed 's/^/| /' conftest.$ac_ext >&5
11425
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11426
conftest$ac_exeext conftest.$ac_ext
11427
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11429
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11431
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"
11433
if test "$host_cpu" = ia64; then
11434
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11435
allow_undefined_flag_CXX="-z nodefs"
11436
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"
11438
# Determine the default libpath from the value encoded in an empty executable.
11439
cat >conftest.$ac_ext <<_ACEOF
11442
cat confdefs.h >>conftest.$ac_ext
11443
cat >>conftest.$ac_ext <<_ACEOF
11444
/* end confdefs.h. */
11454
rm -f conftest.$ac_objext conftest$ac_exeext
11455
if { (ac_try="$ac_link"
11456
case "(($ac_try" in
11457
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11458
*) ac_try_echo=$ac_try;;
11460
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11461
(eval "$ac_link") 2>conftest.er1
11463
grep -v '^ *+' conftest.er1 >conftest.err
11465
cat conftest.err >&5
11466
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11467
(exit $ac_status); } && {
11468
test -z "$ac_cxx_werror_flag" ||
11469
test ! -s conftest.err
11470
} && test -s conftest$ac_exeext &&
11471
$as_test_x conftest$ac_exeext; then
11473
lt_aix_libpath_sed='
11474
/Import File Strings/,/^$/ {
11480
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11481
# Check for a 64-bit object if we didn't find anything.
11482
if test -z "$aix_libpath"; then
11483
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11486
echo "$as_me: failed program was:" >&5
11487
sed 's/^/| /' conftest.$ac_ext >&5
11492
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11493
conftest$ac_exeext conftest.$ac_ext
11494
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11496
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11497
# Warning - without using the other run time loading flags,
11498
# -berok will link without error, but may produce a broken library.
11499
no_undefined_flag_CXX=' ${wl}-bernotok'
11500
allow_undefined_flag_CXX=' ${wl}-berok'
11501
# Exported symbols can be pulled into shared objects from archives
11502
whole_archive_flag_spec_CXX='$convenience'
11503
archive_cmds_need_lc_CXX=yes
11504
# This is similar to how AIX traditionally builds its shared libraries.
11505
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'
11511
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11512
allow_undefined_flag_CXX=unsupported
11513
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11514
# support --undefined. This deserves some investigation. FIXME
11515
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11522
case $cc_basename in
11524
# FIXME: insert proper C++ library support
11530
cygwin* | mingw* | pw32*)
11531
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11532
# as there is no search path for DLLs.
11533
hardcode_libdir_flag_spec_CXX='-L$libdir'
11534
allow_undefined_flag_CXX=unsupported
11535
always_export_symbols_CXX=no
11536
enable_shared_with_static_runtimes_CXX=yes
11538
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11539
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'
11540
# If the export-symbols file already is a .def file (1st line
11541
# is EXPORTS), use it as is; otherwise, prepend...
11542
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11543
cp $export_symbols $output_objdir/$soname.def;
11545
echo EXPORTS > $output_objdir/$soname.def;
11546
cat $export_symbols >> $output_objdir/$soname.def;
11548
$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'
11553
darwin* | rhapsody*)
11554
archive_cmds_need_lc_CXX=no
11555
hardcode_direct_CXX=no
11556
hardcode_automatic_CXX=yes
11557
hardcode_shlibpath_var_CXX=unsupported
11558
whole_archive_flag_spec_CXX=''
11559
link_all_deplibs_CXX=yes
11560
allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11561
if test "$GXX" = yes ; then
11562
output_verbose_link_cmd='echo'
11563
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}"
11564
module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11565
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}"
11566
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}"
11567
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11568
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}"
11569
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}"
11572
case $cc_basename in
11574
output_verbose_link_cmd='echo'
11575
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'
11576
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11577
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11578
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}'
11579
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}'
11589
case $cc_basename in
11591
# FIXME: insert proper C++ library support
11595
# Green Hills C++ Compiler
11596
# FIXME: insert proper C++ library support
11600
# FIXME: insert proper C++ library support
11606
# C++ shared libraries reported to be fairly broken before switch to ELF
11610
archive_cmds_need_lc_CXX=no
11612
freebsd* | dragonfly*)
11613
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11620
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11621
hardcode_libdir_separator_CXX=:
11622
export_dynamic_flag_spec_CXX='${wl}-E'
11623
hardcode_direct_CXX=yes
11624
hardcode_minus_L_CXX=yes # Not in the search PATH,
11625
# but as the default
11626
# location of the library.
11628
case $cc_basename in
11630
# FIXME: insert proper C++ library support
11634
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'
11635
# Commands to make compiler produce verbose output that lists
11636
# what "hidden" libraries, object files and flags are used when
11637
# linking a shared library.
11639
# There doesn't appear to be a way to prevent this compiler from
11640
# explicitly linking system object files so we need to strip them
11641
# from the output so that they don't get included in the library
11643
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'
11646
if test "$GXX" = yes; then
11647
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'
11649
# FIXME: insert proper C++ library support
11656
if test $with_gnu_ld = no; then
11657
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11658
hardcode_libdir_separator_CXX=:
11663
export_dynamic_flag_spec_CXX='${wl}-E'
11669
hardcode_direct_CXX=no
11670
hardcode_shlibpath_var_CXX=no
11673
hardcode_direct_CXX=yes
11674
hardcode_minus_L_CXX=yes # Not in the search PATH,
11675
# but as the default
11676
# location of the library.
11680
case $cc_basename in
11682
# FIXME: insert proper C++ library support
11688
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11691
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11694
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11697
# Commands to make compiler produce verbose output that lists
11698
# what "hidden" libraries, object files and flags are used when
11699
# linking a shared library.
11701
# There doesn't appear to be a way to prevent this compiler from
11702
# explicitly linking system object files so we need to strip them
11703
# from the output so that they don't get included in the library
11705
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'
11708
if test "$GXX" = yes; then
11709
if test $with_gnu_ld = no; then
11712
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11715
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11718
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'
11723
# FIXME: insert proper C++ library support
11730
hardcode_direct_CXX=no
11731
hardcode_shlibpath_var_CXX=no
11732
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11733
export_dynamic_flag_spec_CXX='${wl}-E'
11734
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11735
# Instead, shared libraries are loaded at an image base (0x10000000 by
11736
# default) and relocated if they conflict, which is a slow very memory
11737
# consuming and fragmenting process. To avoid this, we pick a random,
11738
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11739
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
11740
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'
11741
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'
11744
case $cc_basename in
11747
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'
11749
# Archives containing C++ object files must be created using
11750
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
11751
# necessary to make sure instantiated templates are included
11753
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11756
if test "$GXX" = yes; then
11757
if test "$with_gnu_ld" = no; then
11758
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'
11760
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'
11763
link_all_deplibs_CXX=yes
11766
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11767
hardcode_libdir_separator_CXX=:
11769
linux* | k*bsd*-gnu)
11770
case $cc_basename in
11772
# Kuck and Associates, Inc. (KAI) C++ Compiler
11774
# KCC will only create a shared library if the output file
11775
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11776
# to its proper name (with version) after linking.
11777
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'
11778
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'
11779
# Commands to make compiler produce verbose output that lists
11780
# what "hidden" libraries, object files and flags are used when
11781
# linking a shared library.
11783
# There doesn't appear to be a way to prevent this compiler from
11784
# explicitly linking system object files so we need to strip them
11785
# from the output so that they don't get included in the library
11787
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'
11789
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11790
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11792
# Archives containing C++ object files must be created using
11793
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11794
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11799
# version 8.0 and above of icpc choke on multiply defined symbols
11800
# if we add $predep_objects and $postdep_objects, however 7.1 and
11801
# earlier do not add the objects themselves.
11802
case `$CC -V 2>&1` in
11804
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11805
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'
11807
*) # Version 8.0 or newer
11810
ia64*) tmp_idyn=' -i_dynamic';;
11812
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11813
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'
11816
archive_cmds_need_lc_CXX=no
11817
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11818
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11819
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11822
# Portland Group C++ compiler
11823
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11824
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'
11826
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11827
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11828
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'
11832
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11833
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'
11835
runpath_var=LD_RUN_PATH
11836
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11837
hardcode_libdir_separator_CXX=:
11839
# Commands to make compiler produce verbose output that lists
11840
# what "hidden" libraries, object files and flags are used when
11841
# linking a shared library.
11843
# There doesn't appear to be a way to prevent this compiler from
11844
# explicitly linking system object files so we need to strip them
11845
# from the output so that they don't get included in the library
11847
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'
11850
case `$CC -V 2>&1 | sed 5q` in
11853
no_undefined_flag_CXX=' -zdefs'
11854
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11855
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'
11856
hardcode_libdir_flag_spec_CXX='-R$libdir'
11857
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'
11859
# Not sure whether something based on
11860
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11862
output_verbose_link_cmd='echo'
11864
# Archives containing C++ object files must be created using
11865
# "CC -xar", where "CC" is the Sun C++ compiler. This is
11866
# necessary to make sure instantiated templates are included
11868
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11875
# FIXME: insert proper C++ library support
11879
# FIXME: insert proper C++ library support
11883
case $cc_basename in
11885
# FIXME: insert proper C++ library support
11889
# FIXME: insert proper C++ library support
11894
netbsd* | netbsdelf*-gnu)
11895
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11896
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11898
hardcode_libdir_flag_spec_CXX='-R$libdir'
11899
hardcode_direct_CXX=yes
11900
hardcode_shlibpath_var_CXX=no
11902
# Workaround some broken pre-1.5 toolchains
11903
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11906
# C++ shared libraries are fairly broken
11910
if test -f /usr/libexec/ld.so; then
11911
hardcode_direct_CXX=yes
11912
hardcode_shlibpath_var_CXX=no
11913
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11914
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11915
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11916
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11917
export_dynamic_flag_spec_CXX='${wl}-E'
11918
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11920
output_verbose_link_cmd='echo'
11926
case $cc_basename in
11928
# Kuck and Associates, Inc. (KAI) C++ Compiler
11930
# KCC will only create a shared library if the output file
11931
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11932
# to its proper name (with version) after linking.
11933
archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11935
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11936
hardcode_libdir_separator_CXX=:
11938
# Archives containing C++ object files must be created using
11939
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11940
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11944
# Rational C++ 2.4.1
11945
# FIXME: insert proper C++ library support
11949
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11950
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'
11952
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11953
hardcode_libdir_separator_CXX=:
11955
# Commands to make compiler produce verbose output that lists
11956
# what "hidden" libraries, object files and flags are used when
11957
# linking a shared library.
11959
# There doesn't appear to be a way to prevent this compiler from
11960
# explicitly linking system object files so we need to strip them
11961
# from the output so that they don't get included in the library
11963
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'
11966
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11967
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11968
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'
11970
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11971
hardcode_libdir_separator_CXX=:
11973
# Commands to make compiler produce verbose output that lists
11974
# what "hidden" libraries, object files and flags are used when
11975
# linking a shared library.
11976
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11979
# FIXME: insert proper C++ library support
11986
case $cc_basename in
11988
# Kuck and Associates, Inc. (KAI) C++ Compiler
11990
# KCC will only create a shared library if the output file
11991
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11992
# to its proper name (with version) after linking.
11993
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'
11995
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11996
hardcode_libdir_separator_CXX=:
11998
# Archives containing C++ object files must be created using
11999
# the KAI C++ compiler.
12000
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12003
# Rational C++ 2.4.1
12004
# FIXME: insert proper C++ library support
12008
allow_undefined_flag_CXX=' -expect_unresolved \*'
12009
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'
12010
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12011
echo "-hidden">> $lib.exp~
12012
$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~
12015
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12016
hardcode_libdir_separator_CXX=:
12018
# Commands to make compiler produce verbose output that lists
12019
# what "hidden" libraries, object files and flags are used when
12020
# linking a shared library.
12022
# There doesn't appear to be a way to prevent this compiler from
12023
# explicitly linking system object files so we need to strip them
12024
# from the output so that they don't get included in the library
12026
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'
12029
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12030
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12031
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'
12033
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12034
hardcode_libdir_separator_CXX=:
12036
# Commands to make compiler produce verbose output that lists
12037
# what "hidden" libraries, object files and flags are used when
12038
# linking a shared library.
12039
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12042
# FIXME: insert proper C++ library support
12049
# FIXME: insert proper C++ library support
12053
case $cc_basename in
12056
# FIXME: insert proper C++ library support
12061
# FIXME: insert proper C++ library support
12065
# FIXME: insert proper C++ library support
12071
case $cc_basename in
12073
# Sun C++ 4.2, 5.x and Centerline C++
12074
archive_cmds_need_lc_CXX=yes
12075
no_undefined_flag_CXX=' -zdefs'
12076
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12077
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12078
$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'
12080
hardcode_libdir_flag_spec_CXX='-R$libdir'
12081
hardcode_shlibpath_var_CXX=no
12083
solaris2.[0-5] | solaris2.[0-5].*) ;;
12085
# The compiler driver will combine and reorder linker options,
12086
# but understands `-z linker_flag'.
12087
# Supported since Solaris 2.6 (maybe 2.5.1?)
12088
whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12091
link_all_deplibs_CXX=yes
12093
output_verbose_link_cmd='echo'
12095
# Archives containing C++ object files must be created using
12096
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12097
# necessary to make sure instantiated templates are included
12099
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12102
# Green Hills C++ Compiler
12103
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12105
# The C++ compiler must be used to create the archive.
12106
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12109
# GNU C++ compiler with Solaris linker
12110
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12111
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12112
if $CC --version | grep -v '^2\.7' > /dev/null; then
12113
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12114
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12115
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12117
# Commands to make compiler produce verbose output that lists
12118
# what "hidden" libraries, object files and flags are used when
12119
# linking a shared library.
12120
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12122
# g++ 2.7 appears to require `-G' NOT `-shared' on this
12124
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12125
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12126
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12128
# Commands to make compiler produce verbose output that lists
12129
# what "hidden" libraries, object files and flags are used when
12130
# linking a shared library.
12131
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12134
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12136
solaris2.[0-5] | solaris2.[0-5].*) ;;
12138
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12145
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12146
no_undefined_flag_CXX='${wl}-z,text'
12147
archive_cmds_need_lc_CXX=no
12148
hardcode_shlibpath_var_CXX=no
12149
runpath_var='LD_RUN_PATH'
12151
case $cc_basename in
12153
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12154
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12157
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12158
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12162
sysv5* | sco3.2v5* | sco5v6*)
12163
# Note: We can NOT use -z defs as we might desire, because we do not
12164
# link with -lc, and that would cause any symbols used from libc to
12165
# always be unresolved, which means just about no library would
12166
# ever link correctly. If we're not using GNU ld we use -z text
12167
# though, which does catch some bad symbols but isn't as heavy-handed
12169
# For security reasons, it is highly recommended that you always
12170
# use absolute paths for naming shared libraries, and exclude the
12171
# DT_RUNPATH tag from executables and libraries. But doing so
12172
# requires that you compile everything twice, which is a pain.
12173
# So that behaviour is only enabled if SCOABSPATH is set to a
12174
# non-empty value in the environment. Most likely only useful for
12175
# creating official distributions of packages.
12176
# This is a hack until libtool officially supports absolute path
12177
# names for shared libraries.
12178
no_undefined_flag_CXX='${wl}-z,text'
12179
allow_undefined_flag_CXX='${wl}-z,nodefs'
12180
archive_cmds_need_lc_CXX=no
12181
hardcode_shlibpath_var_CXX=no
12182
hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12183
hardcode_libdir_separator_CXX=':'
12184
link_all_deplibs_CXX=yes
12185
export_dynamic_flag_spec_CXX='${wl}-Bexport'
12186
runpath_var='LD_RUN_PATH'
12188
case $cc_basename in
12190
archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12191
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12194
archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12195
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12200
case $cc_basename in
12202
# NonStop-UX NCC 3.20
12203
# FIXME: insert proper C++ library support
12207
# FIXME: insert proper C++ library support
12213
# FIXME: insert proper C++ library support
12217
# FIXME: insert proper C++ library support
12221
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12222
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12223
test "$ld_shlibs_CXX" = no && can_build_shared=no
12228
cat > conftest.$ac_ext <<EOF
12232
Foo (void) { a = 0; }
12238
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12239
(eval $ac_compile) 2>&5
12241
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12242
(exit $ac_status); }; then
12243
# Parse the compiler output and extract the necessary
12244
# objects, libraries and library flags.
12246
# Sentinel used to keep track of whether or not we are before
12247
# the conftest object file.
12248
pre_test_object_deps_done=no
12250
# The `*' in the case matches for architectures that use `case' in
12251
# $output_verbose_cmd can trigger glob expansion during the loop
12252
# eval without this substitution.
12253
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12255
for p in `eval $output_verbose_link_cmd`; do
12259
# Some compilers place space between "-{L,R}" and the path.
12260
# Remove the space.
12261
if test $p = "-L" \
12262
|| test $p = "-R"; then
12269
if test "$pre_test_object_deps_done" = no; then
12272
# Internal compiler library paths should come after those
12273
# provided the user. The postdeps already come after the
12274
# user supplied libs so there is no need to process them.
12275
if test -z "$compiler_lib_search_path_CXX"; then
12276
compiler_lib_search_path_CXX="${prev}${p}"
12278
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12281
# The "-l" case would never come before the object being
12282
# linked, so don't bother handling this case.
12285
if test -z "$postdeps_CXX"; then
12286
postdeps_CXX="${prev}${p}"
12288
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12294
# This assumes that the test object file only shows up
12295
# once in the compiler output.
12296
if test "$p" = "conftest.$objext"; then
12297
pre_test_object_deps_done=yes
12301
if test "$pre_test_object_deps_done" = no; then
12302
if test -z "$predep_objects_CXX"; then
12303
predep_objects_CXX="$p"
12305
predep_objects_CXX="$predep_objects_CXX $p"
12308
if test -z "$postdep_objects_CXX"; then
12309
postdep_objects_CXX="$p"
12311
postdep_objects_CXX="$postdep_objects_CXX $p"
12316
*) ;; # Ignore the rest.
12324
echo "libtool.m4: error: problem compiling CXX test program"
12327
$rm -f confest.$objext
12329
compiler_lib_search_dirs_CXX=
12330
if test -n "$compiler_lib_search_path_CXX"; then
12331
compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12334
# PORTME: override above test on systems where it is broken
12337
# Interix 3.5 installs completely hosed .la files for C++, so rather than
12338
# hack all around it, let's just trust "g++" to DTRT.
12339
predep_objects_CXX=
12340
postdep_objects_CXX=
12345
case `$CC -V 2>&1 | sed 5q` in
12349
# The more standards-conforming stlport4 library is
12350
# incompatible with the Cstd library. Avoid specifying
12351
# it if it's in CXXFLAGS. Ignore libCrun as
12352
# -library=stlport4 depends on it.
12353
case " $CXX $CXXFLAGS " in
12354
*" -library=stlport4 "*)
12355
solaris_use_stlport4=yes
12358
if test "$solaris_use_stlport4" != yes; then
12359
postdeps_CXX='-library=Cstd -library=Crun'
12366
case $cc_basename in
12368
# The more standards-conforming stlport4 library is
12369
# incompatible with the Cstd library. Avoid specifying
12370
# it if it's in CXXFLAGS. Ignore libCrun as
12371
# -library=stlport4 depends on it.
12372
case " $CXX $CXXFLAGS " in
12373
*" -library=stlport4 "*)
12374
solaris_use_stlport4=yes
12378
# Adding this requires a known-good setup of shared libraries for
12379
# Sun compiler versions before 5.6, else PIC objects from an old
12380
# archive will be linked into the output, leading to subtle bugs.
12381
if test "$solaris_use_stlport4" != yes; then
12382
postdeps_CXX='-library=Cstd -library=Crun'
12389
case " $postdeps_CXX " in
12390
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12393
lt_prog_compiler_wl_CXX=
12394
lt_prog_compiler_pic_CXX=
12395
lt_prog_compiler_static_CXX=
12397
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12398
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12400
# C++ specific cases for pic, static, wl, etc.
12401
if test "$GXX" = yes; then
12402
lt_prog_compiler_wl_CXX='-Wl,'
12403
lt_prog_compiler_static_CXX='-static'
12407
# All AIX code is PIC.
12408
if test "$host_cpu" = ia64; then
12409
# AIX 5 now supports IA64 processor
12410
lt_prog_compiler_static_CXX='-Bstatic'
12414
# FIXME: we need at least 68020 code to build shared libraries, but
12415
# adding the `-m68020' flag to GCC prevents building anything better,
12417
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12419
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12420
# PIC is the default for these OSes.
12422
mingw* | cygwin* | os2* | pw32*)
12423
# This hack is so that the source file can tell whether it is being
12424
# built for inclusion in a dll (and should export symbols for example).
12425
# Although the cygwin gcc ignores -fPIC, still need this for old-style
12426
# (--disable-auto-import) libraries
12427
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12429
darwin* | rhapsody*)
12430
# PIC is the default on this platform
12431
# Common symbols not allowed in MH_DYLIB files
12432
lt_prog_compiler_pic_CXX='-fno-common'
12435
# DJGPP does not support shared libraries at all
12436
lt_prog_compiler_pic_CXX=
12439
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
12440
# Instead, we relocate shared libraries at runtime.
12443
if test -d /usr/nec; then
12444
lt_prog_compiler_pic_CXX=-Kconform_pic
12448
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12449
# not for PA HP-UX.
12454
lt_prog_compiler_pic_CXX='-fPIC'
12459
lt_prog_compiler_pic_CXX='-fPIC'
12465
# All AIX code is PIC.
12466
if test "$host_cpu" = ia64; then
12467
# AIX 5 now supports IA64 processor
12468
lt_prog_compiler_static_CXX='-Bstatic'
12470
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12474
case $cc_basename in
12476
# Green Hills C++ Compiler
12477
# _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"
12482
# PIC is the default on this platform
12483
# Common symbols not allowed in MH_DYLIB files
12484
case $cc_basename in
12486
lt_prog_compiler_pic_CXX='-qnocommon'
12487
lt_prog_compiler_wl_CXX='-Wl,'
12492
case $cc_basename in
12494
lt_prog_compiler_pic_CXX='-KPIC'
12497
# Green Hills C++ Compiler
12498
lt_prog_compiler_pic_CXX='-pic'
12504
freebsd* | dragonfly*)
12505
# FreeBSD uses GNU C++
12507
hpux9* | hpux10* | hpux11*)
12508
case $cc_basename in
12510
lt_prog_compiler_wl_CXX='-Wl,'
12511
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12512
if test "$host_cpu" != ia64; then
12513
lt_prog_compiler_pic_CXX='+Z'
12517
lt_prog_compiler_wl_CXX='-Wl,'
12518
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12524
lt_prog_compiler_pic_CXX='+Z'
12533
# This is c89, which is MS Visual C++ (no shared libs)
12534
# Anyone wants to do a port?
12536
irix5* | irix6* | nonstopux*)
12537
case $cc_basename in
12539
lt_prog_compiler_wl_CXX='-Wl,'
12540
lt_prog_compiler_static_CXX='-non_shared'
12541
# CC pic flag -KPIC is the default.
12547
linux* | k*bsd*-gnu)
12548
case $cc_basename in
12551
lt_prog_compiler_wl_CXX='--backend -Wl,'
12552
lt_prog_compiler_pic_CXX='-fPIC'
12556
lt_prog_compiler_wl_CXX='-Wl,'
12557
lt_prog_compiler_pic_CXX='-KPIC'
12558
lt_prog_compiler_static_CXX='-static'
12561
# Portland Group C++ compiler.
12562
lt_prog_compiler_wl_CXX='-Wl,'
12563
lt_prog_compiler_pic_CXX='-fpic'
12564
lt_prog_compiler_static_CXX='-Bstatic'
12568
# Make sure the PIC flag is empty. It appears that all Alpha
12569
# Linux and Compaq Tru64 Unix objects are PIC.
12570
lt_prog_compiler_pic_CXX=
12571
lt_prog_compiler_static_CXX='-non_shared'
12574
case `$CC -V 2>&1 | sed 5q` in
12577
lt_prog_compiler_pic_CXX='-KPIC'
12578
lt_prog_compiler_static_CXX='-Bstatic'
12579
lt_prog_compiler_wl_CXX='-Qoption ld '
12590
case $cc_basename in
12592
lt_prog_compiler_pic_CXX='-W c,exportall'
12598
netbsd* | netbsdelf*-gnu)
12600
osf3* | osf4* | osf5*)
12601
case $cc_basename in
12603
lt_prog_compiler_wl_CXX='--backend -Wl,'
12606
# Rational C++ 2.4.1
12607
lt_prog_compiler_pic_CXX='-pic'
12610
# Digital/Compaq C++
12611
lt_prog_compiler_wl_CXX='-Wl,'
12612
# Make sure the PIC flag is empty. It appears that all Alpha
12613
# Linux and Compaq Tru64 Unix objects are PIC.
12614
lt_prog_compiler_pic_CXX=
12615
lt_prog_compiler_static_CXX='-non_shared'
12624
case $cc_basename in
12626
# Sun C++ 4.2, 5.x and Centerline C++
12627
lt_prog_compiler_pic_CXX='-KPIC'
12628
lt_prog_compiler_static_CXX='-Bstatic'
12629
lt_prog_compiler_wl_CXX='-Qoption ld '
12632
# Green Hills C++ Compiler
12633
lt_prog_compiler_pic_CXX='-PIC'
12640
case $cc_basename in
12643
lt_prog_compiler_pic_CXX='-pic'
12644
lt_prog_compiler_static_CXX='-Bstatic'
12648
lt_prog_compiler_pic_CXX='-pic'
12655
case $cc_basename in
12657
# NonStop-UX NCC 3.20
12658
lt_prog_compiler_pic_CXX='-KPIC'
12664
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12665
case $cc_basename in
12667
lt_prog_compiler_wl_CXX='-Wl,'
12668
lt_prog_compiler_pic_CXX='-KPIC'
12669
lt_prog_compiler_static_CXX='-Bstatic'
12676
lt_prog_compiler_can_build_shared_CXX=no
12681
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12682
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12685
# Check to make sure the PIC flag actually works.
12687
if test -n "$lt_prog_compiler_pic_CXX"; then
12689
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12690
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12691
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12692
echo $ECHO_N "(cached) $ECHO_C" >&6
12694
lt_cv_prog_compiler_pic_works_CXX=no
12695
ac_outfile=conftest.$ac_objext
12696
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12697
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12698
# Insert the option either (1) after the last *FLAGS variable, or
12699
# (2) before a word containing "conftest.", or (3) at the end.
12700
# Note that $ac_compile itself does not contain backslashes and begins
12701
# with a dollar sign (not a hyphen), so the echo should work correctly.
12702
# The option is referenced via a variable to avoid confusing sed.
12703
lt_compile=`echo "$ac_compile" | $SED \
12704
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12705
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12706
-e 's:$: $lt_compiler_flag:'`
12707
(eval echo "\"\$as_me:12707: $lt_compile\"" >&5)
12708
(eval "$lt_compile" 2>conftest.err)
12710
cat conftest.err >&5
12711
echo "$as_me:12711: \$? = $ac_status" >&5
12712
if (exit $ac_status) && test -s "$ac_outfile"; then
12713
# The compiler can only warn and ignore the option if not recognized
12714
# So say no if there are warnings other than the usual output.
12715
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12716
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12717
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12718
lt_cv_prog_compiler_pic_works_CXX=yes
12724
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12725
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12727
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12728
case $lt_prog_compiler_pic_CXX in
12730
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12733
lt_prog_compiler_pic_CXX=
12734
lt_prog_compiler_can_build_shared_CXX=no
12739
# For platforms which do not support PIC, -DPIC is meaningless:
12741
lt_prog_compiler_pic_CXX=
12744
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12749
# Check to make sure the static flag actually works.
12751
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12752
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12753
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12754
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12755
echo $ECHO_N "(cached) $ECHO_C" >&6
12757
lt_cv_prog_compiler_static_works_CXX=no
12758
save_LDFLAGS="$LDFLAGS"
12759
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12760
echo "$lt_simple_link_test_code" > conftest.$ac_ext
12761
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12762
# The linker can only warn and ignore the option if not recognized
12763
# So say no if there are warnings
12764
if test -s conftest.err; then
12765
# Append any errors to the config.log.
12766
cat conftest.err 1>&5
12767
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12768
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12769
if diff conftest.exp conftest.er2 >/dev/null; then
12770
lt_cv_prog_compiler_static_works_CXX=yes
12773
lt_cv_prog_compiler_static_works_CXX=yes
12777
LDFLAGS="$save_LDFLAGS"
12780
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12781
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
12783
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12786
lt_prog_compiler_static_CXX=
12790
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12791
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12792
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12793
echo $ECHO_N "(cached) $ECHO_C" >&6
12795
lt_cv_prog_compiler_c_o_CXX=no
12796
$rm -r conftest 2>/dev/null
12800
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12802
lt_compiler_flag="-o out/conftest2.$ac_objext"
12803
# Insert the option either (1) after the last *FLAGS variable, or
12804
# (2) before a word containing "conftest.", or (3) at the end.
12805
# Note that $ac_compile itself does not contain backslashes and begins
12806
# with a dollar sign (not a hyphen), so the echo should work correctly.
12807
lt_compile=`echo "$ac_compile" | $SED \
12808
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12809
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12810
-e 's:$: $lt_compiler_flag:'`
12811
(eval echo "\"\$as_me:12811: $lt_compile\"" >&5)
12812
(eval "$lt_compile" 2>out/conftest.err)
12814
cat out/conftest.err >&5
12815
echo "$as_me:12815: \$? = $ac_status" >&5
12816
if (exit $ac_status) && test -s out/conftest2.$ac_objext
12818
# The compiler can only warn and ignore the option if not recognized
12819
# So say no if there are warnings
12820
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12821
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12822
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12823
lt_cv_prog_compiler_c_o_CXX=yes
12828
# SGI C++ compiler will create directory out/ii_files/ for
12829
# template instantiation
12830
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12831
$rm out/* && rmdir out
12837
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12838
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12841
hard_links="nottested"
12842
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12843
# do not overwrite the value of need_locks provided by the user
12844
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12845
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12848
ln conftest.a conftest.b 2>/dev/null && hard_links=no
12850
ln conftest.a conftest.b 2>&5 || hard_links=no
12851
ln conftest.a conftest.b 2>/dev/null && hard_links=no
12852
{ echo "$as_me:$LINENO: result: $hard_links" >&5
12853
echo "${ECHO_T}$hard_links" >&6; }
12854
if test "$hard_links" = no; then
12855
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12856
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12863
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12864
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12866
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12869
# If we're using GNU nm, then we don't want the "-C" option.
12870
# -C means demangle to AIX nm, but means don't demangle with GNU nm
12871
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12872
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'
12874
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'
12878
export_symbols_cmds_CXX="$ltdll_cmds"
12881
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'
12883
linux* | k*bsd*-gnu)
12884
link_all_deplibs_CXX=no
12887
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12890
exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12892
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12893
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12894
test "$ld_shlibs_CXX" = no && can_build_shared=no
12897
# Do we need to explicitly link libc?
12899
case "x$archive_cmds_need_lc_CXX" in
12901
# Assume -lc should be added
12902
archive_cmds_need_lc_CXX=yes
12904
if test "$enable_shared" = yes && test "$GCC" = yes; then
12905
case $archive_cmds_CXX in
12907
# FIXME: we may have to deal with multi-command sequences.
12910
# Test whether the compiler implicitly links with -lc since on some
12911
# systems, -lgcc has to come before -lc. If gcc already passes -lc
12912
# to ld, don't add -lc before -lgcc.
12913
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12914
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12916
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12918
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12919
(eval $ac_compile) 2>&5
12921
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12922
(exit $ac_status); } 2>conftest.err; then
12925
libobjs=conftest.$ac_objext
12927
wl=$lt_prog_compiler_wl_CXX
12928
pic_flag=$lt_prog_compiler_pic_CXX
12934
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12935
allow_undefined_flag_CXX=
12936
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12937
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12939
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940
(exit $ac_status); }
12942
archive_cmds_need_lc_CXX=no
12944
archive_cmds_need_lc_CXX=yes
12946
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12948
cat conftest.err 1>&5
12951
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12952
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12959
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12960
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12961
library_names_spec=
12962
libname_spec='lib$name'
12966
postuninstall_cmds=
12970
shlibpath_overrides_runpath=unknown
12972
dynamic_linker="$host_os ld.so"
12973
sys_lib_dlsearch_path_spec="/lib /usr/lib"
12975
need_lib_prefix=unknown
12976
hardcode_into_libs=no
12978
# when you set need_version to no, make sure it does not cause -set_version
12979
# flags to be left without arguments
12980
need_version=unknown
12985
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12986
shlibpath_var=LIBPATH
12988
# AIX 3 has no versioning support, so we append a major version to the name.
12989
soname_spec='${libname}${release}${shared_ext}$major'
12996
hardcode_into_libs=yes
12997
if test "$host_cpu" = ia64; then
12998
# AIX 5 supports IA64
12999
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13000
shlibpath_var=LD_LIBRARY_PATH
13002
# With GCC up to 2.95.x, collect2 would create an import file
13003
# for dependence libraries. The import file would start with
13004
# the line `#! .'. This would cause the generated library to
13005
# depend on `.', always an invalid library. This was fixed in
13006
# development snapshots of GCC prior to 3.0.
13008
aix4 | aix4.[01] | aix4.[01].*)
13009
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13011
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13014
can_build_shared=no
13018
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13019
# soname into executable. Probably we can add versioning support to
13020
# collect2, so additional links can be useful in future.
13021
if test "$aix_use_runtimelinking" = yes; then
13022
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
13023
# instead of lib<name>.a to let people know that these are not
13024
# typical AIX shared libraries.
13025
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13027
# We preserve .a as extension for shared libraries through AIX4.2
13028
# and later when we are not doing run time linking.
13029
library_names_spec='${libname}${release}.a $libname.a'
13030
soname_spec='${libname}${release}${shared_ext}$major'
13032
shlibpath_var=LIBPATH
13037
library_names_spec='$libname.ixlibrary $libname.a'
13038
# Create ${libname}_ixlibrary.a entries in /sys/libs.
13039
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'
13043
library_names_spec='${libname}${shared_ext}'
13044
dynamic_linker="$host_os ld.so"
13045
shlibpath_var=LIBRARY_PATH
13051
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13052
soname_spec='${libname}${release}${shared_ext}$major'
13053
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13054
shlibpath_var=LD_LIBRARY_PATH
13055
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13056
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13057
# the default ld.so.conf also contains /usr/contrib/lib and
13058
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13059
# libtool to hard-code these into programs
13062
cygwin* | mingw* | pw32*)
13063
version_type=windows
13068
case $GCC,$host_os in
13069
yes,cygwin* | yes,mingw* | yes,pw32*)
13070
library_names_spec='$libname.dll.a'
13071
# DLL is installed to $(libdir)/../bin by postinstall_cmds
13072
postinstall_cmds='base_file=`basename \${file}`~
13073
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13074
dldir=$destdir/`dirname \$dlpath`~
13075
test -d \$dldir || mkdir -p \$dldir~
13076
$install_prog $dir/$dlname \$dldir/$dlname~
13077
chmod a+x \$dldir/$dlname'
13078
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13079
dlpath=$dir/\$dldll~
13081
shlibpath_overrides_runpath=yes
13085
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
13086
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13087
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13090
# MinGW DLLs use traditional 'lib' prefix
13091
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13092
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13093
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13094
# It is most probably a Windows format PATH printed by
13095
# mingw gcc, but we are running on Cygwin. Gcc prints its search
13096
# path with ; separators, and with drive letters. We can handle the
13097
# drive letters (cygwin fileutils understands them), so leave them,
13098
# especially as we might pass files found there to a mingw objdump,
13099
# which wouldn't understand a cygwinified path. Ahh.
13100
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13102
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13106
# pw32 DLLs use 'pw' prefix rather than 'lib'
13107
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13113
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13116
dynamic_linker='Win32 ld.exe'
13117
# FIXME: first we should search . and the directory the executable is in
13121
darwin* | rhapsody*)
13122
dynamic_linker="$host_os dyld"
13123
version_type=darwin
13126
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13127
soname_spec='${libname}${release}${major}$shared_ext'
13128
shlibpath_overrides_runpath=yes
13129
shlibpath_var=DYLD_LIBRARY_PATH
13130
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13132
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13139
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13140
soname_spec='${libname}${release}${shared_ext}$major'
13141
shlibpath_var=LD_LIBRARY_PATH
13148
freebsd* | dragonfly*)
13149
# DragonFly does not have aout. When/if they implement a new
13150
# versioning mechanism, adjust this.
13151
if test -x /usr/bin/objformat; then
13152
objformat=`/usr/bin/objformat`
13155
freebsd[123]*) objformat=aout ;;
13156
*) objformat=elf ;;
13159
version_type=freebsd-$objformat
13160
case $version_type in
13162
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13167
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13171
shlibpath_var=LD_LIBRARY_PATH
13174
shlibpath_overrides_runpath=yes
13176
freebsd3.[01]* | freebsdelf3.[01]*)
13177
shlibpath_overrides_runpath=yes
13178
hardcode_into_libs=yes
13180
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13181
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13182
shlibpath_overrides_runpath=no
13183
hardcode_into_libs=yes
13185
*) # from 4.6 on, and DragonFly
13186
shlibpath_overrides_runpath=yes
13187
hardcode_into_libs=yes
13196
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13197
soname_spec='${libname}${release}${shared_ext}$major'
13198
shlibpath_var=LD_LIBRARY_PATH
13199
hardcode_into_libs=yes
13202
hpux9* | hpux10* | hpux11*)
13203
# Give a soname corresponding to the major version so that dld.sl refuses to
13204
# link against other versions.
13211
hardcode_into_libs=yes
13212
dynamic_linker="$host_os dld.so"
13213
shlibpath_var=LD_LIBRARY_PATH
13214
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13215
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13216
soname_spec='${libname}${release}${shared_ext}$major'
13217
if test "X$HPUX_IA64_MODE" = X32; then
13218
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13220
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13222
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13226
hardcode_into_libs=yes
13227
dynamic_linker="$host_os dld.sl"
13228
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13229
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13230
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13231
soname_spec='${libname}${release}${shared_ext}$major'
13232
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13233
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13237
dynamic_linker="$host_os dld.sl"
13238
shlibpath_var=SHLIB_PATH
13239
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13240
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13241
soname_spec='${libname}${release}${shared_ext}$major'
13244
# HP-UX runs *really* slowly unless shared libraries are mode 555.
13245
postinstall_cmds='chmod 555 $lib'
13252
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13253
soname_spec='${libname}${release}${shared_ext}$major'
13254
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13255
shlibpath_var=LD_LIBRARY_PATH
13256
shlibpath_overrides_runpath=no
13257
hardcode_into_libs=yes
13260
irix5* | irix6* | nonstopux*)
13262
nonstopux*) version_type=nonstopux ;;
13264
if test "$lt_cv_prog_gnu_ld" = yes; then
13272
soname_spec='${libname}${release}${shared_ext}$major'
13273
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13275
irix5* | nonstopux*)
13276
libsuff= shlibsuff=
13279
case $LD in # libtool.m4 will add one of these switches to LD
13280
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13281
libsuff= shlibsuff= libmagic=32-bit;;
13282
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13283
libsuff=32 shlibsuff=N32 libmagic=N32;;
13284
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13285
libsuff=64 shlibsuff=64 libmagic=64-bit;;
13286
*) libsuff= shlibsuff= libmagic=never-match;;
13290
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13291
shlibpath_overrides_runpath=no
13292
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13293
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13294
hardcode_into_libs=yes
13297
# No shared lib support for Linux oldld, aout, or coff.
13298
linux*oldld* | linux*aout* | linux*coff*)
13302
# This must be Linux ELF.
13303
linux* | k*bsd*-gnu)
13307
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13308
soname_spec='${libname}${release}${shared_ext}$major'
13309
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13310
shlibpath_var=LD_LIBRARY_PATH
13311
shlibpath_overrides_runpath=no
13312
# This implies no fast_install, which is unacceptable.
13313
# Some rework will be needed to allow for fast_install
13314
# before this can be enabled.
13315
hardcode_into_libs=yes
13317
# Append ld.so.conf contents to the search path
13318
if test -f /etc/ld.so.conf; then
13319
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' ' '`
13320
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13323
# We used to test for /lib/ld.so.1 and disable shared libraries on
13324
# powerpc, because MkLinux only supported shared libraries with the
13325
# GNU dynamic linker. Since this was broken with cross compilers,
13326
# most powerpc-linux boxes support dynamic linking these days and
13327
# people can always --disable-shared, the test was removed, and we
13328
# assume the GNU/Linux dynamic linker is in use.
13329
dynamic_linker='GNU/Linux ld.so'
13336
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13337
soname_spec='${libname}${release}${shared_ext}$major'
13338
shlibpath_var=LD_LIBRARY_PATH
13339
shlibpath_overrides_runpath=no
13340
hardcode_into_libs=yes
13341
dynamic_linker='NetBSD ld.elf_so'
13348
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13349
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13350
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13351
dynamic_linker='NetBSD (a.out) ld.so'
13353
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13354
soname_spec='${libname}${release}${shared_ext}$major'
13355
dynamic_linker='NetBSD ld.elf_so'
13357
shlibpath_var=LD_LIBRARY_PATH
13358
shlibpath_overrides_runpath=yes
13359
hardcode_into_libs=yes
13364
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13365
shlibpath_var=LD_LIBRARY_PATH
13366
shlibpath_overrides_runpath=yes
13373
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13374
soname_spec='${libname}${release}${shared_ext}$major'
13375
shlibpath_var=LD_LIBRARY_PATH
13376
shlibpath_overrides_runpath=yes
13381
sys_lib_dlsearch_path_spec="/usr/lib"
13383
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13385
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13386
*) need_version=no ;;
13388
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13389
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13390
shlibpath_var=LD_LIBRARY_PATH
13391
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13393
openbsd2.[89] | openbsd2.[89].*)
13394
shlibpath_overrides_runpath=no
13397
shlibpath_overrides_runpath=yes
13401
shlibpath_overrides_runpath=yes
13406
libname_spec='$name'
13409
library_names_spec='$libname${shared_ext} $libname.a'
13410
dynamic_linker='OS/2 ld.exe'
13411
shlibpath_var=LIBPATH
13414
osf3* | osf4* | osf5*)
13418
soname_spec='${libname}${release}${shared_ext}$major'
13419
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13420
shlibpath_var=LD_LIBRARY_PATH
13421
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13422
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13433
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13434
soname_spec='${libname}${release}${shared_ext}$major'
13435
shlibpath_var=LD_LIBRARY_PATH
13436
shlibpath_overrides_runpath=yes
13437
hardcode_into_libs=yes
13438
# ldd complains unless libraries are executable
13439
postinstall_cmds='chmod +x $lib'
13444
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13445
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13446
shlibpath_var=LD_LIBRARY_PATH
13447
shlibpath_overrides_runpath=yes
13448
if test "$with_gnu_ld" = yes; then
13456
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13457
soname_spec='${libname}${release}${shared_ext}$major'
13458
shlibpath_var=LD_LIBRARY_PATH
13459
case $host_vendor in
13461
shlibpath_overrides_runpath=no
13463
export_dynamic_flag_spec='${wl}-Blargedynsym'
13464
runpath_var=LD_RUN_PATH
13472
shlibpath_overrides_runpath=no
13473
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13479
if test -d /usr/nec ;then
13481
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13482
soname_spec='$libname${shared_ext}.$major'
13483
shlibpath_var=LD_LIBRARY_PATH
13487
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13488
version_type=freebsd-elf
13491
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13492
soname_spec='${libname}${release}${shared_ext}$major'
13493
shlibpath_var=LD_LIBRARY_PATH
13494
hardcode_into_libs=yes
13495
if test "$with_gnu_ld" = yes; then
13496
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13497
shlibpath_overrides_runpath=no
13499
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13500
shlibpath_overrides_runpath=yes
13503
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13507
sys_lib_dlsearch_path_spec='/usr/lib'
13512
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13513
soname_spec='${libname}${release}${shared_ext}$major'
13514
shlibpath_var=LD_LIBRARY_PATH
13521
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13522
echo "${ECHO_T}$dynamic_linker" >&6; }
13523
test "$dynamic_linker" = no && can_build_shared=no
13525
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13526
echo $ECHO_N "(cached) $ECHO_C" >&6
13528
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13531
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13532
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13533
echo $ECHO_N "(cached) $ECHO_C" >&6
13535
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13538
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13540
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13541
if test "$GCC" = yes; then
13542
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13545
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13546
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13547
hardcode_action_CXX=
13548
if test -n "$hardcode_libdir_flag_spec_CXX" || \
13549
test -n "$runpath_var_CXX" || \
13550
test "X$hardcode_automatic_CXX" = "Xyes" ; then
13552
# We can hardcode non-existant directories.
13553
if test "$hardcode_direct_CXX" != no &&
13554
# If the only mechanism to avoid hardcoding is shlibpath_var, we
13555
# have to relink, otherwise we might link with an installed library
13556
# when we should be linking with a yet-to-be-installed one
13557
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13558
test "$hardcode_minus_L_CXX" != no; then
13559
# Linking always hardcodes the temporary library directory.
13560
hardcode_action_CXX=relink
13562
# We can link without hardcoding, and we can hardcode nonexisting dirs.
13563
hardcode_action_CXX=immediate
13566
# We cannot hardcode anything, or else we can only hardcode existing
13568
hardcode_action_CXX=unsupported
13570
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13571
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13573
if test "$hardcode_action_CXX" = relink; then
13574
# Fast installation is not supported
13575
enable_fast_install=no
13576
elif test "$shlibpath_overrides_runpath" = yes ||
13577
test "$enable_shared" = no; then
13578
# Fast installation is not necessary
13579
enable_fast_install=needless
13583
# The else clause should only fire when bootstrapping the
13584
# libtool distribution, otherwise you forgot to ship ltmain.sh
13585
# with your package, and you will get complaints that there are
13586
# no rules to generate ltmain.sh.
13587
if test -f "$ltmain"; then
13588
# See if we are running on zsh, and set the options which allow our commands through
13589
# without removal of \ escapes.
13590
if test -n "${ZSH_VERSION+set}" ; then
13591
setopt NO_GLOB_SUBST
13593
# Now quote all the things that may contain metacharacters while being
13594
# careful not to overquote the AC_SUBSTed values. We take copies of the
13595
# variables and quote the copies for generation of the libtool script.
13596
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13598
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13599
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13600
deplibs_check_method reload_flag reload_cmds need_locks \
13601
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13602
lt_cv_sys_global_symbol_to_c_name_address \
13603
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13604
old_postinstall_cmds old_postuninstall_cmds \
13608
lt_prog_compiler_wl_CXX \
13609
lt_prog_compiler_pic_CXX \
13610
lt_prog_compiler_static_CXX \
13611
lt_prog_compiler_no_builtin_flag_CXX \
13612
export_dynamic_flag_spec_CXX \
13613
thread_safe_flag_spec_CXX \
13614
whole_archive_flag_spec_CXX \
13615
enable_shared_with_static_runtimes_CXX \
13616
old_archive_cmds_CXX \
13617
old_archive_from_new_cmds_CXX \
13618
predep_objects_CXX \
13619
postdep_objects_CXX \
13622
compiler_lib_search_path_CXX \
13623
compiler_lib_search_dirs_CXX \
13625
archive_expsym_cmds_CXX \
13626
postinstall_cmds_CXX \
13627
postuninstall_cmds_CXX \
13628
old_archive_from_expsyms_cmds_CXX \
13629
allow_undefined_flag_CXX \
13630
no_undefined_flag_CXX \
13631
export_symbols_cmds_CXX \
13632
hardcode_libdir_flag_spec_CXX \
13633
hardcode_libdir_flag_spec_ld_CXX \
13634
hardcode_libdir_separator_CXX \
13635
hardcode_automatic_CXX \
13637
module_expsym_cmds_CXX \
13638
lt_cv_prog_compiler_c_o_CXX \
13639
fix_srcfile_path_CXX \
13640
exclude_expsyms_CXX \
13641
include_expsyms_CXX; do
13644
old_archive_cmds_CXX | \
13645
old_archive_from_new_cmds_CXX | \
13646
archive_cmds_CXX | \
13647
archive_expsym_cmds_CXX | \
13648
module_cmds_CXX | \
13649
module_expsym_cmds_CXX | \
13650
old_archive_from_expsyms_cmds_CXX | \
13651
export_symbols_cmds_CXX | \
13652
extract_expsyms_cmds | reload_cmds | finish_cmds | \
13653
postinstall_cmds | postuninstall_cmds | \
13654
old_postinstall_cmds | old_postuninstall_cmds | \
13655
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13656
# Double-quote double-evaled strings.
13657
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13660
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13666
*'\$0 --fallback-echo"')
13667
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13673
cat <<__EOF__ >> "$cfgfile"
13674
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13676
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13678
# Shell to use when invoking shell scripts.
13681
# Whether or not to build shared libraries.
13682
build_libtool_libs=$enable_shared
13684
# Whether or not to build static libraries.
13685
build_old_libs=$enable_static
13687
# Whether or not to add -lc for building shared libraries.
13688
build_libtool_need_lc=$archive_cmds_need_lc_CXX
13690
# Whether or not to disallow shared libs when runtime libs are static
13691
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13693
# Whether or not to optimize for fast installation.
13694
fast_install=$enable_fast_install
13697
host_alias=$host_alias
13701
# The build system.
13702
build_alias=$build_alias
13706
# An echo program that does not interpret backslashes.
13711
AR_FLAGS=$lt_AR_FLAGS
13716
# LTCC compiler flags.
13717
LTCFLAGS=$lt_LTCFLAGS
13719
# A language-specific compiler.
13720
CC=$lt_compiler_CXX
13722
# Is the compiler the GNU C compiler?
13728
# The linker used to build libraries.
13731
# Whether we need hard or soft links.
13734
# A BSD-compatible nm program.
13737
# A symbol stripping program
13740
# Used to examine libraries when file_magic_cmd begins "file"
13741
MAGIC_CMD=$MAGIC_CMD
13743
# Used on cygwin: DLL creation program.
13746
# Used on cygwin: object dumper.
13749
# Used on cygwin: assembler.
13752
# The name of the directory that contains temporary libtool files.
13755
# How to create reloadable object files.
13756
reload_flag=$lt_reload_flag
13757
reload_cmds=$lt_reload_cmds
13759
# How to pass a linker flag through the compiler.
13760
wl=$lt_lt_prog_compiler_wl_CXX
13762
# Object file suffix (normally "o").
13763
objext="$ac_objext"
13765
# Old archive suffix (normally "a").
13768
# Shared library suffix (normally ".so").
13769
shrext_cmds='$shrext_cmds'
13771
# Executable file suffix (normally "").
13774
# Additional compiler flags for building library objects.
13775
pic_flag=$lt_lt_prog_compiler_pic_CXX
13778
# What is the maximum length of a command?
13779
max_cmd_len=$lt_cv_sys_max_cmd_len
13781
# Does compiler simultaneously support -c and -o options?
13782
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13784
# Must we lock files when doing compilation?
13785
need_locks=$lt_need_locks
13787
# Do we need the lib prefix for modules?
13788
need_lib_prefix=$need_lib_prefix
13790
# Do we need a version for libraries?
13791
need_version=$need_version
13793
# Whether dlopen is supported.
13794
dlopen_support=$enable_dlopen
13796
# Whether dlopen of programs is supported.
13797
dlopen_self=$enable_dlopen_self
13799
# Whether dlopen of statically linked programs is supported.
13800
dlopen_self_static=$enable_dlopen_self_static
13802
# Compiler flag to prevent dynamic linking.
13803
link_static_flag=$lt_lt_prog_compiler_static_CXX
13805
# Compiler flag to turn off builtin functions.
13806
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13808
# Compiler flag to allow reflexive dlopens.
13809
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13811
# Compiler flag to generate shared objects directly from archives.
13812
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13814
# Compiler flag to generate thread-safe objects.
13815
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13817
# Library versioning type.
13818
version_type=$version_type
13820
# Format of library name prefix.
13821
libname_spec=$lt_libname_spec
13823
# List of archive names. First name is the real one, the rest are links.
13824
# The last name is the one that the linker finds with -lNAME.
13825
library_names_spec=$lt_library_names_spec
13827
# The coded name of the library, if different from the real name.
13828
soname_spec=$lt_soname_spec
13830
# Commands used to build and install an old-style archive.
13832
old_archive_cmds=$lt_old_archive_cmds_CXX
13833
old_postinstall_cmds=$lt_old_postinstall_cmds
13834
old_postuninstall_cmds=$lt_old_postuninstall_cmds
13836
# Create an old-style archive from a shared archive.
13837
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13839
# Create a temporary old-style archive to link instead of a shared archive.
13840
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13842
# Commands used to build and install a shared archive.
13843
archive_cmds=$lt_archive_cmds_CXX
13844
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13845
postinstall_cmds=$lt_postinstall_cmds
13846
postuninstall_cmds=$lt_postuninstall_cmds
13848
# Commands used to build a loadable module (assumed same as above if empty)
13849
module_cmds=$lt_module_cmds_CXX
13850
module_expsym_cmds=$lt_module_expsym_cmds_CXX
13852
# Commands to strip libraries.
13853
old_striplib=$lt_old_striplib
13854
striplib=$lt_striplib
13856
# Dependencies to place before the objects being linked to create a
13858
predep_objects=$lt_predep_objects_CXX
13860
# Dependencies to place after the objects being linked to create a
13862
postdep_objects=$lt_postdep_objects_CXX
13864
# Dependencies to place before the objects being linked to create a
13866
predeps=$lt_predeps_CXX
13868
# Dependencies to place after the objects being linked to create a
13870
postdeps=$lt_postdeps_CXX
13872
# The directories searched by this compiler when creating a shared
13874
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13876
# The library search path used internally by the compiler when linking
13877
# a shared library.
13878
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13880
# Method to check whether dependent libraries are shared objects.
13881
deplibs_check_method=$lt_deplibs_check_method
13883
# Command to use when deplibs_check_method == file_magic.
13884
file_magic_cmd=$lt_file_magic_cmd
13886
# Flag that allows shared libraries with undefined symbols to be built.
13887
allow_undefined_flag=$lt_allow_undefined_flag_CXX
13889
# Flag that forces no undefined symbols.
13890
no_undefined_flag=$lt_no_undefined_flag_CXX
13892
# Commands used to finish a libtool library installation in a directory.
13893
finish_cmds=$lt_finish_cmds
13895
# Same as above, but a single script fragment to be evaled but not shown.
13896
finish_eval=$lt_finish_eval
13898
# Take the output of nm and produce a listing of raw symbols and C names.
13899
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13901
# Transform the output of nm in a proper C declaration
13902
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13904
# Transform the output of nm in a C name address pair
13905
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13907
# This is the shared library runtime path variable.
13908
runpath_var=$runpath_var
13910
# This is the shared library path variable.
13911
shlibpath_var=$shlibpath_var
13913
# Is shlibpath searched before the hard-coded library search path?
13914
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13916
# How to hardcode a shared library path into an executable.
13917
hardcode_action=$hardcode_action_CXX
13919
# Whether we should hardcode library paths into libraries.
13920
hardcode_into_libs=$hardcode_into_libs
13922
# Flag to hardcode \$libdir into a binary during linking.
13923
# This must work even if \$libdir does not exist.
13924
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13926
# If ld is used when linking, flag to hardcode \$libdir into
13927
# a binary during linking. This must work even if \$libdir does
13929
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13931
# Whether we need a single -rpath flag with a separated argument.
13932
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13934
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13935
# resulting binary.
13936
hardcode_direct=$hardcode_direct_CXX
13938
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13939
# resulting binary.
13940
hardcode_minus_L=$hardcode_minus_L_CXX
13942
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13943
# the resulting binary.
13944
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13946
# Set to yes if building a shared library automatically hardcodes DIR into the library
13947
# and all subsequent libraries and executables linked against it.
13948
hardcode_automatic=$hardcode_automatic_CXX
13950
# Variables whose values should be saved in libtool wrapper scripts and
13951
# restored at relink time.
13952
variables_saved_for_relink="$variables_saved_for_relink"
13954
# Whether libtool must link a program against all its dependency libraries.
13955
link_all_deplibs=$link_all_deplibs_CXX
13957
# Compile-time system search path for libraries
13958
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13960
# Run-time system search path for libraries
13961
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13963
# Fix the shell variable \$srcfile for the compiler.
13964
fix_srcfile_path=$lt_fix_srcfile_path
13966
# Set to yes if exported symbols are required.
13967
always_export_symbols=$always_export_symbols_CXX
13969
# The commands to list exported symbols.
13970
export_symbols_cmds=$lt_export_symbols_cmds_CXX
13972
# The commands to extract the exported symbol list from a shared archive.
13973
extract_expsyms_cmds=$lt_extract_expsyms_cmds
13975
# Symbols that should not be listed in the preloaded symbols.
13976
exclude_expsyms=$lt_exclude_expsyms_CXX
13978
# Symbols that must always be exported.
13979
include_expsyms=$lt_include_expsyms_CXX
13981
# ### END LIBTOOL TAG CONFIG: $tagname
13987
# If there is no Makefile yet, we rely on a make rule to execute
13988
# `config.status --recheck' to rerun these tests and create the
13989
# libtool script then.
13990
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13991
if test -f "$ltmain_in"; then
13992
test -f Makefile && make "$ltmain"
13998
ac_cpp='$CPP $CPPFLAGS'
13999
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14000
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14001
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14007
with_gnu_ldcxx=$with_gnu_ld
14008
with_gnu_ld=$lt_save_with_gnu_ld
14009
lt_cv_path_LDCXX=$lt_cv_path_LD
14010
lt_cv_path_LD=$lt_save_path_LD
14011
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14012
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14020
if test -n "$F77" && test "X$F77" != "Xno"; then
14023
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14024
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14025
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14028
archive_cmds_need_lc_F77=no
14029
allow_undefined_flag_F77=
14030
always_export_symbols_F77=no
14031
archive_expsym_cmds_F77=
14032
export_dynamic_flag_spec_F77=
14033
hardcode_direct_F77=no
14034
hardcode_libdir_flag_spec_F77=
14035
hardcode_libdir_flag_spec_ld_F77=
14036
hardcode_libdir_separator_F77=
14037
hardcode_minus_L_F77=no
14038
hardcode_automatic_F77=no
14040
module_expsym_cmds_F77=
14041
link_all_deplibs_F77=unknown
14042
old_archive_cmds_F77=$old_archive_cmds
14043
no_undefined_flag_F77=
14044
whole_archive_flag_spec_F77=
14045
enable_shared_with_static_runtimes_F77=no
14047
# Source file extension for f77 test sources.
14050
# Object file extension for compiled f77 test sources.
14054
# Code to be used in simple compile tests
14055
lt_simple_compile_test_code="\
14061
# Code to be used in simple link tests
14062
lt_simple_link_test_code="\
14067
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14069
# If no C compiler was specified, use CC.
14072
# If no C compiler flags were specified, use CFLAGS.
14073
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14075
# Allow CC to be a program name with arguments.
14079
# save warnings/boilerplate of simple test code
14080
ac_outfile=conftest.$ac_objext
14081
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14082
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14083
_lt_compiler_boilerplate=`cat conftest.err`
14086
ac_outfile=conftest.$ac_objext
14087
echo "$lt_simple_link_test_code" >conftest.$ac_ext
14088
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14089
_lt_linker_boilerplate=`cat conftest.err`
14093
# Allow CC to be a program name with arguments.
14098
for cc_temp in $compiler""; do
14100
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14101
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14106
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14109
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14110
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14111
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14112
echo "${ECHO_T}$can_build_shared" >&6; }
14114
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14115
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14116
test "$can_build_shared" = "no" && enable_shared=no
14118
# On AIX, shared libraries and static libraries use the same namespace, and
14119
# are all built from PIC.
14122
test "$enable_shared" = yes && enable_static=no
14123
if test -n "$RANLIB"; then
14124
archive_cmds="$archive_cmds~\$RANLIB \$lib"
14125
postinstall_cmds='$RANLIB $lib'
14129
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14130
test "$enable_shared" = yes && enable_static=no
14134
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14135
echo "${ECHO_T}$enable_shared" >&6; }
14137
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14138
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14139
# Make sure either enable_shared or enable_static is yes.
14140
test "$enable_shared" = yes || enable_static=yes
14141
{ echo "$as_me:$LINENO: result: $enable_static" >&5
14142
echo "${ECHO_T}$enable_static" >&6; }
14147
lt_prog_compiler_wl_F77=
14148
lt_prog_compiler_pic_F77=
14149
lt_prog_compiler_static_F77=
14151
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14152
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14154
if test "$GCC" = yes; then
14155
lt_prog_compiler_wl_F77='-Wl,'
14156
lt_prog_compiler_static_F77='-static'
14160
# All AIX code is PIC.
14161
if test "$host_cpu" = ia64; then
14162
# AIX 5 now supports IA64 processor
14163
lt_prog_compiler_static_F77='-Bstatic'
14168
# FIXME: we need at least 68020 code to build shared libraries, but
14169
# adding the `-m68020' flag to GCC prevents building anything better,
14171
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14174
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14175
# PIC is the default for these OSes.
14178
mingw* | cygwin* | pw32* | os2*)
14179
# This hack is so that the source file can tell whether it is being
14180
# built for inclusion in a dll (and should export symbols for example).
14181
# Although the cygwin gcc ignores -fPIC, still need this for old-style
14182
# (--disable-auto-import) libraries
14183
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14186
darwin* | rhapsody*)
14187
# PIC is the default on this platform
14188
# Common symbols not allowed in MH_DYLIB files
14189
lt_prog_compiler_pic_F77='-fno-common'
14193
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
14194
# Instead, we relocate shared libraries at runtime.
14198
# Just because we use GCC doesn't mean we suddenly get shared libraries
14199
# on systems that don't support them.
14200
lt_prog_compiler_can_build_shared_F77=no
14205
if test -d /usr/nec; then
14206
lt_prog_compiler_pic_F77=-Kconform_pic
14211
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14212
# not for PA HP-UX.
14218
lt_prog_compiler_pic_F77='-fPIC'
14224
lt_prog_compiler_pic_F77='-fPIC'
14228
# PORTME Check for flag to pass linker flags through the system compiler.
14231
lt_prog_compiler_wl_F77='-Wl,'
14232
if test "$host_cpu" = ia64; then
14233
# AIX 5 now supports IA64 processor
14234
lt_prog_compiler_static_F77='-Bstatic'
14236
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14240
# PIC is the default on this platform
14241
# Common symbols not allowed in MH_DYLIB files
14242
case $cc_basename in
14244
lt_prog_compiler_pic_F77='-qnocommon'
14245
lt_prog_compiler_wl_F77='-Wl,'
14250
mingw* | cygwin* | pw32* | os2*)
14251
# This hack is so that the source file can tell whether it is being
14252
# built for inclusion in a dll (and should export symbols for example).
14253
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14256
hpux9* | hpux10* | hpux11*)
14257
lt_prog_compiler_wl_F77='-Wl,'
14258
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14259
# not for PA HP-UX.
14265
lt_prog_compiler_pic_F77='+Z'
14268
# Is there a better lt_prog_compiler_static that works with the bundled CC?
14269
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14272
irix5* | irix6* | nonstopux*)
14273
lt_prog_compiler_wl_F77='-Wl,'
14274
# PIC (with -KPIC) is the default.
14275
lt_prog_compiler_static_F77='-non_shared'
14279
lt_prog_compiler_pic_F77='-KPIC'
14280
lt_prog_compiler_static_F77='-Bstatic'
14283
linux* | k*bsd*-gnu)
14284
case $cc_basename in
14286
lt_prog_compiler_wl_F77='-Wl,'
14287
lt_prog_compiler_pic_F77='-KPIC'
14288
lt_prog_compiler_static_F77='-static'
14290
pgcc* | pgf77* | pgf90* | pgf95*)
14291
# Portland Group compilers (*not* the Pentium gcc compiler,
14292
# which looks to be a dead project)
14293
lt_prog_compiler_wl_F77='-Wl,'
14294
lt_prog_compiler_pic_F77='-fpic'
14295
lt_prog_compiler_static_F77='-Bstatic'
14298
lt_prog_compiler_wl_F77='-Wl,'
14299
# All Alpha code is PIC.
14300
lt_prog_compiler_static_F77='-non_shared'
14303
case `$CC -V 2>&1 | sed 5q` in
14306
lt_prog_compiler_pic_F77='-KPIC'
14307
lt_prog_compiler_static_F77='-Bstatic'
14308
lt_prog_compiler_wl_F77='-Wl,'
14311
# Sun Fortran 8.3 passes all unrecognized flags to the linker
14312
lt_prog_compiler_pic_F77='-KPIC'
14313
lt_prog_compiler_static_F77='-Bstatic'
14314
lt_prog_compiler_wl_F77=''
14321
osf3* | osf4* | osf5*)
14322
lt_prog_compiler_wl_F77='-Wl,'
14323
# All OSF/1 code is PIC.
14324
lt_prog_compiler_static_F77='-non_shared'
14328
lt_prog_compiler_static_F77='-non_shared'
14332
lt_prog_compiler_pic_F77='-KPIC'
14333
lt_prog_compiler_static_F77='-Bstatic'
14334
case $cc_basename in
14335
f77* | f90* | f95*)
14336
lt_prog_compiler_wl_F77='-Qoption ld ';;
14338
lt_prog_compiler_wl_F77='-Wl,';;
14343
lt_prog_compiler_wl_F77='-Qoption ld '
14344
lt_prog_compiler_pic_F77='-PIC'
14345
lt_prog_compiler_static_F77='-Bstatic'
14348
sysv4 | sysv4.2uw2* | sysv4.3*)
14349
lt_prog_compiler_wl_F77='-Wl,'
14350
lt_prog_compiler_pic_F77='-KPIC'
14351
lt_prog_compiler_static_F77='-Bstatic'
14355
if test -d /usr/nec ;then
14356
lt_prog_compiler_pic_F77='-Kconform_pic'
14357
lt_prog_compiler_static_F77='-Bstatic'
14361
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14362
lt_prog_compiler_wl_F77='-Wl,'
14363
lt_prog_compiler_pic_F77='-KPIC'
14364
lt_prog_compiler_static_F77='-Bstatic'
14368
lt_prog_compiler_wl_F77='-Wl,'
14369
lt_prog_compiler_can_build_shared_F77=no
14373
lt_prog_compiler_pic_F77='-pic'
14374
lt_prog_compiler_static_F77='-Bstatic'
14378
lt_prog_compiler_can_build_shared_F77=no
14383
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14384
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14387
# Check to make sure the PIC flag actually works.
14389
if test -n "$lt_prog_compiler_pic_F77"; then
14391
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14392
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14393
if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14394
echo $ECHO_N "(cached) $ECHO_C" >&6
14396
lt_cv_prog_compiler_pic_works_F77=no
14397
ac_outfile=conftest.$ac_objext
14398
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14399
lt_compiler_flag="$lt_prog_compiler_pic_F77"
14400
# Insert the option either (1) after the last *FLAGS variable, or
14401
# (2) before a word containing "conftest.", or (3) at the end.
14402
# Note that $ac_compile itself does not contain backslashes and begins
14403
# with a dollar sign (not a hyphen), so the echo should work correctly.
14404
# The option is referenced via a variable to avoid confusing sed.
14405
lt_compile=`echo "$ac_compile" | $SED \
14406
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14407
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14408
-e 's:$: $lt_compiler_flag:'`
14409
(eval echo "\"\$as_me:14409: $lt_compile\"" >&5)
14410
(eval "$lt_compile" 2>conftest.err)
14412
cat conftest.err >&5
14413
echo "$as_me:14413: \$? = $ac_status" >&5
14414
if (exit $ac_status) && test -s "$ac_outfile"; then
14415
# The compiler can only warn and ignore the option if not recognized
14416
# So say no if there are warnings other than the usual output.
14417
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14418
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14419
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14420
lt_cv_prog_compiler_pic_works_F77=yes
14426
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14427
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14429
if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14430
case $lt_prog_compiler_pic_F77 in
14432
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14435
lt_prog_compiler_pic_F77=
14436
lt_prog_compiler_can_build_shared_F77=no
14441
# For platforms which do not support PIC, -DPIC is meaningless:
14443
lt_prog_compiler_pic_F77=
14446
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14451
# Check to make sure the static flag actually works.
14453
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14454
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14455
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14456
if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14457
echo $ECHO_N "(cached) $ECHO_C" >&6
14459
lt_cv_prog_compiler_static_works_F77=no
14460
save_LDFLAGS="$LDFLAGS"
14461
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14462
echo "$lt_simple_link_test_code" > conftest.$ac_ext
14463
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14464
# The linker can only warn and ignore the option if not recognized
14465
# So say no if there are warnings
14466
if test -s conftest.err; then
14467
# Append any errors to the config.log.
14468
cat conftest.err 1>&5
14469
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14470
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14471
if diff conftest.exp conftest.er2 >/dev/null; then
14472
lt_cv_prog_compiler_static_works_F77=yes
14475
lt_cv_prog_compiler_static_works_F77=yes
14479
LDFLAGS="$save_LDFLAGS"
14482
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14483
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14485
if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14488
lt_prog_compiler_static_F77=
14492
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14493
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14494
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14495
echo $ECHO_N "(cached) $ECHO_C" >&6
14497
lt_cv_prog_compiler_c_o_F77=no
14498
$rm -r conftest 2>/dev/null
14502
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14504
lt_compiler_flag="-o out/conftest2.$ac_objext"
14505
# Insert the option either (1) after the last *FLAGS variable, or
14506
# (2) before a word containing "conftest.", or (3) at the end.
14507
# Note that $ac_compile itself does not contain backslashes and begins
14508
# with a dollar sign (not a hyphen), so the echo should work correctly.
14509
lt_compile=`echo "$ac_compile" | $SED \
14510
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14511
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14512
-e 's:$: $lt_compiler_flag:'`
14513
(eval echo "\"\$as_me:14513: $lt_compile\"" >&5)
14514
(eval "$lt_compile" 2>out/conftest.err)
14516
cat out/conftest.err >&5
14517
echo "$as_me:14517: \$? = $ac_status" >&5
14518
if (exit $ac_status) && test -s out/conftest2.$ac_objext
14520
# The compiler can only warn and ignore the option if not recognized
14521
# So say no if there are warnings
14522
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14523
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14524
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14525
lt_cv_prog_compiler_c_o_F77=yes
14530
# SGI C++ compiler will create directory out/ii_files/ for
14531
# template instantiation
14532
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14533
$rm out/* && rmdir out
14539
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14540
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14543
hard_links="nottested"
14544
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14545
# do not overwrite the value of need_locks provided by the user
14546
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14547
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14550
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14552
ln conftest.a conftest.b 2>&5 || hard_links=no
14553
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14554
{ echo "$as_me:$LINENO: result: $hard_links" >&5
14555
echo "${ECHO_T}$hard_links" >&6; }
14556
if test "$hard_links" = no; then
14557
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14558
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14565
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14566
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14569
allow_undefined_flag_F77=
14570
enable_shared_with_static_runtimes_F77=no
14572
archive_expsym_cmds_F77=
14573
old_archive_From_new_cmds_F77=
14574
old_archive_from_expsyms_cmds_F77=
14575
export_dynamic_flag_spec_F77=
14576
whole_archive_flag_spec_F77=
14577
thread_safe_flag_spec_F77=
14578
hardcode_libdir_flag_spec_F77=
14579
hardcode_libdir_flag_spec_ld_F77=
14580
hardcode_libdir_separator_F77=
14581
hardcode_direct_F77=no
14582
hardcode_minus_L_F77=no
14583
hardcode_shlibpath_var_F77=unsupported
14584
link_all_deplibs_F77=unknown
14585
hardcode_automatic_F77=no
14587
module_expsym_cmds_F77=
14588
always_export_symbols_F77=no
14589
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14590
# include_expsyms should be a list of space-separated symbols to be *always*
14591
# included in the symbol list
14592
include_expsyms_F77=
14593
# exclude_expsyms can be an extended regexp of symbols to exclude
14594
# it will be wrapped by ` (' and `)$', so one must not match beginning or
14595
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14596
# as well as any symbol that contains `d'.
14597
exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14598
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14599
# platforms (ab)use it in PIC code, but their linkers get confused if
14600
# the symbol is explicitly referenced. Since portable code cannot
14601
# rely on this symbol name, it's probably fine to never include it in
14602
# preloaded symbol tables.
14603
# Exclude shared library initialization/finalization symbols.
14604
extract_expsyms_cmds=
14605
# Just being paranoid about ensuring that cc_basename is set.
14606
for cc_temp in $compiler""; do
14608
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14609
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14614
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14617
cygwin* | mingw* | pw32*)
14618
# FIXME: the MSVC++ port hasn't been tested in a loooong time
14619
# When not using gcc, we currently assume that we are using
14620
# Microsoft Visual C++.
14621
if test "$GCC" != yes; then
14626
# we just hope/assume this is gcc and not c89 (= MSVC++)
14635
if test "$with_gnu_ld" = yes; then
14636
# If archive_cmds runs LD, not CC, wlarc should be empty
14639
# Set some defaults for GNU ld with shared library support. These
14640
# are reset later if shared libraries are not supported. Putting them
14641
# here allows them to be overridden if necessary.
14642
runpath_var=LD_RUN_PATH
14643
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14644
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14645
# ancient GNU ld didn't support --whole-archive et. al.
14646
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14647
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14649
whole_archive_flag_spec_F77=
14651
supports_anon_versioning=no
14652
case `$LD -v 2>/dev/null` in
14653
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14654
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14655
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14656
*\ 2.11.*) ;; # other 2.11 versions
14657
*) supports_anon_versioning=yes ;;
14660
# See if GNU ld supports shared libraries.
14663
# On AIX/PPC, the GNU linker is very broken
14664
if test "$host_cpu" != ia64; then
14668
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14669
*** to be unable to reliably create shared libraries on AIX.
14670
*** Therefore, libtool is disabling shared libraries support. If you
14671
*** really care for shared libraries, you may want to modify your PATH
14672
*** so that a non-GNU linker is found, and then restart.
14679
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)'
14680
hardcode_libdir_flag_spec_F77='-L$libdir'
14681
hardcode_minus_L_F77=yes
14683
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14684
# that the semantics of dynamic libraries on AmigaOS, at least up
14685
# to version 4, is to share data among multiple programs linked
14686
# with the same dynamic library. Since this doesn't match the
14687
# behavior of shared libraries on other platforms, we can't use
14693
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14694
allow_undefined_flag_F77=unsupported
14695
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14696
# support --undefined. This deserves some investigation. FIXME
14697
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14703
cygwin* | mingw* | pw32*)
14704
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14705
# as there is no search path for DLLs.
14706
hardcode_libdir_flag_spec_F77='-L$libdir'
14707
allow_undefined_flag_F77=unsupported
14708
always_export_symbols_F77=no
14709
enable_shared_with_static_runtimes_F77=yes
14710
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14712
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14713
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14714
# If the export-symbols file already is a .def file (1st line
14715
# is EXPORTS), use it as is; otherwise, prepend...
14716
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14717
cp $export_symbols $output_objdir/$soname.def;
14719
echo EXPORTS > $output_objdir/$soname.def;
14720
cat $export_symbols >> $output_objdir/$soname.def;
14722
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14729
hardcode_direct_F77=no
14730
hardcode_shlibpath_var_F77=no
14731
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14732
export_dynamic_flag_spec_F77='${wl}-E'
14733
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14734
# Instead, shared libraries are loaded at an image base (0x10000000 by
14735
# default) and relocated if they conflict, which is a slow very memory
14736
# consuming and fragmenting process. To avoid this, we pick a random,
14737
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14738
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
14739
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'
14740
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'
14743
gnu* | linux* | k*bsd*-gnu)
14744
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14746
case $cc_basename,$host_cpu in
14747
pgcc*) # Portland Group C compiler
14748
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'
14749
tmp_addflag=' $pic_flag'
14751
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14752
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'
14753
tmp_addflag=' $pic_flag -Mnomain' ;;
14754
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14755
tmp_addflag=' -i_dynamic' ;;
14756
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14757
tmp_addflag=' -i_dynamic -nofor_main' ;;
14758
ifc* | ifort*) # Intel Fortran compiler
14759
tmp_addflag=' -nofor_main' ;;
14761
case `$CC -V 2>&1 | sed 5q` in
14762
*Sun\ C*) # Sun C 5.9
14763
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'
14764
tmp_sharedflag='-G' ;;
14765
*Sun\ F*) # Sun Fortran 8.3
14766
tmp_sharedflag='-G' ;;
14768
tmp_sharedflag='-shared' ;;
14770
archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14772
if test $supports_anon_versioning = yes; then
14773
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14774
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14775
$echo "local: *; };" >> $output_objdir/$libname.ver~
14776
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14778
link_all_deplibs_F77=no
14784
netbsd* | netbsdelf*-gnu)
14785
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14786
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14789
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14790
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14795
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14799
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14800
*** create shared libraries on Solaris systems. Therefore, libtool
14801
*** is disabling shared libraries support. We urge you to upgrade GNU
14802
*** binutils to release 2.9.1 or newer. Another option is to modify
14803
*** your PATH or compiler configuration so that the native linker is
14804
*** used, and then restart.
14807
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14808
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14809
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14815
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14816
case `$LD -v 2>&1` in
14817
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14821
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14822
*** reliably create shared libraries on SCO systems. Therefore, libtool
14823
*** is disabling shared libraries support. We urge you to upgrade GNU
14824
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14825
*** your PATH or compiler configuration so that the native linker is
14826
*** used, and then restart.
14831
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14832
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14833
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14834
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14843
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14845
hardcode_direct_F77=yes
14846
hardcode_shlibpath_var_F77=no
14850
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14851
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14852
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14859
if test "$ld_shlibs_F77" = no; then
14861
hardcode_libdir_flag_spec_F77=
14862
export_dynamic_flag_spec_F77=
14863
whole_archive_flag_spec_F77=
14866
# PORTME fill in a description of your system's linker (not GNU ld)
14869
allow_undefined_flag_F77=unsupported
14870
always_export_symbols_F77=yes
14871
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'
14872
# Note: this linker hardcodes the directories in LIBPATH if there
14873
# are no directories specified by -L.
14874
hardcode_minus_L_F77=yes
14875
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14876
# Neither direct hardcoding nor static linking is supported with a
14878
hardcode_direct_F77=unsupported
14883
if test "$host_cpu" = ia64; then
14884
# On IA64, the linker does run time linking by default, so we don't
14885
# have to do anything special.
14886
aix_use_runtimelinking=no
14887
exp_sym_flag='-Bexport'
14890
# If we're using GNU nm, then we don't want the "-C" option.
14891
# -C means demangle to AIX nm, but means don't demangle with GNU nm
14892
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14893
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'
14895
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'
14897
aix_use_runtimelinking=no
14899
# Test if we are trying to use run time linking or normal
14900
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14901
# need to do runtime linking.
14902
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14903
for ld_flag in $LDFLAGS; do
14904
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14905
aix_use_runtimelinking=yes
14912
exp_sym_flag='-bexport'
14913
no_entry_flag='-bnoentry'
14916
# When large executables or shared objects are built, AIX ld can
14917
# have problems creating the table of contents. If linking a library
14918
# or program results in "error TOC overflow" add -mminimal-toc to
14919
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14920
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14922
archive_cmds_F77=''
14923
hardcode_direct_F77=yes
14924
hardcode_libdir_separator_F77=':'
14925
link_all_deplibs_F77=yes
14927
if test "$GCC" = yes; then
14928
case $host_os in aix4.[012]|aix4.[012].*)
14929
# We only want to do this on AIX 4.2 and lower, the check
14930
# below for broken collect2 doesn't work under 4.3+
14931
collect2name=`${CC} -print-prog-name=collect2`
14932
if test -f "$collect2name" && \
14933
strings "$collect2name" | grep resolve_lib_name >/dev/null
14935
# We have reworked collect2
14938
# We have old collect2
14939
hardcode_direct_F77=unsupported
14940
# It fails to find uninstalled libraries when the uninstalled
14941
# path is not listed in the libpath. Setting hardcode_minus_L
14942
# to unsupported forces relinking
14943
hardcode_minus_L_F77=yes
14944
hardcode_libdir_flag_spec_F77='-L$libdir'
14945
hardcode_libdir_separator_F77=
14949
shared_flag='-shared'
14950
if test "$aix_use_runtimelinking" = yes; then
14951
shared_flag="$shared_flag "'${wl}-G'
14955
if test "$host_cpu" = ia64; then
14956
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14957
# chokes on -Wl,-G. The following line is correct:
14960
if test "$aix_use_runtimelinking" = yes; then
14961
shared_flag='${wl}-G'
14963
shared_flag='${wl}-bM:SRE'
14968
# It seems that -bexpall does not export symbols beginning with
14969
# underscore (_), so it is better to generate a list of symbols to export.
14970
always_export_symbols_F77=yes
14971
if test "$aix_use_runtimelinking" = yes; then
14972
# Warning - without using the other runtime loading flags (-brtl),
14973
# -berok will link without error, but may produce a broken library.
14974
allow_undefined_flag_F77='-berok'
14975
# Determine the default libpath from the value encoded in an empty executable.
14976
cat >conftest.$ac_ext <<_ACEOF
14981
rm -f conftest.$ac_objext conftest$ac_exeext
14982
if { (ac_try="$ac_link"
14983
case "(($ac_try" in
14984
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14985
*) ac_try_echo=$ac_try;;
14987
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14988
(eval "$ac_link") 2>conftest.er1
14990
grep -v '^ *+' conftest.er1 >conftest.err
14992
cat conftest.err >&5
14993
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14994
(exit $ac_status); } && {
14995
test -z "$ac_f77_werror_flag" ||
14996
test ! -s conftest.err
14997
} && test -s conftest$ac_exeext &&
14998
$as_test_x conftest$ac_exeext; then
15000
lt_aix_libpath_sed='
15001
/Import File Strings/,/^$/ {
15007
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15008
# Check for a 64-bit object if we didn't find anything.
15009
if test -z "$aix_libpath"; then
15010
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15013
echo "$as_me: failed program was:" >&5
15014
sed 's/^/| /' conftest.$ac_ext >&5
15019
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15020
conftest$ac_exeext conftest.$ac_ext
15021
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15023
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15024
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"
15026
if test "$host_cpu" = ia64; then
15027
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15028
allow_undefined_flag_F77="-z nodefs"
15029
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"
15031
# Determine the default libpath from the value encoded in an empty executable.
15032
cat >conftest.$ac_ext <<_ACEOF
15037
rm -f conftest.$ac_objext conftest$ac_exeext
15038
if { (ac_try="$ac_link"
15039
case "(($ac_try" in
15040
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15041
*) ac_try_echo=$ac_try;;
15043
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15044
(eval "$ac_link") 2>conftest.er1
15046
grep -v '^ *+' conftest.er1 >conftest.err
15048
cat conftest.err >&5
15049
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15050
(exit $ac_status); } && {
15051
test -z "$ac_f77_werror_flag" ||
15052
test ! -s conftest.err
15053
} && test -s conftest$ac_exeext &&
15054
$as_test_x conftest$ac_exeext; then
15056
lt_aix_libpath_sed='
15057
/Import File Strings/,/^$/ {
15063
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15064
# Check for a 64-bit object if we didn't find anything.
15065
if test -z "$aix_libpath"; then
15066
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15069
echo "$as_me: failed program was:" >&5
15070
sed 's/^/| /' conftest.$ac_ext >&5
15075
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15076
conftest$ac_exeext conftest.$ac_ext
15077
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15079
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15080
# Warning - without using the other run time loading flags,
15081
# -berok will link without error, but may produce a broken library.
15082
no_undefined_flag_F77=' ${wl}-bernotok'
15083
allow_undefined_flag_F77=' ${wl}-berok'
15084
# Exported symbols can be pulled into shared objects from archives
15085
whole_archive_flag_spec_F77='$convenience'
15086
archive_cmds_need_lc_F77=yes
15087
# This is similar to how AIX traditionally builds its shared libraries.
15088
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'
15094
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)'
15095
hardcode_libdir_flag_spec_F77='-L$libdir'
15096
hardcode_minus_L_F77=yes
15097
# see comment about different semantics on the GNU ld section
15102
export_dynamic_flag_spec_F77=-rdynamic
15105
cygwin* | mingw* | pw32*)
15106
# When not using gcc, we currently assume that we are using
15107
# Microsoft Visual C++.
15108
# hardcode_libdir_flag_spec is actually meaningless, as there is
15109
# no search path for DLLs.
15110
hardcode_libdir_flag_spec_F77=' '
15111
allow_undefined_flag_F77=unsupported
15112
# Tell ltmain to make .lib files, not .a files.
15114
# Tell ltmain to make .dll files, not .so files.
15116
# FIXME: Setting linknames here is a bad hack.
15117
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15118
# The linker will automatically build a .lib file if we build a DLL.
15119
old_archive_From_new_cmds_F77='true'
15120
# FIXME: Should let the user specify the lib program.
15121
old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15122
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15123
enable_shared_with_static_runtimes_F77=yes
15126
darwin* | rhapsody*)
15128
rhapsody* | darwin1.[012])
15129
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15132
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15133
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15135
case ${MACOSX_DEPLOYMENT_TARGET} in
15137
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15140
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15146
archive_cmds_need_lc_F77=no
15147
hardcode_direct_F77=no
15148
hardcode_automatic_F77=yes
15149
hardcode_shlibpath_var_F77=unsupported
15150
whole_archive_flag_spec_F77=''
15151
link_all_deplibs_F77=yes
15152
if test "$GCC" = yes ; then
15153
output_verbose_link_cmd='echo'
15154
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}"
15155
module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15156
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}"
15157
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}"
15159
case $cc_basename in
15161
output_verbose_link_cmd='echo'
15162
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15163
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15164
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15165
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}'
15166
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}'
15176
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15177
hardcode_libdir_flag_spec_F77='-L$libdir'
15178
hardcode_shlibpath_var_F77=no
15185
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15186
# support. Future versions do this automatically, but an explicit c++rt0.o
15187
# does not break anything, and helps significantly (at the cost of a little
15190
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15191
hardcode_libdir_flag_spec_F77='-R$libdir'
15192
hardcode_direct_F77=yes
15193
hardcode_shlibpath_var_F77=no
15196
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
15198
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15199
hardcode_direct_F77=yes
15200
hardcode_minus_L_F77=yes
15201
hardcode_shlibpath_var_F77=no
15204
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15205
freebsd* | dragonfly*)
15206
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15207
hardcode_libdir_flag_spec_F77='-R$libdir'
15208
hardcode_direct_F77=yes
15209
hardcode_shlibpath_var_F77=no
15213
if test "$GCC" = yes; then
15214
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'
15216
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'
15218
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15219
hardcode_libdir_separator_F77=:
15220
hardcode_direct_F77=yes
15222
# hardcode_minus_L: Not really in the search PATH,
15223
# but as the default location of the library.
15224
hardcode_minus_L_F77=yes
15225
export_dynamic_flag_spec_F77='${wl}-E'
15229
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15230
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15232
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15234
if test "$with_gnu_ld" = no; then
15235
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15236
hardcode_libdir_separator_F77=:
15238
hardcode_direct_F77=yes
15239
export_dynamic_flag_spec_F77='${wl}-E'
15241
# hardcode_minus_L: Not really in the search PATH,
15242
# but as the default location of the library.
15243
hardcode_minus_L_F77=yes
15248
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15251
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15254
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15257
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15263
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15266
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15269
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15273
if test "$with_gnu_ld" = no; then
15274
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15275
hardcode_libdir_separator_F77=:
15279
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15280
hardcode_direct_F77=no
15281
hardcode_shlibpath_var_F77=no
15284
hardcode_direct_F77=yes
15285
export_dynamic_flag_spec_F77='${wl}-E'
15287
# hardcode_minus_L: Not really in the search PATH,
15288
# but as the default location of the library.
15289
hardcode_minus_L_F77=yes
15295
irix5* | irix6* | nonstopux*)
15296
if test "$GCC" = yes; then
15297
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'
15299
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'
15300
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15302
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15303
hardcode_libdir_separator_F77=:
15304
link_all_deplibs_F77=yes
15307
netbsd* | netbsdelf*-gnu)
15308
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15309
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15311
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15313
hardcode_libdir_flag_spec_F77='-R$libdir'
15314
hardcode_direct_F77=yes
15315
hardcode_shlibpath_var_F77=no
15319
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15320
hardcode_direct_F77=yes
15321
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15322
hardcode_libdir_separator_F77=:
15323
hardcode_shlibpath_var_F77=no
15327
if test -f /usr/libexec/ld.so; then
15328
hardcode_direct_F77=yes
15329
hardcode_shlibpath_var_F77=no
15330
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15331
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15332
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15333
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15334
export_dynamic_flag_spec_F77='${wl}-E'
15337
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15338
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15339
hardcode_libdir_flag_spec_F77='-R$libdir'
15342
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15343
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15353
hardcode_libdir_flag_spec_F77='-L$libdir'
15354
hardcode_minus_L_F77=yes
15355
allow_undefined_flag_F77=unsupported
15356
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'
15357
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15361
if test "$GCC" = yes; then
15362
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15363
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'
15365
allow_undefined_flag_F77=' -expect_unresolved \*'
15366
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'
15368
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15369
hardcode_libdir_separator_F77=:
15372
osf4* | osf5*) # as osf3* with the addition of -msym flag
15373
if test "$GCC" = yes; then
15374
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15375
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'
15376
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15378
allow_undefined_flag_F77=' -expect_unresolved \*'
15379
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'
15380
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~
15381
$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'
15383
# Both c and cxx compiler support -rpath directly
15384
hardcode_libdir_flag_spec_F77='-rpath $libdir'
15386
hardcode_libdir_separator_F77=:
15390
no_undefined_flag_F77=' -z text'
15391
if test "$GCC" = yes; then
15393
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15394
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15395
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15398
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15399
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15400
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15402
hardcode_libdir_flag_spec_F77='-R$libdir'
15403
hardcode_shlibpath_var_F77=no
15405
solaris2.[0-5] | solaris2.[0-5].*) ;;
15407
# The compiler driver will combine and reorder linker options,
15408
# but understands `-z linker_flag'. GCC discards it without `$wl',
15409
# but is careful enough not to reorder.
15410
# Supported since Solaris 2.6 (maybe 2.5.1?)
15411
if test "$GCC" = yes; then
15412
whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15414
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15418
link_all_deplibs_F77=yes
15422
if test "x$host_vendor" = xsequent; then
15423
# Use $CC to link under sequent, because it throws in some extra .o
15424
# files that make .init and .fini sections work.
15425
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15427
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15429
hardcode_libdir_flag_spec_F77='-L$libdir'
15430
hardcode_direct_F77=yes
15431
hardcode_minus_L_F77=yes
15432
hardcode_shlibpath_var_F77=no
15436
case $host_vendor in
15438
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15439
hardcode_direct_F77=yes # is this really true???
15442
## LD is ld it makes a PLAMLIB
15443
## CC just makes a GrossModule.
15444
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15445
reload_cmds_F77='$CC -r -o $output$reload_objs'
15446
hardcode_direct_F77=no
15449
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15450
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15453
runpath_var='LD_RUN_PATH'
15454
hardcode_shlibpath_var_F77=no
15458
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15459
hardcode_shlibpath_var_F77=no
15460
export_dynamic_flag_spec_F77='-Bexport'
15464
if test -d /usr/nec; then
15465
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15466
hardcode_shlibpath_var_F77=no
15467
runpath_var=LD_RUN_PATH
15468
hardcode_runpath_var=yes
15473
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15474
no_undefined_flag_F77='${wl}-z,text'
15475
archive_cmds_need_lc_F77=no
15476
hardcode_shlibpath_var_F77=no
15477
runpath_var='LD_RUN_PATH'
15479
if test "$GCC" = yes; then
15480
archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15481
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15483
archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15484
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15488
sysv5* | sco3.2v5* | sco5v6*)
15489
# Note: We can NOT use -z defs as we might desire, because we do not
15490
# link with -lc, and that would cause any symbols used from libc to
15491
# always be unresolved, which means just about no library would
15492
# ever link correctly. If we're not using GNU ld we use -z text
15493
# though, which does catch some bad symbols but isn't as heavy-handed
15495
no_undefined_flag_F77='${wl}-z,text'
15496
allow_undefined_flag_F77='${wl}-z,nodefs'
15497
archive_cmds_need_lc_F77=no
15498
hardcode_shlibpath_var_F77=no
15499
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15500
hardcode_libdir_separator_F77=':'
15501
link_all_deplibs_F77=yes
15502
export_dynamic_flag_spec_F77='${wl}-Bexport'
15503
runpath_var='LD_RUN_PATH'
15505
if test "$GCC" = yes; then
15506
archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15507
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15509
archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15510
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15515
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15516
hardcode_libdir_flag_spec_F77='-L$libdir'
15517
hardcode_shlibpath_var_F77=no
15526
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15527
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15528
test "$ld_shlibs_F77" = no && can_build_shared=no
15531
# Do we need to explicitly link libc?
15533
case "x$archive_cmds_need_lc_F77" in
15535
# Assume -lc should be added
15536
archive_cmds_need_lc_F77=yes
15538
if test "$enable_shared" = yes && test "$GCC" = yes; then
15539
case $archive_cmds_F77 in
15541
# FIXME: we may have to deal with multi-command sequences.
15544
# Test whether the compiler implicitly links with -lc since on some
15545
# systems, -lgcc has to come before -lc. If gcc already passes -lc
15546
# to ld, don't add -lc before -lgcc.
15547
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15548
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15550
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15552
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15553
(eval $ac_compile) 2>&5
15555
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556
(exit $ac_status); } 2>conftest.err; then
15559
libobjs=conftest.$ac_objext
15561
wl=$lt_prog_compiler_wl_F77
15562
pic_flag=$lt_prog_compiler_pic_F77
15568
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15569
allow_undefined_flag_F77=
15570
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15571
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15573
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15574
(exit $ac_status); }
15576
archive_cmds_need_lc_F77=no
15578
archive_cmds_need_lc_F77=yes
15580
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15582
cat conftest.err 1>&5
15585
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15586
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15593
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15594
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15595
library_names_spec=
15596
libname_spec='lib$name'
15600
postuninstall_cmds=
15604
shlibpath_overrides_runpath=unknown
15606
dynamic_linker="$host_os ld.so"
15607
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15609
need_lib_prefix=unknown
15610
hardcode_into_libs=no
15612
# when you set need_version to no, make sure it does not cause -set_version
15613
# flags to be left without arguments
15614
need_version=unknown
15619
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15620
shlibpath_var=LIBPATH
15622
# AIX 3 has no versioning support, so we append a major version to the name.
15623
soname_spec='${libname}${release}${shared_ext}$major'
15630
hardcode_into_libs=yes
15631
if test "$host_cpu" = ia64; then
15632
# AIX 5 supports IA64
15633
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15634
shlibpath_var=LD_LIBRARY_PATH
15636
# With GCC up to 2.95.x, collect2 would create an import file
15637
# for dependence libraries. The import file would start with
15638
# the line `#! .'. This would cause the generated library to
15639
# depend on `.', always an invalid library. This was fixed in
15640
# development snapshots of GCC prior to 3.0.
15642
aix4 | aix4.[01] | aix4.[01].*)
15643
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15645
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15648
can_build_shared=no
15652
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15653
# soname into executable. Probably we can add versioning support to
15654
# collect2, so additional links can be useful in future.
15655
if test "$aix_use_runtimelinking" = yes; then
15656
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
15657
# instead of lib<name>.a to let people know that these are not
15658
# typical AIX shared libraries.
15659
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15661
# We preserve .a as extension for shared libraries through AIX4.2
15662
# and later when we are not doing run time linking.
15663
library_names_spec='${libname}${release}.a $libname.a'
15664
soname_spec='${libname}${release}${shared_ext}$major'
15666
shlibpath_var=LIBPATH
15671
library_names_spec='$libname.ixlibrary $libname.a'
15672
# Create ${libname}_ixlibrary.a entries in /sys/libs.
15673
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'
15677
library_names_spec='${libname}${shared_ext}'
15678
dynamic_linker="$host_os ld.so"
15679
shlibpath_var=LIBRARY_PATH
15685
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15686
soname_spec='${libname}${release}${shared_ext}$major'
15687
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15688
shlibpath_var=LD_LIBRARY_PATH
15689
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15690
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15691
# the default ld.so.conf also contains /usr/contrib/lib and
15692
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15693
# libtool to hard-code these into programs
15696
cygwin* | mingw* | pw32*)
15697
version_type=windows
15702
case $GCC,$host_os in
15703
yes,cygwin* | yes,mingw* | yes,pw32*)
15704
library_names_spec='$libname.dll.a'
15705
# DLL is installed to $(libdir)/../bin by postinstall_cmds
15706
postinstall_cmds='base_file=`basename \${file}`~
15707
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15708
dldir=$destdir/`dirname \$dlpath`~
15709
test -d \$dldir || mkdir -p \$dldir~
15710
$install_prog $dir/$dlname \$dldir/$dlname~
15711
chmod a+x \$dldir/$dlname'
15712
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15713
dlpath=$dir/\$dldll~
15715
shlibpath_overrides_runpath=yes
15719
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
15720
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15721
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15724
# MinGW DLLs use traditional 'lib' prefix
15725
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15726
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15727
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15728
# It is most probably a Windows format PATH printed by
15729
# mingw gcc, but we are running on Cygwin. Gcc prints its search
15730
# path with ; separators, and with drive letters. We can handle the
15731
# drive letters (cygwin fileutils understands them), so leave them,
15732
# especially as we might pass files found there to a mingw objdump,
15733
# which wouldn't understand a cygwinified path. Ahh.
15734
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15736
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15740
# pw32 DLLs use 'pw' prefix rather than 'lib'
15741
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15747
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15750
dynamic_linker='Win32 ld.exe'
15751
# FIXME: first we should search . and the directory the executable is in
15755
darwin* | rhapsody*)
15756
dynamic_linker="$host_os dyld"
15757
version_type=darwin
15760
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15761
soname_spec='${libname}${release}${major}$shared_ext'
15762
shlibpath_overrides_runpath=yes
15763
shlibpath_var=DYLD_LIBRARY_PATH
15764
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15766
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15773
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15774
soname_spec='${libname}${release}${shared_ext}$major'
15775
shlibpath_var=LD_LIBRARY_PATH
15782
freebsd* | dragonfly*)
15783
# DragonFly does not have aout. When/if they implement a new
15784
# versioning mechanism, adjust this.
15785
if test -x /usr/bin/objformat; then
15786
objformat=`/usr/bin/objformat`
15789
freebsd[123]*) objformat=aout ;;
15790
*) objformat=elf ;;
15793
version_type=freebsd-$objformat
15794
case $version_type in
15796
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15801
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15805
shlibpath_var=LD_LIBRARY_PATH
15808
shlibpath_overrides_runpath=yes
15810
freebsd3.[01]* | freebsdelf3.[01]*)
15811
shlibpath_overrides_runpath=yes
15812
hardcode_into_libs=yes
15814
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15815
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15816
shlibpath_overrides_runpath=no
15817
hardcode_into_libs=yes
15819
*) # from 4.6 on, and DragonFly
15820
shlibpath_overrides_runpath=yes
15821
hardcode_into_libs=yes
15830
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15831
soname_spec='${libname}${release}${shared_ext}$major'
15832
shlibpath_var=LD_LIBRARY_PATH
15833
hardcode_into_libs=yes
15836
hpux9* | hpux10* | hpux11*)
15837
# Give a soname corresponding to the major version so that dld.sl refuses to
15838
# link against other versions.
15845
hardcode_into_libs=yes
15846
dynamic_linker="$host_os dld.so"
15847
shlibpath_var=LD_LIBRARY_PATH
15848
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15849
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15850
soname_spec='${libname}${release}${shared_ext}$major'
15851
if test "X$HPUX_IA64_MODE" = X32; then
15852
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15854
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15856
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15860
hardcode_into_libs=yes
15861
dynamic_linker="$host_os dld.sl"
15862
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15863
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15864
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15865
soname_spec='${libname}${release}${shared_ext}$major'
15866
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15867
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15871
dynamic_linker="$host_os dld.sl"
15872
shlibpath_var=SHLIB_PATH
15873
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15874
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15875
soname_spec='${libname}${release}${shared_ext}$major'
15878
# HP-UX runs *really* slowly unless shared libraries are mode 555.
15879
postinstall_cmds='chmod 555 $lib'
15886
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15887
soname_spec='${libname}${release}${shared_ext}$major'
15888
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15889
shlibpath_var=LD_LIBRARY_PATH
15890
shlibpath_overrides_runpath=no
15891
hardcode_into_libs=yes
15894
irix5* | irix6* | nonstopux*)
15896
nonstopux*) version_type=nonstopux ;;
15898
if test "$lt_cv_prog_gnu_ld" = yes; then
15906
soname_spec='${libname}${release}${shared_ext}$major'
15907
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15909
irix5* | nonstopux*)
15910
libsuff= shlibsuff=
15913
case $LD in # libtool.m4 will add one of these switches to LD
15914
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15915
libsuff= shlibsuff= libmagic=32-bit;;
15916
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15917
libsuff=32 shlibsuff=N32 libmagic=N32;;
15918
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15919
libsuff=64 shlibsuff=64 libmagic=64-bit;;
15920
*) libsuff= shlibsuff= libmagic=never-match;;
15924
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15925
shlibpath_overrides_runpath=no
15926
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15927
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15928
hardcode_into_libs=yes
15931
# No shared lib support for Linux oldld, aout, or coff.
15932
linux*oldld* | linux*aout* | linux*coff*)
15936
# This must be Linux ELF.
15937
linux* | k*bsd*-gnu)
15941
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15942
soname_spec='${libname}${release}${shared_ext}$major'
15943
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15944
shlibpath_var=LD_LIBRARY_PATH
15945
shlibpath_overrides_runpath=no
15946
# This implies no fast_install, which is unacceptable.
15947
# Some rework will be needed to allow for fast_install
15948
# before this can be enabled.
15949
hardcode_into_libs=yes
15951
# Append ld.so.conf contents to the search path
15952
if test -f /etc/ld.so.conf; then
15953
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' ' '`
15954
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15957
# We used to test for /lib/ld.so.1 and disable shared libraries on
15958
# powerpc, because MkLinux only supported shared libraries with the
15959
# GNU dynamic linker. Since this was broken with cross compilers,
15960
# most powerpc-linux boxes support dynamic linking these days and
15961
# people can always --disable-shared, the test was removed, and we
15962
# assume the GNU/Linux dynamic linker is in use.
15963
dynamic_linker='GNU/Linux ld.so'
15970
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15971
soname_spec='${libname}${release}${shared_ext}$major'
15972
shlibpath_var=LD_LIBRARY_PATH
15973
shlibpath_overrides_runpath=no
15974
hardcode_into_libs=yes
15975
dynamic_linker='NetBSD ld.elf_so'
15982
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15983
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15984
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15985
dynamic_linker='NetBSD (a.out) ld.so'
15987
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15988
soname_spec='${libname}${release}${shared_ext}$major'
15989
dynamic_linker='NetBSD ld.elf_so'
15991
shlibpath_var=LD_LIBRARY_PATH
15992
shlibpath_overrides_runpath=yes
15993
hardcode_into_libs=yes
15998
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15999
shlibpath_var=LD_LIBRARY_PATH
16000
shlibpath_overrides_runpath=yes
16007
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16008
soname_spec='${libname}${release}${shared_ext}$major'
16009
shlibpath_var=LD_LIBRARY_PATH
16010
shlibpath_overrides_runpath=yes
16015
sys_lib_dlsearch_path_spec="/usr/lib"
16017
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16019
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16020
*) need_version=no ;;
16022
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16023
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16024
shlibpath_var=LD_LIBRARY_PATH
16025
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16027
openbsd2.[89] | openbsd2.[89].*)
16028
shlibpath_overrides_runpath=no
16031
shlibpath_overrides_runpath=yes
16035
shlibpath_overrides_runpath=yes
16040
libname_spec='$name'
16043
library_names_spec='$libname${shared_ext} $libname.a'
16044
dynamic_linker='OS/2 ld.exe'
16045
shlibpath_var=LIBPATH
16048
osf3* | osf4* | osf5*)
16052
soname_spec='${libname}${release}${shared_ext}$major'
16053
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16054
shlibpath_var=LD_LIBRARY_PATH
16055
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16056
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16067
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16068
soname_spec='${libname}${release}${shared_ext}$major'
16069
shlibpath_var=LD_LIBRARY_PATH
16070
shlibpath_overrides_runpath=yes
16071
hardcode_into_libs=yes
16072
# ldd complains unless libraries are executable
16073
postinstall_cmds='chmod +x $lib'
16078
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16079
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16080
shlibpath_var=LD_LIBRARY_PATH
16081
shlibpath_overrides_runpath=yes
16082
if test "$with_gnu_ld" = yes; then
16090
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16091
soname_spec='${libname}${release}${shared_ext}$major'
16092
shlibpath_var=LD_LIBRARY_PATH
16093
case $host_vendor in
16095
shlibpath_overrides_runpath=no
16097
export_dynamic_flag_spec='${wl}-Blargedynsym'
16098
runpath_var=LD_RUN_PATH
16106
shlibpath_overrides_runpath=no
16107
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16113
if test -d /usr/nec ;then
16115
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16116
soname_spec='$libname${shared_ext}.$major'
16117
shlibpath_var=LD_LIBRARY_PATH
16121
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16122
version_type=freebsd-elf
16125
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16126
soname_spec='${libname}${release}${shared_ext}$major'
16127
shlibpath_var=LD_LIBRARY_PATH
16128
hardcode_into_libs=yes
16129
if test "$with_gnu_ld" = yes; then
16130
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16131
shlibpath_overrides_runpath=no
16133
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16134
shlibpath_overrides_runpath=yes
16137
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16141
sys_lib_dlsearch_path_spec='/usr/lib'
16146
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16147
soname_spec='${libname}${release}${shared_ext}$major'
16148
shlibpath_var=LD_LIBRARY_PATH
16155
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16156
echo "${ECHO_T}$dynamic_linker" >&6; }
16157
test "$dynamic_linker" = no && can_build_shared=no
16159
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16160
echo $ECHO_N "(cached) $ECHO_C" >&6
16162
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16165
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16166
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16167
echo $ECHO_N "(cached) $ECHO_C" >&6
16169
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16172
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16174
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16175
if test "$GCC" = yes; then
16176
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16179
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16180
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16181
hardcode_action_F77=
16182
if test -n "$hardcode_libdir_flag_spec_F77" || \
16183
test -n "$runpath_var_F77" || \
16184
test "X$hardcode_automatic_F77" = "Xyes" ; then
16186
# We can hardcode non-existant directories.
16187
if test "$hardcode_direct_F77" != no &&
16188
# If the only mechanism to avoid hardcoding is shlibpath_var, we
16189
# have to relink, otherwise we might link with an installed library
16190
# when we should be linking with a yet-to-be-installed one
16191
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16192
test "$hardcode_minus_L_F77" != no; then
16193
# Linking always hardcodes the temporary library directory.
16194
hardcode_action_F77=relink
16196
# We can link without hardcoding, and we can hardcode nonexisting dirs.
16197
hardcode_action_F77=immediate
16200
# We cannot hardcode anything, or else we can only hardcode existing
16202
hardcode_action_F77=unsupported
16204
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16205
echo "${ECHO_T}$hardcode_action_F77" >&6; }
16207
if test "$hardcode_action_F77" = relink; then
16208
# Fast installation is not supported
16209
enable_fast_install=no
16210
elif test "$shlibpath_overrides_runpath" = yes ||
16211
test "$enable_shared" = no; then
16212
# Fast installation is not necessary
16213
enable_fast_install=needless
16217
# The else clause should only fire when bootstrapping the
16218
# libtool distribution, otherwise you forgot to ship ltmain.sh
16219
# with your package, and you will get complaints that there are
16220
# no rules to generate ltmain.sh.
16221
if test -f "$ltmain"; then
16222
# See if we are running on zsh, and set the options which allow our commands through
16223
# without removal of \ escapes.
16224
if test -n "${ZSH_VERSION+set}" ; then
16225
setopt NO_GLOB_SUBST
16227
# Now quote all the things that may contain metacharacters while being
16228
# careful not to overquote the AC_SUBSTed values. We take copies of the
16229
# variables and quote the copies for generation of the libtool script.
16230
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16232
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16233
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16234
deplibs_check_method reload_flag reload_cmds need_locks \
16235
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16236
lt_cv_sys_global_symbol_to_c_name_address \
16237
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16238
old_postinstall_cmds old_postuninstall_cmds \
16242
lt_prog_compiler_wl_F77 \
16243
lt_prog_compiler_pic_F77 \
16244
lt_prog_compiler_static_F77 \
16245
lt_prog_compiler_no_builtin_flag_F77 \
16246
export_dynamic_flag_spec_F77 \
16247
thread_safe_flag_spec_F77 \
16248
whole_archive_flag_spec_F77 \
16249
enable_shared_with_static_runtimes_F77 \
16250
old_archive_cmds_F77 \
16251
old_archive_from_new_cmds_F77 \
16252
predep_objects_F77 \
16253
postdep_objects_F77 \
16256
compiler_lib_search_path_F77 \
16257
compiler_lib_search_dirs_F77 \
16259
archive_expsym_cmds_F77 \
16260
postinstall_cmds_F77 \
16261
postuninstall_cmds_F77 \
16262
old_archive_from_expsyms_cmds_F77 \
16263
allow_undefined_flag_F77 \
16264
no_undefined_flag_F77 \
16265
export_symbols_cmds_F77 \
16266
hardcode_libdir_flag_spec_F77 \
16267
hardcode_libdir_flag_spec_ld_F77 \
16268
hardcode_libdir_separator_F77 \
16269
hardcode_automatic_F77 \
16271
module_expsym_cmds_F77 \
16272
lt_cv_prog_compiler_c_o_F77 \
16273
fix_srcfile_path_F77 \
16274
exclude_expsyms_F77 \
16275
include_expsyms_F77; do
16278
old_archive_cmds_F77 | \
16279
old_archive_from_new_cmds_F77 | \
16280
archive_cmds_F77 | \
16281
archive_expsym_cmds_F77 | \
16282
module_cmds_F77 | \
16283
module_expsym_cmds_F77 | \
16284
old_archive_from_expsyms_cmds_F77 | \
16285
export_symbols_cmds_F77 | \
16286
extract_expsyms_cmds | reload_cmds | finish_cmds | \
16287
postinstall_cmds | postuninstall_cmds | \
16288
old_postinstall_cmds | old_postuninstall_cmds | \
16289
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16290
# Double-quote double-evaled strings.
16291
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16294
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16300
*'\$0 --fallback-echo"')
16301
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16307
cat <<__EOF__ >> "$cfgfile"
16308
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16310
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16312
# Shell to use when invoking shell scripts.
16315
# Whether or not to build shared libraries.
16316
build_libtool_libs=$enable_shared
16318
# Whether or not to build static libraries.
16319
build_old_libs=$enable_static
16321
# Whether or not to add -lc for building shared libraries.
16322
build_libtool_need_lc=$archive_cmds_need_lc_F77
16324
# Whether or not to disallow shared libs when runtime libs are static
16325
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16327
# Whether or not to optimize for fast installation.
16328
fast_install=$enable_fast_install
16331
host_alias=$host_alias
16335
# The build system.
16336
build_alias=$build_alias
16340
# An echo program that does not interpret backslashes.
16345
AR_FLAGS=$lt_AR_FLAGS
16350
# LTCC compiler flags.
16351
LTCFLAGS=$lt_LTCFLAGS
16353
# A language-specific compiler.
16354
CC=$lt_compiler_F77
16356
# Is the compiler the GNU C compiler?
16362
# The linker used to build libraries.
16365
# Whether we need hard or soft links.
16368
# A BSD-compatible nm program.
16371
# A symbol stripping program
16374
# Used to examine libraries when file_magic_cmd begins "file"
16375
MAGIC_CMD=$MAGIC_CMD
16377
# Used on cygwin: DLL creation program.
16380
# Used on cygwin: object dumper.
16383
# Used on cygwin: assembler.
16386
# The name of the directory that contains temporary libtool files.
16389
# How to create reloadable object files.
16390
reload_flag=$lt_reload_flag
16391
reload_cmds=$lt_reload_cmds
16393
# How to pass a linker flag through the compiler.
16394
wl=$lt_lt_prog_compiler_wl_F77
16396
# Object file suffix (normally "o").
16397
objext="$ac_objext"
16399
# Old archive suffix (normally "a").
16402
# Shared library suffix (normally ".so").
16403
shrext_cmds='$shrext_cmds'
16405
# Executable file suffix (normally "").
16408
# Additional compiler flags for building library objects.
16409
pic_flag=$lt_lt_prog_compiler_pic_F77
16412
# What is the maximum length of a command?
16413
max_cmd_len=$lt_cv_sys_max_cmd_len
16415
# Does compiler simultaneously support -c and -o options?
16416
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16418
# Must we lock files when doing compilation?
16419
need_locks=$lt_need_locks
16421
# Do we need the lib prefix for modules?
16422
need_lib_prefix=$need_lib_prefix
16424
# Do we need a version for libraries?
16425
need_version=$need_version
16427
# Whether dlopen is supported.
16428
dlopen_support=$enable_dlopen
16430
# Whether dlopen of programs is supported.
16431
dlopen_self=$enable_dlopen_self
16433
# Whether dlopen of statically linked programs is supported.
16434
dlopen_self_static=$enable_dlopen_self_static
16436
# Compiler flag to prevent dynamic linking.
16437
link_static_flag=$lt_lt_prog_compiler_static_F77
16439
# Compiler flag to turn off builtin functions.
16440
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16442
# Compiler flag to allow reflexive dlopens.
16443
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16445
# Compiler flag to generate shared objects directly from archives.
16446
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16448
# Compiler flag to generate thread-safe objects.
16449
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16451
# Library versioning type.
16452
version_type=$version_type
16454
# Format of library name prefix.
16455
libname_spec=$lt_libname_spec
16457
# List of archive names. First name is the real one, the rest are links.
16458
# The last name is the one that the linker finds with -lNAME.
16459
library_names_spec=$lt_library_names_spec
16461
# The coded name of the library, if different from the real name.
16462
soname_spec=$lt_soname_spec
16464
# Commands used to build and install an old-style archive.
16466
old_archive_cmds=$lt_old_archive_cmds_F77
16467
old_postinstall_cmds=$lt_old_postinstall_cmds
16468
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16470
# Create an old-style archive from a shared archive.
16471
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16473
# Create a temporary old-style archive to link instead of a shared archive.
16474
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16476
# Commands used to build and install a shared archive.
16477
archive_cmds=$lt_archive_cmds_F77
16478
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16479
postinstall_cmds=$lt_postinstall_cmds
16480
postuninstall_cmds=$lt_postuninstall_cmds
16482
# Commands used to build a loadable module (assumed same as above if empty)
16483
module_cmds=$lt_module_cmds_F77
16484
module_expsym_cmds=$lt_module_expsym_cmds_F77
16486
# Commands to strip libraries.
16487
old_striplib=$lt_old_striplib
16488
striplib=$lt_striplib
16490
# Dependencies to place before the objects being linked to create a
16492
predep_objects=$lt_predep_objects_F77
16494
# Dependencies to place after the objects being linked to create a
16496
postdep_objects=$lt_postdep_objects_F77
16498
# Dependencies to place before the objects being linked to create a
16500
predeps=$lt_predeps_F77
16502
# Dependencies to place after the objects being linked to create a
16504
postdeps=$lt_postdeps_F77
16506
# The directories searched by this compiler when creating a shared
16508
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16510
# The library search path used internally by the compiler when linking
16511
# a shared library.
16512
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16514
# Method to check whether dependent libraries are shared objects.
16515
deplibs_check_method=$lt_deplibs_check_method
16517
# Command to use when deplibs_check_method == file_magic.
16518
file_magic_cmd=$lt_file_magic_cmd
16520
# Flag that allows shared libraries with undefined symbols to be built.
16521
allow_undefined_flag=$lt_allow_undefined_flag_F77
16523
# Flag that forces no undefined symbols.
16524
no_undefined_flag=$lt_no_undefined_flag_F77
16526
# Commands used to finish a libtool library installation in a directory.
16527
finish_cmds=$lt_finish_cmds
16529
# Same as above, but a single script fragment to be evaled but not shown.
16530
finish_eval=$lt_finish_eval
16532
# Take the output of nm and produce a listing of raw symbols and C names.
16533
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16535
# Transform the output of nm in a proper C declaration
16536
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16538
# Transform the output of nm in a C name address pair
16539
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16541
# This is the shared library runtime path variable.
16542
runpath_var=$runpath_var
16544
# This is the shared library path variable.
16545
shlibpath_var=$shlibpath_var
16547
# Is shlibpath searched before the hard-coded library search path?
16548
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16550
# How to hardcode a shared library path into an executable.
16551
hardcode_action=$hardcode_action_F77
16553
# Whether we should hardcode library paths into libraries.
16554
hardcode_into_libs=$hardcode_into_libs
16556
# Flag to hardcode \$libdir into a binary during linking.
16557
# This must work even if \$libdir does not exist.
16558
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16560
# If ld is used when linking, flag to hardcode \$libdir into
16561
# a binary during linking. This must work even if \$libdir does
16563
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16565
# Whether we need a single -rpath flag with a separated argument.
16566
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16568
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16569
# resulting binary.
16570
hardcode_direct=$hardcode_direct_F77
16572
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16573
# resulting binary.
16574
hardcode_minus_L=$hardcode_minus_L_F77
16576
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16577
# the resulting binary.
16578
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16580
# Set to yes if building a shared library automatically hardcodes DIR into the library
16581
# and all subsequent libraries and executables linked against it.
16582
hardcode_automatic=$hardcode_automatic_F77
16584
# Variables whose values should be saved in libtool wrapper scripts and
16585
# restored at relink time.
16586
variables_saved_for_relink="$variables_saved_for_relink"
16588
# Whether libtool must link a program against all its dependency libraries.
16589
link_all_deplibs=$link_all_deplibs_F77
16591
# Compile-time system search path for libraries
16592
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16594
# Run-time system search path for libraries
16595
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16597
# Fix the shell variable \$srcfile for the compiler.
16598
fix_srcfile_path=$lt_fix_srcfile_path
16600
# Set to yes if exported symbols are required.
16601
always_export_symbols=$always_export_symbols_F77
16603
# The commands to list exported symbols.
16604
export_symbols_cmds=$lt_export_symbols_cmds_F77
16606
# The commands to extract the exported symbol list from a shared archive.
16607
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16609
# Symbols that should not be listed in the preloaded symbols.
16610
exclude_expsyms=$lt_exclude_expsyms_F77
16612
# Symbols that must always be exported.
16613
include_expsyms=$lt_include_expsyms_F77
16615
# ### END LIBTOOL TAG CONFIG: $tagname
16621
# If there is no Makefile yet, we rely on a make rule to execute
16622
# `config.status --recheck' to rerun these tests and create the
16623
# libtool script then.
16624
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16625
if test -f "$ltmain_in"; then
16626
test -f Makefile && make "$ltmain"
16632
ac_cpp='$CPP $CPPFLAGS'
16633
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16634
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16635
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16645
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16648
# Source file extension for Java test sources.
16651
# Object file extension for compiled Java test sources.
16655
# Code to be used in simple compile tests
16656
lt_simple_compile_test_code="class foo {}"
16658
# Code to be used in simple link tests
16659
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16661
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16663
# If no C compiler was specified, use CC.
16666
# If no C compiler flags were specified, use CFLAGS.
16667
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16669
# Allow CC to be a program name with arguments.
16673
# save warnings/boilerplate of simple test code
16674
ac_outfile=conftest.$ac_objext
16675
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16676
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16677
_lt_compiler_boilerplate=`cat conftest.err`
16680
ac_outfile=conftest.$ac_objext
16681
echo "$lt_simple_link_test_code" >conftest.$ac_ext
16682
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16683
_lt_linker_boilerplate=`cat conftest.err`
16687
# Allow CC to be a program name with arguments.
16692
for cc_temp in $compiler""; do
16694
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16695
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16700
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16703
# GCJ did not exist at the time GCC didn't implicitly link libc in.
16704
archive_cmds_need_lc_GCJ=no
16706
old_archive_cmds_GCJ=$old_archive_cmds
16709
lt_prog_compiler_no_builtin_flag_GCJ=
16711
if test "$GCC" = yes; then
16712
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16715
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16716
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16717
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16718
echo $ECHO_N "(cached) $ECHO_C" >&6
16720
lt_cv_prog_compiler_rtti_exceptions=no
16721
ac_outfile=conftest.$ac_objext
16722
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16723
lt_compiler_flag="-fno-rtti -fno-exceptions"
16724
# Insert the option either (1) after the last *FLAGS variable, or
16725
# (2) before a word containing "conftest.", or (3) at the end.
16726
# Note that $ac_compile itself does not contain backslashes and begins
16727
# with a dollar sign (not a hyphen), so the echo should work correctly.
16728
# The option is referenced via a variable to avoid confusing sed.
16729
lt_compile=`echo "$ac_compile" | $SED \
16730
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16731
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16732
-e 's:$: $lt_compiler_flag:'`
16733
(eval echo "\"\$as_me:16733: $lt_compile\"" >&5)
16734
(eval "$lt_compile" 2>conftest.err)
16736
cat conftest.err >&5
16737
echo "$as_me:16737: \$? = $ac_status" >&5
16738
if (exit $ac_status) && test -s "$ac_outfile"; then
16739
# The compiler can only warn and ignore the option if not recognized
16740
# So say no if there are warnings other than the usual output.
16741
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16742
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16743
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16744
lt_cv_prog_compiler_rtti_exceptions=yes
16750
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16751
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16753
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16754
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16761
lt_prog_compiler_wl_GCJ=
16762
lt_prog_compiler_pic_GCJ=
16763
lt_prog_compiler_static_GCJ=
16765
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16766
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16768
if test "$GCC" = yes; then
16769
lt_prog_compiler_wl_GCJ='-Wl,'
16770
lt_prog_compiler_static_GCJ='-static'
16774
# All AIX code is PIC.
16775
if test "$host_cpu" = ia64; then
16776
# AIX 5 now supports IA64 processor
16777
lt_prog_compiler_static_GCJ='-Bstatic'
16782
# FIXME: we need at least 68020 code to build shared libraries, but
16783
# adding the `-m68020' flag to GCC prevents building anything better,
16785
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16788
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16789
# PIC is the default for these OSes.
16792
mingw* | cygwin* | pw32* | os2*)
16793
# This hack is so that the source file can tell whether it is being
16794
# built for inclusion in a dll (and should export symbols for example).
16795
# Although the cygwin gcc ignores -fPIC, still need this for old-style
16796
# (--disable-auto-import) libraries
16800
darwin* | rhapsody*)
16801
# PIC is the default on this platform
16802
# Common symbols not allowed in MH_DYLIB files
16803
lt_prog_compiler_pic_GCJ='-fno-common'
16807
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
16808
# Instead, we relocate shared libraries at runtime.
16812
# Just because we use GCC doesn't mean we suddenly get shared libraries
16813
# on systems that don't support them.
16814
lt_prog_compiler_can_build_shared_GCJ=no
16819
if test -d /usr/nec; then
16820
lt_prog_compiler_pic_GCJ=-Kconform_pic
16825
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16826
# not for PA HP-UX.
16832
lt_prog_compiler_pic_GCJ='-fPIC'
16838
lt_prog_compiler_pic_GCJ='-fPIC'
16842
# PORTME Check for flag to pass linker flags through the system compiler.
16845
lt_prog_compiler_wl_GCJ='-Wl,'
16846
if test "$host_cpu" = ia64; then
16847
# AIX 5 now supports IA64 processor
16848
lt_prog_compiler_static_GCJ='-Bstatic'
16850
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16854
# PIC is the default on this platform
16855
# Common symbols not allowed in MH_DYLIB files
16856
case $cc_basename in
16858
lt_prog_compiler_pic_GCJ='-qnocommon'
16859
lt_prog_compiler_wl_GCJ='-Wl,'
16864
mingw* | cygwin* | pw32* | os2*)
16865
# This hack is so that the source file can tell whether it is being
16866
# built for inclusion in a dll (and should export symbols for example).
16870
hpux9* | hpux10* | hpux11*)
16871
lt_prog_compiler_wl_GCJ='-Wl,'
16872
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16873
# not for PA HP-UX.
16879
lt_prog_compiler_pic_GCJ='+Z'
16882
# Is there a better lt_prog_compiler_static that works with the bundled CC?
16883
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16886
irix5* | irix6* | nonstopux*)
16887
lt_prog_compiler_wl_GCJ='-Wl,'
16888
# PIC (with -KPIC) is the default.
16889
lt_prog_compiler_static_GCJ='-non_shared'
16893
lt_prog_compiler_pic_GCJ='-KPIC'
16894
lt_prog_compiler_static_GCJ='-Bstatic'
16897
linux* | k*bsd*-gnu)
16898
case $cc_basename in
16900
lt_prog_compiler_wl_GCJ='-Wl,'
16901
lt_prog_compiler_pic_GCJ='-KPIC'
16902
lt_prog_compiler_static_GCJ='-static'
16904
pgcc* | pgf77* | pgf90* | pgf95*)
16905
# Portland Group compilers (*not* the Pentium gcc compiler,
16906
# which looks to be a dead project)
16907
lt_prog_compiler_wl_GCJ='-Wl,'
16908
lt_prog_compiler_pic_GCJ='-fpic'
16909
lt_prog_compiler_static_GCJ='-Bstatic'
16912
lt_prog_compiler_wl_GCJ='-Wl,'
16913
# All Alpha code is PIC.
16914
lt_prog_compiler_static_GCJ='-non_shared'
16917
case `$CC -V 2>&1 | sed 5q` in
16920
lt_prog_compiler_pic_GCJ='-KPIC'
16921
lt_prog_compiler_static_GCJ='-Bstatic'
16922
lt_prog_compiler_wl_GCJ='-Wl,'
16925
# Sun Fortran 8.3 passes all unrecognized flags to the linker
16926
lt_prog_compiler_pic_GCJ='-KPIC'
16927
lt_prog_compiler_static_GCJ='-Bstatic'
16928
lt_prog_compiler_wl_GCJ=''
16935
osf3* | osf4* | osf5*)
16936
lt_prog_compiler_wl_GCJ='-Wl,'
16937
# All OSF/1 code is PIC.
16938
lt_prog_compiler_static_GCJ='-non_shared'
16942
lt_prog_compiler_static_GCJ='-non_shared'
16946
lt_prog_compiler_pic_GCJ='-KPIC'
16947
lt_prog_compiler_static_GCJ='-Bstatic'
16948
case $cc_basename in
16949
f77* | f90* | f95*)
16950
lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16952
lt_prog_compiler_wl_GCJ='-Wl,';;
16957
lt_prog_compiler_wl_GCJ='-Qoption ld '
16958
lt_prog_compiler_pic_GCJ='-PIC'
16959
lt_prog_compiler_static_GCJ='-Bstatic'
16962
sysv4 | sysv4.2uw2* | sysv4.3*)
16963
lt_prog_compiler_wl_GCJ='-Wl,'
16964
lt_prog_compiler_pic_GCJ='-KPIC'
16965
lt_prog_compiler_static_GCJ='-Bstatic'
16969
if test -d /usr/nec ;then
16970
lt_prog_compiler_pic_GCJ='-Kconform_pic'
16971
lt_prog_compiler_static_GCJ='-Bstatic'
16975
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16976
lt_prog_compiler_wl_GCJ='-Wl,'
16977
lt_prog_compiler_pic_GCJ='-KPIC'
16978
lt_prog_compiler_static_GCJ='-Bstatic'
16982
lt_prog_compiler_wl_GCJ='-Wl,'
16983
lt_prog_compiler_can_build_shared_GCJ=no
16987
lt_prog_compiler_pic_GCJ='-pic'
16988
lt_prog_compiler_static_GCJ='-Bstatic'
16992
lt_prog_compiler_can_build_shared_GCJ=no
16997
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16998
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17001
# Check to make sure the PIC flag actually works.
17003
if test -n "$lt_prog_compiler_pic_GCJ"; then
17005
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17006
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17007
if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17008
echo $ECHO_N "(cached) $ECHO_C" >&6
17010
lt_cv_prog_compiler_pic_works_GCJ=no
17011
ac_outfile=conftest.$ac_objext
17012
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17013
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17014
# Insert the option either (1) after the last *FLAGS variable, or
17015
# (2) before a word containing "conftest.", or (3) at the end.
17016
# Note that $ac_compile itself does not contain backslashes and begins
17017
# with a dollar sign (not a hyphen), so the echo should work correctly.
17018
# The option is referenced via a variable to avoid confusing sed.
17019
lt_compile=`echo "$ac_compile" | $SED \
17020
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17021
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17022
-e 's:$: $lt_compiler_flag:'`
17023
(eval echo "\"\$as_me:17023: $lt_compile\"" >&5)
17024
(eval "$lt_compile" 2>conftest.err)
17026
cat conftest.err >&5
17027
echo "$as_me:17027: \$? = $ac_status" >&5
17028
if (exit $ac_status) && test -s "$ac_outfile"; then
17029
# The compiler can only warn and ignore the option if not recognized
17030
# So say no if there are warnings other than the usual output.
17031
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17032
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17033
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17034
lt_cv_prog_compiler_pic_works_GCJ=yes
17040
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17041
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17043
if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17044
case $lt_prog_compiler_pic_GCJ in
17046
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17049
lt_prog_compiler_pic_GCJ=
17050
lt_prog_compiler_can_build_shared_GCJ=no
17055
# For platforms which do not support PIC, -DPIC is meaningless:
17057
lt_prog_compiler_pic_GCJ=
17060
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17065
# Check to make sure the static flag actually works.
17067
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17068
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17069
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17070
if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17071
echo $ECHO_N "(cached) $ECHO_C" >&6
17073
lt_cv_prog_compiler_static_works_GCJ=no
17074
save_LDFLAGS="$LDFLAGS"
17075
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17076
echo "$lt_simple_link_test_code" > conftest.$ac_ext
17077
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17078
# The linker can only warn and ignore the option if not recognized
17079
# So say no if there are warnings
17080
if test -s conftest.err; then
17081
# Append any errors to the config.log.
17082
cat conftest.err 1>&5
17083
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17084
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17085
if diff conftest.exp conftest.er2 >/dev/null; then
17086
lt_cv_prog_compiler_static_works_GCJ=yes
17089
lt_cv_prog_compiler_static_works_GCJ=yes
17093
LDFLAGS="$save_LDFLAGS"
17096
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17097
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17099
if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17102
lt_prog_compiler_static_GCJ=
17106
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17107
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17108
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17109
echo $ECHO_N "(cached) $ECHO_C" >&6
17111
lt_cv_prog_compiler_c_o_GCJ=no
17112
$rm -r conftest 2>/dev/null
17116
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17118
lt_compiler_flag="-o out/conftest2.$ac_objext"
17119
# Insert the option either (1) after the last *FLAGS variable, or
17120
# (2) before a word containing "conftest.", or (3) at the end.
17121
# Note that $ac_compile itself does not contain backslashes and begins
17122
# with a dollar sign (not a hyphen), so the echo should work correctly.
17123
lt_compile=`echo "$ac_compile" | $SED \
17124
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17125
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17126
-e 's:$: $lt_compiler_flag:'`
17127
(eval echo "\"\$as_me:17127: $lt_compile\"" >&5)
17128
(eval "$lt_compile" 2>out/conftest.err)
17130
cat out/conftest.err >&5
17131
echo "$as_me:17131: \$? = $ac_status" >&5
17132
if (exit $ac_status) && test -s out/conftest2.$ac_objext
17134
# The compiler can only warn and ignore the option if not recognized
17135
# So say no if there are warnings
17136
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17137
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17138
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17139
lt_cv_prog_compiler_c_o_GCJ=yes
17144
# SGI C++ compiler will create directory out/ii_files/ for
17145
# template instantiation
17146
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17147
$rm out/* && rmdir out
17153
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17154
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17157
hard_links="nottested"
17158
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17159
# do not overwrite the value of need_locks provided by the user
17160
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17161
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17164
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17166
ln conftest.a conftest.b 2>&5 || hard_links=no
17167
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17168
{ echo "$as_me:$LINENO: result: $hard_links" >&5
17169
echo "${ECHO_T}$hard_links" >&6; }
17170
if test "$hard_links" = no; then
17171
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17172
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17179
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17180
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17183
allow_undefined_flag_GCJ=
17184
enable_shared_with_static_runtimes_GCJ=no
17186
archive_expsym_cmds_GCJ=
17187
old_archive_From_new_cmds_GCJ=
17188
old_archive_from_expsyms_cmds_GCJ=
17189
export_dynamic_flag_spec_GCJ=
17190
whole_archive_flag_spec_GCJ=
17191
thread_safe_flag_spec_GCJ=
17192
hardcode_libdir_flag_spec_GCJ=
17193
hardcode_libdir_flag_spec_ld_GCJ=
17194
hardcode_libdir_separator_GCJ=
17195
hardcode_direct_GCJ=no
17196
hardcode_minus_L_GCJ=no
17197
hardcode_shlibpath_var_GCJ=unsupported
17198
link_all_deplibs_GCJ=unknown
17199
hardcode_automatic_GCJ=no
17201
module_expsym_cmds_GCJ=
17202
always_export_symbols_GCJ=no
17203
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17204
# include_expsyms should be a list of space-separated symbols to be *always*
17205
# included in the symbol list
17206
include_expsyms_GCJ=
17207
# exclude_expsyms can be an extended regexp of symbols to exclude
17208
# it will be wrapped by ` (' and `)$', so one must not match beginning or
17209
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17210
# as well as any symbol that contains `d'.
17211
exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17212
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17213
# platforms (ab)use it in PIC code, but their linkers get confused if
17214
# the symbol is explicitly referenced. Since portable code cannot
17215
# rely on this symbol name, it's probably fine to never include it in
17216
# preloaded symbol tables.
17217
# Exclude shared library initialization/finalization symbols.
17218
extract_expsyms_cmds=
17219
# Just being paranoid about ensuring that cc_basename is set.
17220
for cc_temp in $compiler""; do
17222
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17223
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17228
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17231
cygwin* | mingw* | pw32*)
17232
# FIXME: the MSVC++ port hasn't been tested in a loooong time
17233
# When not using gcc, we currently assume that we are using
17234
# Microsoft Visual C++.
17235
if test "$GCC" != yes; then
17240
# we just hope/assume this is gcc and not c89 (= MSVC++)
17249
if test "$with_gnu_ld" = yes; then
17250
# If archive_cmds runs LD, not CC, wlarc should be empty
17253
# Set some defaults for GNU ld with shared library support. These
17254
# are reset later if shared libraries are not supported. Putting them
17255
# here allows them to be overridden if necessary.
17256
runpath_var=LD_RUN_PATH
17257
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17258
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17259
# ancient GNU ld didn't support --whole-archive et. al.
17260
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17261
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17263
whole_archive_flag_spec_GCJ=
17265
supports_anon_versioning=no
17266
case `$LD -v 2>/dev/null` in
17267
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17268
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17269
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17270
*\ 2.11.*) ;; # other 2.11 versions
17271
*) supports_anon_versioning=yes ;;
17274
# See if GNU ld supports shared libraries.
17277
# On AIX/PPC, the GNU linker is very broken
17278
if test "$host_cpu" != ia64; then
17282
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17283
*** to be unable to reliably create shared libraries on AIX.
17284
*** Therefore, libtool is disabling shared libraries support. If you
17285
*** really care for shared libraries, you may want to modify your PATH
17286
*** so that a non-GNU linker is found, and then restart.
17293
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)'
17294
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17295
hardcode_minus_L_GCJ=yes
17297
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17298
# that the semantics of dynamic libraries on AmigaOS, at least up
17299
# to version 4, is to share data among multiple programs linked
17300
# with the same dynamic library. Since this doesn't match the
17301
# behavior of shared libraries on other platforms, we can't use
17307
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17308
allow_undefined_flag_GCJ=unsupported
17309
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17310
# support --undefined. This deserves some investigation. FIXME
17311
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17317
cygwin* | mingw* | pw32*)
17318
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17319
# as there is no search path for DLLs.
17320
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17321
allow_undefined_flag_GCJ=unsupported
17322
always_export_symbols_GCJ=no
17323
enable_shared_with_static_runtimes_GCJ=yes
17324
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17326
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17327
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17328
# If the export-symbols file already is a .def file (1st line
17329
# is EXPORTS), use it as is; otherwise, prepend...
17330
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17331
cp $export_symbols $output_objdir/$soname.def;
17333
echo EXPORTS > $output_objdir/$soname.def;
17334
cat $export_symbols >> $output_objdir/$soname.def;
17336
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17343
hardcode_direct_GCJ=no
17344
hardcode_shlibpath_var_GCJ=no
17345
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17346
export_dynamic_flag_spec_GCJ='${wl}-E'
17347
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17348
# Instead, shared libraries are loaded at an image base (0x10000000 by
17349
# default) and relocated if they conflict, which is a slow very memory
17350
# consuming and fragmenting process. To avoid this, we pick a random,
17351
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17352
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
17353
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'
17354
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'
17357
gnu* | linux* | k*bsd*-gnu)
17358
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17360
case $cc_basename,$host_cpu in
17361
pgcc*) # Portland Group C compiler
17362
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'
17363
tmp_addflag=' $pic_flag'
17365
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17366
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'
17367
tmp_addflag=' $pic_flag -Mnomain' ;;
17368
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17369
tmp_addflag=' -i_dynamic' ;;
17370
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17371
tmp_addflag=' -i_dynamic -nofor_main' ;;
17372
ifc* | ifort*) # Intel Fortran compiler
17373
tmp_addflag=' -nofor_main' ;;
17375
case `$CC -V 2>&1 | sed 5q` in
17376
*Sun\ C*) # Sun C 5.9
17377
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'
17378
tmp_sharedflag='-G' ;;
17379
*Sun\ F*) # Sun Fortran 8.3
17380
tmp_sharedflag='-G' ;;
17382
tmp_sharedflag='-shared' ;;
17384
archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17386
if test $supports_anon_versioning = yes; then
17387
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17388
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17389
$echo "local: *; };" >> $output_objdir/$libname.ver~
17390
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17392
link_all_deplibs_GCJ=no
17398
netbsd* | netbsdelf*-gnu)
17399
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17400
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17403
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17404
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17409
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17413
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17414
*** create shared libraries on Solaris systems. Therefore, libtool
17415
*** is disabling shared libraries support. We urge you to upgrade GNU
17416
*** binutils to release 2.9.1 or newer. Another option is to modify
17417
*** your PATH or compiler configuration so that the native linker is
17418
*** used, and then restart.
17421
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17422
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17423
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17429
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17430
case `$LD -v 2>&1` in
17431
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17435
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17436
*** reliably create shared libraries on SCO systems. Therefore, libtool
17437
*** is disabling shared libraries support. We urge you to upgrade GNU
17438
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17439
*** your PATH or compiler configuration so that the native linker is
17440
*** used, and then restart.
17445
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17446
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17447
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17448
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17457
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17459
hardcode_direct_GCJ=yes
17460
hardcode_shlibpath_var_GCJ=no
17464
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17465
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17466
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17473
if test "$ld_shlibs_GCJ" = no; then
17475
hardcode_libdir_flag_spec_GCJ=
17476
export_dynamic_flag_spec_GCJ=
17477
whole_archive_flag_spec_GCJ=
17480
# PORTME fill in a description of your system's linker (not GNU ld)
17483
allow_undefined_flag_GCJ=unsupported
17484
always_export_symbols_GCJ=yes
17485
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'
17486
# Note: this linker hardcodes the directories in LIBPATH if there
17487
# are no directories specified by -L.
17488
hardcode_minus_L_GCJ=yes
17489
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17490
# Neither direct hardcoding nor static linking is supported with a
17492
hardcode_direct_GCJ=unsupported
17497
if test "$host_cpu" = ia64; then
17498
# On IA64, the linker does run time linking by default, so we don't
17499
# have to do anything special.
17500
aix_use_runtimelinking=no
17501
exp_sym_flag='-Bexport'
17504
# If we're using GNU nm, then we don't want the "-C" option.
17505
# -C means demangle to AIX nm, but means don't demangle with GNU nm
17506
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17507
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'
17509
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'
17511
aix_use_runtimelinking=no
17513
# Test if we are trying to use run time linking or normal
17514
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17515
# need to do runtime linking.
17516
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17517
for ld_flag in $LDFLAGS; do
17518
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17519
aix_use_runtimelinking=yes
17526
exp_sym_flag='-bexport'
17527
no_entry_flag='-bnoentry'
17530
# When large executables or shared objects are built, AIX ld can
17531
# have problems creating the table of contents. If linking a library
17532
# or program results in "error TOC overflow" add -mminimal-toc to
17533
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17534
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17536
archive_cmds_GCJ=''
17537
hardcode_direct_GCJ=yes
17538
hardcode_libdir_separator_GCJ=':'
17539
link_all_deplibs_GCJ=yes
17541
if test "$GCC" = yes; then
17542
case $host_os in aix4.[012]|aix4.[012].*)
17543
# We only want to do this on AIX 4.2 and lower, the check
17544
# below for broken collect2 doesn't work under 4.3+
17545
collect2name=`${CC} -print-prog-name=collect2`
17546
if test -f "$collect2name" && \
17547
strings "$collect2name" | grep resolve_lib_name >/dev/null
17549
# We have reworked collect2
17552
# We have old collect2
17553
hardcode_direct_GCJ=unsupported
17554
# It fails to find uninstalled libraries when the uninstalled
17555
# path is not listed in the libpath. Setting hardcode_minus_L
17556
# to unsupported forces relinking
17557
hardcode_minus_L_GCJ=yes
17558
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17559
hardcode_libdir_separator_GCJ=
17563
shared_flag='-shared'
17564
if test "$aix_use_runtimelinking" = yes; then
17565
shared_flag="$shared_flag "'${wl}-G'
17569
if test "$host_cpu" = ia64; then
17570
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17571
# chokes on -Wl,-G. The following line is correct:
17574
if test "$aix_use_runtimelinking" = yes; then
17575
shared_flag='${wl}-G'
17577
shared_flag='${wl}-bM:SRE'
17582
# It seems that -bexpall does not export symbols beginning with
17583
# underscore (_), so it is better to generate a list of symbols to export.
17584
always_export_symbols_GCJ=yes
17585
if test "$aix_use_runtimelinking" = yes; then
17586
# Warning - without using the other runtime loading flags (-brtl),
17587
# -berok will link without error, but may produce a broken library.
17588
allow_undefined_flag_GCJ='-berok'
17589
# Determine the default libpath from the value encoded in an empty executable.
17590
cat >conftest.$ac_ext <<_ACEOF
17593
cat confdefs.h >>conftest.$ac_ext
17594
cat >>conftest.$ac_ext <<_ACEOF
17595
/* end confdefs.h. */
17605
rm -f conftest.$ac_objext conftest$ac_exeext
17606
if { (ac_try="$ac_link"
17607
case "(($ac_try" in
17608
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17609
*) ac_try_echo=$ac_try;;
17611
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17612
(eval "$ac_link") 2>conftest.er1
17614
grep -v '^ *+' conftest.er1 >conftest.err
17616
cat conftest.err >&5
17617
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17618
(exit $ac_status); } && {
17619
test -z "$ac_c_werror_flag" ||
17620
test ! -s conftest.err
17621
} && test -s conftest$ac_exeext &&
17622
$as_test_x conftest$ac_exeext; then
17624
lt_aix_libpath_sed='
17625
/Import File Strings/,/^$/ {
17631
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17632
# Check for a 64-bit object if we didn't find anything.
17633
if test -z "$aix_libpath"; then
17634
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17637
echo "$as_me: failed program was:" >&5
17638
sed 's/^/| /' conftest.$ac_ext >&5
17643
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17644
conftest$ac_exeext conftest.$ac_ext
17645
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17647
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17648
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"
17650
if test "$host_cpu" = ia64; then
17651
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17652
allow_undefined_flag_GCJ="-z nodefs"
17653
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"
17655
# Determine the default libpath from the value encoded in an empty executable.
17656
cat >conftest.$ac_ext <<_ACEOF
17659
cat confdefs.h >>conftest.$ac_ext
17660
cat >>conftest.$ac_ext <<_ACEOF
17661
/* end confdefs.h. */
17671
rm -f conftest.$ac_objext conftest$ac_exeext
17672
if { (ac_try="$ac_link"
17673
case "(($ac_try" in
17674
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17675
*) ac_try_echo=$ac_try;;
17677
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17678
(eval "$ac_link") 2>conftest.er1
17680
grep -v '^ *+' conftest.er1 >conftest.err
17682
cat conftest.err >&5
17683
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17684
(exit $ac_status); } && {
17685
test -z "$ac_c_werror_flag" ||
17686
test ! -s conftest.err
17687
} && test -s conftest$ac_exeext &&
17688
$as_test_x conftest$ac_exeext; then
17690
lt_aix_libpath_sed='
17691
/Import File Strings/,/^$/ {
17697
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17698
# Check for a 64-bit object if we didn't find anything.
17699
if test -z "$aix_libpath"; then
17700
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17703
echo "$as_me: failed program was:" >&5
17704
sed 's/^/| /' conftest.$ac_ext >&5
17709
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17710
conftest$ac_exeext conftest.$ac_ext
17711
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17713
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17714
# Warning - without using the other run time loading flags,
17715
# -berok will link without error, but may produce a broken library.
17716
no_undefined_flag_GCJ=' ${wl}-bernotok'
17717
allow_undefined_flag_GCJ=' ${wl}-berok'
17718
# Exported symbols can be pulled into shared objects from archives
17719
whole_archive_flag_spec_GCJ='$convenience'
17720
archive_cmds_need_lc_GCJ=yes
17721
# This is similar to how AIX traditionally builds its shared libraries.
17722
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'
17728
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)'
17729
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17730
hardcode_minus_L_GCJ=yes
17731
# see comment about different semantics on the GNU ld section
17736
export_dynamic_flag_spec_GCJ=-rdynamic
17739
cygwin* | mingw* | pw32*)
17740
# When not using gcc, we currently assume that we are using
17741
# Microsoft Visual C++.
17742
# hardcode_libdir_flag_spec is actually meaningless, as there is
17743
# no search path for DLLs.
17744
hardcode_libdir_flag_spec_GCJ=' '
17745
allow_undefined_flag_GCJ=unsupported
17746
# Tell ltmain to make .lib files, not .a files.
17748
# Tell ltmain to make .dll files, not .so files.
17750
# FIXME: Setting linknames here is a bad hack.
17751
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17752
# The linker will automatically build a .lib file if we build a DLL.
17753
old_archive_From_new_cmds_GCJ='true'
17754
# FIXME: Should let the user specify the lib program.
17755
old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17756
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17757
enable_shared_with_static_runtimes_GCJ=yes
17760
darwin* | rhapsody*)
17762
rhapsody* | darwin1.[012])
17763
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17766
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17767
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17769
case ${MACOSX_DEPLOYMENT_TARGET} in
17771
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17774
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17780
archive_cmds_need_lc_GCJ=no
17781
hardcode_direct_GCJ=no
17782
hardcode_automatic_GCJ=yes
17783
hardcode_shlibpath_var_GCJ=unsupported
17784
whole_archive_flag_spec_GCJ=''
17785
link_all_deplibs_GCJ=yes
17786
if test "$GCC" = yes ; then
17787
output_verbose_link_cmd='echo'
17788
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}"
17789
module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17790
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}"
17791
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}"
17793
case $cc_basename in
17795
output_verbose_link_cmd='echo'
17796
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17797
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17798
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17799
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}'
17800
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}'
17810
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17811
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17812
hardcode_shlibpath_var_GCJ=no
17819
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17820
# support. Future versions do this automatically, but an explicit c++rt0.o
17821
# does not break anything, and helps significantly (at the cost of a little
17824
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17825
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17826
hardcode_direct_GCJ=yes
17827
hardcode_shlibpath_var_GCJ=no
17830
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
17832
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17833
hardcode_direct_GCJ=yes
17834
hardcode_minus_L_GCJ=yes
17835
hardcode_shlibpath_var_GCJ=no
17838
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17839
freebsd* | dragonfly*)
17840
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17841
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17842
hardcode_direct_GCJ=yes
17843
hardcode_shlibpath_var_GCJ=no
17847
if test "$GCC" = yes; then
17848
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'
17850
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'
17852
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17853
hardcode_libdir_separator_GCJ=:
17854
hardcode_direct_GCJ=yes
17856
# hardcode_minus_L: Not really in the search PATH,
17857
# but as the default location of the library.
17858
hardcode_minus_L_GCJ=yes
17859
export_dynamic_flag_spec_GCJ='${wl}-E'
17863
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17864
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17866
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17868
if test "$with_gnu_ld" = no; then
17869
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17870
hardcode_libdir_separator_GCJ=:
17872
hardcode_direct_GCJ=yes
17873
export_dynamic_flag_spec_GCJ='${wl}-E'
17875
# hardcode_minus_L: Not really in the search PATH,
17876
# but as the default location of the library.
17877
hardcode_minus_L_GCJ=yes
17882
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17885
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17888
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17891
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17897
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17900
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17903
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17907
if test "$with_gnu_ld" = no; then
17908
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17909
hardcode_libdir_separator_GCJ=:
17913
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17914
hardcode_direct_GCJ=no
17915
hardcode_shlibpath_var_GCJ=no
17918
hardcode_direct_GCJ=yes
17919
export_dynamic_flag_spec_GCJ='${wl}-E'
17921
# hardcode_minus_L: Not really in the search PATH,
17922
# but as the default location of the library.
17923
hardcode_minus_L_GCJ=yes
17929
irix5* | irix6* | nonstopux*)
17930
if test "$GCC" = yes; then
17931
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'
17933
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'
17934
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17936
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17937
hardcode_libdir_separator_GCJ=:
17938
link_all_deplibs_GCJ=yes
17941
netbsd* | netbsdelf*-gnu)
17942
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17943
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17945
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17947
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17948
hardcode_direct_GCJ=yes
17949
hardcode_shlibpath_var_GCJ=no
17953
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17954
hardcode_direct_GCJ=yes
17955
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17956
hardcode_libdir_separator_GCJ=:
17957
hardcode_shlibpath_var_GCJ=no
17961
if test -f /usr/libexec/ld.so; then
17962
hardcode_direct_GCJ=yes
17963
hardcode_shlibpath_var_GCJ=no
17964
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17965
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17966
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17967
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17968
export_dynamic_flag_spec_GCJ='${wl}-E'
17971
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17972
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17973
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17976
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17977
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17987
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17988
hardcode_minus_L_GCJ=yes
17989
allow_undefined_flag_GCJ=unsupported
17990
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'
17991
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17995
if test "$GCC" = yes; then
17996
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17997
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'
17999
allow_undefined_flag_GCJ=' -expect_unresolved \*'
18000
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'
18002
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18003
hardcode_libdir_separator_GCJ=:
18006
osf4* | osf5*) # as osf3* with the addition of -msym flag
18007
if test "$GCC" = yes; then
18008
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18009
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'
18010
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18012
allow_undefined_flag_GCJ=' -expect_unresolved \*'
18013
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'
18014
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~
18015
$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'
18017
# Both c and cxx compiler support -rpath directly
18018
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18020
hardcode_libdir_separator_GCJ=:
18024
no_undefined_flag_GCJ=' -z text'
18025
if test "$GCC" = yes; then
18027
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18028
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18029
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18032
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18033
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18034
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18036
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18037
hardcode_shlibpath_var_GCJ=no
18039
solaris2.[0-5] | solaris2.[0-5].*) ;;
18041
# The compiler driver will combine and reorder linker options,
18042
# but understands `-z linker_flag'. GCC discards it without `$wl',
18043
# but is careful enough not to reorder.
18044
# Supported since Solaris 2.6 (maybe 2.5.1?)
18045
if test "$GCC" = yes; then
18046
whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18048
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18052
link_all_deplibs_GCJ=yes
18056
if test "x$host_vendor" = xsequent; then
18057
# Use $CC to link under sequent, because it throws in some extra .o
18058
# files that make .init and .fini sections work.
18059
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18061
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18063
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18064
hardcode_direct_GCJ=yes
18065
hardcode_minus_L_GCJ=yes
18066
hardcode_shlibpath_var_GCJ=no
18070
case $host_vendor in
18072
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18073
hardcode_direct_GCJ=yes # is this really true???
18076
## LD is ld it makes a PLAMLIB
18077
## CC just makes a GrossModule.
18078
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18079
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18080
hardcode_direct_GCJ=no
18083
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18084
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18087
runpath_var='LD_RUN_PATH'
18088
hardcode_shlibpath_var_GCJ=no
18092
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18093
hardcode_shlibpath_var_GCJ=no
18094
export_dynamic_flag_spec_GCJ='-Bexport'
18098
if test -d /usr/nec; then
18099
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18100
hardcode_shlibpath_var_GCJ=no
18101
runpath_var=LD_RUN_PATH
18102
hardcode_runpath_var=yes
18107
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18108
no_undefined_flag_GCJ='${wl}-z,text'
18109
archive_cmds_need_lc_GCJ=no
18110
hardcode_shlibpath_var_GCJ=no
18111
runpath_var='LD_RUN_PATH'
18113
if test "$GCC" = yes; then
18114
archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18115
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18117
archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18118
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18122
sysv5* | sco3.2v5* | sco5v6*)
18123
# Note: We can NOT use -z defs as we might desire, because we do not
18124
# link with -lc, and that would cause any symbols used from libc to
18125
# always be unresolved, which means just about no library would
18126
# ever link correctly. If we're not using GNU ld we use -z text
18127
# though, which does catch some bad symbols but isn't as heavy-handed
18129
no_undefined_flag_GCJ='${wl}-z,text'
18130
allow_undefined_flag_GCJ='${wl}-z,nodefs'
18131
archive_cmds_need_lc_GCJ=no
18132
hardcode_shlibpath_var_GCJ=no
18133
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18134
hardcode_libdir_separator_GCJ=':'
18135
link_all_deplibs_GCJ=yes
18136
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18137
runpath_var='LD_RUN_PATH'
18139
if test "$GCC" = yes; then
18140
archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18141
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18143
archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18144
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18149
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18150
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18151
hardcode_shlibpath_var_GCJ=no
18160
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18161
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18162
test "$ld_shlibs_GCJ" = no && can_build_shared=no
18165
# Do we need to explicitly link libc?
18167
case "x$archive_cmds_need_lc_GCJ" in
18169
# Assume -lc should be added
18170
archive_cmds_need_lc_GCJ=yes
18172
if test "$enable_shared" = yes && test "$GCC" = yes; then
18173
case $archive_cmds_GCJ in
18175
# FIXME: we may have to deal with multi-command sequences.
18178
# Test whether the compiler implicitly links with -lc since on some
18179
# systems, -lgcc has to come before -lc. If gcc already passes -lc
18180
# to ld, don't add -lc before -lgcc.
18181
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18182
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18184
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18186
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18187
(eval $ac_compile) 2>&5
18189
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18190
(exit $ac_status); } 2>conftest.err; then
18193
libobjs=conftest.$ac_objext
18195
wl=$lt_prog_compiler_wl_GCJ
18196
pic_flag=$lt_prog_compiler_pic_GCJ
18202
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18203
allow_undefined_flag_GCJ=
18204
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18205
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18207
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18208
(exit $ac_status); }
18210
archive_cmds_need_lc_GCJ=no
18212
archive_cmds_need_lc_GCJ=yes
18214
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18216
cat conftest.err 1>&5
18219
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18220
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18227
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18228
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18229
library_names_spec=
18230
libname_spec='lib$name'
18234
postuninstall_cmds=
18238
shlibpath_overrides_runpath=unknown
18240
dynamic_linker="$host_os ld.so"
18241
sys_lib_dlsearch_path_spec="/lib /usr/lib"
18243
need_lib_prefix=unknown
18244
hardcode_into_libs=no
18246
# when you set need_version to no, make sure it does not cause -set_version
18247
# flags to be left without arguments
18248
need_version=unknown
18253
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18254
shlibpath_var=LIBPATH
18256
# AIX 3 has no versioning support, so we append a major version to the name.
18257
soname_spec='${libname}${release}${shared_ext}$major'
18264
hardcode_into_libs=yes
18265
if test "$host_cpu" = ia64; then
18266
# AIX 5 supports IA64
18267
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18268
shlibpath_var=LD_LIBRARY_PATH
18270
# With GCC up to 2.95.x, collect2 would create an import file
18271
# for dependence libraries. The import file would start with
18272
# the line `#! .'. This would cause the generated library to
18273
# depend on `.', always an invalid library. This was fixed in
18274
# development snapshots of GCC prior to 3.0.
18276
aix4 | aix4.[01] | aix4.[01].*)
18277
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18279
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18282
can_build_shared=no
18286
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18287
# soname into executable. Probably we can add versioning support to
18288
# collect2, so additional links can be useful in future.
18289
if test "$aix_use_runtimelinking" = yes; then
18290
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
18291
# instead of lib<name>.a to let people know that these are not
18292
# typical AIX shared libraries.
18293
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18295
# We preserve .a as extension for shared libraries through AIX4.2
18296
# and later when we are not doing run time linking.
18297
library_names_spec='${libname}${release}.a $libname.a'
18298
soname_spec='${libname}${release}${shared_ext}$major'
18300
shlibpath_var=LIBPATH
18305
library_names_spec='$libname.ixlibrary $libname.a'
18306
# Create ${libname}_ixlibrary.a entries in /sys/libs.
18307
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'
18311
library_names_spec='${libname}${shared_ext}'
18312
dynamic_linker="$host_os ld.so"
18313
shlibpath_var=LIBRARY_PATH
18319
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18320
soname_spec='${libname}${release}${shared_ext}$major'
18321
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18322
shlibpath_var=LD_LIBRARY_PATH
18323
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18324
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18325
# the default ld.so.conf also contains /usr/contrib/lib and
18326
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18327
# libtool to hard-code these into programs
18330
cygwin* | mingw* | pw32*)
18331
version_type=windows
18336
case $GCC,$host_os in
18337
yes,cygwin* | yes,mingw* | yes,pw32*)
18338
library_names_spec='$libname.dll.a'
18339
# DLL is installed to $(libdir)/../bin by postinstall_cmds
18340
postinstall_cmds='base_file=`basename \${file}`~
18341
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18342
dldir=$destdir/`dirname \$dlpath`~
18343
test -d \$dldir || mkdir -p \$dldir~
18344
$install_prog $dir/$dlname \$dldir/$dlname~
18345
chmod a+x \$dldir/$dlname'
18346
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18347
dlpath=$dir/\$dldll~
18349
shlibpath_overrides_runpath=yes
18353
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
18354
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18355
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18358
# MinGW DLLs use traditional 'lib' prefix
18359
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18360
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18361
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18362
# It is most probably a Windows format PATH printed by
18363
# mingw gcc, but we are running on Cygwin. Gcc prints its search
18364
# path with ; separators, and with drive letters. We can handle the
18365
# drive letters (cygwin fileutils understands them), so leave them,
18366
# especially as we might pass files found there to a mingw objdump,
18367
# which wouldn't understand a cygwinified path. Ahh.
18368
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18370
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18374
# pw32 DLLs use 'pw' prefix rather than 'lib'
18375
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18381
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18384
dynamic_linker='Win32 ld.exe'
18385
# FIXME: first we should search . and the directory the executable is in
18389
darwin* | rhapsody*)
18390
dynamic_linker="$host_os dyld"
18391
version_type=darwin
18394
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18395
soname_spec='${libname}${release}${major}$shared_ext'
18396
shlibpath_overrides_runpath=yes
18397
shlibpath_var=DYLD_LIBRARY_PATH
18398
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18400
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18407
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18408
soname_spec='${libname}${release}${shared_ext}$major'
18409
shlibpath_var=LD_LIBRARY_PATH
18416
freebsd* | dragonfly*)
18417
# DragonFly does not have aout. When/if they implement a new
18418
# versioning mechanism, adjust this.
18419
if test -x /usr/bin/objformat; then
18420
objformat=`/usr/bin/objformat`
18423
freebsd[123]*) objformat=aout ;;
18424
*) objformat=elf ;;
18427
version_type=freebsd-$objformat
18428
case $version_type in
18430
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18435
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18439
shlibpath_var=LD_LIBRARY_PATH
18442
shlibpath_overrides_runpath=yes
18444
freebsd3.[01]* | freebsdelf3.[01]*)
18445
shlibpath_overrides_runpath=yes
18446
hardcode_into_libs=yes
18448
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18449
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18450
shlibpath_overrides_runpath=no
18451
hardcode_into_libs=yes
18453
*) # from 4.6 on, and DragonFly
18454
shlibpath_overrides_runpath=yes
18455
hardcode_into_libs=yes
18464
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18465
soname_spec='${libname}${release}${shared_ext}$major'
18466
shlibpath_var=LD_LIBRARY_PATH
18467
hardcode_into_libs=yes
18470
hpux9* | hpux10* | hpux11*)
18471
# Give a soname corresponding to the major version so that dld.sl refuses to
18472
# link against other versions.
18479
hardcode_into_libs=yes
18480
dynamic_linker="$host_os dld.so"
18481
shlibpath_var=LD_LIBRARY_PATH
18482
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18483
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18484
soname_spec='${libname}${release}${shared_ext}$major'
18485
if test "X$HPUX_IA64_MODE" = X32; then
18486
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18488
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18490
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18494
hardcode_into_libs=yes
18495
dynamic_linker="$host_os dld.sl"
18496
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18497
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18498
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18499
soname_spec='${libname}${release}${shared_ext}$major'
18500
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18501
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18505
dynamic_linker="$host_os dld.sl"
18506
shlibpath_var=SHLIB_PATH
18507
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18508
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18509
soname_spec='${libname}${release}${shared_ext}$major'
18512
# HP-UX runs *really* slowly unless shared libraries are mode 555.
18513
postinstall_cmds='chmod 555 $lib'
18520
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18521
soname_spec='${libname}${release}${shared_ext}$major'
18522
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18523
shlibpath_var=LD_LIBRARY_PATH
18524
shlibpath_overrides_runpath=no
18525
hardcode_into_libs=yes
18528
irix5* | irix6* | nonstopux*)
18530
nonstopux*) version_type=nonstopux ;;
18532
if test "$lt_cv_prog_gnu_ld" = yes; then
18540
soname_spec='${libname}${release}${shared_ext}$major'
18541
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18543
irix5* | nonstopux*)
18544
libsuff= shlibsuff=
18547
case $LD in # libtool.m4 will add one of these switches to LD
18548
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18549
libsuff= shlibsuff= libmagic=32-bit;;
18550
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18551
libsuff=32 shlibsuff=N32 libmagic=N32;;
18552
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18553
libsuff=64 shlibsuff=64 libmagic=64-bit;;
18554
*) libsuff= shlibsuff= libmagic=never-match;;
18558
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18559
shlibpath_overrides_runpath=no
18560
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18561
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18562
hardcode_into_libs=yes
18565
# No shared lib support for Linux oldld, aout, or coff.
18566
linux*oldld* | linux*aout* | linux*coff*)
18570
# This must be Linux ELF.
18571
linux* | k*bsd*-gnu)
18575
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18576
soname_spec='${libname}${release}${shared_ext}$major'
18577
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18578
shlibpath_var=LD_LIBRARY_PATH
18579
shlibpath_overrides_runpath=no
18580
# This implies no fast_install, which is unacceptable.
18581
# Some rework will be needed to allow for fast_install
18582
# before this can be enabled.
18583
hardcode_into_libs=yes
18585
# Append ld.so.conf contents to the search path
18586
if test -f /etc/ld.so.conf; then
18587
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' ' '`
18588
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18591
# We used to test for /lib/ld.so.1 and disable shared libraries on
18592
# powerpc, because MkLinux only supported shared libraries with the
18593
# GNU dynamic linker. Since this was broken with cross compilers,
18594
# most powerpc-linux boxes support dynamic linking these days and
18595
# people can always --disable-shared, the test was removed, and we
18596
# assume the GNU/Linux dynamic linker is in use.
18597
dynamic_linker='GNU/Linux ld.so'
18604
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18605
soname_spec='${libname}${release}${shared_ext}$major'
18606
shlibpath_var=LD_LIBRARY_PATH
18607
shlibpath_overrides_runpath=no
18608
hardcode_into_libs=yes
18609
dynamic_linker='NetBSD ld.elf_so'
18616
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18617
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18618
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18619
dynamic_linker='NetBSD (a.out) ld.so'
18621
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18622
soname_spec='${libname}${release}${shared_ext}$major'
18623
dynamic_linker='NetBSD ld.elf_so'
18625
shlibpath_var=LD_LIBRARY_PATH
18626
shlibpath_overrides_runpath=yes
18627
hardcode_into_libs=yes
18632
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18633
shlibpath_var=LD_LIBRARY_PATH
18634
shlibpath_overrides_runpath=yes
18641
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18642
soname_spec='${libname}${release}${shared_ext}$major'
18643
shlibpath_var=LD_LIBRARY_PATH
18644
shlibpath_overrides_runpath=yes
18649
sys_lib_dlsearch_path_spec="/usr/lib"
18651
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18653
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18654
*) need_version=no ;;
18656
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18657
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18658
shlibpath_var=LD_LIBRARY_PATH
18659
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18661
openbsd2.[89] | openbsd2.[89].*)
18662
shlibpath_overrides_runpath=no
18665
shlibpath_overrides_runpath=yes
18669
shlibpath_overrides_runpath=yes
18674
libname_spec='$name'
18677
library_names_spec='$libname${shared_ext} $libname.a'
18678
dynamic_linker='OS/2 ld.exe'
18679
shlibpath_var=LIBPATH
18682
osf3* | osf4* | osf5*)
18686
soname_spec='${libname}${release}${shared_ext}$major'
18687
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18688
shlibpath_var=LD_LIBRARY_PATH
18689
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18690
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18701
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18702
soname_spec='${libname}${release}${shared_ext}$major'
18703
shlibpath_var=LD_LIBRARY_PATH
18704
shlibpath_overrides_runpath=yes
18705
hardcode_into_libs=yes
18706
# ldd complains unless libraries are executable
18707
postinstall_cmds='chmod +x $lib'
18712
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18713
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18714
shlibpath_var=LD_LIBRARY_PATH
18715
shlibpath_overrides_runpath=yes
18716
if test "$with_gnu_ld" = yes; then
18724
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18725
soname_spec='${libname}${release}${shared_ext}$major'
18726
shlibpath_var=LD_LIBRARY_PATH
18727
case $host_vendor in
18729
shlibpath_overrides_runpath=no
18731
export_dynamic_flag_spec='${wl}-Blargedynsym'
18732
runpath_var=LD_RUN_PATH
18740
shlibpath_overrides_runpath=no
18741
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18747
if test -d /usr/nec ;then
18749
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18750
soname_spec='$libname${shared_ext}.$major'
18751
shlibpath_var=LD_LIBRARY_PATH
18755
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18756
version_type=freebsd-elf
18759
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18760
soname_spec='${libname}${release}${shared_ext}$major'
18761
shlibpath_var=LD_LIBRARY_PATH
18762
hardcode_into_libs=yes
18763
if test "$with_gnu_ld" = yes; then
18764
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18765
shlibpath_overrides_runpath=no
18767
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18768
shlibpath_overrides_runpath=yes
18771
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18775
sys_lib_dlsearch_path_spec='/usr/lib'
18780
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18781
soname_spec='${libname}${release}${shared_ext}$major'
18782
shlibpath_var=LD_LIBRARY_PATH
18789
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18790
echo "${ECHO_T}$dynamic_linker" >&6; }
18791
test "$dynamic_linker" = no && can_build_shared=no
18793
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18794
echo $ECHO_N "(cached) $ECHO_C" >&6
18796
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18799
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18800
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18801
echo $ECHO_N "(cached) $ECHO_C" >&6
18803
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18806
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18808
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18809
if test "$GCC" = yes; then
18810
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18813
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18814
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18815
hardcode_action_GCJ=
18816
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18817
test -n "$runpath_var_GCJ" || \
18818
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18820
# We can hardcode non-existant directories.
18821
if test "$hardcode_direct_GCJ" != no &&
18822
# If the only mechanism to avoid hardcoding is shlibpath_var, we
18823
# have to relink, otherwise we might link with an installed library
18824
# when we should be linking with a yet-to-be-installed one
18825
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18826
test "$hardcode_minus_L_GCJ" != no; then
18827
# Linking always hardcodes the temporary library directory.
18828
hardcode_action_GCJ=relink
18830
# We can link without hardcoding, and we can hardcode nonexisting dirs.
18831
hardcode_action_GCJ=immediate
18834
# We cannot hardcode anything, or else we can only hardcode existing
18836
hardcode_action_GCJ=unsupported
18838
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18839
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18841
if test "$hardcode_action_GCJ" = relink; then
18842
# Fast installation is not supported
18843
enable_fast_install=no
18844
elif test "$shlibpath_overrides_runpath" = yes ||
18845
test "$enable_shared" = no; then
18846
# Fast installation is not necessary
18847
enable_fast_install=needless
18851
# The else clause should only fire when bootstrapping the
18852
# libtool distribution, otherwise you forgot to ship ltmain.sh
18853
# with your package, and you will get complaints that there are
18854
# no rules to generate ltmain.sh.
18855
if test -f "$ltmain"; then
18856
# See if we are running on zsh, and set the options which allow our commands through
18857
# without removal of \ escapes.
18858
if test -n "${ZSH_VERSION+set}" ; then
18859
setopt NO_GLOB_SUBST
18861
# Now quote all the things that may contain metacharacters while being
18862
# careful not to overquote the AC_SUBSTed values. We take copies of the
18863
# variables and quote the copies for generation of the libtool script.
18864
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18866
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18867
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18868
deplibs_check_method reload_flag reload_cmds need_locks \
18869
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18870
lt_cv_sys_global_symbol_to_c_name_address \
18871
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18872
old_postinstall_cmds old_postuninstall_cmds \
18876
lt_prog_compiler_wl_GCJ \
18877
lt_prog_compiler_pic_GCJ \
18878
lt_prog_compiler_static_GCJ \
18879
lt_prog_compiler_no_builtin_flag_GCJ \
18880
export_dynamic_flag_spec_GCJ \
18881
thread_safe_flag_spec_GCJ \
18882
whole_archive_flag_spec_GCJ \
18883
enable_shared_with_static_runtimes_GCJ \
18884
old_archive_cmds_GCJ \
18885
old_archive_from_new_cmds_GCJ \
18886
predep_objects_GCJ \
18887
postdep_objects_GCJ \
18890
compiler_lib_search_path_GCJ \
18891
compiler_lib_search_dirs_GCJ \
18893
archive_expsym_cmds_GCJ \
18894
postinstall_cmds_GCJ \
18895
postuninstall_cmds_GCJ \
18896
old_archive_from_expsyms_cmds_GCJ \
18897
allow_undefined_flag_GCJ \
18898
no_undefined_flag_GCJ \
18899
export_symbols_cmds_GCJ \
18900
hardcode_libdir_flag_spec_GCJ \
18901
hardcode_libdir_flag_spec_ld_GCJ \
18902
hardcode_libdir_separator_GCJ \
18903
hardcode_automatic_GCJ \
18905
module_expsym_cmds_GCJ \
18906
lt_cv_prog_compiler_c_o_GCJ \
18907
fix_srcfile_path_GCJ \
18908
exclude_expsyms_GCJ \
18909
include_expsyms_GCJ; do
18912
old_archive_cmds_GCJ | \
18913
old_archive_from_new_cmds_GCJ | \
18914
archive_cmds_GCJ | \
18915
archive_expsym_cmds_GCJ | \
18916
module_cmds_GCJ | \
18917
module_expsym_cmds_GCJ | \
18918
old_archive_from_expsyms_cmds_GCJ | \
18919
export_symbols_cmds_GCJ | \
18920
extract_expsyms_cmds | reload_cmds | finish_cmds | \
18921
postinstall_cmds | postuninstall_cmds | \
18922
old_postinstall_cmds | old_postuninstall_cmds | \
18923
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18924
# Double-quote double-evaled strings.
18925
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18928
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18934
*'\$0 --fallback-echo"')
18935
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18941
cat <<__EOF__ >> "$cfgfile"
18942
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18944
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18946
# Shell to use when invoking shell scripts.
18949
# Whether or not to build shared libraries.
18950
build_libtool_libs=$enable_shared
18952
# Whether or not to build static libraries.
18953
build_old_libs=$enable_static
18955
# Whether or not to add -lc for building shared libraries.
18956
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18958
# Whether or not to disallow shared libs when runtime libs are static
18959
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18961
# Whether or not to optimize for fast installation.
18962
fast_install=$enable_fast_install
18965
host_alias=$host_alias
18969
# The build system.
18970
build_alias=$build_alias
18974
# An echo program that does not interpret backslashes.
18979
AR_FLAGS=$lt_AR_FLAGS
18984
# LTCC compiler flags.
18985
LTCFLAGS=$lt_LTCFLAGS
18987
# A language-specific compiler.
18988
CC=$lt_compiler_GCJ
18990
# Is the compiler the GNU C compiler?
18996
# The linker used to build libraries.
18999
# Whether we need hard or soft links.
19002
# A BSD-compatible nm program.
19005
# A symbol stripping program
19008
# Used to examine libraries when file_magic_cmd begins "file"
19009
MAGIC_CMD=$MAGIC_CMD
19011
# Used on cygwin: DLL creation program.
19014
# Used on cygwin: object dumper.
19017
# Used on cygwin: assembler.
19020
# The name of the directory that contains temporary libtool files.
19023
# How to create reloadable object files.
19024
reload_flag=$lt_reload_flag
19025
reload_cmds=$lt_reload_cmds
19027
# How to pass a linker flag through the compiler.
19028
wl=$lt_lt_prog_compiler_wl_GCJ
19030
# Object file suffix (normally "o").
19031
objext="$ac_objext"
19033
# Old archive suffix (normally "a").
19036
# Shared library suffix (normally ".so").
19037
shrext_cmds='$shrext_cmds'
19039
# Executable file suffix (normally "").
19042
# Additional compiler flags for building library objects.
19043
pic_flag=$lt_lt_prog_compiler_pic_GCJ
19046
# What is the maximum length of a command?
19047
max_cmd_len=$lt_cv_sys_max_cmd_len
19049
# Does compiler simultaneously support -c and -o options?
19050
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19052
# Must we lock files when doing compilation?
19053
need_locks=$lt_need_locks
19055
# Do we need the lib prefix for modules?
19056
need_lib_prefix=$need_lib_prefix
19058
# Do we need a version for libraries?
19059
need_version=$need_version
19061
# Whether dlopen is supported.
19062
dlopen_support=$enable_dlopen
19064
# Whether dlopen of programs is supported.
19065
dlopen_self=$enable_dlopen_self
19067
# Whether dlopen of statically linked programs is supported.
19068
dlopen_self_static=$enable_dlopen_self_static
19070
# Compiler flag to prevent dynamic linking.
19071
link_static_flag=$lt_lt_prog_compiler_static_GCJ
19073
# Compiler flag to turn off builtin functions.
19074
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19076
# Compiler flag to allow reflexive dlopens.
19077
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19079
# Compiler flag to generate shared objects directly from archives.
19080
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19082
# Compiler flag to generate thread-safe objects.
19083
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19085
# Library versioning type.
19086
version_type=$version_type
19088
# Format of library name prefix.
19089
libname_spec=$lt_libname_spec
19091
# List of archive names. First name is the real one, the rest are links.
19092
# The last name is the one that the linker finds with -lNAME.
19093
library_names_spec=$lt_library_names_spec
19095
# The coded name of the library, if different from the real name.
19096
soname_spec=$lt_soname_spec
19098
# Commands used to build and install an old-style archive.
19100
old_archive_cmds=$lt_old_archive_cmds_GCJ
19101
old_postinstall_cmds=$lt_old_postinstall_cmds
19102
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19104
# Create an old-style archive from a shared archive.
19105
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19107
# Create a temporary old-style archive to link instead of a shared archive.
19108
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19110
# Commands used to build and install a shared archive.
19111
archive_cmds=$lt_archive_cmds_GCJ
19112
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19113
postinstall_cmds=$lt_postinstall_cmds
19114
postuninstall_cmds=$lt_postuninstall_cmds
19116
# Commands used to build a loadable module (assumed same as above if empty)
19117
module_cmds=$lt_module_cmds_GCJ
19118
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19120
# Commands to strip libraries.
19121
old_striplib=$lt_old_striplib
19122
striplib=$lt_striplib
19124
# Dependencies to place before the objects being linked to create a
19126
predep_objects=$lt_predep_objects_GCJ
19128
# Dependencies to place after the objects being linked to create a
19130
postdep_objects=$lt_postdep_objects_GCJ
19132
# Dependencies to place before the objects being linked to create a
19134
predeps=$lt_predeps_GCJ
19136
# Dependencies to place after the objects being linked to create a
19138
postdeps=$lt_postdeps_GCJ
19140
# The directories searched by this compiler when creating a shared
19142
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19144
# The library search path used internally by the compiler when linking
19145
# a shared library.
19146
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19148
# Method to check whether dependent libraries are shared objects.
19149
deplibs_check_method=$lt_deplibs_check_method
19151
# Command to use when deplibs_check_method == file_magic.
19152
file_magic_cmd=$lt_file_magic_cmd
19154
# Flag that allows shared libraries with undefined symbols to be built.
19155
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19157
# Flag that forces no undefined symbols.
19158
no_undefined_flag=$lt_no_undefined_flag_GCJ
19160
# Commands used to finish a libtool library installation in a directory.
19161
finish_cmds=$lt_finish_cmds
19163
# Same as above, but a single script fragment to be evaled but not shown.
19164
finish_eval=$lt_finish_eval
19166
# Take the output of nm and produce a listing of raw symbols and C names.
19167
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19169
# Transform the output of nm in a proper C declaration
19170
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19172
# Transform the output of nm in a C name address pair
19173
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19175
# This is the shared library runtime path variable.
19176
runpath_var=$runpath_var
19178
# This is the shared library path variable.
19179
shlibpath_var=$shlibpath_var
19181
# Is shlibpath searched before the hard-coded library search path?
19182
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19184
# How to hardcode a shared library path into an executable.
19185
hardcode_action=$hardcode_action_GCJ
19187
# Whether we should hardcode library paths into libraries.
19188
hardcode_into_libs=$hardcode_into_libs
19190
# Flag to hardcode \$libdir into a binary during linking.
19191
# This must work even if \$libdir does not exist.
19192
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19194
# If ld is used when linking, flag to hardcode \$libdir into
19195
# a binary during linking. This must work even if \$libdir does
19197
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19199
# Whether we need a single -rpath flag with a separated argument.
19200
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19202
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19203
# resulting binary.
19204
hardcode_direct=$hardcode_direct_GCJ
19206
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19207
# resulting binary.
19208
hardcode_minus_L=$hardcode_minus_L_GCJ
19210
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19211
# the resulting binary.
19212
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19214
# Set to yes if building a shared library automatically hardcodes DIR into the library
19215
# and all subsequent libraries and executables linked against it.
19216
hardcode_automatic=$hardcode_automatic_GCJ
19218
# Variables whose values should be saved in libtool wrapper scripts and
19219
# restored at relink time.
19220
variables_saved_for_relink="$variables_saved_for_relink"
19222
# Whether libtool must link a program against all its dependency libraries.
19223
link_all_deplibs=$link_all_deplibs_GCJ
19225
# Compile-time system search path for libraries
19226
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19228
# Run-time system search path for libraries
19229
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19231
# Fix the shell variable \$srcfile for the compiler.
19232
fix_srcfile_path=$lt_fix_srcfile_path
19234
# Set to yes if exported symbols are required.
19235
always_export_symbols=$always_export_symbols_GCJ
19237
# The commands to list exported symbols.
19238
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19240
# The commands to extract the exported symbol list from a shared archive.
19241
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19243
# Symbols that should not be listed in the preloaded symbols.
19244
exclude_expsyms=$lt_exclude_expsyms_GCJ
19246
# Symbols that must always be exported.
19247
include_expsyms=$lt_include_expsyms_GCJ
19249
# ### END LIBTOOL TAG CONFIG: $tagname
19255
# If there is no Makefile yet, we rely on a make rule to execute
19256
# `config.status --recheck' to rerun these tests and create the
19257
# libtool script then.
19258
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19259
if test -f "$ltmain_in"; then
19260
test -f Makefile && make "$ltmain"
19266
ac_cpp='$CPP $CPPFLAGS'
19267
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19268
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19269
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19281
# Source file extension for RC test sources.
19284
# Object file extension for compiled RC test sources.
19288
# Code to be used in simple compile tests
19289
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19291
# Code to be used in simple link tests
19292
lt_simple_link_test_code="$lt_simple_compile_test_code"
19294
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19296
# If no C compiler was specified, use CC.
19299
# If no C compiler flags were specified, use CFLAGS.
19300
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19302
# Allow CC to be a program name with arguments.
19306
# save warnings/boilerplate of simple test code
19307
ac_outfile=conftest.$ac_objext
19308
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19309
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19310
_lt_compiler_boilerplate=`cat conftest.err`
19313
ac_outfile=conftest.$ac_objext
19314
echo "$lt_simple_link_test_code" >conftest.$ac_ext
19315
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19316
_lt_linker_boilerplate=`cat conftest.err`
19320
# Allow CC to be a program name with arguments.
19325
for cc_temp in $compiler""; do
19327
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19328
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19333
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19335
lt_cv_prog_compiler_c_o_RC=yes
19337
# The else clause should only fire when bootstrapping the
19338
# libtool distribution, otherwise you forgot to ship ltmain.sh
19339
# with your package, and you will get complaints that there are
19340
# no rules to generate ltmain.sh.
19341
if test -f "$ltmain"; then
19342
# See if we are running on zsh, and set the options which allow our commands through
19343
# without removal of \ escapes.
19344
if test -n "${ZSH_VERSION+set}" ; then
19345
setopt NO_GLOB_SUBST
19347
# Now quote all the things that may contain metacharacters while being
19348
# careful not to overquote the AC_SUBSTed values. We take copies of the
19349
# variables and quote the copies for generation of the libtool script.
19350
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19352
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19353
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19354
deplibs_check_method reload_flag reload_cmds need_locks \
19355
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19356
lt_cv_sys_global_symbol_to_c_name_address \
19357
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19358
old_postinstall_cmds old_postuninstall_cmds \
19362
lt_prog_compiler_wl_RC \
19363
lt_prog_compiler_pic_RC \
19364
lt_prog_compiler_static_RC \
19365
lt_prog_compiler_no_builtin_flag_RC \
19366
export_dynamic_flag_spec_RC \
19367
thread_safe_flag_spec_RC \
19368
whole_archive_flag_spec_RC \
19369
enable_shared_with_static_runtimes_RC \
19370
old_archive_cmds_RC \
19371
old_archive_from_new_cmds_RC \
19372
predep_objects_RC \
19373
postdep_objects_RC \
19376
compiler_lib_search_path_RC \
19377
compiler_lib_search_dirs_RC \
19379
archive_expsym_cmds_RC \
19380
postinstall_cmds_RC \
19381
postuninstall_cmds_RC \
19382
old_archive_from_expsyms_cmds_RC \
19383
allow_undefined_flag_RC \
19384
no_undefined_flag_RC \
19385
export_symbols_cmds_RC \
19386
hardcode_libdir_flag_spec_RC \
19387
hardcode_libdir_flag_spec_ld_RC \
19388
hardcode_libdir_separator_RC \
19389
hardcode_automatic_RC \
19391
module_expsym_cmds_RC \
19392
lt_cv_prog_compiler_c_o_RC \
19393
fix_srcfile_path_RC \
19394
exclude_expsyms_RC \
19395
include_expsyms_RC; do
19398
old_archive_cmds_RC | \
19399
old_archive_from_new_cmds_RC | \
19400
archive_cmds_RC | \
19401
archive_expsym_cmds_RC | \
19403
module_expsym_cmds_RC | \
19404
old_archive_from_expsyms_cmds_RC | \
19405
export_symbols_cmds_RC | \
19406
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19407
postinstall_cmds | postuninstall_cmds | \
19408
old_postinstall_cmds | old_postuninstall_cmds | \
19409
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19410
# Double-quote double-evaled strings.
19411
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19414
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19420
*'\$0 --fallback-echo"')
19421
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19427
cat <<__EOF__ >> "$cfgfile"
19428
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19430
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19432
# Shell to use when invoking shell scripts.
19435
# Whether or not to build shared libraries.
19436
build_libtool_libs=$enable_shared
19438
# Whether or not to build static libraries.
19439
build_old_libs=$enable_static
19441
# Whether or not to add -lc for building shared libraries.
19442
build_libtool_need_lc=$archive_cmds_need_lc_RC
19444
# Whether or not to disallow shared libs when runtime libs are static
19445
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19447
# Whether or not to optimize for fast installation.
19448
fast_install=$enable_fast_install
19451
host_alias=$host_alias
19455
# The build system.
19456
build_alias=$build_alias
19460
# An echo program that does not interpret backslashes.
19465
AR_FLAGS=$lt_AR_FLAGS
19470
# LTCC compiler flags.
19471
LTCFLAGS=$lt_LTCFLAGS
19473
# A language-specific compiler.
19476
# Is the compiler the GNU C compiler?
19482
# The linker used to build libraries.
19485
# Whether we need hard or soft links.
19488
# A BSD-compatible nm program.
19491
# A symbol stripping program
19494
# Used to examine libraries when file_magic_cmd begins "file"
19495
MAGIC_CMD=$MAGIC_CMD
19497
# Used on cygwin: DLL creation program.
19500
# Used on cygwin: object dumper.
19503
# Used on cygwin: assembler.
19506
# The name of the directory that contains temporary libtool files.
19509
# How to create reloadable object files.
19510
reload_flag=$lt_reload_flag
19511
reload_cmds=$lt_reload_cmds
19513
# How to pass a linker flag through the compiler.
19514
wl=$lt_lt_prog_compiler_wl_RC
19516
# Object file suffix (normally "o").
19517
objext="$ac_objext"
19519
# Old archive suffix (normally "a").
19522
# Shared library suffix (normally ".so").
19523
shrext_cmds='$shrext_cmds'
19525
# Executable file suffix (normally "").
19528
# Additional compiler flags for building library objects.
19529
pic_flag=$lt_lt_prog_compiler_pic_RC
19532
# What is the maximum length of a command?
19533
max_cmd_len=$lt_cv_sys_max_cmd_len
19535
# Does compiler simultaneously support -c and -o options?
19536
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19538
# Must we lock files when doing compilation?
19539
need_locks=$lt_need_locks
19541
# Do we need the lib prefix for modules?
19542
need_lib_prefix=$need_lib_prefix
19544
# Do we need a version for libraries?
19545
need_version=$need_version
19547
# Whether dlopen is supported.
19548
dlopen_support=$enable_dlopen
19550
# Whether dlopen of programs is supported.
19551
dlopen_self=$enable_dlopen_self
19553
# Whether dlopen of statically linked programs is supported.
19554
dlopen_self_static=$enable_dlopen_self_static
19556
# Compiler flag to prevent dynamic linking.
19557
link_static_flag=$lt_lt_prog_compiler_static_RC
19559
# Compiler flag to turn off builtin functions.
19560
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19562
# Compiler flag to allow reflexive dlopens.
19563
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19565
# Compiler flag to generate shared objects directly from archives.
19566
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19568
# Compiler flag to generate thread-safe objects.
19569
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19571
# Library versioning type.
19572
version_type=$version_type
19574
# Format of library name prefix.
19575
libname_spec=$lt_libname_spec
19577
# List of archive names. First name is the real one, the rest are links.
19578
# The last name is the one that the linker finds with -lNAME.
19579
library_names_spec=$lt_library_names_spec
19581
# The coded name of the library, if different from the real name.
19582
soname_spec=$lt_soname_spec
19584
# Commands used to build and install an old-style archive.
19586
old_archive_cmds=$lt_old_archive_cmds_RC
19587
old_postinstall_cmds=$lt_old_postinstall_cmds
19588
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19590
# Create an old-style archive from a shared archive.
19591
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19593
# Create a temporary old-style archive to link instead of a shared archive.
19594
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19596
# Commands used to build and install a shared archive.
19597
archive_cmds=$lt_archive_cmds_RC
19598
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19599
postinstall_cmds=$lt_postinstall_cmds
19600
postuninstall_cmds=$lt_postuninstall_cmds
19602
# Commands used to build a loadable module (assumed same as above if empty)
19603
module_cmds=$lt_module_cmds_RC
19604
module_expsym_cmds=$lt_module_expsym_cmds_RC
19606
# Commands to strip libraries.
19607
old_striplib=$lt_old_striplib
19608
striplib=$lt_striplib
19610
# Dependencies to place before the objects being linked to create a
19612
predep_objects=$lt_predep_objects_RC
19614
# Dependencies to place after the objects being linked to create a
19616
postdep_objects=$lt_postdep_objects_RC
19618
# Dependencies to place before the objects being linked to create a
19620
predeps=$lt_predeps_RC
19622
# Dependencies to place after the objects being linked to create a
19624
postdeps=$lt_postdeps_RC
19626
# The directories searched by this compiler when creating a shared
19628
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19630
# The library search path used internally by the compiler when linking
19631
# a shared library.
19632
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19634
# Method to check whether dependent libraries are shared objects.
19635
deplibs_check_method=$lt_deplibs_check_method
19637
# Command to use when deplibs_check_method == file_magic.
19638
file_magic_cmd=$lt_file_magic_cmd
19640
# Flag that allows shared libraries with undefined symbols to be built.
19641
allow_undefined_flag=$lt_allow_undefined_flag_RC
19643
# Flag that forces no undefined symbols.
19644
no_undefined_flag=$lt_no_undefined_flag_RC
19646
# Commands used to finish a libtool library installation in a directory.
19647
finish_cmds=$lt_finish_cmds
19649
# Same as above, but a single script fragment to be evaled but not shown.
19650
finish_eval=$lt_finish_eval
19652
# Take the output of nm and produce a listing of raw symbols and C names.
19653
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19655
# Transform the output of nm in a proper C declaration
19656
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19658
# Transform the output of nm in a C name address pair
19659
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19661
# This is the shared library runtime path variable.
19662
runpath_var=$runpath_var
19664
# This is the shared library path variable.
19665
shlibpath_var=$shlibpath_var
19667
# Is shlibpath searched before the hard-coded library search path?
19668
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19670
# How to hardcode a shared library path into an executable.
19671
hardcode_action=$hardcode_action_RC
19673
# Whether we should hardcode library paths into libraries.
19674
hardcode_into_libs=$hardcode_into_libs
19676
# Flag to hardcode \$libdir into a binary during linking.
19677
# This must work even if \$libdir does not exist.
19678
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19680
# If ld is used when linking, flag to hardcode \$libdir into
19681
# a binary during linking. This must work even if \$libdir does
19683
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19685
# Whether we need a single -rpath flag with a separated argument.
19686
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19688
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19689
# resulting binary.
19690
hardcode_direct=$hardcode_direct_RC
19692
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19693
# resulting binary.
19694
hardcode_minus_L=$hardcode_minus_L_RC
19696
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19697
# the resulting binary.
19698
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19700
# Set to yes if building a shared library automatically hardcodes DIR into the library
19701
# and all subsequent libraries and executables linked against it.
19702
hardcode_automatic=$hardcode_automatic_RC
19704
# Variables whose values should be saved in libtool wrapper scripts and
19705
# restored at relink time.
19706
variables_saved_for_relink="$variables_saved_for_relink"
19708
# Whether libtool must link a program against all its dependency libraries.
19709
link_all_deplibs=$link_all_deplibs_RC
19711
# Compile-time system search path for libraries
19712
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19714
# Run-time system search path for libraries
19715
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19717
# Fix the shell variable \$srcfile for the compiler.
19718
fix_srcfile_path=$lt_fix_srcfile_path
19720
# Set to yes if exported symbols are required.
19721
always_export_symbols=$always_export_symbols_RC
19723
# The commands to list exported symbols.
19724
export_symbols_cmds=$lt_export_symbols_cmds_RC
19726
# The commands to extract the exported symbol list from a shared archive.
19727
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19729
# Symbols that should not be listed in the preloaded symbols.
19730
exclude_expsyms=$lt_exclude_expsyms_RC
19732
# Symbols that must always be exported.
19733
include_expsyms=$lt_include_expsyms_RC
19735
# ### END LIBTOOL TAG CONFIG: $tagname
19741
# If there is no Makefile yet, we rely on a make rule to execute
19742
# `config.status --recheck' to rerun these tests and create the
19743
# libtool script then.
19744
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19745
if test -f "$ltmain_in"; then
19746
test -f Makefile && make "$ltmain"
19752
ac_cpp='$CPP $CPPFLAGS'
19753
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19754
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19755
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19762
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19763
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19764
{ (exit 1); exit 1; }; }
19768
# Append the new tag name to the list of available tags.
19769
if test -n "$tagname" ; then
19770
available_tags="$available_tags $tagname"
19776
# Now substitute the updated list of available tags.
19777
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19778
mv "${ofile}T" "$ofile"
19782
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19783
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19784
{ (exit 1); exit 1; }; }
19790
# This can be used to rebuild libtool when needed
19791
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19793
# Always use our own libtool.
19794
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19796
# Prevent multiple expansion
12014
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12015
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12016
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12017
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12018
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12019
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12020
$as_echo "yes" >&6; }
12022
# FIXME - insert some real tests, host_os isn't really good enough
12025
if test -n "$STRIP" ; then
12026
striplib="$STRIP -x"
12027
old_striplib="$STRIP -S"
12028
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12029
$as_echo "yes" >&6; }
12031
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12032
$as_echo "no" >&6; }
12036
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12037
$as_echo "no" >&6; }
12053
# Report which library types will actually be built
12054
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12055
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12056
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12057
$as_echo "$can_build_shared" >&6; }
12059
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12060
$as_echo_n "checking whether to build shared libraries... " >&6; }
12061
test "$can_build_shared" = "no" && enable_shared=no
12063
# On AIX, shared libraries and static libraries use the same namespace, and
12064
# are all built from PIC.
12067
test "$enable_shared" = yes && enable_static=no
12068
if test -n "$RANLIB"; then
12069
archive_cmds="$archive_cmds~\$RANLIB \$lib"
12070
postinstall_cmds='$RANLIB $lib'
12075
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12076
test "$enable_shared" = yes && enable_static=no
12080
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12081
$as_echo "$enable_shared" >&6; }
12083
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12084
$as_echo_n "checking whether to build static libraries... " >&6; }
12085
# Make sure either enable_shared or enable_static is yes.
12086
test "$enable_shared" = yes || enable_static=yes
12087
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12088
$as_echo "$enable_static" >&6; }
12095
ac_cpp='$CPP $CPPFLAGS'
12096
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12097
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12098
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12116
ac_config_commands="$ac_config_commands libtool"
12121
# Only expand once:
19818
12125
# Checks for header files.
19819
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19820
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19821
if test "${ac_cv_header_stdc+set}" = set; then
19822
echo $ECHO_N "(cached) $ECHO_C" >&6
12126
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12127
$as_echo_n "checking for ANSI C header files... " >&6; }
12128
if ${ac_cv_header_stdc+:} false; then :
12129
$as_echo_n "(cached) " >&6
19824
cat >conftest.$ac_ext <<_ACEOF
19827
cat confdefs.h >>conftest.$ac_ext
19828
cat >>conftest.$ac_ext <<_ACEOF
12131
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19829
12132
/* end confdefs.h. */
19830
12133
#include <stdlib.h>
19831
12134
#include <stdarg.h>