11406
{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11407
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11408
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11409
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11410
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11411
{ $as_echo "$as_me:$LINENO: result: yes" >&5
11412
$as_echo "yes" >&6; }
11414
# FIXME - insert some real tests, host_os isn't really good enough
11417
if test -n "$STRIP" ; then
11418
striplib="$STRIP -x"
11419
old_striplib="$STRIP -S"
11420
{ $as_echo "$as_me:$LINENO: result: yes" >&5
11421
$as_echo "yes" >&6; }
11423
{ $as_echo "$as_me:$LINENO: result: no" >&5
11424
$as_echo "no" >&6; }
11428
{ $as_echo "$as_me:$LINENO: result: no" >&5
11429
$as_echo "no" >&6; }
11445
# Report which library types will actually be built
11446
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11447
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11448
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11449
$as_echo "$can_build_shared" >&6; }
11451
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11452
$as_echo_n "checking whether to build shared libraries... " >&6; }
11453
test "$can_build_shared" = "no" && enable_shared=no
11455
# On AIX, shared libraries and static libraries use the same namespace, and
11456
# are all built from PIC.
11459
test "$enable_shared" = yes && enable_static=no
11460
if test -n "$RANLIB"; then
11461
archive_cmds="$archive_cmds~\$RANLIB \$lib"
11462
postinstall_cmds='$RANLIB $lib'
11467
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11468
test "$enable_shared" = yes && enable_static=no
11472
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11473
$as_echo "$enable_shared" >&6; }
11475
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11476
$as_echo_n "checking whether to build static libraries... " >&6; }
11477
# Make sure either enable_shared or enable_static is yes.
11478
test "$enable_shared" = yes || enable_static=yes
11479
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11480
$as_echo "$enable_static" >&6; }
11487
ac_cpp='$CPP $CPPFLAGS'
11488
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11489
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11490
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11506
ac_config_commands="$ac_config_commands libtool"
11511
# Only expand once:
11044
# Report which library types will actually be built
11045
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11046
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11047
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11048
$as_echo "$can_build_shared" >&6; }
11050
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11051
$as_echo_n "checking whether to build shared libraries... " >&6; }
11052
test "$can_build_shared" = "no" && enable_shared=no
11054
# On AIX, shared libraries and static libraries use the same namespace, and
11055
# are all built from PIC.
11058
test "$enable_shared" = yes && enable_static=no
11059
if test -n "$RANLIB"; then
11060
archive_cmds="$archive_cmds~\$RANLIB \$lib"
11061
postinstall_cmds='$RANLIB $lib'
11066
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11067
test "$enable_shared" = yes && enable_static=no
11071
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11072
$as_echo "$enable_shared" >&6; }
11074
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11075
$as_echo_n "checking whether to build static libraries... " >&6; }
11076
# Make sure either enable_shared or enable_static is yes.
11077
test "$enable_shared" = yes || enable_static=yes
11078
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11079
$as_echo "$enable_static" >&6; }
11081
# The else clause should only fire when bootstrapping the
11082
# libtool distribution, otherwise you forgot to ship ltmain.sh
11083
# with your package, and you will get complaints that there are
11084
# no rules to generate ltmain.sh.
11085
if test -f "$ltmain"; then
11086
# See if we are running on zsh, and set the options which allow our commands through
11087
# without removal of \ escapes.
11088
if test -n "${ZSH_VERSION+set}" ; then
11089
setopt NO_GLOB_SUBST
11091
# Now quote all the things that may contain metacharacters while being
11092
# careful not to overquote the AC_SUBSTed values. We take copies of the
11093
# variables and quote the copies for generation of the libtool script.
11094
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11096
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11097
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11098
deplibs_check_method reload_flag reload_cmds need_locks \
11099
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11100
lt_cv_sys_global_symbol_to_c_name_address \
11101
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11102
old_postinstall_cmds old_postuninstall_cmds \
11106
lt_prog_compiler_wl \
11107
lt_prog_compiler_pic \
11108
lt_prog_compiler_static \
11109
lt_prog_compiler_no_builtin_flag \
11110
export_dynamic_flag_spec \
11111
thread_safe_flag_spec \
11112
whole_archive_flag_spec \
11113
enable_shared_with_static_runtimes \
11115
old_archive_from_new_cmds \
11120
compiler_lib_search_path \
11121
compiler_lib_search_dirs \
11123
archive_expsym_cmds \
11125
postuninstall_cmds \
11126
old_archive_from_expsyms_cmds \
11127
allow_undefined_flag \
11128
no_undefined_flag \
11129
export_symbols_cmds \
11130
hardcode_libdir_flag_spec \
11131
hardcode_libdir_flag_spec_ld \
11132
hardcode_libdir_separator \
11133
hardcode_automatic \
11135
module_expsym_cmds \
11136
lt_cv_prog_compiler_c_o \
11139
include_expsyms; do
11142
old_archive_cmds | \
11143
old_archive_from_new_cmds | \
11145
archive_expsym_cmds | \
11147
module_expsym_cmds | \
11148
old_archive_from_expsyms_cmds | \
11149
export_symbols_cmds | \
11150
extract_expsyms_cmds | reload_cmds | finish_cmds | \
11151
postinstall_cmds | postuninstall_cmds | \
11152
old_postinstall_cmds | old_postuninstall_cmds | \
11153
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11154
# Double-quote double-evaled strings.
11155
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11158
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11164
*'\$0 --fallback-echo"')
11165
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11169
cfgfile="${ofile}T"
11170
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11172
{ $as_echo "$as_me:$LINENO: creating $ofile" >&5
11173
$as_echo "$as_me: creating $ofile" >&6;}
11175
cat <<__EOF__ >> "$cfgfile"
11178
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11179
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11180
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
11182
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
11183
# Free Software Foundation, Inc.
11185
# This file is part of GNU Libtool:
11186
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11188
# This program is free software; you can redistribute it and/or modify
11189
# it under the terms of the GNU General Public License as published by
11190
# the Free Software Foundation; either version 2 of the License, or
11191
# (at your option) any later version.
11193
# This program is distributed in the hope that it will be useful, but
11194
# WITHOUT ANY WARRANTY; without even the implied warranty of
11195
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11196
# General Public License for more details.
11198
# You should have received a copy of the GNU General Public License
11199
# along with this program; if not, write to the Free Software
11200
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11202
# As a special exception to the GNU General Public License, if you
11203
# distribute this file as part of a program that contains a
11204
# configuration script generated by Autoconf, you may include it under
11205
# the same distribution terms that you use for the rest of that program.
11207
# A sed program that does not truncate output.
11210
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
11211
Xsed="$SED -e 1s/^X//"
11213
# The HP-UX ksh and POSIX shell print the target directory to stdout
11214
# if CDPATH is set.
11215
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11217
# The names of the tagged configurations supported by this script.
11220
# ### BEGIN LIBTOOL CONFIG
11222
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11224
# Shell to use when invoking shell scripts.
11227
# Whether or not to build shared libraries.
11228
build_libtool_libs=$enable_shared
11230
# Whether or not to build static libraries.
11231
build_old_libs=$enable_static
11233
# Whether or not to add -lc for building shared libraries.
11234
build_libtool_need_lc=$archive_cmds_need_lc
11236
# Whether or not to disallow shared libs when runtime libs are static
11237
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11239
# Whether or not to optimize for fast installation.
11240
fast_install=$enable_fast_install
11243
host_alias=$host_alias
11247
# The build system.
11248
build_alias=$build_alias
11252
# An echo program that does not interpret backslashes.
11257
AR_FLAGS=$lt_AR_FLAGS
11262
# LTCC compiler flags.
11263
LTCFLAGS=$lt_LTCFLAGS
11265
# A language-specific compiler.
11268
# Is the compiler the GNU C compiler?
11274
# The linker used to build libraries.
11277
# Whether we need hard or soft links.
11280
# A BSD-compatible nm program.
11283
# A symbol stripping program
11286
# Used to examine libraries when file_magic_cmd begins "file"
11287
MAGIC_CMD=$MAGIC_CMD
11289
# Used on cygwin: DLL creation program.
11292
# Used on cygwin: object dumper.
11295
# Used on cygwin: assembler.
11298
# The name of the directory that contains temporary libtool files.
11301
# How to create reloadable object files.
11302
reload_flag=$lt_reload_flag
11303
reload_cmds=$lt_reload_cmds
11305
# How to pass a linker flag through the compiler.
11306
wl=$lt_lt_prog_compiler_wl
11308
# Object file suffix (normally "o").
11309
objext="$ac_objext"
11311
# Old archive suffix (normally "a").
11314
# Shared library suffix (normally ".so").
11315
shrext_cmds='$shrext_cmds'
11317
# Executable file suffix (normally "").
11320
# Additional compiler flags for building library objects.
11321
pic_flag=$lt_lt_prog_compiler_pic
11324
# What is the maximum length of a command?
11325
max_cmd_len=$lt_cv_sys_max_cmd_len
11327
# Does compiler simultaneously support -c and -o options?
11328
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11330
# Must we lock files when doing compilation?
11331
need_locks=$lt_need_locks
11333
# Do we need the lib prefix for modules?
11334
need_lib_prefix=$need_lib_prefix
11336
# Do we need a version for libraries?
11337
need_version=$need_version
11339
# Whether dlopen is supported.
11340
dlopen_support=$enable_dlopen
11342
# Whether dlopen of programs is supported.
11343
dlopen_self=$enable_dlopen_self
11345
# Whether dlopen of statically linked programs is supported.
11346
dlopen_self_static=$enable_dlopen_self_static
11348
# Compiler flag to prevent dynamic linking.
11349
link_static_flag=$lt_lt_prog_compiler_static
11351
# Compiler flag to turn off builtin functions.
11352
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11354
# Compiler flag to allow reflexive dlopens.
11355
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11357
# Compiler flag to generate shared objects directly from archives.
11358
whole_archive_flag_spec=$lt_whole_archive_flag_spec
11360
# Compiler flag to generate thread-safe objects.
11361
thread_safe_flag_spec=$lt_thread_safe_flag_spec
11363
# Library versioning type.
11364
version_type=$version_type
11366
# Format of library name prefix.
11367
libname_spec=$lt_libname_spec
11369
# List of archive names. First name is the real one, the rest are links.
11370
# The last name is the one that the linker finds with -lNAME.
11371
library_names_spec=$lt_library_names_spec
11373
# The coded name of the library, if different from the real name.
11374
soname_spec=$lt_soname_spec
11376
# Commands used to build and install an old-style archive.
11378
old_archive_cmds=$lt_old_archive_cmds
11379
old_postinstall_cmds=$lt_old_postinstall_cmds
11380
old_postuninstall_cmds=$lt_old_postuninstall_cmds
11382
# Create an old-style archive from a shared archive.
11383
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11385
# Create a temporary old-style archive to link instead of a shared archive.
11386
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11388
# Commands used to build and install a shared archive.
11389
archive_cmds=$lt_archive_cmds
11390
archive_expsym_cmds=$lt_archive_expsym_cmds
11391
postinstall_cmds=$lt_postinstall_cmds
11392
postuninstall_cmds=$lt_postuninstall_cmds
11394
# Commands used to build a loadable module (assumed same as above if empty)
11395
module_cmds=$lt_module_cmds
11396
module_expsym_cmds=$lt_module_expsym_cmds
11398
# Commands to strip libraries.
11399
old_striplib=$lt_old_striplib
11400
striplib=$lt_striplib
11402
# Dependencies to place before the objects being linked to create a
11404
predep_objects=$lt_predep_objects
11406
# Dependencies to place after the objects being linked to create a
11408
postdep_objects=$lt_postdep_objects
11410
# Dependencies to place before the objects being linked to create a
11412
predeps=$lt_predeps
11414
# Dependencies to place after the objects being linked to create a
11416
postdeps=$lt_postdeps
11418
# The directories searched by this compiler when creating a shared
11420
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11422
# The library search path used internally by the compiler when linking
11423
# a shared library.
11424
compiler_lib_search_path=$lt_compiler_lib_search_path
11426
# Method to check whether dependent libraries are shared objects.
11427
deplibs_check_method=$lt_deplibs_check_method
11429
# Command to use when deplibs_check_method == file_magic.
11430
file_magic_cmd=$lt_file_magic_cmd
11432
# Flag that allows shared libraries with undefined symbols to be built.
11433
allow_undefined_flag=$lt_allow_undefined_flag
11435
# Flag that forces no undefined symbols.
11436
no_undefined_flag=$lt_no_undefined_flag
11438
# Commands used to finish a libtool library installation in a directory.
11439
finish_cmds=$lt_finish_cmds
11441
# Same as above, but a single script fragment to be evaled but not shown.
11442
finish_eval=$lt_finish_eval
11444
# Take the output of nm and produce a listing of raw symbols and C names.
11445
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11447
# Transform the output of nm in a proper C declaration
11448
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11450
# Transform the output of nm in a C name address pair
11451
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11453
# This is the shared library runtime path variable.
11454
runpath_var=$runpath_var
11456
# This is the shared library path variable.
11457
shlibpath_var=$shlibpath_var
11459
# Is shlibpath searched before the hard-coded library search path?
11460
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11462
# How to hardcode a shared library path into an executable.
11463
hardcode_action=$hardcode_action
11465
# Whether we should hardcode library paths into libraries.
11466
hardcode_into_libs=$hardcode_into_libs
11468
# Flag to hardcode \$libdir into a binary during linking.
11469
# This must work even if \$libdir does not exist.
11470
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11472
# If ld is used when linking, flag to hardcode \$libdir into
11473
# a binary during linking. This must work even if \$libdir does
11475
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11477
# Whether we need a single -rpath flag with a separated argument.
11478
hardcode_libdir_separator=$lt_hardcode_libdir_separator
11480
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11481
# resulting binary.
11482
hardcode_direct=$hardcode_direct
11484
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11485
# resulting binary.
11486
hardcode_minus_L=$hardcode_minus_L
11488
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11489
# the resulting binary.
11490
hardcode_shlibpath_var=$hardcode_shlibpath_var
11492
# Set to yes if building a shared library automatically hardcodes DIR into the library
11493
# and all subsequent libraries and executables linked against it.
11494
hardcode_automatic=$hardcode_automatic
11496
# Variables whose values should be saved in libtool wrapper scripts and
11497
# restored at relink time.
11498
variables_saved_for_relink="$variables_saved_for_relink"
11500
# Whether libtool must link a program against all its dependency libraries.
11501
link_all_deplibs=$link_all_deplibs
11503
# Compile-time system search path for libraries
11504
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11506
# Run-time system search path for libraries
11507
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11509
# Fix the shell variable \$srcfile for the compiler.
11510
fix_srcfile_path=$lt_fix_srcfile_path
11512
# Set to yes if exported symbols are required.
11513
always_export_symbols=$always_export_symbols
11515
# The commands to list exported symbols.
11516
export_symbols_cmds=$lt_export_symbols_cmds
11518
# The commands to extract the exported symbol list from a shared archive.
11519
extract_expsyms_cmds=$lt_extract_expsyms_cmds
11521
# Symbols that should not be listed in the preloaded symbols.
11522
exclude_expsyms=$lt_exclude_expsyms
11524
# Symbols that must always be exported.
11525
include_expsyms=$lt_include_expsyms
11527
# ### END LIBTOOL CONFIG
11534
cat <<\EOF >> "$cfgfile"
11536
# AIX sometimes has problems with the GCC collect2 program. For some
11537
# reason, if we set the COLLECT_NAMES environment variable, the problems
11538
# vanish in a puff of smoke.
11539
if test "X${COLLECT_NAMES+set}" != Xset; then
11541
export COLLECT_NAMES
11547
# We use sed instead of cat because bash on DJGPP gets confused if
11548
# if finds mixed CR/LF and LF-only lines. Since sed operates in
11549
# text mode, it properly converts lines to CR/LF. This bash problem
11550
# is reportedly fixed, but why not run on old versions too?
11551
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11553
mv -f "$cfgfile" "$ofile" || \
11554
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11558
# If there is no Makefile yet, we rely on a make rule to execute
11559
# `config.status --recheck' to rerun these tests and create the
11560
# libtool script then.
11561
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11562
if test -f "$ltmain_in"; then
11563
test -f Makefile && make "$ltmain"
11569
ac_cpp='$CPP $CPPFLAGS'
11570
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11571
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11572
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11577
# Check whether --with-tags was given.
11578
if test "${with_tags+set}" = set; then
11579
withval=$with_tags; tagnames="$withval"
11583
if test -f "$ltmain" && test -n "$tagnames"; then
11584
if test ! -f "${ofile}"; then
11585
{ $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11586
$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11589
if test -z "$LTCC"; then
11590
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11591
if test -z "$LTCC"; then
11592
{ $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11593
$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11595
{ $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11596
$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11599
if test -z "$LTCFLAGS"; then
11600
eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11603
# Extract list of available tagged configurations in $ofile.
11604
# Note that this assumes the entire list is on one line.
11605
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11607
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11608
for tagname in $tagnames; do
11610
# Check whether tagname contains only valid characters
11611
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11613
*) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11614
$as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
11615
{ (exit 1); exit 1; }; }
11619
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11621
{ { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11622
$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11623
{ (exit 1); exit 1; }; }
11626
# Update the list of available tags.
11627
if test -n "$tagname"; then
11628
echo appending configuration tag \"$tagname\" to $ofile
11632
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11633
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11634
(test "X$CXX" != "Xg++"))) ; then
11636
ac_cpp='$CXXCPP $CPPFLAGS'
11637
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11638
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11639
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11644
archive_cmds_need_lc_CXX=no
11645
allow_undefined_flag_CXX=
11646
always_export_symbols_CXX=no
11647
archive_expsym_cmds_CXX=
11648
export_dynamic_flag_spec_CXX=
11649
hardcode_direct_CXX=no
11650
hardcode_libdir_flag_spec_CXX=
11651
hardcode_libdir_flag_spec_ld_CXX=
11652
hardcode_libdir_separator_CXX=
11653
hardcode_minus_L_CXX=no
11654
hardcode_shlibpath_var_CXX=unsupported
11655
hardcode_automatic_CXX=no
11657
module_expsym_cmds_CXX=
11658
link_all_deplibs_CXX=unknown
11659
old_archive_cmds_CXX=$old_archive_cmds
11660
no_undefined_flag_CXX=
11661
whole_archive_flag_spec_CXX=
11662
enable_shared_with_static_runtimes_CXX=no
11664
# Dependencies to place before and after the object being linked:
11665
predep_objects_CXX=
11666
postdep_objects_CXX=
11669
compiler_lib_search_path_CXX=
11670
compiler_lib_search_dirs_CXX=
11672
# Source file extension for C++ test sources.
11675
# Object file extension for compiled C++ test sources.
11679
# Code to be used in simple compile tests
11680
lt_simple_compile_test_code="int some_variable = 0;"
11682
# Code to be used in simple link tests
11683
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11685
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11687
# If no C compiler was specified, use CC.
11690
# If no C compiler flags were specified, use CFLAGS.
11691
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11693
# Allow CC to be a program name with arguments.
11697
# save warnings/boilerplate of simple test code
11698
ac_outfile=conftest.$ac_objext
11699
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11700
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11701
_lt_compiler_boilerplate=`cat conftest.err`
11704
ac_outfile=conftest.$ac_objext
11705
echo "$lt_simple_link_test_code" >conftest.$ac_ext
11706
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11707
_lt_linker_boilerplate=`cat conftest.err`
11711
# Allow CC to be a program name with arguments.
11716
lt_save_with_gnu_ld=$with_gnu_ld
11717
lt_save_path_LD=$lt_cv_path_LD
11718
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11719
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11721
$as_unset lt_cv_prog_gnu_ld
11723
if test -n "${lt_cv_path_LDCXX+set}"; then
11724
lt_cv_path_LD=$lt_cv_path_LDCXX
11726
$as_unset lt_cv_path_LD
11728
test -z "${LDCXX+set}" || LD=$LDCXX
11732
for cc_temp in $compiler""; do
11734
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11735
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11740
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11743
# We don't want -fno-exception wen compiling C++ code, so set the
11744
# no_builtin_flag separately
11745
if test "$GXX" = yes; then
11746
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11748
lt_prog_compiler_no_builtin_flag_CXX=
11751
if test "$GXX" = yes; then
11752
# Set up default GNU C++ configuration
11755
# Check whether --with-gnu-ld was given.
11756
if test "${with_gnu_ld+set}" = set; then
11757
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11763
if test "$GCC" = yes; then
11764
# Check if gcc -print-prog-name=ld gives a path.
11765
{ $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11766
$as_echo_n "checking for ld used by $CC... " >&6; }
11769
# gcc leaves a trailing carriage return which upsets mingw
11770
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11772
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11775
# Accept absolute paths.
11777
re_direlt='/[^/][^/]*/\.\./'
11778
# Canonicalize the pathname of ld
11779
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11780
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11781
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11783
test -z "$LD" && LD="$ac_prog"
11786
# If it fails, then pretend we aren't using GCC.
11790
# If it is relative, then search for the first ld in PATH.
11791
with_gnu_ld=unknown
11794
elif test "$with_gnu_ld" = yes; then
11795
{ $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
11796
$as_echo_n "checking for GNU ld... " >&6; }
11798
{ $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11799
$as_echo_n "checking for non-GNU ld... " >&6; }
11801
if test "${lt_cv_path_LD+set}" = set; then
11802
$as_echo_n "(cached) " >&6
11804
if test -z "$LD"; then
11805
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11806
for ac_dir in $PATH; do
11808
test -z "$ac_dir" && ac_dir=.
11809
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11810
lt_cv_path_LD="$ac_dir/$ac_prog"
11811
# Check to see if the program is GNU ld. I'd rather use --version,
11812
# but apparently some variants of GNU ld only accept -v.
11813
# Break only if it was the GNU/non-GNU ld that we prefer.
11814
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11815
*GNU* | *'with BFD'*)
11816
test "$with_gnu_ld" != no && break
11819
test "$with_gnu_ld" != yes && break
11826
lt_cv_path_LD="$LD" # Let the user override the test with a path.
11830
LD="$lt_cv_path_LD"
11831
if test -n "$LD"; then
11832
{ $as_echo "$as_me:$LINENO: result: $LD" >&5
11833
$as_echo "$LD" >&6; }
11835
{ $as_echo "$as_me:$LINENO: result: no" >&5
11836
$as_echo "no" >&6; }
11838
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11839
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11840
{ (exit 1); exit 1; }; }
11841
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11842
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11843
if test "${lt_cv_prog_gnu_ld+set}" = set; then
11844
$as_echo_n "(cached) " >&6
11846
# I'd rather use --version here, but apparently some GNU lds only accept -v.
11847
case `$LD -v 2>&1 </dev/null` in
11848
*GNU* | *'with BFD'*)
11849
lt_cv_prog_gnu_ld=yes
11852
lt_cv_prog_gnu_ld=no
11856
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11857
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11858
with_gnu_ld=$lt_cv_prog_gnu_ld
11862
# Check if GNU C++ uses GNU ld as the underlying linker, since the
11863
# archiving commands below assume that GNU ld is being used.
11864
if test "$with_gnu_ld" = yes; then
11865
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11866
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'
11868
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11869
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11871
# If archive_cmds runs LD, not CC, wlarc should be empty
11872
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11873
# investigate it a little bit more. (MM)
11876
# ancient GNU ld didn't support --whole-archive et. al.
11877
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11878
grep 'no-whole-archive' > /dev/null; then
11879
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11881
whole_archive_flag_spec_CXX=
11887
# A generic and very simple default shared library creation
11888
# command for GNU C++ for the case where it uses the native
11889
# linker, instead of GNU ld. If possible, this setting should
11890
# overridden to take advantage of the native linker features on
11891
# the platform it is being used on.
11892
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11895
# Commands to make compiler produce verbose output that lists
11896
# what "hidden" libraries, object files and flags are used when
11897
# linking a shared library.
11898
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11906
# PORTME: fill in a description of your system's C++ link characteristics
11907
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11908
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11912
# FIXME: insert proper C++ library support
11916
if test "$host_cpu" = ia64; then
11917
# On IA64, the linker does run time linking by default, so we don't
11918
# have to do anything special.
11919
aix_use_runtimelinking=no
11920
exp_sym_flag='-Bexport'
11923
aix_use_runtimelinking=no
11925
# Test if we are trying to use run time linking or normal
11926
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11927
# need to do runtime linking.
11928
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11929
for ld_flag in $LDFLAGS; do
11932
aix_use_runtimelinking=yes
11940
exp_sym_flag='-bexport'
11941
no_entry_flag='-bnoentry'
11944
# When large executables or shared objects are built, AIX ld can
11945
# have problems creating the table of contents. If linking a library
11946
# or program results in "error TOC overflow" add -mminimal-toc to
11947
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11948
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11950
archive_cmds_CXX=''
11951
hardcode_direct_CXX=yes
11952
hardcode_libdir_separator_CXX=':'
11953
link_all_deplibs_CXX=yes
11955
if test "$GXX" = yes; then
11956
case $host_os in aix4.[012]|aix4.[012].*)
11957
# We only want to do this on AIX 4.2 and lower, the check
11958
# below for broken collect2 doesn't work under 4.3+
11959
collect2name=`${CC} -print-prog-name=collect2`
11960
if test -f "$collect2name" && \
11961
strings "$collect2name" | grep resolve_lib_name >/dev/null
11963
# We have reworked collect2
11966
# We have old collect2
11967
hardcode_direct_CXX=unsupported
11968
# It fails to find uninstalled libraries when the uninstalled
11969
# path is not listed in the libpath. Setting hardcode_minus_L
11970
# to unsupported forces relinking
11971
hardcode_minus_L_CXX=yes
11972
hardcode_libdir_flag_spec_CXX='-L$libdir'
11973
hardcode_libdir_separator_CXX=
11977
shared_flag='-shared'
11978
if test "$aix_use_runtimelinking" = yes; then
11979
shared_flag="$shared_flag "'${wl}-G'
11983
if test "$host_cpu" = ia64; then
11984
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11985
# chokes on -Wl,-G. The following line is correct:
11988
if test "$aix_use_runtimelinking" = yes; then
11989
shared_flag='${wl}-G'
11991
shared_flag='${wl}-bM:SRE'
11996
# It seems that -bexpall does not export symbols beginning with
11997
# underscore (_), so it is better to generate a list of symbols to export.
11998
always_export_symbols_CXX=yes
11999
if test "$aix_use_runtimelinking" = yes; then
12000
# Warning - without using the other runtime loading flags (-brtl),
12001
# -berok will link without error, but may produce a broken library.
12002
allow_undefined_flag_CXX='-berok'
12003
# Determine the default libpath from the value encoded in an empty executable.
12004
cat >conftest.$ac_ext <<_ACEOF
12007
cat confdefs.h >>conftest.$ac_ext
12008
cat >>conftest.$ac_ext <<_ACEOF
12009
/* end confdefs.h. */
12019
rm -f conftest.$ac_objext conftest$ac_exeext
12020
if { (ac_try="$ac_link"
12021
case "(($ac_try" in
12022
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12023
*) ac_try_echo=$ac_try;;
12025
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12026
$as_echo "$ac_try_echo") >&5
12027
(eval "$ac_link") 2>conftest.er1
12029
grep -v '^ *+' conftest.er1 >conftest.err
12031
cat conftest.err >&5
12032
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033
(exit $ac_status); } && {
12034
test -z "$ac_cxx_werror_flag" ||
12035
test ! -s conftest.err
12036
} && test -s conftest$ac_exeext && {
12037
test "$cross_compiling" = yes ||
12038
$as_test_x conftest$ac_exeext
12041
lt_aix_libpath_sed='
12042
/Import File Strings/,/^$/ {
12048
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12049
# Check for a 64-bit object if we didn't find anything.
12050
if test -z "$aix_libpath"; then
12051
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12054
$as_echo "$as_me: failed program was:" >&5
12055
sed 's/^/| /' conftest.$ac_ext >&5
12060
rm -rf conftest.dSYM
12061
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12062
conftest$ac_exeext conftest.$ac_ext
12063
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12065
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12067
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"
12069
if test "$host_cpu" = ia64; then
12070
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12071
allow_undefined_flag_CXX="-z nodefs"
12072
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"
12074
# Determine the default libpath from the value encoded in an empty executable.
12075
cat >conftest.$ac_ext <<_ACEOF
12078
cat confdefs.h >>conftest.$ac_ext
12079
cat >>conftest.$ac_ext <<_ACEOF
12080
/* end confdefs.h. */
12090
rm -f conftest.$ac_objext conftest$ac_exeext
12091
if { (ac_try="$ac_link"
12092
case "(($ac_try" in
12093
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12094
*) ac_try_echo=$ac_try;;
12096
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12097
$as_echo "$ac_try_echo") >&5
12098
(eval "$ac_link") 2>conftest.er1
12100
grep -v '^ *+' conftest.er1 >conftest.err
12102
cat conftest.err >&5
12103
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104
(exit $ac_status); } && {
12105
test -z "$ac_cxx_werror_flag" ||
12106
test ! -s conftest.err
12107
} && test -s conftest$ac_exeext && {
12108
test "$cross_compiling" = yes ||
12109
$as_test_x conftest$ac_exeext
12112
lt_aix_libpath_sed='
12113
/Import File Strings/,/^$/ {
12119
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12120
# Check for a 64-bit object if we didn't find anything.
12121
if test -z "$aix_libpath"; then
12122
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12125
$as_echo "$as_me: failed program was:" >&5
12126
sed 's/^/| /' conftest.$ac_ext >&5
12131
rm -rf conftest.dSYM
12132
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12133
conftest$ac_exeext conftest.$ac_ext
12134
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12136
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12137
# Warning - without using the other run time loading flags,
12138
# -berok will link without error, but may produce a broken library.
12139
no_undefined_flag_CXX=' ${wl}-bernotok'
12140
allow_undefined_flag_CXX=' ${wl}-berok'
12141
# Exported symbols can be pulled into shared objects from archives
12142
whole_archive_flag_spec_CXX='$convenience'
12143
archive_cmds_need_lc_CXX=yes
12144
# This is similar to how AIX traditionally builds its shared libraries.
12145
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'
12151
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12152
allow_undefined_flag_CXX=unsupported
12153
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12154
# support --undefined. This deserves some investigation. FIXME
12155
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12162
case $cc_basename in
12164
# FIXME: insert proper C++ library support
12170
cygwin* | mingw* | pw32*)
12171
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12172
# as there is no search path for DLLs.
12173
hardcode_libdir_flag_spec_CXX='-L$libdir'
12174
allow_undefined_flag_CXX=unsupported
12175
always_export_symbols_CXX=no
12176
enable_shared_with_static_runtimes_CXX=yes
12178
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12179
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'
12180
# If the export-symbols file already is a .def file (1st line
12181
# is EXPORTS), use it as is; otherwise, prepend...
12182
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12183
cp $export_symbols $output_objdir/$soname.def;
12185
echo EXPORTS > $output_objdir/$soname.def;
12186
cat $export_symbols >> $output_objdir/$soname.def;
12188
$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'
12193
darwin* | rhapsody*)
12194
archive_cmds_need_lc_CXX=no
12195
hardcode_direct_CXX=no
12196
hardcode_automatic_CXX=yes
12197
hardcode_shlibpath_var_CXX=unsupported
12198
whole_archive_flag_spec_CXX=''
12199
link_all_deplibs_CXX=yes
12200
allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12201
if test "$GXX" = yes ; then
12202
output_verbose_link_cmd='echo'
12203
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}"
12204
module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12205
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}"
12206
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}"
12207
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12208
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}"
12209
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}"
12212
case $cc_basename in
12214
output_verbose_link_cmd='echo'
12215
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'
12216
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12217
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12218
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}'
12219
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}'
12229
case $cc_basename in
12231
# FIXME: insert proper C++ library support
12235
# Green Hills C++ Compiler
12236
# FIXME: insert proper C++ library support
12240
# FIXME: insert proper C++ library support
12246
# C++ shared libraries reported to be fairly broken before switch to ELF
12250
archive_cmds_need_lc_CXX=no
12252
freebsd* | dragonfly*)
12253
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12260
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12261
hardcode_libdir_separator_CXX=:
12262
export_dynamic_flag_spec_CXX='${wl}-E'
12263
hardcode_direct_CXX=yes
12264
hardcode_minus_L_CXX=yes # Not in the search PATH,
12265
# but as the default
12266
# location of the library.
12268
case $cc_basename in
12270
# FIXME: insert proper C++ library support
12274
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'
12275
# Commands to make compiler produce verbose output that lists
12276
# what "hidden" libraries, object files and flags are used when
12277
# linking a shared library.
12279
# There doesn't appear to be a way to prevent this compiler from
12280
# explicitly linking system object files so we need to strip them
12281
# from the output so that they don't get included in the library
12283
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'
12286
if test "$GXX" = yes; then
12287
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'
12289
# FIXME: insert proper C++ library support
12296
if test $with_gnu_ld = no; then
12297
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12298
hardcode_libdir_separator_CXX=:
12303
export_dynamic_flag_spec_CXX='${wl}-E'
12309
hardcode_direct_CXX=no
12310
hardcode_shlibpath_var_CXX=no
12313
hardcode_direct_CXX=yes
12314
hardcode_minus_L_CXX=yes # Not in the search PATH,
12315
# but as the default
12316
# location of the library.
12320
case $cc_basename in
12322
# FIXME: insert proper C++ library support
12328
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12331
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12334
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12337
# Commands to make compiler produce verbose output that lists
12338
# what "hidden" libraries, object files and flags are used when
12339
# linking a shared library.
12341
# There doesn't appear to be a way to prevent this compiler from
12342
# explicitly linking system object files so we need to strip them
12343
# from the output so that they don't get included in the library
12345
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'
12348
if test "$GXX" = yes; then
12349
if test $with_gnu_ld = no; then
12352
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12355
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12358
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'
12363
# FIXME: insert proper C++ library support
12370
hardcode_direct_CXX=no
12371
hardcode_shlibpath_var_CXX=no
12372
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12373
export_dynamic_flag_spec_CXX='${wl}-E'
12374
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12375
# Instead, shared libraries are loaded at an image base (0x10000000 by
12376
# default) and relocated if they conflict, which is a slow very memory
12377
# consuming and fragmenting process. To avoid this, we pick a random,
12378
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12379
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
12380
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'
12381
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'
12384
case $cc_basename in
12387
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'
12389
# Archives containing C++ object files must be created using
12390
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
12391
# necessary to make sure instantiated templates are included
12393
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12396
if test "$GXX" = yes; then
12397
if test "$with_gnu_ld" = no; then
12398
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'
12400
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'
12403
link_all_deplibs_CXX=yes
12406
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12407
hardcode_libdir_separator_CXX=:
12409
linux* | k*bsd*-gnu)
12410
case $cc_basename in
12412
# Kuck and Associates, Inc. (KAI) C++ Compiler
12414
# KCC will only create a shared library if the output file
12415
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12416
# to its proper name (with version) after linking.
12417
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'
12418
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'
12419
# Commands to make compiler produce verbose output that lists
12420
# what "hidden" libraries, object files and flags are used when
12421
# linking a shared library.
12423
# There doesn't appear to be a way to prevent this compiler from
12424
# explicitly linking system object files so we need to strip them
12425
# from the output so that they don't get included in the library
12427
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'
12429
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12430
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12432
# Archives containing C++ object files must be created using
12433
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12434
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12439
# version 8.0 and above of icpc choke on multiply defined symbols
12440
# if we add $predep_objects and $postdep_objects, however 7.1 and
12441
# earlier do not add the objects themselves.
12442
case `$CC -V 2>&1` in
12444
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12445
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'
12447
*) # Version 8.0 or newer
12450
ia64*) tmp_idyn=' -i_dynamic';;
12452
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12453
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'
12456
archive_cmds_need_lc_CXX=no
12457
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12458
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12459
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12462
# Portland Group C++ compiler
12463
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12464
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'
12466
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12467
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12468
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'
12472
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12473
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'
12475
runpath_var=LD_RUN_PATH
12476
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12477
hardcode_libdir_separator_CXX=:
12479
# Commands to make compiler produce verbose output that lists
12480
# what "hidden" libraries, object files and flags are used when
12481
# linking a shared library.
12483
# There doesn't appear to be a way to prevent this compiler from
12484
# explicitly linking system object files so we need to strip them
12485
# from the output so that they don't get included in the library
12487
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'
12490
case `$CC -V 2>&1 | sed 5q` in
12493
no_undefined_flag_CXX=' -zdefs'
12494
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12495
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'
12496
hardcode_libdir_flag_spec_CXX='-R$libdir'
12497
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'
12499
# Not sure whether something based on
12500
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12502
output_verbose_link_cmd='echo'
12504
# Archives containing C++ object files must be created using
12505
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12506
# necessary to make sure instantiated templates are included
12508
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12515
# FIXME: insert proper C++ library support
12519
# FIXME: insert proper C++ library support
12523
case $cc_basename in
12525
# FIXME: insert proper C++ library support
12529
# FIXME: insert proper C++ library support
12535
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12536
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12538
hardcode_libdir_flag_spec_CXX='-R$libdir'
12539
hardcode_direct_CXX=yes
12540
hardcode_shlibpath_var_CXX=no
12542
# Workaround some broken pre-1.5 toolchains
12543
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12546
# C++ shared libraries are fairly broken
12550
if test -f /usr/libexec/ld.so; then
12551
hardcode_direct_CXX=yes
12552
hardcode_shlibpath_var_CXX=no
12553
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12554
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12555
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12556
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12557
export_dynamic_flag_spec_CXX='${wl}-E'
12558
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12560
output_verbose_link_cmd='echo'
12566
case $cc_basename in
12568
# Kuck and Associates, Inc. (KAI) C++ Compiler
12570
# KCC will only create a shared library if the output file
12571
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12572
# to its proper name (with version) after linking.
12573
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'
12575
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12576
hardcode_libdir_separator_CXX=:
12578
# Archives containing C++ object files must be created using
12579
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12580
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12584
# Rational C++ 2.4.1
12585
# FIXME: insert proper C++ library support
12589
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12590
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'
12592
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12593
hardcode_libdir_separator_CXX=:
12595
# Commands to make compiler produce verbose output that lists
12596
# what "hidden" libraries, object files and flags are used when
12597
# linking a shared library.
12599
# There doesn't appear to be a way to prevent this compiler from
12600
# explicitly linking system object files so we need to strip them
12601
# from the output so that they don't get included in the library
12603
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'
12606
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12607
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12608
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'
12610
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12611
hardcode_libdir_separator_CXX=:
12613
# Commands to make compiler produce verbose output that lists
12614
# what "hidden" libraries, object files and flags are used when
12615
# linking a shared library.
12616
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12619
# FIXME: insert proper C++ library support
12626
case $cc_basename in
12628
# Kuck and Associates, Inc. (KAI) C++ Compiler
12630
# KCC will only create a shared library if the output file
12631
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12632
# to its proper name (with version) after linking.
12633
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'
12635
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12636
hardcode_libdir_separator_CXX=:
12638
# Archives containing C++ object files must be created using
12639
# the KAI C++ compiler.
12640
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12643
# Rational C++ 2.4.1
12644
# FIXME: insert proper C++ library support
12648
allow_undefined_flag_CXX=' -expect_unresolved \*'
12649
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'
12650
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12651
echo "-hidden">> $lib.exp~
12652
$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~
12655
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12656
hardcode_libdir_separator_CXX=:
12658
# Commands to make compiler produce verbose output that lists
12659
# what "hidden" libraries, object files and flags are used when
12660
# linking a shared library.
12662
# There doesn't appear to be a way to prevent this compiler from
12663
# explicitly linking system object files so we need to strip them
12664
# from the output so that they don't get included in the library
12666
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'
12669
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12670
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12671
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'
12673
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12674
hardcode_libdir_separator_CXX=:
12676
# Commands to make compiler produce verbose output that lists
12677
# what "hidden" libraries, object files and flags are used when
12678
# linking a shared library.
12679
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12682
# FIXME: insert proper C++ library support
12689
# FIXME: insert proper C++ library support
12693
case $cc_basename in
12696
# FIXME: insert proper C++ library support
12701
# FIXME: insert proper C++ library support
12705
# FIXME: insert proper C++ library support
12711
case $cc_basename in
12713
# Sun C++ 4.2, 5.x and Centerline C++
12714
archive_cmds_need_lc_CXX=yes
12715
no_undefined_flag_CXX=' -zdefs'
12716
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12717
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12718
$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'
12720
hardcode_libdir_flag_spec_CXX='-R$libdir'
12721
hardcode_shlibpath_var_CXX=no
12723
solaris2.[0-5] | solaris2.[0-5].*) ;;
12725
# The compiler driver will combine and reorder linker options,
12726
# but understands `-z linker_flag'.
12727
# Supported since Solaris 2.6 (maybe 2.5.1?)
12728
whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12731
link_all_deplibs_CXX=yes
12733
output_verbose_link_cmd='echo'
12735
# Archives containing C++ object files must be created using
12736
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12737
# necessary to make sure instantiated templates are included
12739
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12742
# Green Hills C++ Compiler
12743
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12745
# The C++ compiler must be used to create the archive.
12746
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12749
# GNU C++ compiler with Solaris linker
12750
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12751
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12752
if $CC --version | grep -v '^2\.7' > /dev/null; then
12753
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12754
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12755
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12757
# Commands to make compiler produce verbose output that lists
12758
# what "hidden" libraries, object files and flags are used when
12759
# linking a shared library.
12760
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12762
# g++ 2.7 appears to require `-G' NOT `-shared' on this
12764
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12765
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12766
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12768
# Commands to make compiler produce verbose output that lists
12769
# what "hidden" libraries, object files and flags are used when
12770
# linking a shared library.
12771
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12774
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12776
solaris2.[0-5] | solaris2.[0-5].*) ;;
12778
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12785
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12786
no_undefined_flag_CXX='${wl}-z,text'
12787
archive_cmds_need_lc_CXX=no
12788
hardcode_shlibpath_var_CXX=no
12789
runpath_var='LD_RUN_PATH'
12791
case $cc_basename in
12793
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12794
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12797
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12798
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12802
sysv5* | sco3.2v5* | sco5v6*)
12803
# Note: We can NOT use -z defs as we might desire, because we do not
12804
# link with -lc, and that would cause any symbols used from libc to
12805
# always be unresolved, which means just about no library would
12806
# ever link correctly. If we're not using GNU ld we use -z text
12807
# though, which does catch some bad symbols but isn't as heavy-handed
12809
# For security reasons, it is highly recommended that you always
12810
# use absolute paths for naming shared libraries, and exclude the
12811
# DT_RUNPATH tag from executables and libraries. But doing so
12812
# requires that you compile everything twice, which is a pain.
12813
# So that behaviour is only enabled if SCOABSPATH is set to a
12814
# non-empty value in the environment. Most likely only useful for
12815
# creating official distributions of packages.
12816
# This is a hack until libtool officially supports absolute path
12817
# names for shared libraries.
12818
no_undefined_flag_CXX='${wl}-z,text'
12819
allow_undefined_flag_CXX='${wl}-z,nodefs'
12820
archive_cmds_need_lc_CXX=no
12821
hardcode_shlibpath_var_CXX=no
12822
hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12823
hardcode_libdir_separator_CXX=':'
12824
link_all_deplibs_CXX=yes
12825
export_dynamic_flag_spec_CXX='${wl}-Bexport'
12826
runpath_var='LD_RUN_PATH'
12828
case $cc_basename in
12830
archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12831
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12834
archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12835
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12840
case $cc_basename in
12842
# NonStop-UX NCC 3.20
12843
# FIXME: insert proper C++ library support
12847
# FIXME: insert proper C++ library support
12853
# FIXME: insert proper C++ library support
12857
# FIXME: insert proper C++ library support
12861
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12862
$as_echo "$ld_shlibs_CXX" >&6; }
12863
test "$ld_shlibs_CXX" = no && can_build_shared=no
12868
cat > conftest.$ac_ext <<EOF
12872
Foo (void) { a = 0; }
12878
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12879
(eval $ac_compile) 2>&5
12881
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882
(exit $ac_status); }; then
12883
# Parse the compiler output and extract the necessary
12884
# objects, libraries and library flags.
12886
# Sentinel used to keep track of whether or not we are before
12887
# the conftest object file.
12888
pre_test_object_deps_done=no
12890
# The `*' in the case matches for architectures that use `case' in
12891
# $output_verbose_cmd can trigger glob expansion during the loop
12892
# eval without this substitution.
12893
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12895
for p in `eval $output_verbose_link_cmd`; do
12899
# Some compilers place space between "-{L,R}" and the path.
12900
# Remove the space.
12901
if test $p = "-L" \
12902
|| test $p = "-R"; then
12909
if test "$pre_test_object_deps_done" = no; then
12912
# Internal compiler library paths should come after those
12913
# provided the user. The postdeps already come after the
12914
# user supplied libs so there is no need to process them.
12915
if test -z "$compiler_lib_search_path_CXX"; then
12916
compiler_lib_search_path_CXX="${prev}${p}"
12918
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12921
# The "-l" case would never come before the object being
12922
# linked, so don't bother handling this case.
12925
if test -z "$postdeps_CXX"; then
12926
postdeps_CXX="${prev}${p}"
12928
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12934
# This assumes that the test object file only shows up
12935
# once in the compiler output.
12936
if test "$p" = "conftest.$objext"; then
12937
pre_test_object_deps_done=yes
12941
if test "$pre_test_object_deps_done" = no; then
12942
if test -z "$predep_objects_CXX"; then
12943
predep_objects_CXX="$p"
12945
predep_objects_CXX="$predep_objects_CXX $p"
12948
if test -z "$postdep_objects_CXX"; then
12949
postdep_objects_CXX="$p"
12951
postdep_objects_CXX="$postdep_objects_CXX $p"
12956
*) ;; # Ignore the rest.
12964
echo "libtool.m4: error: problem compiling CXX test program"
12967
$rm -f confest.$objext
12969
compiler_lib_search_dirs_CXX=
12970
if test -n "$compiler_lib_search_path_CXX"; then
12971
compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12974
# PORTME: override above test on systems where it is broken
12977
# Interix 3.5 installs completely hosed .la files for C++, so rather than
12978
# hack all around it, let's just trust "g++" to DTRT.
12979
predep_objects_CXX=
12980
postdep_objects_CXX=
12985
case `$CC -V 2>&1 | sed 5q` in
12989
# The more standards-conforming stlport4 library is
12990
# incompatible with the Cstd library. Avoid specifying
12991
# it if it's in CXXFLAGS. Ignore libCrun as
12992
# -library=stlport4 depends on it.
12993
case " $CXX $CXXFLAGS " in
12994
*" -library=stlport4 "*)
12995
solaris_use_stlport4=yes
12998
if test "$solaris_use_stlport4" != yes; then
12999
postdeps_CXX='-library=Cstd -library=Crun'
13006
case $cc_basename in
13008
# The more standards-conforming stlport4 library is
13009
# incompatible with the Cstd library. Avoid specifying
13010
# it if it's in CXXFLAGS. Ignore libCrun as
13011
# -library=stlport4 depends on it.
13012
case " $CXX $CXXFLAGS " in
13013
*" -library=stlport4 "*)
13014
solaris_use_stlport4=yes
13018
# Adding this requires a known-good setup of shared libraries for
13019
# Sun compiler versions before 5.6, else PIC objects from an old
13020
# archive will be linked into the output, leading to subtle bugs.
13021
if test "$solaris_use_stlport4" != yes; then
13022
postdeps_CXX='-library=Cstd -library=Crun'
13029
case " $postdeps_CXX " in
13030
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13033
lt_prog_compiler_wl_CXX=
13034
lt_prog_compiler_pic_CXX=
13035
lt_prog_compiler_static_CXX=
13037
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13038
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13040
# C++ specific cases for pic, static, wl, etc.
13041
if test "$GXX" = yes; then
13042
lt_prog_compiler_wl_CXX='-Wl,'
13043
lt_prog_compiler_static_CXX='-static'
13047
# All AIX code is PIC.
13048
if test "$host_cpu" = ia64; then
13049
# AIX 5 now supports IA64 processor
13050
lt_prog_compiler_static_CXX='-Bstatic'
13054
# FIXME: we need at least 68020 code to build shared libraries, but
13055
# adding the `-m68020' flag to GCC prevents building anything better,
13057
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13059
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13060
# PIC is the default for these OSes.
13062
mingw* | cygwin* | os2* | pw32*)
13063
# This hack is so that the source file can tell whether it is being
13064
# built for inclusion in a dll (and should export symbols for example).
13065
# Although the cygwin gcc ignores -fPIC, still need this for old-style
13066
# (--disable-auto-import) libraries
13067
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13069
darwin* | rhapsody*)
13070
# PIC is the default on this platform
13071
# Common symbols not allowed in MH_DYLIB files
13072
lt_prog_compiler_pic_CXX='-fno-common'
13075
# DJGPP does not support shared libraries at all
13076
lt_prog_compiler_pic_CXX=
13079
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
13080
# Instead, we relocate shared libraries at runtime.
13083
if test -d /usr/nec; then
13084
lt_prog_compiler_pic_CXX=-Kconform_pic
13088
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13089
# not for PA HP-UX.
13094
lt_prog_compiler_pic_CXX='-fPIC'
13099
lt_prog_compiler_pic_CXX='-fPIC'
13105
# All AIX code is PIC.
13106
if test "$host_cpu" = ia64; then
13107
# AIX 5 now supports IA64 processor
13108
lt_prog_compiler_static_CXX='-Bstatic'
13110
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13114
case $cc_basename in
13116
# Green Hills C++ Compiler
13117
# _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"
13122
# PIC is the default on this platform
13123
# Common symbols not allowed in MH_DYLIB files
13124
case $cc_basename in
13126
lt_prog_compiler_pic_CXX='-qnocommon'
13127
lt_prog_compiler_wl_CXX='-Wl,'
13132
case $cc_basename in
13134
lt_prog_compiler_pic_CXX='-KPIC'
13137
# Green Hills C++ Compiler
13138
lt_prog_compiler_pic_CXX='-pic'
13144
freebsd* | dragonfly*)
13145
# FreeBSD uses GNU C++
13147
hpux9* | hpux10* | hpux11*)
13148
case $cc_basename in
13150
lt_prog_compiler_wl_CXX='-Wl,'
13151
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13152
if test "$host_cpu" != ia64; then
13153
lt_prog_compiler_pic_CXX='+Z'
13157
lt_prog_compiler_wl_CXX='-Wl,'
13158
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13164
lt_prog_compiler_pic_CXX='+Z'
13173
# This is c89, which is MS Visual C++ (no shared libs)
13174
# Anyone wants to do a port?
13176
irix5* | irix6* | nonstopux*)
13177
case $cc_basename in
13179
lt_prog_compiler_wl_CXX='-Wl,'
13180
lt_prog_compiler_static_CXX='-non_shared'
13181
# CC pic flag -KPIC is the default.
13187
linux* | k*bsd*-gnu)
13188
case $cc_basename in
13191
lt_prog_compiler_wl_CXX='--backend -Wl,'
13192
lt_prog_compiler_pic_CXX='-fPIC'
13196
lt_prog_compiler_wl_CXX='-Wl,'
13197
lt_prog_compiler_pic_CXX='-KPIC'
13198
lt_prog_compiler_static_CXX='-static'
13201
# Portland Group C++ compiler.
13202
lt_prog_compiler_wl_CXX='-Wl,'
13203
lt_prog_compiler_pic_CXX='-fpic'
13204
lt_prog_compiler_static_CXX='-Bstatic'
13208
# Make sure the PIC flag is empty. It appears that all Alpha
13209
# Linux and Compaq Tru64 Unix objects are PIC.
13210
lt_prog_compiler_pic_CXX=
13211
lt_prog_compiler_static_CXX='-non_shared'
13214
case `$CC -V 2>&1 | sed 5q` in
13217
lt_prog_compiler_pic_CXX='-KPIC'
13218
lt_prog_compiler_static_CXX='-Bstatic'
13219
lt_prog_compiler_wl_CXX='-Qoption ld '
13230
case $cc_basename in
13232
lt_prog_compiler_pic_CXX='-W c,exportall'
13240
osf3* | osf4* | osf5*)
13241
case $cc_basename in
13243
lt_prog_compiler_wl_CXX='--backend -Wl,'
13246
# Rational C++ 2.4.1
13247
lt_prog_compiler_pic_CXX='-pic'
13250
# Digital/Compaq C++
13251
lt_prog_compiler_wl_CXX='-Wl,'
13252
# Make sure the PIC flag is empty. It appears that all Alpha
13253
# Linux and Compaq Tru64 Unix objects are PIC.
13254
lt_prog_compiler_pic_CXX=
13255
lt_prog_compiler_static_CXX='-non_shared'
13264
case $cc_basename in
13266
# Sun C++ 4.2, 5.x and Centerline C++
13267
lt_prog_compiler_pic_CXX='-KPIC'
13268
lt_prog_compiler_static_CXX='-Bstatic'
13269
lt_prog_compiler_wl_CXX='-Qoption ld '
13272
# Green Hills C++ Compiler
13273
lt_prog_compiler_pic_CXX='-PIC'
13280
case $cc_basename in
13283
lt_prog_compiler_pic_CXX='-pic'
13284
lt_prog_compiler_static_CXX='-Bstatic'
13288
lt_prog_compiler_pic_CXX='-pic'
13295
case $cc_basename in
13297
# NonStop-UX NCC 3.20
13298
lt_prog_compiler_pic_CXX='-KPIC'
13304
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13305
case $cc_basename in
13307
lt_prog_compiler_wl_CXX='-Wl,'
13308
lt_prog_compiler_pic_CXX='-KPIC'
13309
lt_prog_compiler_static_CXX='-Bstatic'
13316
lt_prog_compiler_can_build_shared_CXX=no
13321
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13322
$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13325
# Check to make sure the PIC flag actually works.
13327
if test -n "$lt_prog_compiler_pic_CXX"; then
13329
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13330
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13331
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
13332
$as_echo_n "(cached) " >&6
13334
lt_cv_prog_compiler_pic_works_CXX=no
13335
ac_outfile=conftest.$ac_objext
13336
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13337
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13338
# Insert the option either (1) after the last *FLAGS variable, or
13339
# (2) before a word containing "conftest.", or (3) at the end.
13340
# Note that $ac_compile itself does not contain backslashes and begins
13341
# with a dollar sign (not a hyphen), so the echo should work correctly.
13342
# The option is referenced via a variable to avoid confusing sed.
13343
lt_compile=`echo "$ac_compile" | $SED \
13344
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13345
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13346
-e 's:$: $lt_compiler_flag:'`
13347
(eval echo "\"\$as_me:13347: $lt_compile\"" >&5)
13348
(eval "$lt_compile" 2>conftest.err)
13350
cat conftest.err >&5
13351
echo "$as_me:13351: \$? = $ac_status" >&5
13352
if (exit $ac_status) && test -s "$ac_outfile"; then
13353
# The compiler can only warn and ignore the option if not recognized
13354
# So say no if there are warnings other than the usual output.
13355
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13356
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13357
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13358
lt_cv_prog_compiler_pic_works_CXX=yes
13364
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13365
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13367
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13368
case $lt_prog_compiler_pic_CXX in
13370
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13373
lt_prog_compiler_pic_CXX=
13374
lt_prog_compiler_can_build_shared_CXX=no
13379
# For platforms which do not support PIC, -DPIC is meaningless:
13381
lt_prog_compiler_pic_CXX=
13384
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13389
# Check to make sure the static flag actually works.
13391
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13392
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13393
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13394
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
13395
$as_echo_n "(cached) " >&6
13397
lt_cv_prog_compiler_static_works_CXX=no
13398
save_LDFLAGS="$LDFLAGS"
13399
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13400
echo "$lt_simple_link_test_code" > conftest.$ac_ext
13401
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13402
# The linker can only warn and ignore the option if not recognized
13403
# So say no if there are warnings
13404
if test -s conftest.err; then
13405
# Append any errors to the config.log.
13406
cat conftest.err 1>&5
13407
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13408
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13409
if diff conftest.exp conftest.er2 >/dev/null; then
13410
lt_cv_prog_compiler_static_works_CXX=yes
13413
lt_cv_prog_compiler_static_works_CXX=yes
13417
LDFLAGS="$save_LDFLAGS"
13420
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13421
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13423
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13426
lt_prog_compiler_static_CXX=
13430
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13431
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13432
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13433
$as_echo_n "(cached) " >&6
13435
lt_cv_prog_compiler_c_o_CXX=no
13436
$rm -r conftest 2>/dev/null
13440
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13442
lt_compiler_flag="-o out/conftest2.$ac_objext"
13443
# Insert the option either (1) after the last *FLAGS variable, or
13444
# (2) before a word containing "conftest.", or (3) at the end.
13445
# Note that $ac_compile itself does not contain backslashes and begins
13446
# with a dollar sign (not a hyphen), so the echo should work correctly.
13447
lt_compile=`echo "$ac_compile" | $SED \
13448
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13449
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13450
-e 's:$: $lt_compiler_flag:'`
13451
(eval echo "\"\$as_me:13451: $lt_compile\"" >&5)
13452
(eval "$lt_compile" 2>out/conftest.err)
13454
cat out/conftest.err >&5
13455
echo "$as_me:13455: \$? = $ac_status" >&5
13456
if (exit $ac_status) && test -s out/conftest2.$ac_objext
13458
# The compiler can only warn and ignore the option if not recognized
13459
# So say no if there are warnings
13460
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13461
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13462
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13463
lt_cv_prog_compiler_c_o_CXX=yes
13468
# SGI C++ compiler will create directory out/ii_files/ for
13469
# template instantiation
13470
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13471
$rm out/* && rmdir out
13477
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13478
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13481
hard_links="nottested"
13482
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13483
# do not overwrite the value of need_locks provided by the user
13484
{ $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13485
$as_echo_n "checking if we can lock with hard links... " >&6; }
13488
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13490
ln conftest.a conftest.b 2>&5 || hard_links=no
13491
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13492
{ $as_echo "$as_me:$LINENO: result: $hard_links" >&5
13493
$as_echo "$hard_links" >&6; }
13494
if test "$hard_links" = no; then
13495
{ $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13496
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13503
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13504
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13506
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13509
# If we're using GNU nm, then we don't want the "-C" option.
13510
# -C means demangle to AIX nm, but means don't demangle with GNU nm
13511
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13512
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'
13514
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'
13518
export_symbols_cmds_CXX="$ltdll_cmds"
13521
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'
13524
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13527
exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13529
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13530
$as_echo "$ld_shlibs_CXX" >&6; }
13531
test "$ld_shlibs_CXX" = no && can_build_shared=no
13534
# Do we need to explicitly link libc?
13536
case "x$archive_cmds_need_lc_CXX" in
13538
# Assume -lc should be added
13539
archive_cmds_need_lc_CXX=yes
13541
if test "$enable_shared" = yes && test "$GCC" = yes; then
13542
case $archive_cmds_CXX in
13544
# FIXME: we may have to deal with multi-command sequences.
13547
# Test whether the compiler implicitly links with -lc since on some
13548
# systems, -lgcc has to come before -lc. If gcc already passes -lc
13549
# to ld, don't add -lc before -lgcc.
13550
{ $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13551
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13553
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13555
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13556
(eval $ac_compile) 2>&5
13558
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559
(exit $ac_status); } 2>conftest.err; then
13562
libobjs=conftest.$ac_objext
13564
wl=$lt_prog_compiler_wl_CXX
13565
pic_flag=$lt_prog_compiler_pic_CXX
13571
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13572
allow_undefined_flag_CXX=
13573
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13574
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13576
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13577
(exit $ac_status); }
13579
archive_cmds_need_lc_CXX=no
13581
archive_cmds_need_lc_CXX=yes
13583
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13585
cat conftest.err 1>&5
13588
{ $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13589
$as_echo "$archive_cmds_need_lc_CXX" >&6; }
13596
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13597
$as_echo_n "checking dynamic linker characteristics... " >&6; }
13598
library_names_spec=
13599
libname_spec='lib$name'
13603
postuninstall_cmds=
13607
shlibpath_overrides_runpath=unknown
13609
dynamic_linker="$host_os ld.so"
13610
sys_lib_dlsearch_path_spec="/lib /usr/lib"
13612
need_lib_prefix=unknown
13613
hardcode_into_libs=no
13615
# when you set need_version to no, make sure it does not cause -set_version
13616
# flags to be left without arguments
13617
need_version=unknown
13622
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13623
shlibpath_var=LIBPATH
13625
# AIX 3 has no versioning support, so we append a major version to the name.
13626
soname_spec='${libname}${release}${shared_ext}$major'
13633
hardcode_into_libs=yes
13634
if test "$host_cpu" = ia64; then
13635
# AIX 5 supports IA64
13636
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13637
shlibpath_var=LD_LIBRARY_PATH
13639
# With GCC up to 2.95.x, collect2 would create an import file
13640
# for dependence libraries. The import file would start with
13641
# the line `#! .'. This would cause the generated library to
13642
# depend on `.', always an invalid library. This was fixed in
13643
# development snapshots of GCC prior to 3.0.
13645
aix4 | aix4.[01] | aix4.[01].*)
13646
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13648
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13651
can_build_shared=no
13655
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13656
# soname into executable. Probably we can add versioning support to
13657
# collect2, so additional links can be useful in future.
13658
if test "$aix_use_runtimelinking" = yes; then
13659
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
13660
# instead of lib<name>.a to let people know that these are not
13661
# typical AIX shared libraries.
13662
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13664
# We preserve .a as extension for shared libraries through AIX4.2
13665
# and later when we are not doing run time linking.
13666
library_names_spec='${libname}${release}.a $libname.a'
13667
soname_spec='${libname}${release}${shared_ext}$major'
13669
shlibpath_var=LIBPATH
13674
library_names_spec='$libname.ixlibrary $libname.a'
13675
# Create ${libname}_ixlibrary.a entries in /sys/libs.
13676
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'
13680
library_names_spec='${libname}${shared_ext}'
13681
dynamic_linker="$host_os ld.so"
13682
shlibpath_var=LIBRARY_PATH
13688
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13689
soname_spec='${libname}${release}${shared_ext}$major'
13690
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13691
shlibpath_var=LD_LIBRARY_PATH
13692
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13693
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13694
# the default ld.so.conf also contains /usr/contrib/lib and
13695
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13696
# libtool to hard-code these into programs
13699
cygwin* | mingw* | pw32*)
13700
version_type=windows
13705
case $GCC,$host_os in
13706
yes,cygwin* | yes,mingw* | yes,pw32*)
13707
library_names_spec='$libname.dll.a'
13708
# DLL is installed to $(libdir)/../bin by postinstall_cmds
13709
postinstall_cmds='base_file=`basename \${file}`~
13710
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13711
dldir=$destdir/`dirname \$dlpath`~
13712
test -d \$dldir || mkdir -p \$dldir~
13713
$install_prog $dir/$dlname \$dldir/$dlname~
13714
chmod a+x \$dldir/$dlname'
13715
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13716
dlpath=$dir/\$dldll~
13718
shlibpath_overrides_runpath=yes
13722
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
13723
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13724
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13727
# MinGW DLLs use traditional 'lib' prefix
13728
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13729
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13730
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13731
# It is most probably a Windows format PATH printed by
13732
# mingw gcc, but we are running on Cygwin. Gcc prints its search
13733
# path with ; separators, and with drive letters. We can handle the
13734
# drive letters (cygwin fileutils understands them), so leave them,
13735
# especially as we might pass files found there to a mingw objdump,
13736
# which wouldn't understand a cygwinified path. Ahh.
13737
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13739
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13743
# pw32 DLLs use 'pw' prefix rather than 'lib'
13744
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13750
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13753
dynamic_linker='Win32 ld.exe'
13754
# FIXME: first we should search . and the directory the executable is in
13758
darwin* | rhapsody*)
13759
dynamic_linker="$host_os dyld"
13760
version_type=darwin
13763
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13764
soname_spec='${libname}${release}${major}$shared_ext'
13765
shlibpath_overrides_runpath=yes
13766
shlibpath_var=DYLD_LIBRARY_PATH
13767
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13769
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13776
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13777
soname_spec='${libname}${release}${shared_ext}$major'
13778
shlibpath_var=LD_LIBRARY_PATH
13785
freebsd* | dragonfly*)
13786
# DragonFly does not have aout. When/if they implement a new
13787
# versioning mechanism, adjust this.
13788
if test -x /usr/bin/objformat; then
13789
objformat=`/usr/bin/objformat`
13792
freebsd[123]*) objformat=aout ;;
13793
*) objformat=elf ;;
13796
version_type=freebsd-$objformat
13797
case $version_type in
13799
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13804
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13808
shlibpath_var=LD_LIBRARY_PATH
13811
shlibpath_overrides_runpath=yes
13813
freebsd3.[01]* | freebsdelf3.[01]*)
13814
shlibpath_overrides_runpath=yes
13815
hardcode_into_libs=yes
13817
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13818
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13819
shlibpath_overrides_runpath=no
13820
hardcode_into_libs=yes
13822
*) # from 4.6 on, and DragonFly
13823
shlibpath_overrides_runpath=yes
13824
hardcode_into_libs=yes
13833
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13834
soname_spec='${libname}${release}${shared_ext}$major'
13835
shlibpath_var=LD_LIBRARY_PATH
13836
hardcode_into_libs=yes
13839
hpux9* | hpux10* | hpux11*)
13840
# Give a soname corresponding to the major version so that dld.sl refuses to
13841
# link against other versions.
13848
hardcode_into_libs=yes
13849
dynamic_linker="$host_os dld.so"
13850
shlibpath_var=LD_LIBRARY_PATH
13851
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13852
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13853
soname_spec='${libname}${release}${shared_ext}$major'
13854
if test "X$HPUX_IA64_MODE" = X32; then
13855
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13857
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13859
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13863
hardcode_into_libs=yes
13864
dynamic_linker="$host_os dld.sl"
13865
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13866
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13867
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13868
soname_spec='${libname}${release}${shared_ext}$major'
13869
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13870
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13874
dynamic_linker="$host_os dld.sl"
13875
shlibpath_var=SHLIB_PATH
13876
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13877
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13878
soname_spec='${libname}${release}${shared_ext}$major'
13881
# HP-UX runs *really* slowly unless shared libraries are mode 555.
13882
postinstall_cmds='chmod 555 $lib'
13889
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13890
soname_spec='${libname}${release}${shared_ext}$major'
13891
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13892
shlibpath_var=LD_LIBRARY_PATH
13893
shlibpath_overrides_runpath=no
13894
hardcode_into_libs=yes
13897
irix5* | irix6* | nonstopux*)
13899
nonstopux*) version_type=nonstopux ;;
13901
if test "$lt_cv_prog_gnu_ld" = yes; then
13909
soname_spec='${libname}${release}${shared_ext}$major'
13910
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13912
irix5* | nonstopux*)
13913
libsuff= shlibsuff=
13916
case $LD in # libtool.m4 will add one of these switches to LD
13917
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13918
libsuff= shlibsuff= libmagic=32-bit;;
13919
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13920
libsuff=32 shlibsuff=N32 libmagic=N32;;
13921
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13922
libsuff=64 shlibsuff=64 libmagic=64-bit;;
13923
*) libsuff= shlibsuff= libmagic=never-match;;
13927
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13928
shlibpath_overrides_runpath=no
13929
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13930
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13931
hardcode_into_libs=yes
13934
# No shared lib support for Linux oldld, aout, or coff.
13935
linux*oldld* | linux*aout* | linux*coff*)
13939
# This must be Linux ELF.
13940
linux* | k*bsd*-gnu)
13944
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13945
soname_spec='${libname}${release}${shared_ext}$major'
13946
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13947
shlibpath_var=LD_LIBRARY_PATH
13948
shlibpath_overrides_runpath=no
13949
# This implies no fast_install, which is unacceptable.
13950
# Some rework will be needed to allow for fast_install
13951
# before this can be enabled.
13952
hardcode_into_libs=yes
13954
# Append ld.so.conf contents to the search path
13955
if test -f /etc/ld.so.conf; then
13956
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' ' '`
13957
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13960
# We used to test for /lib/ld.so.1 and disable shared libraries on
13961
# powerpc, because MkLinux only supported shared libraries with the
13962
# GNU dynamic linker. Since this was broken with cross compilers,
13963
# most powerpc-linux boxes support dynamic linking these days and
13964
# people can always --disable-shared, the test was removed, and we
13965
# assume the GNU/Linux dynamic linker is in use.
13966
dynamic_linker='GNU/Linux ld.so'
13973
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13974
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13975
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13976
dynamic_linker='NetBSD (a.out) ld.so'
13978
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13979
soname_spec='${libname}${release}${shared_ext}$major'
13980
dynamic_linker='NetBSD ld.elf_so'
13982
shlibpath_var=LD_LIBRARY_PATH
13983
shlibpath_overrides_runpath=yes
13984
hardcode_into_libs=yes
13989
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13990
shlibpath_var=LD_LIBRARY_PATH
13991
shlibpath_overrides_runpath=yes
13998
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13999
soname_spec='${libname}${release}${shared_ext}$major'
14000
shlibpath_var=LD_LIBRARY_PATH
14001
shlibpath_overrides_runpath=yes
14006
sys_lib_dlsearch_path_spec="/usr/lib"
14008
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14010
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14011
*) need_version=no ;;
14013
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14014
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14015
shlibpath_var=LD_LIBRARY_PATH
14016
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14018
openbsd2.[89] | openbsd2.[89].*)
14019
shlibpath_overrides_runpath=no
14022
shlibpath_overrides_runpath=yes
14026
shlibpath_overrides_runpath=yes
14031
libname_spec='$name'
14034
library_names_spec='$libname${shared_ext} $libname.a'
14035
dynamic_linker='OS/2 ld.exe'
14036
shlibpath_var=LIBPATH
14039
osf3* | osf4* | osf5*)
14043
soname_spec='${libname}${release}${shared_ext}$major'
14044
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14045
shlibpath_var=LD_LIBRARY_PATH
14046
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14047
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14058
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14059
soname_spec='${libname}${release}${shared_ext}$major'
14060
shlibpath_var=LD_LIBRARY_PATH
14061
shlibpath_overrides_runpath=yes
14062
hardcode_into_libs=yes
14063
# ldd complains unless libraries are executable
14064
postinstall_cmds='chmod +x $lib'
14069
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14070
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14071
shlibpath_var=LD_LIBRARY_PATH
14072
shlibpath_overrides_runpath=yes
14073
if test "$with_gnu_ld" = yes; then
14081
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14082
soname_spec='${libname}${release}${shared_ext}$major'
14083
shlibpath_var=LD_LIBRARY_PATH
14084
case $host_vendor in
14086
shlibpath_overrides_runpath=no
14088
export_dynamic_flag_spec='${wl}-Blargedynsym'
14089
runpath_var=LD_RUN_PATH
14097
shlibpath_overrides_runpath=no
14098
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14104
if test -d /usr/nec ;then
14106
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14107
soname_spec='$libname${shared_ext}.$major'
14108
shlibpath_var=LD_LIBRARY_PATH
14112
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14113
version_type=freebsd-elf
14116
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14117
soname_spec='${libname}${release}${shared_ext}$major'
14118
shlibpath_var=LD_LIBRARY_PATH
14119
hardcode_into_libs=yes
14120
if test "$with_gnu_ld" = yes; then
14121
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14122
shlibpath_overrides_runpath=no
14124
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14125
shlibpath_overrides_runpath=yes
14128
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14132
sys_lib_dlsearch_path_spec='/usr/lib'
14137
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14138
soname_spec='${libname}${release}${shared_ext}$major'
14139
shlibpath_var=LD_LIBRARY_PATH
14146
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14147
$as_echo "$dynamic_linker" >&6; }
14148
test "$dynamic_linker" = no && can_build_shared=no
14150
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14151
$as_echo_n "(cached) " >&6
14153
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
14156
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14157
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14158
$as_echo_n "(cached) " >&6
14160
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
14163
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14165
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14166
if test "$GCC" = yes; then
14167
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14170
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14171
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14172
hardcode_action_CXX=
14173
if test -n "$hardcode_libdir_flag_spec_CXX" || \
14174
test -n "$runpath_var_CXX" || \
14175
test "X$hardcode_automatic_CXX" = "Xyes" ; then
14177
# We can hardcode non-existant directories.
14178
if test "$hardcode_direct_CXX" != no &&
14179
# If the only mechanism to avoid hardcoding is shlibpath_var, we
14180
# have to relink, otherwise we might link with an installed library
14181
# when we should be linking with a yet-to-be-installed one
14182
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14183
test "$hardcode_minus_L_CXX" != no; then
14184
# Linking always hardcodes the temporary library directory.
14185
hardcode_action_CXX=relink
14187
# We can link without hardcoding, and we can hardcode nonexisting dirs.
14188
hardcode_action_CXX=immediate
14191
# We cannot hardcode anything, or else we can only hardcode existing
14193
hardcode_action_CXX=unsupported
14195
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14196
$as_echo "$hardcode_action_CXX" >&6; }
14198
if test "$hardcode_action_CXX" = relink; then
14199
# Fast installation is not supported
14200
enable_fast_install=no
14201
elif test "$shlibpath_overrides_runpath" = yes ||
14202
test "$enable_shared" = no; then
14203
# Fast installation is not necessary
14204
enable_fast_install=needless
14208
# The else clause should only fire when bootstrapping the
14209
# libtool distribution, otherwise you forgot to ship ltmain.sh
14210
# with your package, and you will get complaints that there are
14211
# no rules to generate ltmain.sh.
14212
if test -f "$ltmain"; then
14213
# See if we are running on zsh, and set the options which allow our commands through
14214
# without removal of \ escapes.
14215
if test -n "${ZSH_VERSION+set}" ; then
14216
setopt NO_GLOB_SUBST
14218
# Now quote all the things that may contain metacharacters while being
14219
# careful not to overquote the AC_SUBSTed values. We take copies of the
14220
# variables and quote the copies for generation of the libtool script.
14221
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14223
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14224
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14225
deplibs_check_method reload_flag reload_cmds need_locks \
14226
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14227
lt_cv_sys_global_symbol_to_c_name_address \
14228
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14229
old_postinstall_cmds old_postuninstall_cmds \
14233
lt_prog_compiler_wl_CXX \
14234
lt_prog_compiler_pic_CXX \
14235
lt_prog_compiler_static_CXX \
14236
lt_prog_compiler_no_builtin_flag_CXX \
14237
export_dynamic_flag_spec_CXX \
14238
thread_safe_flag_spec_CXX \
14239
whole_archive_flag_spec_CXX \
14240
enable_shared_with_static_runtimes_CXX \
14241
old_archive_cmds_CXX \
14242
old_archive_from_new_cmds_CXX \
14243
predep_objects_CXX \
14244
postdep_objects_CXX \
14247
compiler_lib_search_path_CXX \
14248
compiler_lib_search_dirs_CXX \
14250
archive_expsym_cmds_CXX \
14251
postinstall_cmds_CXX \
14252
postuninstall_cmds_CXX \
14253
old_archive_from_expsyms_cmds_CXX \
14254
allow_undefined_flag_CXX \
14255
no_undefined_flag_CXX \
14256
export_symbols_cmds_CXX \
14257
hardcode_libdir_flag_spec_CXX \
14258
hardcode_libdir_flag_spec_ld_CXX \
14259
hardcode_libdir_separator_CXX \
14260
hardcode_automatic_CXX \
14262
module_expsym_cmds_CXX \
14263
lt_cv_prog_compiler_c_o_CXX \
14264
fix_srcfile_path_CXX \
14265
exclude_expsyms_CXX \
14266
include_expsyms_CXX; do
14269
old_archive_cmds_CXX | \
14270
old_archive_from_new_cmds_CXX | \
14271
archive_cmds_CXX | \
14272
archive_expsym_cmds_CXX | \
14273
module_cmds_CXX | \
14274
module_expsym_cmds_CXX | \
14275
old_archive_from_expsyms_cmds_CXX | \
14276
export_symbols_cmds_CXX | \
14277
extract_expsyms_cmds | reload_cmds | finish_cmds | \
14278
postinstall_cmds | postuninstall_cmds | \
14279
old_postinstall_cmds | old_postuninstall_cmds | \
14280
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14281
# Double-quote double-evaled strings.
14282
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14285
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14291
*'\$0 --fallback-echo"')
14292
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14298
cat <<__EOF__ >> "$cfgfile"
14299
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14301
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14303
# Shell to use when invoking shell scripts.
14306
# Whether or not to build shared libraries.
14307
build_libtool_libs=$enable_shared
14309
# Whether or not to build static libraries.
14310
build_old_libs=$enable_static
14312
# Whether or not to add -lc for building shared libraries.
14313
build_libtool_need_lc=$archive_cmds_need_lc_CXX
14315
# Whether or not to disallow shared libs when runtime libs are static
14316
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14318
# Whether or not to optimize for fast installation.
14319
fast_install=$enable_fast_install
14322
host_alias=$host_alias
14326
# The build system.
14327
build_alias=$build_alias
14331
# An echo program that does not interpret backslashes.
14336
AR_FLAGS=$lt_AR_FLAGS
14341
# LTCC compiler flags.
14342
LTCFLAGS=$lt_LTCFLAGS
14344
# A language-specific compiler.
14345
CC=$lt_compiler_CXX
14347
# Is the compiler the GNU C compiler?
14353
# The linker used to build libraries.
14356
# Whether we need hard or soft links.
14359
# A BSD-compatible nm program.
14362
# A symbol stripping program
14365
# Used to examine libraries when file_magic_cmd begins "file"
14366
MAGIC_CMD=$MAGIC_CMD
14368
# Used on cygwin: DLL creation program.
14371
# Used on cygwin: object dumper.
14374
# Used on cygwin: assembler.
14377
# The name of the directory that contains temporary libtool files.
14380
# How to create reloadable object files.
14381
reload_flag=$lt_reload_flag
14382
reload_cmds=$lt_reload_cmds
14384
# How to pass a linker flag through the compiler.
14385
wl=$lt_lt_prog_compiler_wl_CXX
14387
# Object file suffix (normally "o").
14388
objext="$ac_objext"
14390
# Old archive suffix (normally "a").
14393
# Shared library suffix (normally ".so").
14394
shrext_cmds='$shrext_cmds'
14396
# Executable file suffix (normally "").
14399
# Additional compiler flags for building library objects.
14400
pic_flag=$lt_lt_prog_compiler_pic_CXX
14403
# What is the maximum length of a command?
14404
max_cmd_len=$lt_cv_sys_max_cmd_len
14406
# Does compiler simultaneously support -c and -o options?
14407
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14409
# Must we lock files when doing compilation?
14410
need_locks=$lt_need_locks
14412
# Do we need the lib prefix for modules?
14413
need_lib_prefix=$need_lib_prefix
14415
# Do we need a version for libraries?
14416
need_version=$need_version
14418
# Whether dlopen is supported.
14419
dlopen_support=$enable_dlopen
14421
# Whether dlopen of programs is supported.
14422
dlopen_self=$enable_dlopen_self
14424
# Whether dlopen of statically linked programs is supported.
14425
dlopen_self_static=$enable_dlopen_self_static
14427
# Compiler flag to prevent dynamic linking.
14428
link_static_flag=$lt_lt_prog_compiler_static_CXX
14430
# Compiler flag to turn off builtin functions.
14431
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14433
# Compiler flag to allow reflexive dlopens.
14434
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14436
# Compiler flag to generate shared objects directly from archives.
14437
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14439
# Compiler flag to generate thread-safe objects.
14440
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14442
# Library versioning type.
14443
version_type=$version_type
14445
# Format of library name prefix.
14446
libname_spec=$lt_libname_spec
14448
# List of archive names. First name is the real one, the rest are links.
14449
# The last name is the one that the linker finds with -lNAME.
14450
library_names_spec=$lt_library_names_spec
14452
# The coded name of the library, if different from the real name.
14453
soname_spec=$lt_soname_spec
14455
# Commands used to build and install an old-style archive.
14457
old_archive_cmds=$lt_old_archive_cmds_CXX
14458
old_postinstall_cmds=$lt_old_postinstall_cmds
14459
old_postuninstall_cmds=$lt_old_postuninstall_cmds
14461
# Create an old-style archive from a shared archive.
14462
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14464
# Create a temporary old-style archive to link instead of a shared archive.
14465
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14467
# Commands used to build and install a shared archive.
14468
archive_cmds=$lt_archive_cmds_CXX
14469
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14470
postinstall_cmds=$lt_postinstall_cmds
14471
postuninstall_cmds=$lt_postuninstall_cmds
14473
# Commands used to build a loadable module (assumed same as above if empty)
14474
module_cmds=$lt_module_cmds_CXX
14475
module_expsym_cmds=$lt_module_expsym_cmds_CXX
14477
# Commands to strip libraries.
14478
old_striplib=$lt_old_striplib
14479
striplib=$lt_striplib
14481
# Dependencies to place before the objects being linked to create a
14483
predep_objects=$lt_predep_objects_CXX
14485
# Dependencies to place after the objects being linked to create a
14487
postdep_objects=$lt_postdep_objects_CXX
14489
# Dependencies to place before the objects being linked to create a
14491
predeps=$lt_predeps_CXX
14493
# Dependencies to place after the objects being linked to create a
14495
postdeps=$lt_postdeps_CXX
14497
# The directories searched by this compiler when creating a shared
14499
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14501
# The library search path used internally by the compiler when linking
14502
# a shared library.
14503
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14505
# Method to check whether dependent libraries are shared objects.
14506
deplibs_check_method=$lt_deplibs_check_method
14508
# Command to use when deplibs_check_method == file_magic.
14509
file_magic_cmd=$lt_file_magic_cmd
14511
# Flag that allows shared libraries with undefined symbols to be built.
14512
allow_undefined_flag=$lt_allow_undefined_flag_CXX
14514
# Flag that forces no undefined symbols.
14515
no_undefined_flag=$lt_no_undefined_flag_CXX
14517
# Commands used to finish a libtool library installation in a directory.
14518
finish_cmds=$lt_finish_cmds
14520
# Same as above, but a single script fragment to be evaled but not shown.
14521
finish_eval=$lt_finish_eval
14523
# Take the output of nm and produce a listing of raw symbols and C names.
14524
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14526
# Transform the output of nm in a proper C declaration
14527
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14529
# Transform the output of nm in a C name address pair
14530
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14532
# This is the shared library runtime path variable.
14533
runpath_var=$runpath_var
14535
# This is the shared library path variable.
14536
shlibpath_var=$shlibpath_var
14538
# Is shlibpath searched before the hard-coded library search path?
14539
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14541
# How to hardcode a shared library path into an executable.
14542
hardcode_action=$hardcode_action_CXX
14544
# Whether we should hardcode library paths into libraries.
14545
hardcode_into_libs=$hardcode_into_libs
14547
# Flag to hardcode \$libdir into a binary during linking.
14548
# This must work even if \$libdir does not exist.
14549
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14551
# If ld is used when linking, flag to hardcode \$libdir into
14552
# a binary during linking. This must work even if \$libdir does
14554
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14556
# Whether we need a single -rpath flag with a separated argument.
14557
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14559
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14560
# resulting binary.
14561
hardcode_direct=$hardcode_direct_CXX
14563
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14564
# resulting binary.
14565
hardcode_minus_L=$hardcode_minus_L_CXX
14567
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14568
# the resulting binary.
14569
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14571
# Set to yes if building a shared library automatically hardcodes DIR into the library
14572
# and all subsequent libraries and executables linked against it.
14573
hardcode_automatic=$hardcode_automatic_CXX
14575
# Variables whose values should be saved in libtool wrapper scripts and
14576
# restored at relink time.
14577
variables_saved_for_relink="$variables_saved_for_relink"
14579
# Whether libtool must link a program against all its dependency libraries.
14580
link_all_deplibs=$link_all_deplibs_CXX
14582
# Compile-time system search path for libraries
14583
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14585
# Run-time system search path for libraries
14586
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14588
# Fix the shell variable \$srcfile for the compiler.
14589
fix_srcfile_path=$lt_fix_srcfile_path
14591
# Set to yes if exported symbols are required.
14592
always_export_symbols=$always_export_symbols_CXX
14594
# The commands to list exported symbols.
14595
export_symbols_cmds=$lt_export_symbols_cmds_CXX
14597
# The commands to extract the exported symbol list from a shared archive.
14598
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14600
# Symbols that should not be listed in the preloaded symbols.
14601
exclude_expsyms=$lt_exclude_expsyms_CXX
14603
# Symbols that must always be exported.
14604
include_expsyms=$lt_include_expsyms_CXX
14606
# ### END LIBTOOL TAG CONFIG: $tagname
14612
# If there is no Makefile yet, we rely on a make rule to execute
14613
# `config.status --recheck' to rerun these tests and create the
14614
# libtool script then.
14615
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14616
if test -f "$ltmain_in"; then
14617
test -f Makefile && make "$ltmain"
14623
ac_cpp='$CPP $CPPFLAGS'
14624
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14625
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14626
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14632
with_gnu_ldcxx=$with_gnu_ld
14633
with_gnu_ld=$lt_save_with_gnu_ld
14634
lt_cv_path_LDCXX=$lt_cv_path_LD
14635
lt_cv_path_LD=$lt_save_path_LD
14636
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14637
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14645
if test -n "$F77" && test "X$F77" != "Xno"; then
14648
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14649
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14650
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14653
archive_cmds_need_lc_F77=no
14654
allow_undefined_flag_F77=
14655
always_export_symbols_F77=no
14656
archive_expsym_cmds_F77=
14657
export_dynamic_flag_spec_F77=
14658
hardcode_direct_F77=no
14659
hardcode_libdir_flag_spec_F77=
14660
hardcode_libdir_flag_spec_ld_F77=
14661
hardcode_libdir_separator_F77=
14662
hardcode_minus_L_F77=no
14663
hardcode_automatic_F77=no
14665
module_expsym_cmds_F77=
14666
link_all_deplibs_F77=unknown
14667
old_archive_cmds_F77=$old_archive_cmds
14668
no_undefined_flag_F77=
14669
whole_archive_flag_spec_F77=
14670
enable_shared_with_static_runtimes_F77=no
14672
# Source file extension for f77 test sources.
14675
# Object file extension for compiled f77 test sources.
14679
# Code to be used in simple compile tests
14680
lt_simple_compile_test_code="\
14686
# Code to be used in simple link tests
14687
lt_simple_link_test_code="\
14692
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14694
# If no C compiler was specified, use CC.
14697
# If no C compiler flags were specified, use CFLAGS.
14698
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14700
# Allow CC to be a program name with arguments.
14704
# save warnings/boilerplate of simple test code
14705
ac_outfile=conftest.$ac_objext
14706
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14707
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14708
_lt_compiler_boilerplate=`cat conftest.err`
14711
ac_outfile=conftest.$ac_objext
14712
echo "$lt_simple_link_test_code" >conftest.$ac_ext
14713
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14714
_lt_linker_boilerplate=`cat conftest.err`
14718
# Allow CC to be a program name with arguments.
14723
for cc_temp in $compiler""; do
14725
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14726
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14731
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14734
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14735
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
14736
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
14737
$as_echo "$can_build_shared" >&6; }
14739
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14740
$as_echo_n "checking whether to build shared libraries... " >&6; }
14741
test "$can_build_shared" = "no" && enable_shared=no
14743
# On AIX, shared libraries and static libraries use the same namespace, and
14744
# are all built from PIC.
14747
test "$enable_shared" = yes && enable_static=no
14748
if test -n "$RANLIB"; then
14749
archive_cmds="$archive_cmds~\$RANLIB \$lib"
14750
postinstall_cmds='$RANLIB $lib'
14754
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14755
test "$enable_shared" = yes && enable_static=no
14759
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
14760
$as_echo "$enable_shared" >&6; }
14762
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14763
$as_echo_n "checking whether to build static libraries... " >&6; }
14764
# Make sure either enable_shared or enable_static is yes.
14765
test "$enable_shared" = yes || enable_static=yes
14766
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
14767
$as_echo "$enable_static" >&6; }
14772
lt_prog_compiler_wl_F77=
14773
lt_prog_compiler_pic_F77=
14774
lt_prog_compiler_static_F77=
14776
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14777
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14779
if test "$GCC" = yes; then
14780
lt_prog_compiler_wl_F77='-Wl,'
14781
lt_prog_compiler_static_F77='-static'
14785
# All AIX code is PIC.
14786
if test "$host_cpu" = ia64; then
14787
# AIX 5 now supports IA64 processor
14788
lt_prog_compiler_static_F77='-Bstatic'
14793
# FIXME: we need at least 68020 code to build shared libraries, but
14794
# adding the `-m68020' flag to GCC prevents building anything better,
14796
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14799
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14800
# PIC is the default for these OSes.
14803
mingw* | cygwin* | pw32* | os2*)
14804
# This hack is so that the source file can tell whether it is being
14805
# built for inclusion in a dll (and should export symbols for example).
14806
# Although the cygwin gcc ignores -fPIC, still need this for old-style
14807
# (--disable-auto-import) libraries
14808
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14811
darwin* | rhapsody*)
14812
# PIC is the default on this platform
14813
# Common symbols not allowed in MH_DYLIB files
14814
lt_prog_compiler_pic_F77='-fno-common'
14818
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
14819
# Instead, we relocate shared libraries at runtime.
14823
# Just because we use GCC doesn't mean we suddenly get shared libraries
14824
# on systems that don't support them.
14825
lt_prog_compiler_can_build_shared_F77=no
14830
if test -d /usr/nec; then
14831
lt_prog_compiler_pic_F77=-Kconform_pic
14836
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14837
# not for PA HP-UX.
14843
lt_prog_compiler_pic_F77='-fPIC'
14849
lt_prog_compiler_pic_F77='-fPIC'
14853
# PORTME Check for flag to pass linker flags through the system compiler.
14856
lt_prog_compiler_wl_F77='-Wl,'
14857
if test "$host_cpu" = ia64; then
14858
# AIX 5 now supports IA64 processor
14859
lt_prog_compiler_static_F77='-Bstatic'
14861
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14865
# PIC is the default on this platform
14866
# Common symbols not allowed in MH_DYLIB files
14867
case $cc_basename in
14869
lt_prog_compiler_pic_F77='-qnocommon'
14870
lt_prog_compiler_wl_F77='-Wl,'
14875
mingw* | cygwin* | pw32* | os2*)
14876
# This hack is so that the source file can tell whether it is being
14877
# built for inclusion in a dll (and should export symbols for example).
14878
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14881
hpux9* | hpux10* | hpux11*)
14882
lt_prog_compiler_wl_F77='-Wl,'
14883
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14884
# not for PA HP-UX.
14890
lt_prog_compiler_pic_F77='+Z'
14893
# Is there a better lt_prog_compiler_static that works with the bundled CC?
14894
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14897
irix5* | irix6* | nonstopux*)
14898
lt_prog_compiler_wl_F77='-Wl,'
14899
# PIC (with -KPIC) is the default.
14900
lt_prog_compiler_static_F77='-non_shared'
14904
lt_prog_compiler_pic_F77='-KPIC'
14905
lt_prog_compiler_static_F77='-Bstatic'
14908
linux* | k*bsd*-gnu)
14909
case $cc_basename in
14911
lt_prog_compiler_wl_F77='-Wl,'
14912
lt_prog_compiler_pic_F77='-KPIC'
14913
lt_prog_compiler_static_F77='-static'
14915
pgcc* | pgf77* | pgf90* | pgf95*)
14916
# Portland Group compilers (*not* the Pentium gcc compiler,
14917
# which looks to be a dead project)
14918
lt_prog_compiler_wl_F77='-Wl,'
14919
lt_prog_compiler_pic_F77='-fpic'
14920
lt_prog_compiler_static_F77='-Bstatic'
14923
lt_prog_compiler_wl_F77='-Wl,'
14924
# All Alpha code is PIC.
14925
lt_prog_compiler_static_F77='-non_shared'
14928
case `$CC -V 2>&1 | sed 5q` in
14931
lt_prog_compiler_pic_F77='-KPIC'
14932
lt_prog_compiler_static_F77='-Bstatic'
14933
lt_prog_compiler_wl_F77='-Wl,'
14936
# Sun Fortran 8.3 passes all unrecognized flags to the linker
14937
lt_prog_compiler_pic_F77='-KPIC'
14938
lt_prog_compiler_static_F77='-Bstatic'
14939
lt_prog_compiler_wl_F77=''
14946
osf3* | osf4* | osf5*)
14947
lt_prog_compiler_wl_F77='-Wl,'
14948
# All OSF/1 code is PIC.
14949
lt_prog_compiler_static_F77='-non_shared'
14953
lt_prog_compiler_static_F77='-non_shared'
14957
lt_prog_compiler_pic_F77='-KPIC'
14958
lt_prog_compiler_static_F77='-Bstatic'
14959
case $cc_basename in
14960
f77* | f90* | f95*)
14961
lt_prog_compiler_wl_F77='-Qoption ld ';;
14963
lt_prog_compiler_wl_F77='-Wl,';;
14968
lt_prog_compiler_wl_F77='-Qoption ld '
14969
lt_prog_compiler_pic_F77='-PIC'
14970
lt_prog_compiler_static_F77='-Bstatic'
14973
sysv4 | sysv4.2uw2* | sysv4.3*)
14974
lt_prog_compiler_wl_F77='-Wl,'
14975
lt_prog_compiler_pic_F77='-KPIC'
14976
lt_prog_compiler_static_F77='-Bstatic'
14980
if test -d /usr/nec ;then
14981
lt_prog_compiler_pic_F77='-Kconform_pic'
14982
lt_prog_compiler_static_F77='-Bstatic'
14986
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14987
lt_prog_compiler_wl_F77='-Wl,'
14988
lt_prog_compiler_pic_F77='-KPIC'
14989
lt_prog_compiler_static_F77='-Bstatic'
14993
lt_prog_compiler_wl_F77='-Wl,'
14994
lt_prog_compiler_can_build_shared_F77=no
14998
lt_prog_compiler_pic_F77='-pic'
14999
lt_prog_compiler_static_F77='-Bstatic'
15003
lt_prog_compiler_can_build_shared_F77=no
15008
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15009
$as_echo "$lt_prog_compiler_pic_F77" >&6; }
15012
# Check to make sure the PIC flag actually works.
15014
if test -n "$lt_prog_compiler_pic_F77"; then
15016
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15017
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
15018
if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
15019
$as_echo_n "(cached) " >&6
15021
lt_cv_prog_compiler_pic_works_F77=no
15022
ac_outfile=conftest.$ac_objext
15023
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15024
lt_compiler_flag="$lt_prog_compiler_pic_F77"
15025
# Insert the option either (1) after the last *FLAGS variable, or
15026
# (2) before a word containing "conftest.", or (3) at the end.
15027
# Note that $ac_compile itself does not contain backslashes and begins
15028
# with a dollar sign (not a hyphen), so the echo should work correctly.
15029
# The option is referenced via a variable to avoid confusing sed.
15030
lt_compile=`echo "$ac_compile" | $SED \
15031
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15032
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15033
-e 's:$: $lt_compiler_flag:'`
15034
(eval echo "\"\$as_me:15034: $lt_compile\"" >&5)
15035
(eval "$lt_compile" 2>conftest.err)
15037
cat conftest.err >&5
15038
echo "$as_me:15038: \$? = $ac_status" >&5
15039
if (exit $ac_status) && test -s "$ac_outfile"; then
15040
# The compiler can only warn and ignore the option if not recognized
15041
# So say no if there are warnings other than the usual output.
15042
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15043
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15044
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15045
lt_cv_prog_compiler_pic_works_F77=yes
15051
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
15052
$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
15054
if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
15055
case $lt_prog_compiler_pic_F77 in
15057
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15060
lt_prog_compiler_pic_F77=
15061
lt_prog_compiler_can_build_shared_F77=no
15066
# For platforms which do not support PIC, -DPIC is meaningless:
15068
lt_prog_compiler_pic_F77=
15071
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15076
# Check to make sure the static flag actually works.
15078
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15079
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15080
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15081
if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
15082
$as_echo_n "(cached) " >&6
15084
lt_cv_prog_compiler_static_works_F77=no
15085
save_LDFLAGS="$LDFLAGS"
15086
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15087
echo "$lt_simple_link_test_code" > conftest.$ac_ext
15088
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15089
# The linker can only warn and ignore the option if not recognized
15090
# So say no if there are warnings
15091
if test -s conftest.err; then
15092
# Append any errors to the config.log.
15093
cat conftest.err 1>&5
15094
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15095
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15096
if diff conftest.exp conftest.er2 >/dev/null; then
15097
lt_cv_prog_compiler_static_works_F77=yes
15100
lt_cv_prog_compiler_static_works_F77=yes
15104
LDFLAGS="$save_LDFLAGS"
15107
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
15108
$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
15110
if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
15113
lt_prog_compiler_static_F77=
15117
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15118
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15119
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15120
$as_echo_n "(cached) " >&6
15122
lt_cv_prog_compiler_c_o_F77=no
15123
$rm -r conftest 2>/dev/null
15127
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15129
lt_compiler_flag="-o out/conftest2.$ac_objext"
15130
# Insert the option either (1) after the last *FLAGS variable, or
15131
# (2) before a word containing "conftest.", or (3) at the end.
15132
# Note that $ac_compile itself does not contain backslashes and begins
15133
# with a dollar sign (not a hyphen), so the echo should work correctly.
15134
lt_compile=`echo "$ac_compile" | $SED \
15135
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15136
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15137
-e 's:$: $lt_compiler_flag:'`
15138
(eval echo "\"\$as_me:15138: $lt_compile\"" >&5)
15139
(eval "$lt_compile" 2>out/conftest.err)
15141
cat out/conftest.err >&5
15142
echo "$as_me:15142: \$? = $ac_status" >&5
15143
if (exit $ac_status) && test -s out/conftest2.$ac_objext
15145
# The compiler can only warn and ignore the option if not recognized
15146
# So say no if there are warnings
15147
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15148
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15149
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15150
lt_cv_prog_compiler_c_o_F77=yes
15155
# SGI C++ compiler will create directory out/ii_files/ for
15156
# template instantiation
15157
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15158
$rm out/* && rmdir out
15164
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15165
$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
15168
hard_links="nottested"
15169
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15170
# do not overwrite the value of need_locks provided by the user
15171
{ $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15172
$as_echo_n "checking if we can lock with hard links... " >&6; }
15175
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15177
ln conftest.a conftest.b 2>&5 || hard_links=no
15178
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15179
{ $as_echo "$as_me:$LINENO: result: $hard_links" >&5
15180
$as_echo "$hard_links" >&6; }
15181
if test "$hard_links" = no; then
15182
{ $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15183
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15190
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15191
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15194
allow_undefined_flag_F77=
15195
enable_shared_with_static_runtimes_F77=no
15197
archive_expsym_cmds_F77=
15198
old_archive_From_new_cmds_F77=
15199
old_archive_from_expsyms_cmds_F77=
15200
export_dynamic_flag_spec_F77=
15201
whole_archive_flag_spec_F77=
15202
thread_safe_flag_spec_F77=
15203
hardcode_libdir_flag_spec_F77=
15204
hardcode_libdir_flag_spec_ld_F77=
15205
hardcode_libdir_separator_F77=
15206
hardcode_direct_F77=no
15207
hardcode_minus_L_F77=no
15208
hardcode_shlibpath_var_F77=unsupported
15209
link_all_deplibs_F77=unknown
15210
hardcode_automatic_F77=no
15212
module_expsym_cmds_F77=
15213
always_export_symbols_F77=no
15214
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15215
# include_expsyms should be a list of space-separated symbols to be *always*
15216
# included in the symbol list
15217
include_expsyms_F77=
15218
# exclude_expsyms can be an extended regexp of symbols to exclude
15219
# it will be wrapped by ` (' and `)$', so one must not match beginning or
15220
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15221
# as well as any symbol that contains `d'.
15222
exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15223
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15224
# platforms (ab)use it in PIC code, but their linkers get confused if
15225
# the symbol is explicitly referenced. Since portable code cannot
15226
# rely on this symbol name, it's probably fine to never include it in
15227
# preloaded symbol tables.
15228
# Exclude shared library initialization/finalization symbols.
15229
extract_expsyms_cmds=
15230
# Just being paranoid about ensuring that cc_basename is set.
15231
for cc_temp in $compiler""; do
15233
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15234
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15239
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15242
cygwin* | mingw* | pw32*)
15243
# FIXME: the MSVC++ port hasn't been tested in a loooong time
15244
# When not using gcc, we currently assume that we are using
15245
# Microsoft Visual C++.
15246
if test "$GCC" != yes; then
15251
# we just hope/assume this is gcc and not c89 (= MSVC++)
15260
if test "$with_gnu_ld" = yes; then
15261
# If archive_cmds runs LD, not CC, wlarc should be empty
15264
# Set some defaults for GNU ld with shared library support. These
15265
# are reset later if shared libraries are not supported. Putting them
15266
# here allows them to be overridden if necessary.
15267
runpath_var=LD_RUN_PATH
15268
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15269
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15270
# ancient GNU ld didn't support --whole-archive et. al.
15271
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15272
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15274
whole_archive_flag_spec_F77=
15276
supports_anon_versioning=no
15277
case `$LD -v 2>/dev/null` in
15278
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15279
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15280
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15281
*\ 2.11.*) ;; # other 2.11 versions
15282
*) supports_anon_versioning=yes ;;
15285
# See if GNU ld supports shared libraries.
15288
# On AIX/PPC, the GNU linker is very broken
15289
if test "$host_cpu" != ia64; then
15293
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15294
*** to be unable to reliably create shared libraries on AIX.
15295
*** Therefore, libtool is disabling shared libraries support. If you
15296
*** really care for shared libraries, you may want to modify your PATH
15297
*** so that a non-GNU linker is found, and then restart.
15304
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)'
15305
hardcode_libdir_flag_spec_F77='-L$libdir'
15306
hardcode_minus_L_F77=yes
15308
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15309
# that the semantics of dynamic libraries on AmigaOS, at least up
15310
# to version 4, is to share data among multiple programs linked
15311
# with the same dynamic library. Since this doesn't match the
15312
# behavior of shared libraries on other platforms, we can't use
15318
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15319
allow_undefined_flag_F77=unsupported
15320
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15321
# support --undefined. This deserves some investigation. FIXME
15322
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15328
cygwin* | mingw* | pw32*)
15329
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15330
# as there is no search path for DLLs.
15331
hardcode_libdir_flag_spec_F77='-L$libdir'
15332
allow_undefined_flag_F77=unsupported
15333
always_export_symbols_F77=no
15334
enable_shared_with_static_runtimes_F77=yes
15335
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15337
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15338
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15339
# If the export-symbols file already is a .def file (1st line
15340
# is EXPORTS), use it as is; otherwise, prepend...
15341
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15342
cp $export_symbols $output_objdir/$soname.def;
15344
echo EXPORTS > $output_objdir/$soname.def;
15345
cat $export_symbols >> $output_objdir/$soname.def;
15347
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15354
hardcode_direct_F77=no
15355
hardcode_shlibpath_var_F77=no
15356
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15357
export_dynamic_flag_spec_F77='${wl}-E'
15358
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15359
# Instead, shared libraries are loaded at an image base (0x10000000 by
15360
# default) and relocated if they conflict, which is a slow very memory
15361
# consuming and fragmenting process. To avoid this, we pick a random,
15362
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15363
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
15364
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'
15365
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'
15368
gnu* | linux* | k*bsd*-gnu)
15369
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15371
case $cc_basename,$host_cpu in
15372
pgcc*) # Portland Group C compiler
15373
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'
15374
tmp_addflag=' $pic_flag'
15376
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15377
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'
15378
tmp_addflag=' $pic_flag -Mnomain' ;;
15379
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15380
tmp_addflag=' -i_dynamic' ;;
15381
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15382
tmp_addflag=' -i_dynamic -nofor_main' ;;
15383
ifc* | ifort*) # Intel Fortran compiler
15384
tmp_addflag=' -nofor_main' ;;
15386
case `$CC -V 2>&1 | sed 5q` in
15387
*Sun\ C*) # Sun C 5.9
15388
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'
15389
tmp_sharedflag='-G' ;;
15390
*Sun\ F*) # Sun Fortran 8.3
15391
tmp_sharedflag='-G' ;;
15393
tmp_sharedflag='-shared' ;;
15395
archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15397
if test $supports_anon_versioning = yes; then
15398
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15399
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15400
$echo "local: *; };" >> $output_objdir/$libname.ver~
15401
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15409
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15410
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15413
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15414
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15419
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15423
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15424
*** create shared libraries on Solaris systems. Therefore, libtool
15425
*** is disabling shared libraries support. We urge you to upgrade GNU
15426
*** binutils to release 2.9.1 or newer. Another option is to modify
15427
*** your PATH or compiler configuration so that the native linker is
15428
*** used, and then restart.
15431
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15432
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15433
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15439
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15440
case `$LD -v 2>&1` in
15441
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15445
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15446
*** reliably create shared libraries on SCO systems. Therefore, libtool
15447
*** is disabling shared libraries support. We urge you to upgrade GNU
15448
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15449
*** your PATH or compiler configuration so that the native linker is
15450
*** used, and then restart.
15455
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15456
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15457
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15458
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15467
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15469
hardcode_direct_F77=yes
15470
hardcode_shlibpath_var_F77=no
15474
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15475
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15476
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15483
if test "$ld_shlibs_F77" = no; then
15485
hardcode_libdir_flag_spec_F77=
15486
export_dynamic_flag_spec_F77=
15487
whole_archive_flag_spec_F77=
15490
# PORTME fill in a description of your system's linker (not GNU ld)
15493
allow_undefined_flag_F77=unsupported
15494
always_export_symbols_F77=yes
15495
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'
15496
# Note: this linker hardcodes the directories in LIBPATH if there
15497
# are no directories specified by -L.
15498
hardcode_minus_L_F77=yes
15499
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15500
# Neither direct hardcoding nor static linking is supported with a
15502
hardcode_direct_F77=unsupported
15507
if test "$host_cpu" = ia64; then
15508
# On IA64, the linker does run time linking by default, so we don't
15509
# have to do anything special.
15510
aix_use_runtimelinking=no
15511
exp_sym_flag='-Bexport'
15514
# If we're using GNU nm, then we don't want the "-C" option.
15515
# -C means demangle to AIX nm, but means don't demangle with GNU nm
15516
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15517
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'
15519
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'
15521
aix_use_runtimelinking=no
15523
# Test if we are trying to use run time linking or normal
15524
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15525
# need to do runtime linking.
15526
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15527
for ld_flag in $LDFLAGS; do
15528
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15529
aix_use_runtimelinking=yes
15536
exp_sym_flag='-bexport'
15537
no_entry_flag='-bnoentry'
15540
# When large executables or shared objects are built, AIX ld can
15541
# have problems creating the table of contents. If linking a library
15542
# or program results in "error TOC overflow" add -mminimal-toc to
15543
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15544
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15546
archive_cmds_F77=''
15547
hardcode_direct_F77=yes
15548
hardcode_libdir_separator_F77=':'
15549
link_all_deplibs_F77=yes
15551
if test "$GCC" = yes; then
15552
case $host_os in aix4.[012]|aix4.[012].*)
15553
# We only want to do this on AIX 4.2 and lower, the check
15554
# below for broken collect2 doesn't work under 4.3+
15555
collect2name=`${CC} -print-prog-name=collect2`
15556
if test -f "$collect2name" && \
15557
strings "$collect2name" | grep resolve_lib_name >/dev/null
15559
# We have reworked collect2
15562
# We have old collect2
15563
hardcode_direct_F77=unsupported
15564
# It fails to find uninstalled libraries when the uninstalled
15565
# path is not listed in the libpath. Setting hardcode_minus_L
15566
# to unsupported forces relinking
15567
hardcode_minus_L_F77=yes
15568
hardcode_libdir_flag_spec_F77='-L$libdir'
15569
hardcode_libdir_separator_F77=
15573
shared_flag='-shared'
15574
if test "$aix_use_runtimelinking" = yes; then
15575
shared_flag="$shared_flag "'${wl}-G'
15579
if test "$host_cpu" = ia64; then
15580
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15581
# chokes on -Wl,-G. The following line is correct:
15584
if test "$aix_use_runtimelinking" = yes; then
15585
shared_flag='${wl}-G'
15587
shared_flag='${wl}-bM:SRE'
15592
# It seems that -bexpall does not export symbols beginning with
15593
# underscore (_), so it is better to generate a list of symbols to export.
15594
always_export_symbols_F77=yes
15595
if test "$aix_use_runtimelinking" = yes; then
15596
# Warning - without using the other runtime loading flags (-brtl),
15597
# -berok will link without error, but may produce a broken library.
15598
allow_undefined_flag_F77='-berok'
15599
# Determine the default libpath from the value encoded in an empty executable.
15600
cat >conftest.$ac_ext <<_ACEOF
15605
rm -f conftest.$ac_objext conftest$ac_exeext
15606
if { (ac_try="$ac_link"
15607
case "(($ac_try" in
15608
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15609
*) ac_try_echo=$ac_try;;
15611
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15612
$as_echo "$ac_try_echo") >&5
15613
(eval "$ac_link") 2>conftest.er1
15615
grep -v '^ *+' conftest.er1 >conftest.err
15617
cat conftest.err >&5
15618
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15619
(exit $ac_status); } && {
15620
test -z "$ac_f77_werror_flag" ||
15621
test ! -s conftest.err
15622
} && test -s conftest$ac_exeext && {
15623
test "$cross_compiling" = yes ||
15624
$as_test_x conftest$ac_exeext
15627
lt_aix_libpath_sed='
15628
/Import File Strings/,/^$/ {
15634
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15635
# Check for a 64-bit object if we didn't find anything.
15636
if test -z "$aix_libpath"; then
15637
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15640
$as_echo "$as_me: failed program was:" >&5
15641
sed 's/^/| /' conftest.$ac_ext >&5
15646
rm -rf conftest.dSYM
15647
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15648
conftest$ac_exeext conftest.$ac_ext
15649
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15651
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15652
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"
15654
if test "$host_cpu" = ia64; then
15655
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15656
allow_undefined_flag_F77="-z nodefs"
15657
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"
15659
# Determine the default libpath from the value encoded in an empty executable.
15660
cat >conftest.$ac_ext <<_ACEOF
15665
rm -f conftest.$ac_objext conftest$ac_exeext
15666
if { (ac_try="$ac_link"
15667
case "(($ac_try" in
15668
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15669
*) ac_try_echo=$ac_try;;
15671
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15672
$as_echo "$ac_try_echo") >&5
15673
(eval "$ac_link") 2>conftest.er1
15675
grep -v '^ *+' conftest.er1 >conftest.err
15677
cat conftest.err >&5
15678
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15679
(exit $ac_status); } && {
15680
test -z "$ac_f77_werror_flag" ||
15681
test ! -s conftest.err
15682
} && test -s conftest$ac_exeext && {
15683
test "$cross_compiling" = yes ||
15684
$as_test_x conftest$ac_exeext
15687
lt_aix_libpath_sed='
15688
/Import File Strings/,/^$/ {
15694
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15695
# Check for a 64-bit object if we didn't find anything.
15696
if test -z "$aix_libpath"; then
15697
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15700
$as_echo "$as_me: failed program was:" >&5
15701
sed 's/^/| /' conftest.$ac_ext >&5
15706
rm -rf conftest.dSYM
15707
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15708
conftest$ac_exeext conftest.$ac_ext
15709
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15711
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15712
# Warning - without using the other run time loading flags,
15713
# -berok will link without error, but may produce a broken library.
15714
no_undefined_flag_F77=' ${wl}-bernotok'
15715
allow_undefined_flag_F77=' ${wl}-berok'
15716
# Exported symbols can be pulled into shared objects from archives
15717
whole_archive_flag_spec_F77='$convenience'
15718
archive_cmds_need_lc_F77=yes
15719
# This is similar to how AIX traditionally builds its shared libraries.
15720
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'
15726
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)'
15727
hardcode_libdir_flag_spec_F77='-L$libdir'
15728
hardcode_minus_L_F77=yes
15729
# see comment about different semantics on the GNU ld section
15734
export_dynamic_flag_spec_F77=-rdynamic
15737
cygwin* | mingw* | pw32*)
15738
# When not using gcc, we currently assume that we are using
15739
# Microsoft Visual C++.
15740
# hardcode_libdir_flag_spec is actually meaningless, as there is
15741
# no search path for DLLs.
15742
hardcode_libdir_flag_spec_F77=' '
15743
allow_undefined_flag_F77=unsupported
15744
# Tell ltmain to make .lib files, not .a files.
15746
# Tell ltmain to make .dll files, not .so files.
15748
# FIXME: Setting linknames here is a bad hack.
15749
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15750
# The linker will automatically build a .lib file if we build a DLL.
15751
old_archive_From_new_cmds_F77='true'
15752
# FIXME: Should let the user specify the lib program.
15753
old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15754
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15755
enable_shared_with_static_runtimes_F77=yes
15758
darwin* | rhapsody*)
15760
rhapsody* | darwin1.[012])
15761
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15764
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15765
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15767
case ${MACOSX_DEPLOYMENT_TARGET} in
15769
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15772
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15778
archive_cmds_need_lc_F77=no
15779
hardcode_direct_F77=no
15780
hardcode_automatic_F77=yes
15781
hardcode_shlibpath_var_F77=unsupported
15782
whole_archive_flag_spec_F77=''
15783
link_all_deplibs_F77=yes
15784
if test "$GCC" = yes ; then
15785
output_verbose_link_cmd='echo'
15786
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}"
15787
module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15788
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}"
15789
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}"
15791
case $cc_basename in
15793
output_verbose_link_cmd='echo'
15794
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15795
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15796
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15797
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}'
15798
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}'
15808
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15809
hardcode_libdir_flag_spec_F77='-L$libdir'
15810
hardcode_shlibpath_var_F77=no
15817
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15818
# support. Future versions do this automatically, but an explicit c++rt0.o
15819
# does not break anything, and helps significantly (at the cost of a little
15822
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15823
hardcode_libdir_flag_spec_F77='-R$libdir'
15824
hardcode_direct_F77=yes
15825
hardcode_shlibpath_var_F77=no
15828
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
15830
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15831
hardcode_direct_F77=yes
15832
hardcode_minus_L_F77=yes
15833
hardcode_shlibpath_var_F77=no
15836
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15837
freebsd* | dragonfly*)
15838
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15839
hardcode_libdir_flag_spec_F77='-R$libdir'
15840
hardcode_direct_F77=yes
15841
hardcode_shlibpath_var_F77=no
15845
if test "$GCC" = yes; then
15846
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'
15848
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'
15850
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15851
hardcode_libdir_separator_F77=:
15852
hardcode_direct_F77=yes
15854
# hardcode_minus_L: Not really in the search PATH,
15855
# but as the default location of the library.
15856
hardcode_minus_L_F77=yes
15857
export_dynamic_flag_spec_F77='${wl}-E'
15861
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15862
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15864
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15866
if test "$with_gnu_ld" = no; then
15867
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15868
hardcode_libdir_separator_F77=:
15870
hardcode_direct_F77=yes
15871
export_dynamic_flag_spec_F77='${wl}-E'
15873
# hardcode_minus_L: Not really in the search PATH,
15874
# but as the default location of the library.
15875
hardcode_minus_L_F77=yes
15880
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15883
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15886
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15889
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15895
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15898
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15901
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15905
if test "$with_gnu_ld" = no; then
15906
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15907
hardcode_libdir_separator_F77=:
15911
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15912
hardcode_direct_F77=no
15913
hardcode_shlibpath_var_F77=no
15916
hardcode_direct_F77=yes
15917
export_dynamic_flag_spec_F77='${wl}-E'
15919
# hardcode_minus_L: Not really in the search PATH,
15920
# but as the default location of the library.
15921
hardcode_minus_L_F77=yes
15927
irix5* | irix6* | nonstopux*)
15928
if test "$GCC" = yes; then
15929
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'
15931
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'
15932
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15934
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15935
hardcode_libdir_separator_F77=:
15936
link_all_deplibs_F77=yes
15940
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15941
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15943
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15945
hardcode_libdir_flag_spec_F77='-R$libdir'
15946
hardcode_direct_F77=yes
15947
hardcode_shlibpath_var_F77=no
15951
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15952
hardcode_direct_F77=yes
15953
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15954
hardcode_libdir_separator_F77=:
15955
hardcode_shlibpath_var_F77=no
15959
if test -f /usr/libexec/ld.so; then
15960
hardcode_direct_F77=yes
15961
hardcode_shlibpath_var_F77=no
15962
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15963
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15964
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15965
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15966
export_dynamic_flag_spec_F77='${wl}-E'
15969
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15970
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15971
hardcode_libdir_flag_spec_F77='-R$libdir'
15974
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15975
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15985
hardcode_libdir_flag_spec_F77='-L$libdir'
15986
hardcode_minus_L_F77=yes
15987
allow_undefined_flag_F77=unsupported
15988
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'
15989
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15993
if test "$GCC" = yes; then
15994
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15995
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'
15997
allow_undefined_flag_F77=' -expect_unresolved \*'
15998
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'
16000
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16001
hardcode_libdir_separator_F77=:
16004
osf4* | osf5*) # as osf3* with the addition of -msym flag
16005
if test "$GCC" = yes; then
16006
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16007
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'
16008
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16010
allow_undefined_flag_F77=' -expect_unresolved \*'
16011
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'
16012
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~
16013
$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'
16015
# Both c and cxx compiler support -rpath directly
16016
hardcode_libdir_flag_spec_F77='-rpath $libdir'
16018
hardcode_libdir_separator_F77=:
16022
no_undefined_flag_F77=' -z text'
16023
if test "$GCC" = yes; then
16025
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16026
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16027
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16030
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16031
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16032
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16034
hardcode_libdir_flag_spec_F77='-R$libdir'
16035
hardcode_shlibpath_var_F77=no
16037
solaris2.[0-5] | solaris2.[0-5].*) ;;
16039
# The compiler driver will combine and reorder linker options,
16040
# but understands `-z linker_flag'. GCC discards it without `$wl',
16041
# but is careful enough not to reorder.
16042
# Supported since Solaris 2.6 (maybe 2.5.1?)
16043
if test "$GCC" = yes; then
16044
whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16046
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
16050
link_all_deplibs_F77=yes
16054
if test "x$host_vendor" = xsequent; then
16055
# Use $CC to link under sequent, because it throws in some extra .o
16056
# files that make .init and .fini sections work.
16057
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16059
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16061
hardcode_libdir_flag_spec_F77='-L$libdir'
16062
hardcode_direct_F77=yes
16063
hardcode_minus_L_F77=yes
16064
hardcode_shlibpath_var_F77=no
16068
case $host_vendor in
16070
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16071
hardcode_direct_F77=yes # is this really true???
16074
## LD is ld it makes a PLAMLIB
16075
## CC just makes a GrossModule.
16076
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16077
reload_cmds_F77='$CC -r -o $output$reload_objs'
16078
hardcode_direct_F77=no
16081
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16082
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16085
runpath_var='LD_RUN_PATH'
16086
hardcode_shlibpath_var_F77=no
16090
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16091
hardcode_shlibpath_var_F77=no
16092
export_dynamic_flag_spec_F77='-Bexport'
16096
if test -d /usr/nec; then
16097
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16098
hardcode_shlibpath_var_F77=no
16099
runpath_var=LD_RUN_PATH
16100
hardcode_runpath_var=yes
16105
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16106
no_undefined_flag_F77='${wl}-z,text'
16107
archive_cmds_need_lc_F77=no
16108
hardcode_shlibpath_var_F77=no
16109
runpath_var='LD_RUN_PATH'
16111
if test "$GCC" = yes; then
16112
archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16113
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16115
archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16116
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16120
sysv5* | sco3.2v5* | sco5v6*)
16121
# Note: We can NOT use -z defs as we might desire, because we do not
16122
# link with -lc, and that would cause any symbols used from libc to
16123
# always be unresolved, which means just about no library would
16124
# ever link correctly. If we're not using GNU ld we use -z text
16125
# though, which does catch some bad symbols but isn't as heavy-handed
16127
no_undefined_flag_F77='${wl}-z,text'
16128
allow_undefined_flag_F77='${wl}-z,nodefs'
16129
archive_cmds_need_lc_F77=no
16130
hardcode_shlibpath_var_F77=no
16131
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16132
hardcode_libdir_separator_F77=':'
16133
link_all_deplibs_F77=yes
16134
export_dynamic_flag_spec_F77='${wl}-Bexport'
16135
runpath_var='LD_RUN_PATH'
16137
if test "$GCC" = yes; then
16138
archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16139
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16141
archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16142
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16147
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16148
hardcode_libdir_flag_spec_F77='-L$libdir'
16149
hardcode_shlibpath_var_F77=no
16158
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16159
$as_echo "$ld_shlibs_F77" >&6; }
16160
test "$ld_shlibs_F77" = no && can_build_shared=no
16163
# Do we need to explicitly link libc?
16165
case "x$archive_cmds_need_lc_F77" in
16167
# Assume -lc should be added
16168
archive_cmds_need_lc_F77=yes
16170
if test "$enable_shared" = yes && test "$GCC" = yes; then
16171
case $archive_cmds_F77 in
16173
# FIXME: we may have to deal with multi-command sequences.
16176
# Test whether the compiler implicitly links with -lc since on some
16177
# systems, -lgcc has to come before -lc. If gcc already passes -lc
16178
# to ld, don't add -lc before -lgcc.
16179
{ $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16180
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16182
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16184
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16185
(eval $ac_compile) 2>&5
16187
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16188
(exit $ac_status); } 2>conftest.err; then
16191
libobjs=conftest.$ac_objext
16193
wl=$lt_prog_compiler_wl_F77
16194
pic_flag=$lt_prog_compiler_pic_F77
16200
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16201
allow_undefined_flag_F77=
16202
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16203
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16205
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16206
(exit $ac_status); }
16208
archive_cmds_need_lc_F77=no
16210
archive_cmds_need_lc_F77=yes
16212
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16214
cat conftest.err 1>&5
16217
{ $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16218
$as_echo "$archive_cmds_need_lc_F77" >&6; }
16225
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16226
$as_echo_n "checking dynamic linker characteristics... " >&6; }
16227
library_names_spec=
16228
libname_spec='lib$name'
16232
postuninstall_cmds=
16236
shlibpath_overrides_runpath=unknown
16238
dynamic_linker="$host_os ld.so"
16239
sys_lib_dlsearch_path_spec="/lib /usr/lib"
16241
need_lib_prefix=unknown
16242
hardcode_into_libs=no
16244
# when you set need_version to no, make sure it does not cause -set_version
16245
# flags to be left without arguments
16246
need_version=unknown
16251
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16252
shlibpath_var=LIBPATH
16254
# AIX 3 has no versioning support, so we append a major version to the name.
16255
soname_spec='${libname}${release}${shared_ext}$major'
16262
hardcode_into_libs=yes
16263
if test "$host_cpu" = ia64; then
16264
# AIX 5 supports IA64
16265
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16266
shlibpath_var=LD_LIBRARY_PATH
16268
# With GCC up to 2.95.x, collect2 would create an import file
16269
# for dependence libraries. The import file would start with
16270
# the line `#! .'. This would cause the generated library to
16271
# depend on `.', always an invalid library. This was fixed in
16272
# development snapshots of GCC prior to 3.0.
16274
aix4 | aix4.[01] | aix4.[01].*)
16275
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16277
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16280
can_build_shared=no
16284
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16285
# soname into executable. Probably we can add versioning support to
16286
# collect2, so additional links can be useful in future.
16287
if test "$aix_use_runtimelinking" = yes; then
16288
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
16289
# instead of lib<name>.a to let people know that these are not
16290
# typical AIX shared libraries.
16291
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16293
# We preserve .a as extension for shared libraries through AIX4.2
16294
# and later when we are not doing run time linking.
16295
library_names_spec='${libname}${release}.a $libname.a'
16296
soname_spec='${libname}${release}${shared_ext}$major'
16298
shlibpath_var=LIBPATH
16303
library_names_spec='$libname.ixlibrary $libname.a'
16304
# Create ${libname}_ixlibrary.a entries in /sys/libs.
16305
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'
16309
library_names_spec='${libname}${shared_ext}'
16310
dynamic_linker="$host_os ld.so"
16311
shlibpath_var=LIBRARY_PATH
16317
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16318
soname_spec='${libname}${release}${shared_ext}$major'
16319
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16320
shlibpath_var=LD_LIBRARY_PATH
16321
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16322
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16323
# the default ld.so.conf also contains /usr/contrib/lib and
16324
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16325
# libtool to hard-code these into programs
16328
cygwin* | mingw* | pw32*)
16329
version_type=windows
16334
case $GCC,$host_os in
16335
yes,cygwin* | yes,mingw* | yes,pw32*)
16336
library_names_spec='$libname.dll.a'
16337
# DLL is installed to $(libdir)/../bin by postinstall_cmds
16338
postinstall_cmds='base_file=`basename \${file}`~
16339
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16340
dldir=$destdir/`dirname \$dlpath`~
16341
test -d \$dldir || mkdir -p \$dldir~
16342
$install_prog $dir/$dlname \$dldir/$dlname~
16343
chmod a+x \$dldir/$dlname'
16344
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16345
dlpath=$dir/\$dldll~
16347
shlibpath_overrides_runpath=yes
16351
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
16352
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16353
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16356
# MinGW DLLs use traditional 'lib' prefix
16357
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16358
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16359
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16360
# It is most probably a Windows format PATH printed by
16361
# mingw gcc, but we are running on Cygwin. Gcc prints its search
16362
# path with ; separators, and with drive letters. We can handle the
16363
# drive letters (cygwin fileutils understands them), so leave them,
16364
# especially as we might pass files found there to a mingw objdump,
16365
# which wouldn't understand a cygwinified path. Ahh.
16366
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16368
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16372
# pw32 DLLs use 'pw' prefix rather than 'lib'
16373
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16379
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16382
dynamic_linker='Win32 ld.exe'
16383
# FIXME: first we should search . and the directory the executable is in
16387
darwin* | rhapsody*)
16388
dynamic_linker="$host_os dyld"
16389
version_type=darwin
16392
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16393
soname_spec='${libname}${release}${major}$shared_ext'
16394
shlibpath_overrides_runpath=yes
16395
shlibpath_var=DYLD_LIBRARY_PATH
16396
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16398
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16405
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16406
soname_spec='${libname}${release}${shared_ext}$major'
16407
shlibpath_var=LD_LIBRARY_PATH
16414
freebsd* | dragonfly*)
16415
# DragonFly does not have aout. When/if they implement a new
16416
# versioning mechanism, adjust this.
16417
if test -x /usr/bin/objformat; then
16418
objformat=`/usr/bin/objformat`
16421
freebsd[123]*) objformat=aout ;;
16422
*) objformat=elf ;;
16425
version_type=freebsd-$objformat
16426
case $version_type in
16428
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16433
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16437
shlibpath_var=LD_LIBRARY_PATH
16440
shlibpath_overrides_runpath=yes
16442
freebsd3.[01]* | freebsdelf3.[01]*)
16443
shlibpath_overrides_runpath=yes
16444
hardcode_into_libs=yes
16446
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16447
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16448
shlibpath_overrides_runpath=no
16449
hardcode_into_libs=yes
16451
*) # from 4.6 on, and DragonFly
16452
shlibpath_overrides_runpath=yes
16453
hardcode_into_libs=yes
16462
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16463
soname_spec='${libname}${release}${shared_ext}$major'
16464
shlibpath_var=LD_LIBRARY_PATH
16465
hardcode_into_libs=yes
16468
hpux9* | hpux10* | hpux11*)
16469
# Give a soname corresponding to the major version so that dld.sl refuses to
16470
# link against other versions.
16477
hardcode_into_libs=yes
16478
dynamic_linker="$host_os dld.so"
16479
shlibpath_var=LD_LIBRARY_PATH
16480
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16481
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16482
soname_spec='${libname}${release}${shared_ext}$major'
16483
if test "X$HPUX_IA64_MODE" = X32; then
16484
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16486
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16488
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16492
hardcode_into_libs=yes
16493
dynamic_linker="$host_os dld.sl"
16494
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16495
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16496
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16497
soname_spec='${libname}${release}${shared_ext}$major'
16498
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16499
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16503
dynamic_linker="$host_os dld.sl"
16504
shlibpath_var=SHLIB_PATH
16505
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16506
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16507
soname_spec='${libname}${release}${shared_ext}$major'
16510
# HP-UX runs *really* slowly unless shared libraries are mode 555.
16511
postinstall_cmds='chmod 555 $lib'
16518
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16519
soname_spec='${libname}${release}${shared_ext}$major'
16520
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16521
shlibpath_var=LD_LIBRARY_PATH
16522
shlibpath_overrides_runpath=no
16523
hardcode_into_libs=yes
16526
irix5* | irix6* | nonstopux*)
16528
nonstopux*) version_type=nonstopux ;;
16530
if test "$lt_cv_prog_gnu_ld" = yes; then
16538
soname_spec='${libname}${release}${shared_ext}$major'
16539
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16541
irix5* | nonstopux*)
16542
libsuff= shlibsuff=
16545
case $LD in # libtool.m4 will add one of these switches to LD
16546
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16547
libsuff= shlibsuff= libmagic=32-bit;;
16548
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16549
libsuff=32 shlibsuff=N32 libmagic=N32;;
16550
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16551
libsuff=64 shlibsuff=64 libmagic=64-bit;;
16552
*) libsuff= shlibsuff= libmagic=never-match;;
16556
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16557
shlibpath_overrides_runpath=no
16558
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16559
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16560
hardcode_into_libs=yes
16563
# No shared lib support for Linux oldld, aout, or coff.
16564
linux*oldld* | linux*aout* | linux*coff*)
16568
# This must be Linux ELF.
16569
linux* | k*bsd*-gnu)
16573
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16574
soname_spec='${libname}${release}${shared_ext}$major'
16575
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16576
shlibpath_var=LD_LIBRARY_PATH
16577
shlibpath_overrides_runpath=no
16578
# This implies no fast_install, which is unacceptable.
16579
# Some rework will be needed to allow for fast_install
16580
# before this can be enabled.
16581
hardcode_into_libs=yes
16583
# Append ld.so.conf contents to the search path
16584
if test -f /etc/ld.so.conf; then
16585
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' ' '`
16586
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16589
# We used to test for /lib/ld.so.1 and disable shared libraries on
16590
# powerpc, because MkLinux only supported shared libraries with the
16591
# GNU dynamic linker. Since this was broken with cross compilers,
16592
# most powerpc-linux boxes support dynamic linking these days and
16593
# people can always --disable-shared, the test was removed, and we
16594
# assume the GNU/Linux dynamic linker is in use.
16595
dynamic_linker='GNU/Linux ld.so'
16602
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16603
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16604
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16605
dynamic_linker='NetBSD (a.out) ld.so'
16607
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16608
soname_spec='${libname}${release}${shared_ext}$major'
16609
dynamic_linker='NetBSD ld.elf_so'
16611
shlibpath_var=LD_LIBRARY_PATH
16612
shlibpath_overrides_runpath=yes
16613
hardcode_into_libs=yes
16618
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16619
shlibpath_var=LD_LIBRARY_PATH
16620
shlibpath_overrides_runpath=yes
16627
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16628
soname_spec='${libname}${release}${shared_ext}$major'
16629
shlibpath_var=LD_LIBRARY_PATH
16630
shlibpath_overrides_runpath=yes
16635
sys_lib_dlsearch_path_spec="/usr/lib"
16637
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16639
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16640
*) need_version=no ;;
16642
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16643
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16644
shlibpath_var=LD_LIBRARY_PATH
16645
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16647
openbsd2.[89] | openbsd2.[89].*)
16648
shlibpath_overrides_runpath=no
16651
shlibpath_overrides_runpath=yes
16655
shlibpath_overrides_runpath=yes
16660
libname_spec='$name'
16663
library_names_spec='$libname${shared_ext} $libname.a'
16664
dynamic_linker='OS/2 ld.exe'
16665
shlibpath_var=LIBPATH
16668
osf3* | osf4* | osf5*)
16672
soname_spec='${libname}${release}${shared_ext}$major'
16673
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16674
shlibpath_var=LD_LIBRARY_PATH
16675
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16676
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16687
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16688
soname_spec='${libname}${release}${shared_ext}$major'
16689
shlibpath_var=LD_LIBRARY_PATH
16690
shlibpath_overrides_runpath=yes
16691
hardcode_into_libs=yes
16692
# ldd complains unless libraries are executable
16693
postinstall_cmds='chmod +x $lib'
16698
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16699
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16700
shlibpath_var=LD_LIBRARY_PATH
16701
shlibpath_overrides_runpath=yes
16702
if test "$with_gnu_ld" = yes; then
16710
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16711
soname_spec='${libname}${release}${shared_ext}$major'
16712
shlibpath_var=LD_LIBRARY_PATH
16713
case $host_vendor in
16715
shlibpath_overrides_runpath=no
16717
export_dynamic_flag_spec='${wl}-Blargedynsym'
16718
runpath_var=LD_RUN_PATH
16726
shlibpath_overrides_runpath=no
16727
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16733
if test -d /usr/nec ;then
16735
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16736
soname_spec='$libname${shared_ext}.$major'
16737
shlibpath_var=LD_LIBRARY_PATH
16741
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16742
version_type=freebsd-elf
16745
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16746
soname_spec='${libname}${release}${shared_ext}$major'
16747
shlibpath_var=LD_LIBRARY_PATH
16748
hardcode_into_libs=yes
16749
if test "$with_gnu_ld" = yes; then
16750
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16751
shlibpath_overrides_runpath=no
16753
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16754
shlibpath_overrides_runpath=yes
16757
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16761
sys_lib_dlsearch_path_spec='/usr/lib'
16766
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16767
soname_spec='${libname}${release}${shared_ext}$major'
16768
shlibpath_var=LD_LIBRARY_PATH
16775
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16776
$as_echo "$dynamic_linker" >&6; }
16777
test "$dynamic_linker" = no && can_build_shared=no
16779
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16780
$as_echo_n "(cached) " >&6
16782
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16785
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16786
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16787
$as_echo_n "(cached) " >&6
16789
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16792
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16794
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16795
if test "$GCC" = yes; then
16796
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16799
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16800
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16801
hardcode_action_F77=
16802
if test -n "$hardcode_libdir_flag_spec_F77" || \
16803
test -n "$runpath_var_F77" || \
16804
test "X$hardcode_automatic_F77" = "Xyes" ; then
16806
# We can hardcode non-existant directories.
16807
if test "$hardcode_direct_F77" != no &&
16808
# If the only mechanism to avoid hardcoding is shlibpath_var, we
16809
# have to relink, otherwise we might link with an installed library
16810
# when we should be linking with a yet-to-be-installed one
16811
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16812
test "$hardcode_minus_L_F77" != no; then
16813
# Linking always hardcodes the temporary library directory.
16814
hardcode_action_F77=relink
16816
# We can link without hardcoding, and we can hardcode nonexisting dirs.
16817
hardcode_action_F77=immediate
16820
# We cannot hardcode anything, or else we can only hardcode existing
16822
hardcode_action_F77=unsupported
16824
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16825
$as_echo "$hardcode_action_F77" >&6; }
16827
if test "$hardcode_action_F77" = relink; then
16828
# Fast installation is not supported
16829
enable_fast_install=no
16830
elif test "$shlibpath_overrides_runpath" = yes ||
16831
test "$enable_shared" = no; then
16832
# Fast installation is not necessary
16833
enable_fast_install=needless
16837
# The else clause should only fire when bootstrapping the
16838
# libtool distribution, otherwise you forgot to ship ltmain.sh
16839
# with your package, and you will get complaints that there are
16840
# no rules to generate ltmain.sh.
16841
if test -f "$ltmain"; then
16842
# See if we are running on zsh, and set the options which allow our commands through
16843
# without removal of \ escapes.
16844
if test -n "${ZSH_VERSION+set}" ; then
16845
setopt NO_GLOB_SUBST
16847
# Now quote all the things that may contain metacharacters while being
16848
# careful not to overquote the AC_SUBSTed values. We take copies of the
16849
# variables and quote the copies for generation of the libtool script.
16850
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16852
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16853
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16854
deplibs_check_method reload_flag reload_cmds need_locks \
16855
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16856
lt_cv_sys_global_symbol_to_c_name_address \
16857
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16858
old_postinstall_cmds old_postuninstall_cmds \
16862
lt_prog_compiler_wl_F77 \
16863
lt_prog_compiler_pic_F77 \
16864
lt_prog_compiler_static_F77 \
16865
lt_prog_compiler_no_builtin_flag_F77 \
16866
export_dynamic_flag_spec_F77 \
16867
thread_safe_flag_spec_F77 \
16868
whole_archive_flag_spec_F77 \
16869
enable_shared_with_static_runtimes_F77 \
16870
old_archive_cmds_F77 \
16871
old_archive_from_new_cmds_F77 \
16872
predep_objects_F77 \
16873
postdep_objects_F77 \
16876
compiler_lib_search_path_F77 \
16877
compiler_lib_search_dirs_F77 \
16879
archive_expsym_cmds_F77 \
16880
postinstall_cmds_F77 \
16881
postuninstall_cmds_F77 \
16882
old_archive_from_expsyms_cmds_F77 \
16883
allow_undefined_flag_F77 \
16884
no_undefined_flag_F77 \
16885
export_symbols_cmds_F77 \
16886
hardcode_libdir_flag_spec_F77 \
16887
hardcode_libdir_flag_spec_ld_F77 \
16888
hardcode_libdir_separator_F77 \
16889
hardcode_automatic_F77 \
16891
module_expsym_cmds_F77 \
16892
lt_cv_prog_compiler_c_o_F77 \
16893
fix_srcfile_path_F77 \
16894
exclude_expsyms_F77 \
16895
include_expsyms_F77; do
16898
old_archive_cmds_F77 | \
16899
old_archive_from_new_cmds_F77 | \
16900
archive_cmds_F77 | \
16901
archive_expsym_cmds_F77 | \
16902
module_cmds_F77 | \
16903
module_expsym_cmds_F77 | \
16904
old_archive_from_expsyms_cmds_F77 | \
16905
export_symbols_cmds_F77 | \
16906
extract_expsyms_cmds | reload_cmds | finish_cmds | \
16907
postinstall_cmds | postuninstall_cmds | \
16908
old_postinstall_cmds | old_postuninstall_cmds | \
16909
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16910
# Double-quote double-evaled strings.
16911
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16914
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16920
*'\$0 --fallback-echo"')
16921
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16927
cat <<__EOF__ >> "$cfgfile"
16928
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16930
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16932
# Shell to use when invoking shell scripts.
16935
# Whether or not to build shared libraries.
16936
build_libtool_libs=$enable_shared
16938
# Whether or not to build static libraries.
16939
build_old_libs=$enable_static
16941
# Whether or not to add -lc for building shared libraries.
16942
build_libtool_need_lc=$archive_cmds_need_lc_F77
16944
# Whether or not to disallow shared libs when runtime libs are static
16945
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16947
# Whether or not to optimize for fast installation.
16948
fast_install=$enable_fast_install
16951
host_alias=$host_alias
16955
# The build system.
16956
build_alias=$build_alias
16960
# An echo program that does not interpret backslashes.
16965
AR_FLAGS=$lt_AR_FLAGS
16970
# LTCC compiler flags.
16971
LTCFLAGS=$lt_LTCFLAGS
16973
# A language-specific compiler.
16974
CC=$lt_compiler_F77
16976
# Is the compiler the GNU C compiler?
16982
# The linker used to build libraries.
16985
# Whether we need hard or soft links.
16988
# A BSD-compatible nm program.
16991
# A symbol stripping program
16994
# Used to examine libraries when file_magic_cmd begins "file"
16995
MAGIC_CMD=$MAGIC_CMD
16997
# Used on cygwin: DLL creation program.
17000
# Used on cygwin: object dumper.
17003
# Used on cygwin: assembler.
17006
# The name of the directory that contains temporary libtool files.
17009
# How to create reloadable object files.
17010
reload_flag=$lt_reload_flag
17011
reload_cmds=$lt_reload_cmds
17013
# How to pass a linker flag through the compiler.
17014
wl=$lt_lt_prog_compiler_wl_F77
17016
# Object file suffix (normally "o").
17017
objext="$ac_objext"
17019
# Old archive suffix (normally "a").
17022
# Shared library suffix (normally ".so").
17023
shrext_cmds='$shrext_cmds'
17025
# Executable file suffix (normally "").
17028
# Additional compiler flags for building library objects.
17029
pic_flag=$lt_lt_prog_compiler_pic_F77
17032
# What is the maximum length of a command?
17033
max_cmd_len=$lt_cv_sys_max_cmd_len
17035
# Does compiler simultaneously support -c and -o options?
17036
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17038
# Must we lock files when doing compilation?
17039
need_locks=$lt_need_locks
17041
# Do we need the lib prefix for modules?
17042
need_lib_prefix=$need_lib_prefix
17044
# Do we need a version for libraries?
17045
need_version=$need_version
17047
# Whether dlopen is supported.
17048
dlopen_support=$enable_dlopen
17050
# Whether dlopen of programs is supported.
17051
dlopen_self=$enable_dlopen_self
17053
# Whether dlopen of statically linked programs is supported.
17054
dlopen_self_static=$enable_dlopen_self_static
17056
# Compiler flag to prevent dynamic linking.
17057
link_static_flag=$lt_lt_prog_compiler_static_F77
17059
# Compiler flag to turn off builtin functions.
17060
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17062
# Compiler flag to allow reflexive dlopens.
17063
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17065
# Compiler flag to generate shared objects directly from archives.
17066
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17068
# Compiler flag to generate thread-safe objects.
17069
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17071
# Library versioning type.
17072
version_type=$version_type
17074
# Format of library name prefix.
17075
libname_spec=$lt_libname_spec
17077
# List of archive names. First name is the real one, the rest are links.
17078
# The last name is the one that the linker finds with -lNAME.
17079
library_names_spec=$lt_library_names_spec
17081
# The coded name of the library, if different from the real name.
17082
soname_spec=$lt_soname_spec
17084
# Commands used to build and install an old-style archive.
17086
old_archive_cmds=$lt_old_archive_cmds_F77
17087
old_postinstall_cmds=$lt_old_postinstall_cmds
17088
old_postuninstall_cmds=$lt_old_postuninstall_cmds
17090
# Create an old-style archive from a shared archive.
17091
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17093
# Create a temporary old-style archive to link instead of a shared archive.
17094
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17096
# Commands used to build and install a shared archive.
17097
archive_cmds=$lt_archive_cmds_F77
17098
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17099
postinstall_cmds=$lt_postinstall_cmds
17100
postuninstall_cmds=$lt_postuninstall_cmds
17102
# Commands used to build a loadable module (assumed same as above if empty)
17103
module_cmds=$lt_module_cmds_F77
17104
module_expsym_cmds=$lt_module_expsym_cmds_F77
17106
# Commands to strip libraries.
17107
old_striplib=$lt_old_striplib
17108
striplib=$lt_striplib
17110
# Dependencies to place before the objects being linked to create a
17112
predep_objects=$lt_predep_objects_F77
17114
# Dependencies to place after the objects being linked to create a
17116
postdep_objects=$lt_postdep_objects_F77
17118
# Dependencies to place before the objects being linked to create a
17120
predeps=$lt_predeps_F77
17122
# Dependencies to place after the objects being linked to create a
17124
postdeps=$lt_postdeps_F77
17126
# The directories searched by this compiler when creating a shared
17128
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
17130
# The library search path used internally by the compiler when linking
17131
# a shared library.
17132
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17134
# Method to check whether dependent libraries are shared objects.
17135
deplibs_check_method=$lt_deplibs_check_method
17137
# Command to use when deplibs_check_method == file_magic.
17138
file_magic_cmd=$lt_file_magic_cmd
17140
# Flag that allows shared libraries with undefined symbols to be built.
17141
allow_undefined_flag=$lt_allow_undefined_flag_F77
17143
# Flag that forces no undefined symbols.
17144
no_undefined_flag=$lt_no_undefined_flag_F77
17146
# Commands used to finish a libtool library installation in a directory.
17147
finish_cmds=$lt_finish_cmds
17149
# Same as above, but a single script fragment to be evaled but not shown.
17150
finish_eval=$lt_finish_eval
17152
# Take the output of nm and produce a listing of raw symbols and C names.
17153
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17155
# Transform the output of nm in a proper C declaration
17156
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17158
# Transform the output of nm in a C name address pair
17159
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17161
# This is the shared library runtime path variable.
17162
runpath_var=$runpath_var
17164
# This is the shared library path variable.
17165
shlibpath_var=$shlibpath_var
17167
# Is shlibpath searched before the hard-coded library search path?
17168
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17170
# How to hardcode a shared library path into an executable.
17171
hardcode_action=$hardcode_action_F77
17173
# Whether we should hardcode library paths into libraries.
17174
hardcode_into_libs=$hardcode_into_libs
17176
# Flag to hardcode \$libdir into a binary during linking.
17177
# This must work even if \$libdir does not exist.
17178
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17180
# If ld is used when linking, flag to hardcode \$libdir into
17181
# a binary during linking. This must work even if \$libdir does
17183
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17185
# Whether we need a single -rpath flag with a separated argument.
17186
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17188
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17189
# resulting binary.
17190
hardcode_direct=$hardcode_direct_F77
17192
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17193
# resulting binary.
17194
hardcode_minus_L=$hardcode_minus_L_F77
17196
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17197
# the resulting binary.
17198
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17200
# Set to yes if building a shared library automatically hardcodes DIR into the library
17201
# and all subsequent libraries and executables linked against it.
17202
hardcode_automatic=$hardcode_automatic_F77
17204
# Variables whose values should be saved in libtool wrapper scripts and
17205
# restored at relink time.
17206
variables_saved_for_relink="$variables_saved_for_relink"
17208
# Whether libtool must link a program against all its dependency libraries.
17209
link_all_deplibs=$link_all_deplibs_F77
17211
# Compile-time system search path for libraries
17212
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17214
# Run-time system search path for libraries
17215
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17217
# Fix the shell variable \$srcfile for the compiler.
17218
fix_srcfile_path=$lt_fix_srcfile_path
17220
# Set to yes if exported symbols are required.
17221
always_export_symbols=$always_export_symbols_F77
17223
# The commands to list exported symbols.
17224
export_symbols_cmds=$lt_export_symbols_cmds_F77
17226
# The commands to extract the exported symbol list from a shared archive.
17227
extract_expsyms_cmds=$lt_extract_expsyms_cmds
17229
# Symbols that should not be listed in the preloaded symbols.
17230
exclude_expsyms=$lt_exclude_expsyms_F77
17232
# Symbols that must always be exported.
17233
include_expsyms=$lt_include_expsyms_F77
17235
# ### END LIBTOOL TAG CONFIG: $tagname
17241
# If there is no Makefile yet, we rely on a make rule to execute
17242
# `config.status --recheck' to rerun these tests and create the
17243
# libtool script then.
17244
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17245
if test -f "$ltmain_in"; then
17246
test -f Makefile && make "$ltmain"
17252
ac_cpp='$CPP $CPPFLAGS'
17253
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17254
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17255
ac_compiler_gnu=$ac_cv_c_compiler_gnu
17265
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17268
# Source file extension for Java test sources.
17271
# Object file extension for compiled Java test sources.
17275
# Code to be used in simple compile tests
17276
lt_simple_compile_test_code="class foo {}"
17278
# Code to be used in simple link tests
17279
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
17281
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17283
# If no C compiler was specified, use CC.
17286
# If no C compiler flags were specified, use CFLAGS.
17287
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17289
# Allow CC to be a program name with arguments.
17293
# save warnings/boilerplate of simple test code
17294
ac_outfile=conftest.$ac_objext
17295
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17296
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17297
_lt_compiler_boilerplate=`cat conftest.err`
17300
ac_outfile=conftest.$ac_objext
17301
echo "$lt_simple_link_test_code" >conftest.$ac_ext
17302
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17303
_lt_linker_boilerplate=`cat conftest.err`
17307
# Allow CC to be a program name with arguments.
17312
for cc_temp in $compiler""; do
17314
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17315
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17320
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17323
# GCJ did not exist at the time GCC didn't implicitly link libc in.
17324
archive_cmds_need_lc_GCJ=no
17326
old_archive_cmds_GCJ=$old_archive_cmds
17329
lt_prog_compiler_no_builtin_flag_GCJ=
17331
if test "$GCC" = yes; then
17332
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17335
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17336
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
17337
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17338
$as_echo_n "(cached) " >&6
17340
lt_cv_prog_compiler_rtti_exceptions=no
17341
ac_outfile=conftest.$ac_objext
17342
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17343
lt_compiler_flag="-fno-rtti -fno-exceptions"
17344
# Insert the option either (1) after the last *FLAGS variable, or
17345
# (2) before a word containing "conftest.", or (3) at the end.
17346
# Note that $ac_compile itself does not contain backslashes and begins
17347
# with a dollar sign (not a hyphen), so the echo should work correctly.
17348
# The option is referenced via a variable to avoid confusing sed.
17349
lt_compile=`echo "$ac_compile" | $SED \
17350
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17351
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17352
-e 's:$: $lt_compiler_flag:'`
17353
(eval echo "\"\$as_me:17353: $lt_compile\"" >&5)
17354
(eval "$lt_compile" 2>conftest.err)
17356
cat conftest.err >&5
17357
echo "$as_me:17357: \$? = $ac_status" >&5
17358
if (exit $ac_status) && test -s "$ac_outfile"; then
17359
# The compiler can only warn and ignore the option if not recognized
17360
# So say no if there are warnings other than the usual output.
17361
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17362
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17363
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17364
lt_cv_prog_compiler_rtti_exceptions=yes
17370
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17371
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17373
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17374
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17381
lt_prog_compiler_wl_GCJ=
17382
lt_prog_compiler_pic_GCJ=
17383
lt_prog_compiler_static_GCJ=
17385
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17386
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17388
if test "$GCC" = yes; then
17389
lt_prog_compiler_wl_GCJ='-Wl,'
17390
lt_prog_compiler_static_GCJ='-static'
17394
# All AIX code is PIC.
17395
if test "$host_cpu" = ia64; then
17396
# AIX 5 now supports IA64 processor
17397
lt_prog_compiler_static_GCJ='-Bstatic'
17402
# FIXME: we need at least 68020 code to build shared libraries, but
17403
# adding the `-m68020' flag to GCC prevents building anything better,
17405
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17408
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17409
# PIC is the default for these OSes.
17412
mingw* | cygwin* | pw32* | os2*)
17413
# This hack is so that the source file can tell whether it is being
17414
# built for inclusion in a dll (and should export symbols for example).
17415
# Although the cygwin gcc ignores -fPIC, still need this for old-style
17416
# (--disable-auto-import) libraries
17420
darwin* | rhapsody*)
17421
# PIC is the default on this platform
17422
# Common symbols not allowed in MH_DYLIB files
17423
lt_prog_compiler_pic_GCJ='-fno-common'
17427
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
17428
# Instead, we relocate shared libraries at runtime.
17432
# Just because we use GCC doesn't mean we suddenly get shared libraries
17433
# on systems that don't support them.
17434
lt_prog_compiler_can_build_shared_GCJ=no
17439
if test -d /usr/nec; then
17440
lt_prog_compiler_pic_GCJ=-Kconform_pic
17445
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17446
# not for PA HP-UX.
17452
lt_prog_compiler_pic_GCJ='-fPIC'
17458
lt_prog_compiler_pic_GCJ='-fPIC'
17462
# PORTME Check for flag to pass linker flags through the system compiler.
17465
lt_prog_compiler_wl_GCJ='-Wl,'
17466
if test "$host_cpu" = ia64; then
17467
# AIX 5 now supports IA64 processor
17468
lt_prog_compiler_static_GCJ='-Bstatic'
17470
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17474
# PIC is the default on this platform
17475
# Common symbols not allowed in MH_DYLIB files
17476
case $cc_basename in
17478
lt_prog_compiler_pic_GCJ='-qnocommon'
17479
lt_prog_compiler_wl_GCJ='-Wl,'
17484
mingw* | cygwin* | pw32* | os2*)
17485
# This hack is so that the source file can tell whether it is being
17486
# built for inclusion in a dll (and should export symbols for example).
17490
hpux9* | hpux10* | hpux11*)
17491
lt_prog_compiler_wl_GCJ='-Wl,'
17492
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17493
# not for PA HP-UX.
17499
lt_prog_compiler_pic_GCJ='+Z'
17502
# Is there a better lt_prog_compiler_static that works with the bundled CC?
17503
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17506
irix5* | irix6* | nonstopux*)
17507
lt_prog_compiler_wl_GCJ='-Wl,'
17508
# PIC (with -KPIC) is the default.
17509
lt_prog_compiler_static_GCJ='-non_shared'
17513
lt_prog_compiler_pic_GCJ='-KPIC'
17514
lt_prog_compiler_static_GCJ='-Bstatic'
17517
linux* | k*bsd*-gnu)
17518
case $cc_basename in
17520
lt_prog_compiler_wl_GCJ='-Wl,'
17521
lt_prog_compiler_pic_GCJ='-KPIC'
17522
lt_prog_compiler_static_GCJ='-static'
17524
pgcc* | pgf77* | pgf90* | pgf95*)
17525
# Portland Group compilers (*not* the Pentium gcc compiler,
17526
# which looks to be a dead project)
17527
lt_prog_compiler_wl_GCJ='-Wl,'
17528
lt_prog_compiler_pic_GCJ='-fpic'
17529
lt_prog_compiler_static_GCJ='-Bstatic'
17532
lt_prog_compiler_wl_GCJ='-Wl,'
17533
# All Alpha code is PIC.
17534
lt_prog_compiler_static_GCJ='-non_shared'
17537
case `$CC -V 2>&1 | sed 5q` in
17540
lt_prog_compiler_pic_GCJ='-KPIC'
17541
lt_prog_compiler_static_GCJ='-Bstatic'
17542
lt_prog_compiler_wl_GCJ='-Wl,'
17545
# Sun Fortran 8.3 passes all unrecognized flags to the linker
17546
lt_prog_compiler_pic_GCJ='-KPIC'
17547
lt_prog_compiler_static_GCJ='-Bstatic'
17548
lt_prog_compiler_wl_GCJ=''
17555
osf3* | osf4* | osf5*)
17556
lt_prog_compiler_wl_GCJ='-Wl,'
17557
# All OSF/1 code is PIC.
17558
lt_prog_compiler_static_GCJ='-non_shared'
17562
lt_prog_compiler_static_GCJ='-non_shared'
17566
lt_prog_compiler_pic_GCJ='-KPIC'
17567
lt_prog_compiler_static_GCJ='-Bstatic'
17568
case $cc_basename in
17569
f77* | f90* | f95*)
17570
lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17572
lt_prog_compiler_wl_GCJ='-Wl,';;
17577
lt_prog_compiler_wl_GCJ='-Qoption ld '
17578
lt_prog_compiler_pic_GCJ='-PIC'
17579
lt_prog_compiler_static_GCJ='-Bstatic'
17582
sysv4 | sysv4.2uw2* | sysv4.3*)
17583
lt_prog_compiler_wl_GCJ='-Wl,'
17584
lt_prog_compiler_pic_GCJ='-KPIC'
17585
lt_prog_compiler_static_GCJ='-Bstatic'
17589
if test -d /usr/nec ;then
17590
lt_prog_compiler_pic_GCJ='-Kconform_pic'
17591
lt_prog_compiler_static_GCJ='-Bstatic'
17595
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17596
lt_prog_compiler_wl_GCJ='-Wl,'
17597
lt_prog_compiler_pic_GCJ='-KPIC'
17598
lt_prog_compiler_static_GCJ='-Bstatic'
17602
lt_prog_compiler_wl_GCJ='-Wl,'
17603
lt_prog_compiler_can_build_shared_GCJ=no
17607
lt_prog_compiler_pic_GCJ='-pic'
17608
lt_prog_compiler_static_GCJ='-Bstatic'
17612
lt_prog_compiler_can_build_shared_GCJ=no
17617
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17618
$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17621
# Check to make sure the PIC flag actually works.
17623
if test -n "$lt_prog_compiler_pic_GCJ"; then
17625
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17626
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17627
if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17628
$as_echo_n "(cached) " >&6
17630
lt_cv_prog_compiler_pic_works_GCJ=no
17631
ac_outfile=conftest.$ac_objext
17632
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17633
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17634
# Insert the option either (1) after the last *FLAGS variable, or
17635
# (2) before a word containing "conftest.", or (3) at the end.
17636
# Note that $ac_compile itself does not contain backslashes and begins
17637
# with a dollar sign (not a hyphen), so the echo should work correctly.
17638
# The option is referenced via a variable to avoid confusing sed.
17639
lt_compile=`echo "$ac_compile" | $SED \
17640
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17641
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17642
-e 's:$: $lt_compiler_flag:'`
17643
(eval echo "\"\$as_me:17643: $lt_compile\"" >&5)
17644
(eval "$lt_compile" 2>conftest.err)
17646
cat conftest.err >&5
17647
echo "$as_me:17647: \$? = $ac_status" >&5
17648
if (exit $ac_status) && test -s "$ac_outfile"; then
17649
# The compiler can only warn and ignore the option if not recognized
17650
# So say no if there are warnings other than the usual output.
17651
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17652
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17653
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17654
lt_cv_prog_compiler_pic_works_GCJ=yes
17660
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17661
$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17663
if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17664
case $lt_prog_compiler_pic_GCJ in
17666
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17669
lt_prog_compiler_pic_GCJ=
17670
lt_prog_compiler_can_build_shared_GCJ=no
17675
# For platforms which do not support PIC, -DPIC is meaningless:
17677
lt_prog_compiler_pic_GCJ=
17680
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17685
# Check to make sure the static flag actually works.
17687
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17688
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17689
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17690
if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17691
$as_echo_n "(cached) " >&6
17693
lt_cv_prog_compiler_static_works_GCJ=no
17694
save_LDFLAGS="$LDFLAGS"
17695
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17696
echo "$lt_simple_link_test_code" > conftest.$ac_ext
17697
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17698
# The linker can only warn and ignore the option if not recognized
17699
# So say no if there are warnings
17700
if test -s conftest.err; then
17701
# Append any errors to the config.log.
17702
cat conftest.err 1>&5
17703
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17704
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17705
if diff conftest.exp conftest.er2 >/dev/null; then
17706
lt_cv_prog_compiler_static_works_GCJ=yes
17709
lt_cv_prog_compiler_static_works_GCJ=yes
17713
LDFLAGS="$save_LDFLAGS"
17716
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17717
$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17719
if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17722
lt_prog_compiler_static_GCJ=
17726
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17727
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17728
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17729
$as_echo_n "(cached) " >&6
17731
lt_cv_prog_compiler_c_o_GCJ=no
17732
$rm -r conftest 2>/dev/null
17736
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17738
lt_compiler_flag="-o out/conftest2.$ac_objext"
17739
# Insert the option either (1) after the last *FLAGS variable, or
17740
# (2) before a word containing "conftest.", or (3) at the end.
17741
# Note that $ac_compile itself does not contain backslashes and begins
17742
# with a dollar sign (not a hyphen), so the echo should work correctly.
17743
lt_compile=`echo "$ac_compile" | $SED \
17744
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17745
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17746
-e 's:$: $lt_compiler_flag:'`
17747
(eval echo "\"\$as_me:17747: $lt_compile\"" >&5)
17748
(eval "$lt_compile" 2>out/conftest.err)
17750
cat out/conftest.err >&5
17751
echo "$as_me:17751: \$? = $ac_status" >&5
17752
if (exit $ac_status) && test -s out/conftest2.$ac_objext
17754
# The compiler can only warn and ignore the option if not recognized
17755
# So say no if there are warnings
17756
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17757
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17758
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17759
lt_cv_prog_compiler_c_o_GCJ=yes
17764
# SGI C++ compiler will create directory out/ii_files/ for
17765
# template instantiation
17766
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17767
$rm out/* && rmdir out
17773
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17774
$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17777
hard_links="nottested"
17778
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17779
# do not overwrite the value of need_locks provided by the user
17780
{ $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17781
$as_echo_n "checking if we can lock with hard links... " >&6; }
17784
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17786
ln conftest.a conftest.b 2>&5 || hard_links=no
17787
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17788
{ $as_echo "$as_me:$LINENO: result: $hard_links" >&5
17789
$as_echo "$hard_links" >&6; }
17790
if test "$hard_links" = no; then
17791
{ $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17792
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17799
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17800
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17803
allow_undefined_flag_GCJ=
17804
enable_shared_with_static_runtimes_GCJ=no
17806
archive_expsym_cmds_GCJ=
17807
old_archive_From_new_cmds_GCJ=
17808
old_archive_from_expsyms_cmds_GCJ=
17809
export_dynamic_flag_spec_GCJ=
17810
whole_archive_flag_spec_GCJ=
17811
thread_safe_flag_spec_GCJ=
17812
hardcode_libdir_flag_spec_GCJ=
17813
hardcode_libdir_flag_spec_ld_GCJ=
17814
hardcode_libdir_separator_GCJ=
17815
hardcode_direct_GCJ=no
17816
hardcode_minus_L_GCJ=no
17817
hardcode_shlibpath_var_GCJ=unsupported
17818
link_all_deplibs_GCJ=unknown
17819
hardcode_automatic_GCJ=no
17821
module_expsym_cmds_GCJ=
17822
always_export_symbols_GCJ=no
17823
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17824
# include_expsyms should be a list of space-separated symbols to be *always*
17825
# included in the symbol list
17826
include_expsyms_GCJ=
17827
# exclude_expsyms can be an extended regexp of symbols to exclude
17828
# it will be wrapped by ` (' and `)$', so one must not match beginning or
17829
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17830
# as well as any symbol that contains `d'.
17831
exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17832
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17833
# platforms (ab)use it in PIC code, but their linkers get confused if
17834
# the symbol is explicitly referenced. Since portable code cannot
17835
# rely on this symbol name, it's probably fine to never include it in
17836
# preloaded symbol tables.
17837
# Exclude shared library initialization/finalization symbols.
17838
extract_expsyms_cmds=
17839
# Just being paranoid about ensuring that cc_basename is set.
17840
for cc_temp in $compiler""; do
17842
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17843
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17848
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17851
cygwin* | mingw* | pw32*)
17852
# FIXME: the MSVC++ port hasn't been tested in a loooong time
17853
# When not using gcc, we currently assume that we are using
17854
# Microsoft Visual C++.
17855
if test "$GCC" != yes; then
17860
# we just hope/assume this is gcc and not c89 (= MSVC++)
17869
if test "$with_gnu_ld" = yes; then
17870
# If archive_cmds runs LD, not CC, wlarc should be empty
17873
# Set some defaults for GNU ld with shared library support. These
17874
# are reset later if shared libraries are not supported. Putting them
17875
# here allows them to be overridden if necessary.
17876
runpath_var=LD_RUN_PATH
17877
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17878
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17879
# ancient GNU ld didn't support --whole-archive et. al.
17880
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17881
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17883
whole_archive_flag_spec_GCJ=
17885
supports_anon_versioning=no
17886
case `$LD -v 2>/dev/null` in
17887
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17888
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17889
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17890
*\ 2.11.*) ;; # other 2.11 versions
17891
*) supports_anon_versioning=yes ;;
17894
# See if GNU ld supports shared libraries.
17897
# On AIX/PPC, the GNU linker is very broken
17898
if test "$host_cpu" != ia64; then
17902
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17903
*** to be unable to reliably create shared libraries on AIX.
17904
*** Therefore, libtool is disabling shared libraries support. If you
17905
*** really care for shared libraries, you may want to modify your PATH
17906
*** so that a non-GNU linker is found, and then restart.
17913
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)'
17914
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17915
hardcode_minus_L_GCJ=yes
17917
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17918
# that the semantics of dynamic libraries on AmigaOS, at least up
17919
# to version 4, is to share data among multiple programs linked
17920
# with the same dynamic library. Since this doesn't match the
17921
# behavior of shared libraries on other platforms, we can't use
17927
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17928
allow_undefined_flag_GCJ=unsupported
17929
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17930
# support --undefined. This deserves some investigation. FIXME
17931
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17937
cygwin* | mingw* | pw32*)
17938
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17939
# as there is no search path for DLLs.
17940
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17941
allow_undefined_flag_GCJ=unsupported
17942
always_export_symbols_GCJ=no
17943
enable_shared_with_static_runtimes_GCJ=yes
17944
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17946
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17947
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17948
# If the export-symbols file already is a .def file (1st line
17949
# is EXPORTS), use it as is; otherwise, prepend...
17950
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17951
cp $export_symbols $output_objdir/$soname.def;
17953
echo EXPORTS > $output_objdir/$soname.def;
17954
cat $export_symbols >> $output_objdir/$soname.def;
17956
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17963
hardcode_direct_GCJ=no
17964
hardcode_shlibpath_var_GCJ=no
17965
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17966
export_dynamic_flag_spec_GCJ='${wl}-E'
17967
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17968
# Instead, shared libraries are loaded at an image base (0x10000000 by
17969
# default) and relocated if they conflict, which is a slow very memory
17970
# consuming and fragmenting process. To avoid this, we pick a random,
17971
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17972
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
17973
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'
17974
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'
17977
gnu* | linux* | k*bsd*-gnu)
17978
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17980
case $cc_basename,$host_cpu in
17981
pgcc*) # Portland Group C compiler
17982
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'
17983
tmp_addflag=' $pic_flag'
17985
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17986
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'
17987
tmp_addflag=' $pic_flag -Mnomain' ;;
17988
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17989
tmp_addflag=' -i_dynamic' ;;
17990
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17991
tmp_addflag=' -i_dynamic -nofor_main' ;;
17992
ifc* | ifort*) # Intel Fortran compiler
17993
tmp_addflag=' -nofor_main' ;;
17995
case `$CC -V 2>&1 | sed 5q` in
17996
*Sun\ C*) # Sun C 5.9
17997
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'
17998
tmp_sharedflag='-G' ;;
17999
*Sun\ F*) # Sun Fortran 8.3
18000
tmp_sharedflag='-G' ;;
18002
tmp_sharedflag='-shared' ;;
18004
archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18006
if test $supports_anon_versioning = yes; then
18007
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18008
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18009
$echo "local: *; };" >> $output_objdir/$libname.ver~
18010
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18018
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18019
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18022
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18023
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18028
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18032
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
18033
*** create shared libraries on Solaris systems. Therefore, libtool
18034
*** is disabling shared libraries support. We urge you to upgrade GNU
18035
*** binutils to release 2.9.1 or newer. Another option is to modify
18036
*** your PATH or compiler configuration so that the native linker is
18037
*** used, and then restart.
18040
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18041
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18042
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18048
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18049
case `$LD -v 2>&1` in
18050
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18054
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18055
*** reliably create shared libraries on SCO systems. Therefore, libtool
18056
*** is disabling shared libraries support. We urge you to upgrade GNU
18057
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18058
*** your PATH or compiler configuration so that the native linker is
18059
*** used, and then restart.
18064
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18065
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18066
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18067
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18076
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18078
hardcode_direct_GCJ=yes
18079
hardcode_shlibpath_var_GCJ=no
18083
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18084
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18085
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18092
if test "$ld_shlibs_GCJ" = no; then
18094
hardcode_libdir_flag_spec_GCJ=
18095
export_dynamic_flag_spec_GCJ=
18096
whole_archive_flag_spec_GCJ=
18099
# PORTME fill in a description of your system's linker (not GNU ld)
18102
allow_undefined_flag_GCJ=unsupported
18103
always_export_symbols_GCJ=yes
18104
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'
18105
# Note: this linker hardcodes the directories in LIBPATH if there
18106
# are no directories specified by -L.
18107
hardcode_minus_L_GCJ=yes
18108
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18109
# Neither direct hardcoding nor static linking is supported with a
18111
hardcode_direct_GCJ=unsupported
18116
if test "$host_cpu" = ia64; then
18117
# On IA64, the linker does run time linking by default, so we don't
18118
# have to do anything special.
18119
aix_use_runtimelinking=no
18120
exp_sym_flag='-Bexport'
18123
# If we're using GNU nm, then we don't want the "-C" option.
18124
# -C means demangle to AIX nm, but means don't demangle with GNU nm
18125
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18126
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'
18128
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'
18130
aix_use_runtimelinking=no
18132
# Test if we are trying to use run time linking or normal
18133
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
18134
# need to do runtime linking.
18135
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18136
for ld_flag in $LDFLAGS; do
18137
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18138
aix_use_runtimelinking=yes
18145
exp_sym_flag='-bexport'
18146
no_entry_flag='-bnoentry'
18149
# When large executables or shared objects are built, AIX ld can
18150
# have problems creating the table of contents. If linking a library
18151
# or program results in "error TOC overflow" add -mminimal-toc to
18152
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18153
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18155
archive_cmds_GCJ=''
18156
hardcode_direct_GCJ=yes
18157
hardcode_libdir_separator_GCJ=':'
18158
link_all_deplibs_GCJ=yes
18160
if test "$GCC" = yes; then
18161
case $host_os in aix4.[012]|aix4.[012].*)
18162
# We only want to do this on AIX 4.2 and lower, the check
18163
# below for broken collect2 doesn't work under 4.3+
18164
collect2name=`${CC} -print-prog-name=collect2`
18165
if test -f "$collect2name" && \
18166
strings "$collect2name" | grep resolve_lib_name >/dev/null
18168
# We have reworked collect2
18171
# We have old collect2
18172
hardcode_direct_GCJ=unsupported
18173
# It fails to find uninstalled libraries when the uninstalled
18174
# path is not listed in the libpath. Setting hardcode_minus_L
18175
# to unsupported forces relinking
18176
hardcode_minus_L_GCJ=yes
18177
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18178
hardcode_libdir_separator_GCJ=
18182
shared_flag='-shared'
18183
if test "$aix_use_runtimelinking" = yes; then
18184
shared_flag="$shared_flag "'${wl}-G'
18188
if test "$host_cpu" = ia64; then
18189
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18190
# chokes on -Wl,-G. The following line is correct:
18193
if test "$aix_use_runtimelinking" = yes; then
18194
shared_flag='${wl}-G'
18196
shared_flag='${wl}-bM:SRE'
18201
# It seems that -bexpall does not export symbols beginning with
18202
# underscore (_), so it is better to generate a list of symbols to export.
18203
always_export_symbols_GCJ=yes
18204
if test "$aix_use_runtimelinking" = yes; then
18205
# Warning - without using the other runtime loading flags (-brtl),
18206
# -berok will link without error, but may produce a broken library.
18207
allow_undefined_flag_GCJ='-berok'
18208
# Determine the default libpath from the value encoded in an empty executable.
18209
cat >conftest.$ac_ext <<_ACEOF
18212
cat confdefs.h >>conftest.$ac_ext
18213
cat >>conftest.$ac_ext <<_ACEOF
18214
/* end confdefs.h. */
18224
rm -f conftest.$ac_objext conftest$ac_exeext
18225
if { (ac_try="$ac_link"
18226
case "(($ac_try" in
18227
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18228
*) ac_try_echo=$ac_try;;
18230
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18231
$as_echo "$ac_try_echo") >&5
18232
(eval "$ac_link") 2>conftest.er1
18234
grep -v '^ *+' conftest.er1 >conftest.err
18236
cat conftest.err >&5
18237
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18238
(exit $ac_status); } && {
18239
test -z "$ac_c_werror_flag" ||
18240
test ! -s conftest.err
18241
} && test -s conftest$ac_exeext && {
18242
test "$cross_compiling" = yes ||
18243
$as_test_x conftest$ac_exeext
18246
lt_aix_libpath_sed='
18247
/Import File Strings/,/^$/ {
18253
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18254
# Check for a 64-bit object if we didn't find anything.
18255
if test -z "$aix_libpath"; then
18256
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18259
$as_echo "$as_me: failed program was:" >&5
18260
sed 's/^/| /' conftest.$ac_ext >&5
18265
rm -rf conftest.dSYM
18266
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18267
conftest$ac_exeext conftest.$ac_ext
18268
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18270
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18271
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"
18273
if test "$host_cpu" = ia64; then
18274
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18275
allow_undefined_flag_GCJ="-z nodefs"
18276
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"
18278
# Determine the default libpath from the value encoded in an empty executable.
18279
cat >conftest.$ac_ext <<_ACEOF
18282
cat confdefs.h >>conftest.$ac_ext
18283
cat >>conftest.$ac_ext <<_ACEOF
18284
/* end confdefs.h. */
18294
rm -f conftest.$ac_objext conftest$ac_exeext
18295
if { (ac_try="$ac_link"
18296
case "(($ac_try" in
18297
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18298
*) ac_try_echo=$ac_try;;
18300
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18301
$as_echo "$ac_try_echo") >&5
18302
(eval "$ac_link") 2>conftest.er1
18304
grep -v '^ *+' conftest.er1 >conftest.err
18306
cat conftest.err >&5
18307
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18308
(exit $ac_status); } && {
18309
test -z "$ac_c_werror_flag" ||
18310
test ! -s conftest.err
18311
} && test -s conftest$ac_exeext && {
18312
test "$cross_compiling" = yes ||
18313
$as_test_x conftest$ac_exeext
18316
lt_aix_libpath_sed='
18317
/Import File Strings/,/^$/ {
18323
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18324
# Check for a 64-bit object if we didn't find anything.
18325
if test -z "$aix_libpath"; then
18326
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18329
$as_echo "$as_me: failed program was:" >&5
18330
sed 's/^/| /' conftest.$ac_ext >&5
18335
rm -rf conftest.dSYM
18336
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18337
conftest$ac_exeext conftest.$ac_ext
18338
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18340
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18341
# Warning - without using the other run time loading flags,
18342
# -berok will link without error, but may produce a broken library.
18343
no_undefined_flag_GCJ=' ${wl}-bernotok'
18344
allow_undefined_flag_GCJ=' ${wl}-berok'
18345
# Exported symbols can be pulled into shared objects from archives
18346
whole_archive_flag_spec_GCJ='$convenience'
18347
archive_cmds_need_lc_GCJ=yes
18348
# This is similar to how AIX traditionally builds its shared libraries.
18349
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'
18355
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)'
18356
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18357
hardcode_minus_L_GCJ=yes
18358
# see comment about different semantics on the GNU ld section
18363
export_dynamic_flag_spec_GCJ=-rdynamic
18366
cygwin* | mingw* | pw32*)
18367
# When not using gcc, we currently assume that we are using
18368
# Microsoft Visual C++.
18369
# hardcode_libdir_flag_spec is actually meaningless, as there is
18370
# no search path for DLLs.
18371
hardcode_libdir_flag_spec_GCJ=' '
18372
allow_undefined_flag_GCJ=unsupported
18373
# Tell ltmain to make .lib files, not .a files.
18375
# Tell ltmain to make .dll files, not .so files.
18377
# FIXME: Setting linknames here is a bad hack.
18378
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18379
# The linker will automatically build a .lib file if we build a DLL.
18380
old_archive_From_new_cmds_GCJ='true'
18381
# FIXME: Should let the user specify the lib program.
18382
old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18383
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18384
enable_shared_with_static_runtimes_GCJ=yes
18387
darwin* | rhapsody*)
18389
rhapsody* | darwin1.[012])
18390
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18393
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18394
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18396
case ${MACOSX_DEPLOYMENT_TARGET} in
18398
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18401
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18407
archive_cmds_need_lc_GCJ=no
18408
hardcode_direct_GCJ=no
18409
hardcode_automatic_GCJ=yes
18410
hardcode_shlibpath_var_GCJ=unsupported
18411
whole_archive_flag_spec_GCJ=''
18412
link_all_deplibs_GCJ=yes
18413
if test "$GCC" = yes ; then
18414
output_verbose_link_cmd='echo'
18415
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}"
18416
module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18417
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}"
18418
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}"
18420
case $cc_basename in
18422
output_verbose_link_cmd='echo'
18423
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18424
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18425
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18426
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}'
18427
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}'
18437
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18438
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18439
hardcode_shlibpath_var_GCJ=no
18446
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18447
# support. Future versions do this automatically, but an explicit c++rt0.o
18448
# does not break anything, and helps significantly (at the cost of a little
18451
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18452
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18453
hardcode_direct_GCJ=yes
18454
hardcode_shlibpath_var_GCJ=no
18457
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
18459
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18460
hardcode_direct_GCJ=yes
18461
hardcode_minus_L_GCJ=yes
18462
hardcode_shlibpath_var_GCJ=no
18465
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18466
freebsd* | dragonfly*)
18467
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18468
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18469
hardcode_direct_GCJ=yes
18470
hardcode_shlibpath_var_GCJ=no
18474
if test "$GCC" = yes; then
18475
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'
18477
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'
18479
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18480
hardcode_libdir_separator_GCJ=:
18481
hardcode_direct_GCJ=yes
18483
# hardcode_minus_L: Not really in the search PATH,
18484
# but as the default location of the library.
18485
hardcode_minus_L_GCJ=yes
18486
export_dynamic_flag_spec_GCJ='${wl}-E'
18490
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18491
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18493
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18495
if test "$with_gnu_ld" = no; then
18496
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18497
hardcode_libdir_separator_GCJ=:
18499
hardcode_direct_GCJ=yes
18500
export_dynamic_flag_spec_GCJ='${wl}-E'
18502
# hardcode_minus_L: Not really in the search PATH,
18503
# but as the default location of the library.
18504
hardcode_minus_L_GCJ=yes
18509
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18512
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18515
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18518
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18524
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18527
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18530
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18534
if test "$with_gnu_ld" = no; then
18535
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18536
hardcode_libdir_separator_GCJ=:
18540
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18541
hardcode_direct_GCJ=no
18542
hardcode_shlibpath_var_GCJ=no
18545
hardcode_direct_GCJ=yes
18546
export_dynamic_flag_spec_GCJ='${wl}-E'
18548
# hardcode_minus_L: Not really in the search PATH,
18549
# but as the default location of the library.
18550
hardcode_minus_L_GCJ=yes
18556
irix5* | irix6* | nonstopux*)
18557
if test "$GCC" = yes; then
18558
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'
18560
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'
18561
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18563
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18564
hardcode_libdir_separator_GCJ=:
18565
link_all_deplibs_GCJ=yes
18569
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18570
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18572
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18574
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18575
hardcode_direct_GCJ=yes
18576
hardcode_shlibpath_var_GCJ=no
18580
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18581
hardcode_direct_GCJ=yes
18582
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18583
hardcode_libdir_separator_GCJ=:
18584
hardcode_shlibpath_var_GCJ=no
18588
if test -f /usr/libexec/ld.so; then
18589
hardcode_direct_GCJ=yes
18590
hardcode_shlibpath_var_GCJ=no
18591
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18592
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18593
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18594
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18595
export_dynamic_flag_spec_GCJ='${wl}-E'
18598
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18599
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18600
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18603
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18604
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18614
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18615
hardcode_minus_L_GCJ=yes
18616
allow_undefined_flag_GCJ=unsupported
18617
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'
18618
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18622
if test "$GCC" = yes; then
18623
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18624
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'
18626
allow_undefined_flag_GCJ=' -expect_unresolved \*'
18627
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'
18629
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18630
hardcode_libdir_separator_GCJ=:
18633
osf4* | osf5*) # as osf3* with the addition of -msym flag
18634
if test "$GCC" = yes; then
18635
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18636
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'
18637
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18639
allow_undefined_flag_GCJ=' -expect_unresolved \*'
18640
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'
18641
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~
18642
$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'
18644
# Both c and cxx compiler support -rpath directly
18645
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18647
hardcode_libdir_separator_GCJ=:
18651
no_undefined_flag_GCJ=' -z text'
18652
if test "$GCC" = yes; then
18654
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18655
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18656
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18659
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18660
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18661
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18663
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18664
hardcode_shlibpath_var_GCJ=no
18666
solaris2.[0-5] | solaris2.[0-5].*) ;;
18668
# The compiler driver will combine and reorder linker options,
18669
# but understands `-z linker_flag'. GCC discards it without `$wl',
18670
# but is careful enough not to reorder.
18671
# Supported since Solaris 2.6 (maybe 2.5.1?)
18672
if test "$GCC" = yes; then
18673
whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18675
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18679
link_all_deplibs_GCJ=yes
18683
if test "x$host_vendor" = xsequent; then
18684
# Use $CC to link under sequent, because it throws in some extra .o
18685
# files that make .init and .fini sections work.
18686
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18688
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18690
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18691
hardcode_direct_GCJ=yes
18692
hardcode_minus_L_GCJ=yes
18693
hardcode_shlibpath_var_GCJ=no
18697
case $host_vendor in
18699
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18700
hardcode_direct_GCJ=yes # is this really true???
18703
## LD is ld it makes a PLAMLIB
18704
## CC just makes a GrossModule.
18705
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18706
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18707
hardcode_direct_GCJ=no
18710
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18711
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18714
runpath_var='LD_RUN_PATH'
18715
hardcode_shlibpath_var_GCJ=no
18719
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18720
hardcode_shlibpath_var_GCJ=no
18721
export_dynamic_flag_spec_GCJ='-Bexport'
18725
if test -d /usr/nec; then
18726
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18727
hardcode_shlibpath_var_GCJ=no
18728
runpath_var=LD_RUN_PATH
18729
hardcode_runpath_var=yes
18734
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18735
no_undefined_flag_GCJ='${wl}-z,text'
18736
archive_cmds_need_lc_GCJ=no
18737
hardcode_shlibpath_var_GCJ=no
18738
runpath_var='LD_RUN_PATH'
18740
if test "$GCC" = yes; then
18741
archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18742
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18744
archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18745
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18749
sysv5* | sco3.2v5* | sco5v6*)
18750
# Note: We can NOT use -z defs as we might desire, because we do not
18751
# link with -lc, and that would cause any symbols used from libc to
18752
# always be unresolved, which means just about no library would
18753
# ever link correctly. If we're not using GNU ld we use -z text
18754
# though, which does catch some bad symbols but isn't as heavy-handed
18756
no_undefined_flag_GCJ='${wl}-z,text'
18757
allow_undefined_flag_GCJ='${wl}-z,nodefs'
18758
archive_cmds_need_lc_GCJ=no
18759
hardcode_shlibpath_var_GCJ=no
18760
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18761
hardcode_libdir_separator_GCJ=':'
18762
link_all_deplibs_GCJ=yes
18763
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18764
runpath_var='LD_RUN_PATH'
18766
if test "$GCC" = yes; then
18767
archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18768
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18770
archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18771
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18776
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18777
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18778
hardcode_shlibpath_var_GCJ=no
18787
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18788
$as_echo "$ld_shlibs_GCJ" >&6; }
18789
test "$ld_shlibs_GCJ" = no && can_build_shared=no
18792
# Do we need to explicitly link libc?
18794
case "x$archive_cmds_need_lc_GCJ" in
18796
# Assume -lc should be added
18797
archive_cmds_need_lc_GCJ=yes
18799
if test "$enable_shared" = yes && test "$GCC" = yes; then
18800
case $archive_cmds_GCJ in
18802
# FIXME: we may have to deal with multi-command sequences.
18805
# Test whether the compiler implicitly links with -lc since on some
18806
# systems, -lgcc has to come before -lc. If gcc already passes -lc
18807
# to ld, don't add -lc before -lgcc.
18808
{ $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18809
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18811
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18813
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18814
(eval $ac_compile) 2>&5
18816
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18817
(exit $ac_status); } 2>conftest.err; then
18820
libobjs=conftest.$ac_objext
18822
wl=$lt_prog_compiler_wl_GCJ
18823
pic_flag=$lt_prog_compiler_pic_GCJ
18829
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18830
allow_undefined_flag_GCJ=
18831
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18832
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18834
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18835
(exit $ac_status); }
18837
archive_cmds_need_lc_GCJ=no
18839
archive_cmds_need_lc_GCJ=yes
18841
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18843
cat conftest.err 1>&5
18846
{ $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18847
$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
18854
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18855
$as_echo_n "checking dynamic linker characteristics... " >&6; }
18856
library_names_spec=
18857
libname_spec='lib$name'
18861
postuninstall_cmds=
18865
shlibpath_overrides_runpath=unknown
18867
dynamic_linker="$host_os ld.so"
18868
sys_lib_dlsearch_path_spec="/lib /usr/lib"
18870
need_lib_prefix=unknown
18871
hardcode_into_libs=no
18873
# when you set need_version to no, make sure it does not cause -set_version
18874
# flags to be left without arguments
18875
need_version=unknown
18880
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18881
shlibpath_var=LIBPATH
18883
# AIX 3 has no versioning support, so we append a major version to the name.
18884
soname_spec='${libname}${release}${shared_ext}$major'
18891
hardcode_into_libs=yes
18892
if test "$host_cpu" = ia64; then
18893
# AIX 5 supports IA64
18894
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18895
shlibpath_var=LD_LIBRARY_PATH
18897
# With GCC up to 2.95.x, collect2 would create an import file
18898
# for dependence libraries. The import file would start with
18899
# the line `#! .'. This would cause the generated library to
18900
# depend on `.', always an invalid library. This was fixed in
18901
# development snapshots of GCC prior to 3.0.
18903
aix4 | aix4.[01] | aix4.[01].*)
18904
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18906
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18909
can_build_shared=no
18913
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18914
# soname into executable. Probably we can add versioning support to
18915
# collect2, so additional links can be useful in future.
18916
if test "$aix_use_runtimelinking" = yes; then
18917
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
18918
# instead of lib<name>.a to let people know that these are not
18919
# typical AIX shared libraries.
18920
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18922
# We preserve .a as extension for shared libraries through AIX4.2
18923
# and later when we are not doing run time linking.
18924
library_names_spec='${libname}${release}.a $libname.a'
18925
soname_spec='${libname}${release}${shared_ext}$major'
18927
shlibpath_var=LIBPATH
18932
library_names_spec='$libname.ixlibrary $libname.a'
18933
# Create ${libname}_ixlibrary.a entries in /sys/libs.
18934
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'
18938
library_names_spec='${libname}${shared_ext}'
18939
dynamic_linker="$host_os ld.so"
18940
shlibpath_var=LIBRARY_PATH
18946
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18947
soname_spec='${libname}${release}${shared_ext}$major'
18948
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18949
shlibpath_var=LD_LIBRARY_PATH
18950
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18951
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18952
# the default ld.so.conf also contains /usr/contrib/lib and
18953
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18954
# libtool to hard-code these into programs
18957
cygwin* | mingw* | pw32*)
18958
version_type=windows
18963
case $GCC,$host_os in
18964
yes,cygwin* | yes,mingw* | yes,pw32*)
18965
library_names_spec='$libname.dll.a'
18966
# DLL is installed to $(libdir)/../bin by postinstall_cmds
18967
postinstall_cmds='base_file=`basename \${file}`~
18968
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18969
dldir=$destdir/`dirname \$dlpath`~
18970
test -d \$dldir || mkdir -p \$dldir~
18971
$install_prog $dir/$dlname \$dldir/$dlname~
18972
chmod a+x \$dldir/$dlname'
18973
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18974
dlpath=$dir/\$dldll~
18976
shlibpath_overrides_runpath=yes
18980
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
18981
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18982
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18985
# MinGW DLLs use traditional 'lib' prefix
18986
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18987
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18988
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18989
# It is most probably a Windows format PATH printed by
18990
# mingw gcc, but we are running on Cygwin. Gcc prints its search
18991
# path with ; separators, and with drive letters. We can handle the
18992
# drive letters (cygwin fileutils understands them), so leave them,
18993
# especially as we might pass files found there to a mingw objdump,
18994
# which wouldn't understand a cygwinified path. Ahh.
18995
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18997
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19001
# pw32 DLLs use 'pw' prefix rather than 'lib'
19002
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19008
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19011
dynamic_linker='Win32 ld.exe'
19012
# FIXME: first we should search . and the directory the executable is in
19016
darwin* | rhapsody*)
19017
dynamic_linker="$host_os dyld"
19018
version_type=darwin
19021
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19022
soname_spec='${libname}${release}${major}$shared_ext'
19023
shlibpath_overrides_runpath=yes
19024
shlibpath_var=DYLD_LIBRARY_PATH
19025
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19027
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19034
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19035
soname_spec='${libname}${release}${shared_ext}$major'
19036
shlibpath_var=LD_LIBRARY_PATH
19043
freebsd* | dragonfly*)
19044
# DragonFly does not have aout. When/if they implement a new
19045
# versioning mechanism, adjust this.
19046
if test -x /usr/bin/objformat; then
19047
objformat=`/usr/bin/objformat`
19050
freebsd[123]*) objformat=aout ;;
19051
*) objformat=elf ;;
19054
version_type=freebsd-$objformat
19055
case $version_type in
19057
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19062
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19066
shlibpath_var=LD_LIBRARY_PATH
19069
shlibpath_overrides_runpath=yes
19071
freebsd3.[01]* | freebsdelf3.[01]*)
19072
shlibpath_overrides_runpath=yes
19073
hardcode_into_libs=yes
19075
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19076
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19077
shlibpath_overrides_runpath=no
19078
hardcode_into_libs=yes
19080
*) # from 4.6 on, and DragonFly
19081
shlibpath_overrides_runpath=yes
19082
hardcode_into_libs=yes
19091
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19092
soname_spec='${libname}${release}${shared_ext}$major'
19093
shlibpath_var=LD_LIBRARY_PATH
19094
hardcode_into_libs=yes
19097
hpux9* | hpux10* | hpux11*)
19098
# Give a soname corresponding to the major version so that dld.sl refuses to
19099
# link against other versions.
19106
hardcode_into_libs=yes
19107
dynamic_linker="$host_os dld.so"
19108
shlibpath_var=LD_LIBRARY_PATH
19109
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19110
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19111
soname_spec='${libname}${release}${shared_ext}$major'
19112
if test "X$HPUX_IA64_MODE" = X32; then
19113
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19115
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19117
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19121
hardcode_into_libs=yes
19122
dynamic_linker="$host_os dld.sl"
19123
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19124
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19125
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19126
soname_spec='${libname}${release}${shared_ext}$major'
19127
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19128
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19132
dynamic_linker="$host_os dld.sl"
19133
shlibpath_var=SHLIB_PATH
19134
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19135
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19136
soname_spec='${libname}${release}${shared_ext}$major'
19139
# HP-UX runs *really* slowly unless shared libraries are mode 555.
19140
postinstall_cmds='chmod 555 $lib'
19147
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19148
soname_spec='${libname}${release}${shared_ext}$major'
19149
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19150
shlibpath_var=LD_LIBRARY_PATH
19151
shlibpath_overrides_runpath=no
19152
hardcode_into_libs=yes
19155
irix5* | irix6* | nonstopux*)
19157
nonstopux*) version_type=nonstopux ;;
19159
if test "$lt_cv_prog_gnu_ld" = yes; then
19167
soname_spec='${libname}${release}${shared_ext}$major'
19168
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19170
irix5* | nonstopux*)
19171
libsuff= shlibsuff=
19174
case $LD in # libtool.m4 will add one of these switches to LD
19175
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19176
libsuff= shlibsuff= libmagic=32-bit;;
19177
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19178
libsuff=32 shlibsuff=N32 libmagic=N32;;
19179
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19180
libsuff=64 shlibsuff=64 libmagic=64-bit;;
19181
*) libsuff= shlibsuff= libmagic=never-match;;
19185
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19186
shlibpath_overrides_runpath=no
19187
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19188
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19189
hardcode_into_libs=yes
19192
# No shared lib support for Linux oldld, aout, or coff.
19193
linux*oldld* | linux*aout* | linux*coff*)
19197
# This must be Linux ELF.
19198
linux* | k*bsd*-gnu)
19202
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19203
soname_spec='${libname}${release}${shared_ext}$major'
19204
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19205
shlibpath_var=LD_LIBRARY_PATH
19206
shlibpath_overrides_runpath=no
19207
# This implies no fast_install, which is unacceptable.
19208
# Some rework will be needed to allow for fast_install
19209
# before this can be enabled.
19210
hardcode_into_libs=yes
19212
# Append ld.so.conf contents to the search path
19213
if test -f /etc/ld.so.conf; then
19214
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' ' '`
19215
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19218
# We used to test for /lib/ld.so.1 and disable shared libraries on
19219
# powerpc, because MkLinux only supported shared libraries with the
19220
# GNU dynamic linker. Since this was broken with cross compilers,
19221
# most powerpc-linux boxes support dynamic linking these days and
19222
# people can always --disable-shared, the test was removed, and we
19223
# assume the GNU/Linux dynamic linker is in use.
19224
dynamic_linker='GNU/Linux ld.so'
19231
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19232
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19233
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19234
dynamic_linker='NetBSD (a.out) ld.so'
19236
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19237
soname_spec='${libname}${release}${shared_ext}$major'
19238
dynamic_linker='NetBSD ld.elf_so'
19240
shlibpath_var=LD_LIBRARY_PATH
19241
shlibpath_overrides_runpath=yes
19242
hardcode_into_libs=yes
19247
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19248
shlibpath_var=LD_LIBRARY_PATH
19249
shlibpath_overrides_runpath=yes
19256
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19257
soname_spec='${libname}${release}${shared_ext}$major'
19258
shlibpath_var=LD_LIBRARY_PATH
19259
shlibpath_overrides_runpath=yes
19264
sys_lib_dlsearch_path_spec="/usr/lib"
19266
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19268
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19269
*) need_version=no ;;
19271
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19272
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19273
shlibpath_var=LD_LIBRARY_PATH
19274
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19276
openbsd2.[89] | openbsd2.[89].*)
19277
shlibpath_overrides_runpath=no
19280
shlibpath_overrides_runpath=yes
19284
shlibpath_overrides_runpath=yes
19289
libname_spec='$name'
19292
library_names_spec='$libname${shared_ext} $libname.a'
19293
dynamic_linker='OS/2 ld.exe'
19294
shlibpath_var=LIBPATH
19297
osf3* | osf4* | osf5*)
19301
soname_spec='${libname}${release}${shared_ext}$major'
19302
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19303
shlibpath_var=LD_LIBRARY_PATH
19304
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19305
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19316
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19317
soname_spec='${libname}${release}${shared_ext}$major'
19318
shlibpath_var=LD_LIBRARY_PATH
19319
shlibpath_overrides_runpath=yes
19320
hardcode_into_libs=yes
19321
# ldd complains unless libraries are executable
19322
postinstall_cmds='chmod +x $lib'
19327
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19328
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19329
shlibpath_var=LD_LIBRARY_PATH
19330
shlibpath_overrides_runpath=yes
19331
if test "$with_gnu_ld" = yes; then
19339
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19340
soname_spec='${libname}${release}${shared_ext}$major'
19341
shlibpath_var=LD_LIBRARY_PATH
19342
case $host_vendor in
19344
shlibpath_overrides_runpath=no
19346
export_dynamic_flag_spec='${wl}-Blargedynsym'
19347
runpath_var=LD_RUN_PATH
19355
shlibpath_overrides_runpath=no
19356
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19362
if test -d /usr/nec ;then
19364
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19365
soname_spec='$libname${shared_ext}.$major'
19366
shlibpath_var=LD_LIBRARY_PATH
19370
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19371
version_type=freebsd-elf
19374
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19375
soname_spec='${libname}${release}${shared_ext}$major'
19376
shlibpath_var=LD_LIBRARY_PATH
19377
hardcode_into_libs=yes
19378
if test "$with_gnu_ld" = yes; then
19379
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19380
shlibpath_overrides_runpath=no
19382
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19383
shlibpath_overrides_runpath=yes
19386
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19390
sys_lib_dlsearch_path_spec='/usr/lib'
19395
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19396
soname_spec='${libname}${release}${shared_ext}$major'
19397
shlibpath_var=LD_LIBRARY_PATH
19404
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19405
$as_echo "$dynamic_linker" >&6; }
19406
test "$dynamic_linker" = no && can_build_shared=no
19408
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19409
$as_echo_n "(cached) " >&6
19411
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19414
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19415
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19416
$as_echo_n "(cached) " >&6
19418
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19421
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19423
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19424
if test "$GCC" = yes; then
19425
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19428
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19429
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19430
hardcode_action_GCJ=
19431
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19432
test -n "$runpath_var_GCJ" || \
19433
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19435
# We can hardcode non-existant directories.
19436
if test "$hardcode_direct_GCJ" != no &&
19437
# If the only mechanism to avoid hardcoding is shlibpath_var, we
19438
# have to relink, otherwise we might link with an installed library
19439
# when we should be linking with a yet-to-be-installed one
19440
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19441
test "$hardcode_minus_L_GCJ" != no; then
19442
# Linking always hardcodes the temporary library directory.
19443
hardcode_action_GCJ=relink
19445
# We can link without hardcoding, and we can hardcode nonexisting dirs.
19446
hardcode_action_GCJ=immediate
19449
# We cannot hardcode anything, or else we can only hardcode existing
19451
hardcode_action_GCJ=unsupported
19453
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19454
$as_echo "$hardcode_action_GCJ" >&6; }
19456
if test "$hardcode_action_GCJ" = relink; then
19457
# Fast installation is not supported
19458
enable_fast_install=no
19459
elif test "$shlibpath_overrides_runpath" = yes ||
19460
test "$enable_shared" = no; then
19461
# Fast installation is not necessary
19462
enable_fast_install=needless
19466
# The else clause should only fire when bootstrapping the
19467
# libtool distribution, otherwise you forgot to ship ltmain.sh
19468
# with your package, and you will get complaints that there are
19469
# no rules to generate ltmain.sh.
19470
if test -f "$ltmain"; then
19471
# See if we are running on zsh, and set the options which allow our commands through
19472
# without removal of \ escapes.
19473
if test -n "${ZSH_VERSION+set}" ; then
19474
setopt NO_GLOB_SUBST
19476
# Now quote all the things that may contain metacharacters while being
19477
# careful not to overquote the AC_SUBSTed values. We take copies of the
19478
# variables and quote the copies for generation of the libtool script.
19479
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19481
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19482
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19483
deplibs_check_method reload_flag reload_cmds need_locks \
19484
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19485
lt_cv_sys_global_symbol_to_c_name_address \
19486
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19487
old_postinstall_cmds old_postuninstall_cmds \
19491
lt_prog_compiler_wl_GCJ \
19492
lt_prog_compiler_pic_GCJ \
19493
lt_prog_compiler_static_GCJ \
19494
lt_prog_compiler_no_builtin_flag_GCJ \
19495
export_dynamic_flag_spec_GCJ \
19496
thread_safe_flag_spec_GCJ \
19497
whole_archive_flag_spec_GCJ \
19498
enable_shared_with_static_runtimes_GCJ \
19499
old_archive_cmds_GCJ \
19500
old_archive_from_new_cmds_GCJ \
19501
predep_objects_GCJ \
19502
postdep_objects_GCJ \
19505
compiler_lib_search_path_GCJ \
19506
compiler_lib_search_dirs_GCJ \
19508
archive_expsym_cmds_GCJ \
19509
postinstall_cmds_GCJ \
19510
postuninstall_cmds_GCJ \
19511
old_archive_from_expsyms_cmds_GCJ \
19512
allow_undefined_flag_GCJ \
19513
no_undefined_flag_GCJ \
19514
export_symbols_cmds_GCJ \
19515
hardcode_libdir_flag_spec_GCJ \
19516
hardcode_libdir_flag_spec_ld_GCJ \
19517
hardcode_libdir_separator_GCJ \
19518
hardcode_automatic_GCJ \
19520
module_expsym_cmds_GCJ \
19521
lt_cv_prog_compiler_c_o_GCJ \
19522
fix_srcfile_path_GCJ \
19523
exclude_expsyms_GCJ \
19524
include_expsyms_GCJ; do
19527
old_archive_cmds_GCJ | \
19528
old_archive_from_new_cmds_GCJ | \
19529
archive_cmds_GCJ | \
19530
archive_expsym_cmds_GCJ | \
19531
module_cmds_GCJ | \
19532
module_expsym_cmds_GCJ | \
19533
old_archive_from_expsyms_cmds_GCJ | \
19534
export_symbols_cmds_GCJ | \
19535
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19536
postinstall_cmds | postuninstall_cmds | \
19537
old_postinstall_cmds | old_postuninstall_cmds | \
19538
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19539
# Double-quote double-evaled strings.
19540
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19543
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19549
*'\$0 --fallback-echo"')
19550
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19556
cat <<__EOF__ >> "$cfgfile"
19557
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19559
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19561
# Shell to use when invoking shell scripts.
19564
# Whether or not to build shared libraries.
19565
build_libtool_libs=$enable_shared
19567
# Whether or not to build static libraries.
19568
build_old_libs=$enable_static
19570
# Whether or not to add -lc for building shared libraries.
19571
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19573
# Whether or not to disallow shared libs when runtime libs are static
19574
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19576
# Whether or not to optimize for fast installation.
19577
fast_install=$enable_fast_install
19580
host_alias=$host_alias
19584
# The build system.
19585
build_alias=$build_alias
19589
# An echo program that does not interpret backslashes.
19594
AR_FLAGS=$lt_AR_FLAGS
19599
# LTCC compiler flags.
19600
LTCFLAGS=$lt_LTCFLAGS
19602
# A language-specific compiler.
19603
CC=$lt_compiler_GCJ
19605
# Is the compiler the GNU C compiler?
19611
# The linker used to build libraries.
19614
# Whether we need hard or soft links.
19617
# A BSD-compatible nm program.
19620
# A symbol stripping program
19623
# Used to examine libraries when file_magic_cmd begins "file"
19624
MAGIC_CMD=$MAGIC_CMD
19626
# Used on cygwin: DLL creation program.
19629
# Used on cygwin: object dumper.
19632
# Used on cygwin: assembler.
19635
# The name of the directory that contains temporary libtool files.
19638
# How to create reloadable object files.
19639
reload_flag=$lt_reload_flag
19640
reload_cmds=$lt_reload_cmds
19642
# How to pass a linker flag through the compiler.
19643
wl=$lt_lt_prog_compiler_wl_GCJ
19645
# Object file suffix (normally "o").
19646
objext="$ac_objext"
19648
# Old archive suffix (normally "a").
19651
# Shared library suffix (normally ".so").
19652
shrext_cmds='$shrext_cmds'
19654
# Executable file suffix (normally "").
19657
# Additional compiler flags for building library objects.
19658
pic_flag=$lt_lt_prog_compiler_pic_GCJ
19661
# What is the maximum length of a command?
19662
max_cmd_len=$lt_cv_sys_max_cmd_len
19664
# Does compiler simultaneously support -c and -o options?
19665
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19667
# Must we lock files when doing compilation?
19668
need_locks=$lt_need_locks
19670
# Do we need the lib prefix for modules?
19671
need_lib_prefix=$need_lib_prefix
19673
# Do we need a version for libraries?
19674
need_version=$need_version
19676
# Whether dlopen is supported.
19677
dlopen_support=$enable_dlopen
19679
# Whether dlopen of programs is supported.
19680
dlopen_self=$enable_dlopen_self
19682
# Whether dlopen of statically linked programs is supported.
19683
dlopen_self_static=$enable_dlopen_self_static
19685
# Compiler flag to prevent dynamic linking.
19686
link_static_flag=$lt_lt_prog_compiler_static_GCJ
19688
# Compiler flag to turn off builtin functions.
19689
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19691
# Compiler flag to allow reflexive dlopens.
19692
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19694
# Compiler flag to generate shared objects directly from archives.
19695
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19697
# Compiler flag to generate thread-safe objects.
19698
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19700
# Library versioning type.
19701
version_type=$version_type
19703
# Format of library name prefix.
19704
libname_spec=$lt_libname_spec
19706
# List of archive names. First name is the real one, the rest are links.
19707
# The last name is the one that the linker finds with -lNAME.
19708
library_names_spec=$lt_library_names_spec
19710
# The coded name of the library, if different from the real name.
19711
soname_spec=$lt_soname_spec
19713
# Commands used to build and install an old-style archive.
19715
old_archive_cmds=$lt_old_archive_cmds_GCJ
19716
old_postinstall_cmds=$lt_old_postinstall_cmds
19717
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19719
# Create an old-style archive from a shared archive.
19720
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19722
# Create a temporary old-style archive to link instead of a shared archive.
19723
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19725
# Commands used to build and install a shared archive.
19726
archive_cmds=$lt_archive_cmds_GCJ
19727
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19728
postinstall_cmds=$lt_postinstall_cmds
19729
postuninstall_cmds=$lt_postuninstall_cmds
19731
# Commands used to build a loadable module (assumed same as above if empty)
19732
module_cmds=$lt_module_cmds_GCJ
19733
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19735
# Commands to strip libraries.
19736
old_striplib=$lt_old_striplib
19737
striplib=$lt_striplib
19739
# Dependencies to place before the objects being linked to create a
19741
predep_objects=$lt_predep_objects_GCJ
19743
# Dependencies to place after the objects being linked to create a
19745
postdep_objects=$lt_postdep_objects_GCJ
19747
# Dependencies to place before the objects being linked to create a
19749
predeps=$lt_predeps_GCJ
19751
# Dependencies to place after the objects being linked to create a
19753
postdeps=$lt_postdeps_GCJ
19755
# The directories searched by this compiler when creating a shared
19757
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19759
# The library search path used internally by the compiler when linking
19760
# a shared library.
19761
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19763
# Method to check whether dependent libraries are shared objects.
19764
deplibs_check_method=$lt_deplibs_check_method
19766
# Command to use when deplibs_check_method == file_magic.
19767
file_magic_cmd=$lt_file_magic_cmd
19769
# Flag that allows shared libraries with undefined symbols to be built.
19770
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19772
# Flag that forces no undefined symbols.
19773
no_undefined_flag=$lt_no_undefined_flag_GCJ
19775
# Commands used to finish a libtool library installation in a directory.
19776
finish_cmds=$lt_finish_cmds
19778
# Same as above, but a single script fragment to be evaled but not shown.
19779
finish_eval=$lt_finish_eval
19781
# Take the output of nm and produce a listing of raw symbols and C names.
19782
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19784
# Transform the output of nm in a proper C declaration
19785
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19787
# Transform the output of nm in a C name address pair
19788
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19790
# This is the shared library runtime path variable.
19791
runpath_var=$runpath_var
19793
# This is the shared library path variable.
19794
shlibpath_var=$shlibpath_var
19796
# Is shlibpath searched before the hard-coded library search path?
19797
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19799
# How to hardcode a shared library path into an executable.
19800
hardcode_action=$hardcode_action_GCJ
19802
# Whether we should hardcode library paths into libraries.
19803
hardcode_into_libs=$hardcode_into_libs
19805
# Flag to hardcode \$libdir into a binary during linking.
19806
# This must work even if \$libdir does not exist.
19807
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19809
# If ld is used when linking, flag to hardcode \$libdir into
19810
# a binary during linking. This must work even if \$libdir does
19812
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19814
# Whether we need a single -rpath flag with a separated argument.
19815
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19817
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19818
# resulting binary.
19819
hardcode_direct=$hardcode_direct_GCJ
19821
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19822
# resulting binary.
19823
hardcode_minus_L=$hardcode_minus_L_GCJ
19825
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19826
# the resulting binary.
19827
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19829
# Set to yes if building a shared library automatically hardcodes DIR into the library
19830
# and all subsequent libraries and executables linked against it.
19831
hardcode_automatic=$hardcode_automatic_GCJ
19833
# Variables whose values should be saved in libtool wrapper scripts and
19834
# restored at relink time.
19835
variables_saved_for_relink="$variables_saved_for_relink"
19837
# Whether libtool must link a program against all its dependency libraries.
19838
link_all_deplibs=$link_all_deplibs_GCJ
19840
# Compile-time system search path for libraries
19841
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19843
# Run-time system search path for libraries
19844
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19846
# Fix the shell variable \$srcfile for the compiler.
19847
fix_srcfile_path=$lt_fix_srcfile_path
19849
# Set to yes if exported symbols are required.
19850
always_export_symbols=$always_export_symbols_GCJ
19852
# The commands to list exported symbols.
19853
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19855
# The commands to extract the exported symbol list from a shared archive.
19856
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19858
# Symbols that should not be listed in the preloaded symbols.
19859
exclude_expsyms=$lt_exclude_expsyms_GCJ
19861
# Symbols that must always be exported.
19862
include_expsyms=$lt_include_expsyms_GCJ
19864
# ### END LIBTOOL TAG CONFIG: $tagname
19870
# If there is no Makefile yet, we rely on a make rule to execute
19871
# `config.status --recheck' to rerun these tests and create the
19872
# libtool script then.
19873
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19874
if test -f "$ltmain_in"; then
19875
test -f Makefile && make "$ltmain"
19881
ac_cpp='$CPP $CPPFLAGS'
19882
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19883
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19884
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19896
# Source file extension for RC test sources.
19899
# Object file extension for compiled RC test sources.
19903
# Code to be used in simple compile tests
19904
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19906
# Code to be used in simple link tests
19907
lt_simple_link_test_code="$lt_simple_compile_test_code"
19909
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19911
# If no C compiler was specified, use CC.
19914
# If no C compiler flags were specified, use CFLAGS.
19915
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19917
# Allow CC to be a program name with arguments.
19921
# save warnings/boilerplate of simple test code
19922
ac_outfile=conftest.$ac_objext
19923
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19924
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19925
_lt_compiler_boilerplate=`cat conftest.err`
19928
ac_outfile=conftest.$ac_objext
19929
echo "$lt_simple_link_test_code" >conftest.$ac_ext
19930
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19931
_lt_linker_boilerplate=`cat conftest.err`
19935
# Allow CC to be a program name with arguments.
19940
for cc_temp in $compiler""; do
19942
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19943
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19948
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19950
lt_cv_prog_compiler_c_o_RC=yes
19952
# The else clause should only fire when bootstrapping the
19953
# libtool distribution, otherwise you forgot to ship ltmain.sh
19954
# with your package, and you will get complaints that there are
19955
# no rules to generate ltmain.sh.
19956
if test -f "$ltmain"; then
19957
# See if we are running on zsh, and set the options which allow our commands through
19958
# without removal of \ escapes.
19959
if test -n "${ZSH_VERSION+set}" ; then
19960
setopt NO_GLOB_SUBST
19962
# Now quote all the things that may contain metacharacters while being
19963
# careful not to overquote the AC_SUBSTed values. We take copies of the
19964
# variables and quote the copies for generation of the libtool script.
19965
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19967
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19968
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19969
deplibs_check_method reload_flag reload_cmds need_locks \
19970
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19971
lt_cv_sys_global_symbol_to_c_name_address \
19972
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19973
old_postinstall_cmds old_postuninstall_cmds \
19977
lt_prog_compiler_wl_RC \
19978
lt_prog_compiler_pic_RC \
19979
lt_prog_compiler_static_RC \
19980
lt_prog_compiler_no_builtin_flag_RC \
19981
export_dynamic_flag_spec_RC \
19982
thread_safe_flag_spec_RC \
19983
whole_archive_flag_spec_RC \
19984
enable_shared_with_static_runtimes_RC \
19985
old_archive_cmds_RC \
19986
old_archive_from_new_cmds_RC \
19987
predep_objects_RC \
19988
postdep_objects_RC \
19991
compiler_lib_search_path_RC \
19992
compiler_lib_search_dirs_RC \
19994
archive_expsym_cmds_RC \
19995
postinstall_cmds_RC \
19996
postuninstall_cmds_RC \
19997
old_archive_from_expsyms_cmds_RC \
19998
allow_undefined_flag_RC \
19999
no_undefined_flag_RC \
20000
export_symbols_cmds_RC \
20001
hardcode_libdir_flag_spec_RC \
20002
hardcode_libdir_flag_spec_ld_RC \
20003
hardcode_libdir_separator_RC \
20004
hardcode_automatic_RC \
20006
module_expsym_cmds_RC \
20007
lt_cv_prog_compiler_c_o_RC \
20008
fix_srcfile_path_RC \
20009
exclude_expsyms_RC \
20010
include_expsyms_RC; do
20013
old_archive_cmds_RC | \
20014
old_archive_from_new_cmds_RC | \
20015
archive_cmds_RC | \
20016
archive_expsym_cmds_RC | \
20018
module_expsym_cmds_RC | \
20019
old_archive_from_expsyms_cmds_RC | \
20020
export_symbols_cmds_RC | \
20021
extract_expsyms_cmds | reload_cmds | finish_cmds | \
20022
postinstall_cmds | postuninstall_cmds | \
20023
old_postinstall_cmds | old_postuninstall_cmds | \
20024
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20025
# Double-quote double-evaled strings.
20026
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20029
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20035
*'\$0 --fallback-echo"')
20036
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20042
cat <<__EOF__ >> "$cfgfile"
20043
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20045
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20047
# Shell to use when invoking shell scripts.
20050
# Whether or not to build shared libraries.
20051
build_libtool_libs=$enable_shared
20053
# Whether or not to build static libraries.
20054
build_old_libs=$enable_static
20056
# Whether or not to add -lc for building shared libraries.
20057
build_libtool_need_lc=$archive_cmds_need_lc_RC
20059
# Whether or not to disallow shared libs when runtime libs are static
20060
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20062
# Whether or not to optimize for fast installation.
20063
fast_install=$enable_fast_install
20066
host_alias=$host_alias
20070
# The build system.
20071
build_alias=$build_alias
20075
# An echo program that does not interpret backslashes.
20080
AR_FLAGS=$lt_AR_FLAGS
20085
# LTCC compiler flags.
20086
LTCFLAGS=$lt_LTCFLAGS
20088
# A language-specific compiler.
20091
# Is the compiler the GNU C compiler?
20097
# The linker used to build libraries.
20100
# Whether we need hard or soft links.
20103
# A BSD-compatible nm program.
20106
# A symbol stripping program
20109
# Used to examine libraries when file_magic_cmd begins "file"
20110
MAGIC_CMD=$MAGIC_CMD
20112
# Used on cygwin: DLL creation program.
20115
# Used on cygwin: object dumper.
20118
# Used on cygwin: assembler.
20121
# The name of the directory that contains temporary libtool files.
20124
# How to create reloadable object files.
20125
reload_flag=$lt_reload_flag
20126
reload_cmds=$lt_reload_cmds
20128
# How to pass a linker flag through the compiler.
20129
wl=$lt_lt_prog_compiler_wl_RC
20131
# Object file suffix (normally "o").
20132
objext="$ac_objext"
20134
# Old archive suffix (normally "a").
20137
# Shared library suffix (normally ".so").
20138
shrext_cmds='$shrext_cmds'
20140
# Executable file suffix (normally "").
20143
# Additional compiler flags for building library objects.
20144
pic_flag=$lt_lt_prog_compiler_pic_RC
20147
# What is the maximum length of a command?
20148
max_cmd_len=$lt_cv_sys_max_cmd_len
20150
# Does compiler simultaneously support -c and -o options?
20151
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20153
# Must we lock files when doing compilation?
20154
need_locks=$lt_need_locks
20156
# Do we need the lib prefix for modules?
20157
need_lib_prefix=$need_lib_prefix
20159
# Do we need a version for libraries?
20160
need_version=$need_version
20162
# Whether dlopen is supported.
20163
dlopen_support=$enable_dlopen
20165
# Whether dlopen of programs is supported.
20166
dlopen_self=$enable_dlopen_self
20168
# Whether dlopen of statically linked programs is supported.
20169
dlopen_self_static=$enable_dlopen_self_static
20171
# Compiler flag to prevent dynamic linking.
20172
link_static_flag=$lt_lt_prog_compiler_static_RC
20174
# Compiler flag to turn off builtin functions.
20175
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20177
# Compiler flag to allow reflexive dlopens.
20178
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20180
# Compiler flag to generate shared objects directly from archives.
20181
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20183
# Compiler flag to generate thread-safe objects.
20184
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20186
# Library versioning type.
20187
version_type=$version_type
20189
# Format of library name prefix.
20190
libname_spec=$lt_libname_spec
20192
# List of archive names. First name is the real one, the rest are links.
20193
# The last name is the one that the linker finds with -lNAME.
20194
library_names_spec=$lt_library_names_spec
20196
# The coded name of the library, if different from the real name.
20197
soname_spec=$lt_soname_spec
20199
# Commands used to build and install an old-style archive.
20201
old_archive_cmds=$lt_old_archive_cmds_RC
20202
old_postinstall_cmds=$lt_old_postinstall_cmds
20203
old_postuninstall_cmds=$lt_old_postuninstall_cmds
20205
# Create an old-style archive from a shared archive.
20206
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20208
# Create a temporary old-style archive to link instead of a shared archive.
20209
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20211
# Commands used to build and install a shared archive.
20212
archive_cmds=$lt_archive_cmds_RC
20213
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20214
postinstall_cmds=$lt_postinstall_cmds
20215
postuninstall_cmds=$lt_postuninstall_cmds
20217
# Commands used to build a loadable module (assumed same as above if empty)
20218
module_cmds=$lt_module_cmds_RC
20219
module_expsym_cmds=$lt_module_expsym_cmds_RC
20221
# Commands to strip libraries.
20222
old_striplib=$lt_old_striplib
20223
striplib=$lt_striplib
20225
# Dependencies to place before the objects being linked to create a
20227
predep_objects=$lt_predep_objects_RC
20229
# Dependencies to place after the objects being linked to create a
20231
postdep_objects=$lt_postdep_objects_RC
20233
# Dependencies to place before the objects being linked to create a
20235
predeps=$lt_predeps_RC
20237
# Dependencies to place after the objects being linked to create a
20239
postdeps=$lt_postdeps_RC
20241
# The directories searched by this compiler when creating a shared
20243
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
20245
# The library search path used internally by the compiler when linking
20246
# a shared library.
20247
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20249
# Method to check whether dependent libraries are shared objects.
20250
deplibs_check_method=$lt_deplibs_check_method
20252
# Command to use when deplibs_check_method == file_magic.
20253
file_magic_cmd=$lt_file_magic_cmd
20255
# Flag that allows shared libraries with undefined symbols to be built.
20256
allow_undefined_flag=$lt_allow_undefined_flag_RC
20258
# Flag that forces no undefined symbols.
20259
no_undefined_flag=$lt_no_undefined_flag_RC
20261
# Commands used to finish a libtool library installation in a directory.
20262
finish_cmds=$lt_finish_cmds
20264
# Same as above, but a single script fragment to be evaled but not shown.
20265
finish_eval=$lt_finish_eval
20267
# Take the output of nm and produce a listing of raw symbols and C names.
20268
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20270
# Transform the output of nm in a proper C declaration
20271
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20273
# Transform the output of nm in a C name address pair
20274
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20276
# This is the shared library runtime path variable.
20277
runpath_var=$runpath_var
20279
# This is the shared library path variable.
20280
shlibpath_var=$shlibpath_var
20282
# Is shlibpath searched before the hard-coded library search path?
20283
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20285
# How to hardcode a shared library path into an executable.
20286
hardcode_action=$hardcode_action_RC
20288
# Whether we should hardcode library paths into libraries.
20289
hardcode_into_libs=$hardcode_into_libs
20291
# Flag to hardcode \$libdir into a binary during linking.
20292
# This must work even if \$libdir does not exist.
20293
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20295
# If ld is used when linking, flag to hardcode \$libdir into
20296
# a binary during linking. This must work even if \$libdir does
20298
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20300
# Whether we need a single -rpath flag with a separated argument.
20301
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20303
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20304
# resulting binary.
20305
hardcode_direct=$hardcode_direct_RC
20307
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20308
# resulting binary.
20309
hardcode_minus_L=$hardcode_minus_L_RC
20311
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20312
# the resulting binary.
20313
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20315
# Set to yes if building a shared library automatically hardcodes DIR into the library
20316
# and all subsequent libraries and executables linked against it.
20317
hardcode_automatic=$hardcode_automatic_RC
20319
# Variables whose values should be saved in libtool wrapper scripts and
20320
# restored at relink time.
20321
variables_saved_for_relink="$variables_saved_for_relink"
20323
# Whether libtool must link a program against all its dependency libraries.
20324
link_all_deplibs=$link_all_deplibs_RC
20326
# Compile-time system search path for libraries
20327
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20329
# Run-time system search path for libraries
20330
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20332
# Fix the shell variable \$srcfile for the compiler.
20333
fix_srcfile_path=$lt_fix_srcfile_path
20335
# Set to yes if exported symbols are required.
20336
always_export_symbols=$always_export_symbols_RC
20338
# The commands to list exported symbols.
20339
export_symbols_cmds=$lt_export_symbols_cmds_RC
20341
# The commands to extract the exported symbol list from a shared archive.
20342
extract_expsyms_cmds=$lt_extract_expsyms_cmds
20344
# Symbols that should not be listed in the preloaded symbols.
20345
exclude_expsyms=$lt_exclude_expsyms_RC
20347
# Symbols that must always be exported.
20348
include_expsyms=$lt_include_expsyms_RC
20350
# ### END LIBTOOL TAG CONFIG: $tagname
20356
# If there is no Makefile yet, we rely on a make rule to execute
20357
# `config.status --recheck' to rerun these tests and create the
20358
# libtool script then.
20359
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20360
if test -f "$ltmain_in"; then
20361
test -f Makefile && make "$ltmain"
20367
ac_cpp='$CPP $CPPFLAGS'
20368
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20369
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20370
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20377
{ { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20378
$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20379
{ (exit 1); exit 1; }; }
20383
# Append the new tag name to the list of available tags.
20384
if test -n "$tagname" ; then
20385
available_tags="$available_tags $tagname"
20391
# Now substitute the updated list of available tags.
20392
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20393
mv "${ofile}T" "$ofile"
20397
{ { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20398
$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20399
{ (exit 1); exit 1; }; }
20405
# This can be used to rebuild libtool when needed
20406
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20408
# Always use our own libtool.
20409
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20411
# Prevent multiple expansion