2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.61 for libltdl 1.2.
5
# Report bugs to <bug-libtool@gnu.org>.
7
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9
# This configure script is free software; the Free Software Foundation
10
# gives unlimited permission to copy, distribute and modify it.
11
## --------------------- ##
12
## M4sh Initialization. ##
13
## --------------------- ##
15
# Be more Bourne compatible
16
DUALCASE=1; export DUALCASE # for MKS sh
17
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21
# is contrary to our usage. Disable this feature.
22
alias -g '${1+"$@"}'='"$@"'
25
case `(set -o) 2>/dev/null` in
26
*posix*) set -o posix ;;
35
# Avoid depending upon Character Ranges.
36
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39
as_cr_digits='0123456789'
40
as_cr_alnum=$as_cr_Letters$as_cr_digits
42
# The user is always right.
43
if test "${PATH_SEPARATOR+set}" != set; then
44
echo "#! /bin/sh" >conf$$.sh
45
echo "exit 0" >>conf$$.sh
47
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
55
# Support unset when possible.
56
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
64
# We need space, tab and new line, in precisely that order. Quoting is
65
# there to prevent editors from complaining about space-tab.
66
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
67
# splitting by setting IFS to empty value.)
72
# Find who we are. Look in the path if we contain no directory separator.
74
*[\\/]* ) as_myself=$0 ;;
75
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
79
test -z "$as_dir" && as_dir=.
80
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
86
# We did not find ourselves, most probably we were run as `sh COMMAND'
87
# in which case we are not to be found in the path.
88
if test "x$as_myself" = x; then
91
if test ! -f "$as_myself"; then
92
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
96
# Work around bugs in pre-3.0 UWIN ksh.
97
for as_var in ENV MAIL MAILPATH
98
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
106
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
110
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111
eval $as_var=C; export $as_var
113
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
117
# Required to use basename.
118
if expr a : '\(a\)' >/dev/null 2>&1 &&
119
test "X`expr 00001 : '.*\(...\)'`" = X001; then
125
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
132
# Name of the executable.
133
as_me=`$as_basename -- "$0" ||
134
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135
X"$0" : 'X\(//\)$' \| \
136
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138
sed '/^.*\/\([^/][^/]*\)\/*$/{
156
if test "x$CONFIG_SHELL" = x; then
157
if (eval ":") 2>/dev/null; then
163
if test $as_have_required = yes && (eval ":
173
as_func_ret_success () {
176
as_func_ret_failure () {
181
if as_func_success; then
185
echo as_func_success failed.
188
if as_func_failure; then
190
echo as_func_failure succeeded.
193
if as_func_ret_success; then
197
echo as_func_ret_success failed.
200
if as_func_ret_failure; then
202
echo as_func_ret_failure succeeded.
205
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
209
echo positional parameters were not saved.
212
test \$exitcode = 0) || { (exit 1); exit 1; }
217
test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218
test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219
") 2> /dev/null; then
223
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227
test -z "$as_dir" && as_dir=.
230
for as_base in sh bash ksh sh5; do
231
as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
238
for as_shell in $as_candidate_shells $SHELL; do
239
# Try only shells that exist, to save several forks.
240
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241
{ ("$as_shell") 2> /dev/null <<\_ASEOF
242
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
245
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246
# is contrary to our usage. Disable this feature.
247
alias -g '${1+"$@"}'='"$@"'
250
case `(set -o) 2>/dev/null` in
251
*posix*) set -o posix ;;
260
CONFIG_SHELL=$as_shell
262
if { "$as_shell" 2> /dev/null <<\_ASEOF
263
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267
# is contrary to our usage. Disable this feature.
268
alias -g '${1+"$@"}'='"$@"'
271
case `(set -o) 2>/dev/null` in
272
*posix*) set -o posix ;;
288
as_func_ret_success () {
291
as_func_ret_failure () {
296
if as_func_success; then
300
echo as_func_success failed.
303
if as_func_failure; then
305
echo as_func_failure succeeded.
308
if as_func_ret_success; then
312
echo as_func_ret_success failed.
315
if as_func_ret_failure; then
317
echo as_func_ret_failure succeeded.
320
if ( set x; as_func_ret_success y && test x = "$1" ); then
324
echo positional parameters were not saved.
327
test $exitcode = 0) || { (exit 1); exit 1; }
332
test "x$as_lineno_1" != "x$as_lineno_2" &&
333
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
344
if test "x$CONFIG_SHELL" != x; then
345
for as_var in BASH_ENV ENV
346
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
349
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353
if test $as_have_required = no; then
354
echo This script requires a shell more modern than all the
355
echo shells that I found on your system. Please install a
356
echo modern shell, or manually run the script under such a
357
echo shell if you do have one.
358
{ (exit 1); exit 1; }
368
(eval "as_func_return () {
377
as_func_ret_success () {
380
as_func_ret_failure () {
385
if as_func_success; then
389
echo as_func_success failed.
392
if as_func_failure; then
394
echo as_func_failure succeeded.
397
if as_func_ret_success; then
401
echo as_func_ret_success failed.
404
if as_func_ret_failure; then
406
echo as_func_ret_failure succeeded.
409
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
413
echo positional parameters were not saved.
416
test \$exitcode = 0") || {
417
echo No shell found that supports shell functions.
418
echo Please tell autoconf@gnu.org about your system,
419
echo including any error possibly output before this
427
test "x$as_lineno_1" != "x$as_lineno_2" &&
428
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431
# uniformly replaced by the line number. The first 'sed' inserts a
432
# line-number line after each line using $LINENO; the second 'sed'
433
# does the real work. The second script uses 'N' to pair each
434
# line-number line with the line containing $LINENO, and appends
435
# trailing '-' during substitution so that $LINENO is not a special
437
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438
# scripts with optimization help from Paolo Bonzini. Blame Lee
439
# E. McMahon (1931-1989) for sed's syntax. :-)
451
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
455
chmod +x "$as_me.lineno" ||
456
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457
{ (exit 1); exit 1; }; }
459
# Don't try to exec as it changes $[0], causing all sort of problems
460
# (the dirname of $[0] is not the place where we might find the
461
# original and so on. Autoconf is especially sensitive to this).
463
# Exit status is that of the last command.
468
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
474
ECHO_C= ECHO_N= ECHO_T=
478
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
485
if expr a : '\(a\)' >/dev/null 2>&1 &&
486
test "X`expr 00001 : '.*\(...\)'`" = X001; then
492
rm -f conf$$ conf$$.exe conf$$.file
493
if test -d conf$$.dir; then
494
rm -f conf$$.dir/conf$$.file
500
if ln -s conf$$.file conf$$ 2>/dev/null; then
502
# ... but there are two gotchas:
503
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505
# In both cases, we have to default to `cp -p'.
506
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508
elif ln conf$$.file conf$$ 2>/dev/null; then
513
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514
rmdir conf$$.dir 2>/dev/null
516
if mkdir -p . 2>/dev/null; then
519
test -d ./-p && rmdir ./-p
523
if test -x / >/dev/null 2>&1; then
526
if ls -dL / >/dev/null 2>&1; then
533
if test -d "$1"; then
539
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540
???[sx]*):;;*)false;;esac;fi
544
as_executable_p=$as_test_x
546
# Sed expression to map a string onto a valid CPP name.
547
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549
# Sed expression to map a string onto a valid variable name.
550
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
# Check that we are running under the correct shell.
556
SHELL=${CONFIG_SHELL-/bin/sh}
560
# Remove one level of quotation (which was required for Make).
561
ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
566
if test "X$1" = X--no-reexec; then
567
# Discard the --no-reexec flag, and continue.
569
elif test "X$1" = X--fallback-echo; then
570
# Avoid inline document here, it may be left over
572
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573
# Yippee, $echo works!
576
# Restart under the correct shell.
577
exec $SHELL "$0" --no-reexec ${1+"$@"}
580
if test "X$1" = X--fallback-echo; then
581
# used as fallback echo
589
# The HP-UX ksh and POSIX shell print the target directory to stdout
591
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
593
if test -z "$ECHO"; then
594
if test "X${echo_test_string+set}" != Xset; then
595
# find a string as large as possible, as long as the shell can cope with it
596
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598
if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599
echo_test_string=`eval $cmd` &&
600
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
607
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609
test "X$echo_testing_string" = "X$echo_test_string"; then
612
# The Solaris, AIX, and Digital Unix default echo programs unquote
613
# backslashes. This makes it impossible to quote backslashes using
614
# echo "$something" | sed 's/\\/\\\\/g'
616
# So, first we look for a working echo in the user's PATH.
618
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619
for dir in $PATH /usr/ucb; do
621
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624
test "X$echo_testing_string" = "X$echo_test_string"; then
631
if test "X$echo" = Xecho; then
632
# We didn't find a better echo, so look for alternatives.
633
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635
test "X$echo_testing_string" = "X$echo_test_string"; then
636
# This shell has a builtin print -r that does the trick.
638
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639
test "X$CONFIG_SHELL" != X/bin/ksh; then
640
# If we have ksh, try running configure again with it.
641
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642
export ORIGINAL_CONFIG_SHELL
643
CONFIG_SHELL=/bin/ksh
645
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
649
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651
test "X$echo_testing_string" = "X$echo_test_string"; then
654
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655
test "X$echo_testing_string" = 'X\t' &&
656
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657
test "X$echo_testing_string" = "X$echo_test_string"; then
658
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
660
SHELL="$CONFIG_SHELL"
662
echo="$CONFIG_SHELL $0 --fallback-echo"
663
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664
test "X$echo_testing_string" = 'X\t' &&
665
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666
test "X$echo_testing_string" = "X$echo_test_string"; then
667
echo="$CONFIG_SHELL $0 --fallback-echo"
669
# maybe with a smaller string...
672
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
680
if test "$prev" != 'sed 50q "$0"'; then
681
echo_test_string=`eval $prev`
682
export echo_test_string
683
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
685
# Oops. We lost completely, so just stick with echo.
694
# Copy echo and quote the copy suitably for passing to libtool from
695
# the Makefile, instead of quoting the original, which is used later.
697
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698
ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
704
tagnames=${tagnames+${tagnames},}CXX
706
tagnames=${tagnames+${tagnames},}F77
708
exec 7<&0 </dev/null 6>&1
711
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712
# so uname gets run too.
713
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
718
ac_default_prefix=/usr/local
720
ac_config_libobj_dir=.
726
SHELL=${CONFIG_SHELL-/bin/sh}
728
# Identity of this package.
729
PACKAGE_NAME='libltdl'
730
PACKAGE_TARNAME='libltdl'
731
PACKAGE_VERSION='1.2'
732
PACKAGE_STRING='libltdl 1.2'
733
PACKAGE_BUGREPORT='bug-libtool@gnu.org'
735
ac_unique_file="ltdl.c"
736
# Factoring default headers for most tests.
737
ac_includes_default="\
739
#ifdef HAVE_SYS_TYPES_H
740
# include <sys/types.h>
742
#ifdef HAVE_SYS_STAT_H
743
# include <sys/stat.h>
749
# ifdef HAVE_STDLIB_H
754
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
759
#ifdef HAVE_STRINGS_H
760
# include <strings.h>
762
#ifdef HAVE_INTTYPES_H
763
# include <inttypes.h>
781
program_transform_name
823
INSTALL_STRIP_PROGRAM
879
CONVENIENCE_LTDL_TRUE
880
CONVENIENCE_LTDL_FALSE
885
ac_precious_vars='build_alias
902
# Initialize some variables set by options.
904
ac_init_version=false
905
# The variables have the same names as the options, with
906
# dashes changed to underlines.
914
program_transform_name=s,x,x,
922
# Installation directory options.
923
# These are left unexpanded so users can "make install exec_prefix=/foo"
924
# and all the variables that are supposed to be based on exec_prefix
925
# by default will actually change.
926
# Use braces instead of parens because sh, perl, etc. also accept them.
927
# (The list follows the same order as the GNU Coding Standards.)
928
bindir='${exec_prefix}/bin'
929
sbindir='${exec_prefix}/sbin'
930
libexecdir='${exec_prefix}/libexec'
931
datarootdir='${prefix}/share'
932
datadir='${datarootdir}'
933
sysconfdir='${prefix}/etc'
934
sharedstatedir='${prefix}/com'
935
localstatedir='${prefix}/var'
936
includedir='${prefix}/include'
937
oldincludedir='/usr/include'
938
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
939
infodir='${datarootdir}/info'
944
libdir='${exec_prefix}/lib'
945
localedir='${datarootdir}/locale'
946
mandir='${datarootdir}/man'
952
# If the previous option needs an argument, assign it.
953
if test -n "$ac_prev"; then
954
eval $ac_prev=\$ac_option
960
*=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
964
# Accept the important Cygnus configure options, so we can diagnose typos.
966
case $ac_dashdash$ac_option in
970
-bindir | --bindir | --bindi | --bind | --bin | --bi)
972
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
975
-build | --build | --buil | --bui | --bu)
976
ac_prev=build_alias ;;
977
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
978
build_alias=$ac_optarg ;;
980
-cache-file | --cache-file | --cache-fil | --cache-fi \
981
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
982
ac_prev=cache_file ;;
983
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
984
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
985
cache_file=$ac_optarg ;;
988
cache_file=config.cache ;;
990
-datadir | --datadir | --datadi | --datad)
992
-datadir=* | --datadir=* | --datadi=* | --datad=*)
993
datadir=$ac_optarg ;;
995
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
996
| --dataroo | --dataro | --datar)
997
ac_prev=datarootdir ;;
998
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
999
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1000
datarootdir=$ac_optarg ;;
1002
-disable-* | --disable-*)
1003
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1004
# Reject names that are not valid shell variable names.
1005
expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1006
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
1007
{ (exit 1); exit 1; }; }
1008
ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1009
eval enable_$ac_feature=no ;;
1011
-docdir | --docdir | --docdi | --doc | --do)
1013
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1014
docdir=$ac_optarg ;;
1016
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1018
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1019
dvidir=$ac_optarg ;;
1021
-enable-* | --enable-*)
1022
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1023
# Reject names that are not valid shell variable names.
1024
expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1025
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
1026
{ (exit 1); exit 1; }; }
1027
ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1028
eval enable_$ac_feature=\$ac_optarg ;;
1030
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1031
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1032
| --exec | --exe | --ex)
1033
ac_prev=exec_prefix ;;
1034
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1035
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1036
| --exec=* | --exe=* | --ex=*)
1037
exec_prefix=$ac_optarg ;;
1039
-gas | --gas | --ga | --g)
1040
# Obsolete; use --with-gas.
1043
-help | --help | --hel | --he | -h)
1044
ac_init_help=long ;;
1045
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1046
ac_init_help=recursive ;;
1047
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1048
ac_init_help=short ;;
1050
-host | --host | --hos | --ho)
1051
ac_prev=host_alias ;;
1052
-host=* | --host=* | --hos=* | --ho=*)
1053
host_alias=$ac_optarg ;;
1055
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1057
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1059
htmldir=$ac_optarg ;;
1061
-includedir | --includedir | --includedi | --included | --include \
1062
| --includ | --inclu | --incl | --inc)
1063
ac_prev=includedir ;;
1064
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1065
| --includ=* | --inclu=* | --incl=* | --inc=*)
1066
includedir=$ac_optarg ;;
1068
-infodir | --infodir | --infodi | --infod | --info | --inf)
1070
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1071
infodir=$ac_optarg ;;
1073
-libdir | --libdir | --libdi | --libd)
1075
-libdir=* | --libdir=* | --libdi=* | --libd=*)
1076
libdir=$ac_optarg ;;
1078
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1079
| --libexe | --libex | --libe)
1080
ac_prev=libexecdir ;;
1081
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1082
| --libexe=* | --libex=* | --libe=*)
1083
libexecdir=$ac_optarg ;;
1085
-localedir | --localedir | --localedi | --localed | --locale)
1086
ac_prev=localedir ;;
1087
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1088
localedir=$ac_optarg ;;
1090
-localstatedir | --localstatedir | --localstatedi | --localstated \
1091
| --localstate | --localstat | --localsta | --localst | --locals)
1092
ac_prev=localstatedir ;;
1093
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1094
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1095
localstatedir=$ac_optarg ;;
1097
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1099
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1100
mandir=$ac_optarg ;;
1102
-nfp | --nfp | --nf)
1103
# Obsolete; use --without-fp.
1106
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
1107
| --no-cr | --no-c | -n)
1110
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
1111
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1114
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1115
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1116
| --oldin | --oldi | --old | --ol | --o)
1117
ac_prev=oldincludedir ;;
1118
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1119
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1120
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1121
oldincludedir=$ac_optarg ;;
1123
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1125
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1126
prefix=$ac_optarg ;;
1128
-program-prefix | --program-prefix | --program-prefi | --program-pref \
1129
| --program-pre | --program-pr | --program-p)
1130
ac_prev=program_prefix ;;
1131
-program-prefix=* | --program-prefix=* | --program-prefi=* \
1132
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1133
program_prefix=$ac_optarg ;;
1135
-program-suffix | --program-suffix | --program-suffi | --program-suff \
1136
| --program-suf | --program-su | --program-s)
1137
ac_prev=program_suffix ;;
1138
-program-suffix=* | --program-suffix=* | --program-suffi=* \
1139
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1140
program_suffix=$ac_optarg ;;
1142
-program-transform-name | --program-transform-name \
1143
| --program-transform-nam | --program-transform-na \
1144
| --program-transform-n | --program-transform- \
1145
| --program-transform | --program-transfor \
1146
| --program-transfo | --program-transf \
1147
| --program-trans | --program-tran \
1148
| --progr-tra | --program-tr | --program-t)
1149
ac_prev=program_transform_name ;;
1150
-program-transform-name=* | --program-transform-name=* \
1151
| --program-transform-nam=* | --program-transform-na=* \
1152
| --program-transform-n=* | --program-transform-=* \
1153
| --program-transform=* | --program-transfor=* \
1154
| --program-transfo=* | --program-transf=* \
1155
| --program-trans=* | --program-tran=* \
1156
| --progr-tra=* | --program-tr=* | --program-t=*)
1157
program_transform_name=$ac_optarg ;;
1159
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1161
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1162
pdfdir=$ac_optarg ;;
1164
-psdir | --psdir | --psdi | --psd | --ps)
1166
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1169
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1170
| -silent | --silent | --silen | --sile | --sil)
1173
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1175
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1177
sbindir=$ac_optarg ;;
1179
-sharedstatedir | --sharedstatedir | --sharedstatedi \
1180
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1181
| --sharedst | --shareds | --shared | --share | --shar \
1183
ac_prev=sharedstatedir ;;
1184
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1185
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1186
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1188
sharedstatedir=$ac_optarg ;;
1190
-site | --site | --sit)
1192
-site=* | --site=* | --sit=*)
1195
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1197
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1198
srcdir=$ac_optarg ;;
1200
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1201
| --syscon | --sysco | --sysc | --sys | --sy)
1202
ac_prev=sysconfdir ;;
1203
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1204
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1205
sysconfdir=$ac_optarg ;;
1207
-target | --target | --targe | --targ | --tar | --ta | --t)
1208
ac_prev=target_alias ;;
1209
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1210
target_alias=$ac_optarg ;;
1212
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1215
-version | --version | --versio | --versi | --vers | -V)
1216
ac_init_version=: ;;
1219
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1220
# Reject names that are not valid shell variable names.
1221
expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1222
{ echo "$as_me: error: invalid package name: $ac_package" >&2
1223
{ (exit 1); exit 1; }; }
1224
ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1225
eval with_$ac_package=\$ac_optarg ;;
1227
-without-* | --without-*)
1228
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1229
# Reject names that are not valid shell variable names.
1230
expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1231
{ echo "$as_me: error: invalid package name: $ac_package" >&2
1232
{ (exit 1); exit 1; }; }
1233
ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1234
eval with_$ac_package=no ;;
1237
# Obsolete; use --with-x.
1240
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1241
| --x-incl | --x-inc | --x-in | --x-i)
1242
ac_prev=x_includes ;;
1243
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1244
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1245
x_includes=$ac_optarg ;;
1247
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1248
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1249
ac_prev=x_libraries ;;
1250
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1251
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1252
x_libraries=$ac_optarg ;;
1254
-*) { echo "$as_me: error: unrecognized option: $ac_option
1255
Try \`$0 --help' for more information." >&2
1256
{ (exit 1); exit 1; }; }
1260
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1261
# Reject names that are not valid shell variable names.
1262
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1263
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1264
{ (exit 1); exit 1; }; }
1265
eval $ac_envvar=\$ac_optarg
1266
export $ac_envvar ;;
1269
# FIXME: should be removed in autoconf 3.0.
1270
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1271
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1272
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1273
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1279
if test -n "$ac_prev"; then
1280
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1281
{ echo "$as_me: error: missing argument to $ac_option" >&2
1282
{ (exit 1); exit 1; }; }
1285
# Be sure to have absolute directory names.
1286
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1287
datadir sysconfdir sharedstatedir localstatedir includedir \
1288
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1289
libdir localedir mandir
1291
eval ac_val=\$$ac_var
1293
[\\/$]* | ?:[\\/]* ) continue;;
1294
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1296
{ echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1297
{ (exit 1); exit 1; }; }
1300
# There might be people who depend on the old broken behavior: `$host'
1301
# used to hold the argument of --host etc.
1302
# FIXME: To remove some day.
1305
target=$target_alias
1307
# FIXME: To remove some day.
1308
if test "x$host_alias" != x; then
1309
if test "x$build_alias" = x; then
1310
cross_compiling=maybe
1311
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1312
If a cross compiler is detected then cross compile mode will be used." >&2
1313
elif test "x$build_alias" != "x$host_alias"; then
1319
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1321
test "$silent" = yes && exec 6>/dev/null
1324
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1325
ac_ls_di=`ls -di .` &&
1326
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1327
{ echo "$as_me: error: Working directory cannot be determined" >&2
1328
{ (exit 1); exit 1; }; }
1329
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1330
{ echo "$as_me: error: pwd does not report name of working directory" >&2
1331
{ (exit 1); exit 1; }; }
1334
# Find the source files, if location was not specified.
1335
if test -z "$srcdir"; then
1336
ac_srcdir_defaulted=yes
1337
# Try the directory containing this script, then the parent directory.
1338
ac_confdir=`$as_dirname -- "$0" ||
1339
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1340
X"$0" : 'X\(//\)[^/]' \| \
1341
X"$0" : 'X\(//\)$' \| \
1342
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1344
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1362
if test ! -r "$srcdir/$ac_unique_file"; then
1366
ac_srcdir_defaulted=no
1368
if test ! -r "$srcdir/$ac_unique_file"; then
1369
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1370
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1371
{ (exit 1); exit 1; }; }
1373
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1375
cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1376
{ (exit 1); exit 1; }; }
1378
# When building in place, set srcdir=.
1379
if test "$ac_abs_confdir" = "$ac_pwd"; then
1382
# Remove unnecessary trailing slashes from srcdir.
1383
# Double slashes in file names in object file debugging info
1384
# mess up M-x gdb in Emacs.
1386
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1388
for ac_var in $ac_precious_vars; do
1389
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1390
eval ac_env_${ac_var}_value=\$${ac_var}
1391
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1392
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1396
# Report the --help message.
1398
if test "$ac_init_help" = "long"; then
1399
# Omit some internal or obsolete options to make the list less imposing.
1400
# This message is too long to be a string in the A/UX 3.1 sh.
1402
\`configure' configures libltdl 1.2 to adapt to many kinds of systems.
1404
Usage: $0 [OPTION]... [VAR=VALUE]...
1406
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1407
VAR=VALUE. See below for descriptions of some of the useful variables.
1409
Defaults for the options are specified in brackets.
1412
-h, --help display this help and exit
1413
--help=short display options specific to this package
1414
--help=recursive display the short help of all the included packages
1415
-V, --version display version information and exit
1416
-q, --quiet, --silent do not print \`checking...' messages
1417
--cache-file=FILE cache test results in FILE [disabled]
1418
-C, --config-cache alias for \`--cache-file=config.cache'
1419
-n, --no-create do not create output files
1420
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1422
Installation directories:
1423
--prefix=PREFIX install architecture-independent files in PREFIX
1424
[$ac_default_prefix]
1425
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1428
By default, \`make install' will install all the files in
1429
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1430
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1431
for instance \`--prefix=\$HOME'.
1433
For better control, use the options below.
1435
Fine tuning of the installation directories:
1436
--bindir=DIR user executables [EPREFIX/bin]
1437
--sbindir=DIR system admin executables [EPREFIX/sbin]
1438
--libexecdir=DIR program executables [EPREFIX/libexec]
1439
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1440
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1441
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1442
--libdir=DIR object code libraries [EPREFIX/lib]
1443
--includedir=DIR C header files [PREFIX/include]
1444
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1445
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1446
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1447
--infodir=DIR info documentation [DATAROOTDIR/info]
1448
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1449
--mandir=DIR man documentation [DATAROOTDIR/man]
1450
--docdir=DIR documentation root [DATAROOTDIR/doc/libltdl]
1451
--htmldir=DIR html documentation [DOCDIR]
1452
--dvidir=DIR dvi documentation [DOCDIR]
1453
--pdfdir=DIR pdf documentation [DOCDIR]
1454
--psdir=DIR ps documentation [DOCDIR]
1460
--program-prefix=PREFIX prepend PREFIX to installed program names
1461
--program-suffix=SUFFIX append SUFFIX to installed program names
1462
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1465
--build=BUILD configure for building on BUILD [guessed]
1466
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1470
if test -n "$ac_init_help"; then
1471
case $ac_init_help in
1472
short | recursive ) echo "Configuration of libltdl 1.2:";;
1477
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1478
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1479
--disable-dependency-tracking speeds up one-time build
1480
--enable-dependency-tracking do not reject slow dependency extractors
1481
--enable-shared[=PKGS] build shared libraries [default=yes]
1482
--enable-static[=PKGS] build static libraries [default=yes]
1483
--enable-fast-install[=PKGS]
1484
optimize for fast installation [default=yes]
1485
--disable-libtool-lock avoid locking (might break parallel builds)
1486
--enable-ltdl-install install libltdl
1489
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1490
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1491
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
1492
--with-pic try to use only PIC/non-PIC objects [default=use
1494
--with-tags[=TAGS] include additional configurations [automatic]
1496
Some influential environment variables:
1497
CC C compiler command
1498
CFLAGS C compiler flags
1499
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1500
nonstandard directory <lib dir>
1501
LIBS libraries to pass to the linker, e.g. -l<library>
1502
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1503
you have headers in a nonstandard directory <include dir>
1505
CXX C++ compiler command
1506
CXXFLAGS C++ compiler flags
1507
CXXCPP C++ preprocessor
1508
F77 Fortran 77 compiler command
1509
FFLAGS Fortran 77 compiler flags
1511
Use these variables to override the choices made by `configure' or to help
1512
it to find libraries and programs with nonstandard names/locations.
1514
Report bugs to <bug-libtool@gnu.org>.
1519
if test "$ac_init_help" = "recursive"; then
1520
# If there are subdirs, report their specific --help.
1521
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1522
test -d "$ac_dir" || continue
1526
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1529
# A ".." for each directory in $ac_dir_suffix.
1530
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1531
case $ac_top_builddir_sub in
1532
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1533
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1536
ac_abs_top_builddir=$ac_pwd
1537
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1538
# for backward compatibility:
1539
ac_top_builddir=$ac_top_build_prefix
1542
.) # We are building in place.
1544
ac_top_srcdir=$ac_top_builddir_sub
1545
ac_abs_top_srcdir=$ac_pwd ;;
1546
[\\/]* | ?:[\\/]* ) # Absolute name.
1547
ac_srcdir=$srcdir$ac_dir_suffix;
1548
ac_top_srcdir=$srcdir
1549
ac_abs_top_srcdir=$srcdir ;;
1551
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1552
ac_top_srcdir=$ac_top_build_prefix$srcdir
1553
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1555
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1557
cd "$ac_dir" || { ac_status=$?; continue; }
1558
# Check for guested configure.
1559
if test -f "$ac_srcdir/configure.gnu"; then
1561
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1562
elif test -f "$ac_srcdir/configure"; then
1564
$SHELL "$ac_srcdir/configure" --help=recursive
1566
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1568
cd "$ac_pwd" || { ac_status=$?; break; }
1572
test -n "$ac_init_help" && exit $ac_status
1573
if $ac_init_version; then
1575
libltdl configure 1.2
1576
generated by GNU Autoconf 2.61
1578
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1579
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1580
This configure script is free software; the Free Software Foundation
1581
gives unlimited permission to copy, distribute and modify it.
1585
cat >config.log <<_ACEOF
1586
This file contains any messages produced by compilers while
1587
running configure, to aid debugging if configure makes a mistake.
1589
It was created by libltdl $as_me 1.2, which was
1590
generated by GNU Autoconf 2.61. Invocation command line was
1602
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1603
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1604
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1605
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1606
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1608
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1609
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1611
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1612
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1613
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1614
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1615
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1616
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1617
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1621
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1625
test -z "$as_dir" && as_dir=.
1626
echo "PATH: $as_dir"
1642
# Keep a trace of the command line.
1643
# Strip out --no-create and --no-recursion so they do not pile up.
1644
# Strip out --silent because we don't want to record it for future runs.
1645
# Also quote any args containing shell meta-characters.
1646
# Make two passes to allow for proper duplicate-argument suppression.
1650
ac_must_keep_next=false
1656
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1657
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1658
| -silent | --silent | --silen | --sile | --sil)
1661
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1664
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1666
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1667
if test $ac_must_keep_next = true; then
1668
ac_must_keep_next=false # Got value, back to normal.
1671
*=* | --config-cache | -C | -disable-* | --disable-* \
1672
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1673
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1674
| -with-* | --with-* | -without-* | --without-* | --x)
1675
case "$ac_configure_args0 " in
1676
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1679
-* ) ac_must_keep_next=true ;;
1682
ac_configure_args="$ac_configure_args '$ac_arg'"
1687
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1688
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1690
# When interrupted or exit'd, cleanup temporary files, and complete
1691
# config.log. We remove comments because anyway the quotes in there
1692
# would cause problems or look ugly.
1693
# WARNING: Use '\'' to represent an apostrophe within the trap.
1694
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1695
trap 'exit_status=$?
1696
# Save into config.log some information that might help in debugging.
1701
## ---------------- ##
1702
## Cache variables. ##
1703
## ---------------- ##
1706
# The following way of writing the cache mishandles newlines in values,
1708
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1709
eval ac_val=\$$ac_var
1713
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1714
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1717
_ | IFS | as_nl) ;; #(
1718
*) $as_unset $ac_var ;;
1723
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1724
*${as_nl}ac_space=\ *)
1726
"s/'\''/'\''\\\\'\'''\''/g;
1727
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1730
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1738
## ----------------- ##
1739
## Output variables. ##
1740
## ----------------- ##
1743
for ac_var in $ac_subst_vars
1745
eval ac_val=\$$ac_var
1747
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1749
echo "$ac_var='\''$ac_val'\''"
1753
if test -n "$ac_subst_files"; then
1755
## ------------------- ##
1756
## File substitutions. ##
1757
## ------------------- ##
1760
for ac_var in $ac_subst_files
1762
eval ac_val=\$$ac_var
1764
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1766
echo "$ac_var='\''$ac_val'\''"
1771
if test -s confdefs.h; then
1781
test "$ac_signal" != 0 &&
1782
echo "$as_me: caught signal $ac_signal"
1783
echo "$as_me: exit $exit_status"
1785
rm -f core *.core core.conftest.* &&
1786
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1789
for ac_signal in 1 2 13 15; do
1790
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1794
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1795
rm -f -r conftest* confdefs.h
1797
# Predefined preprocessor variables.
1799
cat >>confdefs.h <<_ACEOF
1800
#define PACKAGE_NAME "$PACKAGE_NAME"
1804
cat >>confdefs.h <<_ACEOF
1805
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1809
cat >>confdefs.h <<_ACEOF
1810
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1814
cat >>confdefs.h <<_ACEOF
1815
#define PACKAGE_STRING "$PACKAGE_STRING"
1819
cat >>confdefs.h <<_ACEOF
1820
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1824
# Let the site file select an alternate cache file if it wants to.
1825
# Prefer explicitly selected file to automatically selected ones.
1826
if test -n "$CONFIG_SITE"; then
1827
set x "$CONFIG_SITE"
1828
elif test "x$prefix" != xNONE; then
1829
set x "$prefix/share/config.site" "$prefix/etc/config.site"
1831
set x "$ac_default_prefix/share/config.site" \
1832
"$ac_default_prefix/etc/config.site"
1837
if test -r "$ac_site_file"; then
1838
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1839
echo "$as_me: loading site script $ac_site_file" >&6;}
1840
sed 's/^/| /' "$ac_site_file" >&5
1845
if test -r "$cache_file"; then
1846
# Some versions of bash will fail to source /dev/null (special
1847
# files actually), so we avoid doing that.
1848
if test -f "$cache_file"; then
1849
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1850
echo "$as_me: loading cache $cache_file" >&6;}
1852
[\\/]* | ?:[\\/]* ) . "$cache_file";;
1853
*) . "./$cache_file";;
1857
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1858
echo "$as_me: creating cache $cache_file" >&6;}
1862
# Check that the precious variables saved in the cache have kept the same
1864
ac_cache_corrupted=false
1865
for ac_var in $ac_precious_vars; do
1866
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1867
eval ac_new_set=\$ac_env_${ac_var}_set
1868
eval ac_old_val=\$ac_cv_env_${ac_var}_value
1869
eval ac_new_val=\$ac_env_${ac_var}_value
1870
case $ac_old_set,$ac_new_set in
1872
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1873
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1874
ac_cache_corrupted=: ;;
1876
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1877
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1878
ac_cache_corrupted=: ;;
1881
if test "x$ac_old_val" != "x$ac_new_val"; then
1882
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1883
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1884
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1885
echo "$as_me: former value: $ac_old_val" >&2;}
1886
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1887
echo "$as_me: current value: $ac_new_val" >&2;}
1888
ac_cache_corrupted=:
1891
# Pass precious variables to config.status.
1892
if test "$ac_new_set" = set; then
1894
*\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1895
*) ac_arg=$ac_var=$ac_new_val ;;
1897
case " $ac_configure_args " in
1898
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1899
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1903
if $ac_cache_corrupted; then
1904
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1905
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1906
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1907
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1908
{ (exit 1); exit 1; }; }
1936
ac_cpp='$CPP $CPPFLAGS'
1937
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1938
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1939
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1945
## ------------------------------- ##
1946
## Libltdl specific configuration. ##
1947
## ------------------------------- ##
1950
for ac_dir in . "$srcdir"/.; do
1951
if test -f "$ac_dir/install-sh"; then
1953
ac_install_sh="$ac_aux_dir/install-sh -c"
1955
elif test -f "$ac_dir/install.sh"; then
1957
ac_install_sh="$ac_aux_dir/install.sh -c"
1959
elif test -f "$ac_dir/shtool"; then
1961
ac_install_sh="$ac_aux_dir/shtool install -c"
1965
if test -z "$ac_aux_dir"; then
1966
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
1967
echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
1968
{ (exit 1); exit 1; }; }
1971
# These three variables are undocumented and unsupported,
1972
# and are intended to be withdrawn in a future Autoconf release.
1973
# They can cause serious problems if a builder's source tree is in a directory
1974
# whose full name contains unusual characters.
1975
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1976
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1977
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1981
if test -z "$enable_ltdl_install$enable_ltdl_convenience"; then
1982
if test -f ${srcdir}/ltmain.sh; then
1983
# if libltdl is libtoolized, it is assumed to be stand-alone and
1984
# installed unless the command line overrides it (tested above)
1985
enable_ltdl_install=yes
1987
{ echo "$as_me:$LINENO: WARNING: *** The top-level configure must select either" >&5
1988
echo "$as_me: WARNING: *** The top-level configure must select either" >&2;}
1989
{ echo "$as_me:$LINENO: WARNING: *** A\"\"C_LIBLTDL_INSTALLABLE or A\"\"C_LIBLTDL_CONVENIENCE." >&5
1990
echo "$as_me: WARNING: *** A\"\"C_LIBLTDL_INSTALLABLE or A\"\"C_LIBLTDL_CONVENIENCE." >&2;}
1991
{ { echo "$as_me:$LINENO: error: *** Maybe you want to --enable-ltdl-install?" >&5
1992
echo "$as_me: error: *** Maybe you want to --enable-ltdl-install?" >&2;}
1993
{ (exit 1); exit 1; }; }
1998
## ------------------------ ##
1999
## Automake Initialisation. ##
2000
## ------------------------ ##
2001
am__api_version='1.10'
2003
# Find a good install program. We prefer a C program (faster),
2004
# so one script is as good as another. But avoid the broken or
2005
# incompatible versions:
2006
# SysV /etc/install, /usr/sbin/install
2007
# SunOS /usr/etc/install
2008
# IRIX /sbin/install
2010
# AmigaOS /C/install, which installs bootblocks on floppy discs
2011
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2012
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2013
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2014
# OS/2's system install, which has a completely different semantic
2015
# ./install, which can be erroneously created by make from ./install.sh.
2016
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2017
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2018
if test -z "$INSTALL"; then
2019
if test "${ac_cv_path_install+set}" = set; then
2020
echo $ECHO_N "(cached) $ECHO_C" >&6
2022
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2026
test -z "$as_dir" && as_dir=.
2027
# Account for people who put trailing slashes in PATH elements.
2029
./ | .// | /cC/* | \
2030
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2031
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2034
# OSF1 and SCO ODT 3.0 have their own names for install.
2035
# Don't use installbsd from OSF since it installs stuff as root
2037
for ac_prog in ginstall scoinst install; do
2038
for ac_exec_ext in '' $ac_executable_extensions; do
2039
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2040
if test $ac_prog = install &&
2041
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2042
# AIX install. It has an incompatible calling convention.
2044
elif test $ac_prog = install &&
2045
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2046
# program-specific install script used by HP pwplus--don't use.
2049
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2062
if test "${ac_cv_path_install+set}" = set; then
2063
INSTALL=$ac_cv_path_install
2065
# As a last resort, use the slow shell script. Don't cache a
2066
# value for INSTALL within a source directory, because that will
2067
# break other packages using the cache if that directory is
2068
# removed, or if the value is a relative name.
2069
INSTALL=$ac_install_sh
2072
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2073
echo "${ECHO_T}$INSTALL" >&6; }
2075
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2076
# It thinks the first close brace ends the variable substitution.
2077
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2079
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2081
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2083
{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2084
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2087
echo timestamp > conftest.file
2088
# Do `set' in a subshell so we don't clobber the current shell's
2089
# arguments. Must try -L first in case configure is actually a
2090
# symlink; some systems play weird games with the mod time of symlinks
2091
# (eg FreeBSD returns the mod time of the symlink's containing
2094
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2095
if test "$*" = "X"; then
2097
set X `ls -t $srcdir/configure conftest.file`
2100
if test "$*" != "X $srcdir/configure conftest.file" \
2101
&& test "$*" != "X conftest.file $srcdir/configure"; then
2103
# If neither matched, then we have a broken ls. This can happen
2104
# if, for instance, CONFIG_SHELL is bash and it inherits a
2105
# broken ls alias from the environment. This has actually
2106
# happened. Such a system could not be considered "sane".
2107
{ { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2108
alias in your environment" >&5
2109
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2110
alias in your environment" >&2;}
2111
{ (exit 1); exit 1; }; }
2114
test "$2" = conftest.file
2120
{ { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2121
Check your system clock" >&5
2122
echo "$as_me: error: newly created file is older than distributed files!
2123
Check your system clock" >&2;}
2124
{ (exit 1); exit 1; }; }
2126
{ echo "$as_me:$LINENO: result: yes" >&5
2127
echo "${ECHO_T}yes" >&6; }
2128
test "$program_prefix" != NONE &&
2129
program_transform_name="s&^&$program_prefix&;$program_transform_name"
2130
# Use a double $ so make ignores it.
2131
test "$program_suffix" != NONE &&
2132
program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2133
# Double any \ or $. echo might interpret backslashes.
2134
# By default was `s,x,x', remove it if useless.
2135
cat <<\_ACEOF >conftest.sed
2136
s/[\\$]/&&/g;s/;s,x,x,$//
2138
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2141
# expand $ac_aux_dir to an absolute path
2142
am_aux_dir=`cd $ac_aux_dir && pwd`
2144
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2145
# Use eval to expand $SHELL
2146
if eval "$MISSING --run true"; then
2147
am_missing_run="$MISSING --run "
2150
{ echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2151
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2154
{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2155
echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2156
if test -z "$MKDIR_P"; then
2157
if test "${ac_cv_path_mkdir+set}" = set; then
2158
echo $ECHO_N "(cached) $ECHO_C" >&6
2160
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2161
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2164
test -z "$as_dir" && as_dir=.
2165
for ac_prog in mkdir gmkdir; do
2166
for ac_exec_ext in '' $ac_executable_extensions; do
2167
{ test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2168
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2169
'mkdir (GNU coreutils) '* | \
2170
'mkdir (coreutils) '* | \
2171
'mkdir (fileutils) '4.1*)
2172
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2182
if test "${ac_cv_path_mkdir+set}" = set; then
2183
MKDIR_P="$ac_cv_path_mkdir -p"
2185
# As a last resort, use the slow shell script. Don't cache a
2186
# value for MKDIR_P within a source directory, because that will
2187
# break other packages using the cache if that directory is
2188
# removed, or if the value is a relative name.
2189
test -d ./--version && rmdir ./--version
2190
MKDIR_P="$ac_install_sh -d"
2193
{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2194
echo "${ECHO_T}$MKDIR_P" >&6; }
2198
[\\/$]* | ?:[\\/]*) ;;
2199
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2202
for ac_prog in gawk mawk nawk awk
2204
# Extract the first word of "$ac_prog", so it can be a program name with args.
2205
set dummy $ac_prog; ac_word=$2
2206
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2207
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2208
if test "${ac_cv_prog_AWK+set}" = set; then
2209
echo $ECHO_N "(cached) $ECHO_C" >&6
2211
if test -n "$AWK"; then
2212
ac_cv_prog_AWK="$AWK" # Let the user override the test.
2214
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2218
test -z "$as_dir" && as_dir=.
2219
for ac_exec_ext in '' $ac_executable_extensions; do
2220
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2221
ac_cv_prog_AWK="$ac_prog"
2222
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2232
if test -n "$AWK"; then
2233
{ echo "$as_me:$LINENO: result: $AWK" >&5
2234
echo "${ECHO_T}$AWK" >&6; }
2236
{ echo "$as_me:$LINENO: result: no" >&5
2237
echo "${ECHO_T}no" >&6; }
2241
test -n "$AWK" && break
2244
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2245
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2246
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2247
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2248
echo $ECHO_N "(cached) $ECHO_C" >&6
2250
cat >conftest.make <<\_ACEOF
2253
@echo '@@@%%%=$(MAKE)=@@@%%%'
2255
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2256
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2258
eval ac_cv_prog_make_${ac_make}_set=yes;;
2260
eval ac_cv_prog_make_${ac_make}_set=no;;
2264
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2265
{ echo "$as_me:$LINENO: result: yes" >&5
2266
echo "${ECHO_T}yes" >&6; }
2269
{ echo "$as_me:$LINENO: result: no" >&5
2270
echo "${ECHO_T}no" >&6; }
2271
SET_MAKE="MAKE=${MAKE-make}"
2274
rm -rf .tst 2>/dev/null
2275
mkdir .tst 2>/dev/null
2276
if test -d .tst; then
2281
rmdir .tst 2>/dev/null
2283
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2284
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2285
# is not polluted with repeated "-I."
2286
am__isrc=' -I$(srcdir)'
2287
# test to see if srcdir already configured
2288
if test -f $srcdir/config.status; then
2289
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2290
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2291
{ (exit 1); exit 1; }; }
2295
# test whether we have cygpath
2296
if test -z "$CYGPATH_W"; then
2297
if (cygpath --version) >/dev/null 2>/dev/null; then
2298
CYGPATH_W='cygpath -w'
2305
# Define the identity of the package.
2310
# Some tools Automake needs.
2312
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2315
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2318
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2321
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2324
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2326
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2328
# Installed binaries are usually stripped using `strip' when the user
2329
# run `make install-strip'. However `strip' might not be the right
2330
# tool to use in cross-compilation environments, therefore Automake
2331
# will honor the `STRIP' environment variable to overrule this program.
2332
if test "$cross_compiling" != no; then
2333
if test -n "$ac_tool_prefix"; then
2334
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2335
set dummy ${ac_tool_prefix}strip; ac_word=$2
2336
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2337
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2338
if test "${ac_cv_prog_STRIP+set}" = set; then
2339
echo $ECHO_N "(cached) $ECHO_C" >&6
2341
if test -n "$STRIP"; then
2342
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2344
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2348
test -z "$as_dir" && as_dir=.
2349
for ac_exec_ext in '' $ac_executable_extensions; do
2350
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2351
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2352
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2361
STRIP=$ac_cv_prog_STRIP
2362
if test -n "$STRIP"; then
2363
{ echo "$as_me:$LINENO: result: $STRIP" >&5
2364
echo "${ECHO_T}$STRIP" >&6; }
2366
{ echo "$as_me:$LINENO: result: no" >&5
2367
echo "${ECHO_T}no" >&6; }
2372
if test -z "$ac_cv_prog_STRIP"; then
2374
# Extract the first word of "strip", so it can be a program name with args.
2375
set dummy strip; ac_word=$2
2376
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2377
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2378
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2379
echo $ECHO_N "(cached) $ECHO_C" >&6
2381
if test -n "$ac_ct_STRIP"; then
2382
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2384
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2388
test -z "$as_dir" && as_dir=.
2389
for ac_exec_ext in '' $ac_executable_extensions; do
2390
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2391
ac_cv_prog_ac_ct_STRIP="strip"
2392
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2401
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2402
if test -n "$ac_ct_STRIP"; then
2403
{ echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2404
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2406
{ echo "$as_me:$LINENO: result: no" >&5
2407
echo "${ECHO_T}no" >&6; }
2410
if test "x$ac_ct_STRIP" = x; then
2413
case $cross_compiling:$ac_tool_warned in
2415
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2416
whose name does not start with the host triplet. If you think this
2417
configuration is useful to you, please write to autoconf@gnu.org." >&5
2418
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2419
whose name does not start with the host triplet. If you think this
2420
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2421
ac_tool_warned=yes ;;
2426
STRIP="$ac_cv_prog_STRIP"
2430
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2432
# We need awk for the "check" target. The system "awk" is bad on
2434
# Always define AMTAR for backward compatibility.
2436
AMTAR=${AMTAR-"${am_missing_run}tar"}
2438
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2444
ac_config_headers="$ac_config_headers config.h:config-h.in"
2448
## ------------------ ##
2449
## C compiler checks. ##
2450
## ------------------ ##
2452
ac_cpp='$CPP $CPPFLAGS'
2453
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2454
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2455
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2456
if test -n "$ac_tool_prefix"; then
2457
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2458
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2459
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2460
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2461
if test "${ac_cv_prog_CC+set}" = set; then
2462
echo $ECHO_N "(cached) $ECHO_C" >&6
2464
if test -n "$CC"; then
2465
ac_cv_prog_CC="$CC" # Let the user override the test.
2467
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2471
test -z "$as_dir" && as_dir=.
2472
for ac_exec_ext in '' $ac_executable_extensions; do
2473
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2474
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2475
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2485
if test -n "$CC"; then
2486
{ echo "$as_me:$LINENO: result: $CC" >&5
2487
echo "${ECHO_T}$CC" >&6; }
2489
{ echo "$as_me:$LINENO: result: no" >&5
2490
echo "${ECHO_T}no" >&6; }
2495
if test -z "$ac_cv_prog_CC"; then
2497
# Extract the first word of "gcc", so it can be a program name with args.
2498
set dummy gcc; ac_word=$2
2499
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2500
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2501
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2502
echo $ECHO_N "(cached) $ECHO_C" >&6
2504
if test -n "$ac_ct_CC"; then
2505
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2507
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2511
test -z "$as_dir" && as_dir=.
2512
for ac_exec_ext in '' $ac_executable_extensions; do
2513
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2514
ac_cv_prog_ac_ct_CC="gcc"
2515
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2524
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2525
if test -n "$ac_ct_CC"; then
2526
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2527
echo "${ECHO_T}$ac_ct_CC" >&6; }
2529
{ echo "$as_me:$LINENO: result: no" >&5
2530
echo "${ECHO_T}no" >&6; }
2533
if test "x$ac_ct_CC" = x; then
2536
case $cross_compiling:$ac_tool_warned in
2538
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2539
whose name does not start with the host triplet. If you think this
2540
configuration is useful to you, please write to autoconf@gnu.org." >&5
2541
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2542
whose name does not start with the host triplet. If you think this
2543
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2544
ac_tool_warned=yes ;;
2552
if test -z "$CC"; then
2553
if test -n "$ac_tool_prefix"; then
2554
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2555
set dummy ${ac_tool_prefix}cc; ac_word=$2
2556
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2557
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2558
if test "${ac_cv_prog_CC+set}" = set; then
2559
echo $ECHO_N "(cached) $ECHO_C" >&6
2561
if test -n "$CC"; then
2562
ac_cv_prog_CC="$CC" # Let the user override the test.
2564
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2568
test -z "$as_dir" && as_dir=.
2569
for ac_exec_ext in '' $ac_executable_extensions; do
2570
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2571
ac_cv_prog_CC="${ac_tool_prefix}cc"
2572
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2582
if test -n "$CC"; then
2583
{ echo "$as_me:$LINENO: result: $CC" >&5
2584
echo "${ECHO_T}$CC" >&6; }
2586
{ echo "$as_me:$LINENO: result: no" >&5
2587
echo "${ECHO_T}no" >&6; }
2593
if test -z "$CC"; then
2594
# Extract the first word of "cc", so it can be a program name with args.
2595
set dummy cc; ac_word=$2
2596
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2597
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2598
if test "${ac_cv_prog_CC+set}" = set; then
2599
echo $ECHO_N "(cached) $ECHO_C" >&6
2601
if test -n "$CC"; then
2602
ac_cv_prog_CC="$CC" # Let the user override the test.
2605
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2609
test -z "$as_dir" && as_dir=.
2610
for ac_exec_ext in '' $ac_executable_extensions; do
2611
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2612
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2613
ac_prog_rejected=yes
2617
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2624
if test $ac_prog_rejected = yes; then
2625
# We found a bogon in the path, so make sure we never use it.
2626
set dummy $ac_cv_prog_CC
2628
if test $# != 0; then
2629
# We chose a different compiler from the bogus one.
2630
# However, it has the same basename, so the bogon will be chosen
2631
# first if we set CC to just the basename; use the full file name.
2633
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2639
if test -n "$CC"; then
2640
{ echo "$as_me:$LINENO: result: $CC" >&5
2641
echo "${ECHO_T}$CC" >&6; }
2643
{ echo "$as_me:$LINENO: result: no" >&5
2644
echo "${ECHO_T}no" >&6; }
2649
if test -z "$CC"; then
2650
if test -n "$ac_tool_prefix"; then
2651
for ac_prog in cl.exe
2653
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2654
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2655
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2656
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2657
if test "${ac_cv_prog_CC+set}" = set; then
2658
echo $ECHO_N "(cached) $ECHO_C" >&6
2660
if test -n "$CC"; then
2661
ac_cv_prog_CC="$CC" # Let the user override the test.
2663
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2667
test -z "$as_dir" && as_dir=.
2668
for ac_exec_ext in '' $ac_executable_extensions; do
2669
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2670
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2671
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2681
if test -n "$CC"; then
2682
{ echo "$as_me:$LINENO: result: $CC" >&5
2683
echo "${ECHO_T}$CC" >&6; }
2685
{ echo "$as_me:$LINENO: result: no" >&5
2686
echo "${ECHO_T}no" >&6; }
2690
test -n "$CC" && break
2693
if test -z "$CC"; then
2695
for ac_prog in cl.exe
2697
# Extract the first word of "$ac_prog", so it can be a program name with args.
2698
set dummy $ac_prog; ac_word=$2
2699
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2700
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2701
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2702
echo $ECHO_N "(cached) $ECHO_C" >&6
2704
if test -n "$ac_ct_CC"; then
2705
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2707
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2711
test -z "$as_dir" && as_dir=.
2712
for ac_exec_ext in '' $ac_executable_extensions; do
2713
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2714
ac_cv_prog_ac_ct_CC="$ac_prog"
2715
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2724
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2725
if test -n "$ac_ct_CC"; then
2726
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2727
echo "${ECHO_T}$ac_ct_CC" >&6; }
2729
{ echo "$as_me:$LINENO: result: no" >&5
2730
echo "${ECHO_T}no" >&6; }
2734
test -n "$ac_ct_CC" && break
2737
if test "x$ac_ct_CC" = x; then
2740
case $cross_compiling:$ac_tool_warned in
2742
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2743
whose name does not start with the host triplet. If you think this
2744
configuration is useful to you, please write to autoconf@gnu.org." >&5
2745
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2746
whose name does not start with the host triplet. If you think this
2747
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2748
ac_tool_warned=yes ;;
2757
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2758
See \`config.log' for more details." >&5
2759
echo "$as_me: error: no acceptable C compiler found in \$PATH
2760
See \`config.log' for more details." >&2;}
2761
{ (exit 1); exit 1; }; }
2763
# Provide some information about the compiler.
2764
echo "$as_me:$LINENO: checking for C compiler version" >&5
2765
ac_compiler=`set X $ac_compile; echo $2`
2766
{ (ac_try="$ac_compiler --version >&5"
2768
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2769
*) ac_try_echo=$ac_try;;
2771
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2772
(eval "$ac_compiler --version >&5") 2>&5
2774
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775
(exit $ac_status); }
2776
{ (ac_try="$ac_compiler -v >&5"
2778
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2779
*) ac_try_echo=$ac_try;;
2781
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2782
(eval "$ac_compiler -v >&5") 2>&5
2784
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785
(exit $ac_status); }
2786
{ (ac_try="$ac_compiler -V >&5"
2788
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2789
*) ac_try_echo=$ac_try;;
2791
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2792
(eval "$ac_compiler -V >&5") 2>&5
2794
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795
(exit $ac_status); }
2797
cat >conftest.$ac_ext <<_ACEOF
2800
cat confdefs.h >>conftest.$ac_ext
2801
cat >>conftest.$ac_ext <<_ACEOF
2802
/* end confdefs.h. */
2812
ac_clean_files_save=$ac_clean_files
2813
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2814
# Try to create an executable without -o first, disregard a.out.
2815
# It will help us diagnose broken compilers, and finding out an intuition
2817
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2818
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2819
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2821
# List of possible output files, starting from the most likely.
2822
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2823
# only as a last resort. b.out is created by i960 compilers.
2824
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2826
# The IRIX 6 linker writes into existing files which may not be
2827
# executable, retaining their permissions. Remove them first so a
2828
# subsequent execution test works.
2830
for ac_file in $ac_files
2833
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2834
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
2839
if { (ac_try="$ac_link_default"
2841
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2842
*) ac_try_echo=$ac_try;;
2844
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2845
(eval "$ac_link_default") 2>&5
2847
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848
(exit $ac_status); }; then
2849
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2850
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2851
# in a Makefile. We should not override ac_cv_exeext if it was cached,
2852
# so that the user can short-circuit this test for compilers unknown to
2854
for ac_file in $ac_files ''
2856
test -f "$ac_file" || continue
2858
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2861
# We found the default executable, but exeext='' is most
2865
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2867
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2869
# We set ac_cv_exeext here because the later test for it is not
2870
# safe: cross compilers may not add the suffix if given an `-o'
2871
# argument, so we may need to know it at that point already.
2872
# Even if this section looks crufty: it has the advantage of
2879
test "$ac_cv_exeext" = no && ac_cv_exeext=
2885
{ echo "$as_me:$LINENO: result: $ac_file" >&5
2886
echo "${ECHO_T}$ac_file" >&6; }
2887
if test -z "$ac_file"; then
2888
echo "$as_me: failed program was:" >&5
2889
sed 's/^/| /' conftest.$ac_ext >&5
2891
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2892
See \`config.log' for more details." >&5
2893
echo "$as_me: error: C compiler cannot create executables
2894
See \`config.log' for more details." >&2;}
2895
{ (exit 77); exit 77; }; }
2898
ac_exeext=$ac_cv_exeext
2900
# Check that the compiler produces executables we can run. If not, either
2901
# the compiler is broken, or we cross compile.
2902
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2903
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2904
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2905
# If not cross compiling, check that we can run a simple program.
2906
if test "$cross_compiling" != yes; then
2907
if { ac_try='./$ac_file'
2908
{ (case "(($ac_try" in
2909
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2910
*) ac_try_echo=$ac_try;;
2912
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2913
(eval "$ac_try") 2>&5
2915
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916
(exit $ac_status); }; }; then
2919
if test "$cross_compiling" = maybe; then
2922
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2923
If you meant to cross compile, use \`--host'.
2924
See \`config.log' for more details." >&5
2925
echo "$as_me: error: cannot run C compiled programs.
2926
If you meant to cross compile, use \`--host'.
2927
See \`config.log' for more details." >&2;}
2928
{ (exit 1); exit 1; }; }
2932
{ echo "$as_me:$LINENO: result: yes" >&5
2933
echo "${ECHO_T}yes" >&6; }
2935
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2936
ac_clean_files=$ac_clean_files_save
2937
# Check that the compiler produces executables we can run. If not, either
2938
# the compiler is broken, or we cross compile.
2939
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2940
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2941
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2942
echo "${ECHO_T}$cross_compiling" >&6; }
2944
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2945
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2946
if { (ac_try="$ac_link"
2948
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2949
*) ac_try_echo=$ac_try;;
2951
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2952
(eval "$ac_link") 2>&5
2954
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955
(exit $ac_status); }; then
2956
# If both `conftest.exe' and `conftest' are `present' (well, observable)
2957
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2958
# work properly (i.e., refer to `conftest.exe'), while it won't with
2960
for ac_file in conftest.exe conftest conftest.*; do
2961
test -f "$ac_file" || continue
2963
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2964
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2970
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2971
See \`config.log' for more details." >&5
2972
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2973
See \`config.log' for more details." >&2;}
2974
{ (exit 1); exit 1; }; }
2977
rm -f conftest$ac_cv_exeext
2978
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2979
echo "${ECHO_T}$ac_cv_exeext" >&6; }
2981
rm -f conftest.$ac_ext
2982
EXEEXT=$ac_cv_exeext
2984
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2985
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2986
if test "${ac_cv_objext+set}" = set; then
2987
echo $ECHO_N "(cached) $ECHO_C" >&6
2989
cat >conftest.$ac_ext <<_ACEOF
2992
cat confdefs.h >>conftest.$ac_ext
2993
cat >>conftest.$ac_ext <<_ACEOF
2994
/* end confdefs.h. */
3004
rm -f conftest.o conftest.obj
3005
if { (ac_try="$ac_compile"
3007
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3008
*) ac_try_echo=$ac_try;;
3010
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3011
(eval "$ac_compile") 2>&5
3013
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014
(exit $ac_status); }; then
3015
for ac_file in conftest.o conftest.obj conftest.*; do
3016
test -f "$ac_file" || continue;
3018
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3019
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3024
echo "$as_me: failed program was:" >&5
3025
sed 's/^/| /' conftest.$ac_ext >&5
3027
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3028
See \`config.log' for more details." >&5
3029
echo "$as_me: error: cannot compute suffix of object files: cannot compile
3030
See \`config.log' for more details." >&2;}
3031
{ (exit 1); exit 1; }; }
3034
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3036
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3037
echo "${ECHO_T}$ac_cv_objext" >&6; }
3038
OBJEXT=$ac_cv_objext
3040
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3041
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3042
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3043
echo $ECHO_N "(cached) $ECHO_C" >&6
3045
cat >conftest.$ac_ext <<_ACEOF
3048
cat confdefs.h >>conftest.$ac_ext
3049
cat >>conftest.$ac_ext <<_ACEOF
3050
/* end confdefs.h. */
3063
rm -f conftest.$ac_objext
3064
if { (ac_try="$ac_compile"
3066
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3067
*) ac_try_echo=$ac_try;;
3069
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3070
(eval "$ac_compile") 2>conftest.er1
3072
grep -v '^ *+' conftest.er1 >conftest.err
3074
cat conftest.err >&5
3075
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076
(exit $ac_status); } && {
3077
test -z "$ac_c_werror_flag" ||
3078
test ! -s conftest.err
3079
} && test -s conftest.$ac_objext; then
3082
echo "$as_me: failed program was:" >&5
3083
sed 's/^/| /' conftest.$ac_ext >&5
3088
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3089
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3092
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3093
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3094
GCC=`test $ac_compiler_gnu = yes && echo yes`
3095
ac_test_CFLAGS=${CFLAGS+set}
3096
ac_save_CFLAGS=$CFLAGS
3097
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3098
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3099
if test "${ac_cv_prog_cc_g+set}" = set; then
3100
echo $ECHO_N "(cached) $ECHO_C" >&6
3102
ac_save_c_werror_flag=$ac_c_werror_flag
3103
ac_c_werror_flag=yes
3106
cat >conftest.$ac_ext <<_ACEOF
3109
cat confdefs.h >>conftest.$ac_ext
3110
cat >>conftest.$ac_ext <<_ACEOF
3111
/* end confdefs.h. */
3121
rm -f conftest.$ac_objext
3122
if { (ac_try="$ac_compile"
3124
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125
*) ac_try_echo=$ac_try;;
3127
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3128
(eval "$ac_compile") 2>conftest.er1
3130
grep -v '^ *+' conftest.er1 >conftest.err
3132
cat conftest.err >&5
3133
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134
(exit $ac_status); } && {
3135
test -z "$ac_c_werror_flag" ||
3136
test ! -s conftest.err
3137
} && test -s conftest.$ac_objext; then
3140
echo "$as_me: failed program was:" >&5
3141
sed 's/^/| /' conftest.$ac_ext >&5
3144
cat >conftest.$ac_ext <<_ACEOF
3147
cat confdefs.h >>conftest.$ac_ext
3148
cat >>conftest.$ac_ext <<_ACEOF
3149
/* end confdefs.h. */
3159
rm -f conftest.$ac_objext
3160
if { (ac_try="$ac_compile"
3162
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3163
*) ac_try_echo=$ac_try;;
3165
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3166
(eval "$ac_compile") 2>conftest.er1
3168
grep -v '^ *+' conftest.er1 >conftest.err
3170
cat conftest.err >&5
3171
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172
(exit $ac_status); } && {
3173
test -z "$ac_c_werror_flag" ||
3174
test ! -s conftest.err
3175
} && test -s conftest.$ac_objext; then
3178
echo "$as_me: failed program was:" >&5
3179
sed 's/^/| /' conftest.$ac_ext >&5
3181
ac_c_werror_flag=$ac_save_c_werror_flag
3183
cat >conftest.$ac_ext <<_ACEOF
3186
cat confdefs.h >>conftest.$ac_ext
3187
cat >>conftest.$ac_ext <<_ACEOF
3188
/* end confdefs.h. */
3198
rm -f conftest.$ac_objext
3199
if { (ac_try="$ac_compile"
3201
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202
*) ac_try_echo=$ac_try;;
3204
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3205
(eval "$ac_compile") 2>conftest.er1
3207
grep -v '^ *+' conftest.er1 >conftest.err
3209
cat conftest.err >&5
3210
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211
(exit $ac_status); } && {
3212
test -z "$ac_c_werror_flag" ||
3213
test ! -s conftest.err
3214
} && test -s conftest.$ac_objext; then
3217
echo "$as_me: failed program was:" >&5
3218
sed 's/^/| /' conftest.$ac_ext >&5
3223
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3226
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3229
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3230
ac_c_werror_flag=$ac_save_c_werror_flag
3232
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3233
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3234
if test "$ac_test_CFLAGS" = set; then
3235
CFLAGS=$ac_save_CFLAGS
3236
elif test $ac_cv_prog_cc_g = yes; then
3237
if test "$GCC" = yes; then
3243
if test "$GCC" = yes; then
3249
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3250
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3251
if test "${ac_cv_prog_cc_c89+set}" = set; then
3252
echo $ECHO_N "(cached) $ECHO_C" >&6
3254
ac_cv_prog_cc_c89=no
3256
cat >conftest.$ac_ext <<_ACEOF
3259
cat confdefs.h >>conftest.$ac_ext
3260
cat >>conftest.$ac_ext <<_ACEOF
3261
/* end confdefs.h. */
3264
#include <sys/types.h>
3265
#include <sys/stat.h>
3266
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3267
struct buf { int x; };
3268
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3269
static char *e (p, i)
3275
static char *f (char * (*g) (char **, int), char **p, ...)
3280
s = g (p, va_arg (v,int));
3285
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3286
function prototypes and stuff, but not '\xHH' hex character constants.
3287
These don't provoke an error unfortunately, instead are silently treated
3288
as 'x'. The following induces an error, until -std is added to get
3289
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3290
array size at least. It's necessary to write '\x00'==0 to get something
3291
that's true only with -std. */
3292
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3294
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3295
inside strings and character constants. */
3297
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3299
int test (int i, double x);
3300
struct s1 {int (*f) (int a);};
3301
struct s2 {int (*f) (double a);};
3302
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3308
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3313
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3314
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3316
CC="$ac_save_CC $ac_arg"
3317
rm -f conftest.$ac_objext
3318
if { (ac_try="$ac_compile"
3320
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321
*) ac_try_echo=$ac_try;;
3323
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3324
(eval "$ac_compile") 2>conftest.er1
3326
grep -v '^ *+' conftest.er1 >conftest.err
3328
cat conftest.err >&5
3329
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330
(exit $ac_status); } && {
3331
test -z "$ac_c_werror_flag" ||
3332
test ! -s conftest.err
3333
} && test -s conftest.$ac_objext; then
3334
ac_cv_prog_cc_c89=$ac_arg
3336
echo "$as_me: failed program was:" >&5
3337
sed 's/^/| /' conftest.$ac_ext >&5
3342
rm -f core conftest.err conftest.$ac_objext
3343
test "x$ac_cv_prog_cc_c89" != "xno" && break
3345
rm -f conftest.$ac_ext
3350
case "x$ac_cv_prog_cc_c89" in
3352
{ echo "$as_me:$LINENO: result: none needed" >&5
3353
echo "${ECHO_T}none needed" >&6; } ;;
3355
{ echo "$as_me:$LINENO: result: unsupported" >&5
3356
echo "${ECHO_T}unsupported" >&6; } ;;
3358
CC="$CC $ac_cv_prog_cc_c89"
3359
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3360
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3365
ac_cpp='$CPP $CPPFLAGS'
3366
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3367
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3368
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3369
DEPDIR="${am__leading_dot}deps"
3371
ac_config_commands="$ac_config_commands depfiles"
3374
am_make=${MAKE-make}
3375
cat > confinc << 'END'
3380
# If we don't find an include directive, just comment out the code.
3381
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3382
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3386
# First try GNU make style include.
3387
echo "include confinc" > confmf
3388
# We grep out `Entering directory' and `Leaving directory'
3389
# messages which can occur if `w' ends up in MAKEFLAGS.
3390
# In particular we don't look at `^make:' because GNU make might
3391
# be invoked under some other name (usually "gmake"), in which
3392
# case it prints its new name instead of `make'.
3393
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3398
# Now try BSD make style include.
3399
if test "$am__include" = "#"; then
3400
echo '.include "confinc"' > confmf
3401
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3402
am__include=.include
3409
{ echo "$as_me:$LINENO: result: $_am_result" >&5
3410
echo "${ECHO_T}$_am_result" >&6; }
3411
rm -f confinc confmf
3413
# Check whether --enable-dependency-tracking was given.
3414
if test "${enable_dependency_tracking+set}" = set; then
3415
enableval=$enable_dependency_tracking;
3418
if test "x$enable_dependency_tracking" != xno; then
3419
am_depcomp="$ac_aux_dir/depcomp"
3422
if test "x$enable_dependency_tracking" != xno; then
3432
depcc="$CC" am_compiler_list=
3434
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3435
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3436
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3437
echo $ECHO_N "(cached) $ECHO_C" >&6
3439
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3440
# We make a subdir and do the tests there. Otherwise we can end up
3441
# making bogus files that we don't know about and never remove. For
3442
# instance it was reported that on HP-UX the gcc test will end up
3443
# making a dummy file named `D' -- because `-MD' means `put the output
3446
# Copy depcomp to subdir because otherwise we won't find it if we're
3447
# using a relative directory.
3448
cp "$am_depcomp" conftest.dir
3450
# We will build objects and dependencies in a subdirectory because
3451
# it helps to detect inapplicable dependency modes. For instance
3452
# both Tru64's cc and ICC support -MD to output dependencies as a
3453
# side effect of compilation, but ICC will put the dependencies in
3454
# the current directory while Tru64 will put them in the object
3458
am_cv_CC_dependencies_compiler_type=none
3459
if test "$am_compiler_list" = ""; then
3460
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3462
for depmode in $am_compiler_list; do
3463
# Setup a source with many dependencies, because some compilers
3464
# like to wrap large dependency lists on column 80 (with \), and
3465
# we should not choose a depcomp mode which is confused by this.
3467
# We need to recreate these files for each test, as the compiler may
3468
# overwrite some of them when testing with obscure command lines.
3469
# This happens at least with the AIX C compiler.
3471
for i in 1 2 3 4 5 6; do
3472
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3473
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3474
# Solaris 8's {/usr,}/bin/sh.
3475
touch sub/conftst$i.h
3477
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3481
# after this tag, mechanisms are not by side-effect, so they'll
3482
# only be used when explicitly requested
3483
if test "x$enable_dependency_tracking" = xyes; then
3491
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3492
# mode. It turns out that the SunPro C++ compiler does not properly
3493
# handle `-M -o', and we need to detect this.
3494
if depmode=$depmode \
3495
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3496
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3497
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3498
>/dev/null 2>conftest.err &&
3499
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3500
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3501
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3502
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3503
# icc doesn't choke on unknown options, it will just issue warnings
3504
# or remarks (even with -Werror). So we grep stderr for any message
3505
# that says an option was ignored or not supported.
3506
# When given -MP, icc 7.0 and 7.1 complain thusly:
3507
# icc: Command line warning: ignoring option '-M'; no argument required
3508
# The diagnosis changed in icc 8.0:
3509
# icc: Command line remark: option '-MP' not supported
3510
if (grep 'ignoring option' conftest.err ||
3511
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3512
am_cv_CC_dependencies_compiler_type=$depmode
3521
am_cv_CC_dependencies_compiler_type=none
3525
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3526
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3527
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3530
test "x$enable_dependency_tracking" != xno \
3531
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3533
am__fastdepCC_FALSE='#'
3535
am__fastdepCC_TRUE='#'
3536
am__fastdepCC_FALSE=
3541
{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3542
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
3543
if test "${ac_cv_c_const+set}" = set; then
3544
echo $ECHO_N "(cached) $ECHO_C" >&6
3546
cat >conftest.$ac_ext <<_ACEOF
3549
cat confdefs.h >>conftest.$ac_ext
3550
cat >>conftest.$ac_ext <<_ACEOF
3551
/* end confdefs.h. */
3556
/* FIXME: Include the comments suggested by Paul. */
3558
/* Ultrix mips cc rejects this. */
3559
typedef int charset[2];
3561
/* SunOS 4.1.1 cc rejects this. */
3562
char const *const *pcpcc;
3564
/* NEC SVR4.0.2 mips cc rejects this. */
3565
struct point {int x, y;};
3566
static struct point const zero = {0,0};
3567
/* AIX XL C 1.02.0.0 rejects this.
3568
It does not let you subtract one const X* pointer from another in
3569
an arm of an if-expression whose if-part is not a constant
3571
const char *g = "string";
3572
pcpcc = &g + (g ? g-g : 0);
3573
/* HPUX 7.0 cc rejects these. */
3575
ppc = (char**) pcpcc;
3576
pcpcc = (char const *const *) ppc;
3577
{ /* SCO 3.2v4 cc rejects this. */
3579
char const *s = 0 ? (char *) 0 : (char const *) 0;
3584
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3586
const int *foo = &x[0];
3589
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3590
typedef const int *iptr;
3594
{ /* AIX XL C 1.02.0.0 rejects this saying
3595
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3596
struct s { int j; const int *ap[3]; };
3597
struct s *b; b->j = 5;
3599
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3603
return !cs[0] && !zero.x;
3610
rm -f conftest.$ac_objext
3611
if { (ac_try="$ac_compile"
3613
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3614
*) ac_try_echo=$ac_try;;
3616
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3617
(eval "$ac_compile") 2>conftest.er1
3619
grep -v '^ *+' conftest.er1 >conftest.err
3621
cat conftest.err >&5
3622
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623
(exit $ac_status); } && {
3624
test -z "$ac_c_werror_flag" ||
3625
test ! -s conftest.err
3626
} && test -s conftest.$ac_objext; then
3629
echo "$as_me: failed program was:" >&5
3630
sed 's/^/| /' conftest.$ac_ext >&5
3635
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3637
{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3638
echo "${ECHO_T}$ac_cv_c_const" >&6; }
3639
if test $ac_cv_c_const = no; then
3641
cat >>confdefs.h <<\_ACEOF
3647
{ echo "$as_me:$LINENO: checking for inline" >&5
3648
echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
3649
if test "${ac_cv_c_inline+set}" = set; then
3650
echo $ECHO_N "(cached) $ECHO_C" >&6
3653
for ac_kw in inline __inline__ __inline; do
3654
cat >conftest.$ac_ext <<_ACEOF
3657
cat confdefs.h >>conftest.$ac_ext
3658
cat >>conftest.$ac_ext <<_ACEOF
3659
/* end confdefs.h. */
3662
static $ac_kw foo_t static_foo () {return 0; }
3663
$ac_kw foo_t foo () {return 0; }
3667
rm -f conftest.$ac_objext
3668
if { (ac_try="$ac_compile"
3670
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3671
*) ac_try_echo=$ac_try;;
3673
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3674
(eval "$ac_compile") 2>conftest.er1
3676
grep -v '^ *+' conftest.er1 >conftest.err
3678
cat conftest.err >&5
3679
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680
(exit $ac_status); } && {
3681
test -z "$ac_c_werror_flag" ||
3682
test ! -s conftest.err
3683
} && test -s conftest.$ac_objext; then
3684
ac_cv_c_inline=$ac_kw
3686
echo "$as_me: failed program was:" >&5
3687
sed 's/^/| /' conftest.$ac_ext >&5
3692
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3693
test "$ac_cv_c_inline" != no && break
3697
{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3698
echo "${ECHO_T}$ac_cv_c_inline" >&6; }
3701
case $ac_cv_c_inline in
3704
case $ac_cv_c_inline in
3706
*) ac_val=$ac_cv_c_inline;;
3708
cat >>confdefs.h <<_ACEOF
3710
#define inline $ac_val
3718
## ----------------------- ##
3719
## Libtool initialisation. ##
3720
## ----------------------- ##
3723
# Check whether --enable-shared was given.
3724
if test "${enable_shared+set}" = set; then
3725
enableval=$enable_shared; p=${PACKAGE-default}
3727
yes) enable_shared=yes ;;
3728
no) enable_shared=no ;;
3731
# Look at the argument we got. We use all the common list separators.
3732
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3733
for pkg in $enableval; do
3735
if test "X$pkg" = "X$p"; then
3747
# Check whether --enable-static was given.
3748
if test "${enable_static+set}" = set; then
3749
enableval=$enable_static; p=${PACKAGE-default}
3751
yes) enable_static=yes ;;
3752
no) enable_static=no ;;
3755
# Look at the argument we got. We use all the common list separators.
3756
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3757
for pkg in $enableval; do
3759
if test "X$pkg" = "X$p"; then
3771
# Check whether --enable-fast-install was given.
3772
if test "${enable_fast_install+set}" = set; then
3773
enableval=$enable_fast_install; p=${PACKAGE-default}
3775
yes) enable_fast_install=yes ;;
3776
no) enable_fast_install=no ;;
3778
enable_fast_install=no
3779
# Look at the argument we got. We use all the common list separators.
3780
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3781
for pkg in $enableval; do
3783
if test "X$pkg" = "X$p"; then
3784
enable_fast_install=yes
3791
enable_fast_install=yes
3795
# Make sure we can run config.sub.
3796
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3797
{ { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3798
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3799
{ (exit 1); exit 1; }; }
3801
{ echo "$as_me:$LINENO: checking build system type" >&5
3802
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3803
if test "${ac_cv_build+set}" = set; then
3804
echo $ECHO_N "(cached) $ECHO_C" >&6
3806
ac_build_alias=$build_alias
3807
test "x$ac_build_alias" = x &&
3808
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3809
test "x$ac_build_alias" = x &&
3810
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3811
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3812
{ (exit 1); exit 1; }; }
3813
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3814
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3815
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3816
{ (exit 1); exit 1; }; }
3819
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3820
echo "${ECHO_T}$ac_cv_build" >&6; }
3821
case $ac_cv_build in
3823
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3824
echo "$as_me: error: invalid value of canonical build" >&2;}
3825
{ (exit 1); exit 1; }; };;
3828
ac_save_IFS=$IFS; IFS='-'
3834
# Remember, the first character of IFS is used to create $*,
3835
# except with old shells:
3838
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3841
{ echo "$as_me:$LINENO: checking host system type" >&5
3842
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3843
if test "${ac_cv_host+set}" = set; then
3844
echo $ECHO_N "(cached) $ECHO_C" >&6
3846
if test "x$host_alias" = x; then
3847
ac_cv_host=$ac_cv_build
3849
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3850
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3851
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3852
{ (exit 1); exit 1; }; }
3856
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3857
echo "${ECHO_T}$ac_cv_host" >&6; }
3860
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3861
echo "$as_me: error: invalid value of canonical host" >&2;}
3862
{ (exit 1); exit 1; }; };;
3865
ac_save_IFS=$IFS; IFS='-'
3871
# Remember, the first character of IFS is used to create $*,
3872
# except with old shells:
3875
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3878
{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3879
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3880
if test "${lt_cv_path_SED+set}" = set; then
3881
echo $ECHO_N "(cached) $ECHO_C" >&6
3883
# Loop through the user's path and test for sed and gsed.
3884
# Then use that list of sed's as ones to test for truncation.
3885
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3889
test -z "$as_dir" && as_dir=.
3890
for lt_ac_prog in sed gsed; do
3891
for ac_exec_ext in '' $ac_executable_extensions; do
3892
if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3893
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3900
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3901
# along with /bin/sed that truncates output.
3902
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3903
test ! -f $lt_ac_sed && continue
3904
cat /dev/null > conftest.in
3906
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3907
# Check for GNU sed and select it if it is found.
3908
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3909
lt_cv_path_SED=$lt_ac_sed
3913
cat conftest.in conftest.in >conftest.tmp
3914
mv conftest.tmp conftest.in
3915
cp conftest.in conftest.nl
3917
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3918
cmp -s conftest.out conftest.nl || break
3919
# 10000 chars as input seems more than enough
3920
test $lt_ac_count -gt 10 && break
3921
lt_ac_count=`expr $lt_ac_count + 1`
3922
if test $lt_ac_count -gt $lt_ac_max; then
3923
lt_ac_max=$lt_ac_count
3924
lt_cv_path_SED=$lt_ac_sed
3932
{ echo "$as_me:$LINENO: result: $SED" >&5
3933
echo "${ECHO_T}$SED" >&6; }
3935
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3936
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3937
if test "${ac_cv_path_GREP+set}" = set; then
3938
echo $ECHO_N "(cached) $ECHO_C" >&6
3940
# Extract the first word of "grep ggrep" to use in msg output
3941
if test -z "$GREP"; then
3942
set dummy grep ggrep; ac_prog_name=$2
3943
if test "${ac_cv_path_GREP+set}" = set; then
3944
echo $ECHO_N "(cached) $ECHO_C" >&6
3946
ac_path_GREP_found=false
3947
# Loop through the user's path and test for each of PROGNAME-LIST
3948
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3949
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3952
test -z "$as_dir" && as_dir=.
3953
for ac_prog in grep ggrep; do
3954
for ac_exec_ext in '' $ac_executable_extensions; do
3955
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3956
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3957
# Check for GNU ac_path_GREP and select it if it is found.
3958
# Check for GNU $ac_path_GREP
3959
case `"$ac_path_GREP" --version 2>&1` in
3961
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3964
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3967
cat "conftest.in" "conftest.in" >"conftest.tmp"
3968
mv "conftest.tmp" "conftest.in"
3969
cp "conftest.in" "conftest.nl"
3970
echo 'GREP' >> "conftest.nl"
3971
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3972
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3973
ac_count=`expr $ac_count + 1`
3974
if test $ac_count -gt ${ac_path_GREP_max-0}; then
3975
# Best one so far, save it but keep looking for a better one
3976
ac_cv_path_GREP="$ac_path_GREP"
3977
ac_path_GREP_max=$ac_count
3979
# 10*(2^10) chars as input seems more than enough
3980
test $ac_count -gt 10 && break
3982
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3986
$ac_path_GREP_found && break 3
3996
GREP="$ac_cv_path_GREP"
3997
if test -z "$GREP"; then
3998
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3999
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4000
{ (exit 1); exit 1; }; }
4004
ac_cv_path_GREP=$GREP
4009
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4010
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4011
GREP="$ac_cv_path_GREP"
4014
{ echo "$as_me:$LINENO: checking for egrep" >&5
4015
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4016
if test "${ac_cv_path_EGREP+set}" = set; then
4017
echo $ECHO_N "(cached) $ECHO_C" >&6
4019
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4020
then ac_cv_path_EGREP="$GREP -E"
4022
# Extract the first word of "egrep" to use in msg output
4023
if test -z "$EGREP"; then
4024
set dummy egrep; ac_prog_name=$2
4025
if test "${ac_cv_path_EGREP+set}" = set; then
4026
echo $ECHO_N "(cached) $ECHO_C" >&6
4028
ac_path_EGREP_found=false
4029
# Loop through the user's path and test for each of PROGNAME-LIST
4030
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4031
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4034
test -z "$as_dir" && as_dir=.
4035
for ac_prog in egrep; do
4036
for ac_exec_ext in '' $ac_executable_extensions; do
4037
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4038
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4039
# Check for GNU ac_path_EGREP and select it if it is found.
4040
# Check for GNU $ac_path_EGREP
4041
case `"$ac_path_EGREP" --version 2>&1` in
4043
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4046
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4049
cat "conftest.in" "conftest.in" >"conftest.tmp"
4050
mv "conftest.tmp" "conftest.in"
4051
cp "conftest.in" "conftest.nl"
4052
echo 'EGREP' >> "conftest.nl"
4053
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4054
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4055
ac_count=`expr $ac_count + 1`
4056
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4057
# Best one so far, save it but keep looking for a better one
4058
ac_cv_path_EGREP="$ac_path_EGREP"
4059
ac_path_EGREP_max=$ac_count
4061
# 10*(2^10) chars as input seems more than enough
4062
test $ac_count -gt 10 && break
4064
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4068
$ac_path_EGREP_found && break 3
4078
EGREP="$ac_cv_path_EGREP"
4079
if test -z "$EGREP"; then
4080
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4081
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4082
{ (exit 1); exit 1; }; }
4086
ac_cv_path_EGREP=$EGREP
4092
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4093
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4094
EGREP="$ac_cv_path_EGREP"
4098
# Check whether --with-gnu-ld was given.
4099
if test "${with_gnu_ld+set}" = set; then
4100
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4106
if test "$GCC" = yes; then
4107
# Check if gcc -print-prog-name=ld gives a path.
4108
{ echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4109
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4112
# gcc leaves a trailing carriage return which upsets mingw
4113
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4115
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4118
# Accept absolute paths.
4120
re_direlt='/[^/][^/]*/\.\./'
4121
# Canonicalize the pathname of ld
4122
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4123
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4124
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4126
test -z "$LD" && LD="$ac_prog"
4129
# If it fails, then pretend we aren't using GCC.
4133
# If it is relative, then search for the first ld in PATH.
4137
elif test "$with_gnu_ld" = yes; then
4138
{ echo "$as_me:$LINENO: checking for GNU ld" >&5
4139
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4141
{ echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4142
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4144
if test "${lt_cv_path_LD+set}" = set; then
4145
echo $ECHO_N "(cached) $ECHO_C" >&6
4147
if test -z "$LD"; then
4148
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4149
for ac_dir in $PATH; do
4151
test -z "$ac_dir" && ac_dir=.
4152
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4153
lt_cv_path_LD="$ac_dir/$ac_prog"
4154
# Check to see if the program is GNU ld. I'd rather use --version,
4155
# but apparently some variants of GNU ld only accept -v.
4156
# Break only if it was the GNU/non-GNU ld that we prefer.
4157
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4158
*GNU* | *'with BFD'*)
4159
test "$with_gnu_ld" != no && break
4162
test "$with_gnu_ld" != yes && break
4169
lt_cv_path_LD="$LD" # Let the user override the test with a path.
4174
if test -n "$LD"; then
4175
{ echo "$as_me:$LINENO: result: $LD" >&5
4176
echo "${ECHO_T}$LD" >&6; }
4178
{ echo "$as_me:$LINENO: result: no" >&5
4179
echo "${ECHO_T}no" >&6; }
4181
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4182
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4183
{ (exit 1); exit 1; }; }
4184
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4185
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4186
if test "${lt_cv_prog_gnu_ld+set}" = set; then
4187
echo $ECHO_N "(cached) $ECHO_C" >&6
4189
# I'd rather use --version here, but apparently some GNU lds only accept -v.
4190
case `$LD -v 2>&1 </dev/null` in
4191
*GNU* | *'with BFD'*)
4192
lt_cv_prog_gnu_ld=yes
4195
lt_cv_prog_gnu_ld=no
4199
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4200
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4201
with_gnu_ld=$lt_cv_prog_gnu_ld
4204
{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4205
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4206
if test "${lt_cv_ld_reload_flag+set}" = set; then
4207
echo $ECHO_N "(cached) $ECHO_C" >&6
4209
lt_cv_ld_reload_flag='-r'
4211
{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4212
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4213
reload_flag=$lt_cv_ld_reload_flag
4214
case $reload_flag in
4216
*) reload_flag=" $reload_flag" ;;
4218
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4221
if test "$GCC" = yes; then
4222
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4224
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4229
{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4230
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4231
if test "${lt_cv_path_NM+set}" = set; then
4232
echo $ECHO_N "(cached) $ECHO_C" >&6
4234
if test -n "$NM"; then
4235
# Let the user override the test.
4238
lt_nm_to_check="${ac_tool_prefix}nm"
4239
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4240
lt_nm_to_check="$lt_nm_to_check nm"
4242
for lt_tmp_nm in $lt_nm_to_check; do
4243
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4244
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4246
test -z "$ac_dir" && ac_dir=.
4247
tmp_nm="$ac_dir/$lt_tmp_nm"
4248
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4249
# Check to see if the nm accepts a BSD-compat flag.
4250
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4251
# nm: unknown option "B" ignored
4252
# Tru64's nm complains that /dev/null is an invalid object file
4253
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4254
*/dev/null* | *'Invalid file or object type'*)
4255
lt_cv_path_NM="$tmp_nm -B"
4259
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4261
lt_cv_path_NM="$tmp_nm -p"
4265
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4266
continue # so that we can try to find one that supports BSD flags
4275
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4278
{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4279
echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4282
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4283
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4285
if test "$LN_S" = "ln -s"; then
4286
{ echo "$as_me:$LINENO: result: yes" >&5
4287
echo "${ECHO_T}yes" >&6; }
4289
{ echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4290
echo "${ECHO_T}no, using $LN_S" >&6; }
4293
{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4294
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4295
if test "${lt_cv_deplibs_check_method+set}" = set; then
4296
echo $ECHO_N "(cached) $ECHO_C" >&6
4298
lt_cv_file_magic_cmd='$MAGIC_CMD'
4299
lt_cv_file_magic_test_file=
4300
lt_cv_deplibs_check_method='unknown'
4301
# Need to set the preceding variable on all platforms that support
4302
# interlibrary dependencies.
4303
# 'none' -- dependencies not supported.
4304
# `unknown' -- same as none, but documents that we really don't know.
4305
# 'pass_all' -- all dependencies passed with no checks.
4306
# 'test_compile' -- check by making test program.
4307
# 'file_magic [[regex]]' -- check by looking for files in library path
4308
# which responds to the $file_magic_cmd with a given extended regex.
4309
# If you have `file' or equivalent on your system and you're not sure
4310
# whether `pass_all' will *always* work, you probably want this one.
4314
lt_cv_deplibs_check_method=pass_all
4318
lt_cv_deplibs_check_method=pass_all
4322
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4323
lt_cv_file_magic_cmd='/usr/bin/file -L'
4324
lt_cv_file_magic_test_file=/shlib/libc.so
4328
# func_win32_libid is a shell function defined in ltmain.sh
4329
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4330
lt_cv_file_magic_cmd='func_win32_libid'
4334
# Base MSYS/MinGW do not provide the 'file' command needed by
4335
# func_win32_libid shell function, so use a weaker test based on 'objdump'.
4336
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4337
lt_cv_file_magic_cmd='$OBJDUMP -f'
4340
darwin* | rhapsody*)
4341
lt_cv_deplibs_check_method=pass_all
4344
freebsd* | dragonfly*)
4345
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4348
# Not sure whether the presence of OpenBSD here was a mistake.
4349
# Let's accept both of them until this is cleared up.
4350
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4351
lt_cv_file_magic_cmd=/usr/bin/file
4352
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4356
lt_cv_deplibs_check_method=pass_all
4361
lt_cv_deplibs_check_method=pass_all
4364
hpux10.20* | hpux11*)
4365
lt_cv_file_magic_cmd=/usr/bin/file
4368
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4369
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4372
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4373
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4376
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4377
lt_cv_file_magic_test_file=/usr/lib/libc.sl
4383
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4384
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4387
irix5* | irix6* | nonstopux*)
4389
*-32|*"-32 ") libmagic=32-bit;;
4390
*-n32|*"-n32 ") libmagic=N32;;
4391
*-64|*"-64 ") libmagic=64-bit;;
4392
*) libmagic=never-match;;
4394
lt_cv_deplibs_check_method=pass_all
4397
# This must be Linux ELF.
4398
linux* | k*bsd*-gnu)
4399
lt_cv_deplibs_check_method=pass_all
4402
netbsd* | netbsdelf*-gnu)
4403
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4404
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4406
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4411
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4412
lt_cv_file_magic_cmd=/usr/bin/file
4413
lt_cv_file_magic_test_file=/usr/lib/libnls.so
4417
lt_cv_deplibs_check_method=unknown
4421
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4422
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4424
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4428
osf3* | osf4* | osf5*)
4429
lt_cv_deplibs_check_method=pass_all
4433
lt_cv_deplibs_check_method=pass_all
4437
case $host_vendor in
4439
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
4440
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4443
lt_cv_deplibs_check_method=pass_all
4446
lt_cv_file_magic_cmd='/bin/file'
4447
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4450
lt_cv_file_magic_cmd='/bin/file'
4451
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4452
lt_cv_file_magic_test_file=/lib/libc.so
4455
lt_cv_deplibs_check_method=pass_all
4458
lt_cv_deplibs_check_method=pass_all
4463
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4464
lt_cv_deplibs_check_method=pass_all
4469
{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4470
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4471
file_magic_cmd=$lt_cv_file_magic_cmd
4472
deplibs_check_method=$lt_cv_deplibs_check_method
4473
test -z "$deplibs_check_method" && deplibs_check_method=unknown
4478
# If no C compiler was specified, use CC.
4481
# If no C compiler flags were specified, use CFLAGS.
4482
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4484
# Allow CC to be a program name with arguments.
4487
# Check whether --enable-libtool-lock was given.
4488
if test "${enable_libtool_lock+set}" = set; then
4489
enableval=$enable_libtool_lock;
4492
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4494
# Some flags need to be propagated to the compiler or linker for good
4498
# Find out which ABI we are using.
4499
echo 'int i;' > conftest.$ac_ext
4500
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4501
(eval $ac_compile) 2>&5
4503
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504
(exit $ac_status); }; then
4505
case `/usr/bin/file conftest.$ac_objext` in
4517
# Find out which ABI we are using.
4518
echo '#line 4518 "configure"' > conftest.$ac_ext
4519
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4520
(eval $ac_compile) 2>&5
4522
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523
(exit $ac_status); }; then
4524
if test "$lt_cv_prog_gnu_ld" = yes; then
4525
case `/usr/bin/file conftest.$ac_objext` in
4527
LD="${LD-ld} -melf32bsmip"
4530
LD="${LD-ld} -melf32bmipn32"
4533
LD="${LD-ld} -melf64bmip"
4537
case `/usr/bin/file conftest.$ac_objext` in
4553
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4554
# Find out which ABI we are using.
4555
echo 'int i;' > conftest.$ac_ext
4556
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4557
(eval $ac_compile) 2>&5
4559
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560
(exit $ac_status); }; then
4561
case `/usr/bin/file conftest.o` in
4565
LD="${LD-ld} -m elf_i386"
4567
ppc64-*linux*|powerpc64-*linux*)
4568
LD="${LD-ld} -m elf32ppclinux"
4571
LD="${LD-ld} -m elf_s390"
4574
LD="${LD-ld} -m elf32_sparc"
4581
LD="${LD-ld} -m elf_x86_64"
4583
ppc*-*linux*|powerpc*-*linux*)
4584
LD="${LD-ld} -m elf64ppc"
4587
LD="${LD-ld} -m elf64_s390"
4590
LD="${LD-ld} -m elf64_sparc"
4600
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
4601
SAVE_CFLAGS="$CFLAGS"
4602
CFLAGS="$CFLAGS -belf"
4603
{ echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4604
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4605
if test "${lt_cv_cc_needs_belf+set}" = set; then
4606
echo $ECHO_N "(cached) $ECHO_C" >&6
4609
ac_cpp='$CPP $CPPFLAGS'
4610
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4611
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4612
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4614
cat >conftest.$ac_ext <<_ACEOF
4617
cat confdefs.h >>conftest.$ac_ext
4618
cat >>conftest.$ac_ext <<_ACEOF
4619
/* end confdefs.h. */
4629
rm -f conftest.$ac_objext conftest$ac_exeext
4630
if { (ac_try="$ac_link"
4632
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4633
*) ac_try_echo=$ac_try;;
4635
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4636
(eval "$ac_link") 2>conftest.er1
4638
grep -v '^ *+' conftest.er1 >conftest.err
4640
cat conftest.err >&5
4641
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642
(exit $ac_status); } && {
4643
test -z "$ac_c_werror_flag" ||
4644
test ! -s conftest.err
4645
} && test -s conftest$ac_exeext &&
4646
$as_test_x conftest$ac_exeext; then
4647
lt_cv_cc_needs_belf=yes
4649
echo "$as_me: failed program was:" >&5
4650
sed 's/^/| /' conftest.$ac_ext >&5
4652
lt_cv_cc_needs_belf=no
4655
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4656
conftest$ac_exeext conftest.$ac_ext
4658
ac_cpp='$CPP $CPPFLAGS'
4659
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4660
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4661
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4664
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4665
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4666
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4667
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4668
CFLAGS="$SAVE_CFLAGS"
4672
# Find out which ABI we are using.
4673
echo 'int i;' > conftest.$ac_ext
4674
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4675
(eval $ac_compile) 2>&5
4677
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678
(exit $ac_status); }; then
4679
case `/usr/bin/file conftest.o` in
4681
case $lt_cv_prog_gnu_ld in
4682
yes*) LD="${LD-ld} -m elf64_sparc" ;;
4683
*) LD="${LD-ld} -64" ;;
4691
*-*-cygwin* | *-*-mingw* | *-*-pw32*)
4692
if test -n "$ac_tool_prefix"; then
4693
# Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4694
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4695
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4696
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4697
if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4698
echo $ECHO_N "(cached) $ECHO_C" >&6
4700
if test -n "$DLLTOOL"; then
4701
ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4703
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4707
test -z "$as_dir" && as_dir=.
4708
for ac_exec_ext in '' $ac_executable_extensions; do
4709
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4710
ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4711
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4720
DLLTOOL=$ac_cv_prog_DLLTOOL
4721
if test -n "$DLLTOOL"; then
4722
{ echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4723
echo "${ECHO_T}$DLLTOOL" >&6; }
4725
{ echo "$as_me:$LINENO: result: no" >&5
4726
echo "${ECHO_T}no" >&6; }
4731
if test -z "$ac_cv_prog_DLLTOOL"; then
4732
ac_ct_DLLTOOL=$DLLTOOL
4733
# Extract the first word of "dlltool", so it can be a program name with args.
4734
set dummy dlltool; ac_word=$2
4735
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4736
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4737
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4738
echo $ECHO_N "(cached) $ECHO_C" >&6
4740
if test -n "$ac_ct_DLLTOOL"; then
4741
ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4743
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747
test -z "$as_dir" && as_dir=.
4748
for ac_exec_ext in '' $ac_executable_extensions; do
4749
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4750
ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4751
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4760
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4761
if test -n "$ac_ct_DLLTOOL"; then
4762
{ echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4763
echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
4765
{ echo "$as_me:$LINENO: result: no" >&5
4766
echo "${ECHO_T}no" >&6; }
4769
if test "x$ac_ct_DLLTOOL" = x; then
4772
case $cross_compiling:$ac_tool_warned in
4774
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4775
whose name does not start with the host triplet. If you think this
4776
configuration is useful to you, please write to autoconf@gnu.org." >&5
4777
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4778
whose name does not start with the host triplet. If you think this
4779
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4780
ac_tool_warned=yes ;;
4782
DLLTOOL=$ac_ct_DLLTOOL
4785
DLLTOOL="$ac_cv_prog_DLLTOOL"
4788
if test -n "$ac_tool_prefix"; then
4789
# Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4790
set dummy ${ac_tool_prefix}as; ac_word=$2
4791
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4792
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4793
if test "${ac_cv_prog_AS+set}" = set; then
4794
echo $ECHO_N "(cached) $ECHO_C" >&6
4796
if test -n "$AS"; then
4797
ac_cv_prog_AS="$AS" # Let the user override the test.
4799
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4803
test -z "$as_dir" && as_dir=.
4804
for ac_exec_ext in '' $ac_executable_extensions; do
4805
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4806
ac_cv_prog_AS="${ac_tool_prefix}as"
4807
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4817
if test -n "$AS"; then
4818
{ echo "$as_me:$LINENO: result: $AS" >&5
4819
echo "${ECHO_T}$AS" >&6; }
4821
{ echo "$as_me:$LINENO: result: no" >&5
4822
echo "${ECHO_T}no" >&6; }
4827
if test -z "$ac_cv_prog_AS"; then
4829
# Extract the first word of "as", so it can be a program name with args.
4830
set dummy as; ac_word=$2
4831
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4832
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4833
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4834
echo $ECHO_N "(cached) $ECHO_C" >&6
4836
if test -n "$ac_ct_AS"; then
4837
ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4839
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4843
test -z "$as_dir" && as_dir=.
4844
for ac_exec_ext in '' $ac_executable_extensions; do
4845
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4846
ac_cv_prog_ac_ct_AS="as"
4847
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4856
ac_ct_AS=$ac_cv_prog_ac_ct_AS
4857
if test -n "$ac_ct_AS"; then
4858
{ echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4859
echo "${ECHO_T}$ac_ct_AS" >&6; }
4861
{ echo "$as_me:$LINENO: result: no" >&5
4862
echo "${ECHO_T}no" >&6; }
4865
if test "x$ac_ct_AS" = x; then
4868
case $cross_compiling:$ac_tool_warned in
4870
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4871
whose name does not start with the host triplet. If you think this
4872
configuration is useful to you, please write to autoconf@gnu.org." >&5
4873
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4874
whose name does not start with the host triplet. If you think this
4875
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4876
ac_tool_warned=yes ;;
4884
if test -n "$ac_tool_prefix"; then
4885
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4886
set dummy ${ac_tool_prefix}objdump; ac_word=$2
4887
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4888
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4889
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4890
echo $ECHO_N "(cached) $ECHO_C" >&6
4892
if test -n "$OBJDUMP"; then
4893
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4895
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4899
test -z "$as_dir" && as_dir=.
4900
for ac_exec_ext in '' $ac_executable_extensions; do
4901
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4902
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4903
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4912
OBJDUMP=$ac_cv_prog_OBJDUMP
4913
if test -n "$OBJDUMP"; then
4914
{ echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4915
echo "${ECHO_T}$OBJDUMP" >&6; }
4917
{ echo "$as_me:$LINENO: result: no" >&5
4918
echo "${ECHO_T}no" >&6; }
4923
if test -z "$ac_cv_prog_OBJDUMP"; then
4924
ac_ct_OBJDUMP=$OBJDUMP
4925
# Extract the first word of "objdump", so it can be a program name with args.
4926
set dummy objdump; ac_word=$2
4927
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4928
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4929
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4930
echo $ECHO_N "(cached) $ECHO_C" >&6
4932
if test -n "$ac_ct_OBJDUMP"; then
4933
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4935
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4939
test -z "$as_dir" && as_dir=.
4940
for ac_exec_ext in '' $ac_executable_extensions; do
4941
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4942
ac_cv_prog_ac_ct_OBJDUMP="objdump"
4943
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4952
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4953
if test -n "$ac_ct_OBJDUMP"; then
4954
{ echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4955
echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
4957
{ echo "$as_me:$LINENO: result: no" >&5
4958
echo "${ECHO_T}no" >&6; }
4961
if test "x$ac_ct_OBJDUMP" = x; then
4964
case $cross_compiling:$ac_tool_warned in
4966
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4967
whose name does not start with the host triplet. If you think this
4968
configuration is useful to you, please write to autoconf@gnu.org." >&5
4969
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4970
whose name does not start with the host triplet. If you think this
4971
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4972
ac_tool_warned=yes ;;
4974
OBJDUMP=$ac_ct_OBJDUMP
4977
OBJDUMP="$ac_cv_prog_OBJDUMP"
4984
need_locks="$enable_libtool_lock"
4988
ac_cpp='$CPP $CPPFLAGS'
4989
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4990
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4991
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4992
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4993
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4994
# On Suns, sometimes $CPP names a directory.
4995
if test -n "$CPP" && test -d "$CPP"; then
4998
if test -z "$CPP"; then
4999
if test "${ac_cv_prog_CPP+set}" = set; then
5000
echo $ECHO_N "(cached) $ECHO_C" >&6
5002
# Double quotes because CPP needs to be expanded
5003
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5006
for ac_c_preproc_warn_flag in '' yes
5008
# Use a header file that comes with gcc, so configuring glibc
5009
# with a fresh cross-compiler works.
5010
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5011
# <limits.h> exists even on freestanding compilers.
5012
# On the NeXT, cc -E runs the code through the compiler's parser,
5013
# not just through cpp. "Syntax error" is here to catch this case.
5014
cat >conftest.$ac_ext <<_ACEOF
5017
cat confdefs.h >>conftest.$ac_ext
5018
cat >>conftest.$ac_ext <<_ACEOF
5019
/* end confdefs.h. */
5021
# include <limits.h>
5023
# include <assert.h>
5027
if { (ac_try="$ac_cpp conftest.$ac_ext"
5029
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5030
*) ac_try_echo=$ac_try;;
5032
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5033
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5035
grep -v '^ *+' conftest.er1 >conftest.err
5037
cat conftest.err >&5
5038
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039
(exit $ac_status); } >/dev/null && {
5040
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5041
test ! -s conftest.err
5045
echo "$as_me: failed program was:" >&5
5046
sed 's/^/| /' conftest.$ac_ext >&5
5048
# Broken: fails on valid input.
5052
rm -f conftest.err conftest.$ac_ext
5054
# OK, works on sane cases. Now check whether nonexistent headers
5055
# can be detected and how.
5056
cat >conftest.$ac_ext <<_ACEOF
5059
cat confdefs.h >>conftest.$ac_ext
5060
cat >>conftest.$ac_ext <<_ACEOF
5061
/* end confdefs.h. */
5062
#include <ac_nonexistent.h>
5064
if { (ac_try="$ac_cpp conftest.$ac_ext"
5066
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5067
*) ac_try_echo=$ac_try;;
5069
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5070
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5072
grep -v '^ *+' conftest.er1 >conftest.err
5074
cat conftest.err >&5
5075
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076
(exit $ac_status); } >/dev/null && {
5077
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5078
test ! -s conftest.err
5080
# Broken: success on invalid input.
5083
echo "$as_me: failed program was:" >&5
5084
sed 's/^/| /' conftest.$ac_ext >&5
5086
# Passes both tests.
5091
rm -f conftest.err conftest.$ac_ext
5094
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5095
rm -f conftest.err conftest.$ac_ext
5096
if $ac_preproc_ok; then
5108
{ echo "$as_me:$LINENO: result: $CPP" >&5
5109
echo "${ECHO_T}$CPP" >&6; }
5111
for ac_c_preproc_warn_flag in '' yes
5113
# Use a header file that comes with gcc, so configuring glibc
5114
# with a fresh cross-compiler works.
5115
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5116
# <limits.h> exists even on freestanding compilers.
5117
# On the NeXT, cc -E runs the code through the compiler's parser,
5118
# not just through cpp. "Syntax error" is here to catch this case.
5119
cat >conftest.$ac_ext <<_ACEOF
5122
cat confdefs.h >>conftest.$ac_ext
5123
cat >>conftest.$ac_ext <<_ACEOF
5124
/* end confdefs.h. */
5126
# include <limits.h>
5128
# include <assert.h>
5132
if { (ac_try="$ac_cpp conftest.$ac_ext"
5134
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5135
*) ac_try_echo=$ac_try;;
5137
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5138
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5140
grep -v '^ *+' conftest.er1 >conftest.err
5142
cat conftest.err >&5
5143
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144
(exit $ac_status); } >/dev/null && {
5145
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5146
test ! -s conftest.err
5150
echo "$as_me: failed program was:" >&5
5151
sed 's/^/| /' conftest.$ac_ext >&5
5153
# Broken: fails on valid input.
5157
rm -f conftest.err conftest.$ac_ext
5159
# OK, works on sane cases. Now check whether nonexistent headers
5160
# can be detected and how.
5161
cat >conftest.$ac_ext <<_ACEOF
5164
cat confdefs.h >>conftest.$ac_ext
5165
cat >>conftest.$ac_ext <<_ACEOF
5166
/* end confdefs.h. */
5167
#include <ac_nonexistent.h>
5169
if { (ac_try="$ac_cpp conftest.$ac_ext"
5171
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5172
*) ac_try_echo=$ac_try;;
5174
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5175
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5177
grep -v '^ *+' conftest.er1 >conftest.err
5179
cat conftest.err >&5
5180
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181
(exit $ac_status); } >/dev/null && {
5182
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5183
test ! -s conftest.err
5185
# Broken: success on invalid input.
5188
echo "$as_me: failed program was:" >&5
5189
sed 's/^/| /' conftest.$ac_ext >&5
5191
# Passes both tests.
5196
rm -f conftest.err conftest.$ac_ext
5199
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5200
rm -f conftest.err conftest.$ac_ext
5201
if $ac_preproc_ok; then
5204
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5205
See \`config.log' for more details." >&5
5206
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5207
See \`config.log' for more details." >&2;}
5208
{ (exit 1); exit 1; }; }
5212
ac_cpp='$CPP $CPPFLAGS'
5213
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5214
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5215
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5218
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5219
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5220
if test "${ac_cv_header_stdc+set}" = set; then
5221
echo $ECHO_N "(cached) $ECHO_C" >&6
5223
cat >conftest.$ac_ext <<_ACEOF
5226
cat confdefs.h >>conftest.$ac_ext
5227
cat >>conftest.$ac_ext <<_ACEOF
5228
/* end confdefs.h. */
5242
rm -f conftest.$ac_objext
5243
if { (ac_try="$ac_compile"
5245
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5246
*) ac_try_echo=$ac_try;;
5248
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5249
(eval "$ac_compile") 2>conftest.er1
5251
grep -v '^ *+' conftest.er1 >conftest.err
5253
cat conftest.err >&5
5254
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5255
(exit $ac_status); } && {
5256
test -z "$ac_c_werror_flag" ||
5257
test ! -s conftest.err
5258
} && test -s conftest.$ac_objext; then
5259
ac_cv_header_stdc=yes
5261
echo "$as_me: failed program was:" >&5
5262
sed 's/^/| /' conftest.$ac_ext >&5
5264
ac_cv_header_stdc=no
5267
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5269
if test $ac_cv_header_stdc = yes; then
5270
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5271
cat >conftest.$ac_ext <<_ACEOF
5274
cat confdefs.h >>conftest.$ac_ext
5275
cat >>conftest.$ac_ext <<_ACEOF
5276
/* end confdefs.h. */
5280
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5281
$EGREP "memchr" >/dev/null 2>&1; then
5284
ac_cv_header_stdc=no
5290
if test $ac_cv_header_stdc = yes; then
5291
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5292
cat >conftest.$ac_ext <<_ACEOF
5295
cat confdefs.h >>conftest.$ac_ext
5296
cat >>conftest.$ac_ext <<_ACEOF
5297
/* end confdefs.h. */
5301
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5302
$EGREP "free" >/dev/null 2>&1; then
5305
ac_cv_header_stdc=no
5311
if test $ac_cv_header_stdc = yes; then
5312
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5313
if test "$cross_compiling" = yes; then
5316
cat >conftest.$ac_ext <<_ACEOF
5319
cat confdefs.h >>conftest.$ac_ext
5320
cat >>conftest.$ac_ext <<_ACEOF
5321
/* end confdefs.h. */
5324
#if ((' ' & 0x0FF) == 0x020)
5325
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5326
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5328
# define ISLOWER(c) \
5329
(('a' <= (c) && (c) <= 'i') \
5330
|| ('j' <= (c) && (c) <= 'r') \
5331
|| ('s' <= (c) && (c) <= 'z'))
5332
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5335
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5340
for (i = 0; i < 256; i++)
5341
if (XOR (islower (i), ISLOWER (i))
5342
|| toupper (i) != TOUPPER (i))
5347
rm -f conftest$ac_exeext
5348
if { (ac_try="$ac_link"
5350
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5351
*) ac_try_echo=$ac_try;;
5353
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5354
(eval "$ac_link") 2>&5
5356
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5358
{ (case "(($ac_try" in
5359
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5360
*) ac_try_echo=$ac_try;;
5362
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5363
(eval "$ac_try") 2>&5
5365
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366
(exit $ac_status); }; }; then
5369
echo "$as_me: program exited with status $ac_status" >&5
5370
echo "$as_me: failed program was:" >&5
5371
sed 's/^/| /' conftest.$ac_ext >&5
5374
ac_cv_header_stdc=no
5376
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5382
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5383
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5384
if test $ac_cv_header_stdc = yes; then
5386
cat >>confdefs.h <<\_ACEOF
5387
#define STDC_HEADERS 1
5392
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5402
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5403
inttypes.h stdint.h unistd.h
5405
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5406
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5407
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5408
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5409
echo $ECHO_N "(cached) $ECHO_C" >&6
5411
cat >conftest.$ac_ext <<_ACEOF
5414
cat confdefs.h >>conftest.$ac_ext
5415
cat >>conftest.$ac_ext <<_ACEOF
5416
/* end confdefs.h. */
5417
$ac_includes_default
5419
#include <$ac_header>
5421
rm -f conftest.$ac_objext
5422
if { (ac_try="$ac_compile"
5424
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5425
*) ac_try_echo=$ac_try;;
5427
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5428
(eval "$ac_compile") 2>conftest.er1
5430
grep -v '^ *+' conftest.er1 >conftest.err
5432
cat conftest.err >&5
5433
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434
(exit $ac_status); } && {
5435
test -z "$ac_c_werror_flag" ||
5436
test ! -s conftest.err
5437
} && test -s conftest.$ac_objext; then
5438
eval "$as_ac_Header=yes"
5440
echo "$as_me: failed program was:" >&5
5441
sed 's/^/| /' conftest.$ac_ext >&5
5443
eval "$as_ac_Header=no"
5446
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5448
ac_res=`eval echo '${'$as_ac_Header'}'`
5449
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5450
echo "${ECHO_T}$ac_res" >&6; }
5451
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5452
cat >>confdefs.h <<_ACEOF
5453
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5462
for ac_header in dlfcn.h
5464
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5465
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5466
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5467
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5468
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5469
echo $ECHO_N "(cached) $ECHO_C" >&6
5471
ac_res=`eval echo '${'$as_ac_Header'}'`
5472
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5473
echo "${ECHO_T}$ac_res" >&6; }
5475
# Is the header compilable?
5476
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5477
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5478
cat >conftest.$ac_ext <<_ACEOF
5481
cat confdefs.h >>conftest.$ac_ext
5482
cat >>conftest.$ac_ext <<_ACEOF
5483
/* end confdefs.h. */
5484
$ac_includes_default
5485
#include <$ac_header>
5487
rm -f conftest.$ac_objext
5488
if { (ac_try="$ac_compile"
5490
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5491
*) ac_try_echo=$ac_try;;
5493
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5494
(eval "$ac_compile") 2>conftest.er1
5496
grep -v '^ *+' conftest.er1 >conftest.err
5498
cat conftest.err >&5
5499
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5500
(exit $ac_status); } && {
5501
test -z "$ac_c_werror_flag" ||
5502
test ! -s conftest.err
5503
} && test -s conftest.$ac_objext; then
5504
ac_header_compiler=yes
5506
echo "$as_me: failed program was:" >&5
5507
sed 's/^/| /' conftest.$ac_ext >&5
5509
ac_header_compiler=no
5512
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5513
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5514
echo "${ECHO_T}$ac_header_compiler" >&6; }
5516
# Is the header present?
5517
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5518
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5519
cat >conftest.$ac_ext <<_ACEOF
5522
cat confdefs.h >>conftest.$ac_ext
5523
cat >>conftest.$ac_ext <<_ACEOF
5524
/* end confdefs.h. */
5525
#include <$ac_header>
5527
if { (ac_try="$ac_cpp conftest.$ac_ext"
5529
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5530
*) ac_try_echo=$ac_try;;
5532
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5533
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5535
grep -v '^ *+' conftest.er1 >conftest.err
5537
cat conftest.err >&5
5538
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539
(exit $ac_status); } >/dev/null && {
5540
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5541
test ! -s conftest.err
5543
ac_header_preproc=yes
5545
echo "$as_me: failed program was:" >&5
5546
sed 's/^/| /' conftest.$ac_ext >&5
5548
ac_header_preproc=no
5551
rm -f conftest.err conftest.$ac_ext
5552
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5553
echo "${ECHO_T}$ac_header_preproc" >&6; }
5555
# So? What about this header?
5556
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5558
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5559
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5560
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5561
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5562
ac_header_preproc=yes
5565
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5566
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5567
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5568
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5569
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5570
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5571
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5572
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5573
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5574
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5575
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5576
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5578
## ---------------------------------- ##
5579
## Report this to bug-libtool@gnu.org ##
5580
## ---------------------------------- ##
5582
) | sed "s/^/$as_me: WARNING: /" >&2
5585
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5586
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5587
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5588
echo $ECHO_N "(cached) $ECHO_C" >&6
5590
eval "$as_ac_Header=\$ac_header_preproc"
5592
ac_res=`eval echo '${'$as_ac_Header'}'`
5593
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5594
echo "${ECHO_T}$ac_res" >&6; }
5597
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5598
cat >>confdefs.h <<_ACEOF
5599
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5607
ac_cpp='$CXXCPP $CPPFLAGS'
5608
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5609
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5610
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5611
if test -z "$CXX"; then
5612
if test -n "$CCC"; then
5615
if test -n "$ac_tool_prefix"; then
5616
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5618
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5619
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5620
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5621
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5622
if test "${ac_cv_prog_CXX+set}" = set; then
5623
echo $ECHO_N "(cached) $ECHO_C" >&6
5625
if test -n "$CXX"; then
5626
ac_cv_prog_CXX="$CXX" # Let the user override the test.
5628
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5632
test -z "$as_dir" && as_dir=.
5633
for ac_exec_ext in '' $ac_executable_extensions; do
5634
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5635
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5636
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5646
if test -n "$CXX"; then
5647
{ echo "$as_me:$LINENO: result: $CXX" >&5
5648
echo "${ECHO_T}$CXX" >&6; }
5650
{ echo "$as_me:$LINENO: result: no" >&5
5651
echo "${ECHO_T}no" >&6; }
5655
test -n "$CXX" && break
5658
if test -z "$CXX"; then
5660
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5662
# Extract the first word of "$ac_prog", so it can be a program name with args.
5663
set dummy $ac_prog; ac_word=$2
5664
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5665
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5666
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5667
echo $ECHO_N "(cached) $ECHO_C" >&6
5669
if test -n "$ac_ct_CXX"; then
5670
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5672
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5676
test -z "$as_dir" && as_dir=.
5677
for ac_exec_ext in '' $ac_executable_extensions; do
5678
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5679
ac_cv_prog_ac_ct_CXX="$ac_prog"
5680
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5689
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5690
if test -n "$ac_ct_CXX"; then
5691
{ echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5692
echo "${ECHO_T}$ac_ct_CXX" >&6; }
5694
{ echo "$as_me:$LINENO: result: no" >&5
5695
echo "${ECHO_T}no" >&6; }
5699
test -n "$ac_ct_CXX" && break
5702
if test "x$ac_ct_CXX" = x; then
5705
case $cross_compiling:$ac_tool_warned in
5707
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5708
whose name does not start with the host triplet. If you think this
5709
configuration is useful to you, please write to autoconf@gnu.org." >&5
5710
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5711
whose name does not start with the host triplet. If you think this
5712
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5713
ac_tool_warned=yes ;;
5721
# Provide some information about the compiler.
5722
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5723
ac_compiler=`set X $ac_compile; echo $2`
5724
{ (ac_try="$ac_compiler --version >&5"
5726
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5727
*) ac_try_echo=$ac_try;;
5729
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5730
(eval "$ac_compiler --version >&5") 2>&5
5732
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733
(exit $ac_status); }
5734
{ (ac_try="$ac_compiler -v >&5"
5736
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5737
*) ac_try_echo=$ac_try;;
5739
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5740
(eval "$ac_compiler -v >&5") 2>&5
5742
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743
(exit $ac_status); }
5744
{ (ac_try="$ac_compiler -V >&5"
5746
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5747
*) ac_try_echo=$ac_try;;
5749
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5750
(eval "$ac_compiler -V >&5") 2>&5
5752
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753
(exit $ac_status); }
5755
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5756
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5757
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5758
echo $ECHO_N "(cached) $ECHO_C" >&6
5760
cat >conftest.$ac_ext <<_ACEOF
5763
cat confdefs.h >>conftest.$ac_ext
5764
cat >>conftest.$ac_ext <<_ACEOF
5765
/* end confdefs.h. */
5778
rm -f conftest.$ac_objext
5779
if { (ac_try="$ac_compile"
5781
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5782
*) ac_try_echo=$ac_try;;
5784
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5785
(eval "$ac_compile") 2>conftest.er1
5787
grep -v '^ *+' conftest.er1 >conftest.err
5789
cat conftest.err >&5
5790
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791
(exit $ac_status); } && {
5792
test -z "$ac_cxx_werror_flag" ||
5793
test ! -s conftest.err
5794
} && test -s conftest.$ac_objext; then
5797
echo "$as_me: failed program was:" >&5
5798
sed 's/^/| /' conftest.$ac_ext >&5
5803
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5804
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5807
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5808
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5809
GXX=`test $ac_compiler_gnu = yes && echo yes`
5810
ac_test_CXXFLAGS=${CXXFLAGS+set}
5811
ac_save_CXXFLAGS=$CXXFLAGS
5812
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5813
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5814
if test "${ac_cv_prog_cxx_g+set}" = set; then
5815
echo $ECHO_N "(cached) $ECHO_C" >&6
5817
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5818
ac_cxx_werror_flag=yes
5821
cat >conftest.$ac_ext <<_ACEOF
5824
cat confdefs.h >>conftest.$ac_ext
5825
cat >>conftest.$ac_ext <<_ACEOF
5826
/* end confdefs.h. */
5836
rm -f conftest.$ac_objext
5837
if { (ac_try="$ac_compile"
5839
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5840
*) ac_try_echo=$ac_try;;
5842
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5843
(eval "$ac_compile") 2>conftest.er1
5845
grep -v '^ *+' conftest.er1 >conftest.err
5847
cat conftest.err >&5
5848
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849
(exit $ac_status); } && {
5850
test -z "$ac_cxx_werror_flag" ||
5851
test ! -s conftest.err
5852
} && test -s conftest.$ac_objext; then
5853
ac_cv_prog_cxx_g=yes
5855
echo "$as_me: failed program was:" >&5
5856
sed 's/^/| /' conftest.$ac_ext >&5
5859
cat >conftest.$ac_ext <<_ACEOF
5862
cat confdefs.h >>conftest.$ac_ext
5863
cat >>conftest.$ac_ext <<_ACEOF
5864
/* end confdefs.h. */
5874
rm -f conftest.$ac_objext
5875
if { (ac_try="$ac_compile"
5877
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5878
*) ac_try_echo=$ac_try;;
5880
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5881
(eval "$ac_compile") 2>conftest.er1
5883
grep -v '^ *+' conftest.er1 >conftest.err
5885
cat conftest.err >&5
5886
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887
(exit $ac_status); } && {
5888
test -z "$ac_cxx_werror_flag" ||
5889
test ! -s conftest.err
5890
} && test -s conftest.$ac_objext; then
5893
echo "$as_me: failed program was:" >&5
5894
sed 's/^/| /' conftest.$ac_ext >&5
5896
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5898
cat >conftest.$ac_ext <<_ACEOF
5901
cat confdefs.h >>conftest.$ac_ext
5902
cat >>conftest.$ac_ext <<_ACEOF
5903
/* end confdefs.h. */
5913
rm -f conftest.$ac_objext
5914
if { (ac_try="$ac_compile"
5916
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5917
*) ac_try_echo=$ac_try;;
5919
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5920
(eval "$ac_compile") 2>conftest.er1
5922
grep -v '^ *+' conftest.er1 >conftest.err
5924
cat conftest.err >&5
5925
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926
(exit $ac_status); } && {
5927
test -z "$ac_cxx_werror_flag" ||
5928
test ! -s conftest.err
5929
} && test -s conftest.$ac_objext; then
5930
ac_cv_prog_cxx_g=yes
5932
echo "$as_me: failed program was:" >&5
5933
sed 's/^/| /' conftest.$ac_ext >&5
5938
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5941
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5944
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5945
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5947
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5948
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5949
if test "$ac_test_CXXFLAGS" = set; then
5950
CXXFLAGS=$ac_save_CXXFLAGS
5951
elif test $ac_cv_prog_cxx_g = yes; then
5952
if test "$GXX" = yes; then
5958
if test "$GXX" = yes; then
5965
ac_cpp='$CXXCPP $CPPFLAGS'
5966
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5967
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5968
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5970
depcc="$CXX" am_compiler_list=
5972
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5973
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5974
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5975
echo $ECHO_N "(cached) $ECHO_C" >&6
5977
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5978
# We make a subdir and do the tests there. Otherwise we can end up
5979
# making bogus files that we don't know about and never remove. For
5980
# instance it was reported that on HP-UX the gcc test will end up
5981
# making a dummy file named `D' -- because `-MD' means `put the output
5984
# Copy depcomp to subdir because otherwise we won't find it if we're
5985
# using a relative directory.
5986
cp "$am_depcomp" conftest.dir
5988
# We will build objects and dependencies in a subdirectory because
5989
# it helps to detect inapplicable dependency modes. For instance
5990
# both Tru64's cc and ICC support -MD to output dependencies as a
5991
# side effect of compilation, but ICC will put the dependencies in
5992
# the current directory while Tru64 will put them in the object
5996
am_cv_CXX_dependencies_compiler_type=none
5997
if test "$am_compiler_list" = ""; then
5998
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6000
for depmode in $am_compiler_list; do
6001
# Setup a source with many dependencies, because some compilers
6002
# like to wrap large dependency lists on column 80 (with \), and
6003
# we should not choose a depcomp mode which is confused by this.
6005
# We need to recreate these files for each test, as the compiler may
6006
# overwrite some of them when testing with obscure command lines.
6007
# This happens at least with the AIX C compiler.
6009
for i in 1 2 3 4 5 6; do
6010
echo '#include "conftst'$i'.h"' >> sub/conftest.c
6011
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6012
# Solaris 8's {/usr,}/bin/sh.
6013
touch sub/conftst$i.h
6015
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6019
# after this tag, mechanisms are not by side-effect, so they'll
6020
# only be used when explicitly requested
6021
if test "x$enable_dependency_tracking" = xyes; then
6029
# We check with `-c' and `-o' for the sake of the "dashmstdout"
6030
# mode. It turns out that the SunPro C++ compiler does not properly
6031
# handle `-M -o', and we need to detect this.
6032
if depmode=$depmode \
6033
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6034
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6035
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6036
>/dev/null 2>conftest.err &&
6037
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6038
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6039
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6040
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6041
# icc doesn't choke on unknown options, it will just issue warnings
6042
# or remarks (even with -Werror). So we grep stderr for any message
6043
# that says an option was ignored or not supported.
6044
# When given -MP, icc 7.0 and 7.1 complain thusly:
6045
# icc: Command line warning: ignoring option '-M'; no argument required
6046
# The diagnosis changed in icc 8.0:
6047
# icc: Command line remark: option '-MP' not supported
6048
if (grep 'ignoring option' conftest.err ||
6049
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6050
am_cv_CXX_dependencies_compiler_type=$depmode
6059
am_cv_CXX_dependencies_compiler_type=none
6063
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6064
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
6065
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6068
test "x$enable_dependency_tracking" != xno \
6069
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6070
am__fastdepCXX_TRUE=
6071
am__fastdepCXX_FALSE='#'
6073
am__fastdepCXX_TRUE='#'
6074
am__fastdepCXX_FALSE=
6080
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6081
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6082
(test "X$CXX" != "Xg++"))) ; then
6084
ac_cpp='$CXXCPP $CPPFLAGS'
6085
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6086
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6087
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6088
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6089
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6090
if test -z "$CXXCPP"; then
6091
if test "${ac_cv_prog_CXXCPP+set}" = set; then
6092
echo $ECHO_N "(cached) $ECHO_C" >&6
6094
# Double quotes because CXXCPP needs to be expanded
6095
for CXXCPP in "$CXX -E" "/lib/cpp"
6098
for ac_cxx_preproc_warn_flag in '' yes
6100
# Use a header file that comes with gcc, so configuring glibc
6101
# with a fresh cross-compiler works.
6102
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6103
# <limits.h> exists even on freestanding compilers.
6104
# On the NeXT, cc -E runs the code through the compiler's parser,
6105
# not just through cpp. "Syntax error" is here to catch this case.
6106
cat >conftest.$ac_ext <<_ACEOF
6109
cat confdefs.h >>conftest.$ac_ext
6110
cat >>conftest.$ac_ext <<_ACEOF
6111
/* end confdefs.h. */
6113
# include <limits.h>
6115
# include <assert.h>
6119
if { (ac_try="$ac_cpp conftest.$ac_ext"
6121
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6122
*) ac_try_echo=$ac_try;;
6124
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6125
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6127
grep -v '^ *+' conftest.er1 >conftest.err
6129
cat conftest.err >&5
6130
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131
(exit $ac_status); } >/dev/null && {
6132
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6133
test ! -s conftest.err
6137
echo "$as_me: failed program was:" >&5
6138
sed 's/^/| /' conftest.$ac_ext >&5
6140
# Broken: fails on valid input.
6144
rm -f conftest.err conftest.$ac_ext
6146
# OK, works on sane cases. Now check whether nonexistent headers
6147
# can be detected and how.
6148
cat >conftest.$ac_ext <<_ACEOF
6151
cat confdefs.h >>conftest.$ac_ext
6152
cat >>conftest.$ac_ext <<_ACEOF
6153
/* end confdefs.h. */
6154
#include <ac_nonexistent.h>
6156
if { (ac_try="$ac_cpp conftest.$ac_ext"
6158
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6159
*) ac_try_echo=$ac_try;;
6161
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6162
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6164
grep -v '^ *+' conftest.er1 >conftest.err
6166
cat conftest.err >&5
6167
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168
(exit $ac_status); } >/dev/null && {
6169
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6170
test ! -s conftest.err
6172
# Broken: success on invalid input.
6175
echo "$as_me: failed program was:" >&5
6176
sed 's/^/| /' conftest.$ac_ext >&5
6178
# Passes both tests.
6183
rm -f conftest.err conftest.$ac_ext
6186
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6187
rm -f conftest.err conftest.$ac_ext
6188
if $ac_preproc_ok; then
6193
ac_cv_prog_CXXCPP=$CXXCPP
6196
CXXCPP=$ac_cv_prog_CXXCPP
6198
ac_cv_prog_CXXCPP=$CXXCPP
6200
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
6201
echo "${ECHO_T}$CXXCPP" >&6; }
6203
for ac_cxx_preproc_warn_flag in '' yes
6205
# Use a header file that comes with gcc, so configuring glibc
6206
# with a fresh cross-compiler works.
6207
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6208
# <limits.h> exists even on freestanding compilers.
6209
# On the NeXT, cc -E runs the code through the compiler's parser,
6210
# not just through cpp. "Syntax error" is here to catch this case.
6211
cat >conftest.$ac_ext <<_ACEOF
6214
cat confdefs.h >>conftest.$ac_ext
6215
cat >>conftest.$ac_ext <<_ACEOF
6216
/* end confdefs.h. */
6218
# include <limits.h>
6220
# include <assert.h>
6224
if { (ac_try="$ac_cpp conftest.$ac_ext"
6226
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6227
*) ac_try_echo=$ac_try;;
6229
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6230
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6232
grep -v '^ *+' conftest.er1 >conftest.err
6234
cat conftest.err >&5
6235
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236
(exit $ac_status); } >/dev/null && {
6237
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6238
test ! -s conftest.err
6242
echo "$as_me: failed program was:" >&5
6243
sed 's/^/| /' conftest.$ac_ext >&5
6245
# Broken: fails on valid input.
6249
rm -f conftest.err conftest.$ac_ext
6251
# OK, works on sane cases. Now check whether nonexistent headers
6252
# can be detected and how.
6253
cat >conftest.$ac_ext <<_ACEOF
6256
cat confdefs.h >>conftest.$ac_ext
6257
cat >>conftest.$ac_ext <<_ACEOF
6258
/* end confdefs.h. */
6259
#include <ac_nonexistent.h>
6261
if { (ac_try="$ac_cpp conftest.$ac_ext"
6263
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6264
*) ac_try_echo=$ac_try;;
6266
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6267
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6269
grep -v '^ *+' conftest.er1 >conftest.err
6271
cat conftest.err >&5
6272
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273
(exit $ac_status); } >/dev/null && {
6274
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6275
test ! -s conftest.err
6277
# Broken: success on invalid input.
6280
echo "$as_me: failed program was:" >&5
6281
sed 's/^/| /' conftest.$ac_ext >&5
6283
# Passes both tests.
6288
rm -f conftest.err conftest.$ac_ext
6291
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6292
rm -f conftest.err conftest.$ac_ext
6293
if $ac_preproc_ok; then
6296
{ { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6297
See \`config.log' for more details." >&5
6298
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6299
See \`config.log' for more details." >&2;}
6300
{ (exit 1); exit 1; }; }
6304
ac_cpp='$CXXCPP $CPPFLAGS'
6305
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6306
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6307
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6313
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6314
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6315
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6316
if test -n "$ac_tool_prefix"; then
6317
for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6319
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6320
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6321
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6322
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6323
if test "${ac_cv_prog_F77+set}" = set; then
6324
echo $ECHO_N "(cached) $ECHO_C" >&6
6326
if test -n "$F77"; then
6327
ac_cv_prog_F77="$F77" # Let the user override the test.
6329
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6333
test -z "$as_dir" && as_dir=.
6334
for ac_exec_ext in '' $ac_executable_extensions; do
6335
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6336
ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6337
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6347
if test -n "$F77"; then
6348
{ echo "$as_me:$LINENO: result: $F77" >&5
6349
echo "${ECHO_T}$F77" >&6; }
6351
{ echo "$as_me:$LINENO: result: no" >&5
6352
echo "${ECHO_T}no" >&6; }
6356
test -n "$F77" && break
6359
if test -z "$F77"; then
6361
for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6363
# Extract the first word of "$ac_prog", so it can be a program name with args.
6364
set dummy $ac_prog; ac_word=$2
6365
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6366
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6367
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6368
echo $ECHO_N "(cached) $ECHO_C" >&6
6370
if test -n "$ac_ct_F77"; then
6371
ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6373
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6377
test -z "$as_dir" && as_dir=.
6378
for ac_exec_ext in '' $ac_executable_extensions; do
6379
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6380
ac_cv_prog_ac_ct_F77="$ac_prog"
6381
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6390
ac_ct_F77=$ac_cv_prog_ac_ct_F77
6391
if test -n "$ac_ct_F77"; then
6392
{ echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6393
echo "${ECHO_T}$ac_ct_F77" >&6; }
6395
{ echo "$as_me:$LINENO: result: no" >&5
6396
echo "${ECHO_T}no" >&6; }
6400
test -n "$ac_ct_F77" && break
6403
if test "x$ac_ct_F77" = x; then
6406
case $cross_compiling:$ac_tool_warned in
6408
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6409
whose name does not start with the host triplet. If you think this
6410
configuration is useful to you, please write to autoconf@gnu.org." >&5
6411
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6412
whose name does not start with the host triplet. If you think this
6413
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6414
ac_tool_warned=yes ;;
6421
# Provide some information about the compiler.
6422
echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6423
ac_compiler=`set X $ac_compile; echo $2`
6424
{ (ac_try="$ac_compiler --version >&5"
6426
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6427
*) ac_try_echo=$ac_try;;
6429
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6430
(eval "$ac_compiler --version >&5") 2>&5
6432
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433
(exit $ac_status); }
6434
{ (ac_try="$ac_compiler -v >&5"
6436
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6437
*) ac_try_echo=$ac_try;;
6439
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6440
(eval "$ac_compiler -v >&5") 2>&5
6442
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443
(exit $ac_status); }
6444
{ (ac_try="$ac_compiler -V >&5"
6446
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6447
*) ac_try_echo=$ac_try;;
6449
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6450
(eval "$ac_compiler -V >&5") 2>&5
6452
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453
(exit $ac_status); }
6456
# If we don't use `.F' as extension, the preprocessor is not run on the
6457
# input file. (Note that this only needs to work for GNU compilers.)
6460
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6461
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6462
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6463
echo $ECHO_N "(cached) $ECHO_C" >&6
6465
cat >conftest.$ac_ext <<_ACEOF
6473
rm -f conftest.$ac_objext
6474
if { (ac_try="$ac_compile"
6476
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6477
*) ac_try_echo=$ac_try;;
6479
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6480
(eval "$ac_compile") 2>conftest.er1
6482
grep -v '^ *+' conftest.er1 >conftest.err
6484
cat conftest.err >&5
6485
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486
(exit $ac_status); } && {
6487
test -z "$ac_f77_werror_flag" ||
6488
test ! -s conftest.err
6489
} && test -s conftest.$ac_objext; then
6492
echo "$as_me: failed program was:" >&5
6493
sed 's/^/| /' conftest.$ac_ext >&5
6498
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6499
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6502
{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6503
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6505
ac_test_FFLAGS=${FFLAGS+set}
6506
ac_save_FFLAGS=$FFLAGS
6508
{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6509
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6510
if test "${ac_cv_prog_f77_g+set}" = set; then
6511
echo $ECHO_N "(cached) $ECHO_C" >&6
6514
cat >conftest.$ac_ext <<_ACEOF
6519
rm -f conftest.$ac_objext
6520
if { (ac_try="$ac_compile"
6522
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6523
*) ac_try_echo=$ac_try;;
6525
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6526
(eval "$ac_compile") 2>conftest.er1
6528
grep -v '^ *+' conftest.er1 >conftest.err
6530
cat conftest.err >&5
6531
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532
(exit $ac_status); } && {
6533
test -z "$ac_f77_werror_flag" ||
6534
test ! -s conftest.err
6535
} && test -s conftest.$ac_objext; then
6536
ac_cv_prog_f77_g=yes
6538
echo "$as_me: failed program was:" >&5
6539
sed 's/^/| /' conftest.$ac_ext >&5
6544
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6547
{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6548
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6549
if test "$ac_test_FFLAGS" = set; then
6550
FFLAGS=$ac_save_FFLAGS
6551
elif test $ac_cv_prog_f77_g = yes; then
6552
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6558
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6565
G77=`test $ac_compiler_gnu = yes && echo yes`
6567
ac_cpp='$CPP $CPPFLAGS'
6568
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6569
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6570
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6574
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6576
# find the maximum length of command line arguments
6577
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6578
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6579
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6580
echo $ECHO_N "(cached) $ECHO_C" >&6
6587
# On DJGPP, this test can blow up pretty badly due to problems in libc
6588
# (any single argument exceeding 2000 bytes causes a buffer overrun
6589
# during glob expansion). Even if it were fixed, the result of this
6590
# check would be larger than it should be.
6591
lt_cv_sys_max_cmd_len=12288; # 12K is about right
6595
# Under GNU Hurd, this test is not required because there is
6596
# no limit to the length of command line arguments.
6597
# Libtool will interpret -1 as no limit whatsoever
6598
lt_cv_sys_max_cmd_len=-1;
6602
# On Win9x/ME, this test blows up -- it succeeds, but takes
6603
# about 5 minutes as the teststring grows exponentially.
6604
# Worse, since 9x/ME are not pre-emptively multitasking,
6605
# you end up with a "frozen" computer, even though with patience
6606
# the test eventually succeeds (with a max line length of 256k).
6607
# Instead, let's just punt: use the minimum linelength reported by
6608
# all of the supported platforms: 8192 (on NT/2K/XP).
6609
lt_cv_sys_max_cmd_len=8192;
6613
# On AmigaOS with pdksh, this test takes hours, literally.
6614
# So we just punt and use a minimum line length of 8192.
6615
lt_cv_sys_max_cmd_len=8192;
6618
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6619
# This has been around since 386BSD, at least. Likely further.
6620
if test -x /sbin/sysctl; then
6621
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6622
elif test -x /usr/sbin/sysctl; then
6623
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6625
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6627
# And add a safety zone
6628
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6629
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6633
# We know the value 262144 and hardcode it with a safety zone (like BSD)
6634
lt_cv_sys_max_cmd_len=196608
6638
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6639
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6640
# nice to cause kernel panics so lets avoid the loop below.
6641
# First set a reasonable default.
6642
lt_cv_sys_max_cmd_len=16384
6644
if test -x /sbin/sysconfig; then
6645
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6646
*1*) lt_cv_sys_max_cmd_len=-1 ;;
6651
lt_cv_sys_max_cmd_len=102400
6653
sysv5* | sco5v6* | sysv4.2uw2*)
6654
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6655
if test -n "$kargmax"; then
6656
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6658
lt_cv_sys_max_cmd_len=32768
6662
# If test is not a shell built-in, we'll probably end up computing a
6663
# maximum length that is only half of the actual maximum length, but
6665
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6666
while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6667
= "XX$teststring") >/dev/null 2>&1 &&
6668
new_result=`expr "X$teststring" : ".*" 2>&1` &&
6669
lt_cv_sys_max_cmd_len=$new_result &&
6670
test $i != 17 # 1/2 MB should be enough
6673
teststring=$teststring$teststring
6676
# Add a significant safety factor because C++ compilers can tack on massive
6677
# amounts of additional arguments before passing them to the linker.
6678
# It appears as though 1/2 is a usable value.
6679
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6685
if test -n $lt_cv_sys_max_cmd_len ; then
6686
{ echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6687
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6689
{ echo "$as_me:$LINENO: result: none" >&5
6690
echo "${ECHO_T}none" >&6; }
6696
# Check for command to grab the raw symbol name followed by C symbol from nm.
6697
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6698
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6699
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6700
echo $ECHO_N "(cached) $ECHO_C" >&6
6703
# These are sane defaults that work on at least a few old systems.
6704
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6706
# Character class describing NM global symbol codes.
6707
symcode='[BCDEGRST]'
6709
# Regexp to match symbols that can be accessed directly from C.
6710
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6712
# Transform an extracted symbol line into a proper C declaration
6713
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6715
# Transform an extracted symbol line into symbol name and symbol address
6716
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6718
# Define system-specific variables.
6723
cygwin* | mingw* | pw32*)
6724
symcode='[ABCDGISTW]'
6726
hpux*) # Its linker distinguishes data from code symbols
6727
if test "$host_cpu" = ia64; then
6728
symcode='[ABCDEGRST]'
6730
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6731
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6733
linux* | k*bsd*-gnu)
6734
if test "$host_cpu" = ia64; then
6735
symcode='[ABCDGIRSTW]'
6736
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6737
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6741
symcode='[BCDEGRST]'
6744
symcode='[BCDEGQRST]'
6755
sysv5* | sco5v6* | unixware* | OpenUNIX*)
6763
# Handle CRLF in mingw tool chain
6767
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6771
# If we're using GNU nm, then use its standard symbol codes.
6772
case `$NM -V 2>&1` in
6773
*GNU* | *'with BFD'*)
6774
symcode='[ABCDGIRSTW]' ;;
6777
# Try without a prefix undercore, then with it.
6778
for ac_symprfx in "" "_"; do
6780
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6781
symxfrm="\\1 $ac_symprfx\\2 \\2"
6783
# Write the raw and C identifiers.
6784
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6786
# Check to see that the pipe works correctly.
6790
cat > conftest.$ac_ext <<EOF
6795
void nm_test_func(){}
6799
int main(){nm_test_var='a';nm_test_func();return(0);}
6802
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6803
(eval $ac_compile) 2>&5
6805
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6806
(exit $ac_status); }; then
6807
# Now try to grab the symbols.
6809
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6810
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6812
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813
(exit $ac_status); } && test -s "$nlist"; then
6814
# Try sorting and uniquifying the output.
6815
if sort "$nlist" | uniq > "$nlist"T; then
6816
mv -f "$nlist"T "$nlist"
6821
# Make sure that we snagged all the symbols we need.
6822
if grep ' nm_test_var$' "$nlist" >/dev/null; then
6823
if grep ' nm_test_func$' "$nlist" >/dev/null; then
6824
cat <<EOF > conftest.$ac_ext
6830
# Now generate the symbol file.
6831
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6833
cat <<EOF >> conftest.$ac_ext
6834
#if defined (__STDC__) && __STDC__
6835
# define lt_ptr_t void *
6837
# define lt_ptr_t char *
6841
/* The mapping between symbol names and symbols. */
6846
lt_preloaded_symbols[] =
6849
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6850
cat <<\EOF >> conftest.$ac_ext
6858
# Now try linking the two files.
6859
mv conftest.$ac_objext conftstm.$ac_objext
6860
lt_save_LIBS="$LIBS"
6861
lt_save_CFLAGS="$CFLAGS"
6862
LIBS="conftstm.$ac_objext"
6863
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6864
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6865
(eval $ac_link) 2>&5
6867
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868
(exit $ac_status); } && test -s conftest${ac_exeext}; then
6871
LIBS="$lt_save_LIBS"
6872
CFLAGS="$lt_save_CFLAGS"
6874
echo "cannot find nm_test_func in $nlist" >&5
6877
echo "cannot find nm_test_var in $nlist" >&5
6880
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6883
echo "$progname: failed program was:" >&5
6884
cat conftest.$ac_ext >&5
6886
rm -f conftest* conftst*
6888
# Do not use the global_symbol_pipe unless it works.
6889
if test "$pipe_works" = yes; then
6892
lt_cv_sys_global_symbol_pipe=
6898
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6899
lt_cv_sys_global_symbol_to_cdecl=
6901
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6902
{ echo "$as_me:$LINENO: result: failed" >&5
6903
echo "${ECHO_T}failed" >&6; }
6905
{ echo "$as_me:$LINENO: result: ok" >&5
6906
echo "${ECHO_T}ok" >&6; }
6909
{ echo "$as_me:$LINENO: checking for objdir" >&5
6910
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6911
if test "${lt_cv_objdir+set}" = set; then
6912
echo $ECHO_N "(cached) $ECHO_C" >&6
6914
rm -f .libs 2>/dev/null
6915
mkdir .libs 2>/dev/null
6916
if test -d .libs; then
6919
# MS-DOS does not allow filenames that begin with a dot.
6922
rmdir .libs 2>/dev/null
6924
{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6925
echo "${ECHO_T}$lt_cv_objdir" >&6; }
6926
objdir=$lt_cv_objdir
6934
# AIX sometimes has problems with the GCC collect2 program. For some
6935
# reason, if we set the COLLECT_NAMES environment variable, the problems
6936
# vanish in a puff of smoke.
6937
if test "X${COLLECT_NAMES+set}" != Xset; then
6939
export COLLECT_NAMES
6944
# Sed substitution that helps us do robust quoting. It backslashifies
6945
# metacharacters that are still active within double-quoted strings.
6946
Xsed='sed -e 1s/^X//'
6947
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6949
# Same as above, but do not quote variable references.
6950
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6952
# Sed substitution to delay expansion of an escaped shell variable in a
6953
# double_quote_subst'ed string.
6954
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6956
# Sed substitution to avoid accidental globbing in evaled expressions
6957
no_glob_subst='s/\*/\\\*/g'
6963
default_ofile=libtool
6964
can_build_shared=yes
6966
# All known linkers require a `.a' archive for static linking (except MSVC,
6967
# which needs '.lib').
6969
ltmain="$ac_aux_dir/ltmain.sh"
6970
ofile="$default_ofile"
6971
with_gnu_ld="$lt_cv_prog_gnu_ld"
6973
if test -n "$ac_tool_prefix"; then
6974
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6975
set dummy ${ac_tool_prefix}ar; ac_word=$2
6976
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6977
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6978
if test "${ac_cv_prog_AR+set}" = set; then
6979
echo $ECHO_N "(cached) $ECHO_C" >&6
6981
if test -n "$AR"; then
6982
ac_cv_prog_AR="$AR" # Let the user override the test.
6984
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6988
test -z "$as_dir" && as_dir=.
6989
for ac_exec_ext in '' $ac_executable_extensions; do
6990
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6991
ac_cv_prog_AR="${ac_tool_prefix}ar"
6992
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7002
if test -n "$AR"; then
7003
{ echo "$as_me:$LINENO: result: $AR" >&5
7004
echo "${ECHO_T}$AR" >&6; }
7006
{ echo "$as_me:$LINENO: result: no" >&5
7007
echo "${ECHO_T}no" >&6; }
7012
if test -z "$ac_cv_prog_AR"; then
7014
# Extract the first word of "ar", so it can be a program name with args.
7015
set dummy ar; ac_word=$2
7016
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7017
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7018
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7019
echo $ECHO_N "(cached) $ECHO_C" >&6
7021
if test -n "$ac_ct_AR"; then
7022
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7024
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7028
test -z "$as_dir" && as_dir=.
7029
for ac_exec_ext in '' $ac_executable_extensions; do
7030
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7031
ac_cv_prog_ac_ct_AR="ar"
7032
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7041
ac_ct_AR=$ac_cv_prog_ac_ct_AR
7042
if test -n "$ac_ct_AR"; then
7043
{ echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7044
echo "${ECHO_T}$ac_ct_AR" >&6; }
7046
{ echo "$as_me:$LINENO: result: no" >&5
7047
echo "${ECHO_T}no" >&6; }
7050
if test "x$ac_ct_AR" = x; then
7053
case $cross_compiling:$ac_tool_warned in
7055
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7056
whose name does not start with the host triplet. If you think this
7057
configuration is useful to you, please write to autoconf@gnu.org." >&5
7058
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7059
whose name does not start with the host triplet. If you think this
7060
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7061
ac_tool_warned=yes ;;
7069
if test -n "$ac_tool_prefix"; then
7070
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7071
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7072
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7073
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7074
if test "${ac_cv_prog_RANLIB+set}" = set; then
7075
echo $ECHO_N "(cached) $ECHO_C" >&6
7077
if test -n "$RANLIB"; then
7078
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7080
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7084
test -z "$as_dir" && as_dir=.
7085
for ac_exec_ext in '' $ac_executable_extensions; do
7086
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7087
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7088
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7097
RANLIB=$ac_cv_prog_RANLIB
7098
if test -n "$RANLIB"; then
7099
{ echo "$as_me:$LINENO: result: $RANLIB" >&5
7100
echo "${ECHO_T}$RANLIB" >&6; }
7102
{ echo "$as_me:$LINENO: result: no" >&5
7103
echo "${ECHO_T}no" >&6; }
7108
if test -z "$ac_cv_prog_RANLIB"; then
7109
ac_ct_RANLIB=$RANLIB
7110
# Extract the first word of "ranlib", so it can be a program name with args.
7111
set dummy ranlib; ac_word=$2
7112
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7113
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7114
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7115
echo $ECHO_N "(cached) $ECHO_C" >&6
7117
if test -n "$ac_ct_RANLIB"; then
7118
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7120
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7124
test -z "$as_dir" && as_dir=.
7125
for ac_exec_ext in '' $ac_executable_extensions; do
7126
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7127
ac_cv_prog_ac_ct_RANLIB="ranlib"
7128
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7137
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7138
if test -n "$ac_ct_RANLIB"; then
7139
{ echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7140
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7142
{ echo "$as_me:$LINENO: result: no" >&5
7143
echo "${ECHO_T}no" >&6; }
7146
if test "x$ac_ct_RANLIB" = x; then
7149
case $cross_compiling:$ac_tool_warned in
7151
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7152
whose name does not start with the host triplet. If you think this
7153
configuration is useful to you, please write to autoconf@gnu.org." >&5
7154
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7155
whose name does not start with the host triplet. If you think this
7156
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7157
ac_tool_warned=yes ;;
7159
RANLIB=$ac_ct_RANLIB
7162
RANLIB="$ac_cv_prog_RANLIB"
7165
if test -n "$ac_tool_prefix"; then
7166
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7167
set dummy ${ac_tool_prefix}strip; ac_word=$2
7168
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7169
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7170
if test "${ac_cv_prog_STRIP+set}" = set; then
7171
echo $ECHO_N "(cached) $ECHO_C" >&6
7173
if test -n "$STRIP"; then
7174
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7176
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7180
test -z "$as_dir" && as_dir=.
7181
for ac_exec_ext in '' $ac_executable_extensions; do
7182
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7183
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7184
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7193
STRIP=$ac_cv_prog_STRIP
7194
if test -n "$STRIP"; then
7195
{ echo "$as_me:$LINENO: result: $STRIP" >&5
7196
echo "${ECHO_T}$STRIP" >&6; }
7198
{ echo "$as_me:$LINENO: result: no" >&5
7199
echo "${ECHO_T}no" >&6; }
7204
if test -z "$ac_cv_prog_STRIP"; then
7206
# Extract the first word of "strip", so it can be a program name with args.
7207
set dummy strip; ac_word=$2
7208
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7209
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7210
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7211
echo $ECHO_N "(cached) $ECHO_C" >&6
7213
if test -n "$ac_ct_STRIP"; then
7214
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7216
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7220
test -z "$as_dir" && as_dir=.
7221
for ac_exec_ext in '' $ac_executable_extensions; do
7222
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7223
ac_cv_prog_ac_ct_STRIP="strip"
7224
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7233
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7234
if test -n "$ac_ct_STRIP"; then
7235
{ echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7236
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7238
{ echo "$as_me:$LINENO: result: no" >&5
7239
echo "${ECHO_T}no" >&6; }
7242
if test "x$ac_ct_STRIP" = x; then
7245
case $cross_compiling:$ac_tool_warned in
7247
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7248
whose name does not start with the host triplet. If you think this
7249
configuration is useful to you, please write to autoconf@gnu.org." >&5
7250
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7251
whose name does not start with the host triplet. If you think this
7252
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7253
ac_tool_warned=yes ;;
7258
STRIP="$ac_cv_prog_STRIP"
7263
old_CFLAGS="$CFLAGS"
7265
# Set sane defaults for various variables
7266
test -z "$AR" && AR=ar
7267
test -z "$AR_FLAGS" && AR_FLAGS=cru
7268
test -z "$AS" && AS=as
7269
test -z "$CC" && CC=cc
7270
test -z "$LTCC" && LTCC=$CC
7271
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7272
test -z "$DLLTOOL" && DLLTOOL=dlltool
7273
test -z "$LD" && LD=ld
7274
test -z "$LN_S" && LN_S="ln -s"
7275
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7276
test -z "$NM" && NM=nm
7277
test -z "$SED" && SED=sed
7278
test -z "$OBJDUMP" && OBJDUMP=objdump
7279
test -z "$RANLIB" && RANLIB=:
7280
test -z "$STRIP" && STRIP=:
7281
test -z "$ac_objext" && ac_objext=o
7283
# Determine commands to create old-style static archives.
7284
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7285
old_postinstall_cmds='chmod 644 $oldlib'
7286
old_postuninstall_cmds=
7288
if test -n "$RANLIB"; then
7291
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7294
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7297
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7300
for cc_temp in $compiler""; do
7302
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7303
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7308
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7311
# Only perform the check for file, if the check method requires it
7312
case $deplibs_check_method in
7314
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7315
{ echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7316
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7317
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7318
echo $ECHO_N "(cached) $ECHO_C" >&6
7322
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7325
lt_save_MAGIC_CMD="$MAGIC_CMD"
7326
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7327
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7328
for ac_dir in $ac_dummy; do
7330
test -z "$ac_dir" && ac_dir=.
7331
if test -f $ac_dir/${ac_tool_prefix}file; then
7332
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7333
if test -n "$file_magic_test_file"; then
7334
case $deplibs_check_method in
7336
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7337
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7338
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7339
$EGREP "$file_magic_regex" > /dev/null; then
7344
*** Warning: the command libtool uses to detect shared libraries,
7345
*** $file_magic_cmd, produces output that libtool cannot recognize.
7346
*** The result is that libtool may fail to recognize shared libraries
7347
*** as such. This will affect the creation of libtool libraries that
7348
*** depend on shared libraries, but programs linked with such libtool
7349
*** libraries will work regardless of this problem. Nevertheless, you
7350
*** may want to report the problem to your system manager and/or to
7351
*** bug-libtool@gnu.org
7361
MAGIC_CMD="$lt_save_MAGIC_CMD"
7366
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7367
if test -n "$MAGIC_CMD"; then
7368
{ echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7369
echo "${ECHO_T}$MAGIC_CMD" >&6; }
7371
{ echo "$as_me:$LINENO: result: no" >&5
7372
echo "${ECHO_T}no" >&6; }
7375
if test -z "$lt_cv_path_MAGIC_CMD"; then
7376
if test -n "$ac_tool_prefix"; then
7377
{ echo "$as_me:$LINENO: checking for file" >&5
7378
echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7379
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7380
echo $ECHO_N "(cached) $ECHO_C" >&6
7384
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7387
lt_save_MAGIC_CMD="$MAGIC_CMD"
7388
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7389
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7390
for ac_dir in $ac_dummy; do
7392
test -z "$ac_dir" && ac_dir=.
7393
if test -f $ac_dir/file; then
7394
lt_cv_path_MAGIC_CMD="$ac_dir/file"
7395
if test -n "$file_magic_test_file"; then
7396
case $deplibs_check_method in
7398
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7399
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7400
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7401
$EGREP "$file_magic_regex" > /dev/null; then
7406
*** Warning: the command libtool uses to detect shared libraries,
7407
*** $file_magic_cmd, produces output that libtool cannot recognize.
7408
*** The result is that libtool may fail to recognize shared libraries
7409
*** as such. This will affect the creation of libtool libraries that
7410
*** depend on shared libraries, but programs linked with such libtool
7411
*** libraries will work regardless of this problem. Nevertheless, you
7412
*** may want to report the problem to your system manager and/or to
7413
*** bug-libtool@gnu.org
7423
MAGIC_CMD="$lt_save_MAGIC_CMD"
7428
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7429
if test -n "$MAGIC_CMD"; then
7430
{ echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7431
echo "${ECHO_T}$MAGIC_CMD" >&6; }
7433
{ echo "$as_me:$LINENO: result: no" >&5
7434
echo "${ECHO_T}no" >&6; }
7447
enable_win32_dll=yes
7449
# Check whether --enable-libtool-lock was given.
7450
if test "${enable_libtool_lock+set}" = set; then
7451
enableval=$enable_libtool_lock;
7454
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7457
# Check whether --with-pic was given.
7458
if test "${with_pic+set}" = set; then
7459
withval=$with_pic; pic_mode="$withval"
7464
test -z "$pic_mode" && pic_mode=default
7466
# Use C for the default configuration in the libtool script
7470
ac_cpp='$CPP $CPPFLAGS'
7471
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7472
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7473
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7476
# Source file extension for C test sources.
7479
# Object file extension for compiled C test sources.
7483
# Code to be used in simple compile tests
7484
lt_simple_compile_test_code="int some_variable = 0;\n"
7486
# Code to be used in simple link tests
7487
lt_simple_link_test_code='int main(){return(0);}\n'
7490
# If no C compiler was specified, use CC.
7493
# If no C compiler flags were specified, use CFLAGS.
7494
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7496
# Allow CC to be a program name with arguments.
7500
# save warnings/boilerplate of simple test code
7501
ac_outfile=conftest.$ac_objext
7502
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7503
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7504
_lt_compiler_boilerplate=`cat conftest.err`
7507
ac_outfile=conftest.$ac_objext
7508
printf "$lt_simple_link_test_code" >conftest.$ac_ext
7509
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7510
_lt_linker_boilerplate=`cat conftest.err`
7515
## There is no encapsulation within the following macros, do not change
7516
## the running order or otherwise move them around unless you know exactly
7517
## what you are doing...
7519
lt_prog_compiler_no_builtin_flag=
7521
if test "$GCC" = yes; then
7522
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7525
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7526
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7527
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7528
echo $ECHO_N "(cached) $ECHO_C" >&6
7530
lt_cv_prog_compiler_rtti_exceptions=no
7531
ac_outfile=conftest.$ac_objext
7532
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7533
lt_compiler_flag="-fno-rtti -fno-exceptions"
7534
# Insert the option either (1) after the last *FLAGS variable, or
7535
# (2) before a word containing "conftest.", or (3) at the end.
7536
# Note that $ac_compile itself does not contain backslashes and begins
7537
# with a dollar sign (not a hyphen), so the echo should work correctly.
7538
# The option is referenced via a variable to avoid confusing sed.
7539
lt_compile=`echo "$ac_compile" | $SED \
7540
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7541
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7542
-e 's:$: $lt_compiler_flag:'`
7543
(eval echo "\"\$as_me:7543: $lt_compile\"" >&5)
7544
(eval "$lt_compile" 2>conftest.err)
7546
cat conftest.err >&5
7547
echo "$as_me:7547: \$? = $ac_status" >&5
7548
if (exit $ac_status) && test -s "$ac_outfile"; then
7549
# The compiler can only warn and ignore the option if not recognized
7550
# So say no if there are warnings other than the usual output.
7551
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7552
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7553
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7554
lt_cv_prog_compiler_rtti_exceptions=yes
7560
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7561
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7563
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7564
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7571
lt_prog_compiler_wl=
7572
lt_prog_compiler_pic=
7573
lt_prog_compiler_static=
7575
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7576
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7578
if test "$GCC" = yes; then
7579
lt_prog_compiler_wl='-Wl,'
7580
lt_prog_compiler_static='-static'
7584
# All AIX code is PIC.
7585
if test "$host_cpu" = ia64; then
7586
# AIX 5 now supports IA64 processor
7587
lt_prog_compiler_static='-Bstatic'
7592
# FIXME: we need at least 68020 code to build shared libraries, but
7593
# adding the `-m68020' flag to GCC prevents building anything better,
7595
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7598
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7599
# PIC is the default for these OSes.
7602
mingw* | pw32* | os2*)
7603
# This hack is so that the source file can tell whether it is being
7604
# built for inclusion in a dll (and should export symbols for example).
7605
lt_prog_compiler_pic='-DDLL_EXPORT'
7608
darwin* | rhapsody*)
7609
# PIC is the default on this platform
7610
# Common symbols not allowed in MH_DYLIB files
7611
lt_prog_compiler_pic='-fno-common'
7615
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
7616
# Instead, we relocate shared libraries at runtime.
7620
# Just because we use GCC doesn't mean we suddenly get shared libraries
7621
# on systems that don't support them.
7622
lt_prog_compiler_can_build_shared=no
7627
if test -d /usr/nec; then
7628
lt_prog_compiler_pic=-Kconform_pic
7633
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7640
lt_prog_compiler_pic='-fPIC'
7646
lt_prog_compiler_pic='-fPIC'
7650
# PORTME Check for flag to pass linker flags through the system compiler.
7653
lt_prog_compiler_wl='-Wl,'
7654
if test "$host_cpu" = ia64; then
7655
# AIX 5 now supports IA64 processor
7656
lt_prog_compiler_static='-Bstatic'
7658
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7662
# PIC is the default on this platform
7663
# Common symbols not allowed in MH_DYLIB files
7664
case $cc_basename in
7666
lt_prog_compiler_pic='-qnocommon'
7667
lt_prog_compiler_wl='-Wl,'
7672
mingw* | pw32* | os2*)
7673
# This hack is so that the source file can tell whether it is being
7674
# built for inclusion in a dll (and should export symbols for example).
7675
lt_prog_compiler_pic='-DDLL_EXPORT'
7678
hpux9* | hpux10* | hpux11*)
7679
lt_prog_compiler_wl='-Wl,'
7680
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7687
lt_prog_compiler_pic='+Z'
7690
# Is there a better lt_prog_compiler_static that works with the bundled CC?
7691
lt_prog_compiler_static='${wl}-a ${wl}archive'
7694
irix5* | irix6* | nonstopux*)
7695
lt_prog_compiler_wl='-Wl,'
7696
# PIC (with -KPIC) is the default.
7697
lt_prog_compiler_static='-non_shared'
7701
lt_prog_compiler_pic='-KPIC'
7702
lt_prog_compiler_static='-Bstatic'
7705
linux* | k*bsd*-gnu)
7706
case $cc_basename in
7708
lt_prog_compiler_wl='-Wl,'
7709
lt_prog_compiler_pic='-KPIC'
7710
lt_prog_compiler_static='-static'
7712
pgcc* | pgf77* | pgf90* | pgf95*)
7713
# Portland Group compilers (*not* the Pentium gcc compiler,
7714
# which looks to be a dead project)
7715
lt_prog_compiler_wl='-Wl,'
7716
lt_prog_compiler_pic='-fpic'
7717
lt_prog_compiler_static='-Bstatic'
7720
lt_prog_compiler_wl='-Wl,'
7721
# All Alpha code is PIC.
7722
lt_prog_compiler_static='-non_shared'
7727
osf3* | osf4* | osf5*)
7728
lt_prog_compiler_wl='-Wl,'
7729
# All OSF/1 code is PIC.
7730
lt_prog_compiler_static='-non_shared'
7734
lt_prog_compiler_pic='-KPIC'
7735
lt_prog_compiler_static='-Bstatic'
7736
case $cc_basename in
7738
lt_prog_compiler_wl='-Qoption ld ';;
7740
lt_prog_compiler_wl='-Wl,';;
7745
lt_prog_compiler_wl='-Qoption ld '
7746
lt_prog_compiler_pic='-PIC'
7747
lt_prog_compiler_static='-Bstatic'
7750
sysv4 | sysv4.2uw2* | sysv4.3*)
7751
lt_prog_compiler_wl='-Wl,'
7752
lt_prog_compiler_pic='-KPIC'
7753
lt_prog_compiler_static='-Bstatic'
7757
if test -d /usr/nec ;then
7758
lt_prog_compiler_pic='-Kconform_pic'
7759
lt_prog_compiler_static='-Bstatic'
7763
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7764
lt_prog_compiler_wl='-Wl,'
7765
lt_prog_compiler_pic='-KPIC'
7766
lt_prog_compiler_static='-Bstatic'
7770
lt_prog_compiler_wl='-Wl,'
7771
lt_prog_compiler_can_build_shared=no
7775
lt_prog_compiler_pic='-pic'
7776
lt_prog_compiler_static='-Bstatic'
7780
lt_prog_compiler_can_build_shared=no
7785
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7786
echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7789
# Check to make sure the PIC flag actually works.
7791
if test -n "$lt_prog_compiler_pic"; then
7793
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7794
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7795
if test "${lt_prog_compiler_pic_works+set}" = set; then
7796
echo $ECHO_N "(cached) $ECHO_C" >&6
7798
lt_prog_compiler_pic_works=no
7799
ac_outfile=conftest.$ac_objext
7800
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7801
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7802
# Insert the option either (1) after the last *FLAGS variable, or
7803
# (2) before a word containing "conftest.", or (3) at the end.
7804
# Note that $ac_compile itself does not contain backslashes and begins
7805
# with a dollar sign (not a hyphen), so the echo should work correctly.
7806
# The option is referenced via a variable to avoid confusing sed.
7807
lt_compile=`echo "$ac_compile" | $SED \
7808
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7809
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7810
-e 's:$: $lt_compiler_flag:'`
7811
(eval echo "\"\$as_me:7811: $lt_compile\"" >&5)
7812
(eval "$lt_compile" 2>conftest.err)
7814
cat conftest.err >&5
7815
echo "$as_me:7815: \$? = $ac_status" >&5
7816
if (exit $ac_status) && test -s "$ac_outfile"; then
7817
# The compiler can only warn and ignore the option if not recognized
7818
# So say no if there are warnings other than the usual output.
7819
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7820
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7821
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7822
lt_prog_compiler_pic_works=yes
7828
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7829
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7831
if test x"$lt_prog_compiler_pic_works" = xyes; then
7832
case $lt_prog_compiler_pic in
7834
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7837
lt_prog_compiler_pic=
7838
lt_prog_compiler_can_build_shared=no
7843
# For platforms which do not support PIC, -DPIC is meaningless:
7845
lt_prog_compiler_pic=
7848
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7853
# Check to make sure the static flag actually works.
7855
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7856
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7857
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7858
if test "${lt_prog_compiler_static_works+set}" = set; then
7859
echo $ECHO_N "(cached) $ECHO_C" >&6
7861
lt_prog_compiler_static_works=no
7862
save_LDFLAGS="$LDFLAGS"
7863
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7864
printf "$lt_simple_link_test_code" > conftest.$ac_ext
7865
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7866
# The linker can only warn and ignore the option if not recognized
7867
# So say no if there are warnings
7868
if test -s conftest.err; then
7869
# Append any errors to the config.log.
7870
cat conftest.err 1>&5
7871
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7872
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7873
if diff conftest.exp conftest.er2 >/dev/null; then
7874
lt_prog_compiler_static_works=yes
7877
lt_prog_compiler_static_works=yes
7881
LDFLAGS="$save_LDFLAGS"
7884
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7885
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7887
if test x"$lt_prog_compiler_static_works" = xyes; then
7890
lt_prog_compiler_static=
7894
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7895
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7896
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7897
echo $ECHO_N "(cached) $ECHO_C" >&6
7899
lt_cv_prog_compiler_c_o=no
7900
$rm -r conftest 2>/dev/null
7904
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7906
lt_compiler_flag="-o out/conftest2.$ac_objext"
7907
# Insert the option either (1) after the last *FLAGS variable, or
7908
# (2) before a word containing "conftest.", or (3) at the end.
7909
# Note that $ac_compile itself does not contain backslashes and begins
7910
# with a dollar sign (not a hyphen), so the echo should work correctly.
7911
lt_compile=`echo "$ac_compile" | $SED \
7912
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7913
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7914
-e 's:$: $lt_compiler_flag:'`
7915
(eval echo "\"\$as_me:7915: $lt_compile\"" >&5)
7916
(eval "$lt_compile" 2>out/conftest.err)
7918
cat out/conftest.err >&5
7919
echo "$as_me:7919: \$? = $ac_status" >&5
7920
if (exit $ac_status) && test -s out/conftest2.$ac_objext
7922
# The compiler can only warn and ignore the option if not recognized
7923
# So say no if there are warnings
7924
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7925
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7926
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7927
lt_cv_prog_compiler_c_o=yes
7932
# SGI C++ compiler will create directory out/ii_files/ for
7933
# template instantiation
7934
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7935
$rm out/* && rmdir out
7941
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7942
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7945
hard_links="nottested"
7946
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7947
# do not overwrite the value of need_locks provided by the user
7948
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7949
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7952
ln conftest.a conftest.b 2>/dev/null && hard_links=no
7954
ln conftest.a conftest.b 2>&5 || hard_links=no
7955
ln conftest.a conftest.b 2>/dev/null && hard_links=no
7956
{ echo "$as_me:$LINENO: result: $hard_links" >&5
7957
echo "${ECHO_T}$hard_links" >&6; }
7958
if test "$hard_links" = no; then
7959
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7960
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7967
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7968
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7971
allow_undefined_flag=
7972
enable_shared_with_static_runtimes=no
7974
archive_expsym_cmds=
7975
old_archive_From_new_cmds=
7976
old_archive_from_expsyms_cmds=
7977
export_dynamic_flag_spec=
7978
whole_archive_flag_spec=
7979
thread_safe_flag_spec=
7980
hardcode_libdir_flag_spec=
7981
hardcode_libdir_flag_spec_ld=
7982
hardcode_libdir_separator=
7985
hardcode_shlibpath_var=unsupported
7986
link_all_deplibs=unknown
7987
hardcode_automatic=no
7990
always_export_symbols=no
7991
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7992
# include_expsyms should be a list of space-separated symbols to be *always*
7993
# included in the symbol list
7995
# exclude_expsyms can be an extended regexp of symbols to exclude
7996
# it will be wrapped by ` (' and `)$', so one must not match beginning or
7997
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7998
# as well as any symbol that contains `d'.
7999
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8000
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8001
# platforms (ab)use it in PIC code, but their linkers get confused if
8002
# the symbol is explicitly referenced. Since portable code cannot
8003
# rely on this symbol name, it's probably fine to never include it in
8004
# preloaded symbol tables.
8005
extract_expsyms_cmds=
8006
# Just being paranoid about ensuring that cc_basename is set.
8007
for cc_temp in $compiler""; do
8009
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8010
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8015
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8018
cygwin* | mingw* | pw32*)
8019
# FIXME: the MSVC++ port hasn't been tested in a loooong time
8020
# When not using gcc, we currently assume that we are using
8021
# Microsoft Visual C++.
8022
if test "$GCC" != yes; then
8027
# we just hope/assume this is gcc and not c89 (= MSVC++)
8036
if test "$with_gnu_ld" = yes; then
8037
# If archive_cmds runs LD, not CC, wlarc should be empty
8040
# Set some defaults for GNU ld with shared library support. These
8041
# are reset later if shared libraries are not supported. Putting them
8042
# here allows them to be overridden if necessary.
8043
runpath_var=LD_RUN_PATH
8044
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8045
export_dynamic_flag_spec='${wl}--export-dynamic'
8046
# ancient GNU ld didn't support --whole-archive et. al.
8047
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8048
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8050
whole_archive_flag_spec=
8052
supports_anon_versioning=no
8053
case `$LD -v 2>/dev/null` in
8054
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8055
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8056
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8057
*\ 2.11.*) ;; # other 2.11 versions
8058
*) supports_anon_versioning=yes ;;
8061
# See if GNU ld supports shared libraries.
8063
aix3* | aix4* | aix5*)
8064
# On AIX/PPC, the GNU linker is very broken
8065
if test "$host_cpu" != ia64; then
8069
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8070
*** to be unable to reliably create shared libraries on AIX.
8071
*** Therefore, libtool is disabling shared libraries support. If you
8072
*** really care for shared libraries, you may want to modify your PATH
8073
*** so that a non-GNU linker is found, and then restart.
8080
archive_cmds='$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)'
8081
hardcode_libdir_flag_spec='-L$libdir'
8082
hardcode_minus_L=yes
8084
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8085
# that the semantics of dynamic libraries on AmigaOS, at least up
8086
# to version 4, is to share data among multiple programs linked
8087
# with the same dynamic library. Since this doesn't match the
8088
# behavior of shared libraries on other platforms, we can't use
8094
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8095
allow_undefined_flag=unsupported
8096
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8097
# support --undefined. This deserves some investigation. FIXME
8098
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8104
cygwin* | mingw* | pw32*)
8105
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8106
# as there is no search path for DLLs.
8107
hardcode_libdir_flag_spec='-L$libdir'
8108
allow_undefined_flag=unsupported
8109
always_export_symbols=no
8110
enable_shared_with_static_runtimes=yes
8111
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8113
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8114
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8115
# If the export-symbols file already is a .def file (1st line
8116
# is EXPORTS), use it as is; otherwise, prepend...
8117
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8118
cp $export_symbols $output_objdir/$soname.def;
8120
echo EXPORTS > $output_objdir/$soname.def;
8121
cat $export_symbols >> $output_objdir/$soname.def;
8123
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8131
hardcode_shlibpath_var=no
8132
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8133
export_dynamic_flag_spec='${wl}-E'
8134
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8135
# Instead, shared libraries are loaded at an image base (0x10000000 by
8136
# default) and relocated if they conflict, which is a slow very memory
8137
# consuming and fragmenting process. To avoid this, we pick a random,
8138
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8139
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
8140
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8141
archive_expsym_cmds='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'
8144
linux* | k*bsd*-gnu)
8145
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8147
case $cc_basename,$host_cpu in
8148
pgcc*) # Portland Group C compiler
8149
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8150
tmp_addflag=' $pic_flag'
8152
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8153
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8154
tmp_addflag=' $pic_flag -Mnomain' ;;
8155
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8156
tmp_addflag=' -i_dynamic' ;;
8157
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8158
tmp_addflag=' -i_dynamic -nofor_main' ;;
8159
ifc* | ifort*) # Intel Fortran compiler
8160
tmp_addflag=' -nofor_main' ;;
8162
archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8164
if test $supports_anon_versioning = yes; then
8165
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8166
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8167
$echo "local: *; };" >> $output_objdir/$libname.ver~
8168
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8176
netbsd* | netbsdelf*-gnu)
8177
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8178
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8181
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8182
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8187
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8191
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8192
*** create shared libraries on Solaris systems. Therefore, libtool
8193
*** is disabling shared libraries support. We urge you to upgrade GNU
8194
*** binutils to release 2.9.1 or newer. Another option is to modify
8195
*** your PATH or compiler configuration so that the native linker is
8196
*** used, and then restart.
8199
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8200
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8201
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8207
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8208
case `$LD -v 2>&1` in
8209
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8213
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8214
*** reliably create shared libraries on SCO systems. Therefore, libtool
8215
*** is disabling shared libraries support. We urge you to upgrade GNU
8216
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8217
*** your PATH or compiler configuration so that the native linker is
8218
*** used, and then restart.
8223
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8224
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8225
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8226
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8235
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8238
hardcode_shlibpath_var=no
8242
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8243
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8244
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8251
if test "$ld_shlibs" = no; then
8253
hardcode_libdir_flag_spec=
8254
export_dynamic_flag_spec=
8255
whole_archive_flag_spec=
8258
# PORTME fill in a description of your system's linker (not GNU ld)
8261
allow_undefined_flag=unsupported
8262
always_export_symbols=yes
8263
archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
8264
# Note: this linker hardcodes the directories in LIBPATH if there
8265
# are no directories specified by -L.
8266
hardcode_minus_L=yes
8267
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8268
# Neither direct hardcoding nor static linking is supported with a
8270
hardcode_direct=unsupported
8275
if test "$host_cpu" = ia64; then
8276
# On IA64, the linker does run time linking by default, so we don't
8277
# have to do anything special.
8278
aix_use_runtimelinking=no
8279
exp_sym_flag='-Bexport'
8282
# If we're using GNU nm, then we don't want the "-C" option.
8283
# -C means demangle to AIX nm, but means don't demangle with GNU nm
8284
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8285
export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8287
export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8289
aix_use_runtimelinking=no
8291
# Test if we are trying to use run time linking or normal
8292
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8293
# need to do runtime linking.
8294
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8295
for ld_flag in $LDFLAGS; do
8296
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8297
aix_use_runtimelinking=yes
8304
exp_sym_flag='-bexport'
8305
no_entry_flag='-bnoentry'
8308
# When large executables or shared objects are built, AIX ld can
8309
# have problems creating the table of contents. If linking a library
8310
# or program results in "error TOC overflow" add -mminimal-toc to
8311
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8312
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8316
hardcode_libdir_separator=':'
8317
link_all_deplibs=yes
8319
if test "$GCC" = yes; then
8320
case $host_os in aix4.[012]|aix4.[012].*)
8321
# We only want to do this on AIX 4.2 and lower, the check
8322
# below for broken collect2 doesn't work under 4.3+
8323
collect2name=`${CC} -print-prog-name=collect2`
8324
if test -f "$collect2name" && \
8325
strings "$collect2name" | grep resolve_lib_name >/dev/null
8327
# We have reworked collect2
8330
# We have old collect2
8331
hardcode_direct=unsupported
8332
# It fails to find uninstalled libraries when the uninstalled
8333
# path is not listed in the libpath. Setting hardcode_minus_L
8334
# to unsupported forces relinking
8335
hardcode_minus_L=yes
8336
hardcode_libdir_flag_spec='-L$libdir'
8337
hardcode_libdir_separator=
8341
shared_flag='-shared'
8342
if test "$aix_use_runtimelinking" = yes; then
8343
shared_flag="$shared_flag "'${wl}-G'
8347
if test "$host_cpu" = ia64; then
8348
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8349
# chokes on -Wl,-G. The following line is correct:
8352
if test "$aix_use_runtimelinking" = yes; then
8353
shared_flag='${wl}-G'
8355
shared_flag='${wl}-bM:SRE'
8360
# It seems that -bexpall does not export symbols beginning with
8361
# underscore (_), so it is better to generate a list of symbols to export.
8362
always_export_symbols=yes
8363
if test "$aix_use_runtimelinking" = yes; then
8364
# Warning - without using the other runtime loading flags (-brtl),
8365
# -berok will link without error, but may produce a broken library.
8366
allow_undefined_flag='-berok'
8367
# Determine the default libpath from the value encoded in an empty executable.
8368
cat >conftest.$ac_ext <<_ACEOF
8371
cat confdefs.h >>conftest.$ac_ext
8372
cat >>conftest.$ac_ext <<_ACEOF
8373
/* end confdefs.h. */
8383
rm -f conftest.$ac_objext conftest$ac_exeext
8384
if { (ac_try="$ac_link"
8386
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8387
*) ac_try_echo=$ac_try;;
8389
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8390
(eval "$ac_link") 2>conftest.er1
8392
grep -v '^ *+' conftest.er1 >conftest.err
8394
cat conftest.err >&5
8395
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396
(exit $ac_status); } && {
8397
test -z "$ac_c_werror_flag" ||
8398
test ! -s conftest.err
8399
} && test -s conftest$ac_exeext &&
8400
$as_test_x conftest$ac_exeext; then
8402
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8404
# Check for a 64-bit object if we didn't find anything.
8405
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; }
8408
echo "$as_me: failed program was:" >&5
8409
sed 's/^/| /' conftest.$ac_ext >&5
8414
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8415
conftest$ac_exeext conftest.$ac_ext
8416
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8418
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8419
archive_expsym_cmds="\$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"
8421
if test "$host_cpu" = ia64; then
8422
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8423
allow_undefined_flag="-z nodefs"
8424
archive_expsym_cmds="\$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"
8426
# Determine the default libpath from the value encoded in an empty executable.
8427
cat >conftest.$ac_ext <<_ACEOF
8430
cat confdefs.h >>conftest.$ac_ext
8431
cat >>conftest.$ac_ext <<_ACEOF
8432
/* end confdefs.h. */
8442
rm -f conftest.$ac_objext conftest$ac_exeext
8443
if { (ac_try="$ac_link"
8445
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8446
*) ac_try_echo=$ac_try;;
8448
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8449
(eval "$ac_link") 2>conftest.er1
8451
grep -v '^ *+' conftest.er1 >conftest.err
8453
cat conftest.err >&5
8454
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455
(exit $ac_status); } && {
8456
test -z "$ac_c_werror_flag" ||
8457
test ! -s conftest.err
8458
} && test -s conftest$ac_exeext &&
8459
$as_test_x conftest$ac_exeext; then
8461
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8463
# Check for a 64-bit object if we didn't find anything.
8464
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; }
8467
echo "$as_me: failed program was:" >&5
8468
sed 's/^/| /' conftest.$ac_ext >&5
8473
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8474
conftest$ac_exeext conftest.$ac_ext
8475
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8477
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8478
# Warning - without using the other run time loading flags,
8479
# -berok will link without error, but may produce a broken library.
8480
no_undefined_flag=' ${wl}-bernotok'
8481
allow_undefined_flag=' ${wl}-berok'
8482
# Exported symbols can be pulled into shared objects from archives
8483
whole_archive_flag_spec='$convenience'
8484
archive_cmds_need_lc=yes
8485
# This is similar to how AIX traditionally builds its shared libraries.
8486
archive_expsym_cmds="\$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'
8492
archive_cmds='$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)'
8493
hardcode_libdir_flag_spec='-L$libdir'
8494
hardcode_minus_L=yes
8495
# see comment about different semantics on the GNU ld section
8500
export_dynamic_flag_spec=-rdynamic
8503
cygwin* | mingw* | pw32*)
8504
# When not using gcc, we currently assume that we are using
8505
# Microsoft Visual C++.
8506
# hardcode_libdir_flag_spec is actually meaningless, as there is
8507
# no search path for DLLs.
8508
hardcode_libdir_flag_spec=' '
8509
allow_undefined_flag=unsupported
8510
# Tell ltmain to make .lib files, not .a files.
8512
# Tell ltmain to make .dll files, not .so files.
8514
# FIXME: Setting linknames here is a bad hack.
8515
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8516
# The linker will automatically build a .lib file if we build a DLL.
8517
old_archive_From_new_cmds='true'
8518
# FIXME: Should let the user specify the lib program.
8519
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8520
fix_srcfile_path='`cygpath -w "$srcfile"`'
8521
enable_shared_with_static_runtimes=yes
8524
darwin* | rhapsody*)
8526
rhapsody* | darwin1.[012])
8527
allow_undefined_flag='${wl}-undefined ${wl}suppress'
8530
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8531
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8533
case ${MACOSX_DEPLOYMENT_TARGET} in
8535
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8538
allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8544
archive_cmds_need_lc=no
8546
hardcode_automatic=yes
8547
hardcode_shlibpath_var=unsupported
8548
whole_archive_flag_spec=''
8549
link_all_deplibs=yes
8550
if test "$GCC" = yes ; then
8551
output_verbose_link_cmd='echo'
8552
archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8553
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8554
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8555
archive_expsym_cmds='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}'
8556
module_expsym_cmds='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}'
8558
case $cc_basename in
8560
output_verbose_link_cmd='echo'
8561
archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8562
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8563
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8564
archive_expsym_cmds='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}'
8565
module_expsym_cmds='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}'
8575
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8576
hardcode_libdir_flag_spec='-L$libdir'
8577
hardcode_shlibpath_var=no
8584
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8585
# support. Future versions do this automatically, but an explicit c++rt0.o
8586
# does not break anything, and helps significantly (at the cost of a little
8589
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8590
hardcode_libdir_flag_spec='-R$libdir'
8592
hardcode_shlibpath_var=no
8595
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
8597
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8599
hardcode_minus_L=yes
8600
hardcode_shlibpath_var=no
8603
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8604
freebsd* | dragonfly*)
8605
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8606
hardcode_libdir_flag_spec='-R$libdir'
8608
hardcode_shlibpath_var=no
8612
if test "$GCC" = yes; then
8613
archive_cmds='$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'
8615
archive_cmds='$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'
8617
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8618
hardcode_libdir_separator=:
8621
# hardcode_minus_L: Not really in the search PATH,
8622
# but as the default location of the library.
8623
hardcode_minus_L=yes
8624
export_dynamic_flag_spec='${wl}-E'
8628
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8629
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8631
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8633
if test "$with_gnu_ld" = no; then
8634
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8635
hardcode_libdir_separator=:
8638
export_dynamic_flag_spec='${wl}-E'
8640
# hardcode_minus_L: Not really in the search PATH,
8641
# but as the default location of the library.
8642
hardcode_minus_L=yes
8647
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8650
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8653
archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8656
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8662
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8665
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8668
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8672
if test "$with_gnu_ld" = no; then
8673
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8674
hardcode_libdir_separator=:
8678
hardcode_libdir_flag_spec_ld='+b $libdir'
8680
hardcode_shlibpath_var=no
8684
export_dynamic_flag_spec='${wl}-E'
8686
# hardcode_minus_L: Not really in the search PATH,
8687
# but as the default location of the library.
8688
hardcode_minus_L=yes
8694
irix5* | irix6* | nonstopux*)
8695
if test "$GCC" = yes; then
8696
archive_cmds='$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'
8698
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8699
hardcode_libdir_flag_spec_ld='-rpath $libdir'
8701
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8702
hardcode_libdir_separator=:
8703
link_all_deplibs=yes
8706
netbsd* | netbsdelf*-gnu)
8707
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8708
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8710
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8712
hardcode_libdir_flag_spec='-R$libdir'
8714
hardcode_shlibpath_var=no
8718
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8720
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8721
hardcode_libdir_separator=:
8722
hardcode_shlibpath_var=no
8727
hardcode_shlibpath_var=no
8728
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8729
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8730
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8731
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8732
export_dynamic_flag_spec='${wl}-E'
8735
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8736
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8737
hardcode_libdir_flag_spec='-R$libdir'
8740
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8741
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8748
hardcode_libdir_flag_spec='-L$libdir'
8749
hardcode_minus_L=yes
8750
allow_undefined_flag=unsupported
8751
archive_cmds='$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'
8752
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8756
if test "$GCC" = yes; then
8757
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8758
archive_cmds='$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'
8760
allow_undefined_flag=' -expect_unresolved \*'
8761
archive_cmds='$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'
8763
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8764
hardcode_libdir_separator=:
8767
osf4* | osf5*) # as osf3* with the addition of -msym flag
8768
if test "$GCC" = yes; then
8769
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8770
archive_cmds='$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'
8771
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8773
allow_undefined_flag=' -expect_unresolved \*'
8774
archive_cmds='$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'
8775
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8776
$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'
8778
# Both c and cxx compiler support -rpath directly
8779
hardcode_libdir_flag_spec='-rpath $libdir'
8781
hardcode_libdir_separator=:
8785
no_undefined_flag=' -z text'
8786
if test "$GCC" = yes; then
8788
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8789
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8790
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8793
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8794
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8795
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8797
hardcode_libdir_flag_spec='-R$libdir'
8798
hardcode_shlibpath_var=no
8800
solaris2.[0-5] | solaris2.[0-5].*) ;;
8802
# The compiler driver will combine linker options so we
8803
# cannot just pass the convience library names through
8804
# without $wl, iff we do not link with $LD.
8805
# Luckily, gcc supports the same syntax we need for Sun Studio.
8806
# Supported since Solaris 2.6 (maybe 2.5.1?)
8809
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8811
whole_archive_flag_spec='${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' ;;
8814
link_all_deplibs=yes
8818
if test "x$host_vendor" = xsequent; then
8819
# Use $CC to link under sequent, because it throws in some extra .o
8820
# files that make .init and .fini sections work.
8821
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8823
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8825
hardcode_libdir_flag_spec='-L$libdir'
8827
hardcode_minus_L=yes
8828
hardcode_shlibpath_var=no
8832
case $host_vendor in
8834
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8835
hardcode_direct=yes # is this really true???
8838
## LD is ld it makes a PLAMLIB
8839
## CC just makes a GrossModule.
8840
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8841
reload_cmds='$CC -r -o $output$reload_objs'
8845
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8846
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8849
runpath_var='LD_RUN_PATH'
8850
hardcode_shlibpath_var=no
8854
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8855
hardcode_shlibpath_var=no
8856
export_dynamic_flag_spec='-Bexport'
8860
if test -d /usr/nec; then
8861
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8862
hardcode_shlibpath_var=no
8863
runpath_var=LD_RUN_PATH
8864
hardcode_runpath_var=yes
8869
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8870
no_undefined_flag='${wl}-z,text'
8871
archive_cmds_need_lc=no
8872
hardcode_shlibpath_var=no
8873
runpath_var='LD_RUN_PATH'
8875
if test "$GCC" = yes; then
8876
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8877
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8879
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8880
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8884
sysv5* | sco3.2v5* | sco5v6*)
8885
# Note: We can NOT use -z defs as we might desire, because we do not
8886
# link with -lc, and that would cause any symbols used from libc to
8887
# always be unresolved, which means just about no library would
8888
# ever link correctly. If we're not using GNU ld we use -z text
8889
# though, which does catch some bad symbols but isn't as heavy-handed
8891
no_undefined_flag='${wl}-z,text'
8892
allow_undefined_flag='${wl}-z,nodefs'
8893
archive_cmds_need_lc=no
8894
hardcode_shlibpath_var=no
8895
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8896
hardcode_libdir_separator=':'
8897
link_all_deplibs=yes
8898
export_dynamic_flag_spec='${wl}-Bexport'
8899
runpath_var='LD_RUN_PATH'
8901
if test "$GCC" = yes; then
8902
archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8903
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8905
archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8906
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8911
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8912
hardcode_libdir_flag_spec='-L$libdir'
8913
hardcode_shlibpath_var=no
8922
{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8923
echo "${ECHO_T}$ld_shlibs" >&6; }
8924
test "$ld_shlibs" = no && can_build_shared=no
8927
# Do we need to explicitly link libc?
8929
case "x$archive_cmds_need_lc" in
8931
# Assume -lc should be added
8932
archive_cmds_need_lc=yes
8934
if test "$enable_shared" = yes && test "$GCC" = yes; then
8935
case $archive_cmds in
8937
# FIXME: we may have to deal with multi-command sequences.
8940
# Test whether the compiler implicitly links with -lc since on some
8941
# systems, -lgcc has to come before -lc. If gcc already passes -lc
8942
# to ld, don't add -lc before -lgcc.
8943
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8944
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8946
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8948
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8949
(eval $ac_compile) 2>&5
8951
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952
(exit $ac_status); } 2>conftest.err; then
8955
libobjs=conftest.$ac_objext
8957
wl=$lt_prog_compiler_wl
8958
pic_flag=$lt_prog_compiler_pic
8964
lt_save_allow_undefined_flag=$allow_undefined_flag
8965
allow_undefined_flag=
8966
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8967
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8969
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8970
(exit $ac_status); }
8972
archive_cmds_need_lc=no
8974
archive_cmds_need_lc=yes
8976
allow_undefined_flag=$lt_save_allow_undefined_flag
8978
cat conftest.err 1>&5
8981
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8982
echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8989
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8990
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8992
libname_spec='lib$name'
9000
shlibpath_overrides_runpath=unknown
9002
dynamic_linker="$host_os ld.so"
9003
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9004
if test "$GCC" = yes; then
9005
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9006
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9007
# if the path contains ";" then we assume it to be the separator
9008
# otherwise default to the standard path separator (i.e. ":") - it is
9009
# assumed that no part of a normal pathname contains ";" but that should
9010
# okay in the real world where ";" in dirpaths is itself problematic.
9011
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9013
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9016
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9018
need_lib_prefix=unknown
9019
hardcode_into_libs=no
9021
# when you set need_version to no, make sure it does not cause -set_version
9022
# flags to be left without arguments
9023
need_version=unknown
9028
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9029
shlibpath_var=LIBPATH
9031
# AIX 3 has no versioning support, so we append a major version to the name.
9032
soname_spec='${libname}${release}${shared_ext}$major'
9039
hardcode_into_libs=yes
9040
if test "$host_cpu" = ia64; then
9041
# AIX 5 supports IA64
9042
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9043
shlibpath_var=LD_LIBRARY_PATH
9045
# With GCC up to 2.95.x, collect2 would create an import file
9046
# for dependence libraries. The import file would start with
9047
# the line `#! .'. This would cause the generated library to
9048
# depend on `.', always an invalid library. This was fixed in
9049
# development snapshots of GCC prior to 3.0.
9051
aix4 | aix4.[01] | aix4.[01].*)
9052
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9054
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9061
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9062
# soname into executable. Probably we can add versioning support to
9063
# collect2, so additional links can be useful in future.
9064
if test "$aix_use_runtimelinking" = yes; then
9065
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
9066
# instead of lib<name>.a to let people know that these are not
9067
# typical AIX shared libraries.
9068
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9070
# We preserve .a as extension for shared libraries through AIX4.2
9071
# and later when we are not doing run time linking.
9072
library_names_spec='${libname}${release}.a $libname.a'
9073
soname_spec='${libname}${release}${shared_ext}$major'
9075
shlibpath_var=LIBPATH
9080
library_names_spec='$libname.ixlibrary $libname.a'
9081
# Create ${libname}_ixlibrary.a entries in /sys/libs.
9082
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'
9086
library_names_spec='${libname}${shared_ext}'
9087
dynamic_linker="$host_os ld.so"
9088
shlibpath_var=LIBRARY_PATH
9094
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9095
soname_spec='${libname}${release}${shared_ext}$major'
9096
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9097
shlibpath_var=LD_LIBRARY_PATH
9098
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9099
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9100
# the default ld.so.conf also contains /usr/contrib/lib and
9101
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9102
# libtool to hard-code these into programs
9105
cygwin* | mingw* | pw32*)
9106
version_type=windows
9111
case $GCC,$host_os in
9112
yes,cygwin* | yes,mingw* | yes,pw32*)
9113
library_names_spec='$libname.dll.a'
9114
# DLL is installed to $(libdir)/../bin by postinstall_cmds
9115
postinstall_cmds='base_file=`basename \${file}`~
9116
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9117
dldir=$destdir/`dirname \$dlpath`~
9118
test -d \$dldir || mkdir -p \$dldir~
9119
$install_prog $dir/$dlname \$dldir/$dlname~
9120
chmod a+x \$dldir/$dlname'
9121
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9122
dlpath=$dir/\$dldll~
9124
shlibpath_overrides_runpath=yes
9128
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
9129
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9130
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9133
# MinGW DLLs use traditional 'lib' prefix
9134
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9135
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9136
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9137
# It is most probably a Windows format PATH printed by
9138
# mingw gcc, but we are running on Cygwin. Gcc prints its search
9139
# path with ; separators, and with drive letters. We can handle the
9140
# drive letters (cygwin fileutils understands them), so leave them,
9141
# especially as we might pass files found there to a mingw objdump,
9142
# which wouldn't understand a cygwinified path. Ahh.
9143
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9145
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9149
# pw32 DLLs use 'pw' prefix rather than 'lib'
9150
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9156
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9159
dynamic_linker='Win32 ld.exe'
9160
# FIXME: first we should search . and the directory the executable is in
9164
darwin* | rhapsody*)
9165
dynamic_linker="$host_os dyld"
9169
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9170
soname_spec='${libname}${release}${major}$shared_ext'
9171
shlibpath_overrides_runpath=yes
9172
shlibpath_var=DYLD_LIBRARY_PATH
9173
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9174
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9175
if test "$GCC" = yes; then
9176
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"`
9178
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9180
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9187
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9188
soname_spec='${libname}${release}${shared_ext}$major'
9189
shlibpath_var=LD_LIBRARY_PATH
9196
freebsd* | dragonfly*)
9197
# DragonFly does not have aout. When/if they implement a new
9198
# versioning mechanism, adjust this.
9199
if test -x /usr/bin/objformat; then
9200
objformat=`/usr/bin/objformat`
9203
freebsd[123]*) objformat=aout ;;
9207
version_type=freebsd-$objformat
9208
case $version_type in
9210
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9215
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9219
shlibpath_var=LD_LIBRARY_PATH
9222
shlibpath_overrides_runpath=yes
9224
freebsd3.[01]* | freebsdelf3.[01]*)
9225
shlibpath_overrides_runpath=yes
9226
hardcode_into_libs=yes
9228
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9229
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9230
shlibpath_overrides_runpath=no
9231
hardcode_into_libs=yes
9233
freebsd*) # from 4.6 on
9234
shlibpath_overrides_runpath=yes
9235
hardcode_into_libs=yes
9244
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9245
soname_spec='${libname}${release}${shared_ext}$major'
9246
shlibpath_var=LD_LIBRARY_PATH
9247
hardcode_into_libs=yes
9250
hpux9* | hpux10* | hpux11*)
9251
# Give a soname corresponding to the major version so that dld.sl refuses to
9252
# link against other versions.
9259
hardcode_into_libs=yes
9260
dynamic_linker="$host_os dld.so"
9261
shlibpath_var=LD_LIBRARY_PATH
9262
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9263
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9264
soname_spec='${libname}${release}${shared_ext}$major'
9265
if test "X$HPUX_IA64_MODE" = X32; then
9266
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9268
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9270
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9274
hardcode_into_libs=yes
9275
dynamic_linker="$host_os dld.sl"
9276
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9277
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9278
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9279
soname_spec='${libname}${release}${shared_ext}$major'
9280
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9281
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9285
dynamic_linker="$host_os dld.sl"
9286
shlibpath_var=SHLIB_PATH
9287
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9288
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9289
soname_spec='${libname}${release}${shared_ext}$major'
9292
# HP-UX runs *really* slowly unless shared libraries are mode 555.
9293
postinstall_cmds='chmod 555 $lib'
9300
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9301
soname_spec='${libname}${release}${shared_ext}$major'
9302
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9303
shlibpath_var=LD_LIBRARY_PATH
9304
shlibpath_overrides_runpath=no
9305
hardcode_into_libs=yes
9308
irix5* | irix6* | nonstopux*)
9310
nonstopux*) version_type=nonstopux ;;
9312
if test "$lt_cv_prog_gnu_ld" = yes; then
9320
soname_spec='${libname}${release}${shared_ext}$major'
9321
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9323
irix5* | nonstopux*)
9327
case $LD in # libtool.m4 will add one of these switches to LD
9328
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9329
libsuff= shlibsuff= libmagic=32-bit;;
9330
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9331
libsuff=32 shlibsuff=N32 libmagic=N32;;
9332
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9333
libsuff=64 shlibsuff=64 libmagic=64-bit;;
9334
*) libsuff= shlibsuff= libmagic=never-match;;
9338
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9339
shlibpath_overrides_runpath=no
9340
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9341
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9342
hardcode_into_libs=yes
9345
# No shared lib support for Linux oldld, aout, or coff.
9346
linux*oldld* | linux*aout* | linux*coff*)
9350
# This must be Linux ELF.
9351
linux* | k*bsd*-gnu)
9355
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9356
soname_spec='${libname}${release}${shared_ext}$major'
9357
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9358
shlibpath_var=LD_LIBRARY_PATH
9359
shlibpath_overrides_runpath=no
9360
# This implies no fast_install, which is unacceptable.
9361
# Some rework will be needed to allow for fast_install
9362
# before this can be enabled.
9363
hardcode_into_libs=yes
9365
# Append ld.so.conf contents to the search path
9366
if test -f /etc/ld.so.conf; then
9367
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' ' '`
9368
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9371
# We used to test for /lib/ld.so.1 and disable shared libraries on
9372
# powerpc, because MkLinux only supported shared libraries with the
9373
# GNU dynamic linker. Since this was broken with cross compilers,
9374
# most powerpc-linux boxes support dynamic linking these days and
9375
# people can always --disable-shared, the test was removed, and we
9376
# assume the GNU/Linux dynamic linker is in use.
9377
dynamic_linker='GNU/Linux ld.so'
9384
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9385
soname_spec='${libname}${release}${shared_ext}$major'
9386
shlibpath_var=LD_LIBRARY_PATH
9387
shlibpath_overrides_runpath=no
9388
hardcode_into_libs=yes
9389
dynamic_linker='NetBSD ld.elf_so'
9396
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9397
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9398
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9399
dynamic_linker='NetBSD (a.out) ld.so'
9401
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9402
soname_spec='${libname}${release}${shared_ext}$major'
9403
dynamic_linker='NetBSD ld.elf_so'
9405
shlibpath_var=LD_LIBRARY_PATH
9406
shlibpath_overrides_runpath=yes
9407
hardcode_into_libs=yes
9412
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9413
shlibpath_var=LD_LIBRARY_PATH
9414
shlibpath_overrides_runpath=yes
9421
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9422
soname_spec='${libname}${release}${shared_ext}$major'
9423
shlibpath_var=LD_LIBRARY_PATH
9424
shlibpath_overrides_runpath=yes
9429
sys_lib_dlsearch_path_spec="/usr/lib"
9431
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9433
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9434
*) need_version=no ;;
9436
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9437
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9438
shlibpath_var=LD_LIBRARY_PATH
9439
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9441
openbsd2.[89] | openbsd2.[89].*)
9442
shlibpath_overrides_runpath=no
9445
shlibpath_overrides_runpath=yes
9449
shlibpath_overrides_runpath=yes
9454
libname_spec='$name'
9457
library_names_spec='$libname${shared_ext} $libname.a'
9458
dynamic_linker='OS/2 ld.exe'
9459
shlibpath_var=LIBPATH
9462
osf3* | osf4* | osf5*)
9466
soname_spec='${libname}${release}${shared_ext}$major'
9467
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9468
shlibpath_var=LD_LIBRARY_PATH
9469
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9470
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9477
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9478
soname_spec='${libname}${release}${shared_ext}$major'
9479
shlibpath_var=LD_LIBRARY_PATH
9480
shlibpath_overrides_runpath=yes
9481
hardcode_into_libs=yes
9482
# ldd complains unless libraries are executable
9483
postinstall_cmds='chmod +x $lib'
9488
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9489
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9490
shlibpath_var=LD_LIBRARY_PATH
9491
shlibpath_overrides_runpath=yes
9492
if test "$with_gnu_ld" = yes; then
9500
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9501
soname_spec='${libname}${release}${shared_ext}$major'
9502
shlibpath_var=LD_LIBRARY_PATH
9503
case $host_vendor in
9505
shlibpath_overrides_runpath=no
9507
export_dynamic_flag_spec='${wl}-Blargedynsym'
9508
runpath_var=LD_RUN_PATH
9516
shlibpath_overrides_runpath=no
9517
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9523
if test -d /usr/nec ;then
9525
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9526
soname_spec='$libname${shared_ext}.$major'
9527
shlibpath_var=LD_LIBRARY_PATH
9531
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9532
version_type=freebsd-elf
9535
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9536
soname_spec='${libname}${release}${shared_ext}$major'
9537
shlibpath_var=LD_LIBRARY_PATH
9538
hardcode_into_libs=yes
9539
if test "$with_gnu_ld" = yes; then
9540
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9541
shlibpath_overrides_runpath=no
9543
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9544
shlibpath_overrides_runpath=yes
9547
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9551
sys_lib_dlsearch_path_spec='/usr/lib'
9556
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9557
soname_spec='${libname}${release}${shared_ext}$major'
9558
shlibpath_var=LD_LIBRARY_PATH
9565
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9566
echo "${ECHO_T}$dynamic_linker" >&6; }
9567
test "$dynamic_linker" = no && can_build_shared=no
9569
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9570
if test "$GCC" = yes; then
9571
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9574
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9575
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9577
if test -n "$hardcode_libdir_flag_spec" || \
9578
test -n "$runpath_var" || \
9579
test "X$hardcode_automatic" = "Xyes" ; then
9581
# We can hardcode non-existant directories.
9582
if test "$hardcode_direct" != no &&
9583
# If the only mechanism to avoid hardcoding is shlibpath_var, we
9584
# have to relink, otherwise we might link with an installed library
9585
# when we should be linking with a yet-to-be-installed one
9586
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9587
test "$hardcode_minus_L" != no; then
9588
# Linking always hardcodes the temporary library directory.
9589
hardcode_action=relink
9591
# We can link without hardcoding, and we can hardcode nonexisting dirs.
9592
hardcode_action=immediate
9595
# We cannot hardcode anything, or else we can only hardcode existing
9597
hardcode_action=unsupported
9599
{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9600
echo "${ECHO_T}$hardcode_action" >&6; }
9602
if test "$hardcode_action" = relink; then
9603
# Fast installation is not supported
9604
enable_fast_install=no
9605
elif test "$shlibpath_overrides_runpath" = yes ||
9606
test "$enable_shared" = no; then
9607
# Fast installation is not necessary
9608
enable_fast_install=needless
9613
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9614
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9615
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9616
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9617
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9618
{ echo "$as_me:$LINENO: result: yes" >&5
9619
echo "${ECHO_T}yes" >&6; }
9621
# FIXME - insert some real tests, host_os isn't really good enough
9624
if test -n "$STRIP" ; then
9625
striplib="$STRIP -x"
9626
{ echo "$as_me:$LINENO: result: yes" >&5
9627
echo "${ECHO_T}yes" >&6; }
9629
{ echo "$as_me:$LINENO: result: no" >&5
9630
echo "${ECHO_T}no" >&6; }
9634
{ echo "$as_me:$LINENO: result: no" >&5
9635
echo "${ECHO_T}no" >&6; }
9640
if test "x$enable_dlopen" != xyes; then
9641
enable_dlopen=unknown
9642
enable_dlopen_self=unknown
9643
enable_dlopen_self_static=unknown
9650
lt_cv_dlopen="load_add_on"
9652
lt_cv_dlopen_self=yes
9656
lt_cv_dlopen="LoadLibrary"
9661
lt_cv_dlopen="dlopen"
9666
# if libdl is installed we need to link against it
9667
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9668
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9669
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9670
echo $ECHO_N "(cached) $ECHO_C" >&6
9672
ac_check_lib_save_LIBS=$LIBS
9674
cat >conftest.$ac_ext <<_ACEOF
9677
cat confdefs.h >>conftest.$ac_ext
9678
cat >>conftest.$ac_ext <<_ACEOF
9679
/* end confdefs.h. */
9681
/* Override any GCC internal prototype to avoid an error.
9682
Use char because int might match the return type of a GCC
9683
builtin and then its argument prototype would still apply. */
9696
rm -f conftest.$ac_objext conftest$ac_exeext
9697
if { (ac_try="$ac_link"
9699
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9700
*) ac_try_echo=$ac_try;;
9702
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9703
(eval "$ac_link") 2>conftest.er1
9705
grep -v '^ *+' conftest.er1 >conftest.err
9707
cat conftest.err >&5
9708
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9709
(exit $ac_status); } && {
9710
test -z "$ac_c_werror_flag" ||
9711
test ! -s conftest.err
9712
} && test -s conftest$ac_exeext &&
9713
$as_test_x conftest$ac_exeext; then
9714
ac_cv_lib_dl_dlopen=yes
9716
echo "$as_me: failed program was:" >&5
9717
sed 's/^/| /' conftest.$ac_ext >&5
9719
ac_cv_lib_dl_dlopen=no
9722
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9723
conftest$ac_exeext conftest.$ac_ext
9724
LIBS=$ac_check_lib_save_LIBS
9726
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9727
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9728
if test $ac_cv_lib_dl_dlopen = yes; then
9729
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9734
lt_cv_dlopen_self=yes
9741
{ echo "$as_me:$LINENO: checking for shl_load" >&5
9742
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9743
if test "${ac_cv_func_shl_load+set}" = set; then
9744
echo $ECHO_N "(cached) $ECHO_C" >&6
9746
cat >conftest.$ac_ext <<_ACEOF
9749
cat confdefs.h >>conftest.$ac_ext
9750
cat >>conftest.$ac_ext <<_ACEOF
9751
/* end confdefs.h. */
9752
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9753
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9754
#define shl_load innocuous_shl_load
9756
/* System header to define __stub macros and hopefully few prototypes,
9757
which can conflict with char shl_load (); below.
9758
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9759
<limits.h> exists even on freestanding compilers. */
9762
# include <limits.h>
9764
# include <assert.h>
9769
/* Override any GCC internal prototype to avoid an error.
9770
Use char because int might match the return type of a GCC
9771
builtin and then its argument prototype would still apply. */
9776
/* The GNU C library defines this for functions which it implements
9777
to always fail with ENOSYS. Some functions are actually named
9778
something starting with __ and the normal name is an alias. */
9779
#if defined __stub_shl_load || defined __stub___shl_load
9791
rm -f conftest.$ac_objext conftest$ac_exeext
9792
if { (ac_try="$ac_link"
9794
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9795
*) ac_try_echo=$ac_try;;
9797
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9798
(eval "$ac_link") 2>conftest.er1
9800
grep -v '^ *+' conftest.er1 >conftest.err
9802
cat conftest.err >&5
9803
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804
(exit $ac_status); } && {
9805
test -z "$ac_c_werror_flag" ||
9806
test ! -s conftest.err
9807
} && test -s conftest$ac_exeext &&
9808
$as_test_x conftest$ac_exeext; then
9809
ac_cv_func_shl_load=yes
9811
echo "$as_me: failed program was:" >&5
9812
sed 's/^/| /' conftest.$ac_ext >&5
9814
ac_cv_func_shl_load=no
9817
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9818
conftest$ac_exeext conftest.$ac_ext
9820
{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9821
echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9822
if test $ac_cv_func_shl_load = yes; then
9823
lt_cv_dlopen="shl_load"
9825
{ echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9826
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9827
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9828
echo $ECHO_N "(cached) $ECHO_C" >&6
9830
ac_check_lib_save_LIBS=$LIBS
9832
cat >conftest.$ac_ext <<_ACEOF
9835
cat confdefs.h >>conftest.$ac_ext
9836
cat >>conftest.$ac_ext <<_ACEOF
9837
/* end confdefs.h. */
9839
/* Override any GCC internal prototype to avoid an error.
9840
Use char because int might match the return type of a GCC
9841
builtin and then its argument prototype would still apply. */
9854
rm -f conftest.$ac_objext conftest$ac_exeext
9855
if { (ac_try="$ac_link"
9857
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9858
*) ac_try_echo=$ac_try;;
9860
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9861
(eval "$ac_link") 2>conftest.er1
9863
grep -v '^ *+' conftest.er1 >conftest.err
9865
cat conftest.err >&5
9866
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867
(exit $ac_status); } && {
9868
test -z "$ac_c_werror_flag" ||
9869
test ! -s conftest.err
9870
} && test -s conftest$ac_exeext &&
9871
$as_test_x conftest$ac_exeext; then
9872
ac_cv_lib_dld_shl_load=yes
9874
echo "$as_me: failed program was:" >&5
9875
sed 's/^/| /' conftest.$ac_ext >&5
9877
ac_cv_lib_dld_shl_load=no
9880
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9881
conftest$ac_exeext conftest.$ac_ext
9882
LIBS=$ac_check_lib_save_LIBS
9884
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9885
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9886
if test $ac_cv_lib_dld_shl_load = yes; then
9887
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9889
{ echo "$as_me:$LINENO: checking for dlopen" >&5
9890
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9891
if test "${ac_cv_func_dlopen+set}" = set; then
9892
echo $ECHO_N "(cached) $ECHO_C" >&6
9894
cat >conftest.$ac_ext <<_ACEOF
9897
cat confdefs.h >>conftest.$ac_ext
9898
cat >>conftest.$ac_ext <<_ACEOF
9899
/* end confdefs.h. */
9900
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9901
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9902
#define dlopen innocuous_dlopen
9904
/* System header to define __stub macros and hopefully few prototypes,
9905
which can conflict with char dlopen (); below.
9906
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9907
<limits.h> exists even on freestanding compilers. */
9910
# include <limits.h>
9912
# include <assert.h>
9917
/* Override any GCC internal prototype to avoid an error.
9918
Use char because int might match the return type of a GCC
9919
builtin and then its argument prototype would still apply. */
9924
/* The GNU C library defines this for functions which it implements
9925
to always fail with ENOSYS. Some functions are actually named
9926
something starting with __ and the normal name is an alias. */
9927
#if defined __stub_dlopen || defined __stub___dlopen
9939
rm -f conftest.$ac_objext conftest$ac_exeext
9940
if { (ac_try="$ac_link"
9942
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9943
*) ac_try_echo=$ac_try;;
9945
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9946
(eval "$ac_link") 2>conftest.er1
9948
grep -v '^ *+' conftest.er1 >conftest.err
9950
cat conftest.err >&5
9951
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952
(exit $ac_status); } && {
9953
test -z "$ac_c_werror_flag" ||
9954
test ! -s conftest.err
9955
} && test -s conftest$ac_exeext &&
9956
$as_test_x conftest$ac_exeext; then
9957
ac_cv_func_dlopen=yes
9959
echo "$as_me: failed program was:" >&5
9960
sed 's/^/| /' conftest.$ac_ext >&5
9962
ac_cv_func_dlopen=no
9965
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9966
conftest$ac_exeext conftest.$ac_ext
9968
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9969
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9970
if test $ac_cv_func_dlopen = yes; then
9971
lt_cv_dlopen="dlopen"
9973
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9974
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9975
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9976
echo $ECHO_N "(cached) $ECHO_C" >&6
9978
ac_check_lib_save_LIBS=$LIBS
9980
cat >conftest.$ac_ext <<_ACEOF
9983
cat confdefs.h >>conftest.$ac_ext
9984
cat >>conftest.$ac_ext <<_ACEOF
9985
/* end confdefs.h. */
9987
/* Override any GCC internal prototype to avoid an error.
9988
Use char because int might match the return type of a GCC
9989
builtin and then its argument prototype would still apply. */
10002
rm -f conftest.$ac_objext conftest$ac_exeext
10003
if { (ac_try="$ac_link"
10004
case "(($ac_try" in
10005
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10006
*) ac_try_echo=$ac_try;;
10008
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10009
(eval "$ac_link") 2>conftest.er1
10011
grep -v '^ *+' conftest.er1 >conftest.err
10013
cat conftest.err >&5
10014
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10015
(exit $ac_status); } && {
10016
test -z "$ac_c_werror_flag" ||
10017
test ! -s conftest.err
10018
} && test -s conftest$ac_exeext &&
10019
$as_test_x conftest$ac_exeext; then
10020
ac_cv_lib_dl_dlopen=yes
10022
echo "$as_me: failed program was:" >&5
10023
sed 's/^/| /' conftest.$ac_ext >&5
10025
ac_cv_lib_dl_dlopen=no
10028
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10029
conftest$ac_exeext conftest.$ac_ext
10030
LIBS=$ac_check_lib_save_LIBS
10032
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10033
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10034
if test $ac_cv_lib_dl_dlopen = yes; then
10035
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10037
{ echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10038
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10039
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10040
echo $ECHO_N "(cached) $ECHO_C" >&6
10042
ac_check_lib_save_LIBS=$LIBS
10043
LIBS="-lsvld $LIBS"
10044
cat >conftest.$ac_ext <<_ACEOF
10047
cat confdefs.h >>conftest.$ac_ext
10048
cat >>conftest.$ac_ext <<_ACEOF
10049
/* end confdefs.h. */
10051
/* Override any GCC internal prototype to avoid an error.
10052
Use char because int might match the return type of a GCC
10053
builtin and then its argument prototype would still apply. */
10066
rm -f conftest.$ac_objext conftest$ac_exeext
10067
if { (ac_try="$ac_link"
10068
case "(($ac_try" in
10069
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10070
*) ac_try_echo=$ac_try;;
10072
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10073
(eval "$ac_link") 2>conftest.er1
10075
grep -v '^ *+' conftest.er1 >conftest.err
10077
cat conftest.err >&5
10078
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079
(exit $ac_status); } && {
10080
test -z "$ac_c_werror_flag" ||
10081
test ! -s conftest.err
10082
} && test -s conftest$ac_exeext &&
10083
$as_test_x conftest$ac_exeext; then
10084
ac_cv_lib_svld_dlopen=yes
10086
echo "$as_me: failed program was:" >&5
10087
sed 's/^/| /' conftest.$ac_ext >&5
10089
ac_cv_lib_svld_dlopen=no
10092
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10093
conftest$ac_exeext conftest.$ac_ext
10094
LIBS=$ac_check_lib_save_LIBS
10096
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10097
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10098
if test $ac_cv_lib_svld_dlopen = yes; then
10099
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10101
{ echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10102
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10103
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10104
echo $ECHO_N "(cached) $ECHO_C" >&6
10106
ac_check_lib_save_LIBS=$LIBS
10108
cat >conftest.$ac_ext <<_ACEOF
10111
cat confdefs.h >>conftest.$ac_ext
10112
cat >>conftest.$ac_ext <<_ACEOF
10113
/* end confdefs.h. */
10115
/* Override any GCC internal prototype to avoid an error.
10116
Use char because int might match the return type of a GCC
10117
builtin and then its argument prototype would still apply. */
10125
return dld_link ();
10130
rm -f conftest.$ac_objext conftest$ac_exeext
10131
if { (ac_try="$ac_link"
10132
case "(($ac_try" in
10133
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10134
*) ac_try_echo=$ac_try;;
10136
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10137
(eval "$ac_link") 2>conftest.er1
10139
grep -v '^ *+' conftest.er1 >conftest.err
10141
cat conftest.err >&5
10142
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143
(exit $ac_status); } && {
10144
test -z "$ac_c_werror_flag" ||
10145
test ! -s conftest.err
10146
} && test -s conftest$ac_exeext &&
10147
$as_test_x conftest$ac_exeext; then
10148
ac_cv_lib_dld_dld_link=yes
10150
echo "$as_me: failed program was:" >&5
10151
sed 's/^/| /' conftest.$ac_ext >&5
10153
ac_cv_lib_dld_dld_link=no
10156
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10157
conftest$ac_exeext conftest.$ac_ext
10158
LIBS=$ac_check_lib_save_LIBS
10160
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10161
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10162
if test $ac_cv_lib_dld_dld_link = yes; then
10163
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10184
if test "x$lt_cv_dlopen" != xno; then
10190
case $lt_cv_dlopen in
10192
save_CPPFLAGS="$CPPFLAGS"
10193
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10195
save_LDFLAGS="$LDFLAGS"
10196
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10199
LIBS="$lt_cv_dlopen_libs $LIBS"
10201
{ echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10202
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10203
if test "${lt_cv_dlopen_self+set}" = set; then
10204
echo $ECHO_N "(cached) $ECHO_C" >&6
10206
if test "$cross_compiling" = yes; then :
10207
lt_cv_dlopen_self=cross
10209
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10210
lt_status=$lt_dlunknown
10211
cat > conftest.$ac_ext <<EOF
10212
#line 10212 "configure"
10213
#include "confdefs.h"
10222
# define LT_DLGLOBAL RTLD_GLOBAL
10225
# define LT_DLGLOBAL DL_GLOBAL
10227
# define LT_DLGLOBAL 0
10231
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10232
find out it does not work in some platform. */
10233
#ifndef LT_DLLAZY_OR_NOW
10235
# define LT_DLLAZY_OR_NOW RTLD_LAZY
10238
# define LT_DLLAZY_OR_NOW DL_LAZY
10241
# define LT_DLLAZY_OR_NOW RTLD_NOW
10244
# define LT_DLLAZY_OR_NOW DL_NOW
10246
# define LT_DLLAZY_OR_NOW 0
10254
extern "C" void exit (int);
10257
void fnord() { int i=42;}
10260
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10261
int status = $lt_dlunknown;
10265
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10266
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10267
/* dlclose (self); */
10275
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10276
(eval $ac_link) 2>&5
10278
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10279
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10280
(./conftest; exit; ) >&5 2>/dev/null
10282
case x$lt_status in
10283
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10284
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10285
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10288
# compilation failed
10289
lt_cv_dlopen_self=no
10296
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10297
echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10299
if test "x$lt_cv_dlopen_self" = xyes; then
10300
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10301
{ echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10302
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10303
if test "${lt_cv_dlopen_self_static+set}" = set; then
10304
echo $ECHO_N "(cached) $ECHO_C" >&6
10306
if test "$cross_compiling" = yes; then :
10307
lt_cv_dlopen_self_static=cross
10309
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10310
lt_status=$lt_dlunknown
10311
cat > conftest.$ac_ext <<EOF
10312
#line 10312 "configure"
10313
#include "confdefs.h"
10322
# define LT_DLGLOBAL RTLD_GLOBAL
10325
# define LT_DLGLOBAL DL_GLOBAL
10327
# define LT_DLGLOBAL 0
10331
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10332
find out it does not work in some platform. */
10333
#ifndef LT_DLLAZY_OR_NOW
10335
# define LT_DLLAZY_OR_NOW RTLD_LAZY
10338
# define LT_DLLAZY_OR_NOW DL_LAZY
10341
# define LT_DLLAZY_OR_NOW RTLD_NOW
10344
# define LT_DLLAZY_OR_NOW DL_NOW
10346
# define LT_DLLAZY_OR_NOW 0
10354
extern "C" void exit (int);
10357
void fnord() { int i=42;}
10360
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10361
int status = $lt_dlunknown;
10365
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10366
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10367
/* dlclose (self); */
10375
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10376
(eval $ac_link) 2>&5
10378
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10380
(./conftest; exit; ) >&5 2>/dev/null
10382
case x$lt_status in
10383
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10384
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10385
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10388
# compilation failed
10389
lt_cv_dlopen_self_static=no
10396
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10397
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10400
CPPFLAGS="$save_CPPFLAGS"
10401
LDFLAGS="$save_LDFLAGS"
10406
case $lt_cv_dlopen_self in
10407
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10408
*) enable_dlopen_self=unknown ;;
10411
case $lt_cv_dlopen_self_static in
10412
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10413
*) enable_dlopen_self_static=unknown ;;
10418
# Report which library types will actually be built
10419
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10420
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10421
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10422
echo "${ECHO_T}$can_build_shared" >&6; }
10424
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10425
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10426
test "$can_build_shared" = "no" && enable_shared=no
10428
# On AIX, shared libraries and static libraries use the same namespace, and
10429
# are all built from PIC.
10432
test "$enable_shared" = yes && enable_static=no
10433
if test -n "$RANLIB"; then
10434
archive_cmds="$archive_cmds~\$RANLIB \$lib"
10435
postinstall_cmds='$RANLIB $lib'
10440
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10441
test "$enable_shared" = yes && enable_static=no
10445
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10446
echo "${ECHO_T}$enable_shared" >&6; }
10448
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10449
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10450
# Make sure either enable_shared or enable_static is yes.
10451
test "$enable_shared" = yes || enable_static=yes
10452
{ echo "$as_me:$LINENO: result: $enable_static" >&5
10453
echo "${ECHO_T}$enable_static" >&6; }
10455
# The else clause should only fire when bootstrapping the
10456
# libtool distribution, otherwise you forgot to ship ltmain.sh
10457
# with your package, and you will get complaints that there are
10458
# no rules to generate ltmain.sh.
10459
if test -f "$ltmain"; then
10460
# See if we are running on zsh, and set the options which allow our commands through
10461
# without removal of \ escapes.
10462
if test -n "${ZSH_VERSION+set}" ; then
10463
setopt NO_GLOB_SUBST
10465
# Now quote all the things that may contain metacharacters while being
10466
# careful not to overquote the AC_SUBSTed values. We take copies of the
10467
# variables and quote the copies for generation of the libtool script.
10468
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10470
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10471
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10472
deplibs_check_method reload_flag reload_cmds need_locks \
10473
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10474
lt_cv_sys_global_symbol_to_c_name_address \
10475
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10476
old_postinstall_cmds old_postuninstall_cmds \
10480
lt_prog_compiler_wl \
10481
lt_prog_compiler_pic \
10482
lt_prog_compiler_static \
10483
lt_prog_compiler_no_builtin_flag \
10484
export_dynamic_flag_spec \
10485
thread_safe_flag_spec \
10486
whole_archive_flag_spec \
10487
enable_shared_with_static_runtimes \
10489
old_archive_from_new_cmds \
10494
compiler_lib_search_path \
10496
archive_expsym_cmds \
10498
postuninstall_cmds \
10499
old_archive_from_expsyms_cmds \
10500
allow_undefined_flag \
10501
no_undefined_flag \
10502
export_symbols_cmds \
10503
hardcode_libdir_flag_spec \
10504
hardcode_libdir_flag_spec_ld \
10505
hardcode_libdir_separator \
10506
hardcode_automatic \
10508
module_expsym_cmds \
10509
lt_cv_prog_compiler_c_o \
10511
include_expsyms; do
10514
old_archive_cmds | \
10515
old_archive_from_new_cmds | \
10517
archive_expsym_cmds | \
10519
module_expsym_cmds | \
10520
old_archive_from_expsyms_cmds | \
10521
export_symbols_cmds | \
10522
extract_expsyms_cmds | reload_cmds | finish_cmds | \
10523
postinstall_cmds | postuninstall_cmds | \
10524
old_postinstall_cmds | old_postuninstall_cmds | \
10525
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10526
# Double-quote double-evaled strings.
10527
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10530
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10536
*'\$0 --fallback-echo"')
10537
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10541
cfgfile="${ofile}T"
10542
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10544
{ echo "$as_me:$LINENO: creating $ofile" >&5
10545
echo "$as_me: creating $ofile" >&6;}
10547
cat <<__EOF__ >> "$cfgfile"
10550
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10551
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10552
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10554
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10555
# Free Software Foundation, Inc.
10557
# This file is part of GNU Libtool:
10558
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10560
# This program is free software; you can redistribute it and/or modify
10561
# it under the terms of the GNU General Public License as published by
10562
# the Free Software Foundation; either version 2 of the License, or
10563
# (at your option) any later version.
10565
# This program is distributed in the hope that it will be useful, but
10566
# WITHOUT ANY WARRANTY; without even the implied warranty of
10567
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10568
# General Public License for more details.
10570
# You should have received a copy of the GNU General Public License
10571
# along with this program; if not, write to the Free Software
10572
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10574
# As a special exception to the GNU General Public License, if you
10575
# distribute this file as part of a program that contains a
10576
# configuration script generated by Autoconf, you may include it under
10577
# the same distribution terms that you use for the rest of that program.
10579
# A sed program that does not truncate output.
10582
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10583
Xsed="$SED -e 1s/^X//"
10585
# The HP-UX ksh and POSIX shell print the target directory to stdout
10586
# if CDPATH is set.
10587
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10589
# The names of the tagged configurations supported by this script.
10592
# ### BEGIN LIBTOOL CONFIG
10594
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10596
# Shell to use when invoking shell scripts.
10599
# Whether or not to build shared libraries.
10600
build_libtool_libs=$enable_shared
10602
# Whether or not to build static libraries.
10603
build_old_libs=$enable_static
10605
# Whether or not to add -lc for building shared libraries.
10606
build_libtool_need_lc=$archive_cmds_need_lc
10608
# Whether or not to disallow shared libs when runtime libs are static
10609
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10611
# Whether or not to optimize for fast installation.
10612
fast_install=$enable_fast_install
10615
host_alias=$host_alias
10619
# The build system.
10620
build_alias=$build_alias
10624
# An echo program that does not interpret backslashes.
10629
AR_FLAGS=$lt_AR_FLAGS
10634
# LTCC compiler flags.
10635
LTCFLAGS=$lt_LTCFLAGS
10637
# A language-specific compiler.
10640
# Is the compiler the GNU C compiler?
10646
# The linker used to build libraries.
10649
# Whether we need hard or soft links.
10652
# A BSD-compatible nm program.
10655
# A symbol stripping program
10658
# Used to examine libraries when file_magic_cmd begins "file"
10659
MAGIC_CMD=$MAGIC_CMD
10661
# Used on cygwin: DLL creation program.
10664
# Used on cygwin: object dumper.
10667
# Used on cygwin: assembler.
10670
# The name of the directory that contains temporary libtool files.
10673
# How to create reloadable object files.
10674
reload_flag=$lt_reload_flag
10675
reload_cmds=$lt_reload_cmds
10677
# How to pass a linker flag through the compiler.
10678
wl=$lt_lt_prog_compiler_wl
10680
# Object file suffix (normally "o").
10681
objext="$ac_objext"
10683
# Old archive suffix (normally "a").
10686
# Shared library suffix (normally ".so").
10687
shrext_cmds='$shrext_cmds'
10689
# Executable file suffix (normally "").
10692
# Additional compiler flags for building library objects.
10693
pic_flag=$lt_lt_prog_compiler_pic
10696
# What is the maximum length of a command?
10697
max_cmd_len=$lt_cv_sys_max_cmd_len
10699
# Does compiler simultaneously support -c and -o options?
10700
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10702
# Must we lock files when doing compilation?
10703
need_locks=$lt_need_locks
10705
# Do we need the lib prefix for modules?
10706
need_lib_prefix=$need_lib_prefix
10708
# Do we need a version for libraries?
10709
need_version=$need_version
10711
# Whether dlopen is supported.
10712
dlopen_support=$enable_dlopen
10714
# Whether dlopen of programs is supported.
10715
dlopen_self=$enable_dlopen_self
10717
# Whether dlopen of statically linked programs is supported.
10718
dlopen_self_static=$enable_dlopen_self_static
10720
# Compiler flag to prevent dynamic linking.
10721
link_static_flag=$lt_lt_prog_compiler_static
10723
# Compiler flag to turn off builtin functions.
10724
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10726
# Compiler flag to allow reflexive dlopens.
10727
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10729
# Compiler flag to generate shared objects directly from archives.
10730
whole_archive_flag_spec=$lt_whole_archive_flag_spec
10732
# Compiler flag to generate thread-safe objects.
10733
thread_safe_flag_spec=$lt_thread_safe_flag_spec
10735
# Library versioning type.
10736
version_type=$version_type
10738
# Format of library name prefix.
10739
libname_spec=$lt_libname_spec
10741
# List of archive names. First name is the real one, the rest are links.
10742
# The last name is the one that the linker finds with -lNAME.
10743
library_names_spec=$lt_library_names_spec
10745
# The coded name of the library, if different from the real name.
10746
soname_spec=$lt_soname_spec
10748
# Commands used to build and install an old-style archive.
10750
old_archive_cmds=$lt_old_archive_cmds
10751
old_postinstall_cmds=$lt_old_postinstall_cmds
10752
old_postuninstall_cmds=$lt_old_postuninstall_cmds
10754
# Create an old-style archive from a shared archive.
10755
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10757
# Create a temporary old-style archive to link instead of a shared archive.
10758
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10760
# Commands used to build and install a shared archive.
10761
archive_cmds=$lt_archive_cmds
10762
archive_expsym_cmds=$lt_archive_expsym_cmds
10763
postinstall_cmds=$lt_postinstall_cmds
10764
postuninstall_cmds=$lt_postuninstall_cmds
10766
# Commands used to build a loadable module (assumed same as above if empty)
10767
module_cmds=$lt_module_cmds
10768
module_expsym_cmds=$lt_module_expsym_cmds
10770
# Commands to strip libraries.
10771
old_striplib=$lt_old_striplib
10772
striplib=$lt_striplib
10774
# Dependencies to place before the objects being linked to create a
10776
predep_objects=$lt_predep_objects
10778
# Dependencies to place after the objects being linked to create a
10780
postdep_objects=$lt_postdep_objects
10782
# Dependencies to place before the objects being linked to create a
10784
predeps=$lt_predeps
10786
# Dependencies to place after the objects being linked to create a
10788
postdeps=$lt_postdeps
10790
# The library search path used internally by the compiler when linking
10791
# a shared library.
10792
compiler_lib_search_path=$lt_compiler_lib_search_path
10794
# Method to check whether dependent libraries are shared objects.
10795
deplibs_check_method=$lt_deplibs_check_method
10797
# Command to use when deplibs_check_method == file_magic.
10798
file_magic_cmd=$lt_file_magic_cmd
10800
# Flag that allows shared libraries with undefined symbols to be built.
10801
allow_undefined_flag=$lt_allow_undefined_flag
10803
# Flag that forces no undefined symbols.
10804
no_undefined_flag=$lt_no_undefined_flag
10806
# Commands used to finish a libtool library installation in a directory.
10807
finish_cmds=$lt_finish_cmds
10809
# Same as above, but a single script fragment to be evaled but not shown.
10810
finish_eval=$lt_finish_eval
10812
# Take the output of nm and produce a listing of raw symbols and C names.
10813
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10815
# Transform the output of nm in a proper C declaration
10816
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10818
# Transform the output of nm in a C name address pair
10819
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10821
# This is the shared library runtime path variable.
10822
runpath_var=$runpath_var
10824
# This is the shared library path variable.
10825
shlibpath_var=$shlibpath_var
10827
# Is shlibpath searched before the hard-coded library search path?
10828
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10830
# How to hardcode a shared library path into an executable.
10831
hardcode_action=$hardcode_action
10833
# Whether we should hardcode library paths into libraries.
10834
hardcode_into_libs=$hardcode_into_libs
10836
# Flag to hardcode \$libdir into a binary during linking.
10837
# This must work even if \$libdir does not exist.
10838
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10840
# If ld is used when linking, flag to hardcode \$libdir into
10841
# a binary during linking. This must work even if \$libdir does
10843
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10845
# Whether we need a single -rpath flag with a separated argument.
10846
hardcode_libdir_separator=$lt_hardcode_libdir_separator
10848
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10849
# resulting binary.
10850
hardcode_direct=$hardcode_direct
10852
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10853
# resulting binary.
10854
hardcode_minus_L=$hardcode_minus_L
10856
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10857
# the resulting binary.
10858
hardcode_shlibpath_var=$hardcode_shlibpath_var
10860
# Set to yes if building a shared library automatically hardcodes DIR into the library
10861
# and all subsequent libraries and executables linked against it.
10862
hardcode_automatic=$hardcode_automatic
10864
# Variables whose values should be saved in libtool wrapper scripts and
10865
# restored at relink time.
10866
variables_saved_for_relink="$variables_saved_for_relink"
10868
# Whether libtool must link a program against all its dependency libraries.
10869
link_all_deplibs=$link_all_deplibs
10871
# Compile-time system search path for libraries
10872
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10874
# Run-time system search path for libraries
10875
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10877
# Fix the shell variable \$srcfile for the compiler.
10878
fix_srcfile_path="$fix_srcfile_path"
10880
# Set to yes if exported symbols are required.
10881
always_export_symbols=$always_export_symbols
10883
# The commands to list exported symbols.
10884
export_symbols_cmds=$lt_export_symbols_cmds
10886
# The commands to extract the exported symbol list from a shared archive.
10887
extract_expsyms_cmds=$lt_extract_expsyms_cmds
10889
# Symbols that should not be listed in the preloaded symbols.
10890
exclude_expsyms=$lt_exclude_expsyms
10892
# Symbols that must always be exported.
10893
include_expsyms=$lt_include_expsyms
10895
# ### END LIBTOOL CONFIG
10902
cat <<\EOF >> "$cfgfile"
10904
# AIX sometimes has problems with the GCC collect2 program. For some
10905
# reason, if we set the COLLECT_NAMES environment variable, the problems
10906
# vanish in a puff of smoke.
10907
if test "X${COLLECT_NAMES+set}" != Xset; then
10909
export COLLECT_NAMES
10915
# We use sed instead of cat because bash on DJGPP gets confused if
10916
# if finds mixed CR/LF and LF-only lines. Since sed operates in
10917
# text mode, it properly converts lines to CR/LF. This bash problem
10918
# is reportedly fixed, but why not run on old versions too?
10919
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10921
mv -f "$cfgfile" "$ofile" || \
10922
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10926
# If there is no Makefile yet, we rely on a make rule to execute
10927
# `config.status --recheck' to rerun these tests and create the
10928
# libtool script then.
10929
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10930
if test -f "$ltmain_in"; then
10931
test -f Makefile && make "$ltmain"
10937
ac_cpp='$CPP $CPPFLAGS'
10938
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10939
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10940
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10945
# Check whether --with-tags was given.
10946
if test "${with_tags+set}" = set; then
10947
withval=$with_tags; tagnames="$withval"
10951
if test -f "$ltmain" && test -n "$tagnames"; then
10952
if test ! -f "${ofile}"; then
10953
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10954
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10957
if test -z "$LTCC"; then
10958
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10959
if test -z "$LTCC"; then
10960
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10961
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10963
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10964
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10967
if test -z "$LTCFLAGS"; then
10968
eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10971
# Extract list of available tagged configurations in $ofile.
10972
# Note that this assumes the entire list is on one line.
10973
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10975
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10976
for tagname in $tagnames; do
10978
# Check whether tagname contains only valid characters
10979
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10981
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10982
echo "$as_me: error: invalid tag name: $tagname" >&2;}
10983
{ (exit 1); exit 1; }; }
10987
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10989
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10990
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10991
{ (exit 1); exit 1; }; }
10994
# Update the list of available tags.
10995
if test -n "$tagname"; then
10996
echo appending configuration tag \"$tagname\" to $ofile
11000
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11001
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11002
(test "X$CXX" != "Xg++"))) ; then
11004
ac_cpp='$CXXCPP $CPPFLAGS'
11005
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11006
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11007
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11012
archive_cmds_need_lc_CXX=no
11013
allow_undefined_flag_CXX=
11014
always_export_symbols_CXX=no
11015
archive_expsym_cmds_CXX=
11016
export_dynamic_flag_spec_CXX=
11017
hardcode_direct_CXX=no
11018
hardcode_libdir_flag_spec_CXX=
11019
hardcode_libdir_flag_spec_ld_CXX=
11020
hardcode_libdir_separator_CXX=
11021
hardcode_minus_L_CXX=no
11022
hardcode_shlibpath_var_CXX=unsupported
11023
hardcode_automatic_CXX=no
11025
module_expsym_cmds_CXX=
11026
link_all_deplibs_CXX=unknown
11027
old_archive_cmds_CXX=$old_archive_cmds
11028
no_undefined_flag_CXX=
11029
whole_archive_flag_spec_CXX=
11030
enable_shared_with_static_runtimes_CXX=no
11032
# Dependencies to place before and after the object being linked:
11033
predep_objects_CXX=
11034
postdep_objects_CXX=
11037
compiler_lib_search_path_CXX=
11039
# Source file extension for C++ test sources.
11042
# Object file extension for compiled C++ test sources.
11046
# Code to be used in simple compile tests
11047
lt_simple_compile_test_code="int some_variable = 0;\n"
11049
# Code to be used in simple link tests
11050
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11052
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11054
# If no C compiler was specified, use CC.
11057
# If no C compiler flags were specified, use CFLAGS.
11058
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11060
# Allow CC to be a program name with arguments.
11064
# save warnings/boilerplate of simple test code
11065
ac_outfile=conftest.$ac_objext
11066
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11067
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11068
_lt_compiler_boilerplate=`cat conftest.err`
11071
ac_outfile=conftest.$ac_objext
11072
printf "$lt_simple_link_test_code" >conftest.$ac_ext
11073
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11074
_lt_linker_boilerplate=`cat conftest.err`
11078
# Allow CC to be a program name with arguments.
11083
lt_save_with_gnu_ld=$with_gnu_ld
11084
lt_save_path_LD=$lt_cv_path_LD
11085
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11086
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11088
$as_unset lt_cv_prog_gnu_ld
11090
if test -n "${lt_cv_path_LDCXX+set}"; then
11091
lt_cv_path_LD=$lt_cv_path_LDCXX
11093
$as_unset lt_cv_path_LD
11095
test -z "${LDCXX+set}" || LD=$LDCXX
11099
for cc_temp in $compiler""; do
11101
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11102
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11107
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11110
# We don't want -fno-exception wen compiling C++ code, so set the
11111
# no_builtin_flag separately
11112
if test "$GXX" = yes; then
11113
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11115
lt_prog_compiler_no_builtin_flag_CXX=
11118
if test "$GXX" = yes; then
11119
# Set up default GNU C++ configuration
11122
# Check whether --with-gnu-ld was given.
11123
if test "${with_gnu_ld+set}" = set; then
11124
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11130
if test "$GCC" = yes; then
11131
# Check if gcc -print-prog-name=ld gives a path.
11132
{ echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11133
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11136
# gcc leaves a trailing carriage return which upsets mingw
11137
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11139
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11142
# Accept absolute paths.
11144
re_direlt='/[^/][^/]*/\.\./'
11145
# Canonicalize the pathname of ld
11146
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11147
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11148
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11150
test -z "$LD" && LD="$ac_prog"
11153
# If it fails, then pretend we aren't using GCC.
11157
# If it is relative, then search for the first ld in PATH.
11158
with_gnu_ld=unknown
11161
elif test "$with_gnu_ld" = yes; then
11162
{ echo "$as_me:$LINENO: checking for GNU ld" >&5
11163
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11165
{ echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11166
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11168
if test "${lt_cv_path_LD+set}" = set; then
11169
echo $ECHO_N "(cached) $ECHO_C" >&6
11171
if test -z "$LD"; then
11172
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11173
for ac_dir in $PATH; do
11175
test -z "$ac_dir" && ac_dir=.
11176
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11177
lt_cv_path_LD="$ac_dir/$ac_prog"
11178
# Check to see if the program is GNU ld. I'd rather use --version,
11179
# but apparently some variants of GNU ld only accept -v.
11180
# Break only if it was the GNU/non-GNU ld that we prefer.
11181
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11182
*GNU* | *'with BFD'*)
11183
test "$with_gnu_ld" != no && break
11186
test "$with_gnu_ld" != yes && break
11193
lt_cv_path_LD="$LD" # Let the user override the test with a path.
11197
LD="$lt_cv_path_LD"
11198
if test -n "$LD"; then
11199
{ echo "$as_me:$LINENO: result: $LD" >&5
11200
echo "${ECHO_T}$LD" >&6; }
11202
{ echo "$as_me:$LINENO: result: no" >&5
11203
echo "${ECHO_T}no" >&6; }
11205
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11206
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11207
{ (exit 1); exit 1; }; }
11208
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11209
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11210
if test "${lt_cv_prog_gnu_ld+set}" = set; then
11211
echo $ECHO_N "(cached) $ECHO_C" >&6
11213
# I'd rather use --version here, but apparently some GNU lds only accept -v.
11214
case `$LD -v 2>&1 </dev/null` in
11215
*GNU* | *'with BFD'*)
11216
lt_cv_prog_gnu_ld=yes
11219
lt_cv_prog_gnu_ld=no
11223
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11224
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11225
with_gnu_ld=$lt_cv_prog_gnu_ld
11229
# Check if GNU C++ uses GNU ld as the underlying linker, since the
11230
# archiving commands below assume that GNU ld is being used.
11231
if test "$with_gnu_ld" = yes; then
11232
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11233
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'
11235
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11236
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11238
# If archive_cmds runs LD, not CC, wlarc should be empty
11239
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11240
# investigate it a little bit more. (MM)
11243
# ancient GNU ld didn't support --whole-archive et. al.
11244
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11245
grep 'no-whole-archive' > /dev/null; then
11246
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11248
whole_archive_flag_spec_CXX=
11254
# A generic and very simple default shared library creation
11255
# command for GNU C++ for the case where it uses the native
11256
# linker, instead of GNU ld. If possible, this setting should
11257
# overridden to take advantage of the native linker features on
11258
# the platform it is being used on.
11259
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11262
# Commands to make compiler produce verbose output that lists
11263
# what "hidden" libraries, object files and flags are used when
11264
# linking a shared library.
11265
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11273
# PORTME: fill in a description of your system's C++ link characteristics
11274
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11275
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11279
# FIXME: insert proper C++ library support
11283
if test "$host_cpu" = ia64; then
11284
# On IA64, the linker does run time linking by default, so we don't
11285
# have to do anything special.
11286
aix_use_runtimelinking=no
11287
exp_sym_flag='-Bexport'
11290
aix_use_runtimelinking=no
11292
# Test if we are trying to use run time linking or normal
11293
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11294
# need to do runtime linking.
11295
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11296
for ld_flag in $LDFLAGS; do
11299
aix_use_runtimelinking=yes
11307
exp_sym_flag='-bexport'
11308
no_entry_flag='-bnoentry'
11311
# When large executables or shared objects are built, AIX ld can
11312
# have problems creating the table of contents. If linking a library
11313
# or program results in "error TOC overflow" add -mminimal-toc to
11314
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11315
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11317
archive_cmds_CXX=''
11318
hardcode_direct_CXX=yes
11319
hardcode_libdir_separator_CXX=':'
11320
link_all_deplibs_CXX=yes
11322
if test "$GXX" = yes; then
11323
case $host_os in aix4.[012]|aix4.[012].*)
11324
# We only want to do this on AIX 4.2 and lower, the check
11325
# below for broken collect2 doesn't work under 4.3+
11326
collect2name=`${CC} -print-prog-name=collect2`
11327
if test -f "$collect2name" && \
11328
strings "$collect2name" | grep resolve_lib_name >/dev/null
11330
# We have reworked collect2
11331
hardcode_direct_CXX=yes
11333
# We have old collect2
11334
hardcode_direct_CXX=unsupported
11335
# It fails to find uninstalled libraries when the uninstalled
11336
# path is not listed in the libpath. Setting hardcode_minus_L
11337
# to unsupported forces relinking
11338
hardcode_minus_L_CXX=yes
11339
hardcode_libdir_flag_spec_CXX='-L$libdir'
11340
hardcode_libdir_separator_CXX=
11344
shared_flag='-shared'
11345
if test "$aix_use_runtimelinking" = yes; then
11346
shared_flag="$shared_flag "'${wl}-G'
11350
if test "$host_cpu" = ia64; then
11351
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11352
# chokes on -Wl,-G. The following line is correct:
11355
if test "$aix_use_runtimelinking" = yes; then
11356
shared_flag='${wl}-G'
11358
shared_flag='${wl}-bM:SRE'
11363
# It seems that -bexpall does not export symbols beginning with
11364
# underscore (_), so it is better to generate a list of symbols to export.
11365
always_export_symbols_CXX=yes
11366
if test "$aix_use_runtimelinking" = yes; then
11367
# Warning - without using the other runtime loading flags (-brtl),
11368
# -berok will link without error, but may produce a broken library.
11369
allow_undefined_flag_CXX='-berok'
11370
# Determine the default libpath from the value encoded in an empty executable.
11371
cat >conftest.$ac_ext <<_ACEOF
11374
cat confdefs.h >>conftest.$ac_ext
11375
cat >>conftest.$ac_ext <<_ACEOF
11376
/* end confdefs.h. */
11386
rm -f conftest.$ac_objext conftest$ac_exeext
11387
if { (ac_try="$ac_link"
11388
case "(($ac_try" in
11389
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11390
*) ac_try_echo=$ac_try;;
11392
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11393
(eval "$ac_link") 2>conftest.er1
11395
grep -v '^ *+' conftest.er1 >conftest.err
11397
cat conftest.err >&5
11398
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399
(exit $ac_status); } && {
11400
test -z "$ac_cxx_werror_flag" ||
11401
test ! -s conftest.err
11402
} && test -s conftest$ac_exeext &&
11403
$as_test_x conftest$ac_exeext; then
11405
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11407
# Check for a 64-bit object if we didn't find anything.
11408
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; }
11411
echo "$as_me: failed program was:" >&5
11412
sed 's/^/| /' conftest.$ac_ext >&5
11417
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11418
conftest$ac_exeext conftest.$ac_ext
11419
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11421
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11423
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"
11425
if test "$host_cpu" = ia64; then
11426
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11427
allow_undefined_flag_CXX="-z nodefs"
11428
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"
11430
# Determine the default libpath from the value encoded in an empty executable.
11431
cat >conftest.$ac_ext <<_ACEOF
11434
cat confdefs.h >>conftest.$ac_ext
11435
cat >>conftest.$ac_ext <<_ACEOF
11436
/* end confdefs.h. */
11446
rm -f conftest.$ac_objext conftest$ac_exeext
11447
if { (ac_try="$ac_link"
11448
case "(($ac_try" in
11449
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11450
*) ac_try_echo=$ac_try;;
11452
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11453
(eval "$ac_link") 2>conftest.er1
11455
grep -v '^ *+' conftest.er1 >conftest.err
11457
cat conftest.err >&5
11458
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11459
(exit $ac_status); } && {
11460
test -z "$ac_cxx_werror_flag" ||
11461
test ! -s conftest.err
11462
} && test -s conftest$ac_exeext &&
11463
$as_test_x conftest$ac_exeext; then
11465
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11467
# Check for a 64-bit object if we didn't find anything.
11468
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; }
11471
echo "$as_me: failed program was:" >&5
11472
sed 's/^/| /' conftest.$ac_ext >&5
11477
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11478
conftest$ac_exeext conftest.$ac_ext
11479
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11481
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11482
# Warning - without using the other run time loading flags,
11483
# -berok will link without error, but may produce a broken library.
11484
no_undefined_flag_CXX=' ${wl}-bernotok'
11485
allow_undefined_flag_CXX=' ${wl}-berok'
11486
# Exported symbols can be pulled into shared objects from archives
11487
whole_archive_flag_spec_CXX='$convenience'
11488
archive_cmds_need_lc_CXX=yes
11489
# This is similar to how AIX traditionally builds its shared libraries.
11490
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'
11496
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11497
allow_undefined_flag_CXX=unsupported
11498
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11499
# support --undefined. This deserves some investigation. FIXME
11500
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11507
case $cc_basename in
11509
# FIXME: insert proper C++ library support
11515
cygwin* | mingw* | pw32*)
11516
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11517
# as there is no search path for DLLs.
11518
hardcode_libdir_flag_spec_CXX='-L$libdir'
11519
allow_undefined_flag_CXX=unsupported
11520
always_export_symbols_CXX=no
11521
enable_shared_with_static_runtimes_CXX=yes
11523
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11524
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'
11525
# If the export-symbols file already is a .def file (1st line
11526
# is EXPORTS), use it as is; otherwise, prepend...
11527
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11528
cp $export_symbols $output_objdir/$soname.def;
11530
echo EXPORTS > $output_objdir/$soname.def;
11531
cat $export_symbols >> $output_objdir/$soname.def;
11533
$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'
11538
darwin* | rhapsody*)
11540
rhapsody* | darwin1.[012])
11541
allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11544
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11545
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11547
case ${MACOSX_DEPLOYMENT_TARGET} in
11549
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11552
allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11558
archive_cmds_need_lc_CXX=no
11559
hardcode_direct_CXX=no
11560
hardcode_automatic_CXX=yes
11561
hardcode_shlibpath_var_CXX=unsupported
11562
whole_archive_flag_spec_CXX=''
11563
link_all_deplibs_CXX=yes
11565
if test "$GXX" = yes ; then
11566
lt_int_apple_cc_single_mod=no
11567
output_verbose_link_cmd='echo'
11568
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11569
lt_int_apple_cc_single_mod=yes
11571
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11572
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11574
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'
11576
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11577
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11578
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11579
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}'
11581
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}'
11583
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}'
11585
case $cc_basename in
11587
output_verbose_link_cmd='echo'
11588
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'
11589
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11590
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11591
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}'
11592
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}'
11602
case $cc_basename in
11604
# FIXME: insert proper C++ library support
11608
# Green Hills C++ Compiler
11609
# FIXME: insert proper C++ library support
11613
# FIXME: insert proper C++ library support
11619
# C++ shared libraries reported to be fairly broken before switch to ELF
11623
archive_cmds_need_lc_CXX=no
11625
freebsd* | dragonfly*)
11626
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11633
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11634
hardcode_libdir_separator_CXX=:
11635
export_dynamic_flag_spec_CXX='${wl}-E'
11636
hardcode_direct_CXX=yes
11637
hardcode_minus_L_CXX=yes # Not in the search PATH,
11638
# but as the default
11639
# location of the library.
11641
case $cc_basename in
11643
# FIXME: insert proper C++ library support
11647
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'
11648
# Commands to make compiler produce verbose output that lists
11649
# what "hidden" libraries, object files and flags are used when
11650
# linking a shared library.
11652
# There doesn't appear to be a way to prevent this compiler from
11653
# explicitly linking system object files so we need to strip them
11654
# from the output so that they don't get included in the library
11656
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'
11659
if test "$GXX" = yes; then
11660
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'
11662
# FIXME: insert proper C++ library support
11669
if test $with_gnu_ld = no; then
11670
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11671
hardcode_libdir_separator_CXX=:
11675
hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11678
export_dynamic_flag_spec_CXX='${wl}-E'
11684
hardcode_direct_CXX=no
11685
hardcode_shlibpath_var_CXX=no
11688
hardcode_direct_CXX=yes
11689
hardcode_minus_L_CXX=yes # Not in the search PATH,
11690
# but as the default
11691
# location of the library.
11695
case $cc_basename in
11697
# FIXME: insert proper C++ library support
11703
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11706
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11709
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11712
# Commands to make compiler produce verbose output that lists
11713
# what "hidden" libraries, object files and flags are used when
11714
# linking a shared library.
11716
# There doesn't appear to be a way to prevent this compiler from
11717
# explicitly linking system object files so we need to strip them
11718
# from the output so that they don't get included in the library
11720
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'
11723
if test "$GXX" = yes; then
11724
if test $with_gnu_ld = no; then
11727
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11730
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11733
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'
11738
# FIXME: insert proper C++ library support
11745
hardcode_direct_CXX=no
11746
hardcode_shlibpath_var_CXX=no
11747
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11748
export_dynamic_flag_spec_CXX='${wl}-E'
11749
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11750
# Instead, shared libraries are loaded at an image base (0x10000000 by
11751
# default) and relocated if they conflict, which is a slow very memory
11752
# consuming and fragmenting process. To avoid this, we pick a random,
11753
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11754
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
11755
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'
11756
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'
11759
case $cc_basename in
11762
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'
11764
# Archives containing C++ object files must be created using
11765
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
11766
# necessary to make sure instantiated templates are included
11768
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11771
if test "$GXX" = yes; then
11772
if test "$with_gnu_ld" = no; then
11773
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'
11775
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'
11778
link_all_deplibs_CXX=yes
11781
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11782
hardcode_libdir_separator_CXX=:
11784
linux* | k*bsd*-gnu)
11785
case $cc_basename in
11787
# Kuck and Associates, Inc. (KAI) C++ Compiler
11789
# KCC will only create a shared library if the output file
11790
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11791
# to its proper name (with version) after linking.
11792
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'
11793
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'
11794
# Commands to make compiler produce verbose output that lists
11795
# what "hidden" libraries, object files and flags are used when
11796
# linking a shared library.
11798
# There doesn't appear to be a way to prevent this compiler from
11799
# explicitly linking system object files so we need to strip them
11800
# from the output so that they don't get included in the library
11802
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'
11804
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11805
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11807
# Archives containing C++ object files must be created using
11808
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11809
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11814
# version 8.0 and above of icpc choke on multiply defined symbols
11815
# if we add $predep_objects and $postdep_objects, however 7.1 and
11816
# earlier do not add the objects themselves.
11817
case `$CC -V 2>&1` in
11819
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11820
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'
11822
*) # Version 8.0 or newer
11825
ia64*) tmp_idyn=' -i_dynamic';;
11827
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11828
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'
11831
archive_cmds_need_lc_CXX=no
11832
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11833
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11834
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11837
# Portland Group C++ compiler
11838
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11839
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'
11841
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11842
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11843
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'
11847
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11848
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'
11850
runpath_var=LD_RUN_PATH
11851
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11852
hardcode_libdir_separator_CXX=:
11854
# Commands to make compiler produce verbose output that lists
11855
# what "hidden" libraries, object files and flags are used when
11856
# linking a shared library.
11858
# There doesn't appear to be a way to prevent this compiler from
11859
# explicitly linking system object files so we need to strip them
11860
# from the output so that they don't get included in the library
11862
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'
11867
# FIXME: insert proper C++ library support
11871
# FIXME: insert proper C++ library support
11875
case $cc_basename in
11877
# FIXME: insert proper C++ library support
11881
# FIXME: insert proper C++ library support
11886
netbsd* | netbsdelf*-gnu)
11887
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11888
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11890
hardcode_libdir_flag_spec_CXX='-R$libdir'
11891
hardcode_direct_CXX=yes
11892
hardcode_shlibpath_var_CXX=no
11894
# Workaround some broken pre-1.5 toolchains
11895
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11898
# C++ shared libraries are fairly broken
11902
hardcode_direct_CXX=yes
11903
hardcode_shlibpath_var_CXX=no
11904
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11905
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11906
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11907
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11908
export_dynamic_flag_spec_CXX='${wl}-E'
11909
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11911
output_verbose_link_cmd='echo'
11914
case $cc_basename in
11916
# Kuck and Associates, Inc. (KAI) C++ Compiler
11918
# KCC will only create a shared library if the output file
11919
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11920
# to its proper name (with version) after linking.
11921
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'
11923
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11924
hardcode_libdir_separator_CXX=:
11926
# Archives containing C++ object files must be created using
11927
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11928
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11932
# Rational C++ 2.4.1
11933
# FIXME: insert proper C++ library support
11937
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11938
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'
11940
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11941
hardcode_libdir_separator_CXX=:
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.
11947
# There doesn't appear to be a way to prevent this compiler from
11948
# explicitly linking system object files so we need to strip them
11949
# from the output so that they don't get included in the library
11951
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'
11954
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11955
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11956
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'
11958
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11959
hardcode_libdir_separator_CXX=:
11961
# Commands to make compiler produce verbose output that lists
11962
# what "hidden" libraries, object files and flags are used when
11963
# linking a shared library.
11964
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11967
# FIXME: insert proper C++ library support
11974
case $cc_basename in
11976
# Kuck and Associates, Inc. (KAI) C++ Compiler
11978
# KCC will only create a shared library if the output file
11979
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11980
# to its proper name (with version) after linking.
11981
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'
11983
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11984
hardcode_libdir_separator_CXX=:
11986
# Archives containing C++ object files must be created using
11987
# the KAI C++ compiler.
11988
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11991
# Rational C++ 2.4.1
11992
# FIXME: insert proper C++ library support
11996
allow_undefined_flag_CXX=' -expect_unresolved \*'
11997
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'
11998
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11999
echo "-hidden">> $lib.exp~
12000
$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~
12003
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12004
hardcode_libdir_separator_CXX=:
12006
# Commands to make compiler produce verbose output that lists
12007
# what "hidden" libraries, object files and flags are used when
12008
# linking a shared library.
12010
# There doesn't appear to be a way to prevent this compiler from
12011
# explicitly linking system object files so we need to strip them
12012
# from the output so that they don't get included in the library
12014
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'
12017
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12018
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12019
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'
12021
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12022
hardcode_libdir_separator_CXX=:
12024
# Commands to make compiler produce verbose output that lists
12025
# what "hidden" libraries, object files and flags are used when
12026
# linking a shared library.
12027
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12030
# FIXME: insert proper C++ library support
12037
# FIXME: insert proper C++ library support
12041
case $cc_basename in
12044
# FIXME: insert proper C++ library support
12049
# FIXME: insert proper C++ library support
12053
# FIXME: insert proper C++ library support
12059
case $cc_basename in
12061
# Sun C++ 4.2, 5.x and Centerline C++
12062
archive_cmds_need_lc_CXX=yes
12063
no_undefined_flag_CXX=' -zdefs'
12064
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12065
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12066
$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'
12068
hardcode_libdir_flag_spec_CXX='-R$libdir'
12069
hardcode_shlibpath_var_CXX=no
12071
solaris2.[0-5] | solaris2.[0-5].*) ;;
12073
# The C++ compiler is used as linker so we must use $wl
12074
# flag to pass the commands to the underlying system
12075
# linker. We must also pass each convience library through
12076
# to the system linker between allextract/defaultextract.
12077
# The C++ compiler will combine linker options so we
12078
# cannot just pass the convience library names through
12080
# Supported since Solaris 2.6 (maybe 2.5.1?)
12081
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'
12084
link_all_deplibs_CXX=yes
12086
output_verbose_link_cmd='echo'
12088
# Archives containing C++ object files must be created using
12089
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12090
# necessary to make sure instantiated templates are included
12092
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12095
# Green Hills C++ Compiler
12096
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12098
# The C++ compiler must be used to create the archive.
12099
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12102
# GNU C++ compiler with Solaris linker
12103
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12104
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12105
if $CC --version | grep -v '^2\.7' > /dev/null; then
12106
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12107
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12108
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12110
# Commands to make compiler produce verbose output that lists
12111
# what "hidden" libraries, object files and flags are used when
12112
# linking a shared library.
12113
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12115
# g++ 2.7 appears to require `-G' NOT `-shared' on this
12117
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12118
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12119
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12121
# Commands to make compiler produce verbose output that lists
12122
# what "hidden" libraries, object files and flags are used when
12123
# linking a shared library.
12124
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12127
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12132
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12133
no_undefined_flag_CXX='${wl}-z,text'
12134
archive_cmds_need_lc_CXX=no
12135
hardcode_shlibpath_var_CXX=no
12136
runpath_var='LD_RUN_PATH'
12138
case $cc_basename in
12140
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12141
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12144
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12145
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12149
sysv5* | sco3.2v5* | sco5v6*)
12150
# Note: We can NOT use -z defs as we might desire, because we do not
12151
# link with -lc, and that would cause any symbols used from libc to
12152
# always be unresolved, which means just about no library would
12153
# ever link correctly. If we're not using GNU ld we use -z text
12154
# though, which does catch some bad symbols but isn't as heavy-handed
12156
# For security reasons, it is highly recommended that you always
12157
# use absolute paths for naming shared libraries, and exclude the
12158
# DT_RUNPATH tag from executables and libraries. But doing so
12159
# requires that you compile everything twice, which is a pain.
12160
# So that behaviour is only enabled if SCOABSPATH is set to a
12161
# non-empty value in the environment. Most likely only useful for
12162
# creating official distributions of packages.
12163
# This is a hack until libtool officially supports absolute path
12164
# names for shared libraries.
12165
no_undefined_flag_CXX='${wl}-z,text'
12166
allow_undefined_flag_CXX='${wl}-z,nodefs'
12167
archive_cmds_need_lc_CXX=no
12168
hardcode_shlibpath_var_CXX=no
12169
hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12170
hardcode_libdir_separator_CXX=':'
12171
link_all_deplibs_CXX=yes
12172
export_dynamic_flag_spec_CXX='${wl}-Bexport'
12173
runpath_var='LD_RUN_PATH'
12175
case $cc_basename in
12177
archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12178
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12181
archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12182
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12187
case $cc_basename in
12189
# NonStop-UX NCC 3.20
12190
# FIXME: insert proper C++ library support
12194
# FIXME: insert proper C++ library support
12200
# FIXME: insert proper C++ library support
12204
# FIXME: insert proper C++ library support
12208
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12209
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12210
test "$ld_shlibs_CXX" = no && can_build_shared=no
12216
## There is no encapsulation within the following macros, do not change
12217
## the running order or otherwise move them around unless you know exactly
12218
## what you are doing...
12220
cat > conftest.$ac_ext <<EOF
12224
Foo (void) { a = 0; }
12230
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12231
(eval $ac_compile) 2>&5
12233
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234
(exit $ac_status); }; then
12235
# Parse the compiler output and extract the necessary
12236
# objects, libraries and library flags.
12238
# Sentinel used to keep track of whether or not we are before
12239
# the conftest object file.
12240
pre_test_object_deps_done=no
12242
# The `*' in the case matches for architectures that use `case' in
12243
# $output_verbose_cmd can trigger glob expansion during the loop
12244
# eval without this substitution.
12245
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12247
for p in `eval $output_verbose_link_cmd`; do
12251
# Some compilers place space between "-{L,R}" and the path.
12252
# Remove the space.
12253
if test $p = "-L" \
12254
|| test $p = "-R"; then
12261
if test "$pre_test_object_deps_done" = no; then
12264
# Internal compiler library paths should come after those
12265
# provided the user. The postdeps already come after the
12266
# user supplied libs so there is no need to process them.
12267
if test -z "$compiler_lib_search_path_CXX"; then
12268
compiler_lib_search_path_CXX="${prev}${p}"
12270
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12273
# The "-l" case would never come before the object being
12274
# linked, so don't bother handling this case.
12277
if test -z "$postdeps_CXX"; then
12278
postdeps_CXX="${prev}${p}"
12280
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12286
# This assumes that the test object file only shows up
12287
# once in the compiler output.
12288
if test "$p" = "conftest.$objext"; then
12289
pre_test_object_deps_done=yes
12293
if test "$pre_test_object_deps_done" = no; then
12294
if test -z "$predep_objects_CXX"; then
12295
predep_objects_CXX="$p"
12297
predep_objects_CXX="$predep_objects_CXX $p"
12300
if test -z "$postdep_objects_CXX"; then
12301
postdep_objects_CXX="$p"
12303
postdep_objects_CXX="$postdep_objects_CXX $p"
12308
*) ;; # Ignore the rest.
12316
echo "libtool.m4: error: problem compiling CXX test program"
12319
$rm -f confest.$objext
12321
# PORTME: override above test on systems where it is broken
12324
# Interix 3.5 installs completely hosed .la files for C++, so rather than
12325
# hack all around it, let's just trust "g++" to DTRT.
12326
predep_objects_CXX=
12327
postdep_objects_CXX=
12332
case $cc_basename in
12334
# Adding this requires a known-good setup of shared libraries for
12335
# Sun compiler versions before 5.6, else PIC objects from an old
12336
# archive will be linked into the output, leading to subtle bugs.
12337
postdeps_CXX='-lCstd -lCrun'
12344
case " $postdeps_CXX " in
12345
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12348
lt_prog_compiler_wl_CXX=
12349
lt_prog_compiler_pic_CXX=
12350
lt_prog_compiler_static_CXX=
12352
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12353
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12355
# C++ specific cases for pic, static, wl, etc.
12356
if test "$GXX" = yes; then
12357
lt_prog_compiler_wl_CXX='-Wl,'
12358
lt_prog_compiler_static_CXX='-static'
12362
# All AIX code is PIC.
12363
if test "$host_cpu" = ia64; then
12364
# AIX 5 now supports IA64 processor
12365
lt_prog_compiler_static_CXX='-Bstatic'
12369
# FIXME: we need at least 68020 code to build shared libraries, but
12370
# adding the `-m68020' flag to GCC prevents building anything better,
12372
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12374
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12375
# PIC is the default for these OSes.
12377
mingw* | os2* | pw32*)
12378
# This hack is so that the source file can tell whether it is being
12379
# built for inclusion in a dll (and should export symbols for example).
12380
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12382
darwin* | rhapsody*)
12383
# PIC is the default on this platform
12384
# Common symbols not allowed in MH_DYLIB files
12385
lt_prog_compiler_pic_CXX='-fno-common'
12388
# DJGPP does not support shared libraries at all
12389
lt_prog_compiler_pic_CXX=
12392
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
12393
# Instead, we relocate shared libraries at runtime.
12396
if test -d /usr/nec; then
12397
lt_prog_compiler_pic_CXX=-Kconform_pic
12401
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12402
# not for PA HP-UX.
12407
lt_prog_compiler_pic_CXX='-fPIC'
12412
lt_prog_compiler_pic_CXX='-fPIC'
12418
# All AIX code is PIC.
12419
if test "$host_cpu" = ia64; then
12420
# AIX 5 now supports IA64 processor
12421
lt_prog_compiler_static_CXX='-Bstatic'
12423
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12427
case $cc_basename in
12429
# Green Hills C++ Compiler
12430
# _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"
12435
# PIC is the default on this platform
12436
# Common symbols not allowed in MH_DYLIB files
12437
case $cc_basename in
12439
lt_prog_compiler_pic_CXX='-qnocommon'
12440
lt_prog_compiler_wl_CXX='-Wl,'
12445
case $cc_basename in
12447
lt_prog_compiler_pic_CXX='-KPIC'
12450
# Green Hills C++ Compiler
12451
lt_prog_compiler_pic_CXX='-pic'
12457
freebsd* | dragonfly*)
12458
# FreeBSD uses GNU C++
12460
hpux9* | hpux10* | hpux11*)
12461
case $cc_basename in
12463
lt_prog_compiler_wl_CXX='-Wl,'
12464
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12465
if test "$host_cpu" != ia64; then
12466
lt_prog_compiler_pic_CXX='+Z'
12470
lt_prog_compiler_wl_CXX='-Wl,'
12471
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12477
lt_prog_compiler_pic_CXX='+Z'
12486
# This is c89, which is MS Visual C++ (no shared libs)
12487
# Anyone wants to do a port?
12489
irix5* | irix6* | nonstopux*)
12490
case $cc_basename in
12492
lt_prog_compiler_wl_CXX='-Wl,'
12493
lt_prog_compiler_static_CXX='-non_shared'
12494
# CC pic flag -KPIC is the default.
12500
linux* | k*bsd*-gnu)
12501
case $cc_basename in
12504
lt_prog_compiler_wl_CXX='--backend -Wl,'
12505
lt_prog_compiler_pic_CXX='-fPIC'
12509
lt_prog_compiler_wl_CXX='-Wl,'
12510
lt_prog_compiler_pic_CXX='-KPIC'
12511
lt_prog_compiler_static_CXX='-static'
12514
# Portland Group C++ compiler.
12515
lt_prog_compiler_wl_CXX='-Wl,'
12516
lt_prog_compiler_pic_CXX='-fpic'
12517
lt_prog_compiler_static_CXX='-Bstatic'
12521
# Make sure the PIC flag is empty. It appears that all Alpha
12522
# Linux and Compaq Tru64 Unix objects are PIC.
12523
lt_prog_compiler_pic_CXX=
12524
lt_prog_compiler_static_CXX='-non_shared'
12535
case $cc_basename in
12537
lt_prog_compiler_pic_CXX='-W c,exportall'
12543
netbsd* | netbsdelf*-gnu)
12545
osf3* | osf4* | osf5*)
12546
case $cc_basename in
12548
lt_prog_compiler_wl_CXX='--backend -Wl,'
12551
# Rational C++ 2.4.1
12552
lt_prog_compiler_pic_CXX='-pic'
12555
# Digital/Compaq C++
12556
lt_prog_compiler_wl_CXX='-Wl,'
12557
# Make sure the PIC flag is empty. It appears that all Alpha
12558
# Linux and Compaq Tru64 Unix objects are PIC.
12559
lt_prog_compiler_pic_CXX=
12560
lt_prog_compiler_static_CXX='-non_shared'
12569
case $cc_basename in
12571
# Sun C++ 4.2, 5.x and Centerline C++
12572
lt_prog_compiler_pic_CXX='-KPIC'
12573
lt_prog_compiler_static_CXX='-Bstatic'
12574
lt_prog_compiler_wl_CXX='-Qoption ld '
12577
# Green Hills C++ Compiler
12578
lt_prog_compiler_pic_CXX='-PIC'
12585
case $cc_basename in
12588
lt_prog_compiler_pic_CXX='-pic'
12589
lt_prog_compiler_static_CXX='-Bstatic'
12593
lt_prog_compiler_pic_CXX='-pic'
12600
case $cc_basename in
12602
# NonStop-UX NCC 3.20
12603
lt_prog_compiler_pic_CXX='-KPIC'
12609
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12610
case $cc_basename in
12612
lt_prog_compiler_wl_CXX='-Wl,'
12613
lt_prog_compiler_pic_CXX='-KPIC'
12614
lt_prog_compiler_static_CXX='-Bstatic'
12621
lt_prog_compiler_can_build_shared_CXX=no
12626
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12627
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12630
# Check to make sure the PIC flag actually works.
12632
if test -n "$lt_prog_compiler_pic_CXX"; then
12634
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12635
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12636
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12637
echo $ECHO_N "(cached) $ECHO_C" >&6
12639
lt_prog_compiler_pic_works_CXX=no
12640
ac_outfile=conftest.$ac_objext
12641
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12642
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12643
# Insert the option either (1) after the last *FLAGS variable, or
12644
# (2) before a word containing "conftest.", or (3) at the end.
12645
# Note that $ac_compile itself does not contain backslashes and begins
12646
# with a dollar sign (not a hyphen), so the echo should work correctly.
12647
# The option is referenced via a variable to avoid confusing sed.
12648
lt_compile=`echo "$ac_compile" | $SED \
12649
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12650
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12651
-e 's:$: $lt_compiler_flag:'`
12652
(eval echo "\"\$as_me:12652: $lt_compile\"" >&5)
12653
(eval "$lt_compile" 2>conftest.err)
12655
cat conftest.err >&5
12656
echo "$as_me:12656: \$? = $ac_status" >&5
12657
if (exit $ac_status) && test -s "$ac_outfile"; then
12658
# The compiler can only warn and ignore the option if not recognized
12659
# So say no if there are warnings other than the usual output.
12660
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12661
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12662
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12663
lt_prog_compiler_pic_works_CXX=yes
12669
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12670
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12672
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12673
case $lt_prog_compiler_pic_CXX in
12675
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12678
lt_prog_compiler_pic_CXX=
12679
lt_prog_compiler_can_build_shared_CXX=no
12684
# For platforms which do not support PIC, -DPIC is meaningless:
12686
lt_prog_compiler_pic_CXX=
12689
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12694
# Check to make sure the static flag actually works.
12696
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12697
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12698
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12699
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12700
echo $ECHO_N "(cached) $ECHO_C" >&6
12702
lt_prog_compiler_static_works_CXX=no
12703
save_LDFLAGS="$LDFLAGS"
12704
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12705
printf "$lt_simple_link_test_code" > conftest.$ac_ext
12706
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12707
# The linker can only warn and ignore the option if not recognized
12708
# So say no if there are warnings
12709
if test -s conftest.err; then
12710
# Append any errors to the config.log.
12711
cat conftest.err 1>&5
12712
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12713
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12714
if diff conftest.exp conftest.er2 >/dev/null; then
12715
lt_prog_compiler_static_works_CXX=yes
12718
lt_prog_compiler_static_works_CXX=yes
12722
LDFLAGS="$save_LDFLAGS"
12725
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12726
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12728
if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12731
lt_prog_compiler_static_CXX=
12735
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12736
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12737
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12738
echo $ECHO_N "(cached) $ECHO_C" >&6
12740
lt_cv_prog_compiler_c_o_CXX=no
12741
$rm -r conftest 2>/dev/null
12745
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12747
lt_compiler_flag="-o out/conftest2.$ac_objext"
12748
# Insert the option either (1) after the last *FLAGS variable, or
12749
# (2) before a word containing "conftest.", or (3) at the end.
12750
# Note that $ac_compile itself does not contain backslashes and begins
12751
# with a dollar sign (not a hyphen), so the echo should work correctly.
12752
lt_compile=`echo "$ac_compile" | $SED \
12753
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12754
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12755
-e 's:$: $lt_compiler_flag:'`
12756
(eval echo "\"\$as_me:12756: $lt_compile\"" >&5)
12757
(eval "$lt_compile" 2>out/conftest.err)
12759
cat out/conftest.err >&5
12760
echo "$as_me:12760: \$? = $ac_status" >&5
12761
if (exit $ac_status) && test -s out/conftest2.$ac_objext
12763
# The compiler can only warn and ignore the option if not recognized
12764
# So say no if there are warnings
12765
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12766
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12767
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12768
lt_cv_prog_compiler_c_o_CXX=yes
12773
# SGI C++ compiler will create directory out/ii_files/ for
12774
# template instantiation
12775
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12776
$rm out/* && rmdir out
12782
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12783
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12786
hard_links="nottested"
12787
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12788
# do not overwrite the value of need_locks provided by the user
12789
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12790
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12793
ln conftest.a conftest.b 2>/dev/null && hard_links=no
12795
ln conftest.a conftest.b 2>&5 || hard_links=no
12796
ln conftest.a conftest.b 2>/dev/null && hard_links=no
12797
{ echo "$as_me:$LINENO: result: $hard_links" >&5
12798
echo "${ECHO_T}$hard_links" >&6; }
12799
if test "$hard_links" = no; then
12800
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12801
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12808
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12809
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12811
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12814
# If we're using GNU nm, then we don't want the "-C" option.
12815
# -C means demangle to AIX nm, but means don't demangle with GNU nm
12816
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12817
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'
12819
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'
12823
export_symbols_cmds_CXX="$ltdll_cmds"
12826
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'
12828
linux* | k*bsd*-gnu)
12829
link_all_deplibs_CXX=no
12832
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12836
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12837
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12838
test "$ld_shlibs_CXX" = no && can_build_shared=no
12841
# Do we need to explicitly link libc?
12843
case "x$archive_cmds_need_lc_CXX" in
12845
# Assume -lc should be added
12846
archive_cmds_need_lc_CXX=yes
12848
if test "$enable_shared" = yes && test "$GCC" = yes; then
12849
case $archive_cmds_CXX in
12851
# FIXME: we may have to deal with multi-command sequences.
12854
# Test whether the compiler implicitly links with -lc since on some
12855
# systems, -lgcc has to come before -lc. If gcc already passes -lc
12856
# to ld, don't add -lc before -lgcc.
12857
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12858
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12860
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12862
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12863
(eval $ac_compile) 2>&5
12865
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12866
(exit $ac_status); } 2>conftest.err; then
12869
libobjs=conftest.$ac_objext
12871
wl=$lt_prog_compiler_wl_CXX
12872
pic_flag=$lt_prog_compiler_pic_CXX
12878
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12879
allow_undefined_flag_CXX=
12880
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12881
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12883
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12884
(exit $ac_status); }
12886
archive_cmds_need_lc_CXX=no
12888
archive_cmds_need_lc_CXX=yes
12890
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12892
cat conftest.err 1>&5
12895
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12896
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12903
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12904
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12905
library_names_spec=
12906
libname_spec='lib$name'
12910
postuninstall_cmds=
12914
shlibpath_overrides_runpath=unknown
12916
dynamic_linker="$host_os ld.so"
12917
sys_lib_dlsearch_path_spec="/lib /usr/lib"
12918
if test "$GCC" = yes; then
12919
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12920
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12921
# if the path contains ";" then we assume it to be the separator
12922
# otherwise default to the standard path separator (i.e. ":") - it is
12923
# assumed that no part of a normal pathname contains ";" but that should
12924
# okay in the real world where ";" in dirpaths is itself problematic.
12925
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12927
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12930
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12932
need_lib_prefix=unknown
12933
hardcode_into_libs=no
12935
# when you set need_version to no, make sure it does not cause -set_version
12936
# flags to be left without arguments
12937
need_version=unknown
12942
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12943
shlibpath_var=LIBPATH
12945
# AIX 3 has no versioning support, so we append a major version to the name.
12946
soname_spec='${libname}${release}${shared_ext}$major'
12953
hardcode_into_libs=yes
12954
if test "$host_cpu" = ia64; then
12955
# AIX 5 supports IA64
12956
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12957
shlibpath_var=LD_LIBRARY_PATH
12959
# With GCC up to 2.95.x, collect2 would create an import file
12960
# for dependence libraries. The import file would start with
12961
# the line `#! .'. This would cause the generated library to
12962
# depend on `.', always an invalid library. This was fixed in
12963
# development snapshots of GCC prior to 3.0.
12965
aix4 | aix4.[01] | aix4.[01].*)
12966
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12968
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12971
can_build_shared=no
12975
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12976
# soname into executable. Probably we can add versioning support to
12977
# collect2, so additional links can be useful in future.
12978
if test "$aix_use_runtimelinking" = yes; then
12979
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
12980
# instead of lib<name>.a to let people know that these are not
12981
# typical AIX shared libraries.
12982
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12984
# We preserve .a as extension for shared libraries through AIX4.2
12985
# and later when we are not doing run time linking.
12986
library_names_spec='${libname}${release}.a $libname.a'
12987
soname_spec='${libname}${release}${shared_ext}$major'
12989
shlibpath_var=LIBPATH
12994
library_names_spec='$libname.ixlibrary $libname.a'
12995
# Create ${libname}_ixlibrary.a entries in /sys/libs.
12996
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'
13000
library_names_spec='${libname}${shared_ext}'
13001
dynamic_linker="$host_os ld.so"
13002
shlibpath_var=LIBRARY_PATH
13008
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13009
soname_spec='${libname}${release}${shared_ext}$major'
13010
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13011
shlibpath_var=LD_LIBRARY_PATH
13012
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13013
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13014
# the default ld.so.conf also contains /usr/contrib/lib and
13015
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13016
# libtool to hard-code these into programs
13019
cygwin* | mingw* | pw32*)
13020
version_type=windows
13025
case $GCC,$host_os in
13026
yes,cygwin* | yes,mingw* | yes,pw32*)
13027
library_names_spec='$libname.dll.a'
13028
# DLL is installed to $(libdir)/../bin by postinstall_cmds
13029
postinstall_cmds='base_file=`basename \${file}`~
13030
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13031
dldir=$destdir/`dirname \$dlpath`~
13032
test -d \$dldir || mkdir -p \$dldir~
13033
$install_prog $dir/$dlname \$dldir/$dlname~
13034
chmod a+x \$dldir/$dlname'
13035
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13036
dlpath=$dir/\$dldll~
13038
shlibpath_overrides_runpath=yes
13042
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
13043
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13044
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13047
# MinGW DLLs use traditional 'lib' prefix
13048
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13049
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13050
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13051
# It is most probably a Windows format PATH printed by
13052
# mingw gcc, but we are running on Cygwin. Gcc prints its search
13053
# path with ; separators, and with drive letters. We can handle the
13054
# drive letters (cygwin fileutils understands them), so leave them,
13055
# especially as we might pass files found there to a mingw objdump,
13056
# which wouldn't understand a cygwinified path. Ahh.
13057
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13059
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13063
# pw32 DLLs use 'pw' prefix rather than 'lib'
13064
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13070
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13073
dynamic_linker='Win32 ld.exe'
13074
# FIXME: first we should search . and the directory the executable is in
13078
darwin* | rhapsody*)
13079
dynamic_linker="$host_os dyld"
13080
version_type=darwin
13083
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13084
soname_spec='${libname}${release}${major}$shared_ext'
13085
shlibpath_overrides_runpath=yes
13086
shlibpath_var=DYLD_LIBRARY_PATH
13087
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13088
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13089
if test "$GCC" = yes; then
13090
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"`
13092
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13094
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13101
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13102
soname_spec='${libname}${release}${shared_ext}$major'
13103
shlibpath_var=LD_LIBRARY_PATH
13110
freebsd* | dragonfly*)
13111
# DragonFly does not have aout. When/if they implement a new
13112
# versioning mechanism, adjust this.
13113
if test -x /usr/bin/objformat; then
13114
objformat=`/usr/bin/objformat`
13117
freebsd[123]*) objformat=aout ;;
13118
*) objformat=elf ;;
13121
version_type=freebsd-$objformat
13122
case $version_type in
13124
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13129
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13133
shlibpath_var=LD_LIBRARY_PATH
13136
shlibpath_overrides_runpath=yes
13138
freebsd3.[01]* | freebsdelf3.[01]*)
13139
shlibpath_overrides_runpath=yes
13140
hardcode_into_libs=yes
13142
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13143
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13144
shlibpath_overrides_runpath=no
13145
hardcode_into_libs=yes
13147
freebsd*) # from 4.6 on
13148
shlibpath_overrides_runpath=yes
13149
hardcode_into_libs=yes
13158
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13159
soname_spec='${libname}${release}${shared_ext}$major'
13160
shlibpath_var=LD_LIBRARY_PATH
13161
hardcode_into_libs=yes
13164
hpux9* | hpux10* | hpux11*)
13165
# Give a soname corresponding to the major version so that dld.sl refuses to
13166
# link against other versions.
13173
hardcode_into_libs=yes
13174
dynamic_linker="$host_os dld.so"
13175
shlibpath_var=LD_LIBRARY_PATH
13176
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13177
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13178
soname_spec='${libname}${release}${shared_ext}$major'
13179
if test "X$HPUX_IA64_MODE" = X32; then
13180
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13182
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13184
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13188
hardcode_into_libs=yes
13189
dynamic_linker="$host_os dld.sl"
13190
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13191
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13192
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13193
soname_spec='${libname}${release}${shared_ext}$major'
13194
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13195
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13199
dynamic_linker="$host_os dld.sl"
13200
shlibpath_var=SHLIB_PATH
13201
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13202
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13203
soname_spec='${libname}${release}${shared_ext}$major'
13206
# HP-UX runs *really* slowly unless shared libraries are mode 555.
13207
postinstall_cmds='chmod 555 $lib'
13214
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13215
soname_spec='${libname}${release}${shared_ext}$major'
13216
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13217
shlibpath_var=LD_LIBRARY_PATH
13218
shlibpath_overrides_runpath=no
13219
hardcode_into_libs=yes
13222
irix5* | irix6* | nonstopux*)
13224
nonstopux*) version_type=nonstopux ;;
13226
if test "$lt_cv_prog_gnu_ld" = yes; then
13234
soname_spec='${libname}${release}${shared_ext}$major'
13235
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13237
irix5* | nonstopux*)
13238
libsuff= shlibsuff=
13241
case $LD in # libtool.m4 will add one of these switches to LD
13242
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13243
libsuff= shlibsuff= libmagic=32-bit;;
13244
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13245
libsuff=32 shlibsuff=N32 libmagic=N32;;
13246
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13247
libsuff=64 shlibsuff=64 libmagic=64-bit;;
13248
*) libsuff= shlibsuff= libmagic=never-match;;
13252
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13253
shlibpath_overrides_runpath=no
13254
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13255
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13256
hardcode_into_libs=yes
13259
# No shared lib support for Linux oldld, aout, or coff.
13260
linux*oldld* | linux*aout* | linux*coff*)
13264
# This must be Linux ELF.
13265
linux* | k*bsd*-gnu)
13269
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13270
soname_spec='${libname}${release}${shared_ext}$major'
13271
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13272
shlibpath_var=LD_LIBRARY_PATH
13273
shlibpath_overrides_runpath=no
13274
# This implies no fast_install, which is unacceptable.
13275
# Some rework will be needed to allow for fast_install
13276
# before this can be enabled.
13277
hardcode_into_libs=yes
13279
# Append ld.so.conf contents to the search path
13280
if test -f /etc/ld.so.conf; then
13281
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' ' '`
13282
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13285
# We used to test for /lib/ld.so.1 and disable shared libraries on
13286
# powerpc, because MkLinux only supported shared libraries with the
13287
# GNU dynamic linker. Since this was broken with cross compilers,
13288
# most powerpc-linux boxes support dynamic linking these days and
13289
# people can always --disable-shared, the test was removed, and we
13290
# assume the GNU/Linux dynamic linker is in use.
13291
dynamic_linker='GNU/Linux ld.so'
13298
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13299
soname_spec='${libname}${release}${shared_ext}$major'
13300
shlibpath_var=LD_LIBRARY_PATH
13301
shlibpath_overrides_runpath=no
13302
hardcode_into_libs=yes
13303
dynamic_linker='NetBSD ld.elf_so'
13310
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13311
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13312
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13313
dynamic_linker='NetBSD (a.out) ld.so'
13315
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13316
soname_spec='${libname}${release}${shared_ext}$major'
13317
dynamic_linker='NetBSD ld.elf_so'
13319
shlibpath_var=LD_LIBRARY_PATH
13320
shlibpath_overrides_runpath=yes
13321
hardcode_into_libs=yes
13326
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13327
shlibpath_var=LD_LIBRARY_PATH
13328
shlibpath_overrides_runpath=yes
13335
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13336
soname_spec='${libname}${release}${shared_ext}$major'
13337
shlibpath_var=LD_LIBRARY_PATH
13338
shlibpath_overrides_runpath=yes
13343
sys_lib_dlsearch_path_spec="/usr/lib"
13345
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13347
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13348
*) need_version=no ;;
13350
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13351
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13352
shlibpath_var=LD_LIBRARY_PATH
13353
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13355
openbsd2.[89] | openbsd2.[89].*)
13356
shlibpath_overrides_runpath=no
13359
shlibpath_overrides_runpath=yes
13363
shlibpath_overrides_runpath=yes
13368
libname_spec='$name'
13371
library_names_spec='$libname${shared_ext} $libname.a'
13372
dynamic_linker='OS/2 ld.exe'
13373
shlibpath_var=LIBPATH
13376
osf3* | osf4* | osf5*)
13380
soname_spec='${libname}${release}${shared_ext}$major'
13381
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13382
shlibpath_var=LD_LIBRARY_PATH
13383
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13384
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13391
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13392
soname_spec='${libname}${release}${shared_ext}$major'
13393
shlibpath_var=LD_LIBRARY_PATH
13394
shlibpath_overrides_runpath=yes
13395
hardcode_into_libs=yes
13396
# ldd complains unless libraries are executable
13397
postinstall_cmds='chmod +x $lib'
13402
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13403
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13404
shlibpath_var=LD_LIBRARY_PATH
13405
shlibpath_overrides_runpath=yes
13406
if test "$with_gnu_ld" = yes; then
13414
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13415
soname_spec='${libname}${release}${shared_ext}$major'
13416
shlibpath_var=LD_LIBRARY_PATH
13417
case $host_vendor in
13419
shlibpath_overrides_runpath=no
13421
export_dynamic_flag_spec='${wl}-Blargedynsym'
13422
runpath_var=LD_RUN_PATH
13430
shlibpath_overrides_runpath=no
13431
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13437
if test -d /usr/nec ;then
13439
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13440
soname_spec='$libname${shared_ext}.$major'
13441
shlibpath_var=LD_LIBRARY_PATH
13445
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13446
version_type=freebsd-elf
13449
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13450
soname_spec='${libname}${release}${shared_ext}$major'
13451
shlibpath_var=LD_LIBRARY_PATH
13452
hardcode_into_libs=yes
13453
if test "$with_gnu_ld" = yes; then
13454
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13455
shlibpath_overrides_runpath=no
13457
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13458
shlibpath_overrides_runpath=yes
13461
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13465
sys_lib_dlsearch_path_spec='/usr/lib'
13470
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13471
soname_spec='${libname}${release}${shared_ext}$major'
13472
shlibpath_var=LD_LIBRARY_PATH
13479
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13480
echo "${ECHO_T}$dynamic_linker" >&6; }
13481
test "$dynamic_linker" = no && can_build_shared=no
13483
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13484
if test "$GCC" = yes; then
13485
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13488
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13489
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13490
hardcode_action_CXX=
13491
if test -n "$hardcode_libdir_flag_spec_CXX" || \
13492
test -n "$runpath_var_CXX" || \
13493
test "X$hardcode_automatic_CXX" = "Xyes" ; then
13495
# We can hardcode non-existant directories.
13496
if test "$hardcode_direct_CXX" != no &&
13497
# If the only mechanism to avoid hardcoding is shlibpath_var, we
13498
# have to relink, otherwise we might link with an installed library
13499
# when we should be linking with a yet-to-be-installed one
13500
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13501
test "$hardcode_minus_L_CXX" != no; then
13502
# Linking always hardcodes the temporary library directory.
13503
hardcode_action_CXX=relink
13505
# We can link without hardcoding, and we can hardcode nonexisting dirs.
13506
hardcode_action_CXX=immediate
13509
# We cannot hardcode anything, or else we can only hardcode existing
13511
hardcode_action_CXX=unsupported
13513
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13514
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13516
if test "$hardcode_action_CXX" = relink; then
13517
# Fast installation is not supported
13518
enable_fast_install=no
13519
elif test "$shlibpath_overrides_runpath" = yes ||
13520
test "$enable_shared" = no; then
13521
# Fast installation is not necessary
13522
enable_fast_install=needless
13526
# The else clause should only fire when bootstrapping the
13527
# libtool distribution, otherwise you forgot to ship ltmain.sh
13528
# with your package, and you will get complaints that there are
13529
# no rules to generate ltmain.sh.
13530
if test -f "$ltmain"; then
13531
# See if we are running on zsh, and set the options which allow our commands through
13532
# without removal of \ escapes.
13533
if test -n "${ZSH_VERSION+set}" ; then
13534
setopt NO_GLOB_SUBST
13536
# Now quote all the things that may contain metacharacters while being
13537
# careful not to overquote the AC_SUBSTed values. We take copies of the
13538
# variables and quote the copies for generation of the libtool script.
13539
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13541
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13542
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13543
deplibs_check_method reload_flag reload_cmds need_locks \
13544
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13545
lt_cv_sys_global_symbol_to_c_name_address \
13546
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13547
old_postinstall_cmds old_postuninstall_cmds \
13551
lt_prog_compiler_wl_CXX \
13552
lt_prog_compiler_pic_CXX \
13553
lt_prog_compiler_static_CXX \
13554
lt_prog_compiler_no_builtin_flag_CXX \
13555
export_dynamic_flag_spec_CXX \
13556
thread_safe_flag_spec_CXX \
13557
whole_archive_flag_spec_CXX \
13558
enable_shared_with_static_runtimes_CXX \
13559
old_archive_cmds_CXX \
13560
old_archive_from_new_cmds_CXX \
13561
predep_objects_CXX \
13562
postdep_objects_CXX \
13565
compiler_lib_search_path_CXX \
13567
archive_expsym_cmds_CXX \
13568
postinstall_cmds_CXX \
13569
postuninstall_cmds_CXX \
13570
old_archive_from_expsyms_cmds_CXX \
13571
allow_undefined_flag_CXX \
13572
no_undefined_flag_CXX \
13573
export_symbols_cmds_CXX \
13574
hardcode_libdir_flag_spec_CXX \
13575
hardcode_libdir_flag_spec_ld_CXX \
13576
hardcode_libdir_separator_CXX \
13577
hardcode_automatic_CXX \
13579
module_expsym_cmds_CXX \
13580
lt_cv_prog_compiler_c_o_CXX \
13581
exclude_expsyms_CXX \
13582
include_expsyms_CXX; do
13585
old_archive_cmds_CXX | \
13586
old_archive_from_new_cmds_CXX | \
13587
archive_cmds_CXX | \
13588
archive_expsym_cmds_CXX | \
13589
module_cmds_CXX | \
13590
module_expsym_cmds_CXX | \
13591
old_archive_from_expsyms_cmds_CXX | \
13592
export_symbols_cmds_CXX | \
13593
extract_expsyms_cmds | reload_cmds | finish_cmds | \
13594
postinstall_cmds | postuninstall_cmds | \
13595
old_postinstall_cmds | old_postuninstall_cmds | \
13596
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13597
# Double-quote double-evaled strings.
13598
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13601
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13607
*'\$0 --fallback-echo"')
13608
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13614
cat <<__EOF__ >> "$cfgfile"
13615
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13617
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13619
# Shell to use when invoking shell scripts.
13622
# Whether or not to build shared libraries.
13623
build_libtool_libs=$enable_shared
13625
# Whether or not to build static libraries.
13626
build_old_libs=$enable_static
13628
# Whether or not to add -lc for building shared libraries.
13629
build_libtool_need_lc=$archive_cmds_need_lc_CXX
13631
# Whether or not to disallow shared libs when runtime libs are static
13632
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13634
# Whether or not to optimize for fast installation.
13635
fast_install=$enable_fast_install
13638
host_alias=$host_alias
13642
# The build system.
13643
build_alias=$build_alias
13647
# An echo program that does not interpret backslashes.
13652
AR_FLAGS=$lt_AR_FLAGS
13657
# LTCC compiler flags.
13658
LTCFLAGS=$lt_LTCFLAGS
13660
# A language-specific compiler.
13661
CC=$lt_compiler_CXX
13663
# Is the compiler the GNU C compiler?
13669
# The linker used to build libraries.
13672
# Whether we need hard or soft links.
13675
# A BSD-compatible nm program.
13678
# A symbol stripping program
13681
# Used to examine libraries when file_magic_cmd begins "file"
13682
MAGIC_CMD=$MAGIC_CMD
13684
# Used on cygwin: DLL creation program.
13687
# Used on cygwin: object dumper.
13690
# Used on cygwin: assembler.
13693
# The name of the directory that contains temporary libtool files.
13696
# How to create reloadable object files.
13697
reload_flag=$lt_reload_flag
13698
reload_cmds=$lt_reload_cmds
13700
# How to pass a linker flag through the compiler.
13701
wl=$lt_lt_prog_compiler_wl_CXX
13703
# Object file suffix (normally "o").
13704
objext="$ac_objext"
13706
# Old archive suffix (normally "a").
13709
# Shared library suffix (normally ".so").
13710
shrext_cmds='$shrext_cmds'
13712
# Executable file suffix (normally "").
13715
# Additional compiler flags for building library objects.
13716
pic_flag=$lt_lt_prog_compiler_pic_CXX
13719
# What is the maximum length of a command?
13720
max_cmd_len=$lt_cv_sys_max_cmd_len
13722
# Does compiler simultaneously support -c and -o options?
13723
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13725
# Must we lock files when doing compilation?
13726
need_locks=$lt_need_locks
13728
# Do we need the lib prefix for modules?
13729
need_lib_prefix=$need_lib_prefix
13731
# Do we need a version for libraries?
13732
need_version=$need_version
13734
# Whether dlopen is supported.
13735
dlopen_support=$enable_dlopen
13737
# Whether dlopen of programs is supported.
13738
dlopen_self=$enable_dlopen_self
13740
# Whether dlopen of statically linked programs is supported.
13741
dlopen_self_static=$enable_dlopen_self_static
13743
# Compiler flag to prevent dynamic linking.
13744
link_static_flag=$lt_lt_prog_compiler_static_CXX
13746
# Compiler flag to turn off builtin functions.
13747
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13749
# Compiler flag to allow reflexive dlopens.
13750
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13752
# Compiler flag to generate shared objects directly from archives.
13753
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13755
# Compiler flag to generate thread-safe objects.
13756
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13758
# Library versioning type.
13759
version_type=$version_type
13761
# Format of library name prefix.
13762
libname_spec=$lt_libname_spec
13764
# List of archive names. First name is the real one, the rest are links.
13765
# The last name is the one that the linker finds with -lNAME.
13766
library_names_spec=$lt_library_names_spec
13768
# The coded name of the library, if different from the real name.
13769
soname_spec=$lt_soname_spec
13771
# Commands used to build and install an old-style archive.
13773
old_archive_cmds=$lt_old_archive_cmds_CXX
13774
old_postinstall_cmds=$lt_old_postinstall_cmds
13775
old_postuninstall_cmds=$lt_old_postuninstall_cmds
13777
# Create an old-style archive from a shared archive.
13778
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13780
# Create a temporary old-style archive to link instead of a shared archive.
13781
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13783
# Commands used to build and install a shared archive.
13784
archive_cmds=$lt_archive_cmds_CXX
13785
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13786
postinstall_cmds=$lt_postinstall_cmds
13787
postuninstall_cmds=$lt_postuninstall_cmds
13789
# Commands used to build a loadable module (assumed same as above if empty)
13790
module_cmds=$lt_module_cmds_CXX
13791
module_expsym_cmds=$lt_module_expsym_cmds_CXX
13793
# Commands to strip libraries.
13794
old_striplib=$lt_old_striplib
13795
striplib=$lt_striplib
13797
# Dependencies to place before the objects being linked to create a
13799
predep_objects=$lt_predep_objects_CXX
13801
# Dependencies to place after the objects being linked to create a
13803
postdep_objects=$lt_postdep_objects_CXX
13805
# Dependencies to place before the objects being linked to create a
13807
predeps=$lt_predeps_CXX
13809
# Dependencies to place after the objects being linked to create a
13811
postdeps=$lt_postdeps_CXX
13813
# The library search path used internally by the compiler when linking
13814
# a shared library.
13815
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13817
# Method to check whether dependent libraries are shared objects.
13818
deplibs_check_method=$lt_deplibs_check_method
13820
# Command to use when deplibs_check_method == file_magic.
13821
file_magic_cmd=$lt_file_magic_cmd
13823
# Flag that allows shared libraries with undefined symbols to be built.
13824
allow_undefined_flag=$lt_allow_undefined_flag_CXX
13826
# Flag that forces no undefined symbols.
13827
no_undefined_flag=$lt_no_undefined_flag_CXX
13829
# Commands used to finish a libtool library installation in a directory.
13830
finish_cmds=$lt_finish_cmds
13832
# Same as above, but a single script fragment to be evaled but not shown.
13833
finish_eval=$lt_finish_eval
13835
# Take the output of nm and produce a listing of raw symbols and C names.
13836
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13838
# Transform the output of nm in a proper C declaration
13839
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13841
# Transform the output of nm in a C name address pair
13842
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13844
# This is the shared library runtime path variable.
13845
runpath_var=$runpath_var
13847
# This is the shared library path variable.
13848
shlibpath_var=$shlibpath_var
13850
# Is shlibpath searched before the hard-coded library search path?
13851
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13853
# How to hardcode a shared library path into an executable.
13854
hardcode_action=$hardcode_action_CXX
13856
# Whether we should hardcode library paths into libraries.
13857
hardcode_into_libs=$hardcode_into_libs
13859
# Flag to hardcode \$libdir into a binary during linking.
13860
# This must work even if \$libdir does not exist.
13861
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13863
# If ld is used when linking, flag to hardcode \$libdir into
13864
# a binary during linking. This must work even if \$libdir does
13866
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13868
# Whether we need a single -rpath flag with a separated argument.
13869
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13871
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13872
# resulting binary.
13873
hardcode_direct=$hardcode_direct_CXX
13875
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13876
# resulting binary.
13877
hardcode_minus_L=$hardcode_minus_L_CXX
13879
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13880
# the resulting binary.
13881
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13883
# Set to yes if building a shared library automatically hardcodes DIR into the library
13884
# and all subsequent libraries and executables linked against it.
13885
hardcode_automatic=$hardcode_automatic_CXX
13887
# Variables whose values should be saved in libtool wrapper scripts and
13888
# restored at relink time.
13889
variables_saved_for_relink="$variables_saved_for_relink"
13891
# Whether libtool must link a program against all its dependency libraries.
13892
link_all_deplibs=$link_all_deplibs_CXX
13894
# Compile-time system search path for libraries
13895
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13897
# Run-time system search path for libraries
13898
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13900
# Fix the shell variable \$srcfile for the compiler.
13901
fix_srcfile_path="$fix_srcfile_path_CXX"
13903
# Set to yes if exported symbols are required.
13904
always_export_symbols=$always_export_symbols_CXX
13906
# The commands to list exported symbols.
13907
export_symbols_cmds=$lt_export_symbols_cmds_CXX
13909
# The commands to extract the exported symbol list from a shared archive.
13910
extract_expsyms_cmds=$lt_extract_expsyms_cmds
13912
# Symbols that should not be listed in the preloaded symbols.
13913
exclude_expsyms=$lt_exclude_expsyms_CXX
13915
# Symbols that must always be exported.
13916
include_expsyms=$lt_include_expsyms_CXX
13918
# ### END LIBTOOL TAG CONFIG: $tagname
13924
# If there is no Makefile yet, we rely on a make rule to execute
13925
# `config.status --recheck' to rerun these tests and create the
13926
# libtool script then.
13927
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13928
if test -f "$ltmain_in"; then
13929
test -f Makefile && make "$ltmain"
13935
ac_cpp='$CPP $CPPFLAGS'
13936
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13937
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13938
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13944
with_gnu_ldcxx=$with_gnu_ld
13945
with_gnu_ld=$lt_save_with_gnu_ld
13946
lt_cv_path_LDCXX=$lt_cv_path_LD
13947
lt_cv_path_LD=$lt_save_path_LD
13948
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13949
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13957
if test -n "$F77" && test "X$F77" != "Xno"; then
13960
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13961
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13962
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13965
archive_cmds_need_lc_F77=no
13966
allow_undefined_flag_F77=
13967
always_export_symbols_F77=no
13968
archive_expsym_cmds_F77=
13969
export_dynamic_flag_spec_F77=
13970
hardcode_direct_F77=no
13971
hardcode_libdir_flag_spec_F77=
13972
hardcode_libdir_flag_spec_ld_F77=
13973
hardcode_libdir_separator_F77=
13974
hardcode_minus_L_F77=no
13975
hardcode_automatic_F77=no
13977
module_expsym_cmds_F77=
13978
link_all_deplibs_F77=unknown
13979
old_archive_cmds_F77=$old_archive_cmds
13980
no_undefined_flag_F77=
13981
whole_archive_flag_spec_F77=
13982
enable_shared_with_static_runtimes_F77=no
13984
# Source file extension for f77 test sources.
13987
# Object file extension for compiled f77 test sources.
13991
# Code to be used in simple compile tests
13992
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13994
# Code to be used in simple link tests
13995
lt_simple_link_test_code=" program t\n end\n"
13997
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13999
# If no C compiler was specified, use CC.
14002
# If no C compiler flags were specified, use CFLAGS.
14003
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14005
# Allow CC to be a program name with arguments.
14009
# save warnings/boilerplate of simple test code
14010
ac_outfile=conftest.$ac_objext
14011
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14012
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14013
_lt_compiler_boilerplate=`cat conftest.err`
14016
ac_outfile=conftest.$ac_objext
14017
printf "$lt_simple_link_test_code" >conftest.$ac_ext
14018
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14019
_lt_linker_boilerplate=`cat conftest.err`
14023
# Allow CC to be a program name with arguments.
14028
for cc_temp in $compiler""; do
14030
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14031
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14036
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14039
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14040
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14041
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14042
echo "${ECHO_T}$can_build_shared" >&6; }
14044
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14045
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14046
test "$can_build_shared" = "no" && enable_shared=no
14048
# On AIX, shared libraries and static libraries use the same namespace, and
14049
# are all built from PIC.
14052
test "$enable_shared" = yes && enable_static=no
14053
if test -n "$RANLIB"; then
14054
archive_cmds="$archive_cmds~\$RANLIB \$lib"
14055
postinstall_cmds='$RANLIB $lib'
14059
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14060
test "$enable_shared" = yes && enable_static=no
14064
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14065
echo "${ECHO_T}$enable_shared" >&6; }
14067
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14068
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14069
# Make sure either enable_shared or enable_static is yes.
14070
test "$enable_shared" = yes || enable_static=yes
14071
{ echo "$as_me:$LINENO: result: $enable_static" >&5
14072
echo "${ECHO_T}$enable_static" >&6; }
14077
lt_prog_compiler_wl_F77=
14078
lt_prog_compiler_pic_F77=
14079
lt_prog_compiler_static_F77=
14081
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14082
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14084
if test "$GCC" = yes; then
14085
lt_prog_compiler_wl_F77='-Wl,'
14086
lt_prog_compiler_static_F77='-static'
14090
# All AIX code is PIC.
14091
if test "$host_cpu" = ia64; then
14092
# AIX 5 now supports IA64 processor
14093
lt_prog_compiler_static_F77='-Bstatic'
14098
# FIXME: we need at least 68020 code to build shared libraries, but
14099
# adding the `-m68020' flag to GCC prevents building anything better,
14101
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14104
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14105
# PIC is the default for these OSes.
14108
mingw* | pw32* | os2*)
14109
# This hack is so that the source file can tell whether it is being
14110
# built for inclusion in a dll (and should export symbols for example).
14111
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14114
darwin* | rhapsody*)
14115
# PIC is the default on this platform
14116
# Common symbols not allowed in MH_DYLIB files
14117
lt_prog_compiler_pic_F77='-fno-common'
14121
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
14122
# Instead, we relocate shared libraries at runtime.
14126
# Just because we use GCC doesn't mean we suddenly get shared libraries
14127
# on systems that don't support them.
14128
lt_prog_compiler_can_build_shared_F77=no
14133
if test -d /usr/nec; then
14134
lt_prog_compiler_pic_F77=-Kconform_pic
14139
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14140
# not for PA HP-UX.
14146
lt_prog_compiler_pic_F77='-fPIC'
14152
lt_prog_compiler_pic_F77='-fPIC'
14156
# PORTME Check for flag to pass linker flags through the system compiler.
14159
lt_prog_compiler_wl_F77='-Wl,'
14160
if test "$host_cpu" = ia64; then
14161
# AIX 5 now supports IA64 processor
14162
lt_prog_compiler_static_F77='-Bstatic'
14164
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14168
# PIC is the default on this platform
14169
# Common symbols not allowed in MH_DYLIB files
14170
case $cc_basename in
14172
lt_prog_compiler_pic_F77='-qnocommon'
14173
lt_prog_compiler_wl_F77='-Wl,'
14178
mingw* | pw32* | os2*)
14179
# This hack is so that the source file can tell whether it is being
14180
# built for inclusion in a dll (and should export symbols for example).
14181
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14184
hpux9* | hpux10* | hpux11*)
14185
lt_prog_compiler_wl_F77='-Wl,'
14186
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14187
# not for PA HP-UX.
14193
lt_prog_compiler_pic_F77='+Z'
14196
# Is there a better lt_prog_compiler_static that works with the bundled CC?
14197
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14200
irix5* | irix6* | nonstopux*)
14201
lt_prog_compiler_wl_F77='-Wl,'
14202
# PIC (with -KPIC) is the default.
14203
lt_prog_compiler_static_F77='-non_shared'
14207
lt_prog_compiler_pic_F77='-KPIC'
14208
lt_prog_compiler_static_F77='-Bstatic'
14211
linux* | k*bsd*-gnu)
14212
case $cc_basename in
14214
lt_prog_compiler_wl_F77='-Wl,'
14215
lt_prog_compiler_pic_F77='-KPIC'
14216
lt_prog_compiler_static_F77='-static'
14218
pgcc* | pgf77* | pgf90* | pgf95*)
14219
# Portland Group compilers (*not* the Pentium gcc compiler,
14220
# which looks to be a dead project)
14221
lt_prog_compiler_wl_F77='-Wl,'
14222
lt_prog_compiler_pic_F77='-fpic'
14223
lt_prog_compiler_static_F77='-Bstatic'
14226
lt_prog_compiler_wl_F77='-Wl,'
14227
# All Alpha code is PIC.
14228
lt_prog_compiler_static_F77='-non_shared'
14233
osf3* | osf4* | osf5*)
14234
lt_prog_compiler_wl_F77='-Wl,'
14235
# All OSF/1 code is PIC.
14236
lt_prog_compiler_static_F77='-non_shared'
14240
lt_prog_compiler_pic_F77='-KPIC'
14241
lt_prog_compiler_static_F77='-Bstatic'
14242
case $cc_basename in
14243
f77* | f90* | f95*)
14244
lt_prog_compiler_wl_F77='-Qoption ld ';;
14246
lt_prog_compiler_wl_F77='-Wl,';;
14251
lt_prog_compiler_wl_F77='-Qoption ld '
14252
lt_prog_compiler_pic_F77='-PIC'
14253
lt_prog_compiler_static_F77='-Bstatic'
14256
sysv4 | sysv4.2uw2* | sysv4.3*)
14257
lt_prog_compiler_wl_F77='-Wl,'
14258
lt_prog_compiler_pic_F77='-KPIC'
14259
lt_prog_compiler_static_F77='-Bstatic'
14263
if test -d /usr/nec ;then
14264
lt_prog_compiler_pic_F77='-Kconform_pic'
14265
lt_prog_compiler_static_F77='-Bstatic'
14269
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14270
lt_prog_compiler_wl_F77='-Wl,'
14271
lt_prog_compiler_pic_F77='-KPIC'
14272
lt_prog_compiler_static_F77='-Bstatic'
14276
lt_prog_compiler_wl_F77='-Wl,'
14277
lt_prog_compiler_can_build_shared_F77=no
14281
lt_prog_compiler_pic_F77='-pic'
14282
lt_prog_compiler_static_F77='-Bstatic'
14286
lt_prog_compiler_can_build_shared_F77=no
14291
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14292
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14295
# Check to make sure the PIC flag actually works.
14297
if test -n "$lt_prog_compiler_pic_F77"; then
14299
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14300
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14301
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14302
echo $ECHO_N "(cached) $ECHO_C" >&6
14304
lt_prog_compiler_pic_works_F77=no
14305
ac_outfile=conftest.$ac_objext
14306
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14307
lt_compiler_flag="$lt_prog_compiler_pic_F77"
14308
# Insert the option either (1) after the last *FLAGS variable, or
14309
# (2) before a word containing "conftest.", or (3) at the end.
14310
# Note that $ac_compile itself does not contain backslashes and begins
14311
# with a dollar sign (not a hyphen), so the echo should work correctly.
14312
# The option is referenced via a variable to avoid confusing sed.
14313
lt_compile=`echo "$ac_compile" | $SED \
14314
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14315
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14316
-e 's:$: $lt_compiler_flag:'`
14317
(eval echo "\"\$as_me:14317: $lt_compile\"" >&5)
14318
(eval "$lt_compile" 2>conftest.err)
14320
cat conftest.err >&5
14321
echo "$as_me:14321: \$? = $ac_status" >&5
14322
if (exit $ac_status) && test -s "$ac_outfile"; then
14323
# The compiler can only warn and ignore the option if not recognized
14324
# So say no if there are warnings other than the usual output.
14325
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14326
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14327
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14328
lt_prog_compiler_pic_works_F77=yes
14334
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14335
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14337
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14338
case $lt_prog_compiler_pic_F77 in
14340
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14343
lt_prog_compiler_pic_F77=
14344
lt_prog_compiler_can_build_shared_F77=no
14349
# For platforms which do not support PIC, -DPIC is meaningless:
14351
lt_prog_compiler_pic_F77=
14354
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14359
# Check to make sure the static flag actually works.
14361
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14362
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14363
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14364
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14365
echo $ECHO_N "(cached) $ECHO_C" >&6
14367
lt_prog_compiler_static_works_F77=no
14368
save_LDFLAGS="$LDFLAGS"
14369
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14370
printf "$lt_simple_link_test_code" > conftest.$ac_ext
14371
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14372
# The linker can only warn and ignore the option if not recognized
14373
# So say no if there are warnings
14374
if test -s conftest.err; then
14375
# Append any errors to the config.log.
14376
cat conftest.err 1>&5
14377
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14378
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14379
if diff conftest.exp conftest.er2 >/dev/null; then
14380
lt_prog_compiler_static_works_F77=yes
14383
lt_prog_compiler_static_works_F77=yes
14387
LDFLAGS="$save_LDFLAGS"
14390
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14391
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14393
if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14396
lt_prog_compiler_static_F77=
14400
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14401
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14402
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14403
echo $ECHO_N "(cached) $ECHO_C" >&6
14405
lt_cv_prog_compiler_c_o_F77=no
14406
$rm -r conftest 2>/dev/null
14410
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14412
lt_compiler_flag="-o out/conftest2.$ac_objext"
14413
# Insert the option either (1) after the last *FLAGS variable, or
14414
# (2) before a word containing "conftest.", or (3) at the end.
14415
# Note that $ac_compile itself does not contain backslashes and begins
14416
# with a dollar sign (not a hyphen), so the echo should work correctly.
14417
lt_compile=`echo "$ac_compile" | $SED \
14418
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14419
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14420
-e 's:$: $lt_compiler_flag:'`
14421
(eval echo "\"\$as_me:14421: $lt_compile\"" >&5)
14422
(eval "$lt_compile" 2>out/conftest.err)
14424
cat out/conftest.err >&5
14425
echo "$as_me:14425: \$? = $ac_status" >&5
14426
if (exit $ac_status) && test -s out/conftest2.$ac_objext
14428
# The compiler can only warn and ignore the option if not recognized
14429
# So say no if there are warnings
14430
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14431
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14432
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14433
lt_cv_prog_compiler_c_o_F77=yes
14438
# SGI C++ compiler will create directory out/ii_files/ for
14439
# template instantiation
14440
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14441
$rm out/* && rmdir out
14447
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14448
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14451
hard_links="nottested"
14452
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14453
# do not overwrite the value of need_locks provided by the user
14454
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14455
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14458
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14460
ln conftest.a conftest.b 2>&5 || hard_links=no
14461
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14462
{ echo "$as_me:$LINENO: result: $hard_links" >&5
14463
echo "${ECHO_T}$hard_links" >&6; }
14464
if test "$hard_links" = no; then
14465
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14466
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14473
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14474
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14477
allow_undefined_flag_F77=
14478
enable_shared_with_static_runtimes_F77=no
14480
archive_expsym_cmds_F77=
14481
old_archive_From_new_cmds_F77=
14482
old_archive_from_expsyms_cmds_F77=
14483
export_dynamic_flag_spec_F77=
14484
whole_archive_flag_spec_F77=
14485
thread_safe_flag_spec_F77=
14486
hardcode_libdir_flag_spec_F77=
14487
hardcode_libdir_flag_spec_ld_F77=
14488
hardcode_libdir_separator_F77=
14489
hardcode_direct_F77=no
14490
hardcode_minus_L_F77=no
14491
hardcode_shlibpath_var_F77=unsupported
14492
link_all_deplibs_F77=unknown
14493
hardcode_automatic_F77=no
14495
module_expsym_cmds_F77=
14496
always_export_symbols_F77=no
14497
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14498
# include_expsyms should be a list of space-separated symbols to be *always*
14499
# included in the symbol list
14500
include_expsyms_F77=
14501
# exclude_expsyms can be an extended regexp of symbols to exclude
14502
# it will be wrapped by ` (' and `)$', so one must not match beginning or
14503
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14504
# as well as any symbol that contains `d'.
14505
exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14506
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14507
# platforms (ab)use it in PIC code, but their linkers get confused if
14508
# the symbol is explicitly referenced. Since portable code cannot
14509
# rely on this symbol name, it's probably fine to never include it in
14510
# preloaded symbol tables.
14511
extract_expsyms_cmds=
14512
# Just being paranoid about ensuring that cc_basename is set.
14513
for cc_temp in $compiler""; do
14515
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14516
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14521
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14524
cygwin* | mingw* | pw32*)
14525
# FIXME: the MSVC++ port hasn't been tested in a loooong time
14526
# When not using gcc, we currently assume that we are using
14527
# Microsoft Visual C++.
14528
if test "$GCC" != yes; then
14533
# we just hope/assume this is gcc and not c89 (= MSVC++)
14542
if test "$with_gnu_ld" = yes; then
14543
# If archive_cmds runs LD, not CC, wlarc should be empty
14546
# Set some defaults for GNU ld with shared library support. These
14547
# are reset later if shared libraries are not supported. Putting them
14548
# here allows them to be overridden if necessary.
14549
runpath_var=LD_RUN_PATH
14550
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14551
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14552
# ancient GNU ld didn't support --whole-archive et. al.
14553
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14554
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14556
whole_archive_flag_spec_F77=
14558
supports_anon_versioning=no
14559
case `$LD -v 2>/dev/null` in
14560
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14561
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14562
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14563
*\ 2.11.*) ;; # other 2.11 versions
14564
*) supports_anon_versioning=yes ;;
14567
# See if GNU ld supports shared libraries.
14569
aix3* | aix4* | aix5*)
14570
# On AIX/PPC, the GNU linker is very broken
14571
if test "$host_cpu" != ia64; then
14575
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14576
*** to be unable to reliably create shared libraries on AIX.
14577
*** Therefore, libtool is disabling shared libraries support. If you
14578
*** really care for shared libraries, you may want to modify your PATH
14579
*** so that a non-GNU linker is found, and then restart.
14586
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)'
14587
hardcode_libdir_flag_spec_F77='-L$libdir'
14588
hardcode_minus_L_F77=yes
14590
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14591
# that the semantics of dynamic libraries on AmigaOS, at least up
14592
# to version 4, is to share data among multiple programs linked
14593
# with the same dynamic library. Since this doesn't match the
14594
# behavior of shared libraries on other platforms, we can't use
14600
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14601
allow_undefined_flag_F77=unsupported
14602
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14603
# support --undefined. This deserves some investigation. FIXME
14604
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14610
cygwin* | mingw* | pw32*)
14611
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14612
# as there is no search path for DLLs.
14613
hardcode_libdir_flag_spec_F77='-L$libdir'
14614
allow_undefined_flag_F77=unsupported
14615
always_export_symbols_F77=no
14616
enable_shared_with_static_runtimes_F77=yes
14617
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14619
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14620
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14621
# If the export-symbols file already is a .def file (1st line
14622
# is EXPORTS), use it as is; otherwise, prepend...
14623
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14624
cp $export_symbols $output_objdir/$soname.def;
14626
echo EXPORTS > $output_objdir/$soname.def;
14627
cat $export_symbols >> $output_objdir/$soname.def;
14629
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14636
hardcode_direct_F77=no
14637
hardcode_shlibpath_var_F77=no
14638
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14639
export_dynamic_flag_spec_F77='${wl}-E'
14640
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14641
# Instead, shared libraries are loaded at an image base (0x10000000 by
14642
# default) and relocated if they conflict, which is a slow very memory
14643
# consuming and fragmenting process. To avoid this, we pick a random,
14644
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14645
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
14646
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'
14647
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'
14650
linux* | k*bsd*-gnu)
14651
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14653
case $cc_basename,$host_cpu in
14654
pgcc*) # Portland Group C compiler
14655
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'
14656
tmp_addflag=' $pic_flag'
14658
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14659
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'
14660
tmp_addflag=' $pic_flag -Mnomain' ;;
14661
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14662
tmp_addflag=' -i_dynamic' ;;
14663
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14664
tmp_addflag=' -i_dynamic -nofor_main' ;;
14665
ifc* | ifort*) # Intel Fortran compiler
14666
tmp_addflag=' -nofor_main' ;;
14668
archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14670
if test $supports_anon_versioning = yes; then
14671
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14672
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14673
$echo "local: *; };" >> $output_objdir/$libname.ver~
14674
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14676
link_all_deplibs_F77=no
14682
netbsd* | netbsdelf*-gnu)
14683
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14684
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14687
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14688
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14693
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14697
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14698
*** create shared libraries on Solaris systems. Therefore, libtool
14699
*** is disabling shared libraries support. We urge you to upgrade GNU
14700
*** binutils to release 2.9.1 or newer. Another option is to modify
14701
*** your PATH or compiler configuration so that the native linker is
14702
*** used, and then restart.
14705
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14706
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14707
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14713
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14714
case `$LD -v 2>&1` in
14715
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14719
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14720
*** reliably create shared libraries on SCO systems. Therefore, libtool
14721
*** is disabling shared libraries support. We urge you to upgrade GNU
14722
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14723
*** your PATH or compiler configuration so that the native linker is
14724
*** used, and then restart.
14729
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14730
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14731
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14732
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14741
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14743
hardcode_direct_F77=yes
14744
hardcode_shlibpath_var_F77=no
14748
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14749
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14750
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14757
if test "$ld_shlibs_F77" = no; then
14759
hardcode_libdir_flag_spec_F77=
14760
export_dynamic_flag_spec_F77=
14761
whole_archive_flag_spec_F77=
14764
# PORTME fill in a description of your system's linker (not GNU ld)
14767
allow_undefined_flag_F77=unsupported
14768
always_export_symbols_F77=yes
14769
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'
14770
# Note: this linker hardcodes the directories in LIBPATH if there
14771
# are no directories specified by -L.
14772
hardcode_minus_L_F77=yes
14773
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14774
# Neither direct hardcoding nor static linking is supported with a
14776
hardcode_direct_F77=unsupported
14781
if test "$host_cpu" = ia64; then
14782
# On IA64, the linker does run time linking by default, so we don't
14783
# have to do anything special.
14784
aix_use_runtimelinking=no
14785
exp_sym_flag='-Bexport'
14788
# If we're using GNU nm, then we don't want the "-C" option.
14789
# -C means demangle to AIX nm, but means don't demangle with GNU nm
14790
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14791
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'
14793
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'
14795
aix_use_runtimelinking=no
14797
# Test if we are trying to use run time linking or normal
14798
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14799
# need to do runtime linking.
14800
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14801
for ld_flag in $LDFLAGS; do
14802
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14803
aix_use_runtimelinking=yes
14810
exp_sym_flag='-bexport'
14811
no_entry_flag='-bnoentry'
14814
# When large executables or shared objects are built, AIX ld can
14815
# have problems creating the table of contents. If linking a library
14816
# or program results in "error TOC overflow" add -mminimal-toc to
14817
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14818
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14820
archive_cmds_F77=''
14821
hardcode_direct_F77=yes
14822
hardcode_libdir_separator_F77=':'
14823
link_all_deplibs_F77=yes
14825
if test "$GCC" = yes; then
14826
case $host_os in aix4.[012]|aix4.[012].*)
14827
# We only want to do this on AIX 4.2 and lower, the check
14828
# below for broken collect2 doesn't work under 4.3+
14829
collect2name=`${CC} -print-prog-name=collect2`
14830
if test -f "$collect2name" && \
14831
strings "$collect2name" | grep resolve_lib_name >/dev/null
14833
# We have reworked collect2
14834
hardcode_direct_F77=yes
14836
# We have old collect2
14837
hardcode_direct_F77=unsupported
14838
# It fails to find uninstalled libraries when the uninstalled
14839
# path is not listed in the libpath. Setting hardcode_minus_L
14840
# to unsupported forces relinking
14841
hardcode_minus_L_F77=yes
14842
hardcode_libdir_flag_spec_F77='-L$libdir'
14843
hardcode_libdir_separator_F77=
14847
shared_flag='-shared'
14848
if test "$aix_use_runtimelinking" = yes; then
14849
shared_flag="$shared_flag "'${wl}-G'
14853
if test "$host_cpu" = ia64; then
14854
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14855
# chokes on -Wl,-G. The following line is correct:
14858
if test "$aix_use_runtimelinking" = yes; then
14859
shared_flag='${wl}-G'
14861
shared_flag='${wl}-bM:SRE'
14866
# It seems that -bexpall does not export symbols beginning with
14867
# underscore (_), so it is better to generate a list of symbols to export.
14868
always_export_symbols_F77=yes
14869
if test "$aix_use_runtimelinking" = yes; then
14870
# Warning - without using the other runtime loading flags (-brtl),
14871
# -berok will link without error, but may produce a broken library.
14872
allow_undefined_flag_F77='-berok'
14873
# Determine the default libpath from the value encoded in an empty executable.
14874
cat >conftest.$ac_ext <<_ACEOF
14879
rm -f conftest.$ac_objext conftest$ac_exeext
14880
if { (ac_try="$ac_link"
14881
case "(($ac_try" in
14882
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14883
*) ac_try_echo=$ac_try;;
14885
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14886
(eval "$ac_link") 2>conftest.er1
14888
grep -v '^ *+' conftest.er1 >conftest.err
14890
cat conftest.err >&5
14891
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14892
(exit $ac_status); } && {
14893
test -z "$ac_f77_werror_flag" ||
14894
test ! -s conftest.err
14895
} && test -s conftest$ac_exeext &&
14896
$as_test_x conftest$ac_exeext; then
14898
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14900
# Check for a 64-bit object if we didn't find anything.
14901
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; }
14904
echo "$as_me: failed program was:" >&5
14905
sed 's/^/| /' conftest.$ac_ext >&5
14910
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14911
conftest$ac_exeext conftest.$ac_ext
14912
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14914
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14915
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"
14917
if test "$host_cpu" = ia64; then
14918
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14919
allow_undefined_flag_F77="-z nodefs"
14920
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"
14922
# Determine the default libpath from the value encoded in an empty executable.
14923
cat >conftest.$ac_ext <<_ACEOF
14928
rm -f conftest.$ac_objext conftest$ac_exeext
14929
if { (ac_try="$ac_link"
14930
case "(($ac_try" in
14931
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14932
*) ac_try_echo=$ac_try;;
14934
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14935
(eval "$ac_link") 2>conftest.er1
14937
grep -v '^ *+' conftest.er1 >conftest.err
14939
cat conftest.err >&5
14940
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14941
(exit $ac_status); } && {
14942
test -z "$ac_f77_werror_flag" ||
14943
test ! -s conftest.err
14944
} && test -s conftest$ac_exeext &&
14945
$as_test_x conftest$ac_exeext; then
14947
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14949
# Check for a 64-bit object if we didn't find anything.
14950
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; }
14953
echo "$as_me: failed program was:" >&5
14954
sed 's/^/| /' conftest.$ac_ext >&5
14959
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14960
conftest$ac_exeext conftest.$ac_ext
14961
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14963
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14964
# Warning - without using the other run time loading flags,
14965
# -berok will link without error, but may produce a broken library.
14966
no_undefined_flag_F77=' ${wl}-bernotok'
14967
allow_undefined_flag_F77=' ${wl}-berok'
14968
# Exported symbols can be pulled into shared objects from archives
14969
whole_archive_flag_spec_F77='$convenience'
14970
archive_cmds_need_lc_F77=yes
14971
# This is similar to how AIX traditionally builds its shared libraries.
14972
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'
14978
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)'
14979
hardcode_libdir_flag_spec_F77='-L$libdir'
14980
hardcode_minus_L_F77=yes
14981
# see comment about different semantics on the GNU ld section
14986
export_dynamic_flag_spec_F77=-rdynamic
14989
cygwin* | mingw* | pw32*)
14990
# When not using gcc, we currently assume that we are using
14991
# Microsoft Visual C++.
14992
# hardcode_libdir_flag_spec is actually meaningless, as there is
14993
# no search path for DLLs.
14994
hardcode_libdir_flag_spec_F77=' '
14995
allow_undefined_flag_F77=unsupported
14996
# Tell ltmain to make .lib files, not .a files.
14998
# Tell ltmain to make .dll files, not .so files.
15000
# FIXME: Setting linknames here is a bad hack.
15001
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15002
# The linker will automatically build a .lib file if we build a DLL.
15003
old_archive_From_new_cmds_F77='true'
15004
# FIXME: Should let the user specify the lib program.
15005
old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15006
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15007
enable_shared_with_static_runtimes_F77=yes
15010
darwin* | rhapsody*)
15012
rhapsody* | darwin1.[012])
15013
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15016
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15017
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15019
case ${MACOSX_DEPLOYMENT_TARGET} in
15021
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15024
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15030
archive_cmds_need_lc_F77=no
15031
hardcode_direct_F77=no
15032
hardcode_automatic_F77=yes
15033
hardcode_shlibpath_var_F77=unsupported
15034
whole_archive_flag_spec_F77=''
15035
link_all_deplibs_F77=yes
15036
if test "$GCC" = yes ; then
15037
output_verbose_link_cmd='echo'
15038
archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15039
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15040
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15041
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}'
15042
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}'
15044
case $cc_basename in
15046
output_verbose_link_cmd='echo'
15047
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15048
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15049
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15050
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}'
15051
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}'
15061
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15062
hardcode_libdir_flag_spec_F77='-L$libdir'
15063
hardcode_shlibpath_var_F77=no
15070
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15071
# support. Future versions do this automatically, but an explicit c++rt0.o
15072
# does not break anything, and helps significantly (at the cost of a little
15075
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15076
hardcode_libdir_flag_spec_F77='-R$libdir'
15077
hardcode_direct_F77=yes
15078
hardcode_shlibpath_var_F77=no
15081
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
15083
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15084
hardcode_direct_F77=yes
15085
hardcode_minus_L_F77=yes
15086
hardcode_shlibpath_var_F77=no
15089
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15090
freebsd* | dragonfly*)
15091
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15092
hardcode_libdir_flag_spec_F77='-R$libdir'
15093
hardcode_direct_F77=yes
15094
hardcode_shlibpath_var_F77=no
15098
if test "$GCC" = yes; then
15099
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'
15101
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'
15103
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15104
hardcode_libdir_separator_F77=:
15105
hardcode_direct_F77=yes
15107
# hardcode_minus_L: Not really in the search PATH,
15108
# but as the default location of the library.
15109
hardcode_minus_L_F77=yes
15110
export_dynamic_flag_spec_F77='${wl}-E'
15114
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15115
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15117
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15119
if test "$with_gnu_ld" = no; then
15120
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15121
hardcode_libdir_separator_F77=:
15123
hardcode_direct_F77=yes
15124
export_dynamic_flag_spec_F77='${wl}-E'
15126
# hardcode_minus_L: Not really in the search PATH,
15127
# but as the default location of the library.
15128
hardcode_minus_L_F77=yes
15133
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15136
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15139
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15142
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15148
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15151
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15154
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15158
if test "$with_gnu_ld" = no; then
15159
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15160
hardcode_libdir_separator_F77=:
15164
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15165
hardcode_direct_F77=no
15166
hardcode_shlibpath_var_F77=no
15169
hardcode_direct_F77=yes
15170
export_dynamic_flag_spec_F77='${wl}-E'
15172
# hardcode_minus_L: Not really in the search PATH,
15173
# but as the default location of the library.
15174
hardcode_minus_L_F77=yes
15180
irix5* | irix6* | nonstopux*)
15181
if test "$GCC" = yes; then
15182
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'
15184
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'
15185
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15187
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15188
hardcode_libdir_separator_F77=:
15189
link_all_deplibs_F77=yes
15192
netbsd* | netbsdelf*-gnu)
15193
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15194
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15196
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15198
hardcode_libdir_flag_spec_F77='-R$libdir'
15199
hardcode_direct_F77=yes
15200
hardcode_shlibpath_var_F77=no
15204
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15205
hardcode_direct_F77=yes
15206
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15207
hardcode_libdir_separator_F77=:
15208
hardcode_shlibpath_var_F77=no
15212
hardcode_direct_F77=yes
15213
hardcode_shlibpath_var_F77=no
15214
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15215
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15216
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15217
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15218
export_dynamic_flag_spec_F77='${wl}-E'
15221
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15222
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15223
hardcode_libdir_flag_spec_F77='-R$libdir'
15226
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15227
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15234
hardcode_libdir_flag_spec_F77='-L$libdir'
15235
hardcode_minus_L_F77=yes
15236
allow_undefined_flag_F77=unsupported
15237
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'
15238
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15242
if test "$GCC" = yes; then
15243
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15244
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'
15246
allow_undefined_flag_F77=' -expect_unresolved \*'
15247
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'
15249
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15250
hardcode_libdir_separator_F77=:
15253
osf4* | osf5*) # as osf3* with the addition of -msym flag
15254
if test "$GCC" = yes; then
15255
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15256
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'
15257
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15259
allow_undefined_flag_F77=' -expect_unresolved \*'
15260
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'
15261
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~
15262
$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'
15264
# Both c and cxx compiler support -rpath directly
15265
hardcode_libdir_flag_spec_F77='-rpath $libdir'
15267
hardcode_libdir_separator_F77=:
15271
no_undefined_flag_F77=' -z text'
15272
if test "$GCC" = yes; then
15274
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15275
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15276
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15279
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15280
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15281
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15283
hardcode_libdir_flag_spec_F77='-R$libdir'
15284
hardcode_shlibpath_var_F77=no
15286
solaris2.[0-5] | solaris2.[0-5].*) ;;
15288
# The compiler driver will combine linker options so we
15289
# cannot just pass the convience library names through
15290
# without $wl, iff we do not link with $LD.
15291
# Luckily, gcc supports the same syntax we need for Sun Studio.
15292
# Supported since Solaris 2.6 (maybe 2.5.1?)
15295
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15297
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' ;;
15300
link_all_deplibs_F77=yes
15304
if test "x$host_vendor" = xsequent; then
15305
# Use $CC to link under sequent, because it throws in some extra .o
15306
# files that make .init and .fini sections work.
15307
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15309
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15311
hardcode_libdir_flag_spec_F77='-L$libdir'
15312
hardcode_direct_F77=yes
15313
hardcode_minus_L_F77=yes
15314
hardcode_shlibpath_var_F77=no
15318
case $host_vendor in
15320
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15321
hardcode_direct_F77=yes # is this really true???
15324
## LD is ld it makes a PLAMLIB
15325
## CC just makes a GrossModule.
15326
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15327
reload_cmds_F77='$CC -r -o $output$reload_objs'
15328
hardcode_direct_F77=no
15331
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15332
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15335
runpath_var='LD_RUN_PATH'
15336
hardcode_shlibpath_var_F77=no
15340
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15341
hardcode_shlibpath_var_F77=no
15342
export_dynamic_flag_spec_F77='-Bexport'
15346
if test -d /usr/nec; then
15347
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15348
hardcode_shlibpath_var_F77=no
15349
runpath_var=LD_RUN_PATH
15350
hardcode_runpath_var=yes
15355
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15356
no_undefined_flag_F77='${wl}-z,text'
15357
archive_cmds_need_lc_F77=no
15358
hardcode_shlibpath_var_F77=no
15359
runpath_var='LD_RUN_PATH'
15361
if test "$GCC" = yes; then
15362
archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15363
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15365
archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15366
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15370
sysv5* | sco3.2v5* | sco5v6*)
15371
# Note: We can NOT use -z defs as we might desire, because we do not
15372
# link with -lc, and that would cause any symbols used from libc to
15373
# always be unresolved, which means just about no library would
15374
# ever link correctly. If we're not using GNU ld we use -z text
15375
# though, which does catch some bad symbols but isn't as heavy-handed
15377
no_undefined_flag_F77='${wl}-z,text'
15378
allow_undefined_flag_F77='${wl}-z,nodefs'
15379
archive_cmds_need_lc_F77=no
15380
hardcode_shlibpath_var_F77=no
15381
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15382
hardcode_libdir_separator_F77=':'
15383
link_all_deplibs_F77=yes
15384
export_dynamic_flag_spec_F77='${wl}-Bexport'
15385
runpath_var='LD_RUN_PATH'
15387
if test "$GCC" = yes; then
15388
archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15389
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15391
archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15392
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15397
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15398
hardcode_libdir_flag_spec_F77='-L$libdir'
15399
hardcode_shlibpath_var_F77=no
15408
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15409
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15410
test "$ld_shlibs_F77" = no && can_build_shared=no
15413
# Do we need to explicitly link libc?
15415
case "x$archive_cmds_need_lc_F77" in
15417
# Assume -lc should be added
15418
archive_cmds_need_lc_F77=yes
15420
if test "$enable_shared" = yes && test "$GCC" = yes; then
15421
case $archive_cmds_F77 in
15423
# FIXME: we may have to deal with multi-command sequences.
15426
# Test whether the compiler implicitly links with -lc since on some
15427
# systems, -lgcc has to come before -lc. If gcc already passes -lc
15428
# to ld, don't add -lc before -lgcc.
15429
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15430
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15432
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15434
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15435
(eval $ac_compile) 2>&5
15437
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438
(exit $ac_status); } 2>conftest.err; then
15441
libobjs=conftest.$ac_objext
15443
wl=$lt_prog_compiler_wl_F77
15444
pic_flag=$lt_prog_compiler_pic_F77
15450
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15451
allow_undefined_flag_F77=
15452
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15453
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15455
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456
(exit $ac_status); }
15458
archive_cmds_need_lc_F77=no
15460
archive_cmds_need_lc_F77=yes
15462
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15464
cat conftest.err 1>&5
15467
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15468
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15475
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15476
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15477
library_names_spec=
15478
libname_spec='lib$name'
15482
postuninstall_cmds=
15486
shlibpath_overrides_runpath=unknown
15488
dynamic_linker="$host_os ld.so"
15489
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15490
if test "$GCC" = yes; then
15491
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15492
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15493
# if the path contains ";" then we assume it to be the separator
15494
# otherwise default to the standard path separator (i.e. ":") - it is
15495
# assumed that no part of a normal pathname contains ";" but that should
15496
# okay in the real world where ";" in dirpaths is itself problematic.
15497
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15499
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15502
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15504
need_lib_prefix=unknown
15505
hardcode_into_libs=no
15507
# when you set need_version to no, make sure it does not cause -set_version
15508
# flags to be left without arguments
15509
need_version=unknown
15514
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15515
shlibpath_var=LIBPATH
15517
# AIX 3 has no versioning support, so we append a major version to the name.
15518
soname_spec='${libname}${release}${shared_ext}$major'
15525
hardcode_into_libs=yes
15526
if test "$host_cpu" = ia64; then
15527
# AIX 5 supports IA64
15528
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15529
shlibpath_var=LD_LIBRARY_PATH
15531
# With GCC up to 2.95.x, collect2 would create an import file
15532
# for dependence libraries. The import file would start with
15533
# the line `#! .'. This would cause the generated library to
15534
# depend on `.', always an invalid library. This was fixed in
15535
# development snapshots of GCC prior to 3.0.
15537
aix4 | aix4.[01] | aix4.[01].*)
15538
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15540
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15543
can_build_shared=no
15547
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15548
# soname into executable. Probably we can add versioning support to
15549
# collect2, so additional links can be useful in future.
15550
if test "$aix_use_runtimelinking" = yes; then
15551
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
15552
# instead of lib<name>.a to let people know that these are not
15553
# typical AIX shared libraries.
15554
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15556
# We preserve .a as extension for shared libraries through AIX4.2
15557
# and later when we are not doing run time linking.
15558
library_names_spec='${libname}${release}.a $libname.a'
15559
soname_spec='${libname}${release}${shared_ext}$major'
15561
shlibpath_var=LIBPATH
15566
library_names_spec='$libname.ixlibrary $libname.a'
15567
# Create ${libname}_ixlibrary.a entries in /sys/libs.
15568
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'
15572
library_names_spec='${libname}${shared_ext}'
15573
dynamic_linker="$host_os ld.so"
15574
shlibpath_var=LIBRARY_PATH
15580
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15581
soname_spec='${libname}${release}${shared_ext}$major'
15582
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15583
shlibpath_var=LD_LIBRARY_PATH
15584
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15585
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15586
# the default ld.so.conf also contains /usr/contrib/lib and
15587
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15588
# libtool to hard-code these into programs
15591
cygwin* | mingw* | pw32*)
15592
version_type=windows
15597
case $GCC,$host_os in
15598
yes,cygwin* | yes,mingw* | yes,pw32*)
15599
library_names_spec='$libname.dll.a'
15600
# DLL is installed to $(libdir)/../bin by postinstall_cmds
15601
postinstall_cmds='base_file=`basename \${file}`~
15602
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15603
dldir=$destdir/`dirname \$dlpath`~
15604
test -d \$dldir || mkdir -p \$dldir~
15605
$install_prog $dir/$dlname \$dldir/$dlname~
15606
chmod a+x \$dldir/$dlname'
15607
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15608
dlpath=$dir/\$dldll~
15610
shlibpath_overrides_runpath=yes
15614
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
15615
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15616
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15619
# MinGW DLLs use traditional 'lib' prefix
15620
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15621
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15622
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15623
# It is most probably a Windows format PATH printed by
15624
# mingw gcc, but we are running on Cygwin. Gcc prints its search
15625
# path with ; separators, and with drive letters. We can handle the
15626
# drive letters (cygwin fileutils understands them), so leave them,
15627
# especially as we might pass files found there to a mingw objdump,
15628
# which wouldn't understand a cygwinified path. Ahh.
15629
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15631
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15635
# pw32 DLLs use 'pw' prefix rather than 'lib'
15636
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15642
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15645
dynamic_linker='Win32 ld.exe'
15646
# FIXME: first we should search . and the directory the executable is in
15650
darwin* | rhapsody*)
15651
dynamic_linker="$host_os dyld"
15652
version_type=darwin
15655
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15656
soname_spec='${libname}${release}${major}$shared_ext'
15657
shlibpath_overrides_runpath=yes
15658
shlibpath_var=DYLD_LIBRARY_PATH
15659
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15660
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15661
if test "$GCC" = yes; then
15662
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"`
15664
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15666
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15673
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15674
soname_spec='${libname}${release}${shared_ext}$major'
15675
shlibpath_var=LD_LIBRARY_PATH
15682
freebsd* | dragonfly*)
15683
# DragonFly does not have aout. When/if they implement a new
15684
# versioning mechanism, adjust this.
15685
if test -x /usr/bin/objformat; then
15686
objformat=`/usr/bin/objformat`
15689
freebsd[123]*) objformat=aout ;;
15690
*) objformat=elf ;;
15693
version_type=freebsd-$objformat
15694
case $version_type in
15696
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15701
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15705
shlibpath_var=LD_LIBRARY_PATH
15708
shlibpath_overrides_runpath=yes
15710
freebsd3.[01]* | freebsdelf3.[01]*)
15711
shlibpath_overrides_runpath=yes
15712
hardcode_into_libs=yes
15714
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15715
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15716
shlibpath_overrides_runpath=no
15717
hardcode_into_libs=yes
15719
freebsd*) # from 4.6 on
15720
shlibpath_overrides_runpath=yes
15721
hardcode_into_libs=yes
15730
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15731
soname_spec='${libname}${release}${shared_ext}$major'
15732
shlibpath_var=LD_LIBRARY_PATH
15733
hardcode_into_libs=yes
15736
hpux9* | hpux10* | hpux11*)
15737
# Give a soname corresponding to the major version so that dld.sl refuses to
15738
# link against other versions.
15745
hardcode_into_libs=yes
15746
dynamic_linker="$host_os dld.so"
15747
shlibpath_var=LD_LIBRARY_PATH
15748
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15749
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15750
soname_spec='${libname}${release}${shared_ext}$major'
15751
if test "X$HPUX_IA64_MODE" = X32; then
15752
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15754
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15756
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15760
hardcode_into_libs=yes
15761
dynamic_linker="$host_os dld.sl"
15762
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15763
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15764
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15765
soname_spec='${libname}${release}${shared_ext}$major'
15766
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15767
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15771
dynamic_linker="$host_os dld.sl"
15772
shlibpath_var=SHLIB_PATH
15773
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15774
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15775
soname_spec='${libname}${release}${shared_ext}$major'
15778
# HP-UX runs *really* slowly unless shared libraries are mode 555.
15779
postinstall_cmds='chmod 555 $lib'
15786
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15787
soname_spec='${libname}${release}${shared_ext}$major'
15788
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15789
shlibpath_var=LD_LIBRARY_PATH
15790
shlibpath_overrides_runpath=no
15791
hardcode_into_libs=yes
15794
irix5* | irix6* | nonstopux*)
15796
nonstopux*) version_type=nonstopux ;;
15798
if test "$lt_cv_prog_gnu_ld" = yes; then
15806
soname_spec='${libname}${release}${shared_ext}$major'
15807
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15809
irix5* | nonstopux*)
15810
libsuff= shlibsuff=
15813
case $LD in # libtool.m4 will add one of these switches to LD
15814
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15815
libsuff= shlibsuff= libmagic=32-bit;;
15816
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15817
libsuff=32 shlibsuff=N32 libmagic=N32;;
15818
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15819
libsuff=64 shlibsuff=64 libmagic=64-bit;;
15820
*) libsuff= shlibsuff= libmagic=never-match;;
15824
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15825
shlibpath_overrides_runpath=no
15826
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15827
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15828
hardcode_into_libs=yes
15831
# No shared lib support for Linux oldld, aout, or coff.
15832
linux*oldld* | linux*aout* | linux*coff*)
15836
# This must be Linux ELF.
15837
linux* | k*bsd*-gnu)
15841
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15842
soname_spec='${libname}${release}${shared_ext}$major'
15843
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15844
shlibpath_var=LD_LIBRARY_PATH
15845
shlibpath_overrides_runpath=no
15846
# This implies no fast_install, which is unacceptable.
15847
# Some rework will be needed to allow for fast_install
15848
# before this can be enabled.
15849
hardcode_into_libs=yes
15851
# Append ld.so.conf contents to the search path
15852
if test -f /etc/ld.so.conf; then
15853
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' ' '`
15854
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15857
# We used to test for /lib/ld.so.1 and disable shared libraries on
15858
# powerpc, because MkLinux only supported shared libraries with the
15859
# GNU dynamic linker. Since this was broken with cross compilers,
15860
# most powerpc-linux boxes support dynamic linking these days and
15861
# people can always --disable-shared, the test was removed, and we
15862
# assume the GNU/Linux dynamic linker is in use.
15863
dynamic_linker='GNU/Linux ld.so'
15870
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15871
soname_spec='${libname}${release}${shared_ext}$major'
15872
shlibpath_var=LD_LIBRARY_PATH
15873
shlibpath_overrides_runpath=no
15874
hardcode_into_libs=yes
15875
dynamic_linker='NetBSD ld.elf_so'
15882
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15883
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15884
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15885
dynamic_linker='NetBSD (a.out) ld.so'
15887
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15888
soname_spec='${libname}${release}${shared_ext}$major'
15889
dynamic_linker='NetBSD ld.elf_so'
15891
shlibpath_var=LD_LIBRARY_PATH
15892
shlibpath_overrides_runpath=yes
15893
hardcode_into_libs=yes
15898
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15899
shlibpath_var=LD_LIBRARY_PATH
15900
shlibpath_overrides_runpath=yes
15907
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15908
soname_spec='${libname}${release}${shared_ext}$major'
15909
shlibpath_var=LD_LIBRARY_PATH
15910
shlibpath_overrides_runpath=yes
15915
sys_lib_dlsearch_path_spec="/usr/lib"
15917
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15919
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15920
*) need_version=no ;;
15922
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15923
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15924
shlibpath_var=LD_LIBRARY_PATH
15925
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15927
openbsd2.[89] | openbsd2.[89].*)
15928
shlibpath_overrides_runpath=no
15931
shlibpath_overrides_runpath=yes
15935
shlibpath_overrides_runpath=yes
15940
libname_spec='$name'
15943
library_names_spec='$libname${shared_ext} $libname.a'
15944
dynamic_linker='OS/2 ld.exe'
15945
shlibpath_var=LIBPATH
15948
osf3* | osf4* | osf5*)
15952
soname_spec='${libname}${release}${shared_ext}$major'
15953
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15954
shlibpath_var=LD_LIBRARY_PATH
15955
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15956
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15963
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15964
soname_spec='${libname}${release}${shared_ext}$major'
15965
shlibpath_var=LD_LIBRARY_PATH
15966
shlibpath_overrides_runpath=yes
15967
hardcode_into_libs=yes
15968
# ldd complains unless libraries are executable
15969
postinstall_cmds='chmod +x $lib'
15974
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15975
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15976
shlibpath_var=LD_LIBRARY_PATH
15977
shlibpath_overrides_runpath=yes
15978
if test "$with_gnu_ld" = yes; then
15986
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15987
soname_spec='${libname}${release}${shared_ext}$major'
15988
shlibpath_var=LD_LIBRARY_PATH
15989
case $host_vendor in
15991
shlibpath_overrides_runpath=no
15993
export_dynamic_flag_spec='${wl}-Blargedynsym'
15994
runpath_var=LD_RUN_PATH
16002
shlibpath_overrides_runpath=no
16003
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16009
if test -d /usr/nec ;then
16011
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16012
soname_spec='$libname${shared_ext}.$major'
16013
shlibpath_var=LD_LIBRARY_PATH
16017
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16018
version_type=freebsd-elf
16021
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16022
soname_spec='${libname}${release}${shared_ext}$major'
16023
shlibpath_var=LD_LIBRARY_PATH
16024
hardcode_into_libs=yes
16025
if test "$with_gnu_ld" = yes; then
16026
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16027
shlibpath_overrides_runpath=no
16029
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16030
shlibpath_overrides_runpath=yes
16033
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16037
sys_lib_dlsearch_path_spec='/usr/lib'
16042
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16043
soname_spec='${libname}${release}${shared_ext}$major'
16044
shlibpath_var=LD_LIBRARY_PATH
16051
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16052
echo "${ECHO_T}$dynamic_linker" >&6; }
16053
test "$dynamic_linker" = no && can_build_shared=no
16055
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16056
if test "$GCC" = yes; then
16057
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16060
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16061
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16062
hardcode_action_F77=
16063
if test -n "$hardcode_libdir_flag_spec_F77" || \
16064
test -n "$runpath_var_F77" || \
16065
test "X$hardcode_automatic_F77" = "Xyes" ; then
16067
# We can hardcode non-existant directories.
16068
if test "$hardcode_direct_F77" != no &&
16069
# If the only mechanism to avoid hardcoding is shlibpath_var, we
16070
# have to relink, otherwise we might link with an installed library
16071
# when we should be linking with a yet-to-be-installed one
16072
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16073
test "$hardcode_minus_L_F77" != no; then
16074
# Linking always hardcodes the temporary library directory.
16075
hardcode_action_F77=relink
16077
# We can link without hardcoding, and we can hardcode nonexisting dirs.
16078
hardcode_action_F77=immediate
16081
# We cannot hardcode anything, or else we can only hardcode existing
16083
hardcode_action_F77=unsupported
16085
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16086
echo "${ECHO_T}$hardcode_action_F77" >&6; }
16088
if test "$hardcode_action_F77" = relink; then
16089
# Fast installation is not supported
16090
enable_fast_install=no
16091
elif test "$shlibpath_overrides_runpath" = yes ||
16092
test "$enable_shared" = no; then
16093
# Fast installation is not necessary
16094
enable_fast_install=needless
16098
# The else clause should only fire when bootstrapping the
16099
# libtool distribution, otherwise you forgot to ship ltmain.sh
16100
# with your package, and you will get complaints that there are
16101
# no rules to generate ltmain.sh.
16102
if test -f "$ltmain"; then
16103
# See if we are running on zsh, and set the options which allow our commands through
16104
# without removal of \ escapes.
16105
if test -n "${ZSH_VERSION+set}" ; then
16106
setopt NO_GLOB_SUBST
16108
# Now quote all the things that may contain metacharacters while being
16109
# careful not to overquote the AC_SUBSTed values. We take copies of the
16110
# variables and quote the copies for generation of the libtool script.
16111
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16113
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16114
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16115
deplibs_check_method reload_flag reload_cmds need_locks \
16116
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16117
lt_cv_sys_global_symbol_to_c_name_address \
16118
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16119
old_postinstall_cmds old_postuninstall_cmds \
16123
lt_prog_compiler_wl_F77 \
16124
lt_prog_compiler_pic_F77 \
16125
lt_prog_compiler_static_F77 \
16126
lt_prog_compiler_no_builtin_flag_F77 \
16127
export_dynamic_flag_spec_F77 \
16128
thread_safe_flag_spec_F77 \
16129
whole_archive_flag_spec_F77 \
16130
enable_shared_with_static_runtimes_F77 \
16131
old_archive_cmds_F77 \
16132
old_archive_from_new_cmds_F77 \
16133
predep_objects_F77 \
16134
postdep_objects_F77 \
16137
compiler_lib_search_path_F77 \
16139
archive_expsym_cmds_F77 \
16140
postinstall_cmds_F77 \
16141
postuninstall_cmds_F77 \
16142
old_archive_from_expsyms_cmds_F77 \
16143
allow_undefined_flag_F77 \
16144
no_undefined_flag_F77 \
16145
export_symbols_cmds_F77 \
16146
hardcode_libdir_flag_spec_F77 \
16147
hardcode_libdir_flag_spec_ld_F77 \
16148
hardcode_libdir_separator_F77 \
16149
hardcode_automatic_F77 \
16151
module_expsym_cmds_F77 \
16152
lt_cv_prog_compiler_c_o_F77 \
16153
exclude_expsyms_F77 \
16154
include_expsyms_F77; do
16157
old_archive_cmds_F77 | \
16158
old_archive_from_new_cmds_F77 | \
16159
archive_cmds_F77 | \
16160
archive_expsym_cmds_F77 | \
16161
module_cmds_F77 | \
16162
module_expsym_cmds_F77 | \
16163
old_archive_from_expsyms_cmds_F77 | \
16164
export_symbols_cmds_F77 | \
16165
extract_expsyms_cmds | reload_cmds | finish_cmds | \
16166
postinstall_cmds | postuninstall_cmds | \
16167
old_postinstall_cmds | old_postuninstall_cmds | \
16168
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16169
# Double-quote double-evaled strings.
16170
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16173
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16179
*'\$0 --fallback-echo"')
16180
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16186
cat <<__EOF__ >> "$cfgfile"
16187
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16189
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16191
# Shell to use when invoking shell scripts.
16194
# Whether or not to build shared libraries.
16195
build_libtool_libs=$enable_shared
16197
# Whether or not to build static libraries.
16198
build_old_libs=$enable_static
16200
# Whether or not to add -lc for building shared libraries.
16201
build_libtool_need_lc=$archive_cmds_need_lc_F77
16203
# Whether or not to disallow shared libs when runtime libs are static
16204
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16206
# Whether or not to optimize for fast installation.
16207
fast_install=$enable_fast_install
16210
host_alias=$host_alias
16214
# The build system.
16215
build_alias=$build_alias
16219
# An echo program that does not interpret backslashes.
16224
AR_FLAGS=$lt_AR_FLAGS
16229
# LTCC compiler flags.
16230
LTCFLAGS=$lt_LTCFLAGS
16232
# A language-specific compiler.
16233
CC=$lt_compiler_F77
16235
# Is the compiler the GNU C compiler?
16241
# The linker used to build libraries.
16244
# Whether we need hard or soft links.
16247
# A BSD-compatible nm program.
16250
# A symbol stripping program
16253
# Used to examine libraries when file_magic_cmd begins "file"
16254
MAGIC_CMD=$MAGIC_CMD
16256
# Used on cygwin: DLL creation program.
16259
# Used on cygwin: object dumper.
16262
# Used on cygwin: assembler.
16265
# The name of the directory that contains temporary libtool files.
16268
# How to create reloadable object files.
16269
reload_flag=$lt_reload_flag
16270
reload_cmds=$lt_reload_cmds
16272
# How to pass a linker flag through the compiler.
16273
wl=$lt_lt_prog_compiler_wl_F77
16275
# Object file suffix (normally "o").
16276
objext="$ac_objext"
16278
# Old archive suffix (normally "a").
16281
# Shared library suffix (normally ".so").
16282
shrext_cmds='$shrext_cmds'
16284
# Executable file suffix (normally "").
16287
# Additional compiler flags for building library objects.
16288
pic_flag=$lt_lt_prog_compiler_pic_F77
16291
# What is the maximum length of a command?
16292
max_cmd_len=$lt_cv_sys_max_cmd_len
16294
# Does compiler simultaneously support -c and -o options?
16295
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16297
# Must we lock files when doing compilation?
16298
need_locks=$lt_need_locks
16300
# Do we need the lib prefix for modules?
16301
need_lib_prefix=$need_lib_prefix
16303
# Do we need a version for libraries?
16304
need_version=$need_version
16306
# Whether dlopen is supported.
16307
dlopen_support=$enable_dlopen
16309
# Whether dlopen of programs is supported.
16310
dlopen_self=$enable_dlopen_self
16312
# Whether dlopen of statically linked programs is supported.
16313
dlopen_self_static=$enable_dlopen_self_static
16315
# Compiler flag to prevent dynamic linking.
16316
link_static_flag=$lt_lt_prog_compiler_static_F77
16318
# Compiler flag to turn off builtin functions.
16319
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16321
# Compiler flag to allow reflexive dlopens.
16322
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16324
# Compiler flag to generate shared objects directly from archives.
16325
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16327
# Compiler flag to generate thread-safe objects.
16328
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16330
# Library versioning type.
16331
version_type=$version_type
16333
# Format of library name prefix.
16334
libname_spec=$lt_libname_spec
16336
# List of archive names. First name is the real one, the rest are links.
16337
# The last name is the one that the linker finds with -lNAME.
16338
library_names_spec=$lt_library_names_spec
16340
# The coded name of the library, if different from the real name.
16341
soname_spec=$lt_soname_spec
16343
# Commands used to build and install an old-style archive.
16345
old_archive_cmds=$lt_old_archive_cmds_F77
16346
old_postinstall_cmds=$lt_old_postinstall_cmds
16347
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16349
# Create an old-style archive from a shared archive.
16350
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16352
# Create a temporary old-style archive to link instead of a shared archive.
16353
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16355
# Commands used to build and install a shared archive.
16356
archive_cmds=$lt_archive_cmds_F77
16357
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16358
postinstall_cmds=$lt_postinstall_cmds
16359
postuninstall_cmds=$lt_postuninstall_cmds
16361
# Commands used to build a loadable module (assumed same as above if empty)
16362
module_cmds=$lt_module_cmds_F77
16363
module_expsym_cmds=$lt_module_expsym_cmds_F77
16365
# Commands to strip libraries.
16366
old_striplib=$lt_old_striplib
16367
striplib=$lt_striplib
16369
# Dependencies to place before the objects being linked to create a
16371
predep_objects=$lt_predep_objects_F77
16373
# Dependencies to place after the objects being linked to create a
16375
postdep_objects=$lt_postdep_objects_F77
16377
# Dependencies to place before the objects being linked to create a
16379
predeps=$lt_predeps_F77
16381
# Dependencies to place after the objects being linked to create a
16383
postdeps=$lt_postdeps_F77
16385
# The library search path used internally by the compiler when linking
16386
# a shared library.
16387
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16389
# Method to check whether dependent libraries are shared objects.
16390
deplibs_check_method=$lt_deplibs_check_method
16392
# Command to use when deplibs_check_method == file_magic.
16393
file_magic_cmd=$lt_file_magic_cmd
16395
# Flag that allows shared libraries with undefined symbols to be built.
16396
allow_undefined_flag=$lt_allow_undefined_flag_F77
16398
# Flag that forces no undefined symbols.
16399
no_undefined_flag=$lt_no_undefined_flag_F77
16401
# Commands used to finish a libtool library installation in a directory.
16402
finish_cmds=$lt_finish_cmds
16404
# Same as above, but a single script fragment to be evaled but not shown.
16405
finish_eval=$lt_finish_eval
16407
# Take the output of nm and produce a listing of raw symbols and C names.
16408
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16410
# Transform the output of nm in a proper C declaration
16411
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16413
# Transform the output of nm in a C name address pair
16414
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16416
# This is the shared library runtime path variable.
16417
runpath_var=$runpath_var
16419
# This is the shared library path variable.
16420
shlibpath_var=$shlibpath_var
16422
# Is shlibpath searched before the hard-coded library search path?
16423
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16425
# How to hardcode a shared library path into an executable.
16426
hardcode_action=$hardcode_action_F77
16428
# Whether we should hardcode library paths into libraries.
16429
hardcode_into_libs=$hardcode_into_libs
16431
# Flag to hardcode \$libdir into a binary during linking.
16432
# This must work even if \$libdir does not exist.
16433
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16435
# If ld is used when linking, flag to hardcode \$libdir into
16436
# a binary during linking. This must work even if \$libdir does
16438
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16440
# Whether we need a single -rpath flag with a separated argument.
16441
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16443
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16444
# resulting binary.
16445
hardcode_direct=$hardcode_direct_F77
16447
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16448
# resulting binary.
16449
hardcode_minus_L=$hardcode_minus_L_F77
16451
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16452
# the resulting binary.
16453
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16455
# Set to yes if building a shared library automatically hardcodes DIR into the library
16456
# and all subsequent libraries and executables linked against it.
16457
hardcode_automatic=$hardcode_automatic_F77
16459
# Variables whose values should be saved in libtool wrapper scripts and
16460
# restored at relink time.
16461
variables_saved_for_relink="$variables_saved_for_relink"
16463
# Whether libtool must link a program against all its dependency libraries.
16464
link_all_deplibs=$link_all_deplibs_F77
16466
# Compile-time system search path for libraries
16467
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16469
# Run-time system search path for libraries
16470
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16472
# Fix the shell variable \$srcfile for the compiler.
16473
fix_srcfile_path="$fix_srcfile_path_F77"
16475
# Set to yes if exported symbols are required.
16476
always_export_symbols=$always_export_symbols_F77
16478
# The commands to list exported symbols.
16479
export_symbols_cmds=$lt_export_symbols_cmds_F77
16481
# The commands to extract the exported symbol list from a shared archive.
16482
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16484
# Symbols that should not be listed in the preloaded symbols.
16485
exclude_expsyms=$lt_exclude_expsyms_F77
16487
# Symbols that must always be exported.
16488
include_expsyms=$lt_include_expsyms_F77
16490
# ### END LIBTOOL TAG CONFIG: $tagname
16496
# If there is no Makefile yet, we rely on a make rule to execute
16497
# `config.status --recheck' to rerun these tests and create the
16498
# libtool script then.
16499
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16500
if test -f "$ltmain_in"; then
16501
test -f Makefile && make "$ltmain"
16507
ac_cpp='$CPP $CPPFLAGS'
16508
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16509
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16510
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16520
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16523
# Source file extension for Java test sources.
16526
# Object file extension for compiled Java test sources.
16530
# Code to be used in simple compile tests
16531
lt_simple_compile_test_code="class foo {}\n"
16533
# Code to be used in simple link tests
16534
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16536
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16538
# If no C compiler was specified, use CC.
16541
# If no C compiler flags were specified, use CFLAGS.
16542
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16544
# Allow CC to be a program name with arguments.
16548
# save warnings/boilerplate of simple test code
16549
ac_outfile=conftest.$ac_objext
16550
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16551
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16552
_lt_compiler_boilerplate=`cat conftest.err`
16555
ac_outfile=conftest.$ac_objext
16556
printf "$lt_simple_link_test_code" >conftest.$ac_ext
16557
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16558
_lt_linker_boilerplate=`cat conftest.err`
16562
# Allow CC to be a program name with arguments.
16567
for cc_temp in $compiler""; do
16569
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16570
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16575
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16578
# GCJ did not exist at the time GCC didn't implicitly link libc in.
16579
archive_cmds_need_lc_GCJ=no
16581
old_archive_cmds_GCJ=$old_archive_cmds
16584
## There is no encapsulation within the following macros, do not change
16585
## the running order or otherwise move them around unless you know exactly
16586
## what you are doing...
16588
lt_prog_compiler_no_builtin_flag_GCJ=
16590
if test "$GCC" = yes; then
16591
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16594
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16595
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16596
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16597
echo $ECHO_N "(cached) $ECHO_C" >&6
16599
lt_cv_prog_compiler_rtti_exceptions=no
16600
ac_outfile=conftest.$ac_objext
16601
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16602
lt_compiler_flag="-fno-rtti -fno-exceptions"
16603
# Insert the option either (1) after the last *FLAGS variable, or
16604
# (2) before a word containing "conftest.", or (3) at the end.
16605
# Note that $ac_compile itself does not contain backslashes and begins
16606
# with a dollar sign (not a hyphen), so the echo should work correctly.
16607
# The option is referenced via a variable to avoid confusing sed.
16608
lt_compile=`echo "$ac_compile" | $SED \
16609
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16610
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16611
-e 's:$: $lt_compiler_flag:'`
16612
(eval echo "\"\$as_me:16612: $lt_compile\"" >&5)
16613
(eval "$lt_compile" 2>conftest.err)
16615
cat conftest.err >&5
16616
echo "$as_me:16616: \$? = $ac_status" >&5
16617
if (exit $ac_status) && test -s "$ac_outfile"; then
16618
# The compiler can only warn and ignore the option if not recognized
16619
# So say no if there are warnings other than the usual output.
16620
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16621
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16622
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16623
lt_cv_prog_compiler_rtti_exceptions=yes
16629
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16630
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16632
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16633
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16640
lt_prog_compiler_wl_GCJ=
16641
lt_prog_compiler_pic_GCJ=
16642
lt_prog_compiler_static_GCJ=
16644
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16645
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16647
if test "$GCC" = yes; then
16648
lt_prog_compiler_wl_GCJ='-Wl,'
16649
lt_prog_compiler_static_GCJ='-static'
16653
# All AIX code is PIC.
16654
if test "$host_cpu" = ia64; then
16655
# AIX 5 now supports IA64 processor
16656
lt_prog_compiler_static_GCJ='-Bstatic'
16661
# FIXME: we need at least 68020 code to build shared libraries, but
16662
# adding the `-m68020' flag to GCC prevents building anything better,
16664
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16667
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16668
# PIC is the default for these OSes.
16671
mingw* | pw32* | os2*)
16672
# This hack is so that the source file can tell whether it is being
16673
# built for inclusion in a dll (and should export symbols for example).
16674
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16677
darwin* | rhapsody*)
16678
# PIC is the default on this platform
16679
# Common symbols not allowed in MH_DYLIB files
16680
lt_prog_compiler_pic_GCJ='-fno-common'
16684
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
16685
# Instead, we relocate shared libraries at runtime.
16689
# Just because we use GCC doesn't mean we suddenly get shared libraries
16690
# on systems that don't support them.
16691
lt_prog_compiler_can_build_shared_GCJ=no
16696
if test -d /usr/nec; then
16697
lt_prog_compiler_pic_GCJ=-Kconform_pic
16702
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16703
# not for PA HP-UX.
16709
lt_prog_compiler_pic_GCJ='-fPIC'
16715
lt_prog_compiler_pic_GCJ='-fPIC'
16719
# PORTME Check for flag to pass linker flags through the system compiler.
16722
lt_prog_compiler_wl_GCJ='-Wl,'
16723
if test "$host_cpu" = ia64; then
16724
# AIX 5 now supports IA64 processor
16725
lt_prog_compiler_static_GCJ='-Bstatic'
16727
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16731
# PIC is the default on this platform
16732
# Common symbols not allowed in MH_DYLIB files
16733
case $cc_basename in
16735
lt_prog_compiler_pic_GCJ='-qnocommon'
16736
lt_prog_compiler_wl_GCJ='-Wl,'
16741
mingw* | pw32* | os2*)
16742
# This hack is so that the source file can tell whether it is being
16743
# built for inclusion in a dll (and should export symbols for example).
16744
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16747
hpux9* | hpux10* | hpux11*)
16748
lt_prog_compiler_wl_GCJ='-Wl,'
16749
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16750
# not for PA HP-UX.
16756
lt_prog_compiler_pic_GCJ='+Z'
16759
# Is there a better lt_prog_compiler_static that works with the bundled CC?
16760
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16763
irix5* | irix6* | nonstopux*)
16764
lt_prog_compiler_wl_GCJ='-Wl,'
16765
# PIC (with -KPIC) is the default.
16766
lt_prog_compiler_static_GCJ='-non_shared'
16770
lt_prog_compiler_pic_GCJ='-KPIC'
16771
lt_prog_compiler_static_GCJ='-Bstatic'
16774
linux* | k*bsd*-gnu)
16775
case $cc_basename in
16777
lt_prog_compiler_wl_GCJ='-Wl,'
16778
lt_prog_compiler_pic_GCJ='-KPIC'
16779
lt_prog_compiler_static_GCJ='-static'
16781
pgcc* | pgf77* | pgf90* | pgf95*)
16782
# Portland Group compilers (*not* the Pentium gcc compiler,
16783
# which looks to be a dead project)
16784
lt_prog_compiler_wl_GCJ='-Wl,'
16785
lt_prog_compiler_pic_GCJ='-fpic'
16786
lt_prog_compiler_static_GCJ='-Bstatic'
16789
lt_prog_compiler_wl_GCJ='-Wl,'
16790
# All Alpha code is PIC.
16791
lt_prog_compiler_static_GCJ='-non_shared'
16796
osf3* | osf4* | osf5*)
16797
lt_prog_compiler_wl_GCJ='-Wl,'
16798
# All OSF/1 code is PIC.
16799
lt_prog_compiler_static_GCJ='-non_shared'
16803
lt_prog_compiler_pic_GCJ='-KPIC'
16804
lt_prog_compiler_static_GCJ='-Bstatic'
16805
case $cc_basename in
16806
f77* | f90* | f95*)
16807
lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16809
lt_prog_compiler_wl_GCJ='-Wl,';;
16814
lt_prog_compiler_wl_GCJ='-Qoption ld '
16815
lt_prog_compiler_pic_GCJ='-PIC'
16816
lt_prog_compiler_static_GCJ='-Bstatic'
16819
sysv4 | sysv4.2uw2* | sysv4.3*)
16820
lt_prog_compiler_wl_GCJ='-Wl,'
16821
lt_prog_compiler_pic_GCJ='-KPIC'
16822
lt_prog_compiler_static_GCJ='-Bstatic'
16826
if test -d /usr/nec ;then
16827
lt_prog_compiler_pic_GCJ='-Kconform_pic'
16828
lt_prog_compiler_static_GCJ='-Bstatic'
16832
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16833
lt_prog_compiler_wl_GCJ='-Wl,'
16834
lt_prog_compiler_pic_GCJ='-KPIC'
16835
lt_prog_compiler_static_GCJ='-Bstatic'
16839
lt_prog_compiler_wl_GCJ='-Wl,'
16840
lt_prog_compiler_can_build_shared_GCJ=no
16844
lt_prog_compiler_pic_GCJ='-pic'
16845
lt_prog_compiler_static_GCJ='-Bstatic'
16849
lt_prog_compiler_can_build_shared_GCJ=no
16854
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16855
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16858
# Check to make sure the PIC flag actually works.
16860
if test -n "$lt_prog_compiler_pic_GCJ"; then
16862
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16863
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16864
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16865
echo $ECHO_N "(cached) $ECHO_C" >&6
16867
lt_prog_compiler_pic_works_GCJ=no
16868
ac_outfile=conftest.$ac_objext
16869
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16870
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16871
# Insert the option either (1) after the last *FLAGS variable, or
16872
# (2) before a word containing "conftest.", or (3) at the end.
16873
# Note that $ac_compile itself does not contain backslashes and begins
16874
# with a dollar sign (not a hyphen), so the echo should work correctly.
16875
# The option is referenced via a variable to avoid confusing sed.
16876
lt_compile=`echo "$ac_compile" | $SED \
16877
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16878
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16879
-e 's:$: $lt_compiler_flag:'`
16880
(eval echo "\"\$as_me:16880: $lt_compile\"" >&5)
16881
(eval "$lt_compile" 2>conftest.err)
16883
cat conftest.err >&5
16884
echo "$as_me:16884: \$? = $ac_status" >&5
16885
if (exit $ac_status) && test -s "$ac_outfile"; then
16886
# The compiler can only warn and ignore the option if not recognized
16887
# So say no if there are warnings other than the usual output.
16888
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16889
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16890
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16891
lt_prog_compiler_pic_works_GCJ=yes
16897
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16898
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16900
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16901
case $lt_prog_compiler_pic_GCJ in
16903
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16906
lt_prog_compiler_pic_GCJ=
16907
lt_prog_compiler_can_build_shared_GCJ=no
16912
# For platforms which do not support PIC, -DPIC is meaningless:
16914
lt_prog_compiler_pic_GCJ=
16917
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16922
# Check to make sure the static flag actually works.
16924
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16925
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16926
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16927
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16928
echo $ECHO_N "(cached) $ECHO_C" >&6
16930
lt_prog_compiler_static_works_GCJ=no
16931
save_LDFLAGS="$LDFLAGS"
16932
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16933
printf "$lt_simple_link_test_code" > conftest.$ac_ext
16934
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16935
# The linker can only warn and ignore the option if not recognized
16936
# So say no if there are warnings
16937
if test -s conftest.err; then
16938
# Append any errors to the config.log.
16939
cat conftest.err 1>&5
16940
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16941
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16942
if diff conftest.exp conftest.er2 >/dev/null; then
16943
lt_prog_compiler_static_works_GCJ=yes
16946
lt_prog_compiler_static_works_GCJ=yes
16950
LDFLAGS="$save_LDFLAGS"
16953
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16954
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16956
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16959
lt_prog_compiler_static_GCJ=
16963
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16964
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16965
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16966
echo $ECHO_N "(cached) $ECHO_C" >&6
16968
lt_cv_prog_compiler_c_o_GCJ=no
16969
$rm -r conftest 2>/dev/null
16973
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16975
lt_compiler_flag="-o out/conftest2.$ac_objext"
16976
# Insert the option either (1) after the last *FLAGS variable, or
16977
# (2) before a word containing "conftest.", or (3) at the end.
16978
# Note that $ac_compile itself does not contain backslashes and begins
16979
# with a dollar sign (not a hyphen), so the echo should work correctly.
16980
lt_compile=`echo "$ac_compile" | $SED \
16981
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16982
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16983
-e 's:$: $lt_compiler_flag:'`
16984
(eval echo "\"\$as_me:16984: $lt_compile\"" >&5)
16985
(eval "$lt_compile" 2>out/conftest.err)
16987
cat out/conftest.err >&5
16988
echo "$as_me:16988: \$? = $ac_status" >&5
16989
if (exit $ac_status) && test -s out/conftest2.$ac_objext
16991
# The compiler can only warn and ignore the option if not recognized
16992
# So say no if there are warnings
16993
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16994
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16995
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16996
lt_cv_prog_compiler_c_o_GCJ=yes
17001
# SGI C++ compiler will create directory out/ii_files/ for
17002
# template instantiation
17003
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17004
$rm out/* && rmdir out
17010
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17011
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17014
hard_links="nottested"
17015
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17016
# do not overwrite the value of need_locks provided by the user
17017
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17018
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17021
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17023
ln conftest.a conftest.b 2>&5 || hard_links=no
17024
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17025
{ echo "$as_me:$LINENO: result: $hard_links" >&5
17026
echo "${ECHO_T}$hard_links" >&6; }
17027
if test "$hard_links" = no; then
17028
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17029
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17036
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17037
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17040
allow_undefined_flag_GCJ=
17041
enable_shared_with_static_runtimes_GCJ=no
17043
archive_expsym_cmds_GCJ=
17044
old_archive_From_new_cmds_GCJ=
17045
old_archive_from_expsyms_cmds_GCJ=
17046
export_dynamic_flag_spec_GCJ=
17047
whole_archive_flag_spec_GCJ=
17048
thread_safe_flag_spec_GCJ=
17049
hardcode_libdir_flag_spec_GCJ=
17050
hardcode_libdir_flag_spec_ld_GCJ=
17051
hardcode_libdir_separator_GCJ=
17052
hardcode_direct_GCJ=no
17053
hardcode_minus_L_GCJ=no
17054
hardcode_shlibpath_var_GCJ=unsupported
17055
link_all_deplibs_GCJ=unknown
17056
hardcode_automatic_GCJ=no
17058
module_expsym_cmds_GCJ=
17059
always_export_symbols_GCJ=no
17060
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17061
# include_expsyms should be a list of space-separated symbols to be *always*
17062
# included in the symbol list
17063
include_expsyms_GCJ=
17064
# exclude_expsyms can be an extended regexp of symbols to exclude
17065
# it will be wrapped by ` (' and `)$', so one must not match beginning or
17066
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17067
# as well as any symbol that contains `d'.
17068
exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17069
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17070
# platforms (ab)use it in PIC code, but their linkers get confused if
17071
# the symbol is explicitly referenced. Since portable code cannot
17072
# rely on this symbol name, it's probably fine to never include it in
17073
# preloaded symbol tables.
17074
extract_expsyms_cmds=
17075
# Just being paranoid about ensuring that cc_basename is set.
17076
for cc_temp in $compiler""; do
17078
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17079
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17084
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17087
cygwin* | mingw* | pw32*)
17088
# FIXME: the MSVC++ port hasn't been tested in a loooong time
17089
# When not using gcc, we currently assume that we are using
17090
# Microsoft Visual C++.
17091
if test "$GCC" != yes; then
17096
# we just hope/assume this is gcc and not c89 (= MSVC++)
17105
if test "$with_gnu_ld" = yes; then
17106
# If archive_cmds runs LD, not CC, wlarc should be empty
17109
# Set some defaults for GNU ld with shared library support. These
17110
# are reset later if shared libraries are not supported. Putting them
17111
# here allows them to be overridden if necessary.
17112
runpath_var=LD_RUN_PATH
17113
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17114
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17115
# ancient GNU ld didn't support --whole-archive et. al.
17116
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17117
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17119
whole_archive_flag_spec_GCJ=
17121
supports_anon_versioning=no
17122
case `$LD -v 2>/dev/null` in
17123
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17124
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17125
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17126
*\ 2.11.*) ;; # other 2.11 versions
17127
*) supports_anon_versioning=yes ;;
17130
# See if GNU ld supports shared libraries.
17132
aix3* | aix4* | aix5*)
17133
# On AIX/PPC, the GNU linker is very broken
17134
if test "$host_cpu" != ia64; then
17138
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17139
*** to be unable to reliably create shared libraries on AIX.
17140
*** Therefore, libtool is disabling shared libraries support. If you
17141
*** really care for shared libraries, you may want to modify your PATH
17142
*** so that a non-GNU linker is found, and then restart.
17149
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)'
17150
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17151
hardcode_minus_L_GCJ=yes
17153
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17154
# that the semantics of dynamic libraries on AmigaOS, at least up
17155
# to version 4, is to share data among multiple programs linked
17156
# with the same dynamic library. Since this doesn't match the
17157
# behavior of shared libraries on other platforms, we can't use
17163
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17164
allow_undefined_flag_GCJ=unsupported
17165
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17166
# support --undefined. This deserves some investigation. FIXME
17167
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17173
cygwin* | mingw* | pw32*)
17174
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17175
# as there is no search path for DLLs.
17176
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17177
allow_undefined_flag_GCJ=unsupported
17178
always_export_symbols_GCJ=no
17179
enable_shared_with_static_runtimes_GCJ=yes
17180
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17182
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17183
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17184
# If the export-symbols file already is a .def file (1st line
17185
# is EXPORTS), use it as is; otherwise, prepend...
17186
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17187
cp $export_symbols $output_objdir/$soname.def;
17189
echo EXPORTS > $output_objdir/$soname.def;
17190
cat $export_symbols >> $output_objdir/$soname.def;
17192
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17199
hardcode_direct_GCJ=no
17200
hardcode_shlibpath_var_GCJ=no
17201
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17202
export_dynamic_flag_spec_GCJ='${wl}-E'
17203
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17204
# Instead, shared libraries are loaded at an image base (0x10000000 by
17205
# default) and relocated if they conflict, which is a slow very memory
17206
# consuming and fragmenting process. To avoid this, we pick a random,
17207
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17208
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
17209
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'
17210
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'
17213
linux* | k*bsd*-gnu)
17214
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17216
case $cc_basename,$host_cpu in
17217
pgcc*) # Portland Group C compiler
17218
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'
17219
tmp_addflag=' $pic_flag'
17221
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17222
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'
17223
tmp_addflag=' $pic_flag -Mnomain' ;;
17224
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17225
tmp_addflag=' -i_dynamic' ;;
17226
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17227
tmp_addflag=' -i_dynamic -nofor_main' ;;
17228
ifc* | ifort*) # Intel Fortran compiler
17229
tmp_addflag=' -nofor_main' ;;
17231
archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17233
if test $supports_anon_versioning = yes; then
17234
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17235
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17236
$echo "local: *; };" >> $output_objdir/$libname.ver~
17237
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17239
link_all_deplibs_GCJ=no
17245
netbsd* | netbsdelf*-gnu)
17246
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17247
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17250
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17251
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17256
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17260
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17261
*** create shared libraries on Solaris systems. Therefore, libtool
17262
*** is disabling shared libraries support. We urge you to upgrade GNU
17263
*** binutils to release 2.9.1 or newer. Another option is to modify
17264
*** your PATH or compiler configuration so that the native linker is
17265
*** used, and then restart.
17268
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17269
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17270
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17276
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17277
case `$LD -v 2>&1` in
17278
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17282
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17283
*** reliably create shared libraries on SCO systems. Therefore, libtool
17284
*** is disabling shared libraries support. We urge you to upgrade GNU
17285
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17286
*** your PATH or compiler configuration so that the native linker is
17287
*** used, and then restart.
17292
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17293
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17294
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17295
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17304
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17306
hardcode_direct_GCJ=yes
17307
hardcode_shlibpath_var_GCJ=no
17311
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17312
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17313
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17320
if test "$ld_shlibs_GCJ" = no; then
17322
hardcode_libdir_flag_spec_GCJ=
17323
export_dynamic_flag_spec_GCJ=
17324
whole_archive_flag_spec_GCJ=
17327
# PORTME fill in a description of your system's linker (not GNU ld)
17330
allow_undefined_flag_GCJ=unsupported
17331
always_export_symbols_GCJ=yes
17332
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'
17333
# Note: this linker hardcodes the directories in LIBPATH if there
17334
# are no directories specified by -L.
17335
hardcode_minus_L_GCJ=yes
17336
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17337
# Neither direct hardcoding nor static linking is supported with a
17339
hardcode_direct_GCJ=unsupported
17344
if test "$host_cpu" = ia64; then
17345
# On IA64, the linker does run time linking by default, so we don't
17346
# have to do anything special.
17347
aix_use_runtimelinking=no
17348
exp_sym_flag='-Bexport'
17351
# If we're using GNU nm, then we don't want the "-C" option.
17352
# -C means demangle to AIX nm, but means don't demangle with GNU nm
17353
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17354
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'
17356
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'
17358
aix_use_runtimelinking=no
17360
# Test if we are trying to use run time linking or normal
17361
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17362
# need to do runtime linking.
17363
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17364
for ld_flag in $LDFLAGS; do
17365
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17366
aix_use_runtimelinking=yes
17373
exp_sym_flag='-bexport'
17374
no_entry_flag='-bnoentry'
17377
# When large executables or shared objects are built, AIX ld can
17378
# have problems creating the table of contents. If linking a library
17379
# or program results in "error TOC overflow" add -mminimal-toc to
17380
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17381
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17383
archive_cmds_GCJ=''
17384
hardcode_direct_GCJ=yes
17385
hardcode_libdir_separator_GCJ=':'
17386
link_all_deplibs_GCJ=yes
17388
if test "$GCC" = yes; then
17389
case $host_os in aix4.[012]|aix4.[012].*)
17390
# We only want to do this on AIX 4.2 and lower, the check
17391
# below for broken collect2 doesn't work under 4.3+
17392
collect2name=`${CC} -print-prog-name=collect2`
17393
if test -f "$collect2name" && \
17394
strings "$collect2name" | grep resolve_lib_name >/dev/null
17396
# We have reworked collect2
17397
hardcode_direct_GCJ=yes
17399
# We have old collect2
17400
hardcode_direct_GCJ=unsupported
17401
# It fails to find uninstalled libraries when the uninstalled
17402
# path is not listed in the libpath. Setting hardcode_minus_L
17403
# to unsupported forces relinking
17404
hardcode_minus_L_GCJ=yes
17405
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17406
hardcode_libdir_separator_GCJ=
17410
shared_flag='-shared'
17411
if test "$aix_use_runtimelinking" = yes; then
17412
shared_flag="$shared_flag "'${wl}-G'
17416
if test "$host_cpu" = ia64; then
17417
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17418
# chokes on -Wl,-G. The following line is correct:
17421
if test "$aix_use_runtimelinking" = yes; then
17422
shared_flag='${wl}-G'
17424
shared_flag='${wl}-bM:SRE'
17429
# It seems that -bexpall does not export symbols beginning with
17430
# underscore (_), so it is better to generate a list of symbols to export.
17431
always_export_symbols_GCJ=yes
17432
if test "$aix_use_runtimelinking" = yes; then
17433
# Warning - without using the other runtime loading flags (-brtl),
17434
# -berok will link without error, but may produce a broken library.
17435
allow_undefined_flag_GCJ='-berok'
17436
# Determine the default libpath from the value encoded in an empty executable.
17437
cat >conftest.$ac_ext <<_ACEOF
17440
cat confdefs.h >>conftest.$ac_ext
17441
cat >>conftest.$ac_ext <<_ACEOF
17442
/* end confdefs.h. */
17452
rm -f conftest.$ac_objext conftest$ac_exeext
17453
if { (ac_try="$ac_link"
17454
case "(($ac_try" in
17455
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17456
*) ac_try_echo=$ac_try;;
17458
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17459
(eval "$ac_link") 2>conftest.er1
17461
grep -v '^ *+' conftest.er1 >conftest.err
17463
cat conftest.err >&5
17464
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17465
(exit $ac_status); } && {
17466
test -z "$ac_c_werror_flag" ||
17467
test ! -s conftest.err
17468
} && test -s conftest$ac_exeext &&
17469
$as_test_x conftest$ac_exeext; then
17471
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17473
# Check for a 64-bit object if we didn't find anything.
17474
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; }
17477
echo "$as_me: failed program was:" >&5
17478
sed 's/^/| /' conftest.$ac_ext >&5
17483
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17484
conftest$ac_exeext conftest.$ac_ext
17485
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17487
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17488
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"
17490
if test "$host_cpu" = ia64; then
17491
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17492
allow_undefined_flag_GCJ="-z nodefs"
17493
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"
17495
# Determine the default libpath from the value encoded in an empty executable.
17496
cat >conftest.$ac_ext <<_ACEOF
17499
cat confdefs.h >>conftest.$ac_ext
17500
cat >>conftest.$ac_ext <<_ACEOF
17501
/* end confdefs.h. */
17511
rm -f conftest.$ac_objext conftest$ac_exeext
17512
if { (ac_try="$ac_link"
17513
case "(($ac_try" in
17514
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17515
*) ac_try_echo=$ac_try;;
17517
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17518
(eval "$ac_link") 2>conftest.er1
17520
grep -v '^ *+' conftest.er1 >conftest.err
17522
cat conftest.err >&5
17523
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17524
(exit $ac_status); } && {
17525
test -z "$ac_c_werror_flag" ||
17526
test ! -s conftest.err
17527
} && test -s conftest$ac_exeext &&
17528
$as_test_x conftest$ac_exeext; then
17530
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17532
# Check for a 64-bit object if we didn't find anything.
17533
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; }
17536
echo "$as_me: failed program was:" >&5
17537
sed 's/^/| /' conftest.$ac_ext >&5
17542
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17543
conftest$ac_exeext conftest.$ac_ext
17544
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17546
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17547
# Warning - without using the other run time loading flags,
17548
# -berok will link without error, but may produce a broken library.
17549
no_undefined_flag_GCJ=' ${wl}-bernotok'
17550
allow_undefined_flag_GCJ=' ${wl}-berok'
17551
# Exported symbols can be pulled into shared objects from archives
17552
whole_archive_flag_spec_GCJ='$convenience'
17553
archive_cmds_need_lc_GCJ=yes
17554
# This is similar to how AIX traditionally builds its shared libraries.
17555
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'
17561
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)'
17562
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17563
hardcode_minus_L_GCJ=yes
17564
# see comment about different semantics on the GNU ld section
17569
export_dynamic_flag_spec_GCJ=-rdynamic
17572
cygwin* | mingw* | pw32*)
17573
# When not using gcc, we currently assume that we are using
17574
# Microsoft Visual C++.
17575
# hardcode_libdir_flag_spec is actually meaningless, as there is
17576
# no search path for DLLs.
17577
hardcode_libdir_flag_spec_GCJ=' '
17578
allow_undefined_flag_GCJ=unsupported
17579
# Tell ltmain to make .lib files, not .a files.
17581
# Tell ltmain to make .dll files, not .so files.
17583
# FIXME: Setting linknames here is a bad hack.
17584
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17585
# The linker will automatically build a .lib file if we build a DLL.
17586
old_archive_From_new_cmds_GCJ='true'
17587
# FIXME: Should let the user specify the lib program.
17588
old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17589
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17590
enable_shared_with_static_runtimes_GCJ=yes
17593
darwin* | rhapsody*)
17595
rhapsody* | darwin1.[012])
17596
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17599
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17600
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17602
case ${MACOSX_DEPLOYMENT_TARGET} in
17604
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17607
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17613
archive_cmds_need_lc_GCJ=no
17614
hardcode_direct_GCJ=no
17615
hardcode_automatic_GCJ=yes
17616
hardcode_shlibpath_var_GCJ=unsupported
17617
whole_archive_flag_spec_GCJ=''
17618
link_all_deplibs_GCJ=yes
17619
if test "$GCC" = yes ; then
17620
output_verbose_link_cmd='echo'
17621
archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17622
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17623
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17624
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}'
17625
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}'
17627
case $cc_basename in
17629
output_verbose_link_cmd='echo'
17630
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17631
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17632
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17633
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}'
17634
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}'
17644
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17645
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17646
hardcode_shlibpath_var_GCJ=no
17653
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17654
# support. Future versions do this automatically, but an explicit c++rt0.o
17655
# does not break anything, and helps significantly (at the cost of a little
17658
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17659
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17660
hardcode_direct_GCJ=yes
17661
hardcode_shlibpath_var_GCJ=no
17664
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
17666
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17667
hardcode_direct_GCJ=yes
17668
hardcode_minus_L_GCJ=yes
17669
hardcode_shlibpath_var_GCJ=no
17672
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17673
freebsd* | dragonfly*)
17674
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17675
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17676
hardcode_direct_GCJ=yes
17677
hardcode_shlibpath_var_GCJ=no
17681
if test "$GCC" = yes; then
17682
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'
17684
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'
17686
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17687
hardcode_libdir_separator_GCJ=:
17688
hardcode_direct_GCJ=yes
17690
# hardcode_minus_L: Not really in the search PATH,
17691
# but as the default location of the library.
17692
hardcode_minus_L_GCJ=yes
17693
export_dynamic_flag_spec_GCJ='${wl}-E'
17697
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17698
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17700
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17702
if test "$with_gnu_ld" = no; then
17703
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17704
hardcode_libdir_separator_GCJ=:
17706
hardcode_direct_GCJ=yes
17707
export_dynamic_flag_spec_GCJ='${wl}-E'
17709
# hardcode_minus_L: Not really in the search PATH,
17710
# but as the default location of the library.
17711
hardcode_minus_L_GCJ=yes
17716
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17719
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17722
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17725
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17731
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17734
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17737
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17741
if test "$with_gnu_ld" = no; then
17742
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17743
hardcode_libdir_separator_GCJ=:
17747
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17748
hardcode_direct_GCJ=no
17749
hardcode_shlibpath_var_GCJ=no
17752
hardcode_direct_GCJ=yes
17753
export_dynamic_flag_spec_GCJ='${wl}-E'
17755
# hardcode_minus_L: Not really in the search PATH,
17756
# but as the default location of the library.
17757
hardcode_minus_L_GCJ=yes
17763
irix5* | irix6* | nonstopux*)
17764
if test "$GCC" = yes; then
17765
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'
17767
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'
17768
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17770
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17771
hardcode_libdir_separator_GCJ=:
17772
link_all_deplibs_GCJ=yes
17775
netbsd* | netbsdelf*-gnu)
17776
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17777
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17779
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17781
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17782
hardcode_direct_GCJ=yes
17783
hardcode_shlibpath_var_GCJ=no
17787
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17788
hardcode_direct_GCJ=yes
17789
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17790
hardcode_libdir_separator_GCJ=:
17791
hardcode_shlibpath_var_GCJ=no
17795
hardcode_direct_GCJ=yes
17796
hardcode_shlibpath_var_GCJ=no
17797
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17798
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17799
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17800
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17801
export_dynamic_flag_spec_GCJ='${wl}-E'
17804
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17805
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17806
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17809
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17810
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17817
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17818
hardcode_minus_L_GCJ=yes
17819
allow_undefined_flag_GCJ=unsupported
17820
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'
17821
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17825
if test "$GCC" = yes; then
17826
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17827
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'
17829
allow_undefined_flag_GCJ=' -expect_unresolved \*'
17830
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'
17832
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17833
hardcode_libdir_separator_GCJ=:
17836
osf4* | osf5*) # as osf3* with the addition of -msym flag
17837
if test "$GCC" = yes; then
17838
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17839
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'
17840
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17842
allow_undefined_flag_GCJ=' -expect_unresolved \*'
17843
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'
17844
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~
17845
$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'
17847
# Both c and cxx compiler support -rpath directly
17848
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17850
hardcode_libdir_separator_GCJ=:
17854
no_undefined_flag_GCJ=' -z text'
17855
if test "$GCC" = yes; then
17857
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17858
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17859
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17862
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17863
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17864
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17866
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17867
hardcode_shlibpath_var_GCJ=no
17869
solaris2.[0-5] | solaris2.[0-5].*) ;;
17871
# The compiler driver will combine linker options so we
17872
# cannot just pass the convience library names through
17873
# without $wl, iff we do not link with $LD.
17874
# Luckily, gcc supports the same syntax we need for Sun Studio.
17875
# Supported since Solaris 2.6 (maybe 2.5.1?)
17878
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17880
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' ;;
17883
link_all_deplibs_GCJ=yes
17887
if test "x$host_vendor" = xsequent; then
17888
# Use $CC to link under sequent, because it throws in some extra .o
17889
# files that make .init and .fini sections work.
17890
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17892
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17894
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17895
hardcode_direct_GCJ=yes
17896
hardcode_minus_L_GCJ=yes
17897
hardcode_shlibpath_var_GCJ=no
17901
case $host_vendor in
17903
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17904
hardcode_direct_GCJ=yes # is this really true???
17907
## LD is ld it makes a PLAMLIB
17908
## CC just makes a GrossModule.
17909
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17910
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17911
hardcode_direct_GCJ=no
17914
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17915
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17918
runpath_var='LD_RUN_PATH'
17919
hardcode_shlibpath_var_GCJ=no
17923
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17924
hardcode_shlibpath_var_GCJ=no
17925
export_dynamic_flag_spec_GCJ='-Bexport'
17929
if test -d /usr/nec; then
17930
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17931
hardcode_shlibpath_var_GCJ=no
17932
runpath_var=LD_RUN_PATH
17933
hardcode_runpath_var=yes
17938
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17939
no_undefined_flag_GCJ='${wl}-z,text'
17940
archive_cmds_need_lc_GCJ=no
17941
hardcode_shlibpath_var_GCJ=no
17942
runpath_var='LD_RUN_PATH'
17944
if test "$GCC" = yes; then
17945
archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17946
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17948
archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17949
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17953
sysv5* | sco3.2v5* | sco5v6*)
17954
# Note: We can NOT use -z defs as we might desire, because we do not
17955
# link with -lc, and that would cause any symbols used from libc to
17956
# always be unresolved, which means just about no library would
17957
# ever link correctly. If we're not using GNU ld we use -z text
17958
# though, which does catch some bad symbols but isn't as heavy-handed
17960
no_undefined_flag_GCJ='${wl}-z,text'
17961
allow_undefined_flag_GCJ='${wl}-z,nodefs'
17962
archive_cmds_need_lc_GCJ=no
17963
hardcode_shlibpath_var_GCJ=no
17964
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17965
hardcode_libdir_separator_GCJ=':'
17966
link_all_deplibs_GCJ=yes
17967
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17968
runpath_var='LD_RUN_PATH'
17970
if test "$GCC" = yes; then
17971
archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17972
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17974
archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17975
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17980
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17981
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17982
hardcode_shlibpath_var_GCJ=no
17991
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17992
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17993
test "$ld_shlibs_GCJ" = no && can_build_shared=no
17996
# Do we need to explicitly link libc?
17998
case "x$archive_cmds_need_lc_GCJ" in
18000
# Assume -lc should be added
18001
archive_cmds_need_lc_GCJ=yes
18003
if test "$enable_shared" = yes && test "$GCC" = yes; then
18004
case $archive_cmds_GCJ in
18006
# FIXME: we may have to deal with multi-command sequences.
18009
# Test whether the compiler implicitly links with -lc since on some
18010
# systems, -lgcc has to come before -lc. If gcc already passes -lc
18011
# to ld, don't add -lc before -lgcc.
18012
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18013
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18015
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18017
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18018
(eval $ac_compile) 2>&5
18020
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18021
(exit $ac_status); } 2>conftest.err; then
18024
libobjs=conftest.$ac_objext
18026
wl=$lt_prog_compiler_wl_GCJ
18027
pic_flag=$lt_prog_compiler_pic_GCJ
18033
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18034
allow_undefined_flag_GCJ=
18035
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18036
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18038
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18039
(exit $ac_status); }
18041
archive_cmds_need_lc_GCJ=no
18043
archive_cmds_need_lc_GCJ=yes
18045
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18047
cat conftest.err 1>&5
18050
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18051
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18058
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18059
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18060
library_names_spec=
18061
libname_spec='lib$name'
18065
postuninstall_cmds=
18069
shlibpath_overrides_runpath=unknown
18071
dynamic_linker="$host_os ld.so"
18072
sys_lib_dlsearch_path_spec="/lib /usr/lib"
18073
if test "$GCC" = yes; then
18074
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18075
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18076
# if the path contains ";" then we assume it to be the separator
18077
# otherwise default to the standard path separator (i.e. ":") - it is
18078
# assumed that no part of a normal pathname contains ";" but that should
18079
# okay in the real world where ";" in dirpaths is itself problematic.
18080
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18082
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18085
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18087
need_lib_prefix=unknown
18088
hardcode_into_libs=no
18090
# when you set need_version to no, make sure it does not cause -set_version
18091
# flags to be left without arguments
18092
need_version=unknown
18097
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18098
shlibpath_var=LIBPATH
18100
# AIX 3 has no versioning support, so we append a major version to the name.
18101
soname_spec='${libname}${release}${shared_ext}$major'
18108
hardcode_into_libs=yes
18109
if test "$host_cpu" = ia64; then
18110
# AIX 5 supports IA64
18111
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18112
shlibpath_var=LD_LIBRARY_PATH
18114
# With GCC up to 2.95.x, collect2 would create an import file
18115
# for dependence libraries. The import file would start with
18116
# the line `#! .'. This would cause the generated library to
18117
# depend on `.', always an invalid library. This was fixed in
18118
# development snapshots of GCC prior to 3.0.
18120
aix4 | aix4.[01] | aix4.[01].*)
18121
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18123
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18126
can_build_shared=no
18130
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18131
# soname into executable. Probably we can add versioning support to
18132
# collect2, so additional links can be useful in future.
18133
if test "$aix_use_runtimelinking" = yes; then
18134
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
18135
# instead of lib<name>.a to let people know that these are not
18136
# typical AIX shared libraries.
18137
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18139
# We preserve .a as extension for shared libraries through AIX4.2
18140
# and later when we are not doing run time linking.
18141
library_names_spec='${libname}${release}.a $libname.a'
18142
soname_spec='${libname}${release}${shared_ext}$major'
18144
shlibpath_var=LIBPATH
18149
library_names_spec='$libname.ixlibrary $libname.a'
18150
# Create ${libname}_ixlibrary.a entries in /sys/libs.
18151
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'
18155
library_names_spec='${libname}${shared_ext}'
18156
dynamic_linker="$host_os ld.so"
18157
shlibpath_var=LIBRARY_PATH
18163
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18164
soname_spec='${libname}${release}${shared_ext}$major'
18165
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18166
shlibpath_var=LD_LIBRARY_PATH
18167
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18168
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18169
# the default ld.so.conf also contains /usr/contrib/lib and
18170
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18171
# libtool to hard-code these into programs
18174
cygwin* | mingw* | pw32*)
18175
version_type=windows
18180
case $GCC,$host_os in
18181
yes,cygwin* | yes,mingw* | yes,pw32*)
18182
library_names_spec='$libname.dll.a'
18183
# DLL is installed to $(libdir)/../bin by postinstall_cmds
18184
postinstall_cmds='base_file=`basename \${file}`~
18185
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18186
dldir=$destdir/`dirname \$dlpath`~
18187
test -d \$dldir || mkdir -p \$dldir~
18188
$install_prog $dir/$dlname \$dldir/$dlname~
18189
chmod a+x \$dldir/$dlname'
18190
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18191
dlpath=$dir/\$dldll~
18193
shlibpath_overrides_runpath=yes
18197
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
18198
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18199
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18202
# MinGW DLLs use traditional 'lib' prefix
18203
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18204
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18205
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18206
# It is most probably a Windows format PATH printed by
18207
# mingw gcc, but we are running on Cygwin. Gcc prints its search
18208
# path with ; separators, and with drive letters. We can handle the
18209
# drive letters (cygwin fileutils understands them), so leave them,
18210
# especially as we might pass files found there to a mingw objdump,
18211
# which wouldn't understand a cygwinified path. Ahh.
18212
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18214
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18218
# pw32 DLLs use 'pw' prefix rather than 'lib'
18219
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18225
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18228
dynamic_linker='Win32 ld.exe'
18229
# FIXME: first we should search . and the directory the executable is in
18233
darwin* | rhapsody*)
18234
dynamic_linker="$host_os dyld"
18235
version_type=darwin
18238
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18239
soname_spec='${libname}${release}${major}$shared_ext'
18240
shlibpath_overrides_runpath=yes
18241
shlibpath_var=DYLD_LIBRARY_PATH
18242
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18243
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18244
if test "$GCC" = yes; then
18245
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"`
18247
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18249
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18256
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18257
soname_spec='${libname}${release}${shared_ext}$major'
18258
shlibpath_var=LD_LIBRARY_PATH
18265
freebsd* | dragonfly*)
18266
# DragonFly does not have aout. When/if they implement a new
18267
# versioning mechanism, adjust this.
18268
if test -x /usr/bin/objformat; then
18269
objformat=`/usr/bin/objformat`
18272
freebsd[123]*) objformat=aout ;;
18273
*) objformat=elf ;;
18276
version_type=freebsd-$objformat
18277
case $version_type in
18279
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18284
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18288
shlibpath_var=LD_LIBRARY_PATH
18291
shlibpath_overrides_runpath=yes
18293
freebsd3.[01]* | freebsdelf3.[01]*)
18294
shlibpath_overrides_runpath=yes
18295
hardcode_into_libs=yes
18297
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18298
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18299
shlibpath_overrides_runpath=no
18300
hardcode_into_libs=yes
18302
freebsd*) # from 4.6 on
18303
shlibpath_overrides_runpath=yes
18304
hardcode_into_libs=yes
18313
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18314
soname_spec='${libname}${release}${shared_ext}$major'
18315
shlibpath_var=LD_LIBRARY_PATH
18316
hardcode_into_libs=yes
18319
hpux9* | hpux10* | hpux11*)
18320
# Give a soname corresponding to the major version so that dld.sl refuses to
18321
# link against other versions.
18328
hardcode_into_libs=yes
18329
dynamic_linker="$host_os dld.so"
18330
shlibpath_var=LD_LIBRARY_PATH
18331
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18332
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18333
soname_spec='${libname}${release}${shared_ext}$major'
18334
if test "X$HPUX_IA64_MODE" = X32; then
18335
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18337
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18339
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18343
hardcode_into_libs=yes
18344
dynamic_linker="$host_os dld.sl"
18345
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18346
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18347
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18348
soname_spec='${libname}${release}${shared_ext}$major'
18349
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18350
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18354
dynamic_linker="$host_os dld.sl"
18355
shlibpath_var=SHLIB_PATH
18356
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18357
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18358
soname_spec='${libname}${release}${shared_ext}$major'
18361
# HP-UX runs *really* slowly unless shared libraries are mode 555.
18362
postinstall_cmds='chmod 555 $lib'
18369
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18370
soname_spec='${libname}${release}${shared_ext}$major'
18371
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18372
shlibpath_var=LD_LIBRARY_PATH
18373
shlibpath_overrides_runpath=no
18374
hardcode_into_libs=yes
18377
irix5* | irix6* | nonstopux*)
18379
nonstopux*) version_type=nonstopux ;;
18381
if test "$lt_cv_prog_gnu_ld" = yes; then
18389
soname_spec='${libname}${release}${shared_ext}$major'
18390
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18392
irix5* | nonstopux*)
18393
libsuff= shlibsuff=
18396
case $LD in # libtool.m4 will add one of these switches to LD
18397
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18398
libsuff= shlibsuff= libmagic=32-bit;;
18399
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18400
libsuff=32 shlibsuff=N32 libmagic=N32;;
18401
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18402
libsuff=64 shlibsuff=64 libmagic=64-bit;;
18403
*) libsuff= shlibsuff= libmagic=never-match;;
18407
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18408
shlibpath_overrides_runpath=no
18409
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18410
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18411
hardcode_into_libs=yes
18414
# No shared lib support for Linux oldld, aout, or coff.
18415
linux*oldld* | linux*aout* | linux*coff*)
18419
# This must be Linux ELF.
18420
linux* | k*bsd*-gnu)
18424
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18425
soname_spec='${libname}${release}${shared_ext}$major'
18426
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18427
shlibpath_var=LD_LIBRARY_PATH
18428
shlibpath_overrides_runpath=no
18429
# This implies no fast_install, which is unacceptable.
18430
# Some rework will be needed to allow for fast_install
18431
# before this can be enabled.
18432
hardcode_into_libs=yes
18434
# Append ld.so.conf contents to the search path
18435
if test -f /etc/ld.so.conf; then
18436
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' ' '`
18437
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18440
# We used to test for /lib/ld.so.1 and disable shared libraries on
18441
# powerpc, because MkLinux only supported shared libraries with the
18442
# GNU dynamic linker. Since this was broken with cross compilers,
18443
# most powerpc-linux boxes support dynamic linking these days and
18444
# people can always --disable-shared, the test was removed, and we
18445
# assume the GNU/Linux dynamic linker is in use.
18446
dynamic_linker='GNU/Linux ld.so'
18453
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18454
soname_spec='${libname}${release}${shared_ext}$major'
18455
shlibpath_var=LD_LIBRARY_PATH
18456
shlibpath_overrides_runpath=no
18457
hardcode_into_libs=yes
18458
dynamic_linker='NetBSD ld.elf_so'
18465
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18466
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18467
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18468
dynamic_linker='NetBSD (a.out) ld.so'
18470
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18471
soname_spec='${libname}${release}${shared_ext}$major'
18472
dynamic_linker='NetBSD ld.elf_so'
18474
shlibpath_var=LD_LIBRARY_PATH
18475
shlibpath_overrides_runpath=yes
18476
hardcode_into_libs=yes
18481
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18482
shlibpath_var=LD_LIBRARY_PATH
18483
shlibpath_overrides_runpath=yes
18490
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18491
soname_spec='${libname}${release}${shared_ext}$major'
18492
shlibpath_var=LD_LIBRARY_PATH
18493
shlibpath_overrides_runpath=yes
18498
sys_lib_dlsearch_path_spec="/usr/lib"
18500
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18502
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18503
*) need_version=no ;;
18505
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18506
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18507
shlibpath_var=LD_LIBRARY_PATH
18508
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18510
openbsd2.[89] | openbsd2.[89].*)
18511
shlibpath_overrides_runpath=no
18514
shlibpath_overrides_runpath=yes
18518
shlibpath_overrides_runpath=yes
18523
libname_spec='$name'
18526
library_names_spec='$libname${shared_ext} $libname.a'
18527
dynamic_linker='OS/2 ld.exe'
18528
shlibpath_var=LIBPATH
18531
osf3* | osf4* | osf5*)
18535
soname_spec='${libname}${release}${shared_ext}$major'
18536
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18537
shlibpath_var=LD_LIBRARY_PATH
18538
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18539
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18546
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18547
soname_spec='${libname}${release}${shared_ext}$major'
18548
shlibpath_var=LD_LIBRARY_PATH
18549
shlibpath_overrides_runpath=yes
18550
hardcode_into_libs=yes
18551
# ldd complains unless libraries are executable
18552
postinstall_cmds='chmod +x $lib'
18557
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18558
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18559
shlibpath_var=LD_LIBRARY_PATH
18560
shlibpath_overrides_runpath=yes
18561
if test "$with_gnu_ld" = yes; then
18569
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18570
soname_spec='${libname}${release}${shared_ext}$major'
18571
shlibpath_var=LD_LIBRARY_PATH
18572
case $host_vendor in
18574
shlibpath_overrides_runpath=no
18576
export_dynamic_flag_spec='${wl}-Blargedynsym'
18577
runpath_var=LD_RUN_PATH
18585
shlibpath_overrides_runpath=no
18586
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18592
if test -d /usr/nec ;then
18594
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18595
soname_spec='$libname${shared_ext}.$major'
18596
shlibpath_var=LD_LIBRARY_PATH
18600
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18601
version_type=freebsd-elf
18604
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18605
soname_spec='${libname}${release}${shared_ext}$major'
18606
shlibpath_var=LD_LIBRARY_PATH
18607
hardcode_into_libs=yes
18608
if test "$with_gnu_ld" = yes; then
18609
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18610
shlibpath_overrides_runpath=no
18612
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18613
shlibpath_overrides_runpath=yes
18616
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18620
sys_lib_dlsearch_path_spec='/usr/lib'
18625
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18626
soname_spec='${libname}${release}${shared_ext}$major'
18627
shlibpath_var=LD_LIBRARY_PATH
18634
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18635
echo "${ECHO_T}$dynamic_linker" >&6; }
18636
test "$dynamic_linker" = no && can_build_shared=no
18638
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18639
if test "$GCC" = yes; then
18640
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18643
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18644
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18645
hardcode_action_GCJ=
18646
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18647
test -n "$runpath_var_GCJ" || \
18648
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18650
# We can hardcode non-existant directories.
18651
if test "$hardcode_direct_GCJ" != no &&
18652
# If the only mechanism to avoid hardcoding is shlibpath_var, we
18653
# have to relink, otherwise we might link with an installed library
18654
# when we should be linking with a yet-to-be-installed one
18655
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18656
test "$hardcode_minus_L_GCJ" != no; then
18657
# Linking always hardcodes the temporary library directory.
18658
hardcode_action_GCJ=relink
18660
# We can link without hardcoding, and we can hardcode nonexisting dirs.
18661
hardcode_action_GCJ=immediate
18664
# We cannot hardcode anything, or else we can only hardcode existing
18666
hardcode_action_GCJ=unsupported
18668
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18669
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18671
if test "$hardcode_action_GCJ" = relink; then
18672
# Fast installation is not supported
18673
enable_fast_install=no
18674
elif test "$shlibpath_overrides_runpath" = yes ||
18675
test "$enable_shared" = no; then
18676
# Fast installation is not necessary
18677
enable_fast_install=needless
18681
# The else clause should only fire when bootstrapping the
18682
# libtool distribution, otherwise you forgot to ship ltmain.sh
18683
# with your package, and you will get complaints that there are
18684
# no rules to generate ltmain.sh.
18685
if test -f "$ltmain"; then
18686
# See if we are running on zsh, and set the options which allow our commands through
18687
# without removal of \ escapes.
18688
if test -n "${ZSH_VERSION+set}" ; then
18689
setopt NO_GLOB_SUBST
18691
# Now quote all the things that may contain metacharacters while being
18692
# careful not to overquote the AC_SUBSTed values. We take copies of the
18693
# variables and quote the copies for generation of the libtool script.
18694
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18696
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18697
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18698
deplibs_check_method reload_flag reload_cmds need_locks \
18699
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18700
lt_cv_sys_global_symbol_to_c_name_address \
18701
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18702
old_postinstall_cmds old_postuninstall_cmds \
18706
lt_prog_compiler_wl_GCJ \
18707
lt_prog_compiler_pic_GCJ \
18708
lt_prog_compiler_static_GCJ \
18709
lt_prog_compiler_no_builtin_flag_GCJ \
18710
export_dynamic_flag_spec_GCJ \
18711
thread_safe_flag_spec_GCJ \
18712
whole_archive_flag_spec_GCJ \
18713
enable_shared_with_static_runtimes_GCJ \
18714
old_archive_cmds_GCJ \
18715
old_archive_from_new_cmds_GCJ \
18716
predep_objects_GCJ \
18717
postdep_objects_GCJ \
18720
compiler_lib_search_path_GCJ \
18722
archive_expsym_cmds_GCJ \
18723
postinstall_cmds_GCJ \
18724
postuninstall_cmds_GCJ \
18725
old_archive_from_expsyms_cmds_GCJ \
18726
allow_undefined_flag_GCJ \
18727
no_undefined_flag_GCJ \
18728
export_symbols_cmds_GCJ \
18729
hardcode_libdir_flag_spec_GCJ \
18730
hardcode_libdir_flag_spec_ld_GCJ \
18731
hardcode_libdir_separator_GCJ \
18732
hardcode_automatic_GCJ \
18734
module_expsym_cmds_GCJ \
18735
lt_cv_prog_compiler_c_o_GCJ \
18736
exclude_expsyms_GCJ \
18737
include_expsyms_GCJ; do
18740
old_archive_cmds_GCJ | \
18741
old_archive_from_new_cmds_GCJ | \
18742
archive_cmds_GCJ | \
18743
archive_expsym_cmds_GCJ | \
18744
module_cmds_GCJ | \
18745
module_expsym_cmds_GCJ | \
18746
old_archive_from_expsyms_cmds_GCJ | \
18747
export_symbols_cmds_GCJ | \
18748
extract_expsyms_cmds | reload_cmds | finish_cmds | \
18749
postinstall_cmds | postuninstall_cmds | \
18750
old_postinstall_cmds | old_postuninstall_cmds | \
18751
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18752
# Double-quote double-evaled strings.
18753
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18756
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18762
*'\$0 --fallback-echo"')
18763
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18769
cat <<__EOF__ >> "$cfgfile"
18770
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18772
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18774
# Shell to use when invoking shell scripts.
18777
# Whether or not to build shared libraries.
18778
build_libtool_libs=$enable_shared
18780
# Whether or not to build static libraries.
18781
build_old_libs=$enable_static
18783
# Whether or not to add -lc for building shared libraries.
18784
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18786
# Whether or not to disallow shared libs when runtime libs are static
18787
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18789
# Whether or not to optimize for fast installation.
18790
fast_install=$enable_fast_install
18793
host_alias=$host_alias
18797
# The build system.
18798
build_alias=$build_alias
18802
# An echo program that does not interpret backslashes.
18807
AR_FLAGS=$lt_AR_FLAGS
18812
# LTCC compiler flags.
18813
LTCFLAGS=$lt_LTCFLAGS
18815
# A language-specific compiler.
18816
CC=$lt_compiler_GCJ
18818
# Is the compiler the GNU C compiler?
18824
# The linker used to build libraries.
18827
# Whether we need hard or soft links.
18830
# A BSD-compatible nm program.
18833
# A symbol stripping program
18836
# Used to examine libraries when file_magic_cmd begins "file"
18837
MAGIC_CMD=$MAGIC_CMD
18839
# Used on cygwin: DLL creation program.
18842
# Used on cygwin: object dumper.
18845
# Used on cygwin: assembler.
18848
# The name of the directory that contains temporary libtool files.
18851
# How to create reloadable object files.
18852
reload_flag=$lt_reload_flag
18853
reload_cmds=$lt_reload_cmds
18855
# How to pass a linker flag through the compiler.
18856
wl=$lt_lt_prog_compiler_wl_GCJ
18858
# Object file suffix (normally "o").
18859
objext="$ac_objext"
18861
# Old archive suffix (normally "a").
18864
# Shared library suffix (normally ".so").
18865
shrext_cmds='$shrext_cmds'
18867
# Executable file suffix (normally "").
18870
# Additional compiler flags for building library objects.
18871
pic_flag=$lt_lt_prog_compiler_pic_GCJ
18874
# What is the maximum length of a command?
18875
max_cmd_len=$lt_cv_sys_max_cmd_len
18877
# Does compiler simultaneously support -c and -o options?
18878
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18880
# Must we lock files when doing compilation?
18881
need_locks=$lt_need_locks
18883
# Do we need the lib prefix for modules?
18884
need_lib_prefix=$need_lib_prefix
18886
# Do we need a version for libraries?
18887
need_version=$need_version
18889
# Whether dlopen is supported.
18890
dlopen_support=$enable_dlopen
18892
# Whether dlopen of programs is supported.
18893
dlopen_self=$enable_dlopen_self
18895
# Whether dlopen of statically linked programs is supported.
18896
dlopen_self_static=$enable_dlopen_self_static
18898
# Compiler flag to prevent dynamic linking.
18899
link_static_flag=$lt_lt_prog_compiler_static_GCJ
18901
# Compiler flag to turn off builtin functions.
18902
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18904
# Compiler flag to allow reflexive dlopens.
18905
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18907
# Compiler flag to generate shared objects directly from archives.
18908
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18910
# Compiler flag to generate thread-safe objects.
18911
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18913
# Library versioning type.
18914
version_type=$version_type
18916
# Format of library name prefix.
18917
libname_spec=$lt_libname_spec
18919
# List of archive names. First name is the real one, the rest are links.
18920
# The last name is the one that the linker finds with -lNAME.
18921
library_names_spec=$lt_library_names_spec
18923
# The coded name of the library, if different from the real name.
18924
soname_spec=$lt_soname_spec
18926
# Commands used to build and install an old-style archive.
18928
old_archive_cmds=$lt_old_archive_cmds_GCJ
18929
old_postinstall_cmds=$lt_old_postinstall_cmds
18930
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18932
# Create an old-style archive from a shared archive.
18933
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18935
# Create a temporary old-style archive to link instead of a shared archive.
18936
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18938
# Commands used to build and install a shared archive.
18939
archive_cmds=$lt_archive_cmds_GCJ
18940
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18941
postinstall_cmds=$lt_postinstall_cmds
18942
postuninstall_cmds=$lt_postuninstall_cmds
18944
# Commands used to build a loadable module (assumed same as above if empty)
18945
module_cmds=$lt_module_cmds_GCJ
18946
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18948
# Commands to strip libraries.
18949
old_striplib=$lt_old_striplib
18950
striplib=$lt_striplib
18952
# Dependencies to place before the objects being linked to create a
18954
predep_objects=$lt_predep_objects_GCJ
18956
# Dependencies to place after the objects being linked to create a
18958
postdep_objects=$lt_postdep_objects_GCJ
18960
# Dependencies to place before the objects being linked to create a
18962
predeps=$lt_predeps_GCJ
18964
# Dependencies to place after the objects being linked to create a
18966
postdeps=$lt_postdeps_GCJ
18968
# The library search path used internally by the compiler when linking
18969
# a shared library.
18970
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18972
# Method to check whether dependent libraries are shared objects.
18973
deplibs_check_method=$lt_deplibs_check_method
18975
# Command to use when deplibs_check_method == file_magic.
18976
file_magic_cmd=$lt_file_magic_cmd
18978
# Flag that allows shared libraries with undefined symbols to be built.
18979
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18981
# Flag that forces no undefined symbols.
18982
no_undefined_flag=$lt_no_undefined_flag_GCJ
18984
# Commands used to finish a libtool library installation in a directory.
18985
finish_cmds=$lt_finish_cmds
18987
# Same as above, but a single script fragment to be evaled but not shown.
18988
finish_eval=$lt_finish_eval
18990
# Take the output of nm and produce a listing of raw symbols and C names.
18991
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18993
# Transform the output of nm in a proper C declaration
18994
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18996
# Transform the output of nm in a C name address pair
18997
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18999
# This is the shared library runtime path variable.
19000
runpath_var=$runpath_var
19002
# This is the shared library path variable.
19003
shlibpath_var=$shlibpath_var
19005
# Is shlibpath searched before the hard-coded library search path?
19006
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19008
# How to hardcode a shared library path into an executable.
19009
hardcode_action=$hardcode_action_GCJ
19011
# Whether we should hardcode library paths into libraries.
19012
hardcode_into_libs=$hardcode_into_libs
19014
# Flag to hardcode \$libdir into a binary during linking.
19015
# This must work even if \$libdir does not exist.
19016
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19018
# If ld is used when linking, flag to hardcode \$libdir into
19019
# a binary during linking. This must work even if \$libdir does
19021
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19023
# Whether we need a single -rpath flag with a separated argument.
19024
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19026
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19027
# resulting binary.
19028
hardcode_direct=$hardcode_direct_GCJ
19030
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19031
# resulting binary.
19032
hardcode_minus_L=$hardcode_minus_L_GCJ
19034
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19035
# the resulting binary.
19036
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19038
# Set to yes if building a shared library automatically hardcodes DIR into the library
19039
# and all subsequent libraries and executables linked against it.
19040
hardcode_automatic=$hardcode_automatic_GCJ
19042
# Variables whose values should be saved in libtool wrapper scripts and
19043
# restored at relink time.
19044
variables_saved_for_relink="$variables_saved_for_relink"
19046
# Whether libtool must link a program against all its dependency libraries.
19047
link_all_deplibs=$link_all_deplibs_GCJ
19049
# Compile-time system search path for libraries
19050
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19052
# Run-time system search path for libraries
19053
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19055
# Fix the shell variable \$srcfile for the compiler.
19056
fix_srcfile_path="$fix_srcfile_path_GCJ"
19058
# Set to yes if exported symbols are required.
19059
always_export_symbols=$always_export_symbols_GCJ
19061
# The commands to list exported symbols.
19062
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19064
# The commands to extract the exported symbol list from a shared archive.
19065
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19067
# Symbols that should not be listed in the preloaded symbols.
19068
exclude_expsyms=$lt_exclude_expsyms_GCJ
19070
# Symbols that must always be exported.
19071
include_expsyms=$lt_include_expsyms_GCJ
19073
# ### END LIBTOOL TAG CONFIG: $tagname
19079
# If there is no Makefile yet, we rely on a make rule to execute
19080
# `config.status --recheck' to rerun these tests and create the
19081
# libtool script then.
19082
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19083
if test -f "$ltmain_in"; then
19084
test -f Makefile && make "$ltmain"
19090
ac_cpp='$CPP $CPPFLAGS'
19091
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19092
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19093
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19105
# Source file extension for RC test sources.
19108
# Object file extension for compiled RC test sources.
19112
# Code to be used in simple compile tests
19113
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19115
# Code to be used in simple link tests
19116
lt_simple_link_test_code="$lt_simple_compile_test_code"
19118
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19120
# If no C compiler was specified, use CC.
19123
# If no C compiler flags were specified, use CFLAGS.
19124
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19126
# Allow CC to be a program name with arguments.
19130
# save warnings/boilerplate of simple test code
19131
ac_outfile=conftest.$ac_objext
19132
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19133
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19134
_lt_compiler_boilerplate=`cat conftest.err`
19137
ac_outfile=conftest.$ac_objext
19138
printf "$lt_simple_link_test_code" >conftest.$ac_ext
19139
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19140
_lt_linker_boilerplate=`cat conftest.err`
19144
# Allow CC to be a program name with arguments.
19149
for cc_temp in $compiler""; do
19151
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19152
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19157
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19159
lt_cv_prog_compiler_c_o_RC=yes
19161
# The else clause should only fire when bootstrapping the
19162
# libtool distribution, otherwise you forgot to ship ltmain.sh
19163
# with your package, and you will get complaints that there are
19164
# no rules to generate ltmain.sh.
19165
if test -f "$ltmain"; then
19166
# See if we are running on zsh, and set the options which allow our commands through
19167
# without removal of \ escapes.
19168
if test -n "${ZSH_VERSION+set}" ; then
19169
setopt NO_GLOB_SUBST
19171
# Now quote all the things that may contain metacharacters while being
19172
# careful not to overquote the AC_SUBSTed values. We take copies of the
19173
# variables and quote the copies for generation of the libtool script.
19174
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19176
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19177
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19178
deplibs_check_method reload_flag reload_cmds need_locks \
19179
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19180
lt_cv_sys_global_symbol_to_c_name_address \
19181
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19182
old_postinstall_cmds old_postuninstall_cmds \
19186
lt_prog_compiler_wl_RC \
19187
lt_prog_compiler_pic_RC \
19188
lt_prog_compiler_static_RC \
19189
lt_prog_compiler_no_builtin_flag_RC \
19190
export_dynamic_flag_spec_RC \
19191
thread_safe_flag_spec_RC \
19192
whole_archive_flag_spec_RC \
19193
enable_shared_with_static_runtimes_RC \
19194
old_archive_cmds_RC \
19195
old_archive_from_new_cmds_RC \
19196
predep_objects_RC \
19197
postdep_objects_RC \
19200
compiler_lib_search_path_RC \
19202
archive_expsym_cmds_RC \
19203
postinstall_cmds_RC \
19204
postuninstall_cmds_RC \
19205
old_archive_from_expsyms_cmds_RC \
19206
allow_undefined_flag_RC \
19207
no_undefined_flag_RC \
19208
export_symbols_cmds_RC \
19209
hardcode_libdir_flag_spec_RC \
19210
hardcode_libdir_flag_spec_ld_RC \
19211
hardcode_libdir_separator_RC \
19212
hardcode_automatic_RC \
19214
module_expsym_cmds_RC \
19215
lt_cv_prog_compiler_c_o_RC \
19216
exclude_expsyms_RC \
19217
include_expsyms_RC; do
19220
old_archive_cmds_RC | \
19221
old_archive_from_new_cmds_RC | \
19222
archive_cmds_RC | \
19223
archive_expsym_cmds_RC | \
19225
module_expsym_cmds_RC | \
19226
old_archive_from_expsyms_cmds_RC | \
19227
export_symbols_cmds_RC | \
19228
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19229
postinstall_cmds | postuninstall_cmds | \
19230
old_postinstall_cmds | old_postuninstall_cmds | \
19231
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19232
# Double-quote double-evaled strings.
19233
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19236
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19242
*'\$0 --fallback-echo"')
19243
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19249
cat <<__EOF__ >> "$cfgfile"
19250
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19252
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19254
# Shell to use when invoking shell scripts.
19257
# Whether or not to build shared libraries.
19258
build_libtool_libs=$enable_shared
19260
# Whether or not to build static libraries.
19261
build_old_libs=$enable_static
19263
# Whether or not to add -lc for building shared libraries.
19264
build_libtool_need_lc=$archive_cmds_need_lc_RC
19266
# Whether or not to disallow shared libs when runtime libs are static
19267
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19269
# Whether or not to optimize for fast installation.
19270
fast_install=$enable_fast_install
19273
host_alias=$host_alias
19277
# The build system.
19278
build_alias=$build_alias
19282
# An echo program that does not interpret backslashes.
19287
AR_FLAGS=$lt_AR_FLAGS
19292
# LTCC compiler flags.
19293
LTCFLAGS=$lt_LTCFLAGS
19295
# A language-specific compiler.
19298
# Is the compiler the GNU C compiler?
19304
# The linker used to build libraries.
19307
# Whether we need hard or soft links.
19310
# A BSD-compatible nm program.
19313
# A symbol stripping program
19316
# Used to examine libraries when file_magic_cmd begins "file"
19317
MAGIC_CMD=$MAGIC_CMD
19319
# Used on cygwin: DLL creation program.
19322
# Used on cygwin: object dumper.
19325
# Used on cygwin: assembler.
19328
# The name of the directory that contains temporary libtool files.
19331
# How to create reloadable object files.
19332
reload_flag=$lt_reload_flag
19333
reload_cmds=$lt_reload_cmds
19335
# How to pass a linker flag through the compiler.
19336
wl=$lt_lt_prog_compiler_wl_RC
19338
# Object file suffix (normally "o").
19339
objext="$ac_objext"
19341
# Old archive suffix (normally "a").
19344
# Shared library suffix (normally ".so").
19345
shrext_cmds='$shrext_cmds'
19347
# Executable file suffix (normally "").
19350
# Additional compiler flags for building library objects.
19351
pic_flag=$lt_lt_prog_compiler_pic_RC
19354
# What is the maximum length of a command?
19355
max_cmd_len=$lt_cv_sys_max_cmd_len
19357
# Does compiler simultaneously support -c and -o options?
19358
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19360
# Must we lock files when doing compilation?
19361
need_locks=$lt_need_locks
19363
# Do we need the lib prefix for modules?
19364
need_lib_prefix=$need_lib_prefix
19366
# Do we need a version for libraries?
19367
need_version=$need_version
19369
# Whether dlopen is supported.
19370
dlopen_support=$enable_dlopen
19372
# Whether dlopen of programs is supported.
19373
dlopen_self=$enable_dlopen_self
19375
# Whether dlopen of statically linked programs is supported.
19376
dlopen_self_static=$enable_dlopen_self_static
19378
# Compiler flag to prevent dynamic linking.
19379
link_static_flag=$lt_lt_prog_compiler_static_RC
19381
# Compiler flag to turn off builtin functions.
19382
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19384
# Compiler flag to allow reflexive dlopens.
19385
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19387
# Compiler flag to generate shared objects directly from archives.
19388
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19390
# Compiler flag to generate thread-safe objects.
19391
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19393
# Library versioning type.
19394
version_type=$version_type
19396
# Format of library name prefix.
19397
libname_spec=$lt_libname_spec
19399
# List of archive names. First name is the real one, the rest are links.
19400
# The last name is the one that the linker finds with -lNAME.
19401
library_names_spec=$lt_library_names_spec
19403
# The coded name of the library, if different from the real name.
19404
soname_spec=$lt_soname_spec
19406
# Commands used to build and install an old-style archive.
19408
old_archive_cmds=$lt_old_archive_cmds_RC
19409
old_postinstall_cmds=$lt_old_postinstall_cmds
19410
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19412
# Create an old-style archive from a shared archive.
19413
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19415
# Create a temporary old-style archive to link instead of a shared archive.
19416
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19418
# Commands used to build and install a shared archive.
19419
archive_cmds=$lt_archive_cmds_RC
19420
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19421
postinstall_cmds=$lt_postinstall_cmds
19422
postuninstall_cmds=$lt_postuninstall_cmds
19424
# Commands used to build a loadable module (assumed same as above if empty)
19425
module_cmds=$lt_module_cmds_RC
19426
module_expsym_cmds=$lt_module_expsym_cmds_RC
19428
# Commands to strip libraries.
19429
old_striplib=$lt_old_striplib
19430
striplib=$lt_striplib
19432
# Dependencies to place before the objects being linked to create a
19434
predep_objects=$lt_predep_objects_RC
19436
# Dependencies to place after the objects being linked to create a
19438
postdep_objects=$lt_postdep_objects_RC
19440
# Dependencies to place before the objects being linked to create a
19442
predeps=$lt_predeps_RC
19444
# Dependencies to place after the objects being linked to create a
19446
postdeps=$lt_postdeps_RC
19448
# The library search path used internally by the compiler when linking
19449
# a shared library.
19450
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19452
# Method to check whether dependent libraries are shared objects.
19453
deplibs_check_method=$lt_deplibs_check_method
19455
# Command to use when deplibs_check_method == file_magic.
19456
file_magic_cmd=$lt_file_magic_cmd
19458
# Flag that allows shared libraries with undefined symbols to be built.
19459
allow_undefined_flag=$lt_allow_undefined_flag_RC
19461
# Flag that forces no undefined symbols.
19462
no_undefined_flag=$lt_no_undefined_flag_RC
19464
# Commands used to finish a libtool library installation in a directory.
19465
finish_cmds=$lt_finish_cmds
19467
# Same as above, but a single script fragment to be evaled but not shown.
19468
finish_eval=$lt_finish_eval
19470
# Take the output of nm and produce a listing of raw symbols and C names.
19471
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19473
# Transform the output of nm in a proper C declaration
19474
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19476
# Transform the output of nm in a C name address pair
19477
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19479
# This is the shared library runtime path variable.
19480
runpath_var=$runpath_var
19482
# This is the shared library path variable.
19483
shlibpath_var=$shlibpath_var
19485
# Is shlibpath searched before the hard-coded library search path?
19486
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19488
# How to hardcode a shared library path into an executable.
19489
hardcode_action=$hardcode_action_RC
19491
# Whether we should hardcode library paths into libraries.
19492
hardcode_into_libs=$hardcode_into_libs
19494
# Flag to hardcode \$libdir into a binary during linking.
19495
# This must work even if \$libdir does not exist.
19496
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19498
# If ld is used when linking, flag to hardcode \$libdir into
19499
# a binary during linking. This must work even if \$libdir does
19501
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19503
# Whether we need a single -rpath flag with a separated argument.
19504
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19506
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19507
# resulting binary.
19508
hardcode_direct=$hardcode_direct_RC
19510
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19511
# resulting binary.
19512
hardcode_minus_L=$hardcode_minus_L_RC
19514
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19515
# the resulting binary.
19516
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19518
# Set to yes if building a shared library automatically hardcodes DIR into the library
19519
# and all subsequent libraries and executables linked against it.
19520
hardcode_automatic=$hardcode_automatic_RC
19522
# Variables whose values should be saved in libtool wrapper scripts and
19523
# restored at relink time.
19524
variables_saved_for_relink="$variables_saved_for_relink"
19526
# Whether libtool must link a program against all its dependency libraries.
19527
link_all_deplibs=$link_all_deplibs_RC
19529
# Compile-time system search path for libraries
19530
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19532
# Run-time system search path for libraries
19533
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19535
# Fix the shell variable \$srcfile for the compiler.
19536
fix_srcfile_path="$fix_srcfile_path_RC"
19538
# Set to yes if exported symbols are required.
19539
always_export_symbols=$always_export_symbols_RC
19541
# The commands to list exported symbols.
19542
export_symbols_cmds=$lt_export_symbols_cmds_RC
19544
# The commands to extract the exported symbol list from a shared archive.
19545
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19547
# Symbols that should not be listed in the preloaded symbols.
19548
exclude_expsyms=$lt_exclude_expsyms_RC
19550
# Symbols that must always be exported.
19551
include_expsyms=$lt_include_expsyms_RC
19553
# ### END LIBTOOL TAG CONFIG: $tagname
19559
# If there is no Makefile yet, we rely on a make rule to execute
19560
# `config.status --recheck' to rerun these tests and create the
19561
# libtool script then.
19562
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19563
if test -f "$ltmain_in"; then
19564
test -f Makefile && make "$ltmain"
19570
ac_cpp='$CPP $CPPFLAGS'
19571
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19572
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19573
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19580
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19581
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19582
{ (exit 1); exit 1; }; }
19586
# Append the new tag name to the list of available tags.
19587
if test -n "$tagname" ; then
19588
available_tags="$available_tags $tagname"
19594
# Now substitute the updated list of available tags.
19595
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19596
mv "${ofile}T" "$ofile"
19600
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19601
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19602
{ (exit 1); exit 1; }; }
19608
# This can be used to rebuild libtool when needed
19609
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19611
# Always use our own libtool.
19612
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19614
# Prevent multiple expansion
19642
ac_header_dirent=no
19643
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19644
as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19645
{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19646
echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
19647
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19648
echo $ECHO_N "(cached) $ECHO_C" >&6
19650
cat >conftest.$ac_ext <<_ACEOF
19653
cat confdefs.h >>conftest.$ac_ext
19654
cat >>conftest.$ac_ext <<_ACEOF
19655
/* end confdefs.h. */
19656
#include <sys/types.h>
19668
rm -f conftest.$ac_objext
19669
if { (ac_try="$ac_compile"
19670
case "(($ac_try" in
19671
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19672
*) ac_try_echo=$ac_try;;
19674
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19675
(eval "$ac_compile") 2>conftest.er1
19677
grep -v '^ *+' conftest.er1 >conftest.err
19679
cat conftest.err >&5
19680
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19681
(exit $ac_status); } && {
19682
test -z "$ac_c_werror_flag" ||
19683
test ! -s conftest.err
19684
} && test -s conftest.$ac_objext; then
19685
eval "$as_ac_Header=yes"
19687
echo "$as_me: failed program was:" >&5
19688
sed 's/^/| /' conftest.$ac_ext >&5
19690
eval "$as_ac_Header=no"
19693
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19695
ac_res=`eval echo '${'$as_ac_Header'}'`
19696
{ echo "$as_me:$LINENO: result: $ac_res" >&5
19697
echo "${ECHO_T}$ac_res" >&6; }
19698
if test `eval echo '${'$as_ac_Header'}'` = yes; then
19699
cat >>confdefs.h <<_ACEOF
19700
#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19703
ac_header_dirent=$ac_hdr; break
19707
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19708
if test $ac_header_dirent = dirent.h; then
19709
{ echo "$as_me:$LINENO: checking for library containing opendir" >&5
19710
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
19711
if test "${ac_cv_search_opendir+set}" = set; then
19712
echo $ECHO_N "(cached) $ECHO_C" >&6
19714
ac_func_search_save_LIBS=$LIBS
19715
cat >conftest.$ac_ext <<_ACEOF
19718
cat confdefs.h >>conftest.$ac_ext
19719
cat >>conftest.$ac_ext <<_ACEOF
19720
/* end confdefs.h. */
19722
/* Override any GCC internal prototype to avoid an error.
19723
Use char because int might match the return type of a GCC
19724
builtin and then its argument prototype would still apply. */
19737
for ac_lib in '' dir; do
19738
if test -z "$ac_lib"; then
19739
ac_res="none required"
19742
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19744
rm -f conftest.$ac_objext conftest$ac_exeext
19745
if { (ac_try="$ac_link"
19746
case "(($ac_try" in
19747
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19748
*) ac_try_echo=$ac_try;;
19750
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19751
(eval "$ac_link") 2>conftest.er1
19753
grep -v '^ *+' conftest.er1 >conftest.err
19755
cat conftest.err >&5
19756
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19757
(exit $ac_status); } && {
19758
test -z "$ac_c_werror_flag" ||
19759
test ! -s conftest.err
19760
} && test -s conftest$ac_exeext &&
19761
$as_test_x conftest$ac_exeext; then
19762
ac_cv_search_opendir=$ac_res
19764
echo "$as_me: failed program was:" >&5
19765
sed 's/^/| /' conftest.$ac_ext >&5
19770
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19772
if test "${ac_cv_search_opendir+set}" = set; then
19776
if test "${ac_cv_search_opendir+set}" = set; then
19779
ac_cv_search_opendir=no
19781
rm conftest.$ac_ext
19782
LIBS=$ac_func_search_save_LIBS
19784
{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19785
echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
19786
ac_res=$ac_cv_search_opendir
19787
if test "$ac_res" != no; then
19788
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19793
{ echo "$as_me:$LINENO: checking for library containing opendir" >&5
19794
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
19795
if test "${ac_cv_search_opendir+set}" = set; then
19796
echo $ECHO_N "(cached) $ECHO_C" >&6
19798
ac_func_search_save_LIBS=$LIBS
19799
cat >conftest.$ac_ext <<_ACEOF
19802
cat confdefs.h >>conftest.$ac_ext
19803
cat >>conftest.$ac_ext <<_ACEOF
19804
/* end confdefs.h. */
19806
/* Override any GCC internal prototype to avoid an error.
19807
Use char because int might match the return type of a GCC
19808
builtin and then its argument prototype would still apply. */
19821
for ac_lib in '' x; do
19822
if test -z "$ac_lib"; then
19823
ac_res="none required"
19826
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19828
rm -f conftest.$ac_objext conftest$ac_exeext
19829
if { (ac_try="$ac_link"
19830
case "(($ac_try" in
19831
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19832
*) ac_try_echo=$ac_try;;
19834
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19835
(eval "$ac_link") 2>conftest.er1
19837
grep -v '^ *+' conftest.er1 >conftest.err
19839
cat conftest.err >&5
19840
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19841
(exit $ac_status); } && {
19842
test -z "$ac_c_werror_flag" ||
19843
test ! -s conftest.err
19844
} && test -s conftest$ac_exeext &&
19845
$as_test_x conftest$ac_exeext; then
19846
ac_cv_search_opendir=$ac_res
19848
echo "$as_me: failed program was:" >&5
19849
sed 's/^/| /' conftest.$ac_ext >&5
19854
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19856
if test "${ac_cv_search_opendir+set}" = set; then
19860
if test "${ac_cv_search_opendir+set}" = set; then
19863
ac_cv_search_opendir=no
19865
rm conftest.$ac_ext
19866
LIBS=$ac_func_search_save_LIBS
19868
{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19869
echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
19870
ac_res=$ac_cv_search_opendir
19871
if test "$ac_res" != no; then
19872
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19878
# Check whether --enable-ltdl-install was given.
19879
if test "${enable_ltdl_install+set}" = set; then
19880
enableval=$enable_ltdl_install;
19884
if test x"${enable_ltdl_install-no}" != xno; then
19886
INSTALL_LTDL_FALSE='#'
19888
INSTALL_LTDL_TRUE='#'
19889
INSTALL_LTDL_FALSE=
19892
if test x"${enable_ltdl_convenience-no}" != xno; then
19893
CONVENIENCE_LTDL_TRUE=
19894
CONVENIENCE_LTDL_FALSE='#'
19896
CONVENIENCE_LTDL_TRUE='#'
19897
CONVENIENCE_LTDL_FALSE=
19902
{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
19903
echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
19904
if test "${libltdl_cv_shlibext+set}" = set; then
19905
echo $ECHO_N "(cached) $ECHO_C" >&6
19909
eval libltdl_cv_shlibext=$shrext_cmds
19912
{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
19913
echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
19914
if test -n "$libltdl_cv_shlibext"; then
19916
cat >>confdefs.h <<_ACEOF
19917
#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
19923
{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
19924
echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
19925
if test "${libltdl_cv_shlibpath_var+set}" = set; then
19926
echo $ECHO_N "(cached) $ECHO_C" >&6
19928
libltdl_cv_shlibpath_var="$shlibpath_var"
19930
{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
19931
echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
19932
if test -n "$libltdl_cv_shlibpath_var"; then
19934
cat >>confdefs.h <<_ACEOF
19935
#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
19941
{ echo "$as_me:$LINENO: checking for the default library search path" >&5
19942
echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
19943
if test "${libltdl_cv_sys_search_path+set}" = set; then
19944
echo $ECHO_N "(cached) $ECHO_C" >&6
19946
libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
19948
{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
19949
echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
19950
if test -n "$libltdl_cv_sys_search_path"; then
19952
for dir in $libltdl_cv_sys_search_path; do
19953
if test -z "$sys_search_path"; then
19954
sys_search_path="$dir"
19956
sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
19960
cat >>confdefs.h <<_ACEOF
19961
#define LTDL_SYSSEARCHPATH "$sys_search_path"
19966
{ echo "$as_me:$LINENO: checking for objdir" >&5
19967
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
19968
if test "${libltdl_cv_objdir+set}" = set; then
19969
echo $ECHO_N "(cached) $ECHO_C" >&6
19971
libltdl_cv_objdir="$objdir"
19972
if test -n "$objdir"; then
19975
rm -f .libs 2>/dev/null
19976
mkdir .libs 2>/dev/null
19977
if test -d .libs; then
19978
libltdl_cv_objdir=.libs
19980
# MS-DOS does not allow filenames that begin with a dot.
19981
libltdl_cv_objdir=_libs
19983
rmdir .libs 2>/dev/null
19987
{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
19988
echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
19990
cat >>confdefs.h <<_ACEOF
19991
#define LTDL_OBJDIR "$libltdl_cv_objdir/"
19996
{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
19997
echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
19998
if test "${libltdl_cv_preloaded_symbols+set}" = set; then
19999
echo $ECHO_N "(cached) $ECHO_C" >&6
20001
if test -n "$lt_cv_sys_global_symbol_pipe"; then
20002
libltdl_cv_preloaded_symbols=yes
20004
libltdl_cv_preloaded_symbols=no
20008
{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
20009
echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
20010
if test x"$libltdl_cv_preloaded_symbols" = xyes; then
20012
cat >>confdefs.h <<\_ACEOF
20013
#define HAVE_PRELOADED_SYMBOLS 1
20021
ac_cpp='$CPP $CPPFLAGS'
20022
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20023
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20024
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20027
{ echo "$as_me:$LINENO: checking for shl_load" >&5
20028
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
20029
if test "${ac_cv_func_shl_load+set}" = set; then
20030
echo $ECHO_N "(cached) $ECHO_C" >&6
20032
cat >conftest.$ac_ext <<_ACEOF
20035
cat confdefs.h >>conftest.$ac_ext
20036
cat >>conftest.$ac_ext <<_ACEOF
20037
/* end confdefs.h. */
20038
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
20039
For example, HP-UX 11i <limits.h> declares gettimeofday. */
20040
#define shl_load innocuous_shl_load
20042
/* System header to define __stub macros and hopefully few prototypes,
20043
which can conflict with char shl_load (); below.
20044
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20045
<limits.h> exists even on freestanding compilers. */
20048
# include <limits.h>
20050
# include <assert.h>
20055
/* Override any GCC internal prototype to avoid an error.
20056
Use char because int might match the return type of a GCC
20057
builtin and then its argument prototype would still apply. */
20062
/* The GNU C library defines this for functions which it implements
20063
to always fail with ENOSYS. Some functions are actually named
20064
something starting with __ and the normal name is an alias. */
20065
#if defined __stub_shl_load || defined __stub___shl_load
20072
return shl_load ();
20077
rm -f conftest.$ac_objext conftest$ac_exeext
20078
if { (ac_try="$ac_link"
20079
case "(($ac_try" in
20080
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20081
*) ac_try_echo=$ac_try;;
20083
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20084
(eval "$ac_link") 2>conftest.er1
20086
grep -v '^ *+' conftest.er1 >conftest.err
20088
cat conftest.err >&5
20089
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20090
(exit $ac_status); } && {
20091
test -z "$ac_c_werror_flag" ||
20092
test ! -s conftest.err
20093
} && test -s conftest$ac_exeext &&
20094
$as_test_x conftest$ac_exeext; then
20095
ac_cv_func_shl_load=yes
20097
echo "$as_me: failed program was:" >&5
20098
sed 's/^/| /' conftest.$ac_ext >&5
20100
ac_cv_func_shl_load=no
20103
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20104
conftest$ac_exeext conftest.$ac_ext
20106
{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
20107
echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
20108
if test $ac_cv_func_shl_load = yes; then
20110
cat >>confdefs.h <<\_ACEOF
20111
#define HAVE_SHL_LOAD 1
20115
{ echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
20116
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
20117
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
20118
echo $ECHO_N "(cached) $ECHO_C" >&6
20120
ac_check_lib_save_LIBS=$LIBS
20122
cat >conftest.$ac_ext <<_ACEOF
20125
cat confdefs.h >>conftest.$ac_ext
20126
cat >>conftest.$ac_ext <<_ACEOF
20127
/* end confdefs.h. */
20129
/* Override any GCC internal prototype to avoid an error.
20130
Use char because int might match the return type of a GCC
20131
builtin and then its argument prototype would still apply. */
20139
return shl_load ();
20144
rm -f conftest.$ac_objext conftest$ac_exeext
20145
if { (ac_try="$ac_link"
20146
case "(($ac_try" in
20147
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20148
*) ac_try_echo=$ac_try;;
20150
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20151
(eval "$ac_link") 2>conftest.er1
20153
grep -v '^ *+' conftest.er1 >conftest.err
20155
cat conftest.err >&5
20156
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20157
(exit $ac_status); } && {
20158
test -z "$ac_c_werror_flag" ||
20159
test ! -s conftest.err
20160
} && test -s conftest$ac_exeext &&
20161
$as_test_x conftest$ac_exeext; then
20162
ac_cv_lib_dld_shl_load=yes
20164
echo "$as_me: failed program was:" >&5
20165
sed 's/^/| /' conftest.$ac_ext >&5
20167
ac_cv_lib_dld_shl_load=no
20170
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20171
conftest$ac_exeext conftest.$ac_ext
20172
LIBS=$ac_check_lib_save_LIBS
20174
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
20175
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
20176
if test $ac_cv_lib_dld_shl_load = yes; then
20178
cat >>confdefs.h <<\_ACEOF
20179
#define HAVE_SHL_LOAD 1
20182
LIBADD_DL="$LIBADD_DL -ldld"
20184
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20185
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
20186
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20187
echo $ECHO_N "(cached) $ECHO_C" >&6
20189
ac_check_lib_save_LIBS=$LIBS
20191
cat >conftest.$ac_ext <<_ACEOF
20194
cat confdefs.h >>conftest.$ac_ext
20195
cat >>conftest.$ac_ext <<_ACEOF
20196
/* end confdefs.h. */
20198
/* Override any GCC internal prototype to avoid an error.
20199
Use char because int might match the return type of a GCC
20200
builtin and then its argument prototype would still apply. */
20213
rm -f conftest.$ac_objext conftest$ac_exeext
20214
if { (ac_try="$ac_link"
20215
case "(($ac_try" in
20216
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20217
*) ac_try_echo=$ac_try;;
20219
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20220
(eval "$ac_link") 2>conftest.er1
20222
grep -v '^ *+' conftest.er1 >conftest.err
20224
cat conftest.err >&5
20225
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20226
(exit $ac_status); } && {
20227
test -z "$ac_c_werror_flag" ||
20228
test ! -s conftest.err
20229
} && test -s conftest$ac_exeext &&
20230
$as_test_x conftest$ac_exeext; then
20231
ac_cv_lib_dl_dlopen=yes
20233
echo "$as_me: failed program was:" >&5
20234
sed 's/^/| /' conftest.$ac_ext >&5
20236
ac_cv_lib_dl_dlopen=no
20239
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20240
conftest$ac_exeext conftest.$ac_ext
20241
LIBS=$ac_check_lib_save_LIBS
20243
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20244
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
20245
if test $ac_cv_lib_dl_dlopen = yes; then
20247
cat >>confdefs.h <<\_ACEOF
20248
#define HAVE_LIBDL 1
20251
LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
20253
cat >conftest.$ac_ext <<_ACEOF
20256
cat confdefs.h >>conftest.$ac_ext
20257
cat >>conftest.$ac_ext <<_ACEOF
20258
/* end confdefs.h. */
20260
# include <dlfcn.h>
20271
rm -f conftest.$ac_objext conftest$ac_exeext
20272
if { (ac_try="$ac_link"
20273
case "(($ac_try" in
20274
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20275
*) ac_try_echo=$ac_try;;
20277
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20278
(eval "$ac_link") 2>conftest.er1
20280
grep -v '^ *+' conftest.er1 >conftest.err
20282
cat conftest.err >&5
20283
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20284
(exit $ac_status); } && {
20285
test -z "$ac_c_werror_flag" ||
20286
test ! -s conftest.err
20287
} && test -s conftest$ac_exeext &&
20288
$as_test_x conftest$ac_exeext; then
20290
cat >>confdefs.h <<\_ACEOF
20291
#define HAVE_LIBDL 1
20293
libltdl_cv_func_dlopen="yes"
20295
echo "$as_me: failed program was:" >&5
20296
sed 's/^/| /' conftest.$ac_ext >&5
20298
{ echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
20299
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
20300
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
20301
echo $ECHO_N "(cached) $ECHO_C" >&6
20303
ac_check_lib_save_LIBS=$LIBS
20304
LIBS="-lsvld $LIBS"
20305
cat >conftest.$ac_ext <<_ACEOF
20308
cat confdefs.h >>conftest.$ac_ext
20309
cat >>conftest.$ac_ext <<_ACEOF
20310
/* end confdefs.h. */
20312
/* Override any GCC internal prototype to avoid an error.
20313
Use char because int might match the return type of a GCC
20314
builtin and then its argument prototype would still apply. */
20327
rm -f conftest.$ac_objext conftest$ac_exeext
20328
if { (ac_try="$ac_link"
20329
case "(($ac_try" in
20330
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20331
*) ac_try_echo=$ac_try;;
20333
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20334
(eval "$ac_link") 2>conftest.er1
20336
grep -v '^ *+' conftest.er1 >conftest.err
20338
cat conftest.err >&5
20339
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20340
(exit $ac_status); } && {
20341
test -z "$ac_c_werror_flag" ||
20342
test ! -s conftest.err
20343
} && test -s conftest$ac_exeext &&
20344
$as_test_x conftest$ac_exeext; then
20345
ac_cv_lib_svld_dlopen=yes
20347
echo "$as_me: failed program was:" >&5
20348
sed 's/^/| /' conftest.$ac_ext >&5
20350
ac_cv_lib_svld_dlopen=no
20353
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20354
conftest$ac_exeext conftest.$ac_ext
20355
LIBS=$ac_check_lib_save_LIBS
20357
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
20358
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
20359
if test $ac_cv_lib_svld_dlopen = yes; then
20361
cat >>confdefs.h <<\_ACEOF
20362
#define HAVE_LIBDL 1
20365
LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
20367
{ echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
20368
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
20369
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20370
echo $ECHO_N "(cached) $ECHO_C" >&6
20372
ac_check_lib_save_LIBS=$LIBS
20374
cat >conftest.$ac_ext <<_ACEOF
20377
cat confdefs.h >>conftest.$ac_ext
20378
cat >>conftest.$ac_ext <<_ACEOF
20379
/* end confdefs.h. */
20381
/* Override any GCC internal prototype to avoid an error.
20382
Use char because int might match the return type of a GCC
20383
builtin and then its argument prototype would still apply. */
20391
return dld_link ();
20396
rm -f conftest.$ac_objext conftest$ac_exeext
20397
if { (ac_try="$ac_link"
20398
case "(($ac_try" in
20399
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20400
*) ac_try_echo=$ac_try;;
20402
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20403
(eval "$ac_link") 2>conftest.er1
20405
grep -v '^ *+' conftest.er1 >conftest.err
20407
cat conftest.err >&5
20408
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20409
(exit $ac_status); } && {
20410
test -z "$ac_c_werror_flag" ||
20411
test ! -s conftest.err
20412
} && test -s conftest$ac_exeext &&
20413
$as_test_x conftest$ac_exeext; then
20414
ac_cv_lib_dld_dld_link=yes
20416
echo "$as_me: failed program was:" >&5
20417
sed 's/^/| /' conftest.$ac_ext >&5
20419
ac_cv_lib_dld_dld_link=no
20422
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20423
conftest$ac_exeext conftest.$ac_ext
20424
LIBS=$ac_check_lib_save_LIBS
20426
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
20427
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
20428
if test $ac_cv_lib_dld_dld_link = yes; then
20430
cat >>confdefs.h <<\_ACEOF
20434
LIBADD_DL="$LIBADD_DL -ldld"
20436
{ echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
20437
echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
20438
if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
20439
echo $ECHO_N "(cached) $ECHO_C" >&6
20441
cat >conftest.$ac_ext <<_ACEOF
20444
cat confdefs.h >>conftest.$ac_ext
20445
cat >>conftest.$ac_ext <<_ACEOF
20446
/* end confdefs.h. */
20447
/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
20448
For example, HP-UX 11i <limits.h> declares gettimeofday. */
20449
#define _dyld_func_lookup innocuous__dyld_func_lookup
20451
/* System header to define __stub macros and hopefully few prototypes,
20452
which can conflict with char _dyld_func_lookup (); below.
20453
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20454
<limits.h> exists even on freestanding compilers. */
20457
# include <limits.h>
20459
# include <assert.h>
20462
#undef _dyld_func_lookup
20464
/* Override any GCC internal prototype to avoid an error.
20465
Use char because int might match the return type of a GCC
20466
builtin and then its argument prototype would still apply. */
20470
char _dyld_func_lookup ();
20471
/* The GNU C library defines this for functions which it implements
20472
to always fail with ENOSYS. Some functions are actually named
20473
something starting with __ and the normal name is an alias. */
20474
#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
20481
return _dyld_func_lookup ();
20486
rm -f conftest.$ac_objext conftest$ac_exeext
20487
if { (ac_try="$ac_link"
20488
case "(($ac_try" in
20489
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20490
*) ac_try_echo=$ac_try;;
20492
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20493
(eval "$ac_link") 2>conftest.er1
20495
grep -v '^ *+' conftest.er1 >conftest.err
20497
cat conftest.err >&5
20498
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20499
(exit $ac_status); } && {
20500
test -z "$ac_c_werror_flag" ||
20501
test ! -s conftest.err
20502
} && test -s conftest$ac_exeext &&
20503
$as_test_x conftest$ac_exeext; then
20504
ac_cv_func__dyld_func_lookup=yes
20506
echo "$as_me: failed program was:" >&5
20507
sed 's/^/| /' conftest.$ac_ext >&5
20509
ac_cv_func__dyld_func_lookup=no
20512
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20513
conftest$ac_exeext conftest.$ac_ext
20515
{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
20516
echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
20517
if test $ac_cv_func__dyld_func_lookup = yes; then
20519
cat >>confdefs.h <<\_ACEOF
20520
#define HAVE_DYLD 1
20534
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20535
conftest$ac_exeext conftest.$ac_ext
20546
if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
20548
lt_save_LIBS="$LIBS"
20549
LIBS="$LIBS $LIBADD_DL"
20551
for ac_func in dlerror
20553
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20554
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20555
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20556
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20557
echo $ECHO_N "(cached) $ECHO_C" >&6
20559
cat >conftest.$ac_ext <<_ACEOF
20562
cat confdefs.h >>conftest.$ac_ext
20563
cat >>conftest.$ac_ext <<_ACEOF
20564
/* end confdefs.h. */
20565
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20566
For example, HP-UX 11i <limits.h> declares gettimeofday. */
20567
#define $ac_func innocuous_$ac_func
20569
/* System header to define __stub macros and hopefully few prototypes,
20570
which can conflict with char $ac_func (); below.
20571
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20572
<limits.h> exists even on freestanding compilers. */
20575
# include <limits.h>
20577
# include <assert.h>
20582
/* Override any GCC internal prototype to avoid an error.
20583
Use char because int might match the return type of a GCC
20584
builtin and then its argument prototype would still apply. */
20589
/* The GNU C library defines this for functions which it implements
20590
to always fail with ENOSYS. Some functions are actually named
20591
something starting with __ and the normal name is an alias. */
20592
#if defined __stub_$ac_func || defined __stub___$ac_func
20599
return $ac_func ();
20604
rm -f conftest.$ac_objext conftest$ac_exeext
20605
if { (ac_try="$ac_link"
20606
case "(($ac_try" in
20607
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20608
*) ac_try_echo=$ac_try;;
20610
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20611
(eval "$ac_link") 2>conftest.er1
20613
grep -v '^ *+' conftest.er1 >conftest.err
20615
cat conftest.err >&5
20616
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20617
(exit $ac_status); } && {
20618
test -z "$ac_c_werror_flag" ||
20619
test ! -s conftest.err
20620
} && test -s conftest$ac_exeext &&
20621
$as_test_x conftest$ac_exeext; then
20622
eval "$as_ac_var=yes"
20624
echo "$as_me: failed program was:" >&5
20625
sed 's/^/| /' conftest.$ac_ext >&5
20627
eval "$as_ac_var=no"
20630
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20631
conftest$ac_exeext conftest.$ac_ext
20633
ac_res=`eval echo '${'$as_ac_var'}'`
20634
{ echo "$as_me:$LINENO: result: $ac_res" >&5
20635
echo "${ECHO_T}$ac_res" >&6; }
20636
if test `eval echo '${'$as_ac_var'}'` = yes; then
20637
cat >>confdefs.h <<_ACEOF
20638
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20644
LIBS="$lt_save_LIBS"
20647
ac_cpp='$CPP $CPPFLAGS'
20648
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20649
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20650
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20654
{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
20655
echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
20656
if test "${ac_cv_sys_symbol_underscore+set}" = set; then
20657
echo $ECHO_N "(cached) $ECHO_C" >&6
20659
ac_cv_sys_symbol_underscore=no
20660
cat > conftest.$ac_ext <<EOF
20661
void nm_test_func(){}
20662
int main(){nm_test_func;return 0;}
20664
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20665
(eval $ac_compile) 2>&5
20667
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20668
(exit $ac_status); }; then
20669
# Now try to grab the symbols.
20670
ac_nlist=conftest.nm
20671
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
20672
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
20674
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20675
(exit $ac_status); } && test -s "$ac_nlist"; then
20676
# See whether the symbols have a leading underscore.
20677
if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
20678
ac_cv_sys_symbol_underscore=yes
20680
if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20683
echo "configure: cannot find nm_test_func in $ac_nlist" >&5
20687
echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
20690
echo "configure: failed program was:" >&5
20696
{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
20697
echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
20700
if test x"$ac_cv_sys_symbol_underscore" = xyes; then
20701
if test x"$libltdl_cv_func_dlopen" = xyes ||
20702
test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
20703
{ echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
20704
echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
20705
if test "${libltdl_cv_need_uscore+set}" = set; then
20706
echo $ECHO_N "(cached) $ECHO_C" >&6
20708
libltdl_cv_need_uscore=unknown
20710
LIBS="$LIBS $LIBADD_DL"
20711
if test "$cross_compiling" = yes; then :
20712
libltdl_cv_need_uscore=cross
20714
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20715
lt_status=$lt_dlunknown
20716
cat > conftest.$ac_ext <<EOF
20717
#line 20717 "configure"
20718
#include "confdefs.h"
20727
# define LT_DLGLOBAL RTLD_GLOBAL
20730
# define LT_DLGLOBAL DL_GLOBAL
20732
# define LT_DLGLOBAL 0
20736
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20737
find out it does not work in some platform. */
20738
#ifndef LT_DLLAZY_OR_NOW
20740
# define LT_DLLAZY_OR_NOW RTLD_LAZY
20743
# define LT_DLLAZY_OR_NOW DL_LAZY
20746
# define LT_DLLAZY_OR_NOW RTLD_NOW
20749
# define LT_DLLAZY_OR_NOW DL_NOW
20751
# define LT_DLLAZY_OR_NOW 0
20759
extern "C" void exit (int);
20762
void fnord() { int i=42;}
20765
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20766
int status = $lt_dlunknown;
20770
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20771
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20772
/* dlclose (self); */
20780
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20781
(eval $ac_link) 2>&5
20783
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20784
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20785
(./conftest; exit; ) >&5 2>/dev/null
20787
case x$lt_status in
20788
x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
20789
x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
20790
x$lt_dlunknown|x*) ;;
20793
# compilation failed
20802
{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
20803
echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
20807
if test x"$libltdl_cv_need_uscore" = xyes; then
20809
cat >>confdefs.h <<\_ACEOF
20810
#define NEED_USCORE 1
20816
{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
20817
echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
20818
if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
20819
echo $ECHO_N "(cached) $ECHO_C" >&6
20821
# PORTME does your system automatically load deplibs for dlopen?
20822
# or its logical equivalent (e.g. shl_load for HP-UX < 11)
20823
# For now, we just catch OSes we know something about -- in the
20824
# future, we'll try test this programmatically.
20825
libltdl_cv_sys_dlopen_deplibs=unknown
20827
aix3*|aix4.1.*|aix4.2.*)
20828
# Unknown whether this is true for these versions of AIX, but
20829
# we want this `case' here to explicitly catch those versions.
20830
libltdl_cv_sys_dlopen_deplibs=unknown
20833
libltdl_cv_sys_dlopen_deplibs=yes
20836
# Assuming the user has installed a libdl from somewhere, this is true
20837
# If you are looking for one http://www.opendarwin.org/projects/dlcompat
20838
libltdl_cv_sys_dlopen_deplibs=yes
20840
gnu* | linux* | k*bsd*-gnu)
20841
# GNU and its variants, using gnu ld.so (Glibc)
20842
libltdl_cv_sys_dlopen_deplibs=yes
20845
libltdl_cv_sys_dlopen_deplibs=yes
20848
libltdl_cv_sys_dlopen_deplibs=yes
20850
irix[12345]*|irix6.[01]*)
20851
# Catch all versions of IRIX before 6.2, and indicate that we don't
20852
# know how it worked for any of those versions.
20853
libltdl_cv_sys_dlopen_deplibs=unknown
20856
# The case above catches anything before 6.2, and it's known that
20857
# at 6.2 and later dlopen does load deplibs.
20858
libltdl_cv_sys_dlopen_deplibs=yes
20860
netbsd* | netbsdelf*-gnu)
20861
libltdl_cv_sys_dlopen_deplibs=yes
20864
libltdl_cv_sys_dlopen_deplibs=yes
20867
# dlopen did load deplibs (at least at 4.x), but until the 5.x series,
20868
# it did *not* use an RPATH in a shared library to find objects the
20869
# library depends on, so we explictly say `no'.
20870
libltdl_cv_sys_dlopen_deplibs=no
20872
osf5.0|osf5.0a|osf5.1)
20873
# dlopen *does* load deplibs and with the right loader patch applied
20874
# it even uses RPATH in a shared library to search for shared objects
20875
# that the library depends on, but there's no easy way to know if that
20876
# patch is installed. Since this is the case, all we can really
20877
# say is unknown -- it depends on the patch being installed. If
20878
# it is, this changes to `yes'. Without it, it would be `no'.
20879
libltdl_cv_sys_dlopen_deplibs=unknown
20882
# the two cases above should catch all versions of osf <= 5.1. Read
20883
# the comments above for what we know about them.
20884
# At > 5.1, deplibs are loaded *and* any RPATH in a shared library
20885
# is used to find them so we can finally say `yes'.
20886
libltdl_cv_sys_dlopen_deplibs=yes
20889
libltdl_cv_sys_dlopen_deplibs=yes
20891
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20892
libltdl_cv_sys_dlopen_deplibs=yes
20897
{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
20898
echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
20899
if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
20901
cat >>confdefs.h <<\_ACEOF
20902
#define LTDL_DLOPEN_DEPLIBS 1
20908
for ac_header in argz.h
20910
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20911
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20912
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20913
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20914
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20915
echo $ECHO_N "(cached) $ECHO_C" >&6
20917
ac_res=`eval echo '${'$as_ac_Header'}'`
20918
{ echo "$as_me:$LINENO: result: $ac_res" >&5
20919
echo "${ECHO_T}$ac_res" >&6; }
20921
# Is the header compilable?
20922
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20923
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20924
cat >conftest.$ac_ext <<_ACEOF
20927
cat confdefs.h >>conftest.$ac_ext
20928
cat >>conftest.$ac_ext <<_ACEOF
20929
/* end confdefs.h. */
20930
$ac_includes_default
20931
#include <$ac_header>
20933
rm -f conftest.$ac_objext
20934
if { (ac_try="$ac_compile"
20935
case "(($ac_try" in
20936
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20937
*) ac_try_echo=$ac_try;;
20939
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20940
(eval "$ac_compile") 2>conftest.er1
20942
grep -v '^ *+' conftest.er1 >conftest.err
20944
cat conftest.err >&5
20945
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20946
(exit $ac_status); } && {
20947
test -z "$ac_c_werror_flag" ||
20948
test ! -s conftest.err
20949
} && test -s conftest.$ac_objext; then
20950
ac_header_compiler=yes
20952
echo "$as_me: failed program was:" >&5
20953
sed 's/^/| /' conftest.$ac_ext >&5
20955
ac_header_compiler=no
20958
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20959
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20960
echo "${ECHO_T}$ac_header_compiler" >&6; }
20962
# Is the header present?
20963
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20964
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20965
cat >conftest.$ac_ext <<_ACEOF
20968
cat confdefs.h >>conftest.$ac_ext
20969
cat >>conftest.$ac_ext <<_ACEOF
20970
/* end confdefs.h. */
20971
#include <$ac_header>
20973
if { (ac_try="$ac_cpp conftest.$ac_ext"
20974
case "(($ac_try" in
20975
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20976
*) ac_try_echo=$ac_try;;
20978
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20979
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20981
grep -v '^ *+' conftest.er1 >conftest.err
20983
cat conftest.err >&5
20984
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20985
(exit $ac_status); } >/dev/null && {
20986
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20987
test ! -s conftest.err
20989
ac_header_preproc=yes
20991
echo "$as_me: failed program was:" >&5
20992
sed 's/^/| /' conftest.$ac_ext >&5
20994
ac_header_preproc=no
20997
rm -f conftest.err conftest.$ac_ext
20998
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20999
echo "${ECHO_T}$ac_header_preproc" >&6; }
21001
# So? What about this header?
21002
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21004
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21005
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21006
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21007
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21008
ac_header_preproc=yes
21011
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21012
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21013
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21014
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21015
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21016
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21017
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21018
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21019
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21020
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21021
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21022
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21024
## ---------------------------------- ##
21025
## Report this to bug-libtool@gnu.org ##
21026
## ---------------------------------- ##
21028
) | sed "s/^/$as_me: WARNING: /" >&2
21031
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21032
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21033
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21034
echo $ECHO_N "(cached) $ECHO_C" >&6
21036
eval "$as_ac_Header=\$ac_header_preproc"
21038
ac_res=`eval echo '${'$as_ac_Header'}'`
21039
{ echo "$as_me:$LINENO: result: $ac_res" >&5
21040
echo "${ECHO_T}$ac_res" >&6; }
21043
if test `eval echo '${'$as_ac_Header'}'` = yes; then
21044
cat >>confdefs.h <<_ACEOF
21045
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21053
{ echo "$as_me:$LINENO: checking for error_t" >&5
21054
echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
21055
if test "${ac_cv_type_error_t+set}" = set; then
21056
echo $ECHO_N "(cached) $ECHO_C" >&6
21058
cat >conftest.$ac_ext <<_ACEOF
21061
cat confdefs.h >>conftest.$ac_ext
21062
cat >>conftest.$ac_ext <<_ACEOF
21063
/* end confdefs.h. */
21068
typedef error_t ac__type_new_;
21072
if ((ac__type_new_ *) 0)
21074
if (sizeof (ac__type_new_))
21080
rm -f conftest.$ac_objext
21081
if { (ac_try="$ac_compile"
21082
case "(($ac_try" in
21083
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21084
*) ac_try_echo=$ac_try;;
21086
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21087
(eval "$ac_compile") 2>conftest.er1
21089
grep -v '^ *+' conftest.er1 >conftest.err
21091
cat conftest.err >&5
21092
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21093
(exit $ac_status); } && {
21094
test -z "$ac_c_werror_flag" ||
21095
test ! -s conftest.err
21096
} && test -s conftest.$ac_objext; then
21097
ac_cv_type_error_t=yes
21099
echo "$as_me: failed program was:" >&5
21100
sed 's/^/| /' conftest.$ac_ext >&5
21102
ac_cv_type_error_t=no
21105
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21107
{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
21108
echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
21109
if test $ac_cv_type_error_t = yes; then
21111
cat >>confdefs.h <<_ACEOF
21112
#define HAVE_ERROR_T 1
21118
cat >>confdefs.h <<\_ACEOF
21119
#define error_t int
21130
for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
21132
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21133
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21134
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21135
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21136
echo $ECHO_N "(cached) $ECHO_C" >&6
21138
cat >conftest.$ac_ext <<_ACEOF
21141
cat confdefs.h >>conftest.$ac_ext
21142
cat >>conftest.$ac_ext <<_ACEOF
21143
/* end confdefs.h. */
21144
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21145
For example, HP-UX 11i <limits.h> declares gettimeofday. */
21146
#define $ac_func innocuous_$ac_func
21148
/* System header to define __stub macros and hopefully few prototypes,
21149
which can conflict with char $ac_func (); below.
21150
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21151
<limits.h> exists even on freestanding compilers. */
21154
# include <limits.h>
21156
# include <assert.h>
21161
/* Override any GCC internal prototype to avoid an error.
21162
Use char because int might match the return type of a GCC
21163
builtin and then its argument prototype would still apply. */
21168
/* The GNU C library defines this for functions which it implements
21169
to always fail with ENOSYS. Some functions are actually named
21170
something starting with __ and the normal name is an alias. */
21171
#if defined __stub_$ac_func || defined __stub___$ac_func
21178
return $ac_func ();
21183
rm -f conftest.$ac_objext conftest$ac_exeext
21184
if { (ac_try="$ac_link"
21185
case "(($ac_try" in
21186
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21187
*) ac_try_echo=$ac_try;;
21189
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21190
(eval "$ac_link") 2>conftest.er1
21192
grep -v '^ *+' conftest.er1 >conftest.err
21194
cat conftest.err >&5
21195
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21196
(exit $ac_status); } && {
21197
test -z "$ac_c_werror_flag" ||
21198
test ! -s conftest.err
21199
} && test -s conftest$ac_exeext &&
21200
$as_test_x conftest$ac_exeext; then
21201
eval "$as_ac_var=yes"
21203
echo "$as_me: failed program was:" >&5
21204
sed 's/^/| /' conftest.$ac_ext >&5
21206
eval "$as_ac_var=no"
21209
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21210
conftest$ac_exeext conftest.$ac_ext
21212
ac_res=`eval echo '${'$as_ac_var'}'`
21213
{ echo "$as_me:$LINENO: result: $ac_res" >&5
21214
echo "${ECHO_T}$ac_res" >&6; }
21215
if test `eval echo '${'$as_ac_var'}'` = yes; then
21216
cat >>confdefs.h <<_ACEOF
21217
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21250
for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
21253
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21254
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21255
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21256
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21257
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21258
echo $ECHO_N "(cached) $ECHO_C" >&6
21260
ac_res=`eval echo '${'$as_ac_Header'}'`
21261
{ echo "$as_me:$LINENO: result: $ac_res" >&5
21262
echo "${ECHO_T}$ac_res" >&6; }
21264
# Is the header compilable?
21265
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21266
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21267
cat >conftest.$ac_ext <<_ACEOF
21270
cat confdefs.h >>conftest.$ac_ext
21271
cat >>conftest.$ac_ext <<_ACEOF
21272
/* end confdefs.h. */
21273
$ac_includes_default
21274
#include <$ac_header>
21276
rm -f conftest.$ac_objext
21277
if { (ac_try="$ac_compile"
21278
case "(($ac_try" in
21279
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21280
*) ac_try_echo=$ac_try;;
21282
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21283
(eval "$ac_compile") 2>conftest.er1
21285
grep -v '^ *+' conftest.er1 >conftest.err
21287
cat conftest.err >&5
21288
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21289
(exit $ac_status); } && {
21290
test -z "$ac_c_werror_flag" ||
21291
test ! -s conftest.err
21292
} && test -s conftest.$ac_objext; then
21293
ac_header_compiler=yes
21295
echo "$as_me: failed program was:" >&5
21296
sed 's/^/| /' conftest.$ac_ext >&5
21298
ac_header_compiler=no
21301
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21302
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21303
echo "${ECHO_T}$ac_header_compiler" >&6; }
21305
# Is the header present?
21306
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21307
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21308
cat >conftest.$ac_ext <<_ACEOF
21311
cat confdefs.h >>conftest.$ac_ext
21312
cat >>conftest.$ac_ext <<_ACEOF
21313
/* end confdefs.h. */
21314
#include <$ac_header>
21316
if { (ac_try="$ac_cpp conftest.$ac_ext"
21317
case "(($ac_try" in
21318
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21319
*) ac_try_echo=$ac_try;;
21321
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21322
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21324
grep -v '^ *+' conftest.er1 >conftest.err
21326
cat conftest.err >&5
21327
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21328
(exit $ac_status); } >/dev/null && {
21329
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21330
test ! -s conftest.err
21332
ac_header_preproc=yes
21334
echo "$as_me: failed program was:" >&5
21335
sed 's/^/| /' conftest.$ac_ext >&5
21337
ac_header_preproc=no
21340
rm -f conftest.err conftest.$ac_ext
21341
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21342
echo "${ECHO_T}$ac_header_preproc" >&6; }
21344
# So? What about this header?
21345
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21347
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21348
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21349
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21350
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21351
ac_header_preproc=yes
21354
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21355
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21356
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21357
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21358
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21359
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21360
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21361
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21362
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21363
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21364
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21365
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21367
## ---------------------------------- ##
21368
## Report this to bug-libtool@gnu.org ##
21369
## ---------------------------------- ##
21371
) | sed "s/^/$as_me: WARNING: /" >&2
21374
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21375
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21376
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21377
echo $ECHO_N "(cached) $ECHO_C" >&6
21379
eval "$as_ac_Header=\$ac_header_preproc"
21381
ac_res=`eval echo '${'$as_ac_Header'}'`
21382
{ echo "$as_me:$LINENO: result: $ac_res" >&5
21383
echo "${ECHO_T}$ac_res" >&6; }
21386
if test `eval echo '${'$as_ac_Header'}'` = yes; then
21387
cat >>confdefs.h <<_ACEOF
21388
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21399
for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
21401
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21402
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21403
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21404
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21405
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21406
echo $ECHO_N "(cached) $ECHO_C" >&6
21408
ac_res=`eval echo '${'$as_ac_Header'}'`
21409
{ echo "$as_me:$LINENO: result: $ac_res" >&5
21410
echo "${ECHO_T}$ac_res" >&6; }
21412
# Is the header compilable?
21413
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21414
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21415
cat >conftest.$ac_ext <<_ACEOF
21418
cat confdefs.h >>conftest.$ac_ext
21419
cat >>conftest.$ac_ext <<_ACEOF
21420
/* end confdefs.h. */
21421
$ac_includes_default
21422
#include <$ac_header>
21424
rm -f conftest.$ac_objext
21425
if { (ac_try="$ac_compile"
21426
case "(($ac_try" in
21427
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21428
*) ac_try_echo=$ac_try;;
21430
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21431
(eval "$ac_compile") 2>conftest.er1
21433
grep -v '^ *+' conftest.er1 >conftest.err
21435
cat conftest.err >&5
21436
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21437
(exit $ac_status); } && {
21438
test -z "$ac_c_werror_flag" ||
21439
test ! -s conftest.err
21440
} && test -s conftest.$ac_objext; then
21441
ac_header_compiler=yes
21443
echo "$as_me: failed program was:" >&5
21444
sed 's/^/| /' conftest.$ac_ext >&5
21446
ac_header_compiler=no
21449
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21450
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21451
echo "${ECHO_T}$ac_header_compiler" >&6; }
21453
# Is the header present?
21454
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21455
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21456
cat >conftest.$ac_ext <<_ACEOF
21459
cat confdefs.h >>conftest.$ac_ext
21460
cat >>conftest.$ac_ext <<_ACEOF
21461
/* end confdefs.h. */
21462
#include <$ac_header>
21464
if { (ac_try="$ac_cpp conftest.$ac_ext"
21465
case "(($ac_try" in
21466
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21467
*) ac_try_echo=$ac_try;;
21469
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21470
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21472
grep -v '^ *+' conftest.er1 >conftest.err
21474
cat conftest.err >&5
21475
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21476
(exit $ac_status); } >/dev/null && {
21477
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21478
test ! -s conftest.err
21480
ac_header_preproc=yes
21482
echo "$as_me: failed program was:" >&5
21483
sed 's/^/| /' conftest.$ac_ext >&5
21485
ac_header_preproc=no
21488
rm -f conftest.err conftest.$ac_ext
21489
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21490
echo "${ECHO_T}$ac_header_preproc" >&6; }
21492
# So? What about this header?
21493
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21495
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21496
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21497
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21498
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21499
ac_header_preproc=yes
21502
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21503
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21504
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21505
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21506
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21507
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21508
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21509
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21510
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21511
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21512
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21513
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21515
## ---------------------------------- ##
21516
## Report this to bug-libtool@gnu.org ##
21517
## ---------------------------------- ##
21519
) | sed "s/^/$as_me: WARNING: /" >&2
21522
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21523
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21524
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21525
echo $ECHO_N "(cached) $ECHO_C" >&6
21527
eval "$as_ac_Header=\$ac_header_preproc"
21529
ac_res=`eval echo '${'$as_ac_Header'}'`
21530
{ echo "$as_me:$LINENO: result: $ac_res" >&5
21531
echo "${ECHO_T}$ac_res" >&6; }
21534
if test `eval echo '${'$as_ac_Header'}'` = yes; then
21535
cat >>confdefs.h <<_ACEOF
21536
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21545
for ac_header in string.h strings.h
21547
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21548
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21549
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21550
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21551
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21552
echo $ECHO_N "(cached) $ECHO_C" >&6
21554
ac_res=`eval echo '${'$as_ac_Header'}'`
21555
{ echo "$as_me:$LINENO: result: $ac_res" >&5
21556
echo "${ECHO_T}$ac_res" >&6; }
21558
# Is the header compilable?
21559
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21560
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21561
cat >conftest.$ac_ext <<_ACEOF
21564
cat confdefs.h >>conftest.$ac_ext
21565
cat >>conftest.$ac_ext <<_ACEOF
21566
/* end confdefs.h. */
21567
$ac_includes_default
21568
#include <$ac_header>
21570
rm -f conftest.$ac_objext
21571
if { (ac_try="$ac_compile"
21572
case "(($ac_try" in
21573
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21574
*) ac_try_echo=$ac_try;;
21576
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21577
(eval "$ac_compile") 2>conftest.er1
21579
grep -v '^ *+' conftest.er1 >conftest.err
21581
cat conftest.err >&5
21582
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21583
(exit $ac_status); } && {
21584
test -z "$ac_c_werror_flag" ||
21585
test ! -s conftest.err
21586
} && test -s conftest.$ac_objext; then
21587
ac_header_compiler=yes
21589
echo "$as_me: failed program was:" >&5
21590
sed 's/^/| /' conftest.$ac_ext >&5
21592
ac_header_compiler=no
21595
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21596
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21597
echo "${ECHO_T}$ac_header_compiler" >&6; }
21599
# Is the header present?
21600
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21601
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21602
cat >conftest.$ac_ext <<_ACEOF
21605
cat confdefs.h >>conftest.$ac_ext
21606
cat >>conftest.$ac_ext <<_ACEOF
21607
/* end confdefs.h. */
21608
#include <$ac_header>
21610
if { (ac_try="$ac_cpp conftest.$ac_ext"
21611
case "(($ac_try" in
21612
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21613
*) ac_try_echo=$ac_try;;
21615
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21616
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21618
grep -v '^ *+' conftest.er1 >conftest.err
21620
cat conftest.err >&5
21621
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21622
(exit $ac_status); } >/dev/null && {
21623
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21624
test ! -s conftest.err
21626
ac_header_preproc=yes
21628
echo "$as_me: failed program was:" >&5
21629
sed 's/^/| /' conftest.$ac_ext >&5
21631
ac_header_preproc=no
21634
rm -f conftest.err conftest.$ac_ext
21635
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21636
echo "${ECHO_T}$ac_header_preproc" >&6; }
21638
# So? What about this header?
21639
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21641
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21642
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21643
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21644
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21645
ac_header_preproc=yes
21648
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21649
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21650
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21651
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21652
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21653
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21654
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21655
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21656
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21657
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21658
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21659
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21661
## ---------------------------------- ##
21662
## Report this to bug-libtool@gnu.org ##
21663
## ---------------------------------- ##
21665
) | sed "s/^/$as_me: WARNING: /" >&2
21668
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21669
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21670
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21671
echo $ECHO_N "(cached) $ECHO_C" >&6
21673
eval "$as_ac_Header=\$ac_header_preproc"
21675
ac_res=`eval echo '${'$as_ac_Header'}'`
21676
{ echo "$as_me:$LINENO: result: $ac_res" >&5
21677
echo "${ECHO_T}$ac_res" >&6; }
21680
if test `eval echo '${'$as_ac_Header'}'` = yes; then
21681
cat >>confdefs.h <<_ACEOF
21682
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21692
for ac_func in strchr index
21694
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21695
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21696
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21697
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21698
echo $ECHO_N "(cached) $ECHO_C" >&6
21700
cat >conftest.$ac_ext <<_ACEOF
21703
cat confdefs.h >>conftest.$ac_ext
21704
cat >>conftest.$ac_ext <<_ACEOF
21705
/* end confdefs.h. */
21706
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21707
For example, HP-UX 11i <limits.h> declares gettimeofday. */
21708
#define $ac_func innocuous_$ac_func
21710
/* System header to define __stub macros and hopefully few prototypes,
21711
which can conflict with char $ac_func (); below.
21712
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21713
<limits.h> exists even on freestanding compilers. */
21716
# include <limits.h>
21718
# include <assert.h>
21723
/* Override any GCC internal prototype to avoid an error.
21724
Use char because int might match the return type of a GCC
21725
builtin and then its argument prototype would still apply. */
21730
/* The GNU C library defines this for functions which it implements
21731
to always fail with ENOSYS. Some functions are actually named
21732
something starting with __ and the normal name is an alias. */
21733
#if defined __stub_$ac_func || defined __stub___$ac_func
21740
return $ac_func ();
21745
rm -f conftest.$ac_objext conftest$ac_exeext
21746
if { (ac_try="$ac_link"
21747
case "(($ac_try" in
21748
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21749
*) ac_try_echo=$ac_try;;
21751
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21752
(eval "$ac_link") 2>conftest.er1
21754
grep -v '^ *+' conftest.er1 >conftest.err
21756
cat conftest.err >&5
21757
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21758
(exit $ac_status); } && {
21759
test -z "$ac_c_werror_flag" ||
21760
test ! -s conftest.err
21761
} && test -s conftest$ac_exeext &&
21762
$as_test_x conftest$ac_exeext; then
21763
eval "$as_ac_var=yes"
21765
echo "$as_me: failed program was:" >&5
21766
sed 's/^/| /' conftest.$ac_ext >&5
21768
eval "$as_ac_var=no"
21771
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21772
conftest$ac_exeext conftest.$ac_ext
21774
ac_res=`eval echo '${'$as_ac_var'}'`
21775
{ echo "$as_me:$LINENO: result: $ac_res" >&5
21776
echo "${ECHO_T}$ac_res" >&6; }
21777
if test `eval echo '${'$as_ac_var'}'` = yes; then
21778
cat >>confdefs.h <<_ACEOF
21779
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21787
for ac_func in strrchr rindex
21789
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21790
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21791
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21792
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21793
echo $ECHO_N "(cached) $ECHO_C" >&6
21795
cat >conftest.$ac_ext <<_ACEOF
21798
cat confdefs.h >>conftest.$ac_ext
21799
cat >>conftest.$ac_ext <<_ACEOF
21800
/* end confdefs.h. */
21801
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21802
For example, HP-UX 11i <limits.h> declares gettimeofday. */
21803
#define $ac_func innocuous_$ac_func
21805
/* System header to define __stub macros and hopefully few prototypes,
21806
which can conflict with char $ac_func (); below.
21807
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21808
<limits.h> exists even on freestanding compilers. */
21811
# include <limits.h>
21813
# include <assert.h>
21818
/* Override any GCC internal prototype to avoid an error.
21819
Use char because int might match the return type of a GCC
21820
builtin and then its argument prototype would still apply. */
21825
/* The GNU C library defines this for functions which it implements
21826
to always fail with ENOSYS. Some functions are actually named
21827
something starting with __ and the normal name is an alias. */
21828
#if defined __stub_$ac_func || defined __stub___$ac_func
21835
return $ac_func ();
21840
rm -f conftest.$ac_objext conftest$ac_exeext
21841
if { (ac_try="$ac_link"
21842
case "(($ac_try" in
21843
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21844
*) ac_try_echo=$ac_try;;
21846
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21847
(eval "$ac_link") 2>conftest.er1
21849
grep -v '^ *+' conftest.er1 >conftest.err
21851
cat conftest.err >&5
21852
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21853
(exit $ac_status); } && {
21854
test -z "$ac_c_werror_flag" ||
21855
test ! -s conftest.err
21856
} && test -s conftest$ac_exeext &&
21857
$as_test_x conftest$ac_exeext; then
21858
eval "$as_ac_var=yes"
21860
echo "$as_me: failed program was:" >&5
21861
sed 's/^/| /' conftest.$ac_ext >&5
21863
eval "$as_ac_var=no"
21866
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21867
conftest$ac_exeext conftest.$ac_ext
21869
ac_res=`eval echo '${'$as_ac_var'}'`
21870
{ echo "$as_me:$LINENO: result: $ac_res" >&5
21871
echo "${ECHO_T}$ac_res" >&6; }
21872
if test `eval echo '${'$as_ac_var'}'` = yes; then
21873
cat >>confdefs.h <<_ACEOF
21874
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21882
for ac_func in memcpy bcopy
21884
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21885
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21886
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21887
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21888
echo $ECHO_N "(cached) $ECHO_C" >&6
21890
cat >conftest.$ac_ext <<_ACEOF
21893
cat confdefs.h >>conftest.$ac_ext
21894
cat >>conftest.$ac_ext <<_ACEOF
21895
/* end confdefs.h. */
21896
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21897
For example, HP-UX 11i <limits.h> declares gettimeofday. */
21898
#define $ac_func innocuous_$ac_func
21900
/* System header to define __stub macros and hopefully few prototypes,
21901
which can conflict with char $ac_func (); below.
21902
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21903
<limits.h> exists even on freestanding compilers. */
21906
# include <limits.h>
21908
# include <assert.h>
21913
/* Override any GCC internal prototype to avoid an error.
21914
Use char because int might match the return type of a GCC
21915
builtin and then its argument prototype would still apply. */
21920
/* The GNU C library defines this for functions which it implements
21921
to always fail with ENOSYS. Some functions are actually named
21922
something starting with __ and the normal name is an alias. */
21923
#if defined __stub_$ac_func || defined __stub___$ac_func
21930
return $ac_func ();
21935
rm -f conftest.$ac_objext conftest$ac_exeext
21936
if { (ac_try="$ac_link"
21937
case "(($ac_try" in
21938
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21939
*) ac_try_echo=$ac_try;;
21941
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21942
(eval "$ac_link") 2>conftest.er1
21944
grep -v '^ *+' conftest.er1 >conftest.err
21946
cat conftest.err >&5
21947
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21948
(exit $ac_status); } && {
21949
test -z "$ac_c_werror_flag" ||
21950
test ! -s conftest.err
21951
} && test -s conftest$ac_exeext &&
21952
$as_test_x conftest$ac_exeext; then
21953
eval "$as_ac_var=yes"
21955
echo "$as_me: failed program was:" >&5
21956
sed 's/^/| /' conftest.$ac_ext >&5
21958
eval "$as_ac_var=no"
21961
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21962
conftest$ac_exeext conftest.$ac_ext
21964
ac_res=`eval echo '${'$as_ac_var'}'`
21965
{ echo "$as_me:$LINENO: result: $ac_res" >&5
21966
echo "${ECHO_T}$ac_res" >&6; }
21967
if test `eval echo '${'$as_ac_var'}'` = yes; then
21968
cat >>confdefs.h <<_ACEOF
21969
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21977
for ac_func in memmove strcmp
21979
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21980
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21981
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21982
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21983
echo $ECHO_N "(cached) $ECHO_C" >&6
21985
cat >conftest.$ac_ext <<_ACEOF
21988
cat confdefs.h >>conftest.$ac_ext
21989
cat >>conftest.$ac_ext <<_ACEOF
21990
/* end confdefs.h. */
21991
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21992
For example, HP-UX 11i <limits.h> declares gettimeofday. */
21993
#define $ac_func innocuous_$ac_func
21995
/* System header to define __stub macros and hopefully few prototypes,
21996
which can conflict with char $ac_func (); below.
21997
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21998
<limits.h> exists even on freestanding compilers. */
22001
# include <limits.h>
22003
# include <assert.h>
22008
/* Override any GCC internal prototype to avoid an error.
22009
Use char because int might match the return type of a GCC
22010
builtin and then its argument prototype would still apply. */
22015
/* The GNU C library defines this for functions which it implements
22016
to always fail with ENOSYS. Some functions are actually named
22017
something starting with __ and the normal name is an alias. */
22018
#if defined __stub_$ac_func || defined __stub___$ac_func
22025
return $ac_func ();
22030
rm -f conftest.$ac_objext conftest$ac_exeext
22031
if { (ac_try="$ac_link"
22032
case "(($ac_try" in
22033
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22034
*) ac_try_echo=$ac_try;;
22036
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22037
(eval "$ac_link") 2>conftest.er1
22039
grep -v '^ *+' conftest.er1 >conftest.err
22041
cat conftest.err >&5
22042
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22043
(exit $ac_status); } && {
22044
test -z "$ac_c_werror_flag" ||
22045
test ! -s conftest.err
22046
} && test -s conftest$ac_exeext &&
22047
$as_test_x conftest$ac_exeext; then
22048
eval "$as_ac_var=yes"
22050
echo "$as_me: failed program was:" >&5
22051
sed 's/^/| /' conftest.$ac_ext >&5
22053
eval "$as_ac_var=no"
22056
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22057
conftest$ac_exeext conftest.$ac_ext
22059
ac_res=`eval echo '${'$as_ac_var'}'`
22060
{ echo "$as_me:$LINENO: result: $ac_res" >&5
22061
echo "${ECHO_T}$ac_res" >&6; }
22062
if test `eval echo '${'$as_ac_var'}'` = yes; then
22063
cat >>confdefs.h <<_ACEOF
22064
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22073
for ac_func in closedir opendir readdir
22075
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22076
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22077
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22078
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22079
echo $ECHO_N "(cached) $ECHO_C" >&6
22081
cat >conftest.$ac_ext <<_ACEOF
22084
cat confdefs.h >>conftest.$ac_ext
22085
cat >>conftest.$ac_ext <<_ACEOF
22086
/* end confdefs.h. */
22087
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22088
For example, HP-UX 11i <limits.h> declares gettimeofday. */
22089
#define $ac_func innocuous_$ac_func
22091
/* System header to define __stub macros and hopefully few prototypes,
22092
which can conflict with char $ac_func (); below.
22093
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22094
<limits.h> exists even on freestanding compilers. */
22097
# include <limits.h>
22099
# include <assert.h>
22104
/* Override any GCC internal prototype to avoid an error.
22105
Use char because int might match the return type of a GCC
22106
builtin and then its argument prototype would still apply. */
22111
/* The GNU C library defines this for functions which it implements
22112
to always fail with ENOSYS. Some functions are actually named
22113
something starting with __ and the normal name is an alias. */
22114
#if defined __stub_$ac_func || defined __stub___$ac_func
22121
return $ac_func ();
22126
rm -f conftest.$ac_objext conftest$ac_exeext
22127
if { (ac_try="$ac_link"
22128
case "(($ac_try" in
22129
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22130
*) ac_try_echo=$ac_try;;
22132
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22133
(eval "$ac_link") 2>conftest.er1
22135
grep -v '^ *+' conftest.er1 >conftest.err
22137
cat conftest.err >&5
22138
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22139
(exit $ac_status); } && {
22140
test -z "$ac_c_werror_flag" ||
22141
test ! -s conftest.err
22142
} && test -s conftest$ac_exeext &&
22143
$as_test_x conftest$ac_exeext; then
22144
eval "$as_ac_var=yes"
22146
echo "$as_me: failed program was:" >&5
22147
sed 's/^/| /' conftest.$ac_ext >&5
22149
eval "$as_ac_var=no"
22152
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22153
conftest$ac_exeext conftest.$ac_ext
22155
ac_res=`eval echo '${'$as_ac_var'}'`
22156
{ echo "$as_me:$LINENO: result: $ac_res" >&5
22157
echo "${ECHO_T}$ac_res" >&6; }
22158
if test `eval echo '${'$as_ac_var'}'` = yes; then
22159
cat >>confdefs.h <<_ACEOF
22160
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22172
ac_config_files="$ac_config_files Makefile"
22174
cat >confcache <<\_ACEOF
22175
# This file is a shell script that caches the results of configure
22176
# tests run on this system so they can be shared between configure
22177
# scripts and configure runs, see configure's option --config-cache.
22178
# It is not useful on other systems. If it contains results you don't
22179
# want to keep, you may remove or edit it.
22181
# config.status only pays attention to the cache file if you give it
22182
# the --recheck option to rerun configure.
22184
# `ac_cv_env_foo' variables (set or unset) will be overridden when
22185
# loading this file, other *unset* `ac_cv_foo' will be assigned the
22186
# following values.
22190
# The following way of writing the cache mishandles newlines in values,
22191
# but we know of no workaround that is simple, portable, and efficient.
22192
# So, we kill variables containing newlines.
22193
# Ultrix sh set writes to stderr and can't be redirected directly,
22194
# and sets the high bit in the cache file unless we assign to the vars.
22196
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22197
eval ac_val=\$$ac_var
22201
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22202
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22205
_ | IFS | as_nl) ;; #(
22206
*) $as_unset $ac_var ;;
22212
case $as_nl`(ac_space=' '; set) 2>&1` in #(
22213
*${as_nl}ac_space=\ *)
22214
# `set' does not quote correctly, so add quotes (double-quote
22215
# substitution turns \\\\ into \\, and sed turns \\ into \).
22218
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22221
# `set' quotes correctly as required by POSIX, so do not add quotes.
22222
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22231
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22233
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22235
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22236
if test -w "$cache_file"; then
22237
test "x$cache_file" != "x/dev/null" &&
22238
{ echo "$as_me:$LINENO: updating cache $cache_file" >&5
22239
echo "$as_me: updating cache $cache_file" >&6;}
22240
cat confcache >$cache_file
22242
{ echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22243
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22248
test "x$prefix" = xNONE && prefix=$ac_default_prefix
22249
# Let make expand exec_prefix.
22250
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22252
DEFS=-DHAVE_CONFIG_H
22256
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22257
# 1. Remove the extension, and $U if already installed.
22258
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22259
ac_i=`echo "$ac_i" | sed "$ac_script"`
22260
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22261
# will be set to the directory where LIBOBJS objects are built.
22262
ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22263
ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22265
LIBOBJS=$ac_libobjs
22267
LTLIBOBJS=$ac_ltlibobjs
22270
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22271
{ { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22272
Usually this means the macro was only invoked conditionally." >&5
22273
echo "$as_me: error: conditional \"AMDEP\" was never defined.
22274
Usually this means the macro was only invoked conditionally." >&2;}
22275
{ (exit 1); exit 1; }; }
22277
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22278
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22279
Usually this means the macro was only invoked conditionally." >&5
22280
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22281
Usually this means the macro was only invoked conditionally." >&2;}
22282
{ (exit 1); exit 1; }; }
22284
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22285
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22286
Usually this means the macro was only invoked conditionally." >&5
22287
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22288
Usually this means the macro was only invoked conditionally." >&2;}
22289
{ (exit 1); exit 1; }; }
22291
if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22292
{ { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22293
Usually this means the macro was only invoked conditionally." >&5
22294
echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22295
Usually this means the macro was only invoked conditionally." >&2;}
22296
{ (exit 1); exit 1; }; }
22298
if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22299
{ { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22300
Usually this means the macro was only invoked conditionally." >&5
22301
echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22302
Usually this means the macro was only invoked conditionally." >&2;}
22303
{ (exit 1); exit 1; }; }
22306
: ${CONFIG_STATUS=./config.status}
22307
ac_clean_files_save=$ac_clean_files
22308
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22309
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22310
echo "$as_me: creating $CONFIG_STATUS" >&6;}
22311
cat >$CONFIG_STATUS <<_ACEOF
22313
# Generated by $as_me.
22314
# Run this file to recreate the current configuration.
22315
# Compiler output produced by configure, useful for debugging
22316
# configure, is in config.log if it exists.
22319
ac_cs_recheck=false
22321
SHELL=\${CONFIG_SHELL-$SHELL}
22324
cat >>$CONFIG_STATUS <<\_ACEOF
22325
## --------------------- ##
22326
## M4sh Initialization. ##
22327
## --------------------- ##
22329
# Be more Bourne compatible
22330
DUALCASE=1; export DUALCASE # for MKS sh
22331
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22334
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22335
# is contrary to our usage. Disable this feature.
22336
alias -g '${1+"$@"}'='"$@"'
22337
setopt NO_GLOB_SUBST
22339
case `(set -o) 2>/dev/null` in
22340
*posix*) set -o posix ;;
22349
# Avoid depending upon Character Ranges.
22350
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22351
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22352
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22353
as_cr_digits='0123456789'
22354
as_cr_alnum=$as_cr_Letters$as_cr_digits
22356
# The user is always right.
22357
if test "${PATH_SEPARATOR+set}" != set; then
22358
echo "#! /bin/sh" >conf$$.sh
22359
echo "exit 0" >>conf$$.sh
22361
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22369
# Support unset when possible.
22370
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22378
# We need space, tab and new line, in precisely that order. Quoting is
22379
# there to prevent editors from complaining about space-tab.
22380
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
22381
# splitting by setting IFS to empty value.)
22386
# Find who we are. Look in the path if we contain no directory separator.
22388
*[\\/]* ) as_myself=$0 ;;
22389
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22390
for as_dir in $PATH
22393
test -z "$as_dir" && as_dir=.
22394
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22400
# We did not find ourselves, most probably we were run as `sh COMMAND'
22401
# in which case we are not to be found in the path.
22402
if test "x$as_myself" = x; then
22405
if test ! -f "$as_myself"; then
22406
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22407
{ (exit 1); exit 1; }
22410
# Work around bugs in pre-3.0 UWIN ksh.
22411
for as_var in ENV MAIL MAILPATH
22412
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22420
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22421
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22422
LC_TELEPHONE LC_TIME
22424
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22425
eval $as_var=C; export $as_var
22427
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22431
# Required to use basename.
22432
if expr a : '\(a\)' >/dev/null 2>&1 &&
22433
test "X`expr 00001 : '.*\(...\)'`" = X001; then
22439
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22440
as_basename=basename
22446
# Name of the executable.
22447
as_me=`$as_basename -- "$0" ||
22448
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22449
X"$0" : 'X\(//\)$' \| \
22450
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22452
sed '/^.*\/\([^/][^/]*\)\/*$/{
22471
as_lineno_1=$LINENO
22472
as_lineno_2=$LINENO
22473
test "x$as_lineno_1" != "x$as_lineno_2" &&
22474
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22476
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22477
# uniformly replaced by the line number. The first 'sed' inserts a
22478
# line-number line after each line using $LINENO; the second 'sed'
22479
# does the real work. The second script uses 'N' to pair each
22480
# line-number line with the line containing $LINENO, and appends
22481
# trailing '-' during substitution so that $LINENO is not a special
22482
# case at line end.
22483
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22484
# scripts with optimization help from Paolo Bonzini. Blame Lee
22485
# E. McMahon (1931-1989) for sed's syntax. :-)
22497
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22500
' >$as_me.lineno &&
22501
chmod +x "$as_me.lineno" ||
22502
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22503
{ (exit 1); exit 1; }; }
22505
# Don't try to exec as it changes $[0], causing all sort of problems
22506
# (the dirname of $[0] is not the place where we might find the
22507
# original and so on. Autoconf is especially sensitive to this).
22508
. "./$as_me.lineno"
22509
# Exit status is that of the last command.
22514
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22520
ECHO_C= ECHO_N= ECHO_T=
22521
case `echo -n x` in
22523
case `echo 'x\c'` in
22524
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
22531
if expr a : '\(a\)' >/dev/null 2>&1 &&
22532
test "X`expr 00001 : '.*\(...\)'`" = X001; then
22538
rm -f conf$$ conf$$.exe conf$$.file
22539
if test -d conf$$.dir; then
22540
rm -f conf$$.dir/conf$$.file
22546
if ln -s conf$$.file conf$$ 2>/dev/null; then
22548
# ... but there are two gotchas:
22549
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22550
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22551
# In both cases, we have to default to `cp -p'.
22552
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22554
elif ln conf$$.file conf$$ 2>/dev/null; then
22559
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22560
rmdir conf$$.dir 2>/dev/null
22562
if mkdir -p . 2>/dev/null; then
22565
test -d ./-p && rmdir ./-p
22569
if test -x / >/dev/null 2>&1; then
22570
as_test_x='test -x'
22572
if ls -dL / >/dev/null 2>&1; then
22579
if test -d "$1"; then
22585
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22586
???[sx]*):;;*)false;;esac;fi
22590
as_executable_p=$as_test_x
22592
# Sed expression to map a string onto a valid CPP name.
22593
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22595
# Sed expression to map a string onto a valid variable name.
22596
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22601
# Save the log message, to keep $[0] and so on meaningful, and to
22602
# report actual input values of CONFIG_FILES etc. instead of their
22603
# values after options handling.
22605
This file was extended by libltdl $as_me 1.2, which was
22606
generated by GNU Autoconf 2.61. Invocation command line was
22608
CONFIG_FILES = $CONFIG_FILES
22609
CONFIG_HEADERS = $CONFIG_HEADERS
22610
CONFIG_LINKS = $CONFIG_LINKS
22611
CONFIG_COMMANDS = $CONFIG_COMMANDS
22614
on `(hostname || uname -n) 2>/dev/null | sed 1q`
22619
cat >>$CONFIG_STATUS <<_ACEOF
22620
# Files that config.status was made for.
22621
config_files="$ac_config_files"
22622
config_headers="$ac_config_headers"
22623
config_commands="$ac_config_commands"
22627
cat >>$CONFIG_STATUS <<\_ACEOF
22629
\`$as_me' instantiates files from templates according to the
22630
current configuration.
22632
Usage: $0 [OPTIONS] [FILE]...
22634
-h, --help print this help, then exit
22635
-V, --version print version number and configuration settings, then exit
22636
-q, --quiet do not print progress messages
22637
-d, --debug don't remove temporary files
22638
--recheck update $as_me by reconfiguring in the same conditions
22639
--file=FILE[:TEMPLATE]
22640
instantiate the configuration file FILE
22641
--header=FILE[:TEMPLATE]
22642
instantiate the configuration header FILE
22644
Configuration files:
22647
Configuration headers:
22650
Configuration commands:
22653
Report bugs to <bug-autoconf@gnu.org>."
22656
cat >>$CONFIG_STATUS <<_ACEOF
22658
libltdl config.status 1.2
22659
configured by $0, generated by GNU Autoconf 2.61,
22660
with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22662
Copyright (C) 2006 Free Software Foundation, Inc.
22663
This config.status script is free software; the Free Software Foundation
22664
gives unlimited permission to copy, distribute and modify it."
22672
cat >>$CONFIG_STATUS <<\_ACEOF
22673
# If no file are specified by the user, then we need to provide default
22674
# value. By we need to know if files were specified by the user.
22680
ac_option=`expr "X$1" : 'X\([^=]*\)='`
22681
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22692
# Handling of the options.
22693
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22695
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22696
echo "$ac_cs_version"; exit ;;
22697
--debug | --debu | --deb | --de | --d | -d )
22699
--file | --fil | --fi | --f )
22701
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22702
ac_need_defaults=false;;
22703
--header | --heade | --head | --hea )
22705
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22706
ac_need_defaults=false;;
22708
# Conflict between --help and --header
22709
{ echo "$as_me: error: ambiguous option: $1
22710
Try \`$0 --help' for more information." >&2
22711
{ (exit 1); exit 1; }; };;
22712
--help | --hel | -h )
22713
echo "$ac_cs_usage"; exit ;;
22714
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
22715
| -silent | --silent | --silen | --sile | --sil | --si | --s)
22718
# This is an error.
22719
-*) { echo "$as_me: error: unrecognized option: $1
22720
Try \`$0 --help' for more information." >&2
22721
{ (exit 1); exit 1; }; } ;;
22723
*) ac_config_targets="$ac_config_targets $1"
22724
ac_need_defaults=false ;;
22730
ac_configure_extra_args=
22732
if $ac_cs_silent; then
22734
ac_configure_extra_args="$ac_configure_extra_args --silent"
22738
cat >>$CONFIG_STATUS <<_ACEOF
22739
if \$ac_cs_recheck; then
22740
echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22741
CONFIG_SHELL=$SHELL
22742
export CONFIG_SHELL
22743
exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22747
cat >>$CONFIG_STATUS <<\_ACEOF
22751
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22752
## Running $as_me. ##
22758
cat >>$CONFIG_STATUS <<_ACEOF
22762
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22766
cat >>$CONFIG_STATUS <<\_ACEOF
22768
# Handling of arguments.
22769
for ac_config_target in $ac_config_targets
22771
case $ac_config_target in
22772
"config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config-h.in" ;;
22773
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22774
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22776
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22777
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22778
{ (exit 1); exit 1; }; };;
22783
# If the user did not use the arguments to specify the items to instantiate,
22784
# then the envvar interface is used. Set only those that are not.
22785
# We use the long form for the default assignment because of an extremely
22786
# bizarre bug on SunOS 4.1.3.
22787
if $ac_need_defaults; then
22788
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22789
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22790
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22793
# Have a temporary directory for convenience. Make it in the build tree
22794
# simply because there is no reason against having it here, and in addition,
22795
# creating and moving files from /tmp can sometimes cause problems.
22796
# Hook for its removal unless debugging.
22797
# Note that there is a small window in which the directory will not be cleaned:
22798
# after its creation but before its name has been assigned to `$tmp'.
22802
trap 'exit_status=$?
22803
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22805
trap '{ (exit 1); exit 1; }' 1 2 13 15
22807
# Create a (secure) tmp directory for tmp files.
22810
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22811
test -n "$tmp" && test -d "$tmp"
22814
tmp=./conf$$-$RANDOM
22815
(umask 077 && mkdir "$tmp")
22818
echo "$me: cannot create a temporary directory in ." >&2
22819
{ (exit 1); exit 1; }
22823
# Set up the sed scripts for CONFIG_FILES section.
22826
# No need to generate the scripts if there are no CONFIG_FILES.
22827
# This happens for instance when ./config.status config.h
22828
if test -n "$CONFIG_FILES"; then
22835
for ac_last_try in false false false false false :; do
22836
cat >conf$$subs.sed <<_ACEOF
22837
SHELL!$SHELL$ac_delim
22838
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22839
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22840
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22841
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22842
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22843
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22844
exec_prefix!$exec_prefix$ac_delim
22845
prefix!$prefix$ac_delim
22846
program_transform_name!$program_transform_name$ac_delim
22847
bindir!$bindir$ac_delim
22848
sbindir!$sbindir$ac_delim
22849
libexecdir!$libexecdir$ac_delim
22850
datarootdir!$datarootdir$ac_delim
22851
datadir!$datadir$ac_delim
22852
sysconfdir!$sysconfdir$ac_delim
22853
sharedstatedir!$sharedstatedir$ac_delim
22854
localstatedir!$localstatedir$ac_delim
22855
includedir!$includedir$ac_delim
22856
oldincludedir!$oldincludedir$ac_delim
22857
docdir!$docdir$ac_delim
22858
infodir!$infodir$ac_delim
22859
htmldir!$htmldir$ac_delim
22860
dvidir!$dvidir$ac_delim
22861
pdfdir!$pdfdir$ac_delim
22862
psdir!$psdir$ac_delim
22863
libdir!$libdir$ac_delim
22864
localedir!$localedir$ac_delim
22865
mandir!$mandir$ac_delim
22866
DEFS!$DEFS$ac_delim
22867
ECHO_C!$ECHO_C$ac_delim
22868
ECHO_N!$ECHO_N$ac_delim
22869
ECHO_T!$ECHO_T$ac_delim
22870
LIBS!$LIBS$ac_delim
22871
build_alias!$build_alias$ac_delim
22872
host_alias!$host_alias$ac_delim
22873
target_alias!$target_alias$ac_delim
22874
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22875
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22876
INSTALL_DATA!$INSTALL_DATA$ac_delim
22877
am__isrc!$am__isrc$ac_delim
22878
CYGPATH_W!$CYGPATH_W$ac_delim
22879
PACKAGE!$PACKAGE$ac_delim
22880
VERSION!$VERSION$ac_delim
22881
ACLOCAL!$ACLOCAL$ac_delim
22882
AUTOCONF!$AUTOCONF$ac_delim
22883
AUTOMAKE!$AUTOMAKE$ac_delim
22884
AUTOHEADER!$AUTOHEADER$ac_delim
22885
MAKEINFO!$MAKEINFO$ac_delim
22886
install_sh!$install_sh$ac_delim
22887
STRIP!$STRIP$ac_delim
22888
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
22889
mkdir_p!$mkdir_p$ac_delim
22891
SET_MAKE!$SET_MAKE$ac_delim
22892
am__leading_dot!$am__leading_dot$ac_delim
22893
AMTAR!$AMTAR$ac_delim
22894
am__tar!$am__tar$ac_delim
22895
am__untar!$am__untar$ac_delim
22897
CFLAGS!$CFLAGS$ac_delim
22898
LDFLAGS!$LDFLAGS$ac_delim
22899
CPPFLAGS!$CPPFLAGS$ac_delim
22900
ac_ct_CC!$ac_ct_CC$ac_delim
22901
EXEEXT!$EXEEXT$ac_delim
22902
OBJEXT!$OBJEXT$ac_delim
22903
DEPDIR!$DEPDIR$ac_delim
22904
am__include!$am__include$ac_delim
22905
am__quote!$am__quote$ac_delim
22906
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
22907
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
22908
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
22909
CCDEPMODE!$CCDEPMODE$ac_delim
22910
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
22911
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
22912
build!$build$ac_delim
22913
build_cpu!$build_cpu$ac_delim
22914
build_vendor!$build_vendor$ac_delim
22915
build_os!$build_os$ac_delim
22916
host!$host$ac_delim
22917
host_cpu!$host_cpu$ac_delim
22918
host_vendor!$host_vendor$ac_delim
22919
host_os!$host_os$ac_delim
22920
GREP!$GREP$ac_delim
22921
EGREP!$EGREP$ac_delim
22922
LN_S!$LN_S$ac_delim
22923
ECHO!$ECHO$ac_delim
22925
RANLIB!$RANLIB$ac_delim
22926
DLLTOOL!$DLLTOOL$ac_delim
22928
OBJDUMP!$OBJDUMP$ac_delim
22931
CXXFLAGS!$CXXFLAGS$ac_delim
22932
ac_ct_CXX!$ac_ct_CXX$ac_delim
22933
CXXDEPMODE!$CXXDEPMODE$ac_delim
22936
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22938
elif $ac_last_try; then
22939
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22940
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22941
{ (exit 1); exit 1; }; }
22943
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22947
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22948
if test -n "$ac_eof"; then
22949
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22950
ac_eof=`expr $ac_eof + 1`
22953
cat >>$CONFIG_STATUS <<_ACEOF
22954
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22955
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22958
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22959
s/^/s,@/; s/!/@,|#_!!_#|/
22962
s/'"$ac_delim"'$/,g/; t
22964
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22965
' >>$CONFIG_STATUS <conf$$subs.sed
22966
rm -f conf$$subs.sed
22967
cat >>$CONFIG_STATUS <<_ACEOF
22973
for ac_last_try in false false false false false :; do
22974
cat >conf$$subs.sed <<_ACEOF
22975
am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
22976
am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
22977
CXXCPP!$CXXCPP$ac_delim
22979
FFLAGS!$FFLAGS$ac_delim
22980
ac_ct_F77!$ac_ct_F77$ac_delim
22981
LIBTOOL!$LIBTOOL$ac_delim
22982
LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
22983
INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22984
INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22985
CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22986
CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22987
LIBADD_DL!$LIBADD_DL$ac_delim
22988
LIBOBJS!$LIBOBJS$ac_delim
22989
LTLIBOBJS!$LTLIBOBJS$ac_delim
22992
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 15; then
22994
elif $ac_last_try; then
22995
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22996
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22997
{ (exit 1); exit 1; }; }
22999
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23003
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23004
if test -n "$ac_eof"; then
23005
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23006
ac_eof=`expr $ac_eof + 1`
23009
cat >>$CONFIG_STATUS <<_ACEOF
23010
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23011
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23014
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23015
s/^/s,@/; s/!/@,|#_!!_#|/
23018
s/'"$ac_delim"'$/,g/; t
23020
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23021
' >>$CONFIG_STATUS <conf$$subs.sed
23022
rm -f conf$$subs.sed
23023
cat >>$CONFIG_STATUS <<_ACEOF
23030
# VPATH may cause trouble with some makes, so we remove $(srcdir),
23031
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23032
# trailing colons and then remove the whole line if VPATH becomes empty
23033
# (actually we leave an empty line to preserve line numbers).
23034
if test "x$srcdir" = x.; then
23035
ac_vpsub='/^[ ]*VPATH[ ]*=/{
23036
s/:*\$(srcdir):*/:/
23037
s/:*\${srcdir}:*/:/
23039
s/^\([^=]*=[ ]*\):*/\1/
23045
cat >>$CONFIG_STATUS <<\_ACEOF
23046
fi # test -n "$CONFIG_FILES"
23049
for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
23052
:[FHLC]) ac_mode=$ac_tag; continue;;
23054
case $ac_mode$ac_tag in
23056
:L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23057
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23058
{ (exit 1); exit 1; }; };;
23059
:[FH]-) ac_tag=-:-;;
23060
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23077
-) ac_f="$tmp/stdin";;
23078
*) # Look for the file first in the build tree, then in the source tree
23079
# (if the path is not absolute). The absolute path cannot be DOS-style,
23080
# because $ac_f cannot contain `:'.
23084
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23086
{ { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23087
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23088
{ (exit 1); exit 1; }; };;
23090
ac_file_inputs="$ac_file_inputs $ac_f"
23093
# Let's still pretend it is `configure' which instantiates (i.e., don't
23094
# use $as_me), people would be surprised to read:
23095
# /* config.h. Generated by config.status. */
23096
configure_input="Generated from "`IFS=:
23097
echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23098
if test x"$ac_file" != x-; then
23099
configure_input="$ac_file. $configure_input"
23100
{ echo "$as_me:$LINENO: creating $ac_file" >&5
23101
echo "$as_me: creating $ac_file" >&6;}
23105
*:-:* | *:-) cat >"$tmp/stdin";;
23110
ac_dir=`$as_dirname -- "$ac_file" ||
23111
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23112
X"$ac_file" : 'X\(//\)[^/]' \| \
23113
X"$ac_file" : 'X\(//\)$' \| \
23114
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23116
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23120
/^X\(\/\/\)[^/].*/{
23135
-*) as_dir=./$as_dir;;
23137
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23141
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23142
*) as_qdir=$as_dir;;
23144
as_dirs="'$as_qdir' $as_dirs"
23145
as_dir=`$as_dirname -- "$as_dir" ||
23146
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23147
X"$as_dir" : 'X\(//\)[^/]' \| \
23148
X"$as_dir" : 'X\(//\)$' \| \
23149
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23151
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23155
/^X\(\/\/\)[^/].*/{
23168
test -d "$as_dir" && break
23170
test -z "$as_dirs" || eval "mkdir $as_dirs"
23171
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23172
echo "$as_me: error: cannot create directory $as_dir" >&2;}
23173
{ (exit 1); exit 1; }; }; }
23177
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23179
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23180
# A ".." for each directory in $ac_dir_suffix.
23181
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23182
case $ac_top_builddir_sub in
23183
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23184
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23187
ac_abs_top_builddir=$ac_pwd
23188
ac_abs_builddir=$ac_pwd$ac_dir_suffix
23189
# for backward compatibility:
23190
ac_top_builddir=$ac_top_build_prefix
23193
.) # We are building in place.
23195
ac_top_srcdir=$ac_top_builddir_sub
23196
ac_abs_top_srcdir=$ac_pwd ;;
23197
[\\/]* | ?:[\\/]* ) # Absolute name.
23198
ac_srcdir=$srcdir$ac_dir_suffix;
23199
ac_top_srcdir=$srcdir
23200
ac_abs_top_srcdir=$srcdir ;;
23201
*) # Relative name.
23202
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23203
ac_top_srcdir=$ac_top_build_prefix$srcdir
23204
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23206
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23216
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23217
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23219
ac_MKDIR_P=$MKDIR_P
23221
[\\/$]* | ?:[\\/]* ) ;;
23222
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23226
cat >>$CONFIG_STATUS <<\_ACEOF
23227
# If the template does not know about datarootdir, expand it.
23228
# FIXME: This hack should be removed a few years after 2.60.
23229
ac_datarootdir_hack=; ac_datarootdir_seen=
23231
case `sed -n '/datarootdir/ {
23240
' $ac_file_inputs` in
23241
*datarootdir*) ac_datarootdir_seen=yes;;
23242
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23243
{ echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23244
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23246
cat >>$CONFIG_STATUS <<_ACEOF
23247
ac_datarootdir_hack='
23248
s&@datadir@&$datadir&g
23249
s&@docdir@&$docdir&g
23250
s&@infodir@&$infodir&g
23251
s&@localedir@&$localedir&g
23252
s&@mandir@&$mandir&g
23253
s&\\\${datarootdir}&$datarootdir&g' ;;
23257
# Neutralize VPATH when `$srcdir' = `.'.
23258
# Shell code in configure.ac might set extrasub.
23259
# FIXME: do we really want to maintain this feature?
23260
cat >>$CONFIG_STATUS <<_ACEOF
23264
cat >>$CONFIG_STATUS <<\_ACEOF
23266
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23267
s&@configure_input@&$configure_input&;t t
23268
s&@top_builddir@&$ac_top_builddir_sub&;t t
23269
s&@srcdir@&$ac_srcdir&;t t
23270
s&@abs_srcdir@&$ac_abs_srcdir&;t t
23271
s&@top_srcdir@&$ac_top_srcdir&;t t
23272
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23273
s&@builddir@&$ac_builddir&;t t
23274
s&@abs_builddir@&$ac_abs_builddir&;t t
23275
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23276
s&@INSTALL@&$ac_INSTALL&;t t
23277
s&@MKDIR_P@&$ac_MKDIR_P&;t t
23278
$ac_datarootdir_hack
23279
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
23281
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23282
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23283
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23284
{ echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23285
which seems to be undefined. Please make sure it is defined." >&5
23286
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23287
which seems to be undefined. Please make sure it is defined." >&2;}
23291
-) cat "$tmp/out"; rm -f "$tmp/out";;
23292
*) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23301
# Transform confdefs.h into a sed script `conftest.defines', that
23302
# substitutes the proper values into config.h.in to produce config.h.
23303
rm -f conftest.defines conftest.tail
23304
# First, append a space to every undef/define line, to ease matching.
23305
echo 's/$/ /' >conftest.defines
23306
# Then, protect against being on the right side of a sed subst, or in
23307
# an unquoted here document, in config.status. If some macros were
23308
# called several times there might be several #defines for the same
23309
# symbol, which is useless. But do not sort them, since the last
23310
# AC_DEFINE must be honored.
23311
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23312
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23313
# NAME is the cpp macro being defined, VALUE is the value it is being given.
23314
# PARAMS is the parameter list in the macro definition--in most cases, it's
23315
# just an empty string.
23316
ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23317
ac_dB='\\)[ (].*,\\1define\\2'
23325
s/^[ ]*#[ ]*define[ ][ ]*//
23330
s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23331
s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23332
' >>conftest.defines
23334
# Remove the space that was appended to ease matching.
23335
# Then replace #undef with comments. This is necessary, for
23336
# example, in the case of _POSIX_SOURCE, which is predefined and required
23337
# on some systems where configure will not decide to define it.
23338
# (The regexp can be short, since the line contains either #define or #undef.)
23340
s,^[ #]*u.*,/* & */,' >>conftest.defines
23342
# Break up conftest.defines:
23343
ac_max_sed_lines=50
23345
# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23346
# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23347
# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23349
ac_in='$ac_file_inputs'
23350
ac_out='"$tmp/out1"'
23351
ac_nxt='"$tmp/out2"'
23355
# Write a here document:
23356
cat >>$CONFIG_STATUS <<_ACEOF
23357
# First, check the format of the line:
23358
cat >"\$tmp/defines.sed" <<\\CEOF
23359
/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23360
/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23364
sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23366
sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23367
ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23368
sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23369
grep . conftest.tail >/dev/null || break
23370
rm -f conftest.defines
23371
mv conftest.tail conftest.defines
23373
rm -f conftest.defines conftest.tail
23375
echo "ac_result=$ac_in" >>$CONFIG_STATUS
23376
cat >>$CONFIG_STATUS <<\_ACEOF
23377
if test x"$ac_file" != x-; then
23378
echo "/* $configure_input */" >"$tmp/config.h"
23379
cat "$ac_result" >>"$tmp/config.h"
23380
if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23381
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23382
echo "$as_me: $ac_file is unchanged" >&6;}
23385
mv "$tmp/config.h" $ac_file
23388
echo "/* $configure_input */"
23392
# Compute $ac_file's index in $config_headers.
23395
for _am_header in $config_headers :; do
23396
case $_am_header in
23397
$_am_arg | $_am_arg:* )
23400
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
23403
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23404
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23405
X"$_am_arg" : 'X\(//\)[^/]' \| \
23406
X"$_am_arg" : 'X\(//\)$' \| \
23407
X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23409
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23413
/^X\(\/\/\)[^/].*/{
23425
s/.*/./; q'`/stamp-h$_am_stamp_count
23428
:C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23429
echo "$as_me: executing $ac_file commands" >&6;}
23434
case $ac_file$ac_mode in
23435
"depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23436
# Strip MF so we end up with the name of the file.
23437
mf=`echo "$mf" | sed -e 's/:.*$//'`
23438
# Check whether this is an Automake generated Makefile or not.
23439
# We used to match only the files named `Makefile.in', but
23440
# some people rename them; so instead we look at the file content.
23441
# Grep'ing the first line is not enough: some people post-process
23442
# each Makefile.in and add a new line on top of each file to say so.
23443
# Grep'ing the whole file is not good either: AIX grep has a line
23444
# limit of 2048, but all sed's we know have understand at least 4000.
23445
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23446
dirpart=`$as_dirname -- "$mf" ||
23447
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23448
X"$mf" : 'X\(//\)[^/]' \| \
23449
X"$mf" : 'X\(//\)$' \| \
23450
X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23452
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23456
/^X\(\/\/\)[^/].*/{
23472
# Extract the definition of DEPDIR, am__include, and am__quote
23473
# from the Makefile without running `make'.
23474
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23475
test -z "$DEPDIR" && continue
23476
am__include=`sed -n 's/^am__include = //p' < "$mf"`
23477
test -z "am__include" && continue
23478
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23479
# When using ansi2knr, U may be empty or an underscore; expand it
23480
U=`sed -n 's/^U = //p' < "$mf"`
23481
# Find all dependency output files, they are included files with
23482
# $(DEPDIR) in their names. We invoke sed twice because it is the
23483
# simplest approach to changing $(DEPDIR) to its actual value in the
23485
for file in `sed -n "
23486
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23487
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23488
# Make sure the directory exists.
23489
test -f "$dirpart/$file" && continue
23490
fdir=`$as_dirname -- "$file" ||
23491
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23492
X"$file" : 'X\(//\)[^/]' \| \
23493
X"$file" : 'X\(//\)$' \| \
23494
X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23496
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23500
/^X\(\/\/\)[^/].*/{
23513
{ as_dir=$dirpart/$fdir
23515
-*) as_dir=./$as_dir;;
23517
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23521
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23522
*) as_qdir=$as_dir;;
23524
as_dirs="'$as_qdir' $as_dirs"
23525
as_dir=`$as_dirname -- "$as_dir" ||
23526
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23527
X"$as_dir" : 'X\(//\)[^/]' \| \
23528
X"$as_dir" : 'X\(//\)$' \| \
23529
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23531
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23535
/^X\(\/\/\)[^/].*/{
23548
test -d "$as_dir" && break
23550
test -z "$as_dirs" || eval "mkdir $as_dirs"
23551
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23552
echo "$as_me: error: cannot create directory $as_dir" >&2;}
23553
{ (exit 1); exit 1; }; }; }
23554
# echo "creating $dirpart/$file"
23555
echo '# dummy' > "$dirpart/$file"
23564
{ (exit 0); exit 0; }
23566
chmod +x $CONFIG_STATUS
23567
ac_clean_files=$ac_clean_files_save
23570
# configure is writing to config.log, and then calls config.status.
23571
# config.status does its own redirection, appending to config.log.
23572
# Unfortunately, on DOS this fails, as config.log is still kept open
23573
# by configure, so config.status won't be able to write to it; its
23574
# output is simply discarded. So we exec the FD to /dev/null,
23575
# effectively closing config.log, so it can be properly (re)opened and
23576
# appended to by config.status. When coming back to configure, we
23577
# need to make the FD available again.
23578
if test "$no_create" != yes; then
23580
ac_config_status_args=
23581
test "$silent" = yes &&
23582
ac_config_status_args="$ac_config_status_args --quiet"
23584
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23586
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
23587
# would make configure fail if this is the last instruction.
23588
$ac_cs_success || { (exit 1); exit 1; }