11099
# Report which library types will actually be built
11100
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11101
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11102
echo "$as_me:$LINENO: result: $can_build_shared" >&5
11103
echo "${ECHO_T}$can_build_shared" >&6
11105
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11106
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11107
test "$can_build_shared" = "no" && enable_shared=no
11109
# On AIX, shared libraries and static libraries use the same namespace, and
11110
# are all built from PIC.
11113
test "$enable_shared" = yes && enable_static=no
11114
if test -n "$RANLIB"; then
11115
archive_cmds="$archive_cmds~\$RANLIB \$lib"
11116
postinstall_cmds='$RANLIB $lib'
11121
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11122
test "$enable_shared" = yes && enable_static=no
11126
echo "$as_me:$LINENO: result: $enable_shared" >&5
11127
echo "${ECHO_T}$enable_shared" >&6
11129
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11130
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11131
# Make sure either enable_shared or enable_static is yes.
11132
test "$enable_shared" = yes || enable_static=yes
11133
echo "$as_me:$LINENO: result: $enable_static" >&5
11134
echo "${ECHO_T}$enable_static" >&6
11136
# The else clause should only fire when bootstrapping the
11137
# libtool distribution, otherwise you forgot to ship ltmain.sh
11138
# with your package, and you will get complaints that there are
11139
# no rules to generate ltmain.sh.
11140
if test -f "$ltmain"; then
11141
# See if we are running on zsh, and set the options which allow our commands through
11142
# without removal of \ escapes.
11143
if test -n "${ZSH_VERSION+set}" ; then
11144
setopt NO_GLOB_SUBST
11146
# Now quote all the things that may contain metacharacters while being
11147
# careful not to overquote the AC_SUBSTed values. We take copies of the
11148
# variables and quote the copies for generation of the libtool script.
11149
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11151
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11152
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11153
deplibs_check_method reload_flag reload_cmds need_locks \
11154
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11155
lt_cv_sys_global_symbol_to_c_name_address \
11156
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11157
old_postinstall_cmds old_postuninstall_cmds \
11161
lt_prog_compiler_wl \
11162
lt_prog_compiler_pic \
11163
lt_prog_compiler_static \
11164
lt_prog_compiler_no_builtin_flag \
11165
export_dynamic_flag_spec \
11166
thread_safe_flag_spec \
11167
whole_archive_flag_spec \
11168
enable_shared_with_static_runtimes \
11170
old_archive_from_new_cmds \
11175
compiler_lib_search_path \
11177
archive_expsym_cmds \
11179
postuninstall_cmds \
11180
old_archive_from_expsyms_cmds \
11181
allow_undefined_flag \
11182
no_undefined_flag \
11183
export_symbols_cmds \
11184
hardcode_libdir_flag_spec \
11185
hardcode_libdir_flag_spec_ld \
11186
hardcode_libdir_separator \
11187
hardcode_automatic \
11189
module_expsym_cmds \
11190
lt_cv_prog_compiler_c_o \
11192
include_expsyms; do
11195
old_archive_cmds | \
11196
old_archive_from_new_cmds | \
11198
archive_expsym_cmds | \
11200
module_expsym_cmds | \
11201
old_archive_from_expsyms_cmds | \
11202
export_symbols_cmds | \
11203
extract_expsyms_cmds | reload_cmds | finish_cmds | \
11204
postinstall_cmds | postuninstall_cmds | \
11205
old_postinstall_cmds | old_postuninstall_cmds | \
11206
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11207
# Double-quote double-evaled strings.
11208
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11211
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11217
*'\$0 --fallback-echo"')
11218
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11222
cfgfile="${ofile}T"
11223
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11225
{ echo "$as_me:$LINENO: creating $ofile" >&5
11226
echo "$as_me: creating $ofile" >&6;}
11228
cat <<__EOF__ >> "$cfgfile"
11231
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11232
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11233
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
11235
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11236
# Free Software Foundation, Inc.
11238
# This file is part of GNU Libtool:
11239
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11241
# This program is free software; you can redistribute it and/or modify
11242
# it under the terms of the GNU General Public License as published by
11243
# the Free Software Foundation; either version 2 of the License, or
11244
# (at your option) any later version.
11246
# This program is distributed in the hope that it will be useful, but
11247
# WITHOUT ANY WARRANTY; without even the implied warranty of
11248
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11249
# General Public License for more details.
11251
# You should have received a copy of the GNU General Public License
11252
# along with this program; if not, write to the Free Software
11253
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11255
# As a special exception to the GNU General Public License, if you
11256
# distribute this file as part of a program that contains a
11257
# configuration script generated by Autoconf, you may include it under
11258
# the same distribution terms that you use for the rest of that program.
11260
# A sed program that does not truncate output.
11263
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
11264
Xsed="$SED -e 1s/^X//"
11266
# The HP-UX ksh and POSIX shell print the target directory to stdout
11267
# if CDPATH is set.
11268
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11270
# The names of the tagged configurations supported by this script.
11273
# ### BEGIN LIBTOOL CONFIG
11275
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11277
# Shell to use when invoking shell scripts.
11280
# Whether or not to build shared libraries.
11281
build_libtool_libs=$enable_shared
11283
# Whether or not to build static libraries.
11284
build_old_libs=$enable_static
11286
# Whether or not to add -lc for building shared libraries.
11287
build_libtool_need_lc=$archive_cmds_need_lc
11289
# Whether or not to disallow shared libs when runtime libs are static
11290
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11292
# Whether or not to optimize for fast installation.
11293
fast_install=$enable_fast_install
11296
host_alias=$host_alias
11300
# The build system.
11301
build_alias=$build_alias
11305
# An echo program that does not interpret backslashes.
11310
AR_FLAGS=$lt_AR_FLAGS
11315
# LTCC compiler flags.
11316
LTCFLAGS=$lt_LTCFLAGS
11318
# A language-specific compiler.
11321
# Is the compiler the GNU C compiler?
11327
# The linker used to build libraries.
11330
# Whether we need hard or soft links.
11333
# A BSD-compatible nm program.
11336
# A symbol stripping program
11339
# Used to examine libraries when file_magic_cmd begins "file"
11340
MAGIC_CMD=$MAGIC_CMD
11342
# Used on cygwin: DLL creation program.
11345
# Used on cygwin: object dumper.
11348
# Used on cygwin: assembler.
11351
# The name of the directory that contains temporary libtool files.
11354
# How to create reloadable object files.
11355
reload_flag=$lt_reload_flag
11356
reload_cmds=$lt_reload_cmds
11358
# How to pass a linker flag through the compiler.
11359
wl=$lt_lt_prog_compiler_wl
11361
# Object file suffix (normally "o").
11362
objext="$ac_objext"
11364
# Old archive suffix (normally "a").
11367
# Shared library suffix (normally ".so").
11368
shrext_cmds='$shrext_cmds'
11370
# Executable file suffix (normally "").
11373
# Additional compiler flags for building library objects.
11374
pic_flag=$lt_lt_prog_compiler_pic
11377
# What is the maximum length of a command?
11378
max_cmd_len=$lt_cv_sys_max_cmd_len
11380
# Does compiler simultaneously support -c and -o options?
11381
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11383
# Must we lock files when doing compilation?
11384
need_locks=$lt_need_locks
11386
# Do we need the lib prefix for modules?
11387
need_lib_prefix=$need_lib_prefix
11389
# Do we need a version for libraries?
11390
need_version=$need_version
11392
# Whether dlopen is supported.
11393
dlopen_support=$enable_dlopen
11395
# Whether dlopen of programs is supported.
11396
dlopen_self=$enable_dlopen_self
11398
# Whether dlopen of statically linked programs is supported.
11399
dlopen_self_static=$enable_dlopen_self_static
11401
# Compiler flag to prevent dynamic linking.
11402
link_static_flag=$lt_lt_prog_compiler_static
11404
# Compiler flag to turn off builtin functions.
11405
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11407
# Compiler flag to allow reflexive dlopens.
11408
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11410
# Compiler flag to generate shared objects directly from archives.
11411
whole_archive_flag_spec=$lt_whole_archive_flag_spec
11413
# Compiler flag to generate thread-safe objects.
11414
thread_safe_flag_spec=$lt_thread_safe_flag_spec
11416
# Library versioning type.
11417
version_type=$version_type
11419
# Format of library name prefix.
11420
libname_spec=$lt_libname_spec
11422
# List of archive names. First name is the real one, the rest are links.
11423
# The last name is the one that the linker finds with -lNAME.
11424
library_names_spec=$lt_library_names_spec
11426
# The coded name of the library, if different from the real name.
11427
soname_spec=$lt_soname_spec
11429
# Commands used to build and install an old-style archive.
11431
old_archive_cmds=$lt_old_archive_cmds
11432
old_postinstall_cmds=$lt_old_postinstall_cmds
11433
old_postuninstall_cmds=$lt_old_postuninstall_cmds
11435
# Create an old-style archive from a shared archive.
11436
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11438
# Create a temporary old-style archive to link instead of a shared archive.
11439
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11441
# Commands used to build and install a shared archive.
11442
archive_cmds=$lt_archive_cmds
11443
archive_expsym_cmds=$lt_archive_expsym_cmds
11444
postinstall_cmds=$lt_postinstall_cmds
11445
postuninstall_cmds=$lt_postuninstall_cmds
11447
# Commands used to build a loadable module (assumed same as above if empty)
11448
module_cmds=$lt_module_cmds
11449
module_expsym_cmds=$lt_module_expsym_cmds
11451
# Commands to strip libraries.
11452
old_striplib=$lt_old_striplib
11453
striplib=$lt_striplib
11455
# Dependencies to place before the objects being linked to create a
11457
predep_objects=$lt_predep_objects
11459
# Dependencies to place after the objects being linked to create a
11461
postdep_objects=$lt_postdep_objects
11463
# Dependencies to place before the objects being linked to create a
11465
predeps=$lt_predeps
11467
# Dependencies to place after the objects being linked to create a
11469
postdeps=$lt_postdeps
11471
# The library search path used internally by the compiler when linking
11472
# a shared library.
11473
compiler_lib_search_path=$lt_compiler_lib_search_path
11475
# Method to check whether dependent libraries are shared objects.
11476
deplibs_check_method=$lt_deplibs_check_method
11478
# Command to use when deplibs_check_method == file_magic.
11479
file_magic_cmd=$lt_file_magic_cmd
11481
# Flag that allows shared libraries with undefined symbols to be built.
11482
allow_undefined_flag=$lt_allow_undefined_flag
11484
# Flag that forces no undefined symbols.
11485
no_undefined_flag=$lt_no_undefined_flag
11487
# Commands used to finish a libtool library installation in a directory.
11488
finish_cmds=$lt_finish_cmds
11490
# Same as above, but a single script fragment to be evaled but not shown.
11491
finish_eval=$lt_finish_eval
11493
# Take the output of nm and produce a listing of raw symbols and C names.
11494
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11496
# Transform the output of nm in a proper C declaration
11497
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11499
# Transform the output of nm in a C name address pair
11500
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11502
# This is the shared library runtime path variable.
11503
runpath_var=$runpath_var
11505
# This is the shared library path variable.
11506
shlibpath_var=$shlibpath_var
11508
# Is shlibpath searched before the hard-coded library search path?
11509
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11511
# How to hardcode a shared library path into an executable.
11512
hardcode_action=$hardcode_action
11514
# Whether we should hardcode library paths into libraries.
11515
hardcode_into_libs=$hardcode_into_libs
11517
# Flag to hardcode \$libdir into a binary during linking.
11518
# This must work even if \$libdir does not exist.
11519
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11521
# If ld is used when linking, flag to hardcode \$libdir into
11522
# a binary during linking. This must work even if \$libdir does
11524
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11526
# Whether we need a single -rpath flag with a separated argument.
11527
hardcode_libdir_separator=$lt_hardcode_libdir_separator
11529
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11530
# resulting binary.
11531
hardcode_direct=$hardcode_direct
11533
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11534
# resulting binary.
11535
hardcode_minus_L=$hardcode_minus_L
11537
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11538
# the resulting binary.
11539
hardcode_shlibpath_var=$hardcode_shlibpath_var
11541
# Set to yes if building a shared library automatically hardcodes DIR into the library
11542
# and all subsequent libraries and executables linked against it.
11543
hardcode_automatic=$hardcode_automatic
11545
# Variables whose values should be saved in libtool wrapper scripts and
11546
# restored at relink time.
11547
variables_saved_for_relink="$variables_saved_for_relink"
11549
# Whether libtool must link a program against all its dependency libraries.
11550
link_all_deplibs=$link_all_deplibs
11552
# Compile-time system search path for libraries
11553
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11555
# Run-time system search path for libraries
11556
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11558
# Fix the shell variable \$srcfile for the compiler.
11559
fix_srcfile_path="$fix_srcfile_path"
11561
# Set to yes if exported symbols are required.
11562
always_export_symbols=$always_export_symbols
11564
# The commands to list exported symbols.
11565
export_symbols_cmds=$lt_export_symbols_cmds
11567
# The commands to extract the exported symbol list from a shared archive.
11568
extract_expsyms_cmds=$lt_extract_expsyms_cmds
11570
# Symbols that should not be listed in the preloaded symbols.
11571
exclude_expsyms=$lt_exclude_expsyms
11573
# Symbols that must always be exported.
11574
include_expsyms=$lt_include_expsyms
11576
# ### END LIBTOOL CONFIG
11583
cat <<\EOF >> "$cfgfile"
11585
# AIX sometimes has problems with the GCC collect2 program. For some
11586
# reason, if we set the COLLECT_NAMES environment variable, the problems
11587
# vanish in a puff of smoke.
11588
if test "X${COLLECT_NAMES+set}" != Xset; then
11590
export COLLECT_NAMES
11596
# We use sed instead of cat because bash on DJGPP gets confused if
11597
# if finds mixed CR/LF and LF-only lines. Since sed operates in
11598
# text mode, it properly converts lines to CR/LF. This bash problem
11599
# is reportedly fixed, but why not run on old versions too?
11600
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11602
mv -f "$cfgfile" "$ofile" || \
11603
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11607
# If there is no Makefile yet, we rely on a make rule to execute
11608
# `config.status --recheck' to rerun these tests and create the
11609
# libtool script then.
11610
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11611
if test -f "$ltmain_in"; then
11612
test -f Makefile && make "$ltmain"
11618
ac_cpp='$CPP $CPPFLAGS'
11619
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11620
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11621
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11626
# Check whether --with-tags or --without-tags was given.
11627
if test "${with_tags+set}" = set; then
11628
withval="$with_tags"
11629
tagnames="$withval"
11632
if test -f "$ltmain" && test -n "$tagnames"; then
11633
if test ! -f "${ofile}"; then
11634
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11635
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11638
if test -z "$LTCC"; then
11639
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11640
if test -z "$LTCC"; then
11641
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11642
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11644
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11645
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11648
if test -z "$LTCFLAGS"; then
11649
eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11652
# Extract list of available tagged configurations in $ofile.
11653
# Note that this assumes the entire list is on one line.
11654
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11656
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11657
for tagname in $tagnames; do
11659
# Check whether tagname contains only valid characters
11660
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11662
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11663
echo "$as_me: error: invalid tag name: $tagname" >&2;}
11664
{ (exit 1); exit 1; }; }
11668
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11670
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11671
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11672
{ (exit 1); exit 1; }; }
11675
# Update the list of available tags.
11676
if test -n "$tagname"; then
11677
echo appending configuration tag \"$tagname\" to $ofile
11681
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11682
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11683
(test "X$CXX" != "Xg++"))) ; then
11685
ac_cpp='$CXXCPP $CPPFLAGS'
11686
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11687
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11688
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11693
archive_cmds_need_lc_CXX=no
11694
allow_undefined_flag_CXX=
11695
always_export_symbols_CXX=no
11696
archive_expsym_cmds_CXX=
11697
export_dynamic_flag_spec_CXX=
11698
hardcode_direct_CXX=no
11699
hardcode_libdir_flag_spec_CXX=
11700
hardcode_libdir_flag_spec_ld_CXX=
11701
hardcode_libdir_separator_CXX=
11702
hardcode_minus_L_CXX=no
11703
hardcode_shlibpath_var_CXX=unsupported
11704
hardcode_automatic_CXX=no
11706
module_expsym_cmds_CXX=
11707
link_all_deplibs_CXX=unknown
11708
old_archive_cmds_CXX=$old_archive_cmds
11709
no_undefined_flag_CXX=
11710
whole_archive_flag_spec_CXX=
11711
enable_shared_with_static_runtimes_CXX=no
11713
# Dependencies to place before and after the object being linked:
11714
predep_objects_CXX=
11715
postdep_objects_CXX=
11718
compiler_lib_search_path_CXX=
11720
# Source file extension for C++ test sources.
11723
# Object file extension for compiled C++ test sources.
11727
# Code to be used in simple compile tests
11728
lt_simple_compile_test_code="int some_variable = 0;\n"
11730
# Code to be used in simple link tests
11731
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11733
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11735
# If no C compiler was specified, use CC.
11738
# If no C compiler flags were specified, use CFLAGS.
11739
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11741
# Allow CC to be a program name with arguments.
11745
# save warnings/boilerplate of simple test code
11746
ac_outfile=conftest.$ac_objext
11747
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11748
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11749
_lt_compiler_boilerplate=`cat conftest.err`
11752
ac_outfile=conftest.$ac_objext
11753
printf "$lt_simple_link_test_code" >conftest.$ac_ext
11754
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11755
_lt_linker_boilerplate=`cat conftest.err`
11759
# Allow CC to be a program name with arguments.
11764
lt_save_with_gnu_ld=$with_gnu_ld
11765
lt_save_path_LD=$lt_cv_path_LD
11766
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11767
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11769
$as_unset lt_cv_prog_gnu_ld
11771
if test -n "${lt_cv_path_LDCXX+set}"; then
11772
lt_cv_path_LD=$lt_cv_path_LDCXX
11774
$as_unset lt_cv_path_LD
11776
test -z "${LDCXX+set}" || LD=$LDCXX
11780
for cc_temp in $compiler""; do
11782
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11783
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11788
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11791
# We don't want -fno-exception wen compiling C++ code, so set the
11792
# no_builtin_flag separately
11793
if test "$GXX" = yes; then
11794
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11796
lt_prog_compiler_no_builtin_flag_CXX=
11799
if test "$GXX" = yes; then
11800
# Set up default GNU C++ configuration
11803
# Check whether --with-gnu-ld or --without-gnu-ld was given.
11804
if test "${with_gnu_ld+set}" = set; then
11805
withval="$with_gnu_ld"
11806
test "$withval" = no || with_gnu_ld=yes
11811
if test "$GCC" = yes; then
11812
# Check if gcc -print-prog-name=ld gives a path.
11813
echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11814
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11817
# gcc leaves a trailing carriage return which upsets mingw
11818
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11820
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11823
# Accept absolute paths.
11825
re_direlt='/[^/][^/]*/\.\./'
11826
# Canonicalize the pathname of ld
11827
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11828
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11829
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11831
test -z "$LD" && LD="$ac_prog"
11834
# If it fails, then pretend we aren't using GCC.
11838
# If it is relative, then search for the first ld in PATH.
11839
with_gnu_ld=unknown
11842
elif test "$with_gnu_ld" = yes; then
11843
echo "$as_me:$LINENO: checking for GNU ld" >&5
11844
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11846
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11847
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11849
if test "${lt_cv_path_LD+set}" = set; then
11850
echo $ECHO_N "(cached) $ECHO_C" >&6
11852
if test -z "$LD"; then
11853
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11854
for ac_dir in $PATH; do
11856
test -z "$ac_dir" && ac_dir=.
11857
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11858
lt_cv_path_LD="$ac_dir/$ac_prog"
11859
# Check to see if the program is GNU ld. I'd rather use --version,
11860
# but apparently some variants of GNU ld only accept -v.
11861
# Break only if it was the GNU/non-GNU ld that we prefer.
11862
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11863
*GNU* | *'with BFD'*)
11864
test "$with_gnu_ld" != no && break
11867
test "$with_gnu_ld" != yes && break
11874
lt_cv_path_LD="$LD" # Let the user override the test with a path.
11878
LD="$lt_cv_path_LD"
11879
if test -n "$LD"; then
11880
echo "$as_me:$LINENO: result: $LD" >&5
11881
echo "${ECHO_T}$LD" >&6
11883
echo "$as_me:$LINENO: result: no" >&5
11884
echo "${ECHO_T}no" >&6
11886
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11887
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11888
{ (exit 1); exit 1; }; }
11889
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11890
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11891
if test "${lt_cv_prog_gnu_ld+set}" = set; then
11892
echo $ECHO_N "(cached) $ECHO_C" >&6
11894
# I'd rather use --version here, but apparently some GNU lds only accept -v.
11895
case `$LD -v 2>&1 </dev/null` in
11896
*GNU* | *'with BFD'*)
11897
lt_cv_prog_gnu_ld=yes
11900
lt_cv_prog_gnu_ld=no
11904
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11905
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
11906
with_gnu_ld=$lt_cv_prog_gnu_ld
11910
# Check if GNU C++ uses GNU ld as the underlying linker, since the
11911
# archiving commands below assume that GNU ld is being used.
11912
if test "$with_gnu_ld" = yes; then
11913
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11914
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'
11916
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11917
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11919
# If archive_cmds runs LD, not CC, wlarc should be empty
11920
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11921
# investigate it a little bit more. (MM)
11924
# ancient GNU ld didn't support --whole-archive et. al.
11925
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11926
grep 'no-whole-archive' > /dev/null; then
11927
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11929
whole_archive_flag_spec_CXX=
11935
# A generic and very simple default shared library creation
11936
# command for GNU C++ for the case where it uses the native
11937
# linker, instead of GNU ld. If possible, this setting should
11938
# overridden to take advantage of the native linker features on
11939
# the platform it is being used on.
11940
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11943
# Commands to make compiler produce verbose output that lists
11944
# what "hidden" libraries, object files and flags are used when
11945
# linking a shared library.
11946
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11954
# PORTME: fill in a description of your system's C++ link characteristics
11955
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11956
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11960
# FIXME: insert proper C++ library support
11964
if test "$host_cpu" = ia64; then
11965
# On IA64, the linker does run time linking by default, so we don't
11966
# have to do anything special.
11967
aix_use_runtimelinking=no
11968
exp_sym_flag='-Bexport'
11971
aix_use_runtimelinking=no
11973
# Test if we are trying to use run time linking or normal
11974
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11975
# need to do runtime linking.
11976
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11977
for ld_flag in $LDFLAGS; do
11980
aix_use_runtimelinking=yes
11988
exp_sym_flag='-bexport'
11989
no_entry_flag='-bnoentry'
11992
# When large executables or shared objects are built, AIX ld can
11993
# have problems creating the table of contents. If linking a library
11994
# or program results in "error TOC overflow" add -mminimal-toc to
11995
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11996
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11998
archive_cmds_CXX=''
11999
hardcode_direct_CXX=yes
12000
hardcode_libdir_separator_CXX=':'
12001
link_all_deplibs_CXX=yes
12003
if test "$GXX" = yes; then
12004
case $host_os in aix4.[012]|aix4.[012].*)
12005
# We only want to do this on AIX 4.2 and lower, the check
12006
# below for broken collect2 doesn't work under 4.3+
12007
collect2name=`${CC} -print-prog-name=collect2`
12008
if test -f "$collect2name" && \
12009
strings "$collect2name" | grep resolve_lib_name >/dev/null
12011
# We have reworked collect2
12012
hardcode_direct_CXX=yes
12014
# We have old collect2
12015
hardcode_direct_CXX=unsupported
12016
# It fails to find uninstalled libraries when the uninstalled
12017
# path is not listed in the libpath. Setting hardcode_minus_L
12018
# to unsupported forces relinking
12019
hardcode_minus_L_CXX=yes
12020
hardcode_libdir_flag_spec_CXX='-L$libdir'
12021
hardcode_libdir_separator_CXX=
12025
shared_flag='-shared'
12026
if test "$aix_use_runtimelinking" = yes; then
12027
shared_flag="$shared_flag "'${wl}-G'
12031
if test "$host_cpu" = ia64; then
12032
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12033
# chokes on -Wl,-G. The following line is correct:
12036
if test "$aix_use_runtimelinking" = yes; then
12037
shared_flag='${wl}-G'
12039
shared_flag='${wl}-bM:SRE'
12044
# It seems that -bexpall does not export symbols beginning with
12045
# underscore (_), so it is better to generate a list of symbols to export.
12046
always_export_symbols_CXX=yes
12047
if test "$aix_use_runtimelinking" = yes; then
12048
# Warning - without using the other runtime loading flags (-brtl),
12049
# -berok will link without error, but may produce a broken library.
12050
allow_undefined_flag_CXX='-berok'
12051
# Determine the default libpath from the value encoded in an empty executable.
12052
cat >conftest.$ac_ext <<_ACEOF
12055
cat confdefs.h >>conftest.$ac_ext
12056
cat >>conftest.$ac_ext <<_ACEOF
12057
/* end confdefs.h. */
12067
rm -f conftest.$ac_objext conftest$ac_exeext
12068
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12069
(eval $ac_link) 2>conftest.er1
12071
grep -v '^ *+' conftest.er1 >conftest.err
12073
cat conftest.err >&5
12074
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075
(exit $ac_status); } &&
12076
{ ac_try='test -z "$ac_cxx_werror_flag"
12077
|| test ! -s conftest.err'
12078
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12079
(eval $ac_try) 2>&5
12081
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082
(exit $ac_status); }; } &&
12083
{ ac_try='test -s conftest$ac_exeext'
12084
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12085
(eval $ac_try) 2>&5
12087
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088
(exit $ac_status); }; }; then
12090
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12092
# Check for a 64-bit object if we didn't find anything.
12093
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12096
echo "$as_me: failed program was:" >&5
12097
sed 's/^/| /' conftest.$ac_ext >&5
12100
rm -f conftest.err conftest.$ac_objext \
12101
conftest$ac_exeext conftest.$ac_ext
12102
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12104
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12106
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"
12108
if test "$host_cpu" = ia64; then
12109
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12110
allow_undefined_flag_CXX="-z nodefs"
12111
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"
12113
# Determine the default libpath from the value encoded in an empty executable.
12114
cat >conftest.$ac_ext <<_ACEOF
12117
cat confdefs.h >>conftest.$ac_ext
12118
cat >>conftest.$ac_ext <<_ACEOF
12119
/* end confdefs.h. */
12129
rm -f conftest.$ac_objext conftest$ac_exeext
12130
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12131
(eval $ac_link) 2>conftest.er1
12133
grep -v '^ *+' conftest.er1 >conftest.err
12135
cat conftest.err >&5
12136
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137
(exit $ac_status); } &&
12138
{ ac_try='test -z "$ac_cxx_werror_flag"
12139
|| test ! -s conftest.err'
12140
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12141
(eval $ac_try) 2>&5
12143
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12144
(exit $ac_status); }; } &&
12145
{ ac_try='test -s conftest$ac_exeext'
12146
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12147
(eval $ac_try) 2>&5
12149
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12150
(exit $ac_status); }; }; then
12152
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12154
# Check for a 64-bit object if we didn't find anything.
12155
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12158
echo "$as_me: failed program was:" >&5
12159
sed 's/^/| /' conftest.$ac_ext >&5
12162
rm -f conftest.err conftest.$ac_objext \
12163
conftest$ac_exeext conftest.$ac_ext
12164
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12166
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12167
# Warning - without using the other run time loading flags,
12168
# -berok will link without error, but may produce a broken library.
12169
no_undefined_flag_CXX=' ${wl}-bernotok'
12170
allow_undefined_flag_CXX=' ${wl}-berok'
12171
# Exported symbols can be pulled into shared objects from archives
12172
whole_archive_flag_spec_CXX='$convenience'
12173
archive_cmds_need_lc_CXX=yes
12174
# This is similar to how AIX traditionally builds its shared libraries.
12175
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'
12181
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12182
allow_undefined_flag_CXX=unsupported
12183
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12184
# support --undefined. This deserves some investigation. FIXME
12185
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12192
case $cc_basename in
12194
# FIXME: insert proper C++ library support
12200
cygwin* | mingw* | pw32*)
12201
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12202
# as there is no search path for DLLs.
12203
hardcode_libdir_flag_spec_CXX='-L$libdir'
12204
allow_undefined_flag_CXX=unsupported
12205
always_export_symbols_CXX=no
12206
enable_shared_with_static_runtimes_CXX=yes
12208
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12209
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'
12210
# If the export-symbols file already is a .def file (1st line
12211
# is EXPORTS), use it as is; otherwise, prepend...
12212
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12213
cp $export_symbols $output_objdir/$soname.def;
12215
echo EXPORTS > $output_objdir/$soname.def;
12216
cat $export_symbols >> $output_objdir/$soname.def;
12218
$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'
12223
darwin* | rhapsody*)
12225
rhapsody* | darwin1.[012])
12226
allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12229
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12230
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12232
case ${MACOSX_DEPLOYMENT_TARGET} in
12234
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12237
allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12243
archive_cmds_need_lc_CXX=no
12244
hardcode_direct_CXX=no
12245
hardcode_automatic_CXX=yes
12246
hardcode_shlibpath_var_CXX=unsupported
12247
whole_archive_flag_spec_CXX=''
12248
link_all_deplibs_CXX=yes
12250
if test "$GXX" = yes ; then
12251
lt_int_apple_cc_single_mod=no
12252
output_verbose_link_cmd='echo'
12253
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12254
lt_int_apple_cc_single_mod=yes
12256
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12257
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12259
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'
12261
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12262
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12263
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12264
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12266
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12268
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}'
12270
case $cc_basename in
12272
output_verbose_link_cmd='echo'
12273
archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12274
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12275
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12276
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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12277
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}'
12287
case $cc_basename in
12289
# FIXME: insert proper C++ library support
12293
# Green Hills C++ Compiler
12294
# FIXME: insert proper C++ library support
12298
# FIXME: insert proper C++ library support
12304
# C++ shared libraries reported to be fairly broken before switch to ELF
12308
archive_cmds_need_lc_CXX=no
12310
freebsd* | kfreebsd*-gnu | dragonfly*)
12311
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12318
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12319
hardcode_libdir_separator_CXX=:
12320
export_dynamic_flag_spec_CXX='${wl}-E'
12321
hardcode_direct_CXX=yes
12322
hardcode_minus_L_CXX=yes # Not in the search PATH,
12323
# but as the default
12324
# location of the library.
12326
case $cc_basename in
12328
# FIXME: insert proper C++ library support
12332
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'
12333
# Commands to make compiler produce verbose output that lists
12334
# what "hidden" libraries, object files and flags are used when
12335
# linking a shared library.
12337
# There doesn't appear to be a way to prevent this compiler from
12338
# explicitly linking system object files so we need to strip them
12339
# from the output so that they don't get included in the library
12341
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'
12344
if test "$GXX" = yes; then
12345
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'
12347
# FIXME: insert proper C++ library support
12354
if test $with_gnu_ld = no; then
12355
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12356
hardcode_libdir_separator_CXX=:
12360
hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12363
export_dynamic_flag_spec_CXX='${wl}-E'
12369
hardcode_direct_CXX=no
12370
hardcode_shlibpath_var_CXX=no
12373
hardcode_direct_CXX=yes
12374
hardcode_minus_L_CXX=yes # Not in the search PATH,
12375
# but as the default
12376
# location of the library.
12380
case $cc_basename in
12382
# FIXME: insert proper C++ library support
12388
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12391
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12394
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12397
# Commands to make compiler produce verbose output that lists
12398
# what "hidden" libraries, object files and flags are used when
12399
# linking a shared library.
12401
# There doesn't appear to be a way to prevent this compiler from
12402
# explicitly linking system object files so we need to strip them
12403
# from the output so that they don't get included in the library
12405
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'
12408
if test "$GXX" = yes; then
12409
if test $with_gnu_ld = no; then
12412
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12415
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12418
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'
12423
# FIXME: insert proper C++ library support
12430
hardcode_direct_CXX=no
12431
hardcode_shlibpath_var_CXX=no
12432
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12433
export_dynamic_flag_spec_CXX='${wl}-E'
12434
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12435
# Instead, shared libraries are loaded at an image base (0x10000000 by
12436
# default) and relocated if they conflict, which is a slow very memory
12437
# consuming and fragmenting process. To avoid this, we pick a random,
12438
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12439
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
12440
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'
12441
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'
12444
case $cc_basename in
12447
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'
12449
# Archives containing C++ object files must be created using
12450
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
12451
# necessary to make sure instantiated templates are included
12453
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12456
if test "$GXX" = yes; then
12457
if test "$with_gnu_ld" = no; then
12458
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'
12460
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'
12463
link_all_deplibs_CXX=yes
12466
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12467
hardcode_libdir_separator_CXX=:
12470
case $cc_basename in
12472
# Kuck and Associates, Inc. (KAI) C++ Compiler
12474
# KCC will only create a shared library if the output file
12475
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12476
# to its proper name (with version) after linking.
12477
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'
12478
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'
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 $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'
12489
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12490
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12492
# Archives containing C++ object files must be created using
12493
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12494
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12499
# version 8.0 and above of icpc choke on multiply defined symbols
12500
# if we add $predep_objects and $postdep_objects, however 7.1 and
12501
# earlier do not add the objects themselves.
12502
case `$CC -V 2>&1` in
12504
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12505
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'
12507
*) # Version 8.0 or newer
12510
ia64*) tmp_idyn=' -i_dynamic';;
12512
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12513
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'
12516
archive_cmds_need_lc_CXX=no
12517
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12518
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12519
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12522
# Portland Group C++ compiler
12523
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12524
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'
12526
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12527
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12528
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'
12532
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12533
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'
12535
runpath_var=LD_RUN_PATH
12536
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12537
hardcode_libdir_separator_CXX=:
12539
# Commands to make compiler produce verbose output that lists
12540
# what "hidden" libraries, object files and flags are used when
12541
# linking a shared library.
12543
# There doesn't appear to be a way to prevent this compiler from
12544
# explicitly linking system object files so we need to strip them
12545
# from the output so that they don't get included in the library
12547
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'
12552
# FIXME: insert proper C++ library support
12556
# FIXME: insert proper C++ library support
12560
case $cc_basename in
12562
# FIXME: insert proper C++ library support
12566
# FIXME: insert proper C++ library support
12572
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12573
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12575
hardcode_libdir_flag_spec_CXX='-R$libdir'
12576
hardcode_direct_CXX=yes
12577
hardcode_shlibpath_var_CXX=no
12579
# Workaround some broken pre-1.5 toolchains
12580
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12583
# C++ shared libraries are fairly broken
12587
hardcode_direct_CXX=yes
12588
hardcode_shlibpath_var_CXX=no
12589
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12590
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12591
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12592
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12593
export_dynamic_flag_spec_CXX='${wl}-E'
12594
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12596
output_verbose_link_cmd='echo'
12599
case $cc_basename in
12601
# Kuck and Associates, Inc. (KAI) C++ Compiler
12603
# KCC will only create a shared library if the output file
12604
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12605
# to its proper name (with version) after linking.
12606
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'
12608
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12609
hardcode_libdir_separator_CXX=:
12611
# Archives containing C++ object files must be created using
12612
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12613
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12617
# Rational C++ 2.4.1
12618
# FIXME: insert proper C++ library support
12622
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12623
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'
12625
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12626
hardcode_libdir_separator_CXX=:
12628
# Commands to make compiler produce verbose output that lists
12629
# what "hidden" libraries, object files and flags are used when
12630
# linking a shared library.
12632
# There doesn't appear to be a way to prevent this compiler from
12633
# explicitly linking system object files so we need to strip them
12634
# from the output so that they don't get included in the library
12636
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'
12639
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12640
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12641
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'
12643
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12644
hardcode_libdir_separator_CXX=:
12646
# Commands to make compiler produce verbose output that lists
12647
# what "hidden" libraries, object files and flags are used when
12648
# linking a shared library.
12649
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12652
# FIXME: insert proper C++ library support
12659
case $cc_basename in
12661
# Kuck and Associates, Inc. (KAI) C++ Compiler
12663
# KCC will only create a shared library if the output file
12664
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12665
# to its proper name (with version) after linking.
12666
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'
12668
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12669
hardcode_libdir_separator_CXX=:
12671
# Archives containing C++ object files must be created using
12672
# the KAI C++ compiler.
12673
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12676
# Rational C++ 2.4.1
12677
# FIXME: insert proper C++ library support
12681
allow_undefined_flag_CXX=' -expect_unresolved \*'
12682
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'
12683
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12684
echo "-hidden">> $lib.exp~
12685
$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~
12688
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12689
hardcode_libdir_separator_CXX=:
12691
# Commands to make compiler produce verbose output that lists
12692
# what "hidden" libraries, object files and flags are used when
12693
# linking a shared library.
12695
# There doesn't appear to be a way to prevent this compiler from
12696
# explicitly linking system object files so we need to strip them
12697
# from the output so that they don't get included in the library
12699
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'
12702
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12703
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12704
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'
12706
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12707
hardcode_libdir_separator_CXX=:
12709
# Commands to make compiler produce verbose output that lists
12710
# what "hidden" libraries, object files and flags are used when
12711
# linking a shared library.
12712
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12715
# FIXME: insert proper C++ library support
12722
# FIXME: insert proper C++ library support
12726
case $cc_basename in
12729
# FIXME: insert proper C++ library support
12734
# FIXME: insert proper C++ library support
12738
# FIXME: insert proper C++ library support
12744
case $cc_basename in
12746
# Sun C++ 4.2, 5.x and Centerline C++
12747
archive_cmds_need_lc_CXX=yes
12748
no_undefined_flag_CXX=' -zdefs'
12749
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12750
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12751
$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'
12753
hardcode_libdir_flag_spec_CXX='-R$libdir'
12754
hardcode_shlibpath_var_CXX=no
12756
solaris2.[0-5] | solaris2.[0-5].*) ;;
12758
# The C++ compiler is used as linker so we must use $wl
12759
# flag to pass the commands to the underlying system
12760
# linker. We must also pass each convience library through
12761
# to the system linker between allextract/defaultextract.
12762
# The C++ compiler will combine linker options so we
12763
# cannot just pass the convience library names through
12765
# Supported since Solaris 2.6 (maybe 2.5.1?)
12766
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
12769
link_all_deplibs_CXX=yes
12771
output_verbose_link_cmd='echo'
12773
# Archives containing C++ object files must be created using
12774
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12775
# necessary to make sure instantiated templates are included
12777
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12780
# Green Hills C++ Compiler
12781
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12783
# The C++ compiler must be used to create the archive.
12784
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12787
# GNU C++ compiler with Solaris linker
12788
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12789
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12790
if $CC --version | grep -v '^2\.7' > /dev/null; then
12791
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12792
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12793
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12795
# Commands to make compiler produce verbose output that lists
12796
# what "hidden" libraries, object files and flags are used when
12797
# linking a shared library.
12798
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12800
# g++ 2.7 appears to require `-G' NOT `-shared' on this
12802
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12803
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12804
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12806
# Commands to make compiler produce verbose output that lists
12807
# what "hidden" libraries, object files and flags are used when
12808
# linking a shared library.
12809
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12812
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12817
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12818
no_undefined_flag_CXX='${wl}-z,text'
12819
archive_cmds_need_lc_CXX=no
12820
hardcode_shlibpath_var_CXX=no
12821
runpath_var='LD_RUN_PATH'
12823
case $cc_basename in
12825
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12826
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12829
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12830
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12834
sysv5* | sco3.2v5* | sco5v6*)
12835
# Note: We can NOT use -z defs as we might desire, because we do not
12836
# link with -lc, and that would cause any symbols used from libc to
12837
# always be unresolved, which means just about no library would
12838
# ever link correctly. If we're not using GNU ld we use -z text
12839
# though, which does catch some bad symbols but isn't as heavy-handed
12841
# For security reasons, it is highly recommended that you always
12842
# use absolute paths for naming shared libraries, and exclude the
12843
# DT_RUNPATH tag from executables and libraries. But doing so
12844
# requires that you compile everything twice, which is a pain.
12845
# So that behaviour is only enabled if SCOABSPATH is set to a
12846
# non-empty value in the environment. Most likely only useful for
12847
# creating official distributions of packages.
12848
# This is a hack until libtool officially supports absolute path
12849
# names for shared libraries.
12850
no_undefined_flag_CXX='${wl}-z,text'
12851
allow_undefined_flag_CXX='${wl}-z,nodefs'
12852
archive_cmds_need_lc_CXX=no
12853
hardcode_shlibpath_var_CXX=no
12854
hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12855
hardcode_libdir_separator_CXX=':'
12856
link_all_deplibs_CXX=yes
12857
export_dynamic_flag_spec_CXX='${wl}-Bexport'
12858
runpath_var='LD_RUN_PATH'
12860
case $cc_basename in
12862
archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12863
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12866
archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12867
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12872
case $cc_basename in
12874
# NonStop-UX NCC 3.20
12875
# FIXME: insert proper C++ library support
12879
# FIXME: insert proper C++ library support
12885
# FIXME: insert proper C++ library support
12889
# FIXME: insert proper C++ library support
12893
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12894
echo "${ECHO_T}$ld_shlibs_CXX" >&6
12895
test "$ld_shlibs_CXX" = no && can_build_shared=no
12901
cat > conftest.$ac_ext <<EOF
12905
Foo (void) { a = 0; }
12911
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12912
(eval $ac_compile) 2>&5
12914
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12915
(exit $ac_status); }; then
12916
# Parse the compiler output and extract the necessary
12917
# objects, libraries and library flags.
12919
# Sentinel used to keep track of whether or not we are before
12920
# the conftest object file.
12921
pre_test_object_deps_done=no
12923
# The `*' in the case matches for architectures that use `case' in
12924
# $output_verbose_cmd can trigger glob expansion during the loop
12925
# eval without this substitution.
12926
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12928
for p in `eval $output_verbose_link_cmd`; do
12932
# Some compilers place space between "-{L,R}" and the path.
12933
# Remove the space.
12934
if test $p = "-L" \
12935
|| test $p = "-R"; then
12942
if test "$pre_test_object_deps_done" = no; then
12945
# Internal compiler library paths should come after those
12946
# provided the user. The postdeps already come after the
12947
# user supplied libs so there is no need to process them.
12948
if test -z "$compiler_lib_search_path_CXX"; then
12949
compiler_lib_search_path_CXX="${prev}${p}"
12951
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12954
# The "-l" case would never come before the object being
12955
# linked, so don't bother handling this case.
12958
if test -z "$postdeps_CXX"; then
12959
postdeps_CXX="${prev}${p}"
12961
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12967
# This assumes that the test object file only shows up
12968
# once in the compiler output.
12969
if test "$p" = "conftest.$objext"; then
12970
pre_test_object_deps_done=yes
12974
if test "$pre_test_object_deps_done" = no; then
12975
if test -z "$predep_objects_CXX"; then
12976
predep_objects_CXX="$p"
12978
predep_objects_CXX="$predep_objects_CXX $p"
12981
if test -z "$postdep_objects_CXX"; then
12982
postdep_objects_CXX="$p"
12984
postdep_objects_CXX="$postdep_objects_CXX $p"
12989
*) ;; # Ignore the rest.
12997
echo "libtool.m4: error: problem compiling CXX test program"
13000
$rm -f confest.$objext
13002
# PORTME: override above test on systems where it is broken
13005
# Interix 3.5 installs completely hosed .la files for C++, so rather than
13006
# hack all around it, let's just trust "g++" to DTRT.
13007
predep_objects_CXX=
13008
postdep_objects_CXX=
13013
case $cc_basename in
13015
# Adding this requires a known-good setup of shared libraries for
13016
# Sun compiler versions before 5.6, else PIC objects from an old
13017
# archive will be linked into the output, leading to subtle bugs.
13018
postdeps_CXX='-lCstd -lCrun'
13025
case " $postdeps_CXX " in
13026
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13029
lt_prog_compiler_wl_CXX=
13030
lt_prog_compiler_pic_CXX=
13031
lt_prog_compiler_static_CXX=
13033
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13034
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13036
# C++ specific cases for pic, static, wl, etc.
13037
if test "$GXX" = yes; then
13038
lt_prog_compiler_wl_CXX='-Wl,'
13039
lt_prog_compiler_static_CXX='-static'
13043
# All AIX code is PIC.
13044
if test "$host_cpu" = ia64; then
13045
# AIX 5 now supports IA64 processor
13046
lt_prog_compiler_static_CXX='-Bstatic'
13050
# FIXME: we need at least 68020 code to build shared libraries, but
13051
# adding the `-m68020' flag to GCC prevents building anything better,
13053
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13055
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13056
# PIC is the default for these OSes.
13058
mingw* | os2* | pw32*)
13059
# This hack is so that the source file can tell whether it is being
13060
# built for inclusion in a dll (and should export symbols for example).
13061
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13063
darwin* | rhapsody*)
13064
# PIC is the default on this platform
13065
# Common symbols not allowed in MH_DYLIB files
13066
lt_prog_compiler_pic_CXX='-fno-common'
13069
# DJGPP does not support shared libraries at all
13070
lt_prog_compiler_pic_CXX=
13073
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
13074
# Instead, we relocate shared libraries at runtime.
13077
if test -d /usr/nec; then
13078
lt_prog_compiler_pic_CXX=-Kconform_pic
13082
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13083
# not for PA HP-UX.
13088
lt_prog_compiler_pic_CXX='-fPIC'
13093
lt_prog_compiler_pic_CXX='-fPIC'
13099
# All AIX code is PIC.
13100
if test "$host_cpu" = ia64; then
13101
# AIX 5 now supports IA64 processor
13102
lt_prog_compiler_static_CXX='-Bstatic'
13104
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13108
case $cc_basename in
13110
# Green Hills C++ Compiler
13111
# _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"
13116
# PIC is the default on this platform
13117
# Common symbols not allowed in MH_DYLIB files
13118
case $cc_basename in
13120
lt_prog_compiler_pic_CXX='-qnocommon'
13121
lt_prog_compiler_wl_CXX='-Wl,'
13126
case $cc_basename in
13128
lt_prog_compiler_pic_CXX='-KPIC'
13131
# Green Hills C++ Compiler
13132
lt_prog_compiler_pic_CXX='-pic'
13138
freebsd* | kfreebsd*-gnu | dragonfly*)
13139
# FreeBSD uses GNU C++
13141
hpux9* | hpux10* | hpux11*)
13142
case $cc_basename in
13144
lt_prog_compiler_wl_CXX='-Wl,'
13145
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13146
if test "$host_cpu" != ia64; then
13147
lt_prog_compiler_pic_CXX='+Z'
13151
lt_prog_compiler_wl_CXX='-Wl,'
13152
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13158
lt_prog_compiler_pic_CXX='+Z'
13167
# This is c89, which is MS Visual C++ (no shared libs)
13168
# Anyone wants to do a port?
13170
irix5* | irix6* | nonstopux*)
13171
case $cc_basename in
13173
lt_prog_compiler_wl_CXX='-Wl,'
13174
lt_prog_compiler_static_CXX='-non_shared'
13175
# CC pic flag -KPIC is the default.
13182
case $cc_basename in
13185
lt_prog_compiler_wl_CXX='--backend -Wl,'
13186
lt_prog_compiler_pic_CXX='-fPIC'
13190
lt_prog_compiler_wl_CXX='-Wl,'
13191
lt_prog_compiler_pic_CXX='-KPIC'
13192
lt_prog_compiler_static_CXX='-static'
13195
# Portland Group C++ compiler.
13196
lt_prog_compiler_wl_CXX='-Wl,'
13197
lt_prog_compiler_pic_CXX='-fpic'
13198
lt_prog_compiler_static_CXX='-Bstatic'
13202
# Make sure the PIC flag is empty. It appears that all Alpha
13203
# Linux and Compaq Tru64 Unix objects are PIC.
13204
lt_prog_compiler_pic_CXX=
13205
lt_prog_compiler_static_CXX='-non_shared'
13216
case $cc_basename in
13218
lt_prog_compiler_pic_CXX='-W c,exportall'
13226
osf3* | osf4* | osf5*)
13227
case $cc_basename in
13229
lt_prog_compiler_wl_CXX='--backend -Wl,'
13232
# Rational C++ 2.4.1
13233
lt_prog_compiler_pic_CXX='-pic'
13236
# Digital/Compaq C++
13237
lt_prog_compiler_wl_CXX='-Wl,'
13238
# Make sure the PIC flag is empty. It appears that all Alpha
13239
# Linux and Compaq Tru64 Unix objects are PIC.
13240
lt_prog_compiler_pic_CXX=
13241
lt_prog_compiler_static_CXX='-non_shared'
13250
case $cc_basename in
13252
# Sun C++ 4.2, 5.x and Centerline C++
13253
lt_prog_compiler_pic_CXX='-KPIC'
13254
lt_prog_compiler_static_CXX='-Bstatic'
13255
lt_prog_compiler_wl_CXX='-Qoption ld '
13258
# Green Hills C++ Compiler
13259
lt_prog_compiler_pic_CXX='-PIC'
13266
case $cc_basename in
13269
lt_prog_compiler_pic_CXX='-pic'
13270
lt_prog_compiler_static_CXX='-Bstatic'
13274
lt_prog_compiler_pic_CXX='-pic'
13281
case $cc_basename in
13283
# NonStop-UX NCC 3.20
13284
lt_prog_compiler_pic_CXX='-KPIC'
13290
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13291
case $cc_basename in
13293
lt_prog_compiler_wl_CXX='-Wl,'
13294
lt_prog_compiler_pic_CXX='-KPIC'
13295
lt_prog_compiler_static_CXX='-Bstatic'
13302
lt_prog_compiler_can_build_shared_CXX=no
13307
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13308
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
13311
# Check to make sure the PIC flag actually works.
13313
if test -n "$lt_prog_compiler_pic_CXX"; then
13315
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13316
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
13317
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13318
echo $ECHO_N "(cached) $ECHO_C" >&6
13320
lt_prog_compiler_pic_works_CXX=no
13321
ac_outfile=conftest.$ac_objext
13322
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13323
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13324
# Insert the option either (1) after the last *FLAGS variable, or
13325
# (2) before a word containing "conftest.", or (3) at the end.
13326
# Note that $ac_compile itself does not contain backslashes and begins
13327
# with a dollar sign (not a hyphen), so the echo should work correctly.
13328
# The option is referenced via a variable to avoid confusing sed.
13329
lt_compile=`echo "$ac_compile" | $SED \
13330
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13331
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13332
-e 's:$: $lt_compiler_flag:'`
13333
(eval echo "\"\$as_me:13333: $lt_compile\"" >&5)
13334
(eval "$lt_compile" 2>conftest.err)
13336
cat conftest.err >&5
13337
echo "$as_me:13337: \$? = $ac_status" >&5
13338
if (exit $ac_status) && test -s "$ac_outfile"; then
13339
# The compiler can only warn and ignore the option if not recognized
13340
# So say no if there are warnings other than the usual output.
13341
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13342
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13343
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13344
lt_prog_compiler_pic_works_CXX=yes
13350
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13351
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
13353
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13354
case $lt_prog_compiler_pic_CXX in
13356
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13359
lt_prog_compiler_pic_CXX=
13360
lt_prog_compiler_can_build_shared_CXX=no
13365
# For platforms which do not support PIC, -DPIC is meaningless:
13367
lt_prog_compiler_pic_CXX=
13370
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13375
# Check to make sure the static flag actually works.
13377
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13378
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13379
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13380
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13381
echo $ECHO_N "(cached) $ECHO_C" >&6
13383
lt_prog_compiler_static_works_CXX=no
13384
save_LDFLAGS="$LDFLAGS"
13385
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13386
printf "$lt_simple_link_test_code" > conftest.$ac_ext
13387
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13388
# The linker can only warn and ignore the option if not recognized
13389
# So say no if there are warnings
13390
if test -s conftest.err; then
13391
# Append any errors to the config.log.
13392
cat conftest.err 1>&5
13393
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13394
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13395
if diff conftest.exp conftest.er2 >/dev/null; then
13396
lt_prog_compiler_static_works_CXX=yes
13399
lt_prog_compiler_static_works_CXX=yes
13403
LDFLAGS="$save_LDFLAGS"
13406
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13407
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
13409
if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13412
lt_prog_compiler_static_CXX=
13416
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13417
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13418
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13419
echo $ECHO_N "(cached) $ECHO_C" >&6
13421
lt_cv_prog_compiler_c_o_CXX=no
13422
$rm -r conftest 2>/dev/null
13426
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13428
lt_compiler_flag="-o out/conftest2.$ac_objext"
13429
# Insert the option either (1) after the last *FLAGS variable, or
13430
# (2) before a word containing "conftest.", or (3) at the end.
13431
# Note that $ac_compile itself does not contain backslashes and begins
13432
# with a dollar sign (not a hyphen), so the echo should work correctly.
13433
lt_compile=`echo "$ac_compile" | $SED \
13434
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13435
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13436
-e 's:$: $lt_compiler_flag:'`
13437
(eval echo "\"\$as_me:13437: $lt_compile\"" >&5)
13438
(eval "$lt_compile" 2>out/conftest.err)
13440
cat out/conftest.err >&5
13441
echo "$as_me:13441: \$? = $ac_status" >&5
13442
if (exit $ac_status) && test -s out/conftest2.$ac_objext
13444
# The compiler can only warn and ignore the option if not recognized
13445
# So say no if there are warnings
13446
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13447
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13448
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13449
lt_cv_prog_compiler_c_o_CXX=yes
13454
# SGI C++ compiler will create directory out/ii_files/ for
13455
# template instantiation
13456
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13457
$rm out/* && rmdir out
13463
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13464
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13467
hard_links="nottested"
13468
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13469
# do not overwrite the value of need_locks provided by the user
13470
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13471
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13474
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13476
ln conftest.a conftest.b 2>&5 || hard_links=no
13477
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13478
echo "$as_me:$LINENO: result: $hard_links" >&5
13479
echo "${ECHO_T}$hard_links" >&6
13480
if test "$hard_links" = no; then
13481
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13482
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13489
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13490
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13492
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13495
# If we're using GNU nm, then we don't want the "-C" option.
13496
# -C means demangle to AIX nm, but means don't demangle with GNU nm
13497
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13498
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'
13500
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'
13504
export_symbols_cmds_CXX="$ltdll_cmds"
13507
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'
13510
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13514
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13515
echo "${ECHO_T}$ld_shlibs_CXX" >&6
13516
test "$ld_shlibs_CXX" = no && can_build_shared=no
13519
# Do we need to explicitly link libc?
13521
case "x$archive_cmds_need_lc_CXX" in
13523
# Assume -lc should be added
13524
archive_cmds_need_lc_CXX=yes
13526
if test "$enable_shared" = yes && test "$GCC" = yes; then
13527
case $archive_cmds_CXX in
13529
# FIXME: we may have to deal with multi-command sequences.
13532
# Test whether the compiler implicitly links with -lc since on some
13533
# systems, -lgcc has to come before -lc. If gcc already passes -lc
13534
# to ld, don't add -lc before -lgcc.
13535
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13536
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13538
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13540
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13541
(eval $ac_compile) 2>&5
13543
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13544
(exit $ac_status); } 2>conftest.err; then
13547
libobjs=conftest.$ac_objext
13549
wl=$lt_prog_compiler_wl_CXX
13550
pic_flag=$lt_prog_compiler_pic_CXX
13556
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13557
allow_undefined_flag_CXX=
13558
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13559
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13561
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562
(exit $ac_status); }
13564
archive_cmds_need_lc_CXX=no
13566
archive_cmds_need_lc_CXX=yes
13568
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13570
cat conftest.err 1>&5
13573
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13574
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
13581
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13582
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13583
library_names_spec=
13584
libname_spec='lib$name'
13588
postuninstall_cmds=
13592
shlibpath_overrides_runpath=unknown
13594
dynamic_linker="$host_os ld.so"
13595
sys_lib_dlsearch_path_spec="/lib /usr/lib"
13596
if test "$GCC" = yes; then
13597
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13598
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13599
# if the path contains ";" then we assume it to be the separator
13600
# otherwise default to the standard path separator (i.e. ":") - it is
13601
# assumed that no part of a normal pathname contains ";" but that should
13602
# okay in the real world where ";" in dirpaths is itself problematic.
13603
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13605
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13608
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13610
need_lib_prefix=unknown
13611
hardcode_into_libs=no
13613
# when you set need_version to no, make sure it does not cause -set_version
13614
# flags to be left without arguments
13615
need_version=unknown
13620
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13621
shlibpath_var=LIBPATH
13623
# AIX 3 has no versioning support, so we append a major version to the name.
13624
soname_spec='${libname}${release}${shared_ext}$major'
13631
hardcode_into_libs=yes
13632
if test "$host_cpu" = ia64; then
13633
# AIX 5 supports IA64
13634
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13635
shlibpath_var=LD_LIBRARY_PATH
13637
# With GCC up to 2.95.x, collect2 would create an import file
13638
# for dependence libraries. The import file would start with
13639
# the line `#! .'. This would cause the generated library to
13640
# depend on `.', always an invalid library. This was fixed in
13641
# development snapshots of GCC prior to 3.0.
13643
aix4 | aix4.[01] | aix4.[01].*)
13644
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13646
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13649
can_build_shared=no
13653
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13654
# soname into executable. Probably we can add versioning support to
13655
# collect2, so additional links can be useful in future.
13656
if test "$aix_use_runtimelinking" = yes; then
13657
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
13658
# instead of lib<name>.a to let people know that these are not
13659
# typical AIX shared libraries.
13660
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13662
# We preserve .a as extension for shared libraries through AIX4.2
13663
# and later when we are not doing run time linking.
13664
library_names_spec='${libname}${release}.a $libname.a'
13665
soname_spec='${libname}${release}${shared_ext}$major'
13667
shlibpath_var=LIBPATH
13672
library_names_spec='$libname.ixlibrary $libname.a'
13673
# Create ${libname}_ixlibrary.a entries in /sys/libs.
13674
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'
13678
library_names_spec='${libname}${shared_ext}'
13679
dynamic_linker="$host_os ld.so"
13680
shlibpath_var=LIBRARY_PATH
13686
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13687
soname_spec='${libname}${release}${shared_ext}$major'
13688
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13689
shlibpath_var=LD_LIBRARY_PATH
13690
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13691
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13692
# the default ld.so.conf also contains /usr/contrib/lib and
13693
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13694
# libtool to hard-code these into programs
13697
cygwin* | mingw* | pw32*)
13698
version_type=windows
13703
case $GCC,$host_os in
13704
yes,cygwin* | yes,mingw* | yes,pw32*)
13705
library_names_spec='$libname.dll.a'
13706
# DLL is installed to $(libdir)/../bin by postinstall_cmds
13707
postinstall_cmds='base_file=`basename \${file}`~
13708
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13709
dldir=$destdir/`dirname \$dlpath`~
13710
test -d \$dldir || mkdir -p \$dldir~
13711
$install_prog $dir/$dlname \$dldir/$dlname~
13712
chmod a+x \$dldir/$dlname'
13713
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13714
dlpath=$dir/\$dldll~
13716
shlibpath_overrides_runpath=yes
13720
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
13721
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13722
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13725
# MinGW DLLs use traditional 'lib' prefix
13726
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13727
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13728
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13729
# It is most probably a Windows format PATH printed by
13730
# mingw gcc, but we are running on Cygwin. Gcc prints its search
13731
# path with ; separators, and with drive letters. We can handle the
13732
# drive letters (cygwin fileutils understands them), so leave them,
13733
# especially as we might pass files found there to a mingw objdump,
13734
# which wouldn't understand a cygwinified path. Ahh.
13735
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13737
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13741
# pw32 DLLs use 'pw' prefix rather than 'lib'
13742
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13748
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13751
dynamic_linker='Win32 ld.exe'
13752
# FIXME: first we should search . and the directory the executable is in
13756
darwin* | rhapsody*)
13757
dynamic_linker="$host_os dyld"
13758
version_type=darwin
13761
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13762
soname_spec='${libname}${release}${major}$shared_ext'
13763
shlibpath_overrides_runpath=yes
13764
shlibpath_var=DYLD_LIBRARY_PATH
13765
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13766
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13767
if test "$GCC" = yes; then
13768
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
13770
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13772
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13779
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13780
soname_spec='${libname}${release}${shared_ext}$major'
13781
shlibpath_var=LD_LIBRARY_PATH
13792
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13793
soname_spec='${libname}${release}${shared_ext}$major'
13794
shlibpath_var=LD_LIBRARY_PATH
13795
shlibpath_overrides_runpath=no
13796
hardcode_into_libs=yes
13797
dynamic_linker='GNU ld.so'
13800
freebsd* | dragonfly*)
13801
# DragonFly does not have aout. When/if they implement a new
13802
# versioning mechanism, adjust this.
13803
if test -x /usr/bin/objformat; then
13804
objformat=`/usr/bin/objformat`
13807
freebsd[123]*) objformat=aout ;;
13808
*) objformat=elf ;;
13811
version_type=freebsd-$objformat
13812
case $version_type in
13814
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13819
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13823
shlibpath_var=LD_LIBRARY_PATH
13826
shlibpath_overrides_runpath=yes
13828
freebsd3.[01]* | freebsdelf3.[01]*)
13829
shlibpath_overrides_runpath=yes
13830
hardcode_into_libs=yes
13832
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13833
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13834
shlibpath_overrides_runpath=no
13835
hardcode_into_libs=yes
13837
freebsd*) # from 4.6 on
13838
shlibpath_overrides_runpath=yes
13839
hardcode_into_libs=yes
13848
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13849
soname_spec='${libname}${release}${shared_ext}$major'
13850
shlibpath_var=LD_LIBRARY_PATH
13851
hardcode_into_libs=yes
13854
hpux9* | hpux10* | hpux11*)
13855
# Give a soname corresponding to the major version so that dld.sl refuses to
13856
# link against other versions.
13863
hardcode_into_libs=yes
13864
dynamic_linker="$host_os dld.so"
13865
shlibpath_var=LD_LIBRARY_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
if test "X$HPUX_IA64_MODE" = X32; then
13870
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13872
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13874
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13878
hardcode_into_libs=yes
13879
dynamic_linker="$host_os dld.sl"
13880
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13881
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13882
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13883
soname_spec='${libname}${release}${shared_ext}$major'
13884
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13885
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13889
dynamic_linker="$host_os dld.sl"
13890
shlibpath_var=SHLIB_PATH
13891
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13892
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13893
soname_spec='${libname}${release}${shared_ext}$major'
13896
# HP-UX runs *really* slowly unless shared libraries are mode 555.
13897
postinstall_cmds='chmod 555 $lib'
13904
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13905
soname_spec='${libname}${release}${shared_ext}$major'
13906
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13907
shlibpath_var=LD_LIBRARY_PATH
13908
shlibpath_overrides_runpath=no
13909
hardcode_into_libs=yes
13912
irix5* | irix6* | nonstopux*)
13914
nonstopux*) version_type=nonstopux ;;
13916
if test "$lt_cv_prog_gnu_ld" = yes; then
13924
soname_spec='${libname}${release}${shared_ext}$major'
13925
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13927
irix5* | nonstopux*)
13928
libsuff= shlibsuff=
13931
case $LD in # libtool.m4 will add one of these switches to LD
13932
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13933
libsuff= shlibsuff= libmagic=32-bit;;
13934
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13935
libsuff=32 shlibsuff=N32 libmagic=N32;;
13936
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13937
libsuff=64 shlibsuff=64 libmagic=64-bit;;
13938
*) libsuff= shlibsuff= libmagic=never-match;;
13942
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13943
shlibpath_overrides_runpath=no
13944
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13945
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13946
hardcode_into_libs=yes
13949
# No shared lib support for Linux oldld, aout, or coff.
13950
linux*oldld* | linux*aout* | linux*coff*)
13954
# This must be Linux ELF.
13959
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13960
soname_spec='${libname}${release}${shared_ext}$major'
13961
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13962
shlibpath_var=LD_LIBRARY_PATH
13963
shlibpath_overrides_runpath=no
13964
# This implies no fast_install, which is unacceptable.
13965
# Some rework will be needed to allow for fast_install
13966
# before this can be enabled.
13967
hardcode_into_libs=yes
13969
# find out which ABI we are using
13971
case "$host_cpu" in
13972
x86_64*|s390x*|powerpc64*)
13973
echo '#line 13973 "configure"' > conftest.$ac_ext
13974
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13975
(eval $ac_compile) 2>&5
13977
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13978
(exit $ac_status); }; then
13979
case `/usr/bin/file conftest.$ac_objext` in
13982
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
13990
# Append ld.so.conf contents to the search path
13991
if test -f /etc/ld.so.conf; then
13992
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13993
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
13996
# We used to test for /lib/ld.so.1 and disable shared libraries on
13997
# powerpc, because MkLinux only supported shared libraries with the
13998
# GNU dynamic linker. Since this was broken with cross compilers,
13999
# most powerpc-linux boxes support dynamic linking these days and
14000
# people can always --disable-shared, the test was removed, and we
14001
# assume the GNU/Linux dynamic linker is in use.
14002
dynamic_linker='GNU/Linux ld.so'
14009
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14010
soname_spec='${libname}${release}${shared_ext}$major'
14011
shlibpath_var=LD_LIBRARY_PATH
14012
shlibpath_overrides_runpath=no
14013
hardcode_into_libs=yes
14014
dynamic_linker='GNU ld.so'
14021
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14022
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14023
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14024
dynamic_linker='NetBSD (a.out) ld.so'
14026
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14027
soname_spec='${libname}${release}${shared_ext}$major'
14028
dynamic_linker='NetBSD ld.elf_so'
14030
shlibpath_var=LD_LIBRARY_PATH
14031
shlibpath_overrides_runpath=yes
14032
hardcode_into_libs=yes
14037
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14038
shlibpath_var=LD_LIBRARY_PATH
14039
shlibpath_overrides_runpath=yes
14046
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14047
soname_spec='${libname}${release}${shared_ext}$major'
14048
shlibpath_var=LD_LIBRARY_PATH
14049
shlibpath_overrides_runpath=yes
14054
sys_lib_dlsearch_path_spec="/usr/lib"
14056
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14058
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14059
*) need_version=no ;;
14061
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14062
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14063
shlibpath_var=LD_LIBRARY_PATH
14064
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14066
openbsd2.[89] | openbsd2.[89].*)
14067
shlibpath_overrides_runpath=no
14070
shlibpath_overrides_runpath=yes
14074
shlibpath_overrides_runpath=yes
14079
libname_spec='$name'
14082
library_names_spec='$libname${shared_ext} $libname.a'
14083
dynamic_linker='OS/2 ld.exe'
14084
shlibpath_var=LIBPATH
14087
osf3* | osf4* | osf5*)
14091
soname_spec='${libname}${release}${shared_ext}$major'
14092
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14093
shlibpath_var=LD_LIBRARY_PATH
14094
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14095
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14102
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14103
soname_spec='${libname}${release}${shared_ext}$major'
14104
shlibpath_var=LD_LIBRARY_PATH
14105
shlibpath_overrides_runpath=yes
14106
hardcode_into_libs=yes
14107
# ldd complains unless libraries are executable
14108
postinstall_cmds='chmod +x $lib'
14113
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14114
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14115
shlibpath_var=LD_LIBRARY_PATH
14116
shlibpath_overrides_runpath=yes
14117
if test "$with_gnu_ld" = yes; then
14125
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14126
soname_spec='${libname}${release}${shared_ext}$major'
14127
shlibpath_var=LD_LIBRARY_PATH
14128
case $host_vendor in
14130
shlibpath_overrides_runpath=no
14132
export_dynamic_flag_spec='${wl}-Blargedynsym'
14133
runpath_var=LD_RUN_PATH
14141
shlibpath_overrides_runpath=no
14142
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14148
if test -d /usr/nec ;then
14150
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14151
soname_spec='$libname${shared_ext}.$major'
14152
shlibpath_var=LD_LIBRARY_PATH
14156
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14157
version_type=freebsd-elf
14160
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14161
soname_spec='${libname}${release}${shared_ext}$major'
14162
shlibpath_var=LD_LIBRARY_PATH
14163
hardcode_into_libs=yes
14164
if test "$with_gnu_ld" = yes; then
14165
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14166
shlibpath_overrides_runpath=no
14168
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14169
shlibpath_overrides_runpath=yes
14172
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14176
sys_lib_dlsearch_path_spec='/usr/lib'
14181
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14182
soname_spec='${libname}${release}${shared_ext}$major'
14183
shlibpath_var=LD_LIBRARY_PATH
14190
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14191
echo "${ECHO_T}$dynamic_linker" >&6
14192
test "$dynamic_linker" = no && can_build_shared=no
14194
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14195
if test "$GCC" = yes; then
14196
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14199
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14200
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14201
hardcode_action_CXX=
14202
if test -n "$hardcode_libdir_flag_spec_CXX" || \
14203
test -n "$runpath_var_CXX" || \
14204
test "X$hardcode_automatic_CXX" = "Xyes" ; then
14206
# We can hardcode non-existant directories.
14207
if test "$hardcode_direct_CXX" != no &&
14208
# If the only mechanism to avoid hardcoding is shlibpath_var, we
14209
# have to relink, otherwise we might link with an installed library
14210
# when we should be linking with a yet-to-be-installed one
14211
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14212
test "$hardcode_minus_L_CXX" != no; then
14213
# Linking always hardcodes the temporary library directory.
14214
hardcode_action_CXX=relink
14216
# We can link without hardcoding, and we can hardcode nonexisting dirs.
14217
hardcode_action_CXX=immediate
14220
# We cannot hardcode anything, or else we can only hardcode existing
14222
hardcode_action_CXX=unsupported
14224
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14225
echo "${ECHO_T}$hardcode_action_CXX" >&6
14227
if test "$hardcode_action_CXX" = relink; then
14228
# Fast installation is not supported
14229
enable_fast_install=no
14230
elif test "$shlibpath_overrides_runpath" = yes ||
14231
test "$enable_shared" = no; then
14232
# Fast installation is not necessary
14233
enable_fast_install=needless
14237
# The else clause should only fire when bootstrapping the
14238
# libtool distribution, otherwise you forgot to ship ltmain.sh
14239
# with your package, and you will get complaints that there are
14240
# no rules to generate ltmain.sh.
14241
if test -f "$ltmain"; then
14242
# See if we are running on zsh, and set the options which allow our commands through
14243
# without removal of \ escapes.
14244
if test -n "${ZSH_VERSION+set}" ; then
14245
setopt NO_GLOB_SUBST
14247
# Now quote all the things that may contain metacharacters while being
14248
# careful not to overquote the AC_SUBSTed values. We take copies of the
14249
# variables and quote the copies for generation of the libtool script.
14250
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14252
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14253
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14254
deplibs_check_method reload_flag reload_cmds need_locks \
14255
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14256
lt_cv_sys_global_symbol_to_c_name_address \
14257
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14258
old_postinstall_cmds old_postuninstall_cmds \
14262
lt_prog_compiler_wl_CXX \
14263
lt_prog_compiler_pic_CXX \
14264
lt_prog_compiler_static_CXX \
14265
lt_prog_compiler_no_builtin_flag_CXX \
14266
export_dynamic_flag_spec_CXX \
14267
thread_safe_flag_spec_CXX \
14268
whole_archive_flag_spec_CXX \
14269
enable_shared_with_static_runtimes_CXX \
14270
old_archive_cmds_CXX \
14271
old_archive_from_new_cmds_CXX \
14272
predep_objects_CXX \
14273
postdep_objects_CXX \
14276
compiler_lib_search_path_CXX \
14278
archive_expsym_cmds_CXX \
14279
postinstall_cmds_CXX \
14280
postuninstall_cmds_CXX \
14281
old_archive_from_expsyms_cmds_CXX \
14282
allow_undefined_flag_CXX \
14283
no_undefined_flag_CXX \
14284
export_symbols_cmds_CXX \
14285
hardcode_libdir_flag_spec_CXX \
14286
hardcode_libdir_flag_spec_ld_CXX \
14287
hardcode_libdir_separator_CXX \
14288
hardcode_automatic_CXX \
14290
module_expsym_cmds_CXX \
14291
lt_cv_prog_compiler_c_o_CXX \
14292
exclude_expsyms_CXX \
14293
include_expsyms_CXX; do
14296
old_archive_cmds_CXX | \
14297
old_archive_from_new_cmds_CXX | \
14298
archive_cmds_CXX | \
14299
archive_expsym_cmds_CXX | \
14300
module_cmds_CXX | \
14301
module_expsym_cmds_CXX | \
14302
old_archive_from_expsyms_cmds_CXX | \
14303
export_symbols_cmds_CXX | \
14304
extract_expsyms_cmds | reload_cmds | finish_cmds | \
14305
postinstall_cmds | postuninstall_cmds | \
14306
old_postinstall_cmds | old_postuninstall_cmds | \
14307
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14308
# Double-quote double-evaled strings.
14309
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14312
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14318
*'\$0 --fallback-echo"')
14319
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14325
cat <<__EOF__ >> "$cfgfile"
14326
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14328
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14330
# Shell to use when invoking shell scripts.
14333
# Whether or not to build shared libraries.
14334
build_libtool_libs=$enable_shared
14336
# Whether or not to build static libraries.
14337
build_old_libs=$enable_static
14339
# Whether or not to add -lc for building shared libraries.
14340
build_libtool_need_lc=$archive_cmds_need_lc_CXX
14342
# Whether or not to disallow shared libs when runtime libs are static
14343
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14345
# Whether or not to optimize for fast installation.
14346
fast_install=$enable_fast_install
14349
host_alias=$host_alias
14353
# The build system.
14354
build_alias=$build_alias
14358
# An echo program that does not interpret backslashes.
14363
AR_FLAGS=$lt_AR_FLAGS
14368
# LTCC compiler flags.
14369
LTCFLAGS=$lt_LTCFLAGS
14371
# A language-specific compiler.
14372
CC=$lt_compiler_CXX
14374
# Is the compiler the GNU C compiler?
14380
# The linker used to build libraries.
14383
# Whether we need hard or soft links.
14386
# A BSD-compatible nm program.
14389
# A symbol stripping program
14392
# Used to examine libraries when file_magic_cmd begins "file"
14393
MAGIC_CMD=$MAGIC_CMD
14395
# Used on cygwin: DLL creation program.
14398
# Used on cygwin: object dumper.
14401
# Used on cygwin: assembler.
14404
# The name of the directory that contains temporary libtool files.
14407
# How to create reloadable object files.
14408
reload_flag=$lt_reload_flag
14409
reload_cmds=$lt_reload_cmds
14411
# How to pass a linker flag through the compiler.
14412
wl=$lt_lt_prog_compiler_wl_CXX
14414
# Object file suffix (normally "o").
14415
objext="$ac_objext"
14417
# Old archive suffix (normally "a").
14420
# Shared library suffix (normally ".so").
14421
shrext_cmds='$shrext_cmds'
14423
# Executable file suffix (normally "").
14426
# Additional compiler flags for building library objects.
14427
pic_flag=$lt_lt_prog_compiler_pic_CXX
14430
# What is the maximum length of a command?
14431
max_cmd_len=$lt_cv_sys_max_cmd_len
14433
# Does compiler simultaneously support -c and -o options?
14434
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14436
# Must we lock files when doing compilation?
14437
need_locks=$lt_need_locks
14439
# Do we need the lib prefix for modules?
14440
need_lib_prefix=$need_lib_prefix
14442
# Do we need a version for libraries?
14443
need_version=$need_version
14445
# Whether dlopen is supported.
14446
dlopen_support=$enable_dlopen
14448
# Whether dlopen of programs is supported.
14449
dlopen_self=$enable_dlopen_self
14451
# Whether dlopen of statically linked programs is supported.
14452
dlopen_self_static=$enable_dlopen_self_static
14454
# Compiler flag to prevent dynamic linking.
14455
link_static_flag=$lt_lt_prog_compiler_static_CXX
14457
# Compiler flag to turn off builtin functions.
14458
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14460
# Compiler flag to allow reflexive dlopens.
14461
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14463
# Compiler flag to generate shared objects directly from archives.
14464
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14466
# Compiler flag to generate thread-safe objects.
14467
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14469
# Library versioning type.
14470
version_type=$version_type
14472
# Format of library name prefix.
14473
libname_spec=$lt_libname_spec
14475
# List of archive names. First name is the real one, the rest are links.
14476
# The last name is the one that the linker finds with -lNAME.
14477
library_names_spec=$lt_library_names_spec
14479
# The coded name of the library, if different from the real name.
14480
soname_spec=$lt_soname_spec
14482
# Commands used to build and install an old-style archive.
14484
old_archive_cmds=$lt_old_archive_cmds_CXX
14485
old_postinstall_cmds=$lt_old_postinstall_cmds
14486
old_postuninstall_cmds=$lt_old_postuninstall_cmds
14488
# Create an old-style archive from a shared archive.
14489
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14491
# Create a temporary old-style archive to link instead of a shared archive.
14492
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14494
# Commands used to build and install a shared archive.
14495
archive_cmds=$lt_archive_cmds_CXX
14496
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14497
postinstall_cmds=$lt_postinstall_cmds
14498
postuninstall_cmds=$lt_postuninstall_cmds
14500
# Commands used to build a loadable module (assumed same as above if empty)
14501
module_cmds=$lt_module_cmds_CXX
14502
module_expsym_cmds=$lt_module_expsym_cmds_CXX
14504
# Commands to strip libraries.
14505
old_striplib=$lt_old_striplib
14506
striplib=$lt_striplib
14508
# Dependencies to place before the objects being linked to create a
14510
predep_objects=$lt_predep_objects_CXX
14512
# Dependencies to place after the objects being linked to create a
14514
postdep_objects=$lt_postdep_objects_CXX
14516
# Dependencies to place before the objects being linked to create a
14518
predeps=$lt_predeps_CXX
14520
# Dependencies to place after the objects being linked to create a
14522
postdeps=$lt_postdeps_CXX
14524
# The library search path used internally by the compiler when linking
14525
# a shared library.
14526
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14528
# Method to check whether dependent libraries are shared objects.
14529
deplibs_check_method=$lt_deplibs_check_method
14531
# Command to use when deplibs_check_method == file_magic.
14532
file_magic_cmd=$lt_file_magic_cmd
14534
# Flag that allows shared libraries with undefined symbols to be built.
14535
allow_undefined_flag=$lt_allow_undefined_flag_CXX
14537
# Flag that forces no undefined symbols.
14538
no_undefined_flag=$lt_no_undefined_flag_CXX
14540
# Commands used to finish a libtool library installation in a directory.
14541
finish_cmds=$lt_finish_cmds
14543
# Same as above, but a single script fragment to be evaled but not shown.
14544
finish_eval=$lt_finish_eval
14546
# Take the output of nm and produce a listing of raw symbols and C names.
14547
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14549
# Transform the output of nm in a proper C declaration
14550
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14552
# Transform the output of nm in a C name address pair
14553
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14555
# This is the shared library runtime path variable.
14556
runpath_var=$runpath_var
14558
# This is the shared library path variable.
14559
shlibpath_var=$shlibpath_var
14561
# Is shlibpath searched before the hard-coded library search path?
14562
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14564
# How to hardcode a shared library path into an executable.
14565
hardcode_action=$hardcode_action_CXX
14567
# Whether we should hardcode library paths into libraries.
14568
hardcode_into_libs=$hardcode_into_libs
14570
# Flag to hardcode \$libdir into a binary during linking.
14571
# This must work even if \$libdir does not exist.
14572
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14574
# If ld is used when linking, flag to hardcode \$libdir into
14575
# a binary during linking. This must work even if \$libdir does
14577
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14579
# Whether we need a single -rpath flag with a separated argument.
14580
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14582
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14583
# resulting binary.
14584
hardcode_direct=$hardcode_direct_CXX
14586
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14587
# resulting binary.
14588
hardcode_minus_L=$hardcode_minus_L_CXX
14590
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14591
# the resulting binary.
14592
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14594
# Set to yes if building a shared library automatically hardcodes DIR into the library
14595
# and all subsequent libraries and executables linked against it.
14596
hardcode_automatic=$hardcode_automatic_CXX
14598
# Variables whose values should be saved in libtool wrapper scripts and
14599
# restored at relink time.
14600
variables_saved_for_relink="$variables_saved_for_relink"
14602
# Whether libtool must link a program against all its dependency libraries.
14603
link_all_deplibs=$link_all_deplibs_CXX
14605
# Compile-time system search path for libraries
14606
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14608
# Run-time system search path for libraries
14609
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14611
# Fix the shell variable \$srcfile for the compiler.
14612
fix_srcfile_path="$fix_srcfile_path_CXX"
14614
# Set to yes if exported symbols are required.
14615
always_export_symbols=$always_export_symbols_CXX
14617
# The commands to list exported symbols.
14618
export_symbols_cmds=$lt_export_symbols_cmds_CXX
14620
# The commands to extract the exported symbol list from a shared archive.
14621
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14623
# Symbols that should not be listed in the preloaded symbols.
14624
exclude_expsyms=$lt_exclude_expsyms_CXX
14626
# Symbols that must always be exported.
14627
include_expsyms=$lt_include_expsyms_CXX
14629
# ### END LIBTOOL TAG CONFIG: $tagname
14635
# If there is no Makefile yet, we rely on a make rule to execute
14636
# `config.status --recheck' to rerun these tests and create the
14637
# libtool script then.
14638
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14639
if test -f "$ltmain_in"; then
14640
test -f Makefile && make "$ltmain"
14646
ac_cpp='$CPP $CPPFLAGS'
14647
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14648
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14649
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14655
with_gnu_ldcxx=$with_gnu_ld
14656
with_gnu_ld=$lt_save_with_gnu_ld
14657
lt_cv_path_LDCXX=$lt_cv_path_LD
14658
lt_cv_path_LD=$lt_save_path_LD
14659
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14660
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14668
if test -n "$F77" && test "X$F77" != "Xno"; then
14671
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14672
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14673
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14676
archive_cmds_need_lc_F77=no
14677
allow_undefined_flag_F77=
14678
always_export_symbols_F77=no
14679
archive_expsym_cmds_F77=
14680
export_dynamic_flag_spec_F77=
14681
hardcode_direct_F77=no
14682
hardcode_libdir_flag_spec_F77=
14683
hardcode_libdir_flag_spec_ld_F77=
14684
hardcode_libdir_separator_F77=
14685
hardcode_minus_L_F77=no
14686
hardcode_automatic_F77=no
14688
module_expsym_cmds_F77=
14689
link_all_deplibs_F77=unknown
14690
old_archive_cmds_F77=$old_archive_cmds
14691
no_undefined_flag_F77=
14692
whole_archive_flag_spec_F77=
14693
enable_shared_with_static_runtimes_F77=no
14695
# Source file extension for f77 test sources.
14698
# Object file extension for compiled f77 test sources.
14702
# Code to be used in simple compile tests
14703
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14705
# Code to be used in simple link tests
14706
lt_simple_link_test_code=" program t\n end\n"
14708
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14710
# If no C compiler was specified, use CC.
14713
# If no C compiler flags were specified, use CFLAGS.
14714
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14716
# Allow CC to be a program name with arguments.
14720
# save warnings/boilerplate of simple test code
14721
ac_outfile=conftest.$ac_objext
14722
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14723
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14724
_lt_compiler_boilerplate=`cat conftest.err`
14727
ac_outfile=conftest.$ac_objext
14728
printf "$lt_simple_link_test_code" >conftest.$ac_ext
14729
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14730
_lt_linker_boilerplate=`cat conftest.err`
14734
# Allow CC to be a program name with arguments.
14739
for cc_temp in $compiler""; do
14741
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14742
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14747
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14750
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14751
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14752
echo "$as_me:$LINENO: result: $can_build_shared" >&5
14753
echo "${ECHO_T}$can_build_shared" >&6
14755
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14756
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14757
test "$can_build_shared" = "no" && enable_shared=no
14759
# On AIX, shared libraries and static libraries use the same namespace, and
14760
# are all built from PIC.
14763
test "$enable_shared" = yes && enable_static=no
14764
if test -n "$RANLIB"; then
14765
archive_cmds="$archive_cmds~\$RANLIB \$lib"
14766
postinstall_cmds='$RANLIB $lib'
14770
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14771
test "$enable_shared" = yes && enable_static=no
14775
echo "$as_me:$LINENO: result: $enable_shared" >&5
14776
echo "${ECHO_T}$enable_shared" >&6
14778
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14779
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14780
# Make sure either enable_shared or enable_static is yes.
14781
test "$enable_shared" = yes || enable_static=yes
14782
echo "$as_me:$LINENO: result: $enable_static" >&5
14783
echo "${ECHO_T}$enable_static" >&6
14788
lt_prog_compiler_wl_F77=
14789
lt_prog_compiler_pic_F77=
14790
lt_prog_compiler_static_F77=
14792
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14793
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14795
if test "$GCC" = yes; then
14796
lt_prog_compiler_wl_F77='-Wl,'
14797
lt_prog_compiler_static_F77='-static'
14801
# All AIX code is PIC.
14802
if test "$host_cpu" = ia64; then
14803
# AIX 5 now supports IA64 processor
14804
lt_prog_compiler_static_F77='-Bstatic'
14809
# FIXME: we need at least 68020 code to build shared libraries, but
14810
# adding the `-m68020' flag to GCC prevents building anything better,
14812
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14815
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14816
# PIC is the default for these OSes.
14819
mingw* | pw32* | os2*)
14820
# This hack is so that the source file can tell whether it is being
14821
# built for inclusion in a dll (and should export symbols for example).
14822
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14825
darwin* | rhapsody*)
14826
# PIC is the default on this platform
14827
# Common symbols not allowed in MH_DYLIB files
14828
lt_prog_compiler_pic_F77='-fno-common'
14832
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
14833
# Instead, we relocate shared libraries at runtime.
14837
# Just because we use GCC doesn't mean we suddenly get shared libraries
14838
# on systems that don't support them.
14839
lt_prog_compiler_can_build_shared_F77=no
14844
if test -d /usr/nec; then
14845
lt_prog_compiler_pic_F77=-Kconform_pic
14850
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14851
# not for PA HP-UX.
14857
lt_prog_compiler_pic_F77='-fPIC'
14863
lt_prog_compiler_pic_F77='-fPIC'
14867
# PORTME Check for flag to pass linker flags through the system compiler.
14870
lt_prog_compiler_wl_F77='-Wl,'
14871
if test "$host_cpu" = ia64; then
14872
# AIX 5 now supports IA64 processor
14873
lt_prog_compiler_static_F77='-Bstatic'
14875
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14879
# PIC is the default on this platform
14880
# Common symbols not allowed in MH_DYLIB files
14881
case $cc_basename in
14883
lt_prog_compiler_pic_F77='-qnocommon'
14884
lt_prog_compiler_wl_F77='-Wl,'
14889
mingw* | pw32* | os2*)
14890
# This hack is so that the source file can tell whether it is being
14891
# built for inclusion in a dll (and should export symbols for example).
14892
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14895
hpux9* | hpux10* | hpux11*)
14896
lt_prog_compiler_wl_F77='-Wl,'
14897
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14898
# not for PA HP-UX.
14904
lt_prog_compiler_pic_F77='+Z'
14907
# Is there a better lt_prog_compiler_static that works with the bundled CC?
14908
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14911
irix5* | irix6* | nonstopux*)
14912
lt_prog_compiler_wl_F77='-Wl,'
14913
# PIC (with -KPIC) is the default.
14914
lt_prog_compiler_static_F77='-non_shared'
14918
lt_prog_compiler_pic_F77='-KPIC'
14919
lt_prog_compiler_static_F77='-Bstatic'
14923
case $cc_basename in
14925
lt_prog_compiler_wl_F77='-Wl,'
14926
lt_prog_compiler_pic_F77='-KPIC'
14927
lt_prog_compiler_static_F77='-static'
14929
pgcc* | pgf77* | pgf90* | pgf95*)
14930
# Portland Group compilers (*not* the Pentium gcc compiler,
14931
# which looks to be a dead project)
14932
lt_prog_compiler_wl_F77='-Wl,'
14933
lt_prog_compiler_pic_F77='-fpic'
14934
lt_prog_compiler_static_F77='-Bstatic'
14937
lt_prog_compiler_wl_F77='-Wl,'
14938
# All Alpha code is PIC.
14939
lt_prog_compiler_static_F77='-non_shared'
14944
osf3* | osf4* | osf5*)
14945
lt_prog_compiler_wl_F77='-Wl,'
14946
# All OSF/1 code is PIC.
14947
lt_prog_compiler_static_F77='-non_shared'
14951
lt_prog_compiler_pic_F77='-KPIC'
14952
lt_prog_compiler_static_F77='-Bstatic'
14953
case $cc_basename in
14954
f77* | f90* | f95*)
14955
lt_prog_compiler_wl_F77='-Qoption ld ';;
14957
lt_prog_compiler_wl_F77='-Wl,';;
14962
lt_prog_compiler_wl_F77='-Qoption ld '
14963
lt_prog_compiler_pic_F77='-PIC'
14964
lt_prog_compiler_static_F77='-Bstatic'
14967
sysv4 | sysv4.2uw2* | sysv4.3*)
14968
lt_prog_compiler_wl_F77='-Wl,'
14969
lt_prog_compiler_pic_F77='-KPIC'
14970
lt_prog_compiler_static_F77='-Bstatic'
14974
if test -d /usr/nec ;then
14975
lt_prog_compiler_pic_F77='-Kconform_pic'
14976
lt_prog_compiler_static_F77='-Bstatic'
14980
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14981
lt_prog_compiler_wl_F77='-Wl,'
14982
lt_prog_compiler_pic_F77='-KPIC'
14983
lt_prog_compiler_static_F77='-Bstatic'
14987
lt_prog_compiler_wl_F77='-Wl,'
14988
lt_prog_compiler_can_build_shared_F77=no
14992
lt_prog_compiler_pic_F77='-pic'
14993
lt_prog_compiler_static_F77='-Bstatic'
14997
lt_prog_compiler_can_build_shared_F77=no
15002
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15003
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
15006
# Check to make sure the PIC flag actually works.
15008
if test -n "$lt_prog_compiler_pic_F77"; then
15010
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15011
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
15012
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15013
echo $ECHO_N "(cached) $ECHO_C" >&6
15015
lt_prog_compiler_pic_works_F77=no
15016
ac_outfile=conftest.$ac_objext
15017
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15018
lt_compiler_flag="$lt_prog_compiler_pic_F77"
15019
# Insert the option either (1) after the last *FLAGS variable, or
15020
# (2) before a word containing "conftest.", or (3) at the end.
15021
# Note that $ac_compile itself does not contain backslashes and begins
15022
# with a dollar sign (not a hyphen), so the echo should work correctly.
15023
# The option is referenced via a variable to avoid confusing sed.
15024
lt_compile=`echo "$ac_compile" | $SED \
15025
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15026
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15027
-e 's:$: $lt_compiler_flag:'`
15028
(eval echo "\"\$as_me:15028: $lt_compile\"" >&5)
15029
(eval "$lt_compile" 2>conftest.err)
15031
cat conftest.err >&5
15032
echo "$as_me:15032: \$? = $ac_status" >&5
15033
if (exit $ac_status) && test -s "$ac_outfile"; then
15034
# The compiler can only warn and ignore the option if not recognized
15035
# So say no if there are warnings other than the usual output.
15036
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15037
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15038
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15039
lt_prog_compiler_pic_works_F77=yes
15045
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15046
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
15048
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15049
case $lt_prog_compiler_pic_F77 in
15051
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15054
lt_prog_compiler_pic_F77=
15055
lt_prog_compiler_can_build_shared_F77=no
15060
# For platforms which do not support PIC, -DPIC is meaningless:
15062
lt_prog_compiler_pic_F77=
15065
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15070
# Check to make sure the static flag actually works.
15072
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15073
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15074
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15075
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15076
echo $ECHO_N "(cached) $ECHO_C" >&6
15078
lt_prog_compiler_static_works_F77=no
15079
save_LDFLAGS="$LDFLAGS"
15080
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15081
printf "$lt_simple_link_test_code" > conftest.$ac_ext
15082
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15083
# The linker can only warn and ignore the option if not recognized
15084
# So say no if there are warnings
15085
if test -s conftest.err; then
15086
# Append any errors to the config.log.
15087
cat conftest.err 1>&5
15088
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15089
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15090
if diff conftest.exp conftest.er2 >/dev/null; then
15091
lt_prog_compiler_static_works_F77=yes
15094
lt_prog_compiler_static_works_F77=yes
15098
LDFLAGS="$save_LDFLAGS"
15101
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15102
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
15104
if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15107
lt_prog_compiler_static_F77=
15111
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15112
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15113
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15114
echo $ECHO_N "(cached) $ECHO_C" >&6
15116
lt_cv_prog_compiler_c_o_F77=no
15117
$rm -r conftest 2>/dev/null
15121
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15123
lt_compiler_flag="-o out/conftest2.$ac_objext"
15124
# Insert the option either (1) after the last *FLAGS variable, or
15125
# (2) before a word containing "conftest.", or (3) at the end.
15126
# Note that $ac_compile itself does not contain backslashes and begins
15127
# with a dollar sign (not a hyphen), so the echo should work correctly.
15128
lt_compile=`echo "$ac_compile" | $SED \
15129
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15130
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15131
-e 's:$: $lt_compiler_flag:'`
15132
(eval echo "\"\$as_me:15132: $lt_compile\"" >&5)
15133
(eval "$lt_compile" 2>out/conftest.err)
15135
cat out/conftest.err >&5
15136
echo "$as_me:15136: \$? = $ac_status" >&5
15137
if (exit $ac_status) && test -s out/conftest2.$ac_objext
15139
# The compiler can only warn and ignore the option if not recognized
15140
# So say no if there are warnings
15141
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15142
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15143
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15144
lt_cv_prog_compiler_c_o_F77=yes
15149
# SGI C++ compiler will create directory out/ii_files/ for
15150
# template instantiation
15151
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15152
$rm out/* && rmdir out
15158
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15159
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
15162
hard_links="nottested"
15163
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15164
# do not overwrite the value of need_locks provided by the user
15165
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15166
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15169
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15171
ln conftest.a conftest.b 2>&5 || hard_links=no
15172
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15173
echo "$as_me:$LINENO: result: $hard_links" >&5
15174
echo "${ECHO_T}$hard_links" >&6
15175
if test "$hard_links" = no; then
15176
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15177
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15184
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15185
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15188
allow_undefined_flag_F77=
15189
enable_shared_with_static_runtimes_F77=no
15191
archive_expsym_cmds_F77=
15192
old_archive_From_new_cmds_F77=
15193
old_archive_from_expsyms_cmds_F77=
15194
export_dynamic_flag_spec_F77=
15195
whole_archive_flag_spec_F77=
15196
thread_safe_flag_spec_F77=
15197
hardcode_libdir_flag_spec_F77=
15198
hardcode_libdir_flag_spec_ld_F77=
15199
hardcode_libdir_separator_F77=
15200
hardcode_direct_F77=no
15201
hardcode_minus_L_F77=no
15202
hardcode_shlibpath_var_F77=unsupported
15203
link_all_deplibs_F77=unknown
15204
hardcode_automatic_F77=no
15206
module_expsym_cmds_F77=
15207
always_export_symbols_F77=no
15208
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15209
# include_expsyms should be a list of space-separated symbols to be *always*
15210
# included in the symbol list
15211
include_expsyms_F77=
15212
# exclude_expsyms can be an extended regexp of symbols to exclude
15213
# it will be wrapped by ` (' and `)$', so one must not match beginning or
15214
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15215
# as well as any symbol that contains `d'.
15216
exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15217
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15218
# platforms (ab)use it in PIC code, but their linkers get confused if
15219
# the symbol is explicitly referenced. Since portable code cannot
15220
# rely on this symbol name, it's probably fine to never include it in
15221
# preloaded symbol tables.
15222
extract_expsyms_cmds=
15223
# Just being paranoid about ensuring that cc_basename is set.
15224
for cc_temp in $compiler""; do
15226
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15227
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15232
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15235
cygwin* | mingw* | pw32*)
15236
# FIXME: the MSVC++ port hasn't been tested in a loooong time
15237
# When not using gcc, we currently assume that we are using
15238
# Microsoft Visual C++.
15239
if test "$GCC" != yes; then
15244
# we just hope/assume this is gcc and not c89 (= MSVC++)
15253
if test "$with_gnu_ld" = yes; then
15254
# If archive_cmds runs LD, not CC, wlarc should be empty
15257
# Set some defaults for GNU ld with shared library support. These
15258
# are reset later if shared libraries are not supported. Putting them
15259
# here allows them to be overridden if necessary.
15260
runpath_var=LD_RUN_PATH
15261
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15262
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15263
# ancient GNU ld didn't support --whole-archive et. al.
15264
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15265
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15267
whole_archive_flag_spec_F77=
15269
supports_anon_versioning=no
15270
case `$LD -v 2>/dev/null` in
15271
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15272
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15273
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15274
*\ 2.11.*) ;; # other 2.11 versions
15275
*) supports_anon_versioning=yes ;;
15278
# See if GNU ld supports shared libraries.
15280
aix3* | aix4* | aix5*)
15281
# On AIX/PPC, the GNU linker is very broken
15282
if test "$host_cpu" != ia64; then
15286
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15287
*** to be unable to reliably create shared libraries on AIX.
15288
*** Therefore, libtool is disabling shared libraries support. If you
15289
*** really care for shared libraries, you may want to modify your PATH
15290
*** so that a non-GNU linker is found, and then restart.
15297
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)'
15298
hardcode_libdir_flag_spec_F77='-L$libdir'
15299
hardcode_minus_L_F77=yes
15301
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15302
# that the semantics of dynamic libraries on AmigaOS, at least up
15303
# to version 4, is to share data among multiple programs linked
15304
# with the same dynamic library. Since this doesn't match the
15305
# behavior of shared libraries on other platforms, we can't use
15311
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15312
allow_undefined_flag_F77=unsupported
15313
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15314
# support --undefined. This deserves some investigation. FIXME
15315
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15321
cygwin* | mingw* | pw32*)
15322
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15323
# as there is no search path for DLLs.
15324
hardcode_libdir_flag_spec_F77='-L$libdir'
15325
allow_undefined_flag_F77=unsupported
15326
always_export_symbols_F77=no
15327
enable_shared_with_static_runtimes_F77=yes
15328
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15330
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15331
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15332
# If the export-symbols file already is a .def file (1st line
15333
# is EXPORTS), use it as is; otherwise, prepend...
15334
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15335
cp $export_symbols $output_objdir/$soname.def;
15337
echo EXPORTS > $output_objdir/$soname.def;
15338
cat $export_symbols >> $output_objdir/$soname.def;
15340
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15347
hardcode_direct_F77=no
15348
hardcode_shlibpath_var_F77=no
15349
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15350
export_dynamic_flag_spec_F77='${wl}-E'
15351
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15352
# Instead, shared libraries are loaded at an image base (0x10000000 by
15353
# default) and relocated if they conflict, which is a slow very memory
15354
# consuming and fragmenting process. To avoid this, we pick a random,
15355
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15356
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
15357
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'
15358
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'
15362
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15364
case $cc_basename,$host_cpu in
15365
pgcc*) # Portland Group C compiler
15366
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'
15367
tmp_addflag=' $pic_flag'
15369
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15370
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'
15371
tmp_addflag=' $pic_flag -Mnomain' ;;
15372
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15373
tmp_addflag=' -i_dynamic' ;;
15374
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15375
tmp_addflag=' -i_dynamic -nofor_main' ;;
15376
ifc* | ifort*) # Intel Fortran compiler
15377
tmp_addflag=' -nofor_main' ;;
15379
archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15381
if test $supports_anon_versioning = yes; then
15382
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15383
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15384
$echo "local: *; };" >> $output_objdir/$libname.ver~
15385
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15393
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15394
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15397
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15398
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15403
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15407
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15408
*** create shared libraries on Solaris systems. Therefore, libtool
15409
*** is disabling shared libraries support. We urge you to upgrade GNU
15410
*** binutils to release 2.9.1 or newer. Another option is to modify
15411
*** your PATH or compiler configuration so that the native linker is
15412
*** used, and then restart.
15415
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15416
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15417
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15423
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15424
case `$LD -v 2>&1` in
15425
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15429
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15430
*** reliably create shared libraries on SCO systems. Therefore, libtool
15431
*** is disabling shared libraries support. We urge you to upgrade GNU
15432
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15433
*** your PATH or compiler configuration so that the native linker is
15434
*** used, and then restart.
15439
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15440
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15441
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15442
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15451
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15453
hardcode_direct_F77=yes
15454
hardcode_shlibpath_var_F77=no
15458
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15459
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15460
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15467
if test "$ld_shlibs_F77" = no; then
15469
hardcode_libdir_flag_spec_F77=
15470
export_dynamic_flag_spec_F77=
15471
whole_archive_flag_spec_F77=
15474
# PORTME fill in a description of your system's linker (not GNU ld)
15477
allow_undefined_flag_F77=unsupported
15478
always_export_symbols_F77=yes
15479
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'
15480
# Note: this linker hardcodes the directories in LIBPATH if there
15481
# are no directories specified by -L.
15482
hardcode_minus_L_F77=yes
15483
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15484
# Neither direct hardcoding nor static linking is supported with a
15486
hardcode_direct_F77=unsupported
15491
if test "$host_cpu" = ia64; then
15492
# On IA64, the linker does run time linking by default, so we don't
15493
# have to do anything special.
15494
aix_use_runtimelinking=no
15495
exp_sym_flag='-Bexport'
15498
# If we're using GNU nm, then we don't want the "-C" option.
15499
# -C means demangle to AIX nm, but means don't demangle with GNU nm
15500
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15501
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'
15503
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'
15505
aix_use_runtimelinking=no
15507
# Test if we are trying to use run time linking or normal
15508
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15509
# need to do runtime linking.
15510
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15511
for ld_flag in $LDFLAGS; do
15512
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15513
aix_use_runtimelinking=yes
15520
exp_sym_flag='-bexport'
15521
no_entry_flag='-bnoentry'
15524
# When large executables or shared objects are built, AIX ld can
15525
# have problems creating the table of contents. If linking a library
15526
# or program results in "error TOC overflow" add -mminimal-toc to
15527
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15528
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15530
archive_cmds_F77=''
15531
hardcode_direct_F77=yes
15532
hardcode_libdir_separator_F77=':'
15533
link_all_deplibs_F77=yes
15535
if test "$GCC" = yes; then
15536
case $host_os in aix4.[012]|aix4.[012].*)
15537
# We only want to do this on AIX 4.2 and lower, the check
15538
# below for broken collect2 doesn't work under 4.3+
15539
collect2name=`${CC} -print-prog-name=collect2`
15540
if test -f "$collect2name" && \
15541
strings "$collect2name" | grep resolve_lib_name >/dev/null
15543
# We have reworked collect2
15544
hardcode_direct_F77=yes
15546
# We have old collect2
15547
hardcode_direct_F77=unsupported
15548
# It fails to find uninstalled libraries when the uninstalled
15549
# path is not listed in the libpath. Setting hardcode_minus_L
15550
# to unsupported forces relinking
15551
hardcode_minus_L_F77=yes
15552
hardcode_libdir_flag_spec_F77='-L$libdir'
15553
hardcode_libdir_separator_F77=
15557
shared_flag='-shared'
15558
if test "$aix_use_runtimelinking" = yes; then
15559
shared_flag="$shared_flag "'${wl}-G'
15563
if test "$host_cpu" = ia64; then
15564
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15565
# chokes on -Wl,-G. The following line is correct:
15568
if test "$aix_use_runtimelinking" = yes; then
15569
shared_flag='${wl}-G'
15571
shared_flag='${wl}-bM:SRE'
15576
# It seems that -bexpall does not export symbols beginning with
15577
# underscore (_), so it is better to generate a list of symbols to export.
15578
always_export_symbols_F77=yes
15579
if test "$aix_use_runtimelinking" = yes; then
15580
# Warning - without using the other runtime loading flags (-brtl),
15581
# -berok will link without error, but may produce a broken library.
15582
allow_undefined_flag_F77='-berok'
15583
# Determine the default libpath from the value encoded in an empty executable.
15584
cat >conftest.$ac_ext <<_ACEOF
15589
rm -f conftest.$ac_objext conftest$ac_exeext
15590
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15591
(eval $ac_link) 2>conftest.er1
15593
grep -v '^ *+' conftest.er1 >conftest.err
15595
cat conftest.err >&5
15596
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597
(exit $ac_status); } &&
15598
{ ac_try='test -z "$ac_f77_werror_flag"
15599
|| test ! -s conftest.err'
15600
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15601
(eval $ac_try) 2>&5
15603
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15604
(exit $ac_status); }; } &&
15605
{ ac_try='test -s conftest$ac_exeext'
15606
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15607
(eval $ac_try) 2>&5
15609
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15610
(exit $ac_status); }; }; then
15612
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15614
# Check for a 64-bit object if we didn't find anything.
15615
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15618
echo "$as_me: failed program was:" >&5
15619
sed 's/^/| /' conftest.$ac_ext >&5
15622
rm -f conftest.err conftest.$ac_objext \
15623
conftest$ac_exeext conftest.$ac_ext
15624
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15626
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15627
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"
15629
if test "$host_cpu" = ia64; then
15630
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15631
allow_undefined_flag_F77="-z nodefs"
15632
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"
15634
# Determine the default libpath from the value encoded in an empty executable.
15635
cat >conftest.$ac_ext <<_ACEOF
15640
rm -f conftest.$ac_objext conftest$ac_exeext
15641
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15642
(eval $ac_link) 2>conftest.er1
15644
grep -v '^ *+' conftest.er1 >conftest.err
15646
cat conftest.err >&5
15647
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15648
(exit $ac_status); } &&
15649
{ ac_try='test -z "$ac_f77_werror_flag"
15650
|| test ! -s conftest.err'
15651
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15652
(eval $ac_try) 2>&5
15654
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15655
(exit $ac_status); }; } &&
15656
{ ac_try='test -s conftest$ac_exeext'
15657
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15658
(eval $ac_try) 2>&5
15660
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15661
(exit $ac_status); }; }; then
15663
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15665
# Check for a 64-bit object if we didn't find anything.
15666
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15669
echo "$as_me: failed program was:" >&5
15670
sed 's/^/| /' conftest.$ac_ext >&5
15673
rm -f conftest.err conftest.$ac_objext \
15674
conftest$ac_exeext conftest.$ac_ext
15675
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15677
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15678
# Warning - without using the other run time loading flags,
15679
# -berok will link without error, but may produce a broken library.
15680
no_undefined_flag_F77=' ${wl}-bernotok'
15681
allow_undefined_flag_F77=' ${wl}-berok'
15682
# Exported symbols can be pulled into shared objects from archives
15683
whole_archive_flag_spec_F77='$convenience'
15684
archive_cmds_need_lc_F77=yes
15685
# This is similar to how AIX traditionally builds its shared libraries.
15686
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'
15692
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)'
15693
hardcode_libdir_flag_spec_F77='-L$libdir'
15694
hardcode_minus_L_F77=yes
15695
# see comment about different semantics on the GNU ld section
15700
export_dynamic_flag_spec_F77=-rdynamic
15703
cygwin* | mingw* | pw32*)
15704
# When not using gcc, we currently assume that we are using
15705
# Microsoft Visual C++.
15706
# hardcode_libdir_flag_spec is actually meaningless, as there is
15707
# no search path for DLLs.
15708
hardcode_libdir_flag_spec_F77=' '
15709
allow_undefined_flag_F77=unsupported
15710
# Tell ltmain to make .lib files, not .a files.
15712
# Tell ltmain to make .dll files, not .so files.
15714
# FIXME: Setting linknames here is a bad hack.
15715
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15716
# The linker will automatically build a .lib file if we build a DLL.
15717
old_archive_From_new_cmds_F77='true'
15718
# FIXME: Should let the user specify the lib program.
15719
old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15720
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15721
enable_shared_with_static_runtimes_F77=yes
15724
darwin* | rhapsody*)
15726
rhapsody* | darwin1.[012])
15727
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15730
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15731
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15733
case ${MACOSX_DEPLOYMENT_TARGET} in
15735
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15738
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15744
archive_cmds_need_lc_F77=no
15745
hardcode_direct_F77=no
15746
hardcode_automatic_F77=yes
15747
hardcode_shlibpath_var_F77=unsupported
15748
whole_archive_flag_spec_F77=''
15749
link_all_deplibs_F77=yes
15750
if test "$GCC" = yes ; then
15751
output_verbose_link_cmd='echo'
15752
archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15753
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15754
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15755
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15756
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}'
15758
case $cc_basename in
15760
output_verbose_link_cmd='echo'
15761
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15762
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15763
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15764
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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15765
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}'
15775
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15776
hardcode_libdir_flag_spec_F77='-L$libdir'
15777
hardcode_shlibpath_var_F77=no
15784
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15785
# support. Future versions do this automatically, but an explicit c++rt0.o
15786
# does not break anything, and helps significantly (at the cost of a little
15789
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15790
hardcode_libdir_flag_spec_F77='-R$libdir'
15791
hardcode_direct_F77=yes
15792
hardcode_shlibpath_var_F77=no
15795
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
15797
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15798
hardcode_direct_F77=yes
15799
hardcode_minus_L_F77=yes
15800
hardcode_shlibpath_var_F77=no
15803
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15804
freebsd* | kfreebsd*-gnu | dragonfly*)
15805
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15806
hardcode_libdir_flag_spec_F77='-R$libdir'
15807
hardcode_direct_F77=yes
15808
hardcode_shlibpath_var_F77=no
15812
if test "$GCC" = yes; then
15813
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'
15815
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'
15817
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15818
hardcode_libdir_separator_F77=:
15819
hardcode_direct_F77=yes
15821
# hardcode_minus_L: Not really in the search PATH,
15822
# but as the default location of the library.
15823
hardcode_minus_L_F77=yes
15824
export_dynamic_flag_spec_F77='${wl}-E'
15828
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15829
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15831
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15833
if test "$with_gnu_ld" = no; then
15834
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15835
hardcode_libdir_separator_F77=:
15837
hardcode_direct_F77=yes
15838
export_dynamic_flag_spec_F77='${wl}-E'
15840
# hardcode_minus_L: Not really in the search PATH,
15841
# but as the default location of the library.
15842
hardcode_minus_L_F77=yes
15847
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15850
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15853
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15856
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15862
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15865
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15868
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15872
if test "$with_gnu_ld" = no; then
15873
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15874
hardcode_libdir_separator_F77=:
15878
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15879
hardcode_direct_F77=no
15880
hardcode_shlibpath_var_F77=no
15883
hardcode_direct_F77=yes
15884
export_dynamic_flag_spec_F77='${wl}-E'
15886
# hardcode_minus_L: Not really in the search PATH,
15887
# but as the default location of the library.
15888
hardcode_minus_L_F77=yes
15894
irix5* | irix6* | nonstopux*)
15895
if test "$GCC" = yes; then
15896
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'
15898
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'
15899
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15901
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15902
hardcode_libdir_separator_F77=:
15903
link_all_deplibs_F77=yes
15907
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15908
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15910
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15912
hardcode_libdir_flag_spec_F77='-R$libdir'
15913
hardcode_direct_F77=yes
15914
hardcode_shlibpath_var_F77=no
15918
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15919
hardcode_direct_F77=yes
15920
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15921
hardcode_libdir_separator_F77=:
15922
hardcode_shlibpath_var_F77=no
15926
hardcode_direct_F77=yes
15927
hardcode_shlibpath_var_F77=no
15928
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15929
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15930
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15931
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15932
export_dynamic_flag_spec_F77='${wl}-E'
15935
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15936
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15937
hardcode_libdir_flag_spec_F77='-R$libdir'
15940
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15941
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15948
hardcode_libdir_flag_spec_F77='-L$libdir'
15949
hardcode_minus_L_F77=yes
15950
allow_undefined_flag_F77=unsupported
15951
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'
15952
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15956
if test "$GCC" = yes; then
15957
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15958
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'
15960
allow_undefined_flag_F77=' -expect_unresolved \*'
15961
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'
15963
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15964
hardcode_libdir_separator_F77=:
15967
osf4* | osf5*) # as osf3* with the addition of -msym flag
15968
if test "$GCC" = yes; then
15969
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15970
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'
15971
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15973
allow_undefined_flag_F77=' -expect_unresolved \*'
15974
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'
15975
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~
15976
$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'
15978
# Both c and cxx compiler support -rpath directly
15979
hardcode_libdir_flag_spec_F77='-rpath $libdir'
15981
hardcode_libdir_separator_F77=:
15985
no_undefined_flag_F77=' -z text'
15986
if test "$GCC" = yes; then
15988
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15989
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15990
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15993
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15994
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15995
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15997
hardcode_libdir_flag_spec_F77='-R$libdir'
15998
hardcode_shlibpath_var_F77=no
16000
solaris2.[0-5] | solaris2.[0-5].*) ;;
16002
# The compiler driver will combine linker options so we
16003
# cannot just pass the convience library names through
16004
# without $wl, iff we do not link with $LD.
16005
# Luckily, gcc supports the same syntax we need for Sun Studio.
16006
# Supported since Solaris 2.6 (maybe 2.5.1?)
16009
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16011
whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16014
link_all_deplibs_F77=yes
16018
if test "x$host_vendor" = xsequent; then
16019
# Use $CC to link under sequent, because it throws in some extra .o
16020
# files that make .init and .fini sections work.
16021
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16023
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16025
hardcode_libdir_flag_spec_F77='-L$libdir'
16026
hardcode_direct_F77=yes
16027
hardcode_minus_L_F77=yes
16028
hardcode_shlibpath_var_F77=no
16032
case $host_vendor in
16034
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16035
hardcode_direct_F77=yes # is this really true???
16038
## LD is ld it makes a PLAMLIB
16039
## CC just makes a GrossModule.
16040
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16041
reload_cmds_F77='$CC -r -o $output$reload_objs'
16042
hardcode_direct_F77=no
16045
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16046
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16049
runpath_var='LD_RUN_PATH'
16050
hardcode_shlibpath_var_F77=no
16054
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16055
hardcode_shlibpath_var_F77=no
16056
export_dynamic_flag_spec_F77='-Bexport'
16060
if test -d /usr/nec; then
16061
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16062
hardcode_shlibpath_var_F77=no
16063
runpath_var=LD_RUN_PATH
16064
hardcode_runpath_var=yes
16069
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16070
no_undefined_flag_F77='${wl}-z,text'
16071
archive_cmds_need_lc_F77=no
16072
hardcode_shlibpath_var_F77=no
16073
runpath_var='LD_RUN_PATH'
16075
if test "$GCC" = yes; then
16076
archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16077
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16079
archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16080
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16084
sysv5* | sco3.2v5* | sco5v6*)
16085
# Note: We can NOT use -z defs as we might desire, because we do not
16086
# link with -lc, and that would cause any symbols used from libc to
16087
# always be unresolved, which means just about no library would
16088
# ever link correctly. If we're not using GNU ld we use -z text
16089
# though, which does catch some bad symbols but isn't as heavy-handed
16091
no_undefined_flag_F77='${wl}-z,text'
16092
allow_undefined_flag_F77='${wl}-z,nodefs'
16093
archive_cmds_need_lc_F77=no
16094
hardcode_shlibpath_var_F77=no
16095
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16096
hardcode_libdir_separator_F77=':'
16097
link_all_deplibs_F77=yes
16098
export_dynamic_flag_spec_F77='${wl}-Bexport'
16099
runpath_var='LD_RUN_PATH'
16101
if test "$GCC" = yes; then
16102
archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16103
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16105
archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16106
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16111
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16112
hardcode_libdir_flag_spec_F77='-L$libdir'
16113
hardcode_shlibpath_var_F77=no
16122
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16123
echo "${ECHO_T}$ld_shlibs_F77" >&6
16124
test "$ld_shlibs_F77" = no && can_build_shared=no
16127
# Do we need to explicitly link libc?
16129
case "x$archive_cmds_need_lc_F77" in
16131
# Assume -lc should be added
16132
archive_cmds_need_lc_F77=yes
16134
if test "$enable_shared" = yes && test "$GCC" = yes; then
16135
case $archive_cmds_F77 in
16137
# FIXME: we may have to deal with multi-command sequences.
16140
# Test whether the compiler implicitly links with -lc since on some
16141
# systems, -lgcc has to come before -lc. If gcc already passes -lc
16142
# to ld, don't add -lc before -lgcc.
16143
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16144
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16146
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16148
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16149
(eval $ac_compile) 2>&5
16151
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16152
(exit $ac_status); } 2>conftest.err; then
16155
libobjs=conftest.$ac_objext
16157
wl=$lt_prog_compiler_wl_F77
16158
pic_flag=$lt_prog_compiler_pic_F77
16164
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16165
allow_undefined_flag_F77=
16166
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16167
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16169
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16170
(exit $ac_status); }
16172
archive_cmds_need_lc_F77=no
16174
archive_cmds_need_lc_F77=yes
16176
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16178
cat conftest.err 1>&5
16181
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16182
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
16189
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16190
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16191
library_names_spec=
16192
libname_spec='lib$name'
16196
postuninstall_cmds=
16200
shlibpath_overrides_runpath=unknown
16202
dynamic_linker="$host_os ld.so"
16203
sys_lib_dlsearch_path_spec="/lib /usr/lib"
16204
if test "$GCC" = yes; then
16205
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16206
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16207
# if the path contains ";" then we assume it to be the separator
16208
# otherwise default to the standard path separator (i.e. ":") - it is
16209
# assumed that no part of a normal pathname contains ";" but that should
16210
# okay in the real world where ";" in dirpaths is itself problematic.
16211
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16213
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16216
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16218
need_lib_prefix=unknown
16219
hardcode_into_libs=no
16221
# when you set need_version to no, make sure it does not cause -set_version
16222
# flags to be left without arguments
16223
need_version=unknown
16228
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16229
shlibpath_var=LIBPATH
16231
# AIX 3 has no versioning support, so we append a major version to the name.
16232
soname_spec='${libname}${release}${shared_ext}$major'
16239
hardcode_into_libs=yes
16240
if test "$host_cpu" = ia64; then
16241
# AIX 5 supports IA64
16242
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16243
shlibpath_var=LD_LIBRARY_PATH
16245
# With GCC up to 2.95.x, collect2 would create an import file
16246
# for dependence libraries. The import file would start with
16247
# the line `#! .'. This would cause the generated library to
16248
# depend on `.', always an invalid library. This was fixed in
16249
# development snapshots of GCC prior to 3.0.
16251
aix4 | aix4.[01] | aix4.[01].*)
16252
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16254
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16257
can_build_shared=no
16261
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16262
# soname into executable. Probably we can add versioning support to
16263
# collect2, so additional links can be useful in future.
16264
if test "$aix_use_runtimelinking" = yes; then
16265
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
16266
# instead of lib<name>.a to let people know that these are not
16267
# typical AIX shared libraries.
16268
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16270
# We preserve .a as extension for shared libraries through AIX4.2
16271
# and later when we are not doing run time linking.
16272
library_names_spec='${libname}${release}.a $libname.a'
16273
soname_spec='${libname}${release}${shared_ext}$major'
16275
shlibpath_var=LIBPATH
16280
library_names_spec='$libname.ixlibrary $libname.a'
16281
# Create ${libname}_ixlibrary.a entries in /sys/libs.
16282
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'
16286
library_names_spec='${libname}${shared_ext}'
16287
dynamic_linker="$host_os ld.so"
16288
shlibpath_var=LIBRARY_PATH
16294
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16295
soname_spec='${libname}${release}${shared_ext}$major'
16296
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16297
shlibpath_var=LD_LIBRARY_PATH
16298
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16299
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16300
# the default ld.so.conf also contains /usr/contrib/lib and
16301
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16302
# libtool to hard-code these into programs
16305
cygwin* | mingw* | pw32*)
16306
version_type=windows
16311
case $GCC,$host_os in
16312
yes,cygwin* | yes,mingw* | yes,pw32*)
16313
library_names_spec='$libname.dll.a'
16314
# DLL is installed to $(libdir)/../bin by postinstall_cmds
16315
postinstall_cmds='base_file=`basename \${file}`~
16316
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16317
dldir=$destdir/`dirname \$dlpath`~
16318
test -d \$dldir || mkdir -p \$dldir~
16319
$install_prog $dir/$dlname \$dldir/$dlname~
16320
chmod a+x \$dldir/$dlname'
16321
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16322
dlpath=$dir/\$dldll~
16324
shlibpath_overrides_runpath=yes
16328
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
16329
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16330
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16333
# MinGW DLLs use traditional 'lib' prefix
16334
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16335
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16336
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16337
# It is most probably a Windows format PATH printed by
16338
# mingw gcc, but we are running on Cygwin. Gcc prints its search
16339
# path with ; separators, and with drive letters. We can handle the
16340
# drive letters (cygwin fileutils understands them), so leave them,
16341
# especially as we might pass files found there to a mingw objdump,
16342
# which wouldn't understand a cygwinified path. Ahh.
16343
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16345
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16349
# pw32 DLLs use 'pw' prefix rather than 'lib'
16350
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16356
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16359
dynamic_linker='Win32 ld.exe'
16360
# FIXME: first we should search . and the directory the executable is in
16364
darwin* | rhapsody*)
16365
dynamic_linker="$host_os dyld"
16366
version_type=darwin
16369
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16370
soname_spec='${libname}${release}${major}$shared_ext'
16371
shlibpath_overrides_runpath=yes
16372
shlibpath_var=DYLD_LIBRARY_PATH
16373
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16374
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16375
if test "$GCC" = yes; then
16376
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16378
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16380
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16387
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16388
soname_spec='${libname}${release}${shared_ext}$major'
16389
shlibpath_var=LD_LIBRARY_PATH
16400
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16401
soname_spec='${libname}${release}${shared_ext}$major'
16402
shlibpath_var=LD_LIBRARY_PATH
16403
shlibpath_overrides_runpath=no
16404
hardcode_into_libs=yes
16405
dynamic_linker='GNU ld.so'
16408
freebsd* | dragonfly*)
16409
# DragonFly does not have aout. When/if they implement a new
16410
# versioning mechanism, adjust this.
16411
if test -x /usr/bin/objformat; then
16412
objformat=`/usr/bin/objformat`
16415
freebsd[123]*) objformat=aout ;;
16416
*) objformat=elf ;;
16419
version_type=freebsd-$objformat
16420
case $version_type in
16422
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16427
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16431
shlibpath_var=LD_LIBRARY_PATH
16434
shlibpath_overrides_runpath=yes
16436
freebsd3.[01]* | freebsdelf3.[01]*)
16437
shlibpath_overrides_runpath=yes
16438
hardcode_into_libs=yes
16440
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16441
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16442
shlibpath_overrides_runpath=no
16443
hardcode_into_libs=yes
16445
freebsd*) # from 4.6 on
16446
shlibpath_overrides_runpath=yes
16447
hardcode_into_libs=yes
16456
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16457
soname_spec='${libname}${release}${shared_ext}$major'
16458
shlibpath_var=LD_LIBRARY_PATH
16459
hardcode_into_libs=yes
16462
hpux9* | hpux10* | hpux11*)
16463
# Give a soname corresponding to the major version so that dld.sl refuses to
16464
# link against other versions.
16471
hardcode_into_libs=yes
16472
dynamic_linker="$host_os dld.so"
16473
shlibpath_var=LD_LIBRARY_PATH
16474
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16475
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16476
soname_spec='${libname}${release}${shared_ext}$major'
16477
if test "X$HPUX_IA64_MODE" = X32; then
16478
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16480
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16482
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16486
hardcode_into_libs=yes
16487
dynamic_linker="$host_os dld.sl"
16488
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16489
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16490
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16491
soname_spec='${libname}${release}${shared_ext}$major'
16492
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16493
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16497
dynamic_linker="$host_os dld.sl"
16498
shlibpath_var=SHLIB_PATH
16499
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16500
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16501
soname_spec='${libname}${release}${shared_ext}$major'
16504
# HP-UX runs *really* slowly unless shared libraries are mode 555.
16505
postinstall_cmds='chmod 555 $lib'
16512
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16513
soname_spec='${libname}${release}${shared_ext}$major'
16514
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16515
shlibpath_var=LD_LIBRARY_PATH
16516
shlibpath_overrides_runpath=no
16517
hardcode_into_libs=yes
16520
irix5* | irix6* | nonstopux*)
16522
nonstopux*) version_type=nonstopux ;;
16524
if test "$lt_cv_prog_gnu_ld" = yes; then
16532
soname_spec='${libname}${release}${shared_ext}$major'
16533
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16535
irix5* | nonstopux*)
16536
libsuff= shlibsuff=
16539
case $LD in # libtool.m4 will add one of these switches to LD
16540
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16541
libsuff= shlibsuff= libmagic=32-bit;;
16542
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16543
libsuff=32 shlibsuff=N32 libmagic=N32;;
16544
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16545
libsuff=64 shlibsuff=64 libmagic=64-bit;;
16546
*) libsuff= shlibsuff= libmagic=never-match;;
16550
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16551
shlibpath_overrides_runpath=no
16552
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16553
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16554
hardcode_into_libs=yes
16557
# No shared lib support for Linux oldld, aout, or coff.
16558
linux*oldld* | linux*aout* | linux*coff*)
16562
# This must be Linux ELF.
16567
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16568
soname_spec='${libname}${release}${shared_ext}$major'
16569
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16570
shlibpath_var=LD_LIBRARY_PATH
16571
shlibpath_overrides_runpath=no
16572
# This implies no fast_install, which is unacceptable.
16573
# Some rework will be needed to allow for fast_install
16574
# before this can be enabled.
16575
hardcode_into_libs=yes
16577
# find out which ABI we are using
16579
case "$host_cpu" in
16580
x86_64*|s390x*|powerpc64*)
16581
echo '#line 16581 "configure"' > conftest.$ac_ext
16582
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16583
(eval $ac_compile) 2>&5
16585
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16586
(exit $ac_status); }; then
16587
case `/usr/bin/file conftest.$ac_objext` in
16590
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
16598
# Append ld.so.conf contents to the search path
16599
if test -f /etc/ld.so.conf; then
16600
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16601
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
16604
# We used to test for /lib/ld.so.1 and disable shared libraries on
16605
# powerpc, because MkLinux only supported shared libraries with the
16606
# GNU dynamic linker. Since this was broken with cross compilers,
16607
# most powerpc-linux boxes support dynamic linking these days and
16608
# people can always --disable-shared, the test was removed, and we
16609
# assume the GNU/Linux dynamic linker is in use.
16610
dynamic_linker='GNU/Linux ld.so'
16617
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16618
soname_spec='${libname}${release}${shared_ext}$major'
16619
shlibpath_var=LD_LIBRARY_PATH
16620
shlibpath_overrides_runpath=no
16621
hardcode_into_libs=yes
16622
dynamic_linker='GNU ld.so'
16629
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16630
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16631
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16632
dynamic_linker='NetBSD (a.out) ld.so'
16634
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16635
soname_spec='${libname}${release}${shared_ext}$major'
16636
dynamic_linker='NetBSD ld.elf_so'
16638
shlibpath_var=LD_LIBRARY_PATH
16639
shlibpath_overrides_runpath=yes
16640
hardcode_into_libs=yes
16645
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16646
shlibpath_var=LD_LIBRARY_PATH
16647
shlibpath_overrides_runpath=yes
16654
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16655
soname_spec='${libname}${release}${shared_ext}$major'
16656
shlibpath_var=LD_LIBRARY_PATH
16657
shlibpath_overrides_runpath=yes
16662
sys_lib_dlsearch_path_spec="/usr/lib"
16664
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16666
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16667
*) need_version=no ;;
16669
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16670
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16671
shlibpath_var=LD_LIBRARY_PATH
16672
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16674
openbsd2.[89] | openbsd2.[89].*)
16675
shlibpath_overrides_runpath=no
16678
shlibpath_overrides_runpath=yes
16682
shlibpath_overrides_runpath=yes
16687
libname_spec='$name'
16690
library_names_spec='$libname${shared_ext} $libname.a'
16691
dynamic_linker='OS/2 ld.exe'
16692
shlibpath_var=LIBPATH
16695
osf3* | osf4* | osf5*)
16699
soname_spec='${libname}${release}${shared_ext}$major'
16700
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16701
shlibpath_var=LD_LIBRARY_PATH
16702
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16703
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
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
shlibpath_overrides_runpath=yes
16714
hardcode_into_libs=yes
16715
# ldd complains unless libraries are executable
16716
postinstall_cmds='chmod +x $lib'
16721
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16722
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16723
shlibpath_var=LD_LIBRARY_PATH
16724
shlibpath_overrides_runpath=yes
16725
if test "$with_gnu_ld" = yes; then
16733
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16734
soname_spec='${libname}${release}${shared_ext}$major'
16735
shlibpath_var=LD_LIBRARY_PATH
16736
case $host_vendor in
16738
shlibpath_overrides_runpath=no
16740
export_dynamic_flag_spec='${wl}-Blargedynsym'
16741
runpath_var=LD_RUN_PATH
16749
shlibpath_overrides_runpath=no
16750
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16756
if test -d /usr/nec ;then
16758
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16759
soname_spec='$libname${shared_ext}.$major'
16760
shlibpath_var=LD_LIBRARY_PATH
16764
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16765
version_type=freebsd-elf
16768
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16769
soname_spec='${libname}${release}${shared_ext}$major'
16770
shlibpath_var=LD_LIBRARY_PATH
16771
hardcode_into_libs=yes
16772
if test "$with_gnu_ld" = yes; then
16773
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16774
shlibpath_overrides_runpath=no
16776
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16777
shlibpath_overrides_runpath=yes
16780
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16784
sys_lib_dlsearch_path_spec='/usr/lib'
16789
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16790
soname_spec='${libname}${release}${shared_ext}$major'
16791
shlibpath_var=LD_LIBRARY_PATH
16798
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16799
echo "${ECHO_T}$dynamic_linker" >&6
16800
test "$dynamic_linker" = no && can_build_shared=no
16802
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16803
if test "$GCC" = yes; then
16804
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16807
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16808
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16809
hardcode_action_F77=
16810
if test -n "$hardcode_libdir_flag_spec_F77" || \
16811
test -n "$runpath_var_F77" || \
16812
test "X$hardcode_automatic_F77" = "Xyes" ; then
16814
# We can hardcode non-existant directories.
16815
if test "$hardcode_direct_F77" != no &&
16816
# If the only mechanism to avoid hardcoding is shlibpath_var, we
16817
# have to relink, otherwise we might link with an installed library
16818
# when we should be linking with a yet-to-be-installed one
16819
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16820
test "$hardcode_minus_L_F77" != no; then
16821
# Linking always hardcodes the temporary library directory.
16822
hardcode_action_F77=relink
16824
# We can link without hardcoding, and we can hardcode nonexisting dirs.
16825
hardcode_action_F77=immediate
16828
# We cannot hardcode anything, or else we can only hardcode existing
16830
hardcode_action_F77=unsupported
16832
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16833
echo "${ECHO_T}$hardcode_action_F77" >&6
16835
if test "$hardcode_action_F77" = relink; then
16836
# Fast installation is not supported
16837
enable_fast_install=no
16838
elif test "$shlibpath_overrides_runpath" = yes ||
16839
test "$enable_shared" = no; then
16840
# Fast installation is not necessary
16841
enable_fast_install=needless
16845
# The else clause should only fire when bootstrapping the
16846
# libtool distribution, otherwise you forgot to ship ltmain.sh
16847
# with your package, and you will get complaints that there are
16848
# no rules to generate ltmain.sh.
16849
if test -f "$ltmain"; then
16850
# See if we are running on zsh, and set the options which allow our commands through
16851
# without removal of \ escapes.
16852
if test -n "${ZSH_VERSION+set}" ; then
16853
setopt NO_GLOB_SUBST
16855
# Now quote all the things that may contain metacharacters while being
16856
# careful not to overquote the AC_SUBSTed values. We take copies of the
16857
# variables and quote the copies for generation of the libtool script.
16858
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16860
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16861
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16862
deplibs_check_method reload_flag reload_cmds need_locks \
16863
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16864
lt_cv_sys_global_symbol_to_c_name_address \
16865
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16866
old_postinstall_cmds old_postuninstall_cmds \
16870
lt_prog_compiler_wl_F77 \
16871
lt_prog_compiler_pic_F77 \
16872
lt_prog_compiler_static_F77 \
16873
lt_prog_compiler_no_builtin_flag_F77 \
16874
export_dynamic_flag_spec_F77 \
16875
thread_safe_flag_spec_F77 \
16876
whole_archive_flag_spec_F77 \
16877
enable_shared_with_static_runtimes_F77 \
16878
old_archive_cmds_F77 \
16879
old_archive_from_new_cmds_F77 \
16880
predep_objects_F77 \
16881
postdep_objects_F77 \
16884
compiler_lib_search_path_F77 \
16886
archive_expsym_cmds_F77 \
16887
postinstall_cmds_F77 \
16888
postuninstall_cmds_F77 \
16889
old_archive_from_expsyms_cmds_F77 \
16890
allow_undefined_flag_F77 \
16891
no_undefined_flag_F77 \
16892
export_symbols_cmds_F77 \
16893
hardcode_libdir_flag_spec_F77 \
16894
hardcode_libdir_flag_spec_ld_F77 \
16895
hardcode_libdir_separator_F77 \
16896
hardcode_automatic_F77 \
16898
module_expsym_cmds_F77 \
16899
lt_cv_prog_compiler_c_o_F77 \
16900
exclude_expsyms_F77 \
16901
include_expsyms_F77; do
16904
old_archive_cmds_F77 | \
16905
old_archive_from_new_cmds_F77 | \
16906
archive_cmds_F77 | \
16907
archive_expsym_cmds_F77 | \
16908
module_cmds_F77 | \
16909
module_expsym_cmds_F77 | \
16910
old_archive_from_expsyms_cmds_F77 | \
16911
export_symbols_cmds_F77 | \
16912
extract_expsyms_cmds | reload_cmds | finish_cmds | \
16913
postinstall_cmds | postuninstall_cmds | \
16914
old_postinstall_cmds | old_postuninstall_cmds | \
16915
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16916
# Double-quote double-evaled strings.
16917
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16920
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16926
*'\$0 --fallback-echo"')
16927
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16933
cat <<__EOF__ >> "$cfgfile"
16934
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16936
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16938
# Shell to use when invoking shell scripts.
16941
# Whether or not to build shared libraries.
16942
build_libtool_libs=$enable_shared
16944
# Whether or not to build static libraries.
16945
build_old_libs=$enable_static
16947
# Whether or not to add -lc for building shared libraries.
16948
build_libtool_need_lc=$archive_cmds_need_lc_F77
16950
# Whether or not to disallow shared libs when runtime libs are static
16951
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16953
# Whether or not to optimize for fast installation.
16954
fast_install=$enable_fast_install
16957
host_alias=$host_alias
16961
# The build system.
16962
build_alias=$build_alias
16966
# An echo program that does not interpret backslashes.
16971
AR_FLAGS=$lt_AR_FLAGS
16976
# LTCC compiler flags.
16977
LTCFLAGS=$lt_LTCFLAGS
16979
# A language-specific compiler.
16980
CC=$lt_compiler_F77
16982
# Is the compiler the GNU C compiler?
16988
# The linker used to build libraries.
16991
# Whether we need hard or soft links.
16994
# A BSD-compatible nm program.
16997
# A symbol stripping program
17000
# Used to examine libraries when file_magic_cmd begins "file"
17001
MAGIC_CMD=$MAGIC_CMD
17003
# Used on cygwin: DLL creation program.
17006
# Used on cygwin: object dumper.
17009
# Used on cygwin: assembler.
17012
# The name of the directory that contains temporary libtool files.
17015
# How to create reloadable object files.
17016
reload_flag=$lt_reload_flag
17017
reload_cmds=$lt_reload_cmds
17019
# How to pass a linker flag through the compiler.
17020
wl=$lt_lt_prog_compiler_wl_F77
17022
# Object file suffix (normally "o").
17023
objext="$ac_objext"
17025
# Old archive suffix (normally "a").
17028
# Shared library suffix (normally ".so").
17029
shrext_cmds='$shrext_cmds'
17031
# Executable file suffix (normally "").
17034
# Additional compiler flags for building library objects.
17035
pic_flag=$lt_lt_prog_compiler_pic_F77
17038
# What is the maximum length of a command?
17039
max_cmd_len=$lt_cv_sys_max_cmd_len
17041
# Does compiler simultaneously support -c and -o options?
17042
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17044
# Must we lock files when doing compilation?
17045
need_locks=$lt_need_locks
17047
# Do we need the lib prefix for modules?
17048
need_lib_prefix=$need_lib_prefix
17050
# Do we need a version for libraries?
17051
need_version=$need_version
17053
# Whether dlopen is supported.
17054
dlopen_support=$enable_dlopen
17056
# Whether dlopen of programs is supported.
17057
dlopen_self=$enable_dlopen_self
17059
# Whether dlopen of statically linked programs is supported.
17060
dlopen_self_static=$enable_dlopen_self_static
17062
# Compiler flag to prevent dynamic linking.
17063
link_static_flag=$lt_lt_prog_compiler_static_F77
17065
# Compiler flag to turn off builtin functions.
17066
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17068
# Compiler flag to allow reflexive dlopens.
17069
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17071
# Compiler flag to generate shared objects directly from archives.
17072
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17074
# Compiler flag to generate thread-safe objects.
17075
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17077
# Library versioning type.
17078
version_type=$version_type
17080
# Format of library name prefix.
17081
libname_spec=$lt_libname_spec
17083
# List of archive names. First name is the real one, the rest are links.
17084
# The last name is the one that the linker finds with -lNAME.
17085
library_names_spec=$lt_library_names_spec
17087
# The coded name of the library, if different from the real name.
17088
soname_spec=$lt_soname_spec
17090
# Commands used to build and install an old-style archive.
17092
old_archive_cmds=$lt_old_archive_cmds_F77
17093
old_postinstall_cmds=$lt_old_postinstall_cmds
17094
old_postuninstall_cmds=$lt_old_postuninstall_cmds
17096
# Create an old-style archive from a shared archive.
17097
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17099
# Create a temporary old-style archive to link instead of a shared archive.
17100
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17102
# Commands used to build and install a shared archive.
17103
archive_cmds=$lt_archive_cmds_F77
17104
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17105
postinstall_cmds=$lt_postinstall_cmds
17106
postuninstall_cmds=$lt_postuninstall_cmds
17108
# Commands used to build a loadable module (assumed same as above if empty)
17109
module_cmds=$lt_module_cmds_F77
17110
module_expsym_cmds=$lt_module_expsym_cmds_F77
17112
# Commands to strip libraries.
17113
old_striplib=$lt_old_striplib
17114
striplib=$lt_striplib
17116
# Dependencies to place before the objects being linked to create a
17118
predep_objects=$lt_predep_objects_F77
17120
# Dependencies to place after the objects being linked to create a
17122
postdep_objects=$lt_postdep_objects_F77
17124
# Dependencies to place before the objects being linked to create a
17126
predeps=$lt_predeps_F77
17128
# Dependencies to place after the objects being linked to create a
17130
postdeps=$lt_postdeps_F77
17132
# The library search path used internally by the compiler when linking
17133
# a shared library.
17134
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17136
# Method to check whether dependent libraries are shared objects.
17137
deplibs_check_method=$lt_deplibs_check_method
17139
# Command to use when deplibs_check_method == file_magic.
17140
file_magic_cmd=$lt_file_magic_cmd
17142
# Flag that allows shared libraries with undefined symbols to be built.
17143
allow_undefined_flag=$lt_allow_undefined_flag_F77
17145
# Flag that forces no undefined symbols.
17146
no_undefined_flag=$lt_no_undefined_flag_F77
17148
# Commands used to finish a libtool library installation in a directory.
17149
finish_cmds=$lt_finish_cmds
17151
# Same as above, but a single script fragment to be evaled but not shown.
17152
finish_eval=$lt_finish_eval
17154
# Take the output of nm and produce a listing of raw symbols and C names.
17155
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17157
# Transform the output of nm in a proper C declaration
17158
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17160
# Transform the output of nm in a C name address pair
17161
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17163
# This is the shared library runtime path variable.
17164
runpath_var=$runpath_var
17166
# This is the shared library path variable.
17167
shlibpath_var=$shlibpath_var
17169
# Is shlibpath searched before the hard-coded library search path?
17170
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17172
# How to hardcode a shared library path into an executable.
17173
hardcode_action=$hardcode_action_F77
17175
# Whether we should hardcode library paths into libraries.
17176
hardcode_into_libs=$hardcode_into_libs
17178
# Flag to hardcode \$libdir into a binary during linking.
17179
# This must work even if \$libdir does not exist.
17180
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17182
# If ld is used when linking, flag to hardcode \$libdir into
17183
# a binary during linking. This must work even if \$libdir does
17185
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17187
# Whether we need a single -rpath flag with a separated argument.
17188
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17190
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17191
# resulting binary.
17192
hardcode_direct=$hardcode_direct_F77
17194
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17195
# resulting binary.
17196
hardcode_minus_L=$hardcode_minus_L_F77
17198
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17199
# the resulting binary.
17200
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17202
# Set to yes if building a shared library automatically hardcodes DIR into the library
17203
# and all subsequent libraries and executables linked against it.
17204
hardcode_automatic=$hardcode_automatic_F77
17206
# Variables whose values should be saved in libtool wrapper scripts and
17207
# restored at relink time.
17208
variables_saved_for_relink="$variables_saved_for_relink"
17210
# Whether libtool must link a program against all its dependency libraries.
17211
link_all_deplibs=$link_all_deplibs_F77
17213
# Compile-time system search path for libraries
17214
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17216
# Run-time system search path for libraries
17217
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17219
# Fix the shell variable \$srcfile for the compiler.
17220
fix_srcfile_path="$fix_srcfile_path_F77"
17222
# Set to yes if exported symbols are required.
17223
always_export_symbols=$always_export_symbols_F77
17225
# The commands to list exported symbols.
17226
export_symbols_cmds=$lt_export_symbols_cmds_F77
17228
# The commands to extract the exported symbol list from a shared archive.
17229
extract_expsyms_cmds=$lt_extract_expsyms_cmds
17231
# Symbols that should not be listed in the preloaded symbols.
17232
exclude_expsyms=$lt_exclude_expsyms_F77
17234
# Symbols that must always be exported.
17235
include_expsyms=$lt_include_expsyms_F77
17237
# ### END LIBTOOL TAG CONFIG: $tagname
17243
# If there is no Makefile yet, we rely on a make rule to execute
17244
# `config.status --recheck' to rerun these tests and create the
17245
# libtool script then.
17246
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17247
if test -f "$ltmain_in"; then
17248
test -f Makefile && make "$ltmain"
17254
ac_cpp='$CPP $CPPFLAGS'
17255
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17256
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17257
ac_compiler_gnu=$ac_cv_c_compiler_gnu
17267
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17271
# Source file extension for Java test sources.
17274
# Object file extension for compiled Java test sources.
17278
# Code to be used in simple compile tests
17279
lt_simple_compile_test_code="class foo {}\n"
17281
# Code to be used in simple link tests
17282
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17284
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17286
# If no C compiler was specified, use CC.
17289
# If no C compiler flags were specified, use CFLAGS.
17290
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17292
# Allow CC to be a program name with arguments.
17296
# save warnings/boilerplate of simple test code
17297
ac_outfile=conftest.$ac_objext
17298
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17299
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17300
_lt_compiler_boilerplate=`cat conftest.err`
17303
ac_outfile=conftest.$ac_objext
17304
printf "$lt_simple_link_test_code" >conftest.$ac_ext
17305
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17306
_lt_linker_boilerplate=`cat conftest.err`
17310
# Allow CC to be a program name with arguments.
17315
for cc_temp in $compiler""; do
17317
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17318
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17323
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17326
# GCJ did not exist at the time GCC didn't implicitly link libc in.
17327
archive_cmds_need_lc_GCJ=no
17329
old_archive_cmds_GCJ=$old_archive_cmds
17332
lt_prog_compiler_no_builtin_flag_GCJ=
17334
if test "$GCC" = yes; then
17335
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17338
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17339
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
17340
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17341
echo $ECHO_N "(cached) $ECHO_C" >&6
17343
lt_cv_prog_compiler_rtti_exceptions=no
17344
ac_outfile=conftest.$ac_objext
17345
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17346
lt_compiler_flag="-fno-rtti -fno-exceptions"
17347
# Insert the option either (1) after the last *FLAGS variable, or
17348
# (2) before a word containing "conftest.", or (3) at the end.
17349
# Note that $ac_compile itself does not contain backslashes and begins
17350
# with a dollar sign (not a hyphen), so the echo should work correctly.
17351
# The option is referenced via a variable to avoid confusing sed.
17352
lt_compile=`echo "$ac_compile" | $SED \
17353
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17354
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17355
-e 's:$: $lt_compiler_flag:'`
17356
(eval echo "\"\$as_me:17356: $lt_compile\"" >&5)
17357
(eval "$lt_compile" 2>conftest.err)
17359
cat conftest.err >&5
17360
echo "$as_me:17360: \$? = $ac_status" >&5
17361
if (exit $ac_status) && test -s "$ac_outfile"; then
17362
# The compiler can only warn and ignore the option if not recognized
17363
# So say no if there are warnings other than the usual output.
17364
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17365
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17366
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17367
lt_cv_prog_compiler_rtti_exceptions=yes
17373
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17374
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
17376
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17377
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17384
lt_prog_compiler_wl_GCJ=
17385
lt_prog_compiler_pic_GCJ=
17386
lt_prog_compiler_static_GCJ=
17388
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17389
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17391
if test "$GCC" = yes; then
17392
lt_prog_compiler_wl_GCJ='-Wl,'
17393
lt_prog_compiler_static_GCJ='-static'
17397
# All AIX code is PIC.
17398
if test "$host_cpu" = ia64; then
17399
# AIX 5 now supports IA64 processor
17400
lt_prog_compiler_static_GCJ='-Bstatic'
17405
# FIXME: we need at least 68020 code to build shared libraries, but
17406
# adding the `-m68020' flag to GCC prevents building anything better,
17408
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17411
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17412
# PIC is the default for these OSes.
17415
mingw* | pw32* | os2*)
17416
# This hack is so that the source file can tell whether it is being
17417
# built for inclusion in a dll (and should export symbols for example).
17418
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17421
darwin* | rhapsody*)
17422
# PIC is the default on this platform
17423
# Common symbols not allowed in MH_DYLIB files
17424
lt_prog_compiler_pic_GCJ='-fno-common'
17428
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
17429
# Instead, we relocate shared libraries at runtime.
17433
# Just because we use GCC doesn't mean we suddenly get shared libraries
17434
# on systems that don't support them.
17435
lt_prog_compiler_can_build_shared_GCJ=no
17440
if test -d /usr/nec; then
17441
lt_prog_compiler_pic_GCJ=-Kconform_pic
17446
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17447
# not for PA HP-UX.
17453
lt_prog_compiler_pic_GCJ='-fPIC'
17459
lt_prog_compiler_pic_GCJ='-fPIC'
17463
# PORTME Check for flag to pass linker flags through the system compiler.
17466
lt_prog_compiler_wl_GCJ='-Wl,'
17467
if test "$host_cpu" = ia64; then
17468
# AIX 5 now supports IA64 processor
17469
lt_prog_compiler_static_GCJ='-Bstatic'
17471
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17475
# PIC is the default on this platform
17476
# Common symbols not allowed in MH_DYLIB files
17477
case $cc_basename in
17479
lt_prog_compiler_pic_GCJ='-qnocommon'
17480
lt_prog_compiler_wl_GCJ='-Wl,'
17485
mingw* | pw32* | os2*)
17486
# This hack is so that the source file can tell whether it is being
17487
# built for inclusion in a dll (and should export symbols for example).
17488
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17491
hpux9* | hpux10* | hpux11*)
17492
lt_prog_compiler_wl_GCJ='-Wl,'
17493
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17494
# not for PA HP-UX.
17500
lt_prog_compiler_pic_GCJ='+Z'
17503
# Is there a better lt_prog_compiler_static that works with the bundled CC?
17504
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17507
irix5* | irix6* | nonstopux*)
17508
lt_prog_compiler_wl_GCJ='-Wl,'
17509
# PIC (with -KPIC) is the default.
17510
lt_prog_compiler_static_GCJ='-non_shared'
17514
lt_prog_compiler_pic_GCJ='-KPIC'
17515
lt_prog_compiler_static_GCJ='-Bstatic'
17519
case $cc_basename in
17521
lt_prog_compiler_wl_GCJ='-Wl,'
17522
lt_prog_compiler_pic_GCJ='-KPIC'
17523
lt_prog_compiler_static_GCJ='-static'
17525
pgcc* | pgf77* | pgf90* | pgf95*)
17526
# Portland Group compilers (*not* the Pentium gcc compiler,
17527
# which looks to be a dead project)
17528
lt_prog_compiler_wl_GCJ='-Wl,'
17529
lt_prog_compiler_pic_GCJ='-fpic'
17530
lt_prog_compiler_static_GCJ='-Bstatic'
17533
lt_prog_compiler_wl_GCJ='-Wl,'
17534
# All Alpha code is PIC.
17535
lt_prog_compiler_static_GCJ='-non_shared'
17540
osf3* | osf4* | osf5*)
17541
lt_prog_compiler_wl_GCJ='-Wl,'
17542
# All OSF/1 code is PIC.
17543
lt_prog_compiler_static_GCJ='-non_shared'
17547
lt_prog_compiler_pic_GCJ='-KPIC'
17548
lt_prog_compiler_static_GCJ='-Bstatic'
17549
case $cc_basename in
17550
f77* | f90* | f95*)
17551
lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17553
lt_prog_compiler_wl_GCJ='-Wl,';;
17558
lt_prog_compiler_wl_GCJ='-Qoption ld '
17559
lt_prog_compiler_pic_GCJ='-PIC'
17560
lt_prog_compiler_static_GCJ='-Bstatic'
17563
sysv4 | sysv4.2uw2* | sysv4.3*)
17564
lt_prog_compiler_wl_GCJ='-Wl,'
17565
lt_prog_compiler_pic_GCJ='-KPIC'
17566
lt_prog_compiler_static_GCJ='-Bstatic'
17570
if test -d /usr/nec ;then
17571
lt_prog_compiler_pic_GCJ='-Kconform_pic'
17572
lt_prog_compiler_static_GCJ='-Bstatic'
17576
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17577
lt_prog_compiler_wl_GCJ='-Wl,'
17578
lt_prog_compiler_pic_GCJ='-KPIC'
17579
lt_prog_compiler_static_GCJ='-Bstatic'
17583
lt_prog_compiler_wl_GCJ='-Wl,'
17584
lt_prog_compiler_can_build_shared_GCJ=no
17588
lt_prog_compiler_pic_GCJ='-pic'
17589
lt_prog_compiler_static_GCJ='-Bstatic'
17593
lt_prog_compiler_can_build_shared_GCJ=no
17598
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17599
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
17602
# Check to make sure the PIC flag actually works.
17604
if test -n "$lt_prog_compiler_pic_GCJ"; then
17606
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17607
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
17608
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17609
echo $ECHO_N "(cached) $ECHO_C" >&6
17611
lt_prog_compiler_pic_works_GCJ=no
17612
ac_outfile=conftest.$ac_objext
17613
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17614
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17615
# Insert the option either (1) after the last *FLAGS variable, or
17616
# (2) before a word containing "conftest.", or (3) at the end.
17617
# Note that $ac_compile itself does not contain backslashes and begins
17618
# with a dollar sign (not a hyphen), so the echo should work correctly.
17619
# The option is referenced via a variable to avoid confusing sed.
17620
lt_compile=`echo "$ac_compile" | $SED \
17621
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17622
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17623
-e 's:$: $lt_compiler_flag:'`
17624
(eval echo "\"\$as_me:17624: $lt_compile\"" >&5)
17625
(eval "$lt_compile" 2>conftest.err)
17627
cat conftest.err >&5
17628
echo "$as_me:17628: \$? = $ac_status" >&5
17629
if (exit $ac_status) && test -s "$ac_outfile"; then
17630
# The compiler can only warn and ignore the option if not recognized
17631
# So say no if there are warnings other than the usual output.
17632
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17633
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17634
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17635
lt_prog_compiler_pic_works_GCJ=yes
17641
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17642
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
17644
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17645
case $lt_prog_compiler_pic_GCJ in
17647
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17650
lt_prog_compiler_pic_GCJ=
17651
lt_prog_compiler_can_build_shared_GCJ=no
17656
# For platforms which do not support PIC, -DPIC is meaningless:
17658
lt_prog_compiler_pic_GCJ=
17661
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17666
# Check to make sure the static flag actually works.
17668
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17669
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17670
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
17671
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17672
echo $ECHO_N "(cached) $ECHO_C" >&6
17674
lt_prog_compiler_static_works_GCJ=no
17675
save_LDFLAGS="$LDFLAGS"
17676
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17677
printf "$lt_simple_link_test_code" > conftest.$ac_ext
17678
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17679
# The linker can only warn and ignore the option if not recognized
17680
# So say no if there are warnings
17681
if test -s conftest.err; then
17682
# Append any errors to the config.log.
17683
cat conftest.err 1>&5
17684
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17685
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17686
if diff conftest.exp conftest.er2 >/dev/null; then
17687
lt_prog_compiler_static_works_GCJ=yes
17690
lt_prog_compiler_static_works_GCJ=yes
17694
LDFLAGS="$save_LDFLAGS"
17697
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17698
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
17700
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17703
lt_prog_compiler_static_GCJ=
17707
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17708
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17709
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17710
echo $ECHO_N "(cached) $ECHO_C" >&6
17712
lt_cv_prog_compiler_c_o_GCJ=no
17713
$rm -r conftest 2>/dev/null
17717
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17719
lt_compiler_flag="-o out/conftest2.$ac_objext"
17720
# Insert the option either (1) after the last *FLAGS variable, or
17721
# (2) before a word containing "conftest.", or (3) at the end.
17722
# Note that $ac_compile itself does not contain backslashes and begins
17723
# with a dollar sign (not a hyphen), so the echo should work correctly.
17724
lt_compile=`echo "$ac_compile" | $SED \
17725
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17726
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17727
-e 's:$: $lt_compiler_flag:'`
17728
(eval echo "\"\$as_me:17728: $lt_compile\"" >&5)
17729
(eval "$lt_compile" 2>out/conftest.err)
17731
cat out/conftest.err >&5
17732
echo "$as_me:17732: \$? = $ac_status" >&5
17733
if (exit $ac_status) && test -s out/conftest2.$ac_objext
17735
# The compiler can only warn and ignore the option if not recognized
17736
# So say no if there are warnings
17737
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17738
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17739
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17740
lt_cv_prog_compiler_c_o_GCJ=yes
17745
# SGI C++ compiler will create directory out/ii_files/ for
17746
# template instantiation
17747
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17748
$rm out/* && rmdir out
17754
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17755
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17758
hard_links="nottested"
17759
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17760
# do not overwrite the value of need_locks provided by the user
17761
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17762
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17765
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17767
ln conftest.a conftest.b 2>&5 || hard_links=no
17768
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17769
echo "$as_me:$LINENO: result: $hard_links" >&5
17770
echo "${ECHO_T}$hard_links" >&6
17771
if test "$hard_links" = no; then
17772
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17773
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17780
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17781
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17784
allow_undefined_flag_GCJ=
17785
enable_shared_with_static_runtimes_GCJ=no
17787
archive_expsym_cmds_GCJ=
17788
old_archive_From_new_cmds_GCJ=
17789
old_archive_from_expsyms_cmds_GCJ=
17790
export_dynamic_flag_spec_GCJ=
17791
whole_archive_flag_spec_GCJ=
17792
thread_safe_flag_spec_GCJ=
17793
hardcode_libdir_flag_spec_GCJ=
17794
hardcode_libdir_flag_spec_ld_GCJ=
17795
hardcode_libdir_separator_GCJ=
17796
hardcode_direct_GCJ=no
17797
hardcode_minus_L_GCJ=no
17798
hardcode_shlibpath_var_GCJ=unsupported
17799
link_all_deplibs_GCJ=unknown
17800
hardcode_automatic_GCJ=no
17802
module_expsym_cmds_GCJ=
17803
always_export_symbols_GCJ=no
17804
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17805
# include_expsyms should be a list of space-separated symbols to be *always*
17806
# included in the symbol list
17807
include_expsyms_GCJ=
17808
# exclude_expsyms can be an extended regexp of symbols to exclude
17809
# it will be wrapped by ` (' and `)$', so one must not match beginning or
17810
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17811
# as well as any symbol that contains `d'.
17812
exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17813
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17814
# platforms (ab)use it in PIC code, but their linkers get confused if
17815
# the symbol is explicitly referenced. Since portable code cannot
17816
# rely on this symbol name, it's probably fine to never include it in
17817
# preloaded symbol tables.
17818
extract_expsyms_cmds=
17819
# Just being paranoid about ensuring that cc_basename is set.
17820
for cc_temp in $compiler""; do
17822
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17823
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17828
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17831
cygwin* | mingw* | pw32*)
17832
# FIXME: the MSVC++ port hasn't been tested in a loooong time
17833
# When not using gcc, we currently assume that we are using
17834
# Microsoft Visual C++.
17835
if test "$GCC" != yes; then
17840
# we just hope/assume this is gcc and not c89 (= MSVC++)
17849
if test "$with_gnu_ld" = yes; then
17850
# If archive_cmds runs LD, not CC, wlarc should be empty
17853
# Set some defaults for GNU ld with shared library support. These
17854
# are reset later if shared libraries are not supported. Putting them
17855
# here allows them to be overridden if necessary.
17856
runpath_var=LD_RUN_PATH
17857
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17858
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17859
# ancient GNU ld didn't support --whole-archive et. al.
17860
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17861
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17863
whole_archive_flag_spec_GCJ=
17865
supports_anon_versioning=no
17866
case `$LD -v 2>/dev/null` in
17867
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17868
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17869
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17870
*\ 2.11.*) ;; # other 2.11 versions
17871
*) supports_anon_versioning=yes ;;
17874
# See if GNU ld supports shared libraries.
17876
aix3* | aix4* | aix5*)
17877
# On AIX/PPC, the GNU linker is very broken
17878
if test "$host_cpu" != ia64; then
17882
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17883
*** to be unable to reliably create shared libraries on AIX.
17884
*** Therefore, libtool is disabling shared libraries support. If you
17885
*** really care for shared libraries, you may want to modify your PATH
17886
*** so that a non-GNU linker is found, and then restart.
17893
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)'
17894
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17895
hardcode_minus_L_GCJ=yes
17897
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17898
# that the semantics of dynamic libraries on AmigaOS, at least up
17899
# to version 4, is to share data among multiple programs linked
17900
# with the same dynamic library. Since this doesn't match the
17901
# behavior of shared libraries on other platforms, we can't use
17907
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17908
allow_undefined_flag_GCJ=unsupported
17909
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17910
# support --undefined. This deserves some investigation. FIXME
17911
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17917
cygwin* | mingw* | pw32*)
17918
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17919
# as there is no search path for DLLs.
17920
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17921
allow_undefined_flag_GCJ=unsupported
17922
always_export_symbols_GCJ=no
17923
enable_shared_with_static_runtimes_GCJ=yes
17924
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17926
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17927
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17928
# If the export-symbols file already is a .def file (1st line
17929
# is EXPORTS), use it as is; otherwise, prepend...
17930
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17931
cp $export_symbols $output_objdir/$soname.def;
17933
echo EXPORTS > $output_objdir/$soname.def;
17934
cat $export_symbols >> $output_objdir/$soname.def;
17936
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17943
hardcode_direct_GCJ=no
17944
hardcode_shlibpath_var_GCJ=no
17945
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17946
export_dynamic_flag_spec_GCJ='${wl}-E'
17947
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17948
# Instead, shared libraries are loaded at an image base (0x10000000 by
17949
# default) and relocated if they conflict, which is a slow very memory
17950
# consuming and fragmenting process. To avoid this, we pick a random,
17951
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17952
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
17953
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'
17954
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'
17958
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17960
case $cc_basename,$host_cpu in
17961
pgcc*) # Portland Group C compiler
17962
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'
17963
tmp_addflag=' $pic_flag'
17965
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17966
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'
17967
tmp_addflag=' $pic_flag -Mnomain' ;;
17968
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17969
tmp_addflag=' -i_dynamic' ;;
17970
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17971
tmp_addflag=' -i_dynamic -nofor_main' ;;
17972
ifc* | ifort*) # Intel Fortran compiler
17973
tmp_addflag=' -nofor_main' ;;
17975
archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17977
if test $supports_anon_versioning = yes; then
17978
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17979
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17980
$echo "local: *; };" >> $output_objdir/$libname.ver~
17981
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17989
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17990
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17993
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17994
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17999
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18003
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
18004
*** create shared libraries on Solaris systems. Therefore, libtool
18005
*** is disabling shared libraries support. We urge you to upgrade GNU
18006
*** binutils to release 2.9.1 or newer. Another option is to modify
18007
*** your PATH or compiler configuration so that the native linker is
18008
*** used, and then restart.
18011
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18012
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18013
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18019
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18020
case `$LD -v 2>&1` in
18021
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18025
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18026
*** reliably create shared libraries on SCO systems. Therefore, libtool
18027
*** is disabling shared libraries support. We urge you to upgrade GNU
18028
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18029
*** your PATH or compiler configuration so that the native linker is
18030
*** used, and then restart.
18035
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18036
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18037
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18038
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18047
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18049
hardcode_direct_GCJ=yes
18050
hardcode_shlibpath_var_GCJ=no
18054
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18055
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18056
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18063
if test "$ld_shlibs_GCJ" = no; then
18065
hardcode_libdir_flag_spec_GCJ=
18066
export_dynamic_flag_spec_GCJ=
18067
whole_archive_flag_spec_GCJ=
18070
# PORTME fill in a description of your system's linker (not GNU ld)
18073
allow_undefined_flag_GCJ=unsupported
18074
always_export_symbols_GCJ=yes
18075
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'
18076
# Note: this linker hardcodes the directories in LIBPATH if there
18077
# are no directories specified by -L.
18078
hardcode_minus_L_GCJ=yes
18079
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18080
# Neither direct hardcoding nor static linking is supported with a
18082
hardcode_direct_GCJ=unsupported
18087
if test "$host_cpu" = ia64; then
18088
# On IA64, the linker does run time linking by default, so we don't
18089
# have to do anything special.
18090
aix_use_runtimelinking=no
18091
exp_sym_flag='-Bexport'
18094
# If we're using GNU nm, then we don't want the "-C" option.
18095
# -C means demangle to AIX nm, but means don't demangle with GNU nm
18096
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18097
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'
18099
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'
18101
aix_use_runtimelinking=no
18103
# Test if we are trying to use run time linking or normal
18104
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
18105
# need to do runtime linking.
18106
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18107
for ld_flag in $LDFLAGS; do
18108
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18109
aix_use_runtimelinking=yes
18116
exp_sym_flag='-bexport'
18117
no_entry_flag='-bnoentry'
18120
# When large executables or shared objects are built, AIX ld can
18121
# have problems creating the table of contents. If linking a library
18122
# or program results in "error TOC overflow" add -mminimal-toc to
18123
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18124
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18126
archive_cmds_GCJ=''
18127
hardcode_direct_GCJ=yes
18128
hardcode_libdir_separator_GCJ=':'
18129
link_all_deplibs_GCJ=yes
18131
if test "$GCC" = yes; then
18132
case $host_os in aix4.[012]|aix4.[012].*)
18133
# We only want to do this on AIX 4.2 and lower, the check
18134
# below for broken collect2 doesn't work under 4.3+
18135
collect2name=`${CC} -print-prog-name=collect2`
18136
if test -f "$collect2name" && \
18137
strings "$collect2name" | grep resolve_lib_name >/dev/null
18139
# We have reworked collect2
18140
hardcode_direct_GCJ=yes
18142
# We have old collect2
18143
hardcode_direct_GCJ=unsupported
18144
# It fails to find uninstalled libraries when the uninstalled
18145
# path is not listed in the libpath. Setting hardcode_minus_L
18146
# to unsupported forces relinking
18147
hardcode_minus_L_GCJ=yes
18148
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18149
hardcode_libdir_separator_GCJ=
18153
shared_flag='-shared'
18154
if test "$aix_use_runtimelinking" = yes; then
18155
shared_flag="$shared_flag "'${wl}-G'
18159
if test "$host_cpu" = ia64; then
18160
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18161
# chokes on -Wl,-G. The following line is correct:
18164
if test "$aix_use_runtimelinking" = yes; then
18165
shared_flag='${wl}-G'
18167
shared_flag='${wl}-bM:SRE'
18172
# It seems that -bexpall does not export symbols beginning with
18173
# underscore (_), so it is better to generate a list of symbols to export.
18174
always_export_symbols_GCJ=yes
18175
if test "$aix_use_runtimelinking" = yes; then
18176
# Warning - without using the other runtime loading flags (-brtl),
18177
# -berok will link without error, but may produce a broken library.
18178
allow_undefined_flag_GCJ='-berok'
18179
# Determine the default libpath from the value encoded in an empty executable.
18180
cat >conftest.$ac_ext <<_ACEOF
18183
cat confdefs.h >>conftest.$ac_ext
18184
cat >>conftest.$ac_ext <<_ACEOF
18185
/* end confdefs.h. */
18195
rm -f conftest.$ac_objext conftest$ac_exeext
18196
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18197
(eval $ac_link) 2>conftest.er1
18199
grep -v '^ *+' conftest.er1 >conftest.err
18201
cat conftest.err >&5
18202
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203
(exit $ac_status); } &&
18204
{ ac_try='test -z "$ac_c_werror_flag"
18205
|| test ! -s conftest.err'
18206
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18207
(eval $ac_try) 2>&5
18209
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18210
(exit $ac_status); }; } &&
18211
{ ac_try='test -s conftest$ac_exeext'
18212
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18213
(eval $ac_try) 2>&5
18215
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18216
(exit $ac_status); }; }; then
18218
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18220
# Check for a 64-bit object if we didn't find anything.
18221
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18224
echo "$as_me: failed program was:" >&5
18225
sed 's/^/| /' conftest.$ac_ext >&5
18228
rm -f conftest.err conftest.$ac_objext \
18229
conftest$ac_exeext conftest.$ac_ext
18230
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18232
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18233
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"
18235
if test "$host_cpu" = ia64; then
18236
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18237
allow_undefined_flag_GCJ="-z nodefs"
18238
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"
18240
# Determine the default libpath from the value encoded in an empty executable.
18241
cat >conftest.$ac_ext <<_ACEOF
18244
cat confdefs.h >>conftest.$ac_ext
18245
cat >>conftest.$ac_ext <<_ACEOF
18246
/* end confdefs.h. */
18256
rm -f conftest.$ac_objext conftest$ac_exeext
18257
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18258
(eval $ac_link) 2>conftest.er1
18260
grep -v '^ *+' conftest.er1 >conftest.err
18262
cat conftest.err >&5
18263
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18264
(exit $ac_status); } &&
18265
{ ac_try='test -z "$ac_c_werror_flag"
18266
|| test ! -s conftest.err'
18267
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18268
(eval $ac_try) 2>&5
18270
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18271
(exit $ac_status); }; } &&
18272
{ ac_try='test -s conftest$ac_exeext'
18273
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18274
(eval $ac_try) 2>&5
18276
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18277
(exit $ac_status); }; }; then
18279
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18281
# Check for a 64-bit object if we didn't find anything.
18282
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18285
echo "$as_me: failed program was:" >&5
18286
sed 's/^/| /' conftest.$ac_ext >&5
18289
rm -f conftest.err conftest.$ac_objext \
18290
conftest$ac_exeext conftest.$ac_ext
18291
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18293
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18294
# Warning - without using the other run time loading flags,
18295
# -berok will link without error, but may produce a broken library.
18296
no_undefined_flag_GCJ=' ${wl}-bernotok'
18297
allow_undefined_flag_GCJ=' ${wl}-berok'
18298
# Exported symbols can be pulled into shared objects from archives
18299
whole_archive_flag_spec_GCJ='$convenience'
18300
archive_cmds_need_lc_GCJ=yes
18301
# This is similar to how AIX traditionally builds its shared libraries.
18302
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'
18308
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)'
18309
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18310
hardcode_minus_L_GCJ=yes
18311
# see comment about different semantics on the GNU ld section
18316
export_dynamic_flag_spec_GCJ=-rdynamic
18319
cygwin* | mingw* | pw32*)
18320
# When not using gcc, we currently assume that we are using
18321
# Microsoft Visual C++.
18322
# hardcode_libdir_flag_spec is actually meaningless, as there is
18323
# no search path for DLLs.
18324
hardcode_libdir_flag_spec_GCJ=' '
18325
allow_undefined_flag_GCJ=unsupported
18326
# Tell ltmain to make .lib files, not .a files.
18328
# Tell ltmain to make .dll files, not .so files.
18330
# FIXME: Setting linknames here is a bad hack.
18331
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18332
# The linker will automatically build a .lib file if we build a DLL.
18333
old_archive_From_new_cmds_GCJ='true'
18334
# FIXME: Should let the user specify the lib program.
18335
old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18336
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18337
enable_shared_with_static_runtimes_GCJ=yes
18340
darwin* | rhapsody*)
18342
rhapsody* | darwin1.[012])
18343
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18346
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18347
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18349
case ${MACOSX_DEPLOYMENT_TARGET} in
18351
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18354
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18360
archive_cmds_need_lc_GCJ=no
18361
hardcode_direct_GCJ=no
18362
hardcode_automatic_GCJ=yes
18363
hardcode_shlibpath_var_GCJ=unsupported
18364
whole_archive_flag_spec_GCJ=''
18365
link_all_deplibs_GCJ=yes
18366
if test "$GCC" = yes ; then
18367
output_verbose_link_cmd='echo'
18368
archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18369
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18370
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18371
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18372
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}'
18374
case $cc_basename in
18376
output_verbose_link_cmd='echo'
18377
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18378
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18379
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18380
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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18381
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}'
18391
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18392
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18393
hardcode_shlibpath_var_GCJ=no
18400
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18401
# support. Future versions do this automatically, but an explicit c++rt0.o
18402
# does not break anything, and helps significantly (at the cost of a little
18405
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18406
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18407
hardcode_direct_GCJ=yes
18408
hardcode_shlibpath_var_GCJ=no
18411
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
18413
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18414
hardcode_direct_GCJ=yes
18415
hardcode_minus_L_GCJ=yes
18416
hardcode_shlibpath_var_GCJ=no
18419
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18420
freebsd* | kfreebsd*-gnu | dragonfly*)
18421
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18422
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18423
hardcode_direct_GCJ=yes
18424
hardcode_shlibpath_var_GCJ=no
18428
if test "$GCC" = yes; then
18429
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'
18431
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'
18433
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18434
hardcode_libdir_separator_GCJ=:
18435
hardcode_direct_GCJ=yes
18437
# hardcode_minus_L: Not really in the search PATH,
18438
# but as the default location of the library.
18439
hardcode_minus_L_GCJ=yes
18440
export_dynamic_flag_spec_GCJ='${wl}-E'
18444
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18445
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18447
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18449
if test "$with_gnu_ld" = no; then
18450
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18451
hardcode_libdir_separator_GCJ=:
18453
hardcode_direct_GCJ=yes
18454
export_dynamic_flag_spec_GCJ='${wl}-E'
18456
# hardcode_minus_L: Not really in the search PATH,
18457
# but as the default location of the library.
18458
hardcode_minus_L_GCJ=yes
18463
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18466
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18469
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18472
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18478
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18481
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18484
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18488
if test "$with_gnu_ld" = no; then
18489
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18490
hardcode_libdir_separator_GCJ=:
18494
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18495
hardcode_direct_GCJ=no
18496
hardcode_shlibpath_var_GCJ=no
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
18510
irix5* | irix6* | nonstopux*)
18511
if test "$GCC" = yes; then
18512
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'
18514
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'
18515
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18517
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18518
hardcode_libdir_separator_GCJ=:
18519
link_all_deplibs_GCJ=yes
18523
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18524
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18526
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18528
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18529
hardcode_direct_GCJ=yes
18530
hardcode_shlibpath_var_GCJ=no
18534
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18535
hardcode_direct_GCJ=yes
18536
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18537
hardcode_libdir_separator_GCJ=:
18538
hardcode_shlibpath_var_GCJ=no
18542
hardcode_direct_GCJ=yes
18543
hardcode_shlibpath_var_GCJ=no
18544
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18545
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18546
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18547
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18548
export_dynamic_flag_spec_GCJ='${wl}-E'
18551
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18552
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18553
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18556
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18557
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18564
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18565
hardcode_minus_L_GCJ=yes
18566
allow_undefined_flag_GCJ=unsupported
18567
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'
18568
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18572
if test "$GCC" = yes; then
18573
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18574
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'
18576
allow_undefined_flag_GCJ=' -expect_unresolved \*'
18577
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'
18579
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18580
hardcode_libdir_separator_GCJ=:
18583
osf4* | osf5*) # as osf3* with the addition of -msym flag
18584
if test "$GCC" = yes; then
18585
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18586
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'
18587
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18589
allow_undefined_flag_GCJ=' -expect_unresolved \*'
18590
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'
18591
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~
18592
$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'
18594
# Both c and cxx compiler support -rpath directly
18595
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18597
hardcode_libdir_separator_GCJ=:
18601
no_undefined_flag_GCJ=' -z text'
18602
if test "$GCC" = yes; then
18604
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18605
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18606
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18609
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18610
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18611
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18613
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18614
hardcode_shlibpath_var_GCJ=no
18616
solaris2.[0-5] | solaris2.[0-5].*) ;;
18618
# The compiler driver will combine linker options so we
18619
# cannot just pass the convience library names through
18620
# without $wl, iff we do not link with $LD.
18621
# Luckily, gcc supports the same syntax we need for Sun Studio.
18622
# Supported since Solaris 2.6 (maybe 2.5.1?)
18625
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18627
whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
18630
link_all_deplibs_GCJ=yes
18634
if test "x$host_vendor" = xsequent; then
18635
# Use $CC to link under sequent, because it throws in some extra .o
18636
# files that make .init and .fini sections work.
18637
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18639
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18641
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18642
hardcode_direct_GCJ=yes
18643
hardcode_minus_L_GCJ=yes
18644
hardcode_shlibpath_var_GCJ=no
18648
case $host_vendor in
18650
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18651
hardcode_direct_GCJ=yes # is this really true???
18654
## LD is ld it makes a PLAMLIB
18655
## CC just makes a GrossModule.
18656
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18657
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18658
hardcode_direct_GCJ=no
18661
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18662
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18665
runpath_var='LD_RUN_PATH'
18666
hardcode_shlibpath_var_GCJ=no
18670
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18671
hardcode_shlibpath_var_GCJ=no
18672
export_dynamic_flag_spec_GCJ='-Bexport'
18676
if test -d /usr/nec; then
18677
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18678
hardcode_shlibpath_var_GCJ=no
18679
runpath_var=LD_RUN_PATH
18680
hardcode_runpath_var=yes
18685
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18686
no_undefined_flag_GCJ='${wl}-z,text'
18687
archive_cmds_need_lc_GCJ=no
18688
hardcode_shlibpath_var_GCJ=no
18689
runpath_var='LD_RUN_PATH'
18691
if test "$GCC" = yes; then
18692
archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18693
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18695
archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18696
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18700
sysv5* | sco3.2v5* | sco5v6*)
18701
# Note: We can NOT use -z defs as we might desire, because we do not
18702
# link with -lc, and that would cause any symbols used from libc to
18703
# always be unresolved, which means just about no library would
18704
# ever link correctly. If we're not using GNU ld we use -z text
18705
# though, which does catch some bad symbols but isn't as heavy-handed
18707
no_undefined_flag_GCJ='${wl}-z,text'
18708
allow_undefined_flag_GCJ='${wl}-z,nodefs'
18709
archive_cmds_need_lc_GCJ=no
18710
hardcode_shlibpath_var_GCJ=no
18711
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18712
hardcode_libdir_separator_GCJ=':'
18713
link_all_deplibs_GCJ=yes
18714
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18715
runpath_var='LD_RUN_PATH'
18717
if test "$GCC" = yes; then
18718
archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18719
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18721
archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18722
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18727
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18728
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18729
hardcode_shlibpath_var_GCJ=no
18738
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18739
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
18740
test "$ld_shlibs_GCJ" = no && can_build_shared=no
18743
# Do we need to explicitly link libc?
18745
case "x$archive_cmds_need_lc_GCJ" in
18747
# Assume -lc should be added
18748
archive_cmds_need_lc_GCJ=yes
18750
if test "$enable_shared" = yes && test "$GCC" = yes; then
18751
case $archive_cmds_GCJ in
18753
# FIXME: we may have to deal with multi-command sequences.
18756
# Test whether the compiler implicitly links with -lc since on some
18757
# systems, -lgcc has to come before -lc. If gcc already passes -lc
18758
# to ld, don't add -lc before -lgcc.
18759
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18760
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18762
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18764
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18765
(eval $ac_compile) 2>&5
18767
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18768
(exit $ac_status); } 2>conftest.err; then
18771
libobjs=conftest.$ac_objext
18773
wl=$lt_prog_compiler_wl_GCJ
18774
pic_flag=$lt_prog_compiler_pic_GCJ
18780
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18781
allow_undefined_flag_GCJ=
18782
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18783
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18785
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18786
(exit $ac_status); }
18788
archive_cmds_need_lc_GCJ=no
18790
archive_cmds_need_lc_GCJ=yes
18792
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18794
cat conftest.err 1>&5
18797
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18798
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
18805
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18806
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18807
library_names_spec=
18808
libname_spec='lib$name'
18812
postuninstall_cmds=
18816
shlibpath_overrides_runpath=unknown
18818
dynamic_linker="$host_os ld.so"
18819
sys_lib_dlsearch_path_spec="/lib /usr/lib"
18820
if test "$GCC" = yes; then
18821
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18822
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18823
# if the path contains ";" then we assume it to be the separator
18824
# otherwise default to the standard path separator (i.e. ":") - it is
18825
# assumed that no part of a normal pathname contains ";" but that should
18826
# okay in the real world where ";" in dirpaths is itself problematic.
18827
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18829
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18832
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18834
need_lib_prefix=unknown
18835
hardcode_into_libs=no
18837
# when you set need_version to no, make sure it does not cause -set_version
18838
# flags to be left without arguments
18839
need_version=unknown
18844
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18845
shlibpath_var=LIBPATH
18847
# AIX 3 has no versioning support, so we append a major version to the name.
18848
soname_spec='${libname}${release}${shared_ext}$major'
18855
hardcode_into_libs=yes
18856
if test "$host_cpu" = ia64; then
18857
# AIX 5 supports IA64
18858
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18859
shlibpath_var=LD_LIBRARY_PATH
18861
# With GCC up to 2.95.x, collect2 would create an import file
18862
# for dependence libraries. The import file would start with
18863
# the line `#! .'. This would cause the generated library to
18864
# depend on `.', always an invalid library. This was fixed in
18865
# development snapshots of GCC prior to 3.0.
18867
aix4 | aix4.[01] | aix4.[01].*)
18868
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18870
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18873
can_build_shared=no
18877
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18878
# soname into executable. Probably we can add versioning support to
18879
# collect2, so additional links can be useful in future.
18880
if test "$aix_use_runtimelinking" = yes; then
18881
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
18882
# instead of lib<name>.a to let people know that these are not
18883
# typical AIX shared libraries.
18884
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18886
# We preserve .a as extension for shared libraries through AIX4.2
18887
# and later when we are not doing run time linking.
18888
library_names_spec='${libname}${release}.a $libname.a'
18889
soname_spec='${libname}${release}${shared_ext}$major'
18891
shlibpath_var=LIBPATH
18896
library_names_spec='$libname.ixlibrary $libname.a'
18897
# Create ${libname}_ixlibrary.a entries in /sys/libs.
18898
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'
18902
library_names_spec='${libname}${shared_ext}'
18903
dynamic_linker="$host_os ld.so"
18904
shlibpath_var=LIBRARY_PATH
18910
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18911
soname_spec='${libname}${release}${shared_ext}$major'
18912
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18913
shlibpath_var=LD_LIBRARY_PATH
18914
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18915
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18916
# the default ld.so.conf also contains /usr/contrib/lib and
18917
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18918
# libtool to hard-code these into programs
18921
cygwin* | mingw* | pw32*)
18922
version_type=windows
18927
case $GCC,$host_os in
18928
yes,cygwin* | yes,mingw* | yes,pw32*)
18929
library_names_spec='$libname.dll.a'
18930
# DLL is installed to $(libdir)/../bin by postinstall_cmds
18931
postinstall_cmds='base_file=`basename \${file}`~
18932
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18933
dldir=$destdir/`dirname \$dlpath`~
18934
test -d \$dldir || mkdir -p \$dldir~
18935
$install_prog $dir/$dlname \$dldir/$dlname~
18936
chmod a+x \$dldir/$dlname'
18937
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18938
dlpath=$dir/\$dldll~
18940
shlibpath_overrides_runpath=yes
18944
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
18945
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18946
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18949
# MinGW DLLs use traditional 'lib' prefix
18950
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18951
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18952
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18953
# It is most probably a Windows format PATH printed by
18954
# mingw gcc, but we are running on Cygwin. Gcc prints its search
18955
# path with ; separators, and with drive letters. We can handle the
18956
# drive letters (cygwin fileutils understands them), so leave them,
18957
# especially as we might pass files found there to a mingw objdump,
18958
# which wouldn't understand a cygwinified path. Ahh.
18959
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18961
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18965
# pw32 DLLs use 'pw' prefix rather than 'lib'
18966
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18972
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18975
dynamic_linker='Win32 ld.exe'
18976
# FIXME: first we should search . and the directory the executable is in
18980
darwin* | rhapsody*)
18981
dynamic_linker="$host_os dyld"
18982
version_type=darwin
18985
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18986
soname_spec='${libname}${release}${major}$shared_ext'
18987
shlibpath_overrides_runpath=yes
18988
shlibpath_var=DYLD_LIBRARY_PATH
18989
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18990
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18991
if test "$GCC" = yes; then
18992
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18994
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18996
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19003
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19004
soname_spec='${libname}${release}${shared_ext}$major'
19005
shlibpath_var=LD_LIBRARY_PATH
19016
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19017
soname_spec='${libname}${release}${shared_ext}$major'
19018
shlibpath_var=LD_LIBRARY_PATH
19019
shlibpath_overrides_runpath=no
19020
hardcode_into_libs=yes
19021
dynamic_linker='GNU ld.so'
19024
freebsd* | dragonfly*)
19025
# DragonFly does not have aout. When/if they implement a new
19026
# versioning mechanism, adjust this.
19027
if test -x /usr/bin/objformat; then
19028
objformat=`/usr/bin/objformat`
19031
freebsd[123]*) objformat=aout ;;
19032
*) objformat=elf ;;
19035
version_type=freebsd-$objformat
19036
case $version_type in
19038
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19043
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19047
shlibpath_var=LD_LIBRARY_PATH
19050
shlibpath_overrides_runpath=yes
19052
freebsd3.[01]* | freebsdelf3.[01]*)
19053
shlibpath_overrides_runpath=yes
19054
hardcode_into_libs=yes
19056
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19057
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19058
shlibpath_overrides_runpath=no
19059
hardcode_into_libs=yes
19061
freebsd*) # from 4.6 on
19062
shlibpath_overrides_runpath=yes
19063
hardcode_into_libs=yes
19072
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19073
soname_spec='${libname}${release}${shared_ext}$major'
19074
shlibpath_var=LD_LIBRARY_PATH
19075
hardcode_into_libs=yes
19078
hpux9* | hpux10* | hpux11*)
19079
# Give a soname corresponding to the major version so that dld.sl refuses to
19080
# link against other versions.
19087
hardcode_into_libs=yes
19088
dynamic_linker="$host_os dld.so"
19089
shlibpath_var=LD_LIBRARY_PATH
19090
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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
if test "X$HPUX_IA64_MODE" = X32; then
19094
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19096
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19098
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19102
hardcode_into_libs=yes
19103
dynamic_linker="$host_os dld.sl"
19104
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19105
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19106
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19107
soname_spec='${libname}${release}${shared_ext}$major'
19108
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19109
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19113
dynamic_linker="$host_os dld.sl"
19114
shlibpath_var=SHLIB_PATH
19115
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19116
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19117
soname_spec='${libname}${release}${shared_ext}$major'
19120
# HP-UX runs *really* slowly unless shared libraries are mode 555.
19121
postinstall_cmds='chmod 555 $lib'
19128
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19129
soname_spec='${libname}${release}${shared_ext}$major'
19130
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19131
shlibpath_var=LD_LIBRARY_PATH
19132
shlibpath_overrides_runpath=no
19133
hardcode_into_libs=yes
19136
irix5* | irix6* | nonstopux*)
19138
nonstopux*) version_type=nonstopux ;;
19140
if test "$lt_cv_prog_gnu_ld" = yes; then
19148
soname_spec='${libname}${release}${shared_ext}$major'
19149
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19151
irix5* | nonstopux*)
19152
libsuff= shlibsuff=
19155
case $LD in # libtool.m4 will add one of these switches to LD
19156
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19157
libsuff= shlibsuff= libmagic=32-bit;;
19158
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19159
libsuff=32 shlibsuff=N32 libmagic=N32;;
19160
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19161
libsuff=64 shlibsuff=64 libmagic=64-bit;;
19162
*) libsuff= shlibsuff= libmagic=never-match;;
19166
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19167
shlibpath_overrides_runpath=no
19168
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19169
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19170
hardcode_into_libs=yes
19173
# No shared lib support for Linux oldld, aout, or coff.
19174
linux*oldld* | linux*aout* | linux*coff*)
19178
# This must be Linux ELF.
19183
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19184
soname_spec='${libname}${release}${shared_ext}$major'
19185
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19186
shlibpath_var=LD_LIBRARY_PATH
19187
shlibpath_overrides_runpath=no
19188
# This implies no fast_install, which is unacceptable.
19189
# Some rework will be needed to allow for fast_install
19190
# before this can be enabled.
19191
hardcode_into_libs=yes
19193
# find out which ABI we are using
19195
case "$host_cpu" in
19196
x86_64*|s390x*|powerpc64*)
19197
echo '#line 19197 "configure"' > conftest.$ac_ext
19198
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19199
(eval $ac_compile) 2>&5
19201
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202
(exit $ac_status); }; then
19203
case `/usr/bin/file conftest.$ac_objext` in
19206
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
19214
# Append ld.so.conf contents to the search path
19215
if test -f /etc/ld.so.conf; then
19216
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
19217
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
19220
# We used to test for /lib/ld.so.1 and disable shared libraries on
19221
# powerpc, because MkLinux only supported shared libraries with the
19222
# GNU dynamic linker. Since this was broken with cross compilers,
19223
# most powerpc-linux boxes support dynamic linking these days and
19224
# people can always --disable-shared, the test was removed, and we
19225
# assume the GNU/Linux dynamic linker is in use.
19226
dynamic_linker='GNU/Linux ld.so'
19233
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19234
soname_spec='${libname}${release}${shared_ext}$major'
19235
shlibpath_var=LD_LIBRARY_PATH
19236
shlibpath_overrides_runpath=no
19237
hardcode_into_libs=yes
19238
dynamic_linker='GNU ld.so'
19245
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19246
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19247
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19248
dynamic_linker='NetBSD (a.out) ld.so'
19250
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19251
soname_spec='${libname}${release}${shared_ext}$major'
19252
dynamic_linker='NetBSD ld.elf_so'
19254
shlibpath_var=LD_LIBRARY_PATH
19255
shlibpath_overrides_runpath=yes
19256
hardcode_into_libs=yes
19261
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19262
shlibpath_var=LD_LIBRARY_PATH
19263
shlibpath_overrides_runpath=yes
19270
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19271
soname_spec='${libname}${release}${shared_ext}$major'
19272
shlibpath_var=LD_LIBRARY_PATH
19273
shlibpath_overrides_runpath=yes
19278
sys_lib_dlsearch_path_spec="/usr/lib"
19280
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19282
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19283
*) need_version=no ;;
19285
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19286
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19287
shlibpath_var=LD_LIBRARY_PATH
19288
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19290
openbsd2.[89] | openbsd2.[89].*)
19291
shlibpath_overrides_runpath=no
19294
shlibpath_overrides_runpath=yes
19298
shlibpath_overrides_runpath=yes
19303
libname_spec='$name'
19306
library_names_spec='$libname${shared_ext} $libname.a'
19307
dynamic_linker='OS/2 ld.exe'
19308
shlibpath_var=LIBPATH
19311
osf3* | osf4* | osf5*)
19315
soname_spec='${libname}${release}${shared_ext}$major'
19316
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19317
shlibpath_var=LD_LIBRARY_PATH
19318
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19319
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19326
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19327
soname_spec='${libname}${release}${shared_ext}$major'
19328
shlibpath_var=LD_LIBRARY_PATH
19329
shlibpath_overrides_runpath=yes
19330
hardcode_into_libs=yes
19331
# ldd complains unless libraries are executable
19332
postinstall_cmds='chmod +x $lib'
19337
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19338
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19339
shlibpath_var=LD_LIBRARY_PATH
19340
shlibpath_overrides_runpath=yes
19341
if test "$with_gnu_ld" = yes; then
19349
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19350
soname_spec='${libname}${release}${shared_ext}$major'
19351
shlibpath_var=LD_LIBRARY_PATH
19352
case $host_vendor in
19354
shlibpath_overrides_runpath=no
19356
export_dynamic_flag_spec='${wl}-Blargedynsym'
19357
runpath_var=LD_RUN_PATH
19365
shlibpath_overrides_runpath=no
19366
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19372
if test -d /usr/nec ;then
19374
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19375
soname_spec='$libname${shared_ext}.$major'
19376
shlibpath_var=LD_LIBRARY_PATH
19380
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19381
version_type=freebsd-elf
19384
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19385
soname_spec='${libname}${release}${shared_ext}$major'
19386
shlibpath_var=LD_LIBRARY_PATH
19387
hardcode_into_libs=yes
19388
if test "$with_gnu_ld" = yes; then
19389
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19390
shlibpath_overrides_runpath=no
19392
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19393
shlibpath_overrides_runpath=yes
19396
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19400
sys_lib_dlsearch_path_spec='/usr/lib'
19405
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19406
soname_spec='${libname}${release}${shared_ext}$major'
19407
shlibpath_var=LD_LIBRARY_PATH
19414
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19415
echo "${ECHO_T}$dynamic_linker" >&6
19416
test "$dynamic_linker" = no && can_build_shared=no
19418
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19419
if test "$GCC" = yes; then
19420
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19423
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19424
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19425
hardcode_action_GCJ=
19426
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19427
test -n "$runpath_var_GCJ" || \
19428
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19430
# We can hardcode non-existant directories.
19431
if test "$hardcode_direct_GCJ" != no &&
19432
# If the only mechanism to avoid hardcoding is shlibpath_var, we
19433
# have to relink, otherwise we might link with an installed library
19434
# when we should be linking with a yet-to-be-installed one
19435
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19436
test "$hardcode_minus_L_GCJ" != no; then
19437
# Linking always hardcodes the temporary library directory.
19438
hardcode_action_GCJ=relink
19440
# We can link without hardcoding, and we can hardcode nonexisting dirs.
19441
hardcode_action_GCJ=immediate
19444
# We cannot hardcode anything, or else we can only hardcode existing
19446
hardcode_action_GCJ=unsupported
19448
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19449
echo "${ECHO_T}$hardcode_action_GCJ" >&6
19451
if test "$hardcode_action_GCJ" = relink; then
19452
# Fast installation is not supported
19453
enable_fast_install=no
19454
elif test "$shlibpath_overrides_runpath" = yes ||
19455
test "$enable_shared" = no; then
19456
# Fast installation is not necessary
19457
enable_fast_install=needless
19461
# The else clause should only fire when bootstrapping the
19462
# libtool distribution, otherwise you forgot to ship ltmain.sh
19463
# with your package, and you will get complaints that there are
19464
# no rules to generate ltmain.sh.
19465
if test -f "$ltmain"; then
19466
# See if we are running on zsh, and set the options which allow our commands through
19467
# without removal of \ escapes.
19468
if test -n "${ZSH_VERSION+set}" ; then
19469
setopt NO_GLOB_SUBST
19471
# Now quote all the things that may contain metacharacters while being
19472
# careful not to overquote the AC_SUBSTed values. We take copies of the
19473
# variables and quote the copies for generation of the libtool script.
19474
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19476
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19477
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19478
deplibs_check_method reload_flag reload_cmds need_locks \
19479
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19480
lt_cv_sys_global_symbol_to_c_name_address \
19481
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19482
old_postinstall_cmds old_postuninstall_cmds \
19486
lt_prog_compiler_wl_GCJ \
19487
lt_prog_compiler_pic_GCJ \
19488
lt_prog_compiler_static_GCJ \
19489
lt_prog_compiler_no_builtin_flag_GCJ \
19490
export_dynamic_flag_spec_GCJ \
19491
thread_safe_flag_spec_GCJ \
19492
whole_archive_flag_spec_GCJ \
19493
enable_shared_with_static_runtimes_GCJ \
19494
old_archive_cmds_GCJ \
19495
old_archive_from_new_cmds_GCJ \
19496
predep_objects_GCJ \
19497
postdep_objects_GCJ \
19500
compiler_lib_search_path_GCJ \
19502
archive_expsym_cmds_GCJ \
19503
postinstall_cmds_GCJ \
19504
postuninstall_cmds_GCJ \
19505
old_archive_from_expsyms_cmds_GCJ \
19506
allow_undefined_flag_GCJ \
19507
no_undefined_flag_GCJ \
19508
export_symbols_cmds_GCJ \
19509
hardcode_libdir_flag_spec_GCJ \
19510
hardcode_libdir_flag_spec_ld_GCJ \
19511
hardcode_libdir_separator_GCJ \
19512
hardcode_automatic_GCJ \
19514
module_expsym_cmds_GCJ \
19515
lt_cv_prog_compiler_c_o_GCJ \
19516
exclude_expsyms_GCJ \
19517
include_expsyms_GCJ; do
19520
old_archive_cmds_GCJ | \
19521
old_archive_from_new_cmds_GCJ | \
19522
archive_cmds_GCJ | \
19523
archive_expsym_cmds_GCJ | \
19524
module_cmds_GCJ | \
19525
module_expsym_cmds_GCJ | \
19526
old_archive_from_expsyms_cmds_GCJ | \
19527
export_symbols_cmds_GCJ | \
19528
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19529
postinstall_cmds | postuninstall_cmds | \
19530
old_postinstall_cmds | old_postuninstall_cmds | \
19531
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19532
# Double-quote double-evaled strings.
19533
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19536
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19542
*'\$0 --fallback-echo"')
19543
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19549
cat <<__EOF__ >> "$cfgfile"
19550
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19552
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19554
# Shell to use when invoking shell scripts.
19557
# Whether or not to build shared libraries.
19558
build_libtool_libs=$enable_shared
19560
# Whether or not to build static libraries.
19561
build_old_libs=$enable_static
19563
# Whether or not to add -lc for building shared libraries.
19564
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19566
# Whether or not to disallow shared libs when runtime libs are static
19567
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19569
# Whether or not to optimize for fast installation.
19570
fast_install=$enable_fast_install
19573
host_alias=$host_alias
19577
# The build system.
19578
build_alias=$build_alias
19582
# An echo program that does not interpret backslashes.
19587
AR_FLAGS=$lt_AR_FLAGS
19592
# LTCC compiler flags.
19593
LTCFLAGS=$lt_LTCFLAGS
19595
# A language-specific compiler.
19596
CC=$lt_compiler_GCJ
19598
# Is the compiler the GNU C compiler?
19604
# The linker used to build libraries.
19607
# Whether we need hard or soft links.
19610
# A BSD-compatible nm program.
19613
# A symbol stripping program
19616
# Used to examine libraries when file_magic_cmd begins "file"
19617
MAGIC_CMD=$MAGIC_CMD
19619
# Used on cygwin: DLL creation program.
19622
# Used on cygwin: object dumper.
19625
# Used on cygwin: assembler.
19628
# The name of the directory that contains temporary libtool files.
19631
# How to create reloadable object files.
19632
reload_flag=$lt_reload_flag
19633
reload_cmds=$lt_reload_cmds
19635
# How to pass a linker flag through the compiler.
19636
wl=$lt_lt_prog_compiler_wl_GCJ
19638
# Object file suffix (normally "o").
19639
objext="$ac_objext"
19641
# Old archive suffix (normally "a").
19644
# Shared library suffix (normally ".so").
19645
shrext_cmds='$shrext_cmds'
19647
# Executable file suffix (normally "").
19650
# Additional compiler flags for building library objects.
19651
pic_flag=$lt_lt_prog_compiler_pic_GCJ
19654
# What is the maximum length of a command?
19655
max_cmd_len=$lt_cv_sys_max_cmd_len
19657
# Does compiler simultaneously support -c and -o options?
19658
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19660
# Must we lock files when doing compilation?
19661
need_locks=$lt_need_locks
19663
# Do we need the lib prefix for modules?
19664
need_lib_prefix=$need_lib_prefix
19666
# Do we need a version for libraries?
19667
need_version=$need_version
19669
# Whether dlopen is supported.
19670
dlopen_support=$enable_dlopen
19672
# Whether dlopen of programs is supported.
19673
dlopen_self=$enable_dlopen_self
19675
# Whether dlopen of statically linked programs is supported.
19676
dlopen_self_static=$enable_dlopen_self_static
19678
# Compiler flag to prevent dynamic linking.
19679
link_static_flag=$lt_lt_prog_compiler_static_GCJ
19681
# Compiler flag to turn off builtin functions.
19682
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19684
# Compiler flag to allow reflexive dlopens.
19685
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19687
# Compiler flag to generate shared objects directly from archives.
19688
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19690
# Compiler flag to generate thread-safe objects.
19691
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19693
# Library versioning type.
19694
version_type=$version_type
19696
# Format of library name prefix.
19697
libname_spec=$lt_libname_spec
19699
# List of archive names. First name is the real one, the rest are links.
19700
# The last name is the one that the linker finds with -lNAME.
19701
library_names_spec=$lt_library_names_spec
19703
# The coded name of the library, if different from the real name.
19704
soname_spec=$lt_soname_spec
19706
# Commands used to build and install an old-style archive.
19708
old_archive_cmds=$lt_old_archive_cmds_GCJ
19709
old_postinstall_cmds=$lt_old_postinstall_cmds
19710
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19712
# Create an old-style archive from a shared archive.
19713
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19715
# Create a temporary old-style archive to link instead of a shared archive.
19716
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19718
# Commands used to build and install a shared archive.
19719
archive_cmds=$lt_archive_cmds_GCJ
19720
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19721
postinstall_cmds=$lt_postinstall_cmds
19722
postuninstall_cmds=$lt_postuninstall_cmds
19724
# Commands used to build a loadable module (assumed same as above if empty)
19725
module_cmds=$lt_module_cmds_GCJ
19726
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19728
# Commands to strip libraries.
19729
old_striplib=$lt_old_striplib
19730
striplib=$lt_striplib
19732
# Dependencies to place before the objects being linked to create a
19734
predep_objects=$lt_predep_objects_GCJ
19736
# Dependencies to place after the objects being linked to create a
19738
postdep_objects=$lt_postdep_objects_GCJ
19740
# Dependencies to place before the objects being linked to create a
19742
predeps=$lt_predeps_GCJ
19744
# Dependencies to place after the objects being linked to create a
19746
postdeps=$lt_postdeps_GCJ
19748
# The library search path used internally by the compiler when linking
19749
# a shared library.
19750
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19752
# Method to check whether dependent libraries are shared objects.
19753
deplibs_check_method=$lt_deplibs_check_method
19755
# Command to use when deplibs_check_method == file_magic.
19756
file_magic_cmd=$lt_file_magic_cmd
19758
# Flag that allows shared libraries with undefined symbols to be built.
19759
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19761
# Flag that forces no undefined symbols.
19762
no_undefined_flag=$lt_no_undefined_flag_GCJ
19764
# Commands used to finish a libtool library installation in a directory.
19765
finish_cmds=$lt_finish_cmds
19767
# Same as above, but a single script fragment to be evaled but not shown.
19768
finish_eval=$lt_finish_eval
19770
# Take the output of nm and produce a listing of raw symbols and C names.
19771
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19773
# Transform the output of nm in a proper C declaration
19774
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19776
# Transform the output of nm in a C name address pair
19777
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19779
# This is the shared library runtime path variable.
19780
runpath_var=$runpath_var
19782
# This is the shared library path variable.
19783
shlibpath_var=$shlibpath_var
19785
# Is shlibpath searched before the hard-coded library search path?
19786
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19788
# How to hardcode a shared library path into an executable.
19789
hardcode_action=$hardcode_action_GCJ
19791
# Whether we should hardcode library paths into libraries.
19792
hardcode_into_libs=$hardcode_into_libs
19794
# Flag to hardcode \$libdir into a binary during linking.
19795
# This must work even if \$libdir does not exist.
19796
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19798
# If ld is used when linking, flag to hardcode \$libdir into
19799
# a binary during linking. This must work even if \$libdir does
19801
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19803
# Whether we need a single -rpath flag with a separated argument.
19804
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19806
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19807
# resulting binary.
19808
hardcode_direct=$hardcode_direct_GCJ
19810
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19811
# resulting binary.
19812
hardcode_minus_L=$hardcode_minus_L_GCJ
19814
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19815
# the resulting binary.
19816
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19818
# Set to yes if building a shared library automatically hardcodes DIR into the library
19819
# and all subsequent libraries and executables linked against it.
19820
hardcode_automatic=$hardcode_automatic_GCJ
19822
# Variables whose values should be saved in libtool wrapper scripts and
19823
# restored at relink time.
19824
variables_saved_for_relink="$variables_saved_for_relink"
19826
# Whether libtool must link a program against all its dependency libraries.
19827
link_all_deplibs=$link_all_deplibs_GCJ
19829
# Compile-time system search path for libraries
19830
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19832
# Run-time system search path for libraries
19833
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19835
# Fix the shell variable \$srcfile for the compiler.
19836
fix_srcfile_path="$fix_srcfile_path_GCJ"
19838
# Set to yes if exported symbols are required.
19839
always_export_symbols=$always_export_symbols_GCJ
19841
# The commands to list exported symbols.
19842
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19844
# The commands to extract the exported symbol list from a shared archive.
19845
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19847
# Symbols that should not be listed in the preloaded symbols.
19848
exclude_expsyms=$lt_exclude_expsyms_GCJ
19850
# Symbols that must always be exported.
19851
include_expsyms=$lt_include_expsyms_GCJ
19853
# ### END LIBTOOL TAG CONFIG: $tagname
19859
# If there is no Makefile yet, we rely on a make rule to execute
19860
# `config.status --recheck' to rerun these tests and create the
19861
# libtool script then.
19862
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19863
if test -f "$ltmain_in"; then
19864
test -f Makefile && make "$ltmain"
19870
ac_cpp='$CPP $CPPFLAGS'
19871
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19872
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19873
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19886
# Source file extension for RC test sources.
19889
# Object file extension for compiled RC test sources.
19893
# Code to be used in simple compile tests
19894
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19896
# Code to be used in simple link tests
19897
lt_simple_link_test_code="$lt_simple_compile_test_code"
19899
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19901
# If no C compiler was specified, use CC.
19904
# If no C compiler flags were specified, use CFLAGS.
19905
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19907
# Allow CC to be a program name with arguments.
19911
# save warnings/boilerplate of simple test code
19912
ac_outfile=conftest.$ac_objext
19913
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19914
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19915
_lt_compiler_boilerplate=`cat conftest.err`
19918
ac_outfile=conftest.$ac_objext
19919
printf "$lt_simple_link_test_code" >conftest.$ac_ext
19920
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19921
_lt_linker_boilerplate=`cat conftest.err`
19925
# Allow CC to be a program name with arguments.
19930
for cc_temp in $compiler""; do
19932
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19933
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19938
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19940
lt_cv_prog_compiler_c_o_RC=yes
19942
# The else clause should only fire when bootstrapping the
19943
# libtool distribution, otherwise you forgot to ship ltmain.sh
19944
# with your package, and you will get complaints that there are
19945
# no rules to generate ltmain.sh.
19946
if test -f "$ltmain"; then
19947
# See if we are running on zsh, and set the options which allow our commands through
19948
# without removal of \ escapes.
19949
if test -n "${ZSH_VERSION+set}" ; then
19950
setopt NO_GLOB_SUBST
19952
# Now quote all the things that may contain metacharacters while being
19953
# careful not to overquote the AC_SUBSTed values. We take copies of the
19954
# variables and quote the copies for generation of the libtool script.
19955
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19957
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19958
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19959
deplibs_check_method reload_flag reload_cmds need_locks \
19960
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19961
lt_cv_sys_global_symbol_to_c_name_address \
19962
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19963
old_postinstall_cmds old_postuninstall_cmds \
19967
lt_prog_compiler_wl_RC \
19968
lt_prog_compiler_pic_RC \
19969
lt_prog_compiler_static_RC \
19970
lt_prog_compiler_no_builtin_flag_RC \
19971
export_dynamic_flag_spec_RC \
19972
thread_safe_flag_spec_RC \
19973
whole_archive_flag_spec_RC \
19974
enable_shared_with_static_runtimes_RC \
19975
old_archive_cmds_RC \
19976
old_archive_from_new_cmds_RC \
19977
predep_objects_RC \
19978
postdep_objects_RC \
19981
compiler_lib_search_path_RC \
19983
archive_expsym_cmds_RC \
19984
postinstall_cmds_RC \
19985
postuninstall_cmds_RC \
19986
old_archive_from_expsyms_cmds_RC \
19987
allow_undefined_flag_RC \
19988
no_undefined_flag_RC \
19989
export_symbols_cmds_RC \
19990
hardcode_libdir_flag_spec_RC \
19991
hardcode_libdir_flag_spec_ld_RC \
19992
hardcode_libdir_separator_RC \
19993
hardcode_automatic_RC \
19995
module_expsym_cmds_RC \
19996
lt_cv_prog_compiler_c_o_RC \
19997
exclude_expsyms_RC \
19998
include_expsyms_RC; do
20001
old_archive_cmds_RC | \
20002
old_archive_from_new_cmds_RC | \
20003
archive_cmds_RC | \
20004
archive_expsym_cmds_RC | \
20006
module_expsym_cmds_RC | \
20007
old_archive_from_expsyms_cmds_RC | \
20008
export_symbols_cmds_RC | \
20009
extract_expsyms_cmds | reload_cmds | finish_cmds | \
20010
postinstall_cmds | postuninstall_cmds | \
20011
old_postinstall_cmds | old_postuninstall_cmds | \
20012
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20013
# Double-quote double-evaled strings.
20014
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20017
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20023
*'\$0 --fallback-echo"')
20024
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20030
cat <<__EOF__ >> "$cfgfile"
20031
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20033
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20035
# Shell to use when invoking shell scripts.
20038
# Whether or not to build shared libraries.
20039
build_libtool_libs=$enable_shared
20041
# Whether or not to build static libraries.
20042
build_old_libs=$enable_static
20044
# Whether or not to add -lc for building shared libraries.
20045
build_libtool_need_lc=$archive_cmds_need_lc_RC
20047
# Whether or not to disallow shared libs when runtime libs are static
20048
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20050
# Whether or not to optimize for fast installation.
20051
fast_install=$enable_fast_install
20054
host_alias=$host_alias
20058
# The build system.
20059
build_alias=$build_alias
20063
# An echo program that does not interpret backslashes.
20068
AR_FLAGS=$lt_AR_FLAGS
20073
# LTCC compiler flags.
20074
LTCFLAGS=$lt_LTCFLAGS
20076
# A language-specific compiler.
20079
# Is the compiler the GNU C compiler?
20085
# The linker used to build libraries.
20088
# Whether we need hard or soft links.
20091
# A BSD-compatible nm program.
20094
# A symbol stripping program
20097
# Used to examine libraries when file_magic_cmd begins "file"
20098
MAGIC_CMD=$MAGIC_CMD
20100
# Used on cygwin: DLL creation program.
20103
# Used on cygwin: object dumper.
20106
# Used on cygwin: assembler.
20109
# The name of the directory that contains temporary libtool files.
20112
# How to create reloadable object files.
20113
reload_flag=$lt_reload_flag
20114
reload_cmds=$lt_reload_cmds
20116
# How to pass a linker flag through the compiler.
20117
wl=$lt_lt_prog_compiler_wl_RC
20119
# Object file suffix (normally "o").
20120
objext="$ac_objext"
20122
# Old archive suffix (normally "a").
20125
# Shared library suffix (normally ".so").
20126
shrext_cmds='$shrext_cmds'
20128
# Executable file suffix (normally "").
20131
# Additional compiler flags for building library objects.
20132
pic_flag=$lt_lt_prog_compiler_pic_RC
20135
# What is the maximum length of a command?
20136
max_cmd_len=$lt_cv_sys_max_cmd_len
20138
# Does compiler simultaneously support -c and -o options?
20139
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20141
# Must we lock files when doing compilation?
20142
need_locks=$lt_need_locks
20144
# Do we need the lib prefix for modules?
20145
need_lib_prefix=$need_lib_prefix
20147
# Do we need a version for libraries?
20148
need_version=$need_version
20150
# Whether dlopen is supported.
20151
dlopen_support=$enable_dlopen
20153
# Whether dlopen of programs is supported.
20154
dlopen_self=$enable_dlopen_self
20156
# Whether dlopen of statically linked programs is supported.
20157
dlopen_self_static=$enable_dlopen_self_static
20159
# Compiler flag to prevent dynamic linking.
20160
link_static_flag=$lt_lt_prog_compiler_static_RC
20162
# Compiler flag to turn off builtin functions.
20163
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20165
# Compiler flag to allow reflexive dlopens.
20166
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20168
# Compiler flag to generate shared objects directly from archives.
20169
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20171
# Compiler flag to generate thread-safe objects.
20172
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20174
# Library versioning type.
20175
version_type=$version_type
20177
# Format of library name prefix.
20178
libname_spec=$lt_libname_spec
20180
# List of archive names. First name is the real one, the rest are links.
20181
# The last name is the one that the linker finds with -lNAME.
20182
library_names_spec=$lt_library_names_spec
20184
# The coded name of the library, if different from the real name.
20185
soname_spec=$lt_soname_spec
20187
# Commands used to build and install an old-style archive.
20189
old_archive_cmds=$lt_old_archive_cmds_RC
20190
old_postinstall_cmds=$lt_old_postinstall_cmds
20191
old_postuninstall_cmds=$lt_old_postuninstall_cmds
20193
# Create an old-style archive from a shared archive.
20194
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20196
# Create a temporary old-style archive to link instead of a shared archive.
20197
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20199
# Commands used to build and install a shared archive.
20200
archive_cmds=$lt_archive_cmds_RC
20201
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20202
postinstall_cmds=$lt_postinstall_cmds
20203
postuninstall_cmds=$lt_postuninstall_cmds
20205
# Commands used to build a loadable module (assumed same as above if empty)
20206
module_cmds=$lt_module_cmds_RC
20207
module_expsym_cmds=$lt_module_expsym_cmds_RC
20209
# Commands to strip libraries.
20210
old_striplib=$lt_old_striplib
20211
striplib=$lt_striplib
20213
# Dependencies to place before the objects being linked to create a
20215
predep_objects=$lt_predep_objects_RC
20217
# Dependencies to place after the objects being linked to create a
20219
postdep_objects=$lt_postdep_objects_RC
20221
# Dependencies to place before the objects being linked to create a
20223
predeps=$lt_predeps_RC
20225
# Dependencies to place after the objects being linked to create a
20227
postdeps=$lt_postdeps_RC
20229
# The library search path used internally by the compiler when linking
20230
# a shared library.
20231
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20233
# Method to check whether dependent libraries are shared objects.
20234
deplibs_check_method=$lt_deplibs_check_method
20236
# Command to use when deplibs_check_method == file_magic.
20237
file_magic_cmd=$lt_file_magic_cmd
20239
# Flag that allows shared libraries with undefined symbols to be built.
20240
allow_undefined_flag=$lt_allow_undefined_flag_RC
20242
# Flag that forces no undefined symbols.
20243
no_undefined_flag=$lt_no_undefined_flag_RC
20245
# Commands used to finish a libtool library installation in a directory.
20246
finish_cmds=$lt_finish_cmds
20248
# Same as above, but a single script fragment to be evaled but not shown.
20249
finish_eval=$lt_finish_eval
20251
# Take the output of nm and produce a listing of raw symbols and C names.
20252
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20254
# Transform the output of nm in a proper C declaration
20255
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20257
# Transform the output of nm in a C name address pair
20258
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20260
# This is the shared library runtime path variable.
20261
runpath_var=$runpath_var
20263
# This is the shared library path variable.
20264
shlibpath_var=$shlibpath_var
20266
# Is shlibpath searched before the hard-coded library search path?
20267
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20269
# How to hardcode a shared library path into an executable.
20270
hardcode_action=$hardcode_action_RC
20272
# Whether we should hardcode library paths into libraries.
20273
hardcode_into_libs=$hardcode_into_libs
20275
# Flag to hardcode \$libdir into a binary during linking.
20276
# This must work even if \$libdir does not exist.
20277
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20279
# If ld is used when linking, flag to hardcode \$libdir into
20280
# a binary during linking. This must work even if \$libdir does
20282
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20284
# Whether we need a single -rpath flag with a separated argument.
20285
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20287
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20288
# resulting binary.
20289
hardcode_direct=$hardcode_direct_RC
20291
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20292
# resulting binary.
20293
hardcode_minus_L=$hardcode_minus_L_RC
20295
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20296
# the resulting binary.
20297
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20299
# Set to yes if building a shared library automatically hardcodes DIR into the library
20300
# and all subsequent libraries and executables linked against it.
20301
hardcode_automatic=$hardcode_automatic_RC
20303
# Variables whose values should be saved in libtool wrapper scripts and
20304
# restored at relink time.
20305
variables_saved_for_relink="$variables_saved_for_relink"
20307
# Whether libtool must link a program against all its dependency libraries.
20308
link_all_deplibs=$link_all_deplibs_RC
20310
# Compile-time system search path for libraries
20311
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20313
# Run-time system search path for libraries
20314
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20316
# Fix the shell variable \$srcfile for the compiler.
20317
fix_srcfile_path="$fix_srcfile_path_RC"
20319
# Set to yes if exported symbols are required.
20320
always_export_symbols=$always_export_symbols_RC
20322
# The commands to list exported symbols.
20323
export_symbols_cmds=$lt_export_symbols_cmds_RC
20325
# The commands to extract the exported symbol list from a shared archive.
20326
extract_expsyms_cmds=$lt_extract_expsyms_cmds
20328
# Symbols that should not be listed in the preloaded symbols.
20329
exclude_expsyms=$lt_exclude_expsyms_RC
20331
# Symbols that must always be exported.
20332
include_expsyms=$lt_include_expsyms_RC
20334
# ### END LIBTOOL TAG CONFIG: $tagname
20340
# If there is no Makefile yet, we rely on a make rule to execute
20341
# `config.status --recheck' to rerun these tests and create the
20342
# libtool script then.
20343
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20344
if test -f "$ltmain_in"; then
20345
test -f Makefile && make "$ltmain"
20351
ac_cpp='$CPP $CPPFLAGS'
20352
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20353
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20354
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20361
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20362
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20363
{ (exit 1); exit 1; }; }
20367
# Append the new tag name to the list of available tags.
20368
if test -n "$tagname" ; then
20369
available_tags="$available_tags $tagname"
20375
# Now substitute the updated list of available tags.
20376
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20377
mv "${ofile}T" "$ofile"
20381
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20382
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20383
{ (exit 1); exit 1; }; }
20389
# This can be used to rebuild libtool when needed
20390
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20392
# Always use our own libtool.
20393
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20395
# Prevent multiple expansion
20418
# Check whether --enable-binreloc or --disable-binreloc was given.
20419
if test "${enable_binreloc+set}" = set; then
20420
enableval="$enable_binreloc"
20421
enable_binreloc=$enableval
11638
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11639
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11640
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11641
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11642
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11643
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11644
$as_echo "yes" >&6; }
11646
# FIXME - insert some real tests, host_os isn't really good enough
11649
if test -n "$STRIP" ; then
11650
striplib="$STRIP -x"
11651
old_striplib="$STRIP -S"
11652
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11653
$as_echo "yes" >&6; }
11655
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11656
$as_echo "no" >&6; }
11660
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11661
$as_echo "no" >&6; }
11677
# Report which library types will actually be built
11678
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11679
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11680
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11681
$as_echo "$can_build_shared" >&6; }
11683
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11684
$as_echo_n "checking whether to build shared libraries... " >&6; }
11685
test "$can_build_shared" = "no" && enable_shared=no
11687
# On AIX, shared libraries and static libraries use the same namespace, and
11688
# are all built from PIC.
11691
test "$enable_shared" = yes && enable_static=no
11692
if test -n "$RANLIB"; then
11693
archive_cmds="$archive_cmds~\$RANLIB \$lib"
11694
postinstall_cmds='$RANLIB $lib'
11699
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11700
test "$enable_shared" = yes && enable_static=no
11704
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11705
$as_echo "$enable_shared" >&6; }
11707
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11708
$as_echo_n "checking whether to build static libraries... " >&6; }
11709
# Make sure either enable_shared or enable_static is yes.
11710
test "$enable_shared" = yes || enable_static=yes
11711
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11712
$as_echo "$enable_static" >&6; }
11719
ac_cpp='$CPP $CPPFLAGS'
11720
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11721
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11722
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11738
ac_config_commands="$ac_config_commands libtool"
11743
# Only expand once:
11748
# Check whether --enable-binreloc was given.
11749
if test "${enable_binreloc+set}" = set; then :
11750
enableval=$enable_binreloc; enable_binreloc=$enableval
20423
11752
enable_binreloc=auto
20426
# Check whether --enable-binreloc-threads or --disable-binreloc-threads was given.
20427
if test "${enable_binreloc_threads+set}" = set; then
20428
enableval="$enable_binreloc_threads"
20429
enable_binreloc_threads=$enableval
11756
# Check whether --enable-binreloc-threads was given.
11757
if test "${enable_binreloc_threads+set}" = set; then :
11758
enableval=$enable_binreloc_threads; enable_binreloc_threads=$enableval
20431
11760
enable_binreloc_threads=yes
20434
11764
BINRELOC_CFLAGS=
20435
11765
BINRELOC_LIBS=
20436
11766
if test "x$enable_binreloc" = "xauto"; then
20437
echo "$as_me:$LINENO: checking for /proc/self/maps" >&5
20438
echo $ECHO_N "checking for /proc/self/maps... $ECHO_C" >&6
20439
if test "${ac_cv_file__proc_self_maps+set}" = set; then
20440
echo $ECHO_N "(cached) $ECHO_C" >&6
11767
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/self/maps" >&5
11768
$as_echo_n "checking for /proc/self/maps... " >&6; }
11769
if test "${ac_cv_file__proc_self_maps+set}" = set; then :
11770
$as_echo_n "(cached) " >&6
20442
11772
test "$cross_compiling" = yes &&
20443
{ { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
20444
echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
20445
{ (exit 1); exit 1; }; }
11773
as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
20446
11774
if test -r "/proc/self/maps"; then
20447
11775
ac_cv_file__proc_self_maps=yes
20449
11777
ac_cv_file__proc_self_maps=no
20452
echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_maps" >&5
20453
echo "${ECHO_T}$ac_cv_file__proc_self_maps" >&6
20455
echo "$as_me:$LINENO: checking whether everything is installed to the same prefix" >&5
20456
echo $ECHO_N "checking whether everything is installed to the same prefix... $ECHO_C" >&6
20457
if test "${br_cv_valid_prefixes+set}" = set; then
20458
echo $ECHO_N "(cached) $ECHO_C" >&6
11780
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__proc_self_maps" >&5
11781
$as_echo "$ac_cv_file__proc_self_maps" >&6; }
11782
if test "x$ac_cv_file__proc_self_maps" = x""yes; then :
11786
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether everything is installed to the same prefix" >&5
11787
$as_echo_n "checking whether everything is installed to the same prefix... " >&6; }
11788
if test "${br_cv_valid_prefixes+set}" = set; then :
11789
$as_echo_n "(cached) " >&6
20461
11792
if test "$bindir" = '${exec_prefix}/bin' -a "$sbindir" = '${exec_prefix}/sbin' -a \
21458
13156
# Have a temporary directory for convenience. Make it in the build tree
21459
# simply because there is no reason to put it here, and in addition,
13157
# simply because there is no reason against having it here, and in addition,
21460
13158
# creating and moving files from /tmp can sometimes cause problems.
21461
# Create a temporary directory, and hook for its removal unless debugging.
13159
# Hook for its removal unless debugging.
13160
# Note that there is a small window in which the directory will not be cleaned:
13161
# after its creation but before its name has been assigned to `$tmp'.
21464
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21465
trap '{ (exit 1); exit 1; }' 1 2 13 15
13165
trap 'exit_status=$?
13166
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13168
trap 'as_fn_exit 1' 1 2 13 15
21468
13170
# Create a (secure) tmp directory for tmp files.
21471
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13173
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21472
13174
test -n "$tmp" && test -d "$tmp"
21475
tmp=./confstat$$-$RANDOM
21476
(umask 077 && mkdir $tmp)
13177
tmp=./conf$$-$RANDOM
13178
(umask 077 && mkdir "$tmp")
13179
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13181
# Set up the scripts for CONFIG_FILES section.
13182
# No need to generate them if there are no CONFIG_FILES.
13183
# This happens for instance with `./config.status config.h'.
13184
if test -n "$CONFIG_FILES"; then
13187
ac_cr=`echo X | tr X '\015'`
13188
# On cygwin, bash can eat \r inside `` if the user requested igncr.
13189
# But we know of no other shell where ac_cr would be empty at this
13190
# point, so we can use a bashism as a fallback.
13191
if test "x$ac_cr" = x; then
13192
eval ac_cr=\$\'\\r\'
13194
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13195
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13198
ac_cs_awk_cr=$ac_cr
13201
echo 'BEGIN {' >"$tmp/subs1.awk" &&
21479
echo "$me: cannot create a temporary directory in ." >&2
21480
{ (exit 1); exit 1; }
21485
cat >>$CONFIG_STATUS <<_ACEOF
21488
# CONFIG_FILES section.
21491
# No need to generate the scripts if there are no CONFIG_FILES.
21492
# This happens for instance when ./config.status config.h
21493
if test -n "\$CONFIG_FILES"; then
21494
# Protect against being on the right side of a sed subst in config.status.
21495
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21496
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21497
s,@SHELL@,$SHELL,;t t
21498
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21499
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21500
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21501
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21502
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21503
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21504
s,@exec_prefix@,$exec_prefix,;t t
21505
s,@prefix@,$prefix,;t t
21506
s,@program_transform_name@,$program_transform_name,;t t
21507
s,@bindir@,$bindir,;t t
21508
s,@sbindir@,$sbindir,;t t
21509
s,@libexecdir@,$libexecdir,;t t
21510
s,@datadir@,$datadir,;t t
21511
s,@sysconfdir@,$sysconfdir,;t t
21512
s,@sharedstatedir@,$sharedstatedir,;t t
21513
s,@localstatedir@,$localstatedir,;t t
21514
s,@libdir@,$libdir,;t t
21515
s,@includedir@,$includedir,;t t
21516
s,@oldincludedir@,$oldincludedir,;t t
21517
s,@infodir@,$infodir,;t t
21518
s,@mandir@,$mandir,;t t
21519
s,@build_alias@,$build_alias,;t t
21520
s,@host_alias@,$host_alias,;t t
21521
s,@target_alias@,$target_alias,;t t
21522
s,@DEFS@,$DEFS,;t t
21523
s,@ECHO_C@,$ECHO_C,;t t
21524
s,@ECHO_N@,$ECHO_N,;t t
21525
s,@ECHO_T@,$ECHO_T,;t t
21526
s,@LIBS@,$LIBS,;t t
21527
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21528
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21529
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21530
s,@CYGPATH_W@,$CYGPATH_W,;t t
21531
s,@PACKAGE@,$PACKAGE,;t t
21532
s,@VERSION@,$VERSION,;t t
21533
s,@ACLOCAL@,$ACLOCAL,;t t
21534
s,@AUTOCONF@,$AUTOCONF,;t t
21535
s,@AUTOMAKE@,$AUTOMAKE,;t t
21536
s,@AUTOHEADER@,$AUTOHEADER,;t t
21537
s,@MAKEINFO@,$MAKEINFO,;t t
21538
s,@install_sh@,$install_sh,;t t
21539
s,@STRIP@,$STRIP,;t t
21540
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21541
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21542
s,@mkdir_p@,$mkdir_p,;t t
21544
s,@SET_MAKE@,$SET_MAKE,;t t
21545
s,@am__leading_dot@,$am__leading_dot,;t t
21546
s,@AMTAR@,$AMTAR,;t t
21547
s,@am__tar@,$am__tar,;t t
21548
s,@am__untar@,$am__untar,;t t
21550
s,@CFLAGS@,$CFLAGS,;t t
21551
s,@LDFLAGS@,$LDFLAGS,;t t
21552
s,@CPPFLAGS@,$CPPFLAGS,;t t
21553
s,@ac_ct_CC@,$ac_ct_CC,;t t
21554
s,@EXEEXT@,$EXEEXT,;t t
21555
s,@OBJEXT@,$OBJEXT,;t t
21556
s,@DEPDIR@,$DEPDIR,;t t
21557
s,@am__include@,$am__include,;t t
21558
s,@am__quote@,$am__quote,;t t
21559
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21560
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21561
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21562
s,@CCDEPMODE@,$CCDEPMODE,;t t
21563
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21564
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
21566
s,@EGREP@,$EGREP,;t t
21567
s,@build@,$build,;t t
21568
s,@build_cpu@,$build_cpu,;t t
21569
s,@build_vendor@,$build_vendor,;t t
21570
s,@build_os@,$build_os,;t t
21571
s,@host@,$host,;t t
21572
s,@host_cpu@,$host_cpu,;t t
21573
s,@host_vendor@,$host_vendor,;t t
21574
s,@host_os@,$host_os,;t t
21575
s,@LN_S@,$LN_S,;t t
21576
s,@ECHO@,$ECHO,;t t
21578
s,@ac_ct_AR@,$ac_ct_AR,;t t
21579
s,@RANLIB@,$RANLIB,;t t
21580
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21582
s,@CXXFLAGS@,$CXXFLAGS,;t t
21583
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21584
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
21585
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
21586
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
21587
s,@CXXCPP@,$CXXCPP,;t t
21589
s,@FFLAGS@,$FFLAGS,;t t
21590
s,@ac_ct_F77@,$ac_ct_F77,;t t
21591
s,@LIBTOOL@,$LIBTOOL,;t t
21592
s,@BINRELOC_CFLAGS@,$BINRELOC_CFLAGS,;t t
21593
s,@BINRELOC_LIBS@,$BINRELOC_LIBS,;t t
21594
s,@PKG_CONFIG@,$PKG_CONFIG,;t t
21595
s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
21596
s,@PACKAGE_CFLAGS@,$PACKAGE_CFLAGS,;t t
21597
s,@PACKAGE_LIBS@,$PACKAGE_LIBS,;t t
21598
s,@LIBOBJS@,$LIBOBJS,;t t
21599
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21604
cat >>$CONFIG_STATUS <<\_ACEOF
21605
# Split the substitutions into bite-sized pieces for seds with
21606
# small command number limits, like on Digital OSF/1 and HP-UX.
21607
ac_max_sed_lines=48
21608
ac_sed_frag=1 # Number of current file.
21609
ac_beg=1 # First line for current file.
21610
ac_end=$ac_max_sed_lines # Line after last line for current file.
21613
while $ac_more_lines; do
21614
if test $ac_beg -gt 1; then
21615
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21617
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21619
if test ! -s $tmp/subs.frag; then
21620
ac_more_lines=false
21622
# The purpose of the label and of the branching condition is to
21623
# speed up the sed processing (if there are no `@' at all, there
21624
# is no need to browse any of the substitutions).
21625
# These are the two extra sed commands mentioned above.
21627
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21628
if test -z "$ac_sed_cmds"; then
21629
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21631
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21633
ac_sed_frag=`expr $ac_sed_frag + 1`
21635
ac_end=`expr $ac_end + $ac_max_sed_lines`
21638
if test -z "$ac_sed_cmds"; then
13206
echo "cat >conf$$subs.awk <<_ACEOF" &&
13207
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13209
} >conf$$subs.sh ||
13210
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13211
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13213
for ac_last_try in false false false false false :; do
13214
. ./conf$$subs.sh ||
13215
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13217
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13218
if test $ac_delim_n = $ac_delim_num; then
13220
elif $ac_last_try; then
13221
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13223
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13226
rm -f conf$$subs.sh
13228
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13229
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13233
s/^/S["/; s/!.*/"]=/
13243
s/\(.\{148\}\)..*/\1/
13245
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13250
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13257
s/\(.\{148\}\)..*/\1/
13259
s/["\\]/\\&/g; s/^/"/; s/$/"/
13263
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13268
' <conf$$subs.awk | sed '
13273
' >>$CONFIG_STATUS || ac_write_fail=1
13274
rm -f conf$$subs.awk
13275
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13277
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13278
for (key in S) S_is_set[key] = 1
13284
nfields = split(line, field, "@")
13286
len = length(field[1])
13287
for (i = 2; i < nfields; i++) {
13289
keylen = length(key)
13290
if (S_is_set[key]) {
13292
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13293
len += length(value) + length(field[++i])
13304
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13305
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13306
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13309
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13310
|| as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13313
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13314
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13315
# trailing colons and then remove the whole line if VPATH becomes empty
13316
# (actually we leave an empty line to preserve line numbers).
13317
if test "x$srcdir" = x.; then
13318
ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13336
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21641
13337
fi # test -n "$CONFIG_FILES"
21644
cat >>$CONFIG_STATUS <<\_ACEOF
21645
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21646
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21648
- | *:- | *:-:* ) # input from stdin
21650
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21651
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21652
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21653
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21654
* ) ac_file_in=$ac_file.in ;;
21657
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21658
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13339
# Set up the scripts for CONFIG_HEADERS section.
13340
# No need to generate them if there are no CONFIG_HEADERS.
13341
# This happens for instance with `./config.status Makefile'.
13342
if test -n "$CONFIG_HEADERS"; then
13343
cat >"$tmp/defines.awk" <<\_ACAWK ||
13347
# Transform confdefs.h into an awk script `defines.awk', embedded as
13348
# here-document in config.status, that substitutes the proper values into
13349
# config.h.in to produce config.h.
13351
# Create a delimiter string that does not exist in confdefs.h, to ease
13352
# handling of long lines.
13354
for ac_last_try in false false :; do
13355
ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13356
if test -z "$ac_t"; then
13358
elif $ac_last_try; then
13359
as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13361
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13365
# For the awk script, D is an array of macro values keyed by name,
13366
# likewise P contains macro parameters if any. Preserve backslash
13367
# newline sequences.
13369
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13371
s/.\{148\}/&'"$ac_delim"'/g
13374
s/^[ ]*#[ ]*define[ ][ ]*/ /
13381
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13383
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13387
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13388
D["\1"]=" \3\\\\\\n"\\/p
13390
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13395
s/.\{148\}/&'"$ac_delim"'/g
13400
s/["\\]/\\&/g; s/^/"/; s/$/"/p
13403
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13405
' <confdefs.h | sed '
13406
s/'"$ac_delim"'/"\\\
13407
"/g' >>$CONFIG_STATUS || ac_write_fail=1
13409
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13410
for (key in D) D_is_set[key] = 1
13413
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13415
split(line, arg, " ")
13416
if (arg[1] == "#") {
13420
defundef = substr(arg[1], 2)
13423
split(mac1, mac2, "(") #)
13425
prefix = substr(line, 1, index(line, defundef) - 1)
13426
if (D_is_set[macro]) {
13427
# Preserve the white space surrounding the "#".
13428
print prefix "define", macro P[macro] D[macro]
13431
# Replace #undef with comments. This is necessary, for example,
13432
# in the case of _POSIX_SOURCE, which is predefined and required
13433
# on some systems where configure will not decide to define it.
13434
if (defundef == "undef") {
13435
print "/*", prefix defundef, macro, "*/"
13443
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13444
as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13445
fi # test -n "$CONFIG_HEADERS"
13448
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13453
:[FHLC]) ac_mode=$ac_tag; continue;;
13455
case $ac_mode$ac_tag in
13457
:L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
13458
:[FH]-) ac_tag=-:-;;
13459
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13476
-) ac_f="$tmp/stdin";;
13477
*) # Look for the file first in the build tree, then in the source tree
13478
# (if the path is not absolute). The absolute path cannot be DOS-style,
13479
# because $ac_f cannot contain `:'.
13483
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13485
as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
13487
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13488
as_fn_append ac_file_inputs " '$ac_f'"
13491
# Let's still pretend it is `configure' which instantiates (i.e., don't
13492
# use $as_me), people would be surprised to read:
13493
# /* config.h. Generated by config.status. */
13494
configure_input='Generated from '`
13495
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13497
if test x"$ac_file" != x-; then
13498
configure_input="$ac_file. $configure_input"
13499
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13500
$as_echo "$as_me: creating $ac_file" >&6;}
13502
# Neutralize special characters interpreted by sed in replacement strings.
13503
case $configure_input in #(
13504
*\&* | *\|* | *\\* )
13505
ac_sed_conf_input=`$as_echo "$configure_input" |
13506
sed 's/[\\\\&|]/\\\\&/g'`;; #(
13507
*) ac_sed_conf_input=$configure_input;;
13511
*:-:* | *:-) cat >"$tmp/stdin" \
13512
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13517
ac_dir=`$as_dirname -- "$ac_file" ||
21659
13518
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21660
13519
X"$ac_file" : 'X\(//\)[^/]' \| \
21661
13520
X"$ac_file" : 'X\(//\)$' \| \
21662
X"$ac_file" : 'X\(/\)' \| \
21663
. : '\(.\)' 2>/dev/null ||
21665
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21666
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
21667
/^X\(\/\/\)$/{ s//\1/; q; }
21668
/^X\(\/\).*/{ s//\1/; q; }
21670
{ if $as_mkdir_p; then
21675
while test ! -d "$as_dir"; do
21676
as_dirs="$as_dir $as_dirs"
21677
as_dir=`(dirname "$as_dir") 2>/dev/null ||
21678
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21679
X"$as_dir" : 'X\(//\)[^/]' \| \
21680
X"$as_dir" : 'X\(//\)$' \| \
21681
X"$as_dir" : 'X\(/\)' \| \
21682
. : '\(.\)' 2>/dev/null ||
21684
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21685
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
21686
/^X\(\/\/\)$/{ s//\1/; q; }
21687
/^X\(\/\).*/{ s//\1/; q; }
21690
test ! -n "$as_dirs" || mkdir $as_dirs
21691
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21692
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21693
{ (exit 1); exit 1; }; }; }
13521
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13522
$as_echo X"$ac_file" |
13523
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13527
/^X\(\/\/\)[^/].*/{
13540
as_dir="$ac_dir"; as_fn_mkdir_p
21695
13541
ac_builddir=.
21697
if test "$ac_dir" != .; then
21698
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21699
# A "../" for each directory in $ac_dir_suffix.
21700
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21702
ac_dir_suffix= ac_top_builddir=
13544
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13546
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13547
# A ".." for each directory in $ac_dir_suffix.
13548
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13549
case $ac_top_builddir_sub in
13550
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13551
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13554
ac_abs_top_builddir=$ac_pwd
13555
ac_abs_builddir=$ac_pwd$ac_dir_suffix
13556
# for backward compatibility:
13557
ac_top_builddir=$ac_top_build_prefix
21705
13559
case $srcdir in
21706
.) # No --srcdir option. We are building in place.
13560
.) # We are building in place.
21708
if test -z "$ac_top_builddir"; then
21711
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21713
[\\/]* | ?:[\\/]* ) # Absolute path.
13562
ac_top_srcdir=$ac_top_builddir_sub
13563
ac_abs_top_srcdir=$ac_pwd ;;
13564
[\\/]* | ?:[\\/]* ) # Absolute name.
21714
13565
ac_srcdir=$srcdir$ac_dir_suffix;
21715
ac_top_srcdir=$srcdir ;;
21716
*) # Relative path.
21717
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21718
ac_top_srcdir=$ac_top_builddir$srcdir ;;
21721
# Do not use `cd foo && pwd` to compute absolute paths, because
21722
# the directories may not exist.
21724
.) ac_abs_builddir="$ac_dir";;
21727
.) ac_abs_builddir=`pwd`;;
21728
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21729
*) ac_abs_builddir=`pwd`/"$ac_dir";;
21732
case $ac_abs_builddir in
21733
.) ac_abs_top_builddir=${ac_top_builddir}.;;
21735
case ${ac_top_builddir}. in
21736
.) ac_abs_top_builddir=$ac_abs_builddir;;
21737
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21738
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21741
case $ac_abs_builddir in
21742
.) ac_abs_srcdir=$ac_srcdir;;
21745
.) ac_abs_srcdir=$ac_abs_builddir;;
21746
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21747
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21750
case $ac_abs_builddir in
21751
.) ac_abs_top_srcdir=$ac_top_srcdir;;
21753
case $ac_top_srcdir in
21754
.) ac_abs_top_srcdir=$ac_abs_builddir;;
21755
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21756
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13566
ac_top_srcdir=$srcdir
13567
ac_abs_top_srcdir=$srcdir ;;
13568
*) # Relative name.
13569
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13570
ac_top_srcdir=$ac_top_build_prefix$srcdir
13571
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13573
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21761
13582
case $INSTALL in
21762
13583
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21763
*) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21766
if test x"$ac_file" != x-; then
21767
{ echo "$as_me:$LINENO: creating $ac_file" >&5
21768
echo "$as_me: creating $ac_file" >&6;}
21771
# Let's still pretend it is `configure' which instantiates (i.e., don't
21772
# use $as_me), people would be surprised to read:
21773
# /* config.h. Generated by config.status. */
21774
if test x"$ac_file" = x-; then
21777
configure_input="$ac_file. "
21779
configure_input=$configure_input"Generated from `echo $ac_file_in |
21780
sed 's,.*/,,'` by configure."
21782
# First look for the input files in the build tree, otherwise in the
21784
ac_file_inputs=`IFS=:
21785
for f in $ac_file_in; do
21787
-) echo $tmp/stdin ;;
21789
# Absolute (can't be DOS-style, as IFS=:)
21790
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21791
echo "$as_me: error: cannot find input file: $f" >&2;}
21792
{ (exit 1); exit 1; }; }
21795
if test -f "$f"; then
21798
elif test -f "$srcdir/$f"; then
21803
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21804
echo "$as_me: error: cannot find input file: $f" >&2;}
21805
{ (exit 1); exit 1; }; }
21808
done` || { (exit 1); exit 1; }
21810
cat >>$CONFIG_STATUS <<_ACEOF
13584
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13586
ac_MKDIR_P=$MKDIR_P
13588
[\\/$]* | ?:[\\/]* ) ;;
13589
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13593
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13594
# If the template does not know about datarootdir, expand it.
13595
# FIXME: This hack should be removed a few years after 2.60.
13596
ac_datarootdir_hack=; ac_datarootdir_seen=
13607
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13608
*datarootdir*) ac_datarootdir_seen=yes;;
13609
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13610
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13611
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13613
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13614
ac_datarootdir_hack='
13615
s&@datadir@&$datadir&g
13616
s&@docdir@&$docdir&g
13617
s&@infodir@&$infodir&g
13618
s&@localedir@&$localedir&g
13619
s&@mandir@&$mandir&g
13620
s&\\\${datarootdir}&$datarootdir&g' ;;
13624
# Neutralize VPATH when `$srcdir' = `.'.
13625
# Shell code in configure.ac might set extrasub.
13626
# FIXME: do we really want to maintain this feature?
13627
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13628
ac_sed_extra="$ac_vpsub
21814
cat >>$CONFIG_STATUS <<\_ACEOF
13631
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21816
13633
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21817
s,@configure_input@,$configure_input,;t t
21818
s,@srcdir@,$ac_srcdir,;t t
21819
s,@abs_srcdir@,$ac_abs_srcdir,;t t
21820
s,@top_srcdir@,$ac_top_srcdir,;t t
21821
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21822
s,@builddir@,$ac_builddir,;t t
21823
s,@abs_builddir@,$ac_abs_builddir,;t t
21824
s,@top_builddir@,$ac_top_builddir,;t t
21825
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21826
s,@INSTALL@,$ac_INSTALL,;t t
21827
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21829
if test x"$ac_file" != x-; then
21830
mv $tmp/out $ac_file
21838
cat >>$CONFIG_STATUS <<\_ACEOF
21841
# CONFIG_HEADER section.
21844
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21845
# NAME is the cpp macro being defined and VALUE is the value it is being given.
21847
# ac_d sets the value in "#define NAME VALUE" lines.
21848
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21849
ac_dB='[ ].*$,\1#\2'
21852
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21853
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21854
ac_uB='$,\1#\2define\3'
21858
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21859
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13634
s|@configure_input@|$ac_sed_conf_input|;t t
13635
s&@top_builddir@&$ac_top_builddir_sub&;t t
13636
s&@top_build_prefix@&$ac_top_build_prefix&;t t
13637
s&@srcdir@&$ac_srcdir&;t t
13638
s&@abs_srcdir@&$ac_abs_srcdir&;t t
13639
s&@top_srcdir@&$ac_top_srcdir&;t t
13640
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13641
s&@builddir@&$ac_builddir&;t t
13642
s&@abs_builddir@&$ac_abs_builddir&;t t
13643
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13644
s&@INSTALL@&$ac_INSTALL&;t t
13645
s&@MKDIR_P@&$ac_MKDIR_P&;t t
13646
$ac_datarootdir_hack
13648
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13649
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
13651
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13652
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13653
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13654
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13655
which seems to be undefined. Please make sure it is defined" >&5
13656
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13657
which seems to be undefined. Please make sure it is defined" >&2;}
21860
13660
case $ac_file in
21861
- | *:- | *:-:* ) # input from stdin
21863
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21864
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21865
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21866
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21867
* ) ac_file_in=$ac_file.in ;;
21870
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21871
echo "$as_me: creating $ac_file" >&6;}
21873
# First look for the input files in the build tree, otherwise in the
21875
ac_file_inputs=`IFS=:
21876
for f in $ac_file_in; do
21878
-) echo $tmp/stdin ;;
21880
# Absolute (can't be DOS-style, as IFS=:)
21881
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21882
echo "$as_me: error: cannot find input file: $f" >&2;}
21883
{ (exit 1); exit 1; }; }
21884
# Do quote $f, to prevent DOS paths from being IFS'd.
21887
if test -f "$f"; then
21890
elif test -f "$srcdir/$f"; then
21895
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21896
echo "$as_me: error: cannot find input file: $f" >&2;}
21897
{ (exit 1); exit 1; }; }
21900
done` || { (exit 1); exit 1; }
21901
# Remove the trailing spaces.
21902
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
21906
# Transform confdefs.h into two sed scripts, `conftest.defines' and
21907
# `conftest.undefs', that substitutes the proper values into
21908
# config.h.in to produce config.h. The first handles `#define'
21909
# templates, and the second `#undef' templates.
21910
# And first: Protect against being on the right side of a sed subst in
21911
# config.status. Protect against being in an unquoted here document
21912
# in config.status.
21913
rm -f conftest.defines conftest.undefs
21914
# Using a here document instead of a string reduces the quoting nightmare.
21915
# Putting comments in sed scripts is not portable.
21917
# `end' is used to avoid that the second main sed command (meant for
21918
# 0-ary CPP macros) applies to n-ary macro definitions.
21919
# See the Autoconf documentation for `clear'.
21920
cat >confdef2sed.sed <<\_ACEOF
21925
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21927
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21930
# If some macros were called several times there might be several times
21931
# the same #defines, which is useless. Nevertheless, we may not want to
21932
# sort them, since we want the *last* AC-DEFINE to be honored.
21933
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21934
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21935
rm -f confdef2sed.sed
21937
# This sed command replaces #undef with comments. This is necessary, for
21938
# example, in the case of _POSIX_SOURCE, which is predefined and required
21939
# on some systems where configure will not decide to define it.
21940
cat >>conftest.undefs <<\_ACEOF
21941
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21944
# Break up conftest.defines because some shells have a limit on the size
21945
# of here documents, and old seds have small limits too (100 cmds).
21946
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21947
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21948
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21949
echo ' :' >>$CONFIG_STATUS
21950
rm -f conftest.tail
21951
while grep . conftest.defines >/dev/null
21953
# Write a limited-size here document to $tmp/defines.sed.
21954
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21955
# Speed up: don't consider the non `#define' lines.
21956
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
21957
# Work around the forget-to-reset-the-flag bug.
21958
echo 't clr' >>$CONFIG_STATUS
21959
echo ': clr' >>$CONFIG_STATUS
21960
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21962
sed -f $tmp/defines.sed $tmp/in >$tmp/out
21964
mv $tmp/out $tmp/in
21966
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21967
rm -f conftest.defines
21968
mv conftest.tail conftest.defines
21970
rm -f conftest.defines
21971
echo ' fi # grep' >>$CONFIG_STATUS
21972
echo >>$CONFIG_STATUS
21974
# Break up conftest.undefs because some shells have a limit on the size
21975
# of here documents, and old seds have small limits too (100 cmds).
21976
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
21977
rm -f conftest.tail
21978
while grep . conftest.undefs >/dev/null
21980
# Write a limited-size here document to $tmp/undefs.sed.
21981
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21982
# Speed up: don't consider the non `#undef'
21983
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
21984
# Work around the forget-to-reset-the-flag bug.
21985
echo 't clr' >>$CONFIG_STATUS
21986
echo ': clr' >>$CONFIG_STATUS
21987
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21989
sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21991
mv $tmp/out $tmp/in
21993
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21994
rm -f conftest.undefs
21995
mv conftest.tail conftest.undefs
21997
rm -f conftest.undefs
21999
cat >>$CONFIG_STATUS <<\_ACEOF
22000
# Let's still pretend it is `configure' which instantiates (i.e., don't
22001
# use $as_me), people would be surprised to read:
22002
# /* config.h. Generated by config.status. */
22003
if test x"$ac_file" = x-; then
22004
echo "/* Generated by configure. */" >$tmp/config.h
22006
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22008
cat $tmp/in >>$tmp/config.h
13661
-) cat "$tmp/out" && rm -f "$tmp/out";;
13662
*) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13664
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
22010
13670
if test x"$ac_file" != x-; then
22011
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22012
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22013
echo "$as_me: $ac_file is unchanged" >&6;}
13672
$as_echo "/* $configure_input */" \
13673
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13674
} >"$tmp/config.h" \
13675
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
13676
if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13677
{ $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13678
$as_echo "$as_me: $ac_file is unchanged" >&6;}
22015
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22016
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22017
X"$ac_file" : 'X\(//\)[^/]' \| \
22018
X"$ac_file" : 'X\(//\)$' \| \
22019
X"$ac_file" : 'X\(/\)' \| \
22020
. : '\(.\)' 2>/dev/null ||
22022
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22023
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
22024
/^X\(\/\/\)$/{ s//\1/; q; }
22025
/^X\(\/\).*/{ s//\1/; q; }
22027
{ if $as_mkdir_p; then
22032
while test ! -d "$as_dir"; do
22033
as_dirs="$as_dir $as_dirs"
22034
as_dir=`(dirname "$as_dir") 2>/dev/null ||
22035
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22036
X"$as_dir" : 'X\(//\)[^/]' \| \
22037
X"$as_dir" : 'X\(//\)$' \| \
22038
X"$as_dir" : 'X\(/\)' \| \
22039
. : '\(.\)' 2>/dev/null ||
22041
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22042
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
22043
/^X\(\/\/\)$/{ s//\1/; q; }
22044
/^X\(\/\).*/{ s//\1/; q; }
22047
test ! -n "$as_dirs" || mkdir $as_dirs
22048
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22049
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22050
{ (exit 1); exit 1; }; }; }
22053
mv $tmp/config.h $ac_file
13681
mv "$tmp/config.h" "$ac_file" \
13682
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
22057
rm -f $tmp/config.h
13685
$as_echo "/* $configure_input */" \
13686
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13687
|| as_fn_error $? "could not create -" "$LINENO" 5
22059
# Compute $ac_file's index in $config_headers.
13689
# Compute "$ac_file"'s index in $config_headers.
22060
13691
_am_stamp_count=1
22061
13692
for _am_header in $config_headers :; do
22062
13693
case $_am_header in
22063
$ac_file | $ac_file:* )
13694
$_am_arg | $_am_arg:* )
22066
13697
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
22069
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
22070
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22071
X$ac_file : 'X\(//\)[^/]' \| \
22072
X$ac_file : 'X\(//\)$' \| \
22073
X$ac_file : 'X\(/\)' \| \
22074
. : '\(.\)' 2>/dev/null ||
22076
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22077
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
22078
/^X\(\/\/\)$/{ s//\1/; q; }
22079
/^X\(\/\).*/{ s//\1/; q; }
22080
s/.*/./; q'`/stamp-h$_am_stamp_count
22083
cat >>$CONFIG_STATUS <<\_ACEOF
22086
# CONFIG_COMMANDS section.
22088
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22089
ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22090
ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22091
ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22092
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22093
X"$ac_dest" : 'X\(//\)[^/]' \| \
22094
X"$ac_dest" : 'X\(//\)$' \| \
22095
X"$ac_dest" : 'X\(/\)' \| \
22096
. : '\(.\)' 2>/dev/null ||
22098
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22099
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
22100
/^X\(\/\/\)$/{ s//\1/; q; }
22101
/^X\(\/\).*/{ s//\1/; q; }
22103
{ if $as_mkdir_p; then
22108
while test ! -d "$as_dir"; do
22109
as_dirs="$as_dir $as_dirs"
22110
as_dir=`(dirname "$as_dir") 2>/dev/null ||
22111
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22112
X"$as_dir" : 'X\(//\)[^/]' \| \
22113
X"$as_dir" : 'X\(//\)$' \| \
22114
X"$as_dir" : 'X\(/\)' \| \
22115
. : '\(.\)' 2>/dev/null ||
22117
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22118
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
22119
/^X\(\/\/\)$/{ s//\1/; q; }
22120
/^X\(\/\).*/{ s//\1/; q; }
22123
test ! -n "$as_dirs" || mkdir $as_dirs
22124
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22125
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22126
{ (exit 1); exit 1; }; }; }
22130
if test "$ac_dir" != .; then
22131
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22132
# A "../" for each directory in $ac_dir_suffix.
22133
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22135
ac_dir_suffix= ac_top_builddir=
22139
.) # No --srcdir option. We are building in place.
22141
if test -z "$ac_top_builddir"; then
22144
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22146
[\\/]* | ?:[\\/]* ) # Absolute path.
22147
ac_srcdir=$srcdir$ac_dir_suffix;
22148
ac_top_srcdir=$srcdir ;;
22149
*) # Relative path.
22150
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22151
ac_top_srcdir=$ac_top_builddir$srcdir ;;
22154
# Do not use `cd foo && pwd` to compute absolute paths, because
22155
# the directories may not exist.
22157
.) ac_abs_builddir="$ac_dir";;
22160
.) ac_abs_builddir=`pwd`;;
22161
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22162
*) ac_abs_builddir=`pwd`/"$ac_dir";;
22165
case $ac_abs_builddir in
22166
.) ac_abs_top_builddir=${ac_top_builddir}.;;
22168
case ${ac_top_builddir}. in
22169
.) ac_abs_top_builddir=$ac_abs_builddir;;
22170
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22171
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22174
case $ac_abs_builddir in
22175
.) ac_abs_srcdir=$ac_srcdir;;
22178
.) ac_abs_srcdir=$ac_abs_builddir;;
22179
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22180
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22183
case $ac_abs_builddir in
22184
.) ac_abs_top_srcdir=$ac_top_srcdir;;
22186
case $ac_top_srcdir in
22187
.) ac_abs_top_srcdir=$ac_abs_builddir;;
22188
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22189
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22194
{ echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22195
echo "$as_me: executing $ac_dest commands" >&6;}
22197
depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22198
# Strip MF so we end up with the name of the file.
22199
mf=`echo "$mf" | sed -e 's/:.*$//'`
22200
# Check whether this is an Automake generated Makefile or not.
22201
# We used to match only the files named `Makefile.in', but
22202
# some people rename them; so instead we look at the file content.
22203
# Grep'ing the first line is not enough: some people post-process
22204
# each Makefile.in and add a new line on top of each file to say so.
22205
# So let's grep whole file.
22206
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22207
dirpart=`(dirname "$mf") 2>/dev/null ||
13700
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13701
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13702
X"$_am_arg" : 'X\(//\)[^/]' \| \
13703
X"$_am_arg" : 'X\(//\)$' \| \
13704
X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13705
$as_echo X"$_am_arg" |
13706
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13710
/^X\(\/\/\)[^/].*/{
13722
s/.*/./; q'`/stamp-h$_am_stamp_count
13725
:C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13726
$as_echo "$as_me: executing $ac_file commands" >&6;}
13731
case $ac_file$ac_mode in
13732
"depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13733
# Autoconf 2.62 quotes --file arguments for eval, but not when files
13734
# are listed without --file. Let's play safe and only enable the eval
13735
# if we detect the quoting.
13736
case $CONFIG_FILES in
13737
*\'*) eval set x "$CONFIG_FILES" ;;
13738
*) set x $CONFIG_FILES ;;
13743
# Strip MF so we end up with the name of the file.
13744
mf=`echo "$mf" | sed -e 's/:.*$//'`
13745
# Check whether this is an Automake generated Makefile or not.
13746
# We used to match only the files named `Makefile.in', but
13747
# some people rename them; so instead we look at the file content.
13748
# Grep'ing the first line is not enough: some people post-process
13749
# each Makefile.in and add a new line on top of each file to say so.
13750
# Grep'ing the whole file is not good either: AIX grep has a line
13751
# limit of 2048, but all sed's we know have understand at least 4000.
13752
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13753
dirpart=`$as_dirname -- "$mf" ||
22208
13754
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22209
13755
X"$mf" : 'X\(//\)[^/]' \| \
22210
13756
X"$mf" : 'X\(//\)$' \| \
22211
X"$mf" : 'X\(/\)' \| \
22212
. : '\(.\)' 2>/dev/null ||
22214
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22215
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
22216
/^X\(\/\/\)$/{ s//\1/; q; }
22217
/^X\(\/\).*/{ s//\1/; q; }
22222
# Extract the definition of DEPDIR, am__include, and am__quote
22223
# from the Makefile without running `make'.
22224
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22225
test -z "$DEPDIR" && continue
22226
am__include=`sed -n 's/^am__include = //p' < "$mf"`
22227
test -z "am__include" && continue
22228
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22229
# When using ansi2knr, U may be empty or an underscore; expand it
22230
U=`sed -n 's/^U = //p' < "$mf"`
22231
# Find all dependency output files, they are included files with
22232
# $(DEPDIR) in their names. We invoke sed twice because it is the
22233
# simplest approach to changing $(DEPDIR) to its actual value in the
22235
for file in `sed -n "
22236
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22237
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22238
# Make sure the directory exists.
22239
test -f "$dirpart/$file" && continue
22240
fdir=`(dirname "$file") 2>/dev/null ||
13757
X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13759
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13763
/^X\(\/\/\)[^/].*/{
13779
# Extract the definition of DEPDIR, am__include, and am__quote
13780
# from the Makefile without running `make'.
13781
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13782
test -z "$DEPDIR" && continue
13783
am__include=`sed -n 's/^am__include = //p' < "$mf"`
13784
test -z "am__include" && continue
13785
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13786
# When using ansi2knr, U may be empty or an underscore; expand it
13787
U=`sed -n 's/^U = //p' < "$mf"`
13788
# Find all dependency output files, they are included files with
13789
# $(DEPDIR) in their names. We invoke sed twice because it is the
13790
# simplest approach to changing $(DEPDIR) to its actual value in the
13792
for file in `sed -n "
13793
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13794
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13795
# Make sure the directory exists.
13796
test -f "$dirpart/$file" && continue
13797
fdir=`$as_dirname -- "$file" ||
22241
13798
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22242
13799
X"$file" : 'X\(//\)[^/]' \| \
22243
13800
X"$file" : 'X\(//\)$' \| \
22244
X"$file" : 'X\(/\)' \| \
22245
. : '\(.\)' 2>/dev/null ||
22247
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22248
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
22249
/^X\(\/\/\)$/{ s//\1/; q; }
22250
/^X\(\/\).*/{ s//\1/; q; }
22252
{ if $as_mkdir_p; then
22253
mkdir -p $dirpart/$fdir
22255
as_dir=$dirpart/$fdir
22257
while test ! -d "$as_dir"; do
22258
as_dirs="$as_dir $as_dirs"
22259
as_dir=`(dirname "$as_dir") 2>/dev/null ||
22260
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22261
X"$as_dir" : 'X\(//\)[^/]' \| \
22262
X"$as_dir" : 'X\(//\)$' \| \
22263
X"$as_dir" : 'X\(/\)' \| \
22264
. : '\(.\)' 2>/dev/null ||
22266
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22267
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
22268
/^X\(\/\/\)$/{ s//\1/; q; }
22269
/^X\(\/\).*/{ s//\1/; q; }
13801
X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13802
$as_echo X"$file" |
13803
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13807
/^X\(\/\/\)[^/].*/{
13820
as_dir=$dirpart/$fdir; as_fn_mkdir_p
13821
# echo "creating $dirpart/$file"
13822
echo '# dummy' > "$dirpart/$file"
22272
test ! -n "$as_dirs" || mkdir $as_dirs
22273
fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22274
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22275
{ (exit 1); exit 1; }; }; }
22277
# echo "creating $dirpart/$file"
22278
echo '# dummy' > "$dirpart/$file"
22286
cat >>$CONFIG_STATUS <<\_ACEOF
22288
{ (exit 0); exit 0; }
22290
chmod +x $CONFIG_STATUS
13829
# See if we are running on zsh, and set the options which allow our
13830
# commands through without removal of \ escapes.
13831
if test -n "${ZSH_VERSION+set}" ; then
13832
setopt NO_GLOB_SUBST
13835
cfgfile="${ofile}T"
13836
trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13839
cat <<_LT_EOF >> "$cfgfile"
13842
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13843
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13844
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13845
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13847
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13848
# 2006, 2007, 2008 Free Software Foundation, Inc.
13849
# Written by Gordon Matzigkeit, 1996
13851
# This file is part of GNU Libtool.
13853
# GNU Libtool is free software; you can redistribute it and/or
13854
# modify it under the terms of the GNU General Public License as
13855
# published by the Free Software Foundation; either version 2 of
13856
# the License, or (at your option) any later version.
13858
# As a special exception to the GNU General Public License,
13859
# if you distribute this file as part of a program or library that
13860
# is built using GNU Libtool, you may include this file under the
13861
# same distribution terms that you use for the rest of that program.
13863
# GNU Libtool is distributed in the hope that it will be useful,
13864
# but WITHOUT ANY WARRANTY; without even the implied warranty of
13865
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13866
# GNU General Public License for more details.
13868
# You should have received a copy of the GNU General Public License
13869
# along with GNU Libtool; see the file COPYING. If not, a copy
13870
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13871
# obtained by writing to the Free Software Foundation, Inc.,
13872
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13875
# The names of the tagged configurations supported by this script.
13878
# ### BEGIN LIBTOOL CONFIG
13880
# Whether or not to build static libraries.
13881
build_old_libs=$enable_static
13883
# Which release of libtool.m4 was used?
13884
macro_version=$macro_version
13885
macro_revision=$macro_revision
13887
# Whether or not to build shared libraries.
13888
build_libtool_libs=$enable_shared
13890
# What type of objects to build.
13893
# Whether or not to optimize for fast installation.
13894
fast_install=$enable_fast_install
13897
host_alias=$host_alias
13901
# The build system.
13902
build_alias=$build_alias
13906
# A sed program that does not truncate output.
13909
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13910
Xsed="\$SED -e 1s/^X//"
13912
# A grep program that handles long lines.
13918
# A literal string matcher.
13921
# A BSD- or MS-compatible name lister.
13924
# Whether we need soft or hard links.
13927
# What is the maximum length of a command?
13928
max_cmd_len=$max_cmd_len
13930
# Object file suffix (normally "o").
13933
# Executable file suffix (normally "").
13936
# whether the shell understands "unset".
13939
# turn spaces into newlines.
13942
# turn newlines into spaces.
13945
# How to create reloadable object files.
13946
reload_flag=$lt_reload_flag
13947
reload_cmds=$lt_reload_cmds
13949
# An object symbol dumper.
13950
OBJDUMP=$lt_OBJDUMP
13952
# Method to check whether dependent libraries are shared objects.
13953
deplibs_check_method=$lt_deplibs_check_method
13955
# Command to use when deplibs_check_method == "file_magic".
13956
file_magic_cmd=$lt_file_magic_cmd
13960
AR_FLAGS=$lt_AR_FLAGS
13962
# A symbol stripping program.
13965
# Commands used to install an old-style archive.
13967
old_postinstall_cmds=$lt_old_postinstall_cmds
13968
old_postuninstall_cmds=$lt_old_postuninstall_cmds
13973
# LTCC compiler flags.
13974
LTCFLAGS=$lt_CFLAGS
13976
# Take the output of nm and produce a listing of raw symbols and C names.
13977
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13979
# Transform the output of nm in a proper C declaration.
13980
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13982
# Transform the output of nm in a C name address pair.
13983
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13985
# Transform the output of nm in a C name address pair when lib prefix is needed.
13986
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13988
# The name of the directory that contains temporary libtool files.
13991
# Shell to use when invoking shell scripts.
13994
# An echo program that does not interpret backslashes.
13997
# Used to examine libraries when file_magic_cmd begins with "file".
13998
MAGIC_CMD=$MAGIC_CMD
14000
# Must we lock files when doing compilation?
14001
need_locks=$lt_need_locks
14003
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14004
DSYMUTIL=$lt_DSYMUTIL
14006
# Tool to change global to local symbols on Mac OS X.
14009
# Tool to manipulate fat objects and archives on Mac OS X.
14012
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14015
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14016
OTOOL64=$lt_OTOOL64
14018
# Old archive suffix (normally "a").
14021
# Shared library suffix (normally ".so").
14022
shrext_cmds=$lt_shrext_cmds
14024
# The commands to extract the exported symbol list from a shared archive.
14025
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14027
# Variables whose values should be saved in libtool wrapper scripts and
14028
# restored at link time.
14029
variables_saved_for_relink=$lt_variables_saved_for_relink
14031
# Do we need the "lib" prefix for modules?
14032
need_lib_prefix=$need_lib_prefix
14034
# Do we need a version for libraries?
14035
need_version=$need_version
14037
# Library versioning type.
14038
version_type=$version_type
14040
# Shared library runtime path variable.
14041
runpath_var=$runpath_var
14043
# Shared library path variable.
14044
shlibpath_var=$shlibpath_var
14046
# Is shlibpath searched before the hard-coded library search path?
14047
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14049
# Format of library name prefix.
14050
libname_spec=$lt_libname_spec
14052
# List of archive names. First name is the real one, the rest are links.
14053
# The last name is the one that the linker finds with -lNAME
14054
library_names_spec=$lt_library_names_spec
14056
# The coded name of the library, if different from the real name.
14057
soname_spec=$lt_soname_spec
14059
# Command to use after installation of a shared archive.
14060
postinstall_cmds=$lt_postinstall_cmds
14062
# Command to use after uninstallation of a shared archive.
14063
postuninstall_cmds=$lt_postuninstall_cmds
14065
# Commands used to finish a libtool library installation in a directory.
14066
finish_cmds=$lt_finish_cmds
14068
# As "finish_cmds", except a single script fragment to be evaled but
14070
finish_eval=$lt_finish_eval
14072
# Whether we should hardcode library paths into libraries.
14073
hardcode_into_libs=$hardcode_into_libs
14075
# Compile-time system search path for libraries.
14076
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14078
# Run-time system search path for libraries.
14079
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14081
# Whether dlopen is supported.
14082
dlopen_support=$enable_dlopen
14084
# Whether dlopen of programs is supported.
14085
dlopen_self=$enable_dlopen_self
14087
# Whether dlopen of statically linked programs is supported.
14088
dlopen_self_static=$enable_dlopen_self_static
14090
# Commands to strip libraries.
14091
old_striplib=$lt_old_striplib
14092
striplib=$lt_striplib
14095
# The linker used to build libraries.
14098
# Commands used to build an old-style archive.
14099
old_archive_cmds=$lt_old_archive_cmds
14101
# A language specific compiler.
14104
# Is the compiler the GNU compiler?
14107
# Compiler flag to turn off builtin functions.
14108
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14110
# How to pass a linker flag through the compiler.
14111
wl=$lt_lt_prog_compiler_wl
14113
# Additional compiler flags for building library objects.
14114
pic_flag=$lt_lt_prog_compiler_pic
14116
# Compiler flag to prevent dynamic linking.
14117
link_static_flag=$lt_lt_prog_compiler_static
14119
# Does compiler simultaneously support -c and -o options?
14120
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14122
# Whether or not to add -lc for building shared libraries.
14123
build_libtool_need_lc=$archive_cmds_need_lc
14125
# Whether or not to disallow shared libs when runtime libs are static.
14126
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14128
# Compiler flag to allow reflexive dlopens.
14129
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14131
# Compiler flag to generate shared objects directly from archives.
14132
whole_archive_flag_spec=$lt_whole_archive_flag_spec
14134
# Whether the compiler copes with passing no objects directly.
14135
compiler_needs_object=$lt_compiler_needs_object
14137
# Create an old-style archive from a shared archive.
14138
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14140
# Create a temporary old-style archive to link instead of a shared archive.
14141
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14143
# Commands used to build a shared archive.
14144
archive_cmds=$lt_archive_cmds
14145
archive_expsym_cmds=$lt_archive_expsym_cmds
14147
# Commands used to build a loadable module if different from building
14148
# a shared archive.
14149
module_cmds=$lt_module_cmds
14150
module_expsym_cmds=$lt_module_expsym_cmds
14152
# Whether we are building with GNU ld or not.
14153
with_gnu_ld=$lt_with_gnu_ld
14155
# Flag that allows shared libraries with undefined symbols to be built.
14156
allow_undefined_flag=$lt_allow_undefined_flag
14158
# Flag that enforces no undefined symbols.
14159
no_undefined_flag=$lt_no_undefined_flag
14161
# Flag to hardcode \$libdir into a binary during linking.
14162
# This must work even if \$libdir does not exist
14163
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14165
# If ld is used when linking, flag to hardcode \$libdir into a binary
14166
# during linking. This must work even if \$libdir does not exist.
14167
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14169
# Whether we need a single "-rpath" flag with a separated argument.
14170
hardcode_libdir_separator=$lt_hardcode_libdir_separator
14172
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14173
# DIR into the resulting binary.
14174
hardcode_direct=$hardcode_direct
14176
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14177
# DIR into the resulting binary and the resulting library dependency is
14178
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14179
# library is relocated.
14180
hardcode_direct_absolute=$hardcode_direct_absolute
14182
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14183
# into the resulting binary.
14184
hardcode_minus_L=$hardcode_minus_L
14186
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14187
# into the resulting binary.
14188
hardcode_shlibpath_var=$hardcode_shlibpath_var
14190
# Set to "yes" if building a shared library automatically hardcodes DIR
14191
# into the library and all subsequent libraries and executables linked
14193
hardcode_automatic=$hardcode_automatic
14195
# Set to yes if linker adds runtime paths of dependent libraries
14196
# to runtime path list.
14197
inherit_rpath=$inherit_rpath
14199
# Whether libtool must link a program against all its dependency libraries.
14200
link_all_deplibs=$link_all_deplibs
14202
# Fix the shell variable \$srcfile for the compiler.
14203
fix_srcfile_path=$lt_fix_srcfile_path
14205
# Set to "yes" if exported symbols are required.
14206
always_export_symbols=$always_export_symbols
14208
# The commands to list exported symbols.
14209
export_symbols_cmds=$lt_export_symbols_cmds
14211
# Symbols that should not be listed in the preloaded symbols.
14212
exclude_expsyms=$lt_exclude_expsyms
14214
# Symbols that must always be exported.
14215
include_expsyms=$lt_include_expsyms
14217
# Commands necessary for linking programs (against libraries) with templates.
14218
prelink_cmds=$lt_prelink_cmds
14220
# Specify filename containing input files.
14221
file_list_spec=$lt_file_list_spec
14223
# How to hardcode a shared library path into an executable.
14224
hardcode_action=$hardcode_action
14226
# ### END LIBTOOL CONFIG
14232
cat <<\_LT_EOF >> "$cfgfile"
14233
# AIX sometimes has problems with the GCC collect2 program. For some
14234
# reason, if we set the COLLECT_NAMES environment variable, the problems
14235
# vanish in a puff of smoke.
14236
if test "X${COLLECT_NAMES+set}" != Xset; then
14238
export COLLECT_NAMES
14245
ltmain="$ac_aux_dir/ltmain.sh"
14248
# We use sed instead of cat because bash on DJGPP gets confused if
14249
# if finds mixed CR/LF and LF-only lines. Since sed operates in
14250
# text mode, it properly converts lines to CR/LF. This bash problem
14251
# is reportedly fixed, but why not run on old versions too?
14252
sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14253
|| (rm -f "$cfgfile"; exit 1)
14257
cat << \_LT_EOF >> "$cfgfile"
14259
# func_dirname file append nondir_replacement
14260
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14261
# otherwise set result to NONDIR_REPLACEMENT.
14265
*/*) func_dirname_result="${1%/*}${2}" ;;
14266
* ) func_dirname_result="${3}" ;;
14270
# func_basename file
14273
func_basename_result="${1##*/}"
14276
# func_dirname_and_basename file append nondir_replacement
14277
# perform func_basename and func_dirname in a single function
14279
# dirname: Compute the dirname of FILE. If nonempty,
14280
# add APPEND to the result, otherwise set result
14281
# to NONDIR_REPLACEMENT.
14282
# value returned in "$func_dirname_result"
14283
# basename: Compute filename of FILE.
14284
# value retuned in "$func_basename_result"
14285
# Implementation must be kept synchronized with func_dirname
14286
# and func_basename. For efficiency, we do not delegate to
14287
# those functions but instead duplicate the functionality here.
14288
func_dirname_and_basename ()
14291
*/*) func_dirname_result="${1%/*}${2}" ;;
14292
* ) func_dirname_result="${3}" ;;
14294
func_basename_result="${1##*/}"
14297
# func_stripname prefix suffix name
14298
# strip PREFIX and SUFFIX off of NAME.
14299
# PREFIX and SUFFIX must not contain globbing or regex special
14300
# characters, hashes, percent signs, but SUFFIX may contain a leading
14301
# dot (in which case that matches only a dot).
14304
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14305
# positional parameters, so assign one to ordinary parameter first.
14306
func_stripname_result=${3}
14307
func_stripname_result=${func_stripname_result#"${1}"}
14308
func_stripname_result=${func_stripname_result%"${2}"}
14314
func_opt_split_opt=${1%%=*}
14315
func_opt_split_arg=${1#*=}
14322
*.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14323
*) func_lo2o_result=${1} ;;
14327
# func_xform libobj-or-source
14330
func_xform_result=${1%.*}.lo
14333
# func_arith arithmetic-term...
14336
func_arith_result=$(( $* ))
14340
# STRING may not start with a hyphen.
14343
func_len_result=${#1}
14348
*) # Bourne compatible functions.
14349
cat << \_LT_EOF >> "$cfgfile"
14351
# func_dirname file append nondir_replacement
14352
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14353
# otherwise set result to NONDIR_REPLACEMENT.
14356
# Extract subdirectory from the argument.
14357
func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14358
if test "X$func_dirname_result" = "X${1}"; then
14359
func_dirname_result="${3}"
14361
func_dirname_result="$func_dirname_result${2}"
14365
# func_basename file
14368
func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14372
# func_stripname prefix suffix name
14373
# strip PREFIX and SUFFIX off of NAME.
14374
# PREFIX and SUFFIX must not contain globbing or regex special
14375
# characters, hashes, percent signs, but SUFFIX may contain a leading
14376
# dot (in which case that matches only a dot).
14377
# func_strip_suffix prefix name
14381
.*) func_stripname_result=`$ECHO "X${3}" \
14382
| $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14383
*) func_stripname_result=`$ECHO "X${3}" \
14384
| $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14389
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14390
my_sed_long_arg='1s/^-[^=]*=//'
14395
func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14396
func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14402
func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14405
# func_xform libobj-or-source
14408
func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14411
# func_arith arithmetic-term...
14414
func_arith_result=`expr "$@"`
14418
# STRING may not start with a hyphen.
14421
func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14427
case $lt_shell_append in
14429
cat << \_LT_EOF >> "$cfgfile"
14431
# func_append var value
14432
# Append VALUE to the end of shell variable VAR.
14440
cat << \_LT_EOF >> "$cfgfile"
14442
# func_append var value
14443
# Append VALUE to the end of shell variable VAR.
14454
sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14455
|| (rm -f "$cfgfile"; exit 1)
14457
mv -f "$cfgfile" "$ofile" ||
14458
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22291
14469
ac_clean_files=$ac_clean_files_save
14471
test $ac_write_fail = 0 ||
14472
as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22294
14475
# configure is writing to config.log, and then calls config.status.
22295
14476
# config.status does its own redirection, appending to config.log.